alloca: protect comment from gnulib-tool
[gnulib.git] / ChangeLog
1 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
2
3         alloca: protect comment from gnulib-tool
4         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
5         that gnulib-tool doesn't think it's a license, and munge it to
6         say "GCC version 3".
7
8 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
9
10         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
11         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
12         $(abs_top_builddir) instead of $(top_builddir).
13
14 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
15
16         strftime-tests: also test nanoseconds
17         * tests/test-strftime.c (T): Add a test of %N.
18
19 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
20
21         inttypes, stdint: add C++11 support
22         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
23         when including inttypes.h and stdint.h.  Support this change to
24         the standard.
25         * doc/posix-headers/inttypes.texi (inttypes.h):
26         * doc/posix-headers/stdint.texi (stdint.h): Document this.
27         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
28         Define if not defined already, for the benefit of pre-C++11 hosts.
29         Define the standard format macros (e.g., PRId8) always.
30         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
31         Likewise, if __cpluspus.  Define the standard constant and limit
32         macros (e.g., INT8_C, INT8_MAX) always.
33         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
34         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
35         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
36         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
37         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
38         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
39         Likewise.
40
41 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
42
43         nonblocking tests: Fix test failure on Linux/PPC.
44         Suggested by Prerna Saxena in
45         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
46         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
47         Set to 1100000.
48
49 2011-12-12  Jim Meyering  <meyering@redhat.com>
50
51         argmatch: don't hard-code `' when listing valid option arguments
52         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
53         use the quote function to add quotes.  Use fputs rather than
54         fprintf for the format string with no format directive.
55
56 2011-12-07  Eric Blake  <eblake@redhat.com>
57
58         bootstrap: detect tools required by gnulib-tool
59         * build-aux/bootstrap (buildreq): Provide minimum implicit
60         dependencies.
61         * DEPENDENCIES: Mention patch as a prereq.
62
63 2011-12-04  Bruno Haible  <bruno@clisp.org>
64
65         sethostname: Port to Windows platforms.
66         * lib/sethostname.c: Provide an alternate implementation for Windows
67         platforms.
68         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
69         (main): Skip the test if sethostname() fails with EPERM. On Windows
70         platforms, don't check the result of gethostname().
71
72 2011-12-04  Bruno Haible  <bruno@clisp.org>
73             Jim Meyering  <meyering@redhat.com>
74
75         tests: Avoid spurious error message on platforms without mktemp program.
76         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
77
78 2011-12-04  Bruno Haible  <bruno@clisp.org>
79
80         sethostname: Fix documentation.
81         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
82         "not fixed" section.
83
84 2011-12-03  Bruno Haible  <bruno@clisp.org>
85
86         gnulib-tool: Verify that the License field is present and non-empty.
87         * gnulib-tool (func_get_license_raw): New function, extracted from
88         func_get_license.
89         (func_get_license): Use it. Warn if the module is not a test module and
90         has no license.
91         Suggested by Jim Meyering.
92
93 2011-12-03  Bruno Haible  <bruno@clisp.org>
94
95         sethostname tests: Fix link error on mingw.
96         * tests/test-sethostname1.c: New file, extracted from
97         tests/test-sethostname.c.
98         * tests/test-sethostname2.c: New file, extracted from
99         tests/test-sethostname.c.
100         * tests/test-sethostname.c: Remove file.
101         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
102         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
103         (Depends-on): Add gethostname.
104         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
105         Link the latter with $(GETHOSTNAME_LIB).
106
107         sethostname tests: Fix compilation error on mingw.
108         * tests/test-sethostname.c: Don't include <sys/types.h>.
109         (geteuid): Use a dummy value without uid_t.
110         * modules/sethostname-tests (Depends-on): Remove sys_types.
111
112         sethostname tests: Avoid a gcc warning.
113         * tests/test-sethostname.c (main): Remove an unused variable.
114
115         Tweak last commit.
116         * modules/sethostname-tests (Files): Sort by decreasing importance.
117         (configure.ac): Check for geteuid.
118         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
119         the test when there's nothing to test. Drop an unnecessary cast.
120         Improve an error message. Verify that the final sethostname() call
121         succeeds.
122
123 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
124
125         Add a test suite for the sethostname module.
126         * modules/sethostname-tests: New file.  A test program
127         for the sethostname module.
128         * tests/test-sethostname.c: Likewise.
129
130 2011-12-03  Bruno Haible  <bruno@clisp.org>
131
132         Tweak last commit.
133         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
134         Fix preprocessor directives indentation. Fix typos.
135         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
136         * modules/unistd (Makefile): Likewise.
137
138 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
139
140         Integrate the sethostname module into unistd.
141         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
142         into the unistd.h header.
143         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
144         preprocessor directives.
145         * modules/unistd: Setup the Makefile substitutions of the
146         SETHOSTNAME preprocessor directives.
147
148 2011-12-03  Bruno Haible  <bruno@clisp.org>
149
150         Tweak last commit.
151         * lib/sethostname.c: Don't include <string.h>.
152         (sethostname): No need to copy the argument string to the stack. Don't
153         call clearerr. Preserve errno when fprintf failed.
154         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
155         Don't invoke AC_REPLACE_FUNCS.
156         * modules/sethostname (Link): Remove empty section.
157         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
158         failure problem.
159
160 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
161
162         New module 'sethostname'.
163         * lib/sethostname.c (sethostname): New file.  Provide sethostname
164         for systems that lack it.
165         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
166         sethostname declaration and function.
167         * modules/sethostname: New file.  Define the sethostname module.
168
169 2011-12-03  Bruno Haible  <bruno@clisp.org>
170
171         Tweak last commit.
172         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
173
174 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
175
176         Split the HOST_NAME_MAX detection into a separate m4 macro.
177         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
178         macro so it can be used by the pending sethostname module.
179
180 2011-12-03  Bruno Haible  <bruno@clisp.org>
181
182         Fix module descriptions syntax.
183         * modules/argv-iter (License): Fix syntax.
184         * modules/di-set (License): Likewise.
185         * modules/ino-map (License): Likewise.
186         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
187
188 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
189
190         stdalign: port to Clang 3.0
191         Problem reported by Simon Josefsson in
192         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
193         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
194         which has <stdalign.h> but which does not define alignof.
195         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
196
197 2011-12-01  Eric Blake  <eblake@redhat.com>
198
199         mktempd: silence dd usage
200         * build-aux/mktempd (rand_bytes): Silence dd.
201
202 2011-11-30  Simon Josefsson  <simon@josefsson.org>
203
204         manywarnings: Don't mention gcc version in docstring.
205         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
206         Jim Meyering <meyering@redhat.com>.
207
208 2011-11-30  Jim Meyering  <meyering@redhat.com>
209
210         hash: mark a few floating point constants with "f" suffix
211         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
212         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
213         floating point constants with "f", since they're destined to be
214         saved/used as "float"s.
215
216 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
217
218         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
219         * tests/test-float.c (test_long_double): Correct and re-enable the
220         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
221
222 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
223
224         Avoid subtracting two pointers that don't point into the same block.
225         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
226         only pointers into the same memory block are subtracted. We cannot
227         assume that sizeof (ptrdiff_t) == sizeof (void *).
228
229 2011-11-29  Eric Blake  <eblake@redhat.com>
230
231         maint.mk: add syntax check for use of compare from init.sh
232         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
233         moved here from coreutils.
234
235         manywarnings: drop -Wunsuffixed-float-constants
236         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
237         '1.0D', which is the only way to silence this warning for 'double'.
238
239 2011-11-29  Jim Meyering  <meyering@redhat.com>
240
241         hash: mark compute_bucket_size with the pure attribute
242         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
243
244         quotearg, propername: correct pragma guard expression
245         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
246         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
247
248 2011-11-28  Jim Meyering  <meyering@redhat.com>
249
250         propername: do not mark proper_name with the const attribute
251         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
252         since it examines data pointed to by its parameter.
253         * lib/propername.c (proper_name): Instead, add a pragma to suppress
254         the suggestion from -Wsuggest-attribute=const.
255
256         propername: mark one more function as const
257         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
258
259 2011-11-27  Jim Meyering  <meyering@redhat.com>
260
261         mark functions with const and pure attributes
262
263         Mark functions per suggestions from gcc-4.6 when using these options:
264         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
265         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
266         Follow these guidelines: when possible, apply the attribute to
267         an extern declaration, not to its definition.  Apply it to the
268         definition only when the definition is static.
269         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
270         * lib/argv-iter.h (argv_iter_n_args): Likewise.
271         * lib/base64.h (isbase64): Likewise.
272         * lib/basename-lgpl.c (last_component, base_len): Likewise.
273         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
274         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
275         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
276         (c_tolower, c_toupper): Likewise.
277         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
278         * lib/chdir-long.c (find_non_slash): Likewise.
279         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
280         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
281         * lib/file-type.h (file_type): Likewise.
282         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
283         * lib/filevercmp.c (verrevcmp): Likewise.
284         * lib/freadahead.h (freadahead): Likewise.
285         * lib/fts.c (fts_maxarglen): Likewise.
286         * lib/hash-pjw.h (hash_pjw): Likewise.
287         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
288         * lib/hash.c (is_prime, next_prime): Likewise.
289         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
290         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
291         (hash_table_ok, hash_get_first, hash_string): Likewise.
292         (compute_bucket_size): Likewise.
293         * lib/i-ring.h (i_ring_empty): Likewise.
294         * lib/isnan.c (isnanl): Likewise.
295         * lib/math.h (isnanl, rpl_isnanl): Likewise.
296         * lib/memcasecmp.h (memcasecmp): Likewise.
297         * lib/memchr2.h (memchr2): Likewise.
298         * lib/memcmp2.h (memcmp2): Likewise.
299         * lib/parse-datetime.y (lookup_zone): Likewise.
300         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
301         [!WINDOWS_SOCKETS]: Likewise.
302         * lib/strnlen1.h (strnlen1): Likewise.
303         * lib/uniwidth.in.h (uc_width): Likewise.
304         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
305         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
306         (quoting_options_from_style): Add a comment.
307         * lib/propername.h (proper_name): Add a comment.
308
309 2011-11-27  Bruno Haible  <bruno@clisp.org>
310
311         Remove unused macros from !_LIBC code in glibc-borrowed files.
312         * lib/fnmatch.c (STRCOLL): Remove macro.
313         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
314         * lib/glob.c (__stat, __readdir64): Remove macros.
315         * lib/tempname.c (__open64, __xstat64): Remove macros.
316         Suggested by Paul Eggert.
317
318 2011-11-27  Bruno Haible  <bruno@clisp.org>
319
320         getcwd: Fix link error on MSVC 9.
321         * modules/getcwd (Depends-on): Add readdir, rewinddir.
322
323 2011-11-27  Bruno Haible  <bruno@clisp.org>
324
325         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
326         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
327         HAVE_OPENDIR is 0.
328         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
329         HAVE_CLOSEDIR is 0.
330         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
331         is 0.
332         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
333
334 2011-11-27  Bruno Haible  <bruno@clisp.org>
335
336         getcwd: Fix bug from 2011-08-17.
337         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
338         platforms that need it.
339         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
340         code of 4 to be a failure, not a success. This ensures that
341         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
342
343 2011-11-27  Bruno Haible  <bruno@clisp.org>
344
345         binary-io tests: Avoid test failure on mingw when libtool is used.
346         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
347         Don't verify the size of t-bin-out1.tmp here.
348         * tests/test-binary-io.sh: Verify it here.
349         Reported by Simon Josefsson.
350
351 2011-11-26  Bruno Haible  <bruno@clisp.org>
352
353         Fix conflict between two instantiations of module 'unistd'.
354         * gnulib-tool (func_emit_autoconf_snippet): Substitute
355         ${include_guard_prefix} also in the autoconf snippet.
356         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
357         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
358         GNULIB_UNISTD_H_GETOPT.
359         * modules/getopt-posix (configure.ac): Set the
360         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
361         * modules/getopt-gnu (configure.ac): Likewise.
362         * modules/unistd (Makefile.am): Change the substitution value of
363         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
364         Reported by Simon Josefsson.
365
366 2011-11-25  Bruno Haible  <bruno@clisp.org>
367
368         pagealign_alloc: Doc and comments.
369         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
370         module.
371         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
372
373 2011-11-25  Jim Meyering  <meyering@redhat.com>
374
375         test-update-copyright.sh: avoid false-positive failure
376         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
377         around false positive failure on Cygwin/Windows.  The latter was
378         matching erroneously-created files with names like
379         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
380
381 2011-11-25  Simon Josefsson  <simon@josefsson.org>
382
383         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
384         * m4/valgrind-tests.m4: Check that the parameters that will be
385         used works, not just a subset of them.  Reported by Bruno Haible
386         <bruno@clisp.org>.
387
388 2011-11-24  Jim Meyering  <meyering@redhat.com>
389
390         test-stdalign.c: comment out long double tests
391         * tests/test-stdalign.c: Don't try to reduce alignment of long double
392         variables.  That provokes errors like this from gcc-4.7.0 20111124:
393         error: '_Alignas' specifiers cannot reduce alignment of \
394         'static_longdouble_alignas'.
395
396 2011-11-22  Jim Meyering  <meyering@redhat.com>
397
398         init.sh: make "compare /dev/null FILE" output more readable
399         * tests/init.sh (compare_): Document the preferred order of arguments.
400         (emit_diff_u_header_): New function.
401         (compare_dev_null_): Emit a simulated diff, rather than just the
402         contents of the unexpected file.  Suggestion from Bruno Haible.
403
404 2011-11-21  Jim Meyering  <meyering@redhat.com>
405             Eric Blake  <eblake@redhat.com>
406
407         init.sh: work around OSF/1 5.1's mishandling of /dev/null
408         * tests/init.sh: Make our compare function slightly more portable.
409         Reported by Bruno Haible in
410         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
411
412 2011-11-21  Simon Josefsson  <simon@josefsson.org>
413
414         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
415         before using it, in code that ends up in config.h.
416
417 2011-11-20  Bruno Haible  <bruno@clisp.org>
418
419         getcwd: Work around getcwd bug on AIX 5..7.
420         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
421         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
422         Use a different value for gl_cv_func_getcwd_path_max. Move the
423         definition of HAVE_PARTLY_WORKING_GETCWD from here...
424         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
425         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
426         Define HAVE_MINIMALLY_WORKING_GETCWD.
427         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
428         where it is not even minimally working, that is, on AIX.
429         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
430         m4/getcwd-path-max.m4.
431         (main): Update exit code computation.
432         * doc/posix-functions/getcwd.texi: Mention list of platforms where
433         getcwd does not handle long file names.
434
435 2011-11-20  Bruno Haible  <bruno@clisp.org>
436
437         getcwd: Fix bug from 2009-09-10.
438         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
439         like "no".
440
441 2011-11-20  Simon Josefsson  <simon@josefsson.org>
442
443         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
444
445 2011-11-20  Bruno Haible  <bruno@clisp.org>
446
447         fma tests: Avoid shadowing local variables.
448         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
449         expected.
450
451 2011-11-20  Bruno Haible  <bruno@clisp.org>
452
453         copysignf tests: Fix.
454         * tests/test-copysignf.c: Fix signature check.
455
456 2011-11-20  Bruno Haible  <bruno@clisp.org>
457
458         fma: Remove unused code.
459         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
460         unused macros.
461
462 2011-11-20  Bruno Haible  <bruno@clisp.org>
463
464         sethostname: Fix doc about AIX.
465         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
466         sethostname; it has it.
467
468         sethostname: Mention more portability problems.
469         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
470         problem.
471         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
472
473 2011-11-19  Bruno Haible  <bruno@clisp.org>
474
475         Depend on module fcntl-h when AT_FDCWD is used.
476         * modules/utimens (Depends-on): Add fcntl-h.
477         * modules/areadlinkat (Depends-on): Likewise.
478         * modules/areadlinkat-with-size (Depends-on): Likewise.
479         * modules/faccessat (Depends-on): Likewise.
480         * modules/fchmodat (Depends-on): Likewise.
481         * modules/fchownat (Depends-on): Likewise.
482         * modules/getcwd (Depends-on): Likewise.
483         * modules/mkdirat (Depends-on): Likewise.
484         * modules/mkfifoat (Depends-on): Likewise.
485         * modules/readlinkat (Depends-on): Likewise.
486         * modules/symlinkat (Depends-on): Likewise.
487         * modules/dup2-tests (Depends-on): Likewise.
488         * modules/fdutimensat-tests (Depends-on): Likewise.
489         * modules/futimens-tests (Depends-on): Likewise.
490
491 2011-11-19  Bruno Haible  <bruno@clisp.org>
492
493         euidaccess: Update a comment.
494         * lib/euidaccess.c: Update comment about platforms with faccessat.
495
496 2011-11-19  Bruno Haible  <bruno@clisp.org>
497
498         openat: Fix file list.
499         * modules/openat (Files): Remove lib/at-func.c.
500
501 2011-11-19  Bruno Haible  <bruno@clisp.org>
502
503         fstatat: Simplify.
504         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
505         gnulib should define rpl_fstatat, there is a
506         "#define fstatat rpl_fstatat" in <sys/stat.h>.
507
508 2011-11-19  Bruno Haible  <bruno@clisp.org>
509
510         Ensure 'inline' can be used in tests/test-utimens-common.h.
511         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
512         * modules/futimens-tests (configure.ac): Likewise.
513         * modules/utimens-tests (configure.ac): Likewise.
514         * modules/utimensat-tests (configure.ac): Likewise.
515
516 2011-11-19  Simon Josefsson  <simon@josefsson.org>
517
518         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
519         not hash_insert0.
520         (hash_insert_if_absent): Doc fix.
521
522 2011-11-19  Simon Josefsson  <simon@josefsson.org>
523
524         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
525
526 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
527
528         test-getcwd: disambiguate exit status
529         * tests/test-getcwd.c (test_long_name): Return 0..7.
530         (main): Exit with an unambiguous exit status.  The old
531         code yielded a mysterious mixture of two failure codes.
532
533         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
534         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
535         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
536         rpl_fstatat or fstatat.  This should fix the other problem
537         reported by Kai Habel in
538         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
539         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
540         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
541         and I reproduced it on a Solaris 8 host we still have in production.
542
543 2011-11-18  Jim Meyering  <meyering@redhat.com>
544
545         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
546         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
547         Add a sentence to the comment.
548         (hash_insert0): New function that simply calls hash_insert_if_absent.
549         * lib/hash.h (hash_insert_if_absent): Declare it.
550         (hash_insert0): Add deprecation attribute.
551         (_GL_ATTRIBUTE_DEPRECATED): Define.
552         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
553         not hash_insert0.
554         * NEWS: Mention it, even though it's not really an incompatible change.
555
556 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
557
558         openat: avoid compilation failure due to lack of <errno.h> inclusion
559         * lib/openat.c: Include <errno.h>.
560
561 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
562
563         * modules/getcwd (Depends-on): Add fdopendir.
564         This fixes one of the two problems reported by Kai Habel in
565         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
566
567         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
568         stdalign problem reported by Ian Beckwith in
569         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
570         * modules/crypto/gc-arcfour (Depends-on):
571         Depend conditionally on crypto/arcfour.
572         * modules/crypto/gc-arctwo (Depends-on):
573         Depend conditionally on crypto/arctwo.
574         * modules/crypto/gc-des (Depends-on):
575         Depend conditionally on crypto/des.
576         * modules/crypto/gc-hmac-md5 (Depends-on):
577         Depend conditionally on crypto/hmac-md5.
578         * modules/crypto/gc-hmac-sha1 (Depends-on):
579         Depend conditionally on crypto/hmac-sha1.
580         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
581         * modules/crypto/gc-md4 (Depends-on):
582         Depend conditionally on crypto/md4.
583         * modules/crypto/gc-md5 (Depends-on):
584         Depend conditionally on crypto/md5.
585         * modules/crypto/gc-rijndael (Depends-on):
586         Depend conditionally on crypto/rijndael.
587         * modules/crypto/gc-sha1 (Depends-on):
588         Depend conditionally on crypto/sha1.
589         * modules/crypto/gc-arcfour:
590         * modules/crypto/gc-arctwo:
591         * modules/crypto/gc-des:
592         * modules/crypto/gc-hmac-md5:
593         * modules/crypto/gc-hmac-sha1:
594         * modules/crypto/gc-md2:
595         * modules/crypto/gc-md4:
596         * modules/crypto/gc-md5:
597         * modules/crypto/gc-rijndael:
598         * modules/crypto/gc-sha1:
599         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
600         now that the conditional dependencies do the work for us.
601
602 2011-11-17  Jim Meyering  <meyering@redhat.com>
603
604         tests: factor st_ctime-comparison out of two headers
605         * tests/test-utimens-common.h (ctime_compare): Define.
606         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
607         * tests/test-lutimens.h (test_lutimens): Likewise.
608         * tests/test-utimens.h (test_utimens): Likewise.
609
610         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
611         Invoke the test program via an init.sh-using wrapper.
612         * tests/test-getcwd.sh: New file.
613         * modules/getcwd-tests (Files): Add it.
614         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
615
616 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
617
618         gitlog-to-changelog: support multi-author commits.
619         The FSF cares about keeping track of all authors of patches to its
620         projects, but Git doesn't provide obvious support for multi-author
621         changesets. Consensus seems to be forming around the use of extra
622         Signed-off-by inspired lines in the log message formatted as
623         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
624         multi-author commits between version control systems.
625         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
626         log message and output in standard ChangeLog multi-author format.
627         Reported by Peter Rosin <peda@lysator.liu.se>
628
629 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
630             Bruno Haible  <bruno@clisp.org>
631
632         Fix some modules' file list.
633         * modules/fstatat (Files): Add m4/lstat.m4.
634         * modules/openat (Files): Likewise.
635         * modules/unlinkat (Files): Likewise.
636
637 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
638
639         maint.mk: fix tight-scope.mk generation in VPATH builds.
640         * top/maint.mk (tight-scope.mk): Make sure to prefix file
641         reference with $(srcdir) so that the file is found correctly even
642         when running `make syntax-check' in a VPATH build.
643
644 2011-11-13  Bruno Haible  <bruno@clisp.org>
645             Jim Meyering  <meyering@redhat.com>
646
647         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
648         * tests/init.sh (compare): Remove "No differences encountered" or
649         synonymous output from the 'diff' program.
650
651 2011-11-13  Bruno Haible  <bruno@clisp.org>
652
653         Makefile: Tweak indentation.
654         * Makefile: Use tab as first character in every line that contains rule
655         commands.
656
657 2011-11-13  Bruno Haible  <bruno@clisp.org>
658
659         Syntax check for copyright statements.
660         * check-copyright: New file.
661         * Makefile (sc_check_copyright): New rule.
662
663 2011-11-13  Simon Josefsson  <simon@josefsson.org>
664
665         * build-aux/git-version-gen: Add --prefix to configure the tag
666         match string.
667
668 2011-11-13  Simon Josefsson  <simon@josefsson.org>
669
670         * build-aux/git-version-gen: Add --help and --version.
671
672 2011-11-12  Jim Meyering  <meyering@redhat.com>
673
674         revamp the other test-exclude?.sh scripts to use init.sh, too
675         * tests/test-exclude1.sh: Use init.sh.
676         * tests/test-exclude2.sh: Likewise.
677         * tests/test-exclude3.sh: Likewise.
678         * tests/test-exclude4.sh: Likewise.
679         * tests/test-exclude5.sh: Likewise.
680         * tests/test-exclude6.sh: Likewise.
681         * tests/test-exclude7.sh: Likewise.
682         * tests/test-exclude8.sh: Likewise.
683         * modules/exclude-tests (Files): List init.sh.
684
685         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
686         These shell scripts ignored failure of the binary test-exclude,
687         so making the latter return 77 didn't cause them to be skipped.
688         * tests/test-exclude5.sh: Exit with test-exclude's error status
689         when that program fails.  Revamp to use init.sh.
690         * tests/test-exclude2.sh: Likewise.
691
692         test-exclude: fix a typo
693         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
694
695 2011-11-11  Bruno Haible  <bruno@clisp.org>
696
697         obstack: Fix compilation error on MSVC 9.
698         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
699
700 2011-11-11  Jim Meyering  <meyering@redhat.com>
701
702         test-exclude: skip tests rather than failing on deficient systems
703         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
704         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
705         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
706         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
707
708 2011-11-10  Bruno Haible  <bruno@clisp.org>
709
710         ptsname_r test: Avoid gcc warning on glibc systems.
711         * tests/test-ptsname_r.c (null_ptr): New function.
712         (test_errors): Use it.
713
714 2011-11-10  Bruno Haible  <bruno@clisp.org>
715
716         ptsname_r: Avoid compilation error on OSF/1 5.1.
717         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
718         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
719         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
720         function is not declared or incompatibly declared.
721         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
722         * modules/ptsname_r (Depends-on, configure.ac): Update.
723         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
724
725 2011-11-10  Bruno Haible  <bruno@clisp.org>
726
727         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
728         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
729         When cross-compiling, guess yes on all platforms except AIX.
730         Reported by Ludovic Courtès <ludo@gnu.org>.
731
732 2011-11-09  Bruno Haible  <bruno@clisp.org>
733
734         ptsname_r tests: Fix bugs.
735         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
736         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
737
738 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
739
740         fstatat: work with cross-compilation
741         Problem reported by Ludovic Courtès in
742         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
743         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
744         "cross-compiling" and assume the bug is present.  Replace
745         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
746         an inverted sense, to be more conservative about our assumptions.
747         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
748
749 2011-11-09  Bruno Haible  <bruno@clisp.org>
750
751         Improve MODULES.html output.
752         * modules/mkfifoat (Description): Use the word "function".
753         * modules/readlinkat (Description): Likewise.
754         * modules/symlinkat (Description): Likewise.
755
756 2011-11-09  Eric Blake  <eblake@redhat.com>
757
758         ptsname_r-tests: new test module
759         * modules/ptsname_r-tests: New module.
760         * tests/test-ptsname_r.c: New file.
761
762         ptsname_r: new module
763         * modules/ptsname_r: New module.
764         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
765         * lib/ptsname.c (__ptsname_r): Split...
766         * lib/ptsname_r.c: ...into new file.
767         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
768         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
769         * modules/stdlib (Makefile.am): Substitute witnesses.
770         * lib/stdlib.in.h (ptsname_r): Declare it.
771         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
772         * MODULES.html.sh (Misc): Likewise.
773         * modules/ptsname (Depends-on): Alter dependency.
774         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
775
776 2011-11-09  Jim Meyering  <meyering@redhat.com>
777
778         announce-gen: be more concise when there's only one URL+tarball
779         * build-aux/announce-gen (get_tool_versions): When you distribute
780         only one type of tarball, combine the first two "Here are..."
781         sections and make the key-checking grammar independent of
782         how many tarballs there are.
783
784 2011-11-09  Eric Blake  <eblake@redhat.com>
785
786         openpty: provide a stub on mingw
787         * lib/pty.in.h (includes): Provide forward declarations.
788         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
789
790         raise: fix mingw handling of SIGPIPE
791         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
792
793 2011-11-08  Bruno Haible  <bruno@clisp.org>
794
795         More conditional dependencies.
796         * modules/faccessat (Depends-on): Add conditions.
797         * modules/fchmodat (Depends-on): Likewise.
798         * modules/fchownat (Depends-on): Likewise.
799         * modules/fstatat (Depends-on): Likewise.
800         * modules/mkfifoat (Depends-on): Likewise.
801         * modules/readlinkat (Depends-on): Likewise.
802         * modules/symlinkat (Depends-on): Likewise.
803         * modules/unlinkat (Depends-on): Likewise.
804         * modules/utimensat (Depends-on): Likewise.
805         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
806         * modules/linkat (Depends-on): Refine the conditions.
807         * modules/renameat (Depends-on): Likewise.
808
809 2011-11-08  Bruno Haible  <bruno@clisp.org>
810
811         faccessat: Move AC_LIBOBJ invocation to module description.
812         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
813         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
814         invocation from here...
815         * modules/faccessat (configure.ac): ... to here. Invoke
816         gl_PREREQ_FACCESSAT.
817
818 2011-11-08  Bruno Haible  <bruno@clisp.org>
819
820         faccessat: Simplify autoconf macro.
821         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
822         gl_FUNC_EUIDACCESS.
823
824 2011-11-08  Bruno Haible  <bruno@clisp.org>
825
826         renameat: Fix dependencies.
827         * modules/renameat (Depends-on): Add stdbool.
828
829 2011-11-08  Bruno Haible  <bruno@clisp.org>
830
831         mkfifoat: Fix module description.
832         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
833         not gl_UNISTD_MODULE_INDICATOR.
834
835 2011-11-08  Bruno Haible  <bruno@clisp.org>
836
837         fstatat: Remove unused dependency.
838         * modules/fstatat (Depends-on): Remove fstat.
839
840 2011-11-08  Simon Josefsson  <simon@josefsson.org>
841
842         GNUmakefile: behave when Makefile is missing.
843         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
844
845 2011-11-08  Bruno Haible  <bruno@clisp.org>
846
847         openat: Conditionalize dependencies.
848         * lib/openat.c: Reduce the scope of some #includes.
849         * modules/openat (Depends-on): Add conditions.
850
851 2011-11-07  Jim Meyering  <meyering@redhat.com>
852
853         maint.mk: extract GPG key ID without using a temporary file
854         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
855         without using a temporary file.  Based on a suggestion from Werner Koch
856         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
857
858 2011-11-07  Eric Blake  <eblake@redhat.com>
859
860         grantpt: fix typo
861         * lib/stdlib.in.h (grantpt): Check correct function.
862
863         maint.mk: silence new syntax check
864         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
865
866 2011-11-06  Bruno Haible  <bruno@clisp.org>
867
868         Doc about floating-point and math API.
869         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
870         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
871
872 2011-11-06  Bruno Haible  <bruno@clisp.org>
873
874         stdalign tests: Skip the test when compiled by Sun C.
875         * tests/test-stdalign.c (main): Skip the test on Sun C.
876
877 2011-11-06  Bruno Haible  <bruno@clisp.org>
878
879         ansi-c++-opt: Complete the 2011-06-05 change.
880         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
881         does not support namespaces, set the variable to "no", not to ":".
882
883 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
884
885         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
886
887 2011-11-06  Bruno Haible  <bruno@clisp.org>
888
889         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
890         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
891         (minus_zerol) [HP-UX]: New macro.
892         (unary_minus) [HP-UX]: New function.
893         (copysignl) [HP-UX]: Use unary_minus function.
894
895 2011-11-06  Bruno Haible  <bruno@clisp.org>
896
897         ldexp, ldexpf, ldexpl: Enhance tests.
898         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
899         and tests/test-ldexpl.c.
900         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
901         LDEXP, MIN_EXP, MAX_EXP): New macros.
902         Include test-ldexp.h.
903         (main): Just call test_function.
904         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
905         infinity.h, nan.h.
906         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
907         MAX_EXP): New macros.
908         Include test-ldexp.h.
909         (x, y): Remove variables.
910         (main): Just call test_function.
911         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
912         infinity.h, nan.h.
913         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
914         MAX_EXP): New macros.
915         Include test-ldexp.h.
916         (x, y): Remove variables.
917         (main): Just call test_function.
918         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
919         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
920         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
921         (Depends-on): Add isnand-nolibm, signbit, float.
922         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
923         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
924         (Depends-on): Add isnanf-nolibm, signbit, float.
925
926 2011-11-06  Bruno Haible  <bruno@clisp.org>
927
928         math tests: Cosmetics.
929         * tests/test-math-c++.cc: Reorder declarations.
930
931 2011-11-05  Bruno Haible  <bruno@clisp.org>
932
933         fma*: Simplify test.
934         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
935         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
936
937         Tests for module 'fmal'.
938         * modules/fmal-tests: New file.
939         * tests/test-fmal1.c: New file.
940         * tests/test-fmal2.c: New file.
941
942         New module 'fmal'.
943         * lib/math.in.h (fmal): New declaration.
944         * lib/fmal.c: New file.
945         * m4/fmal.m4: New file.
946         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
947         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
948         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
949         REPLACE_FMAL.
950         * modules/fmal: New file.
951         * doc/posix-functions/fmal.texi: Mention the new module and the various
952         bugs.
953
954         Tests for module 'fmaf'.
955         * modules/fmaf-tests: New file.
956         * tests/test-fmaf1.c: New file.
957         * tests/test-fmaf2.c: New file.
958
959         New module 'fmaf'.
960         * lib/math.in.h (fmaf): New declaration.
961         * lib/fmaf.c: New file.
962         * m4/fmaf.m4: New file.
963         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
964         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
965         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
966         REPLACE_FMAF.
967         * modules/fmaf: New file.
968         * doc/posix-functions/fmaf.texi: Mention the new module and the various
969         bugs.
970
971         Tests for module 'fma'.
972         * modules/fma-tests: New file.
973         * tests/test-fma1.c: New file.
974         * tests/test-fma1.h: New file.
975         * tests/test-fma2.c: New file.
976         * tests/test-fma2.h: New file.
977
978         New module 'fma'.
979         * lib/math.in.h (fma): New declaration.
980         * lib/fma.c: New file.
981         * m4/fma.m4: New file.
982         * m4/fegetround.m4: New file.
983         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
984         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
985         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
986         REPLACE_FMA.
987         * modules/fma: New file.
988         * doc/posix-functions/fma.texi: Mention the new module and the various
989         bugs.
990
991         Extend gl_MATHFUNC.
992         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
993         Support 'void' as argument type.
994         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
995
996 2011-11-05  Jim Meyering  <meyering@redhat.com>
997
998         maint.mk: also prohibit inclusion of dirent.h without use
999         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
1000
1001 2011-11-05  Bruno Haible  <bruno@clisp.org>
1002
1003         ldexpl tests: Avoid test failure on MSVC 9.
1004         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
1005         value. Needed in order to enforce the conversion from a value greater
1006         than LDBL_MAX to Infinity.
1007
1008 2011-11-05  Bruno Haible  <bruno@clisp.org>
1009
1010         New modules 'at-internal', 'openat-h', split off from module 'openat'.
1011         * modules/at-internal: New file, extracted from modules/openat.
1012         * modules/openat-h: New file.
1013         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
1014         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
1015         * modules/openat (Description): Add reference to POSIX function.
1016         (Files): Remove lib/openat.h, lib/openat-proc.c.
1017         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
1018         intprops, unistd.
1019         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
1020         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
1021         gl_FCNTL_MODULE_INDICATOR.
1022         (Include): Remove unistd.h, openat.h.
1023         * modules/areadlinkat (Files): Add lib/at-func.c.
1024         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1025         openat-die, openat-h, save-cwd.
1026         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
1027         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1028         openat-die, openat-h, save-cwd, unistd.
1029         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
1030         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1031         openat-h, save-cwd. Remove fcntl-h, openat.
1032         * modules/fchmodat (Files): Remove lib/openat.h.
1033         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1034         openat, stdbool, unistd.
1035         * modules/fchownat (Files): Remove lib/openat.h.
1036         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1037         openat, stdbool, sys_stat.
1038         * modules/fdopendir (Files): Remove lib/openat-priv.h,
1039         lib/openat-proc.c.
1040         (Depends-on): Add at-internal.
1041         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
1042         * modules/fstatat (Files): Remove lib/openat.h.
1043         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
1044         stdbool, unistd.
1045         * modules/fts (Depends-on): Add openat-h.
1046         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
1047         openat.
1048         * modules/mkdirat (Files): Remove lib/openat.h.
1049         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1050         openat, stdbool, sys_stat.
1051         * modules/mkfifoat (Files): Add lib/at-func.c.
1052         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1053         openat-h, save-cwd. Remove fcntl-h, openat.
1054         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
1055         * modules/readlinkat (Files): Add lib/at-func.c.
1056         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1057         openat-h, save-cwd. Remove fcntl-h, openat.
1058         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
1059         openat.
1060         * modules/selinux-at (Files): Add lib/at-func.c.
1061         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1062         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
1063         * modules/symlinkat (Files): Add lib/at-func.c.
1064         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1065         openat-h, save-cwd. Remove fcntl-h, openat.
1066         * modules/unlinkat (Files): Remove lib/openat.h.
1067         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
1068         stdbool.
1069         * modules/utimensat (Files): Add lib/at-func.c.
1070         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
1071         openat-die, openat-h, save-cwd.
1072         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
1073         * modules/fdutimensat-tests (Depends-on): Add openat.
1074         * modules/fstatat-tests (Depends-on): Add openat-h.
1075         * modules/readlinkat-tests (Depends-on): Add openat.
1076         * modules/symlinkat-tests (Depends-on): Add openat.
1077
1078 2011-11-05  Bruno Haible  <bruno@clisp.org>
1079
1080         openat: Include <stdbool.h>.
1081         * lib/openat.c: Include <stdbool.h>.
1082
1083 2011-11-04  Bruno Haible  <bruno@clisp.org>
1084
1085         fchownat, renameat, unlinkat: Fix dependencies.
1086         * modules/fchownat (Depends-on): Add fstatat.
1087         * modules/renameat (Depends-on): Likewise.
1088         * modules/unlinkat (Depends-on): Likewise.
1089
1090 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
1091
1092         openat: remove direct dependency on dirent
1093         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
1094         and hasn't been needed ever since fdopendir was split into its own
1095         module on 2009-08-31.
1096         * modules/openat (Depends-on): Remove dirent.
1097
1098 2011-11-04  Bruno Haible  <bruno@clisp.org>
1099
1100         renameat: Optimize code size.
1101         * modules/renameat (configure.ac): Don't compile at-func2.c if
1102         REPLACE_RENAMEAT is 1.
1103
1104 2011-11-04  Bruno Haible  <bruno@clisp.org>
1105
1106         openat tests: Fix file list.
1107         * modules/openat-tests (Files): Add tests/test-open.h.
1108
1109 2011-11-04  Bruno Haible  <bruno@clisp.org>
1110
1111         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
1112         * modules/fchmodat (Depends-on): Add openat-die.
1113         * modules/fchownat (Depends-on): Likewise.
1114         * modules/linkat (Depends-on): Likewise.
1115         * modules/renameat (Depends-on): Likewise.
1116         * modules/openat (Depends-on): Add dirent.
1117
1118 2011-11-04  Jim Meyering  <meyering@redhat.com>
1119
1120         at-func*.c: fix comments
1121         * lib/at-func2.c: Correct/improve first-line comment.
1122         * lib/at-func.c: Correct grammar in first-line comment.
1123
1124 2011-11-04  Bruno Haible  <bruno@clisp.org>
1125
1126         New module 'mkdirat', split off from module 'openat'.
1127         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
1128         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
1129         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
1130         * modules/mkdirat: New file, extracted from modules/openat.
1131         * modules/openat (Files): Remove lib/mkdirat.c.
1132         (Depends-on): Remove mkdir.
1133         (configure.ac): Remove AC_LIBOBJ of mkdirat.
1134         (Include): Remove <sys/stat.h>.
1135         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
1136         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
1137         tests/test-mkdir.h.
1138         (Depends-on): Remove ignore-value.
1139         (Makefile.am): Remove rules for test-mkdirat.
1140         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
1141         of module 'openat'.
1142         * NEWS: Mention the change.
1143
1144 2011-11-04  Bruno Haible  <bruno@clisp.org>
1145
1146         closedir: Avoid warning on mingw.
1147         * lib/closedir.c: Include <unistd.h>.
1148
1149 2011-11-04  Bruno Haible  <bruno@clisp.org>
1150
1151         New module 'fstatat', split off from module 'openat'.
1152         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
1153         defined.
1154         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
1155         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
1156         gl_FUNC_FSTATAT.
1157         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
1158         * modules/fstatat: New file, extracted from modules/openat.
1159         * modules/openat (Files): Remove lib/fstatat.c.
1160         (Depends-on): Remove lstat.
1161         (configure.ac): Remove AC_LIBOBJ of fstatat.
1162         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
1163         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
1164         tests/test-lstat.h, tests/test-stat.h.
1165         (Depends-on): Remove getcwd-lgpl.
1166         (Makefile.am): Remove rules for test-fstatat.
1167         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
1168         of module 'openat'.
1169         * NEWS: Mention the change.
1170         * modules/getcwd (Depends-on): Add fstatat.
1171         * modules/linkat (Depends-on): Likewise.
1172         * modules/mkfifoat-tests (Depends-on): Likewise.
1173         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
1174
1175 2011-11-03  Bruno Haible  <bruno@clisp.org>
1176
1177         New module 'unlinkat', split off from module 'openat'.
1178         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
1179         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
1180         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
1181         * modules/unlinkat: New file, extracted from modules/openat. Correct
1182         the dependency conditions.
1183         * modules/openat (Files): Remove lib/unlinkat.c.
1184         (Depends-on): Remove rmdir, unlink.
1185         (configure.ac): Remove AC_LIBOBJ of unlinkat.
1186         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
1187         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
1188         tests/test-rmdir.h, tests/test-unlink.h.
1189         (Depends-on): Remove unlinkdir.
1190         (Makefile.am): Remove rules for test-unlinkat.
1191         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
1192         of module 'openat'.
1193         * NEWS: Mention the change.
1194         * modules/linkat-tests (Depends-on): Add unlinkat.
1195         * modules/mkfifoat-tests (Depends-on): Likewise.
1196         * modules/readlinkat-tests (Depends-on): Likewise.
1197
1198 2011-11-02  Bruno Haible  <bruno@clisp.org>
1199
1200         New module 'fchmodat', split off from module 'openat'.
1201         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
1202         defined.
1203         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
1204         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
1205         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
1206         * modules/fchmodat: New file, extracted from modules/openat.
1207         * modules/openat (Files): Remove lib/fchmodat.c.
1208         (configure.ac): Remove AC_LIBOBJ of fchmodat.
1209         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
1210         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
1211         (Makefile.am): Remove rules for test-fchmodat.
1212         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
1213         of module 'openat'.
1214         * NEWS: Mention the change.
1215
1216 2011-11-02  Jim Meyering  <meyering@redhat.com>
1217
1218         putenv: indent #definition of "environ" to placate cppi
1219         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
1220
1221         gitlog-to-changelog: provide a ChangeLog-repair mechanism
1222         Git logs are often treated as immutable, because editing them
1223         changes the SHA1 checksums of all descendants.  Thus, errors in
1224         git logs tend to stay there forever.  However, when we generate
1225         a ChangeLog file -- typically for distribution -- from that git log,
1226         we can actually make corrections in the generated file.  The key
1227         lies in recording in machine-readable/applicable form the desired
1228         corrections.  See --help for description and an example.
1229         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
1230         (usage): Describe it; alphabetize option descriptions.
1231         (main): Honor the new option, carefully.
1232
1233 2011-11-01  Jim Meyering  <meyering@redhat.com>
1234
1235         gitlog-to-changelog: avoid an infloop
1236         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
1237         that ends up being empty.
1238
1239 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1240
1241         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
1242         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
1243         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
1244         contains (possibly-quoted) backslashes.  This should avoid
1245         all-too-common shell bugs if COMPLICATED contains backslashes in
1246         the "wrong" places.  Reported by David Evans in
1247         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
1248         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
1249         because we want ASCII ranges.  Is there some reason we don't use
1250         the C locale everywhere in this script?
1251         (func_module, top level): Avoid unwanted pathname expansion when
1252         $repo_url_prefix or $repo_url_suffix_repl contain shell
1253         metacharacters like '?' and '*'.
1254
1255 2011-11-01  Bruno Haible  <bruno@clisp.org>
1256
1257         fchownat: Improve description.
1258         * modules/fchownat (Description): Add link to function.
1259
1260 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1261
1262         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
1263         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
1264         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
1265         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
1266
1267 2011-11-01  Bruno Haible  <bruno@clisp.org>
1268
1269         alignof: Avoid collision with stdalign module.
1270         * lib/alignof.h (alignof): Remove macro.
1271         * NEWS: Mention the change.
1272         Reported by Paul Eggert.
1273
1274 2011-11-01  Bruno Haible  <bruno@clisp.org>
1275
1276         New module 'fchownat', split off from module 'openat'.
1277         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
1278         defined.
1279         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
1280         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
1281         invoke gl_FUNC_FCHOWNAT.
1282         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
1283         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
1284         * modules/fchownat: New file, extracted from modules/openat.
1285         * modules/openat (Files): Remove lib/fchownat.c.
1286         (Depends-on): Remove lchown.
1287         (configure.ac): Remove AC_LIBOBJ of fchownat.
1288         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
1289         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
1290         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
1291         (Depends-on): Remove mgetgroups, usleep, stat-time.
1292         (configure.ac): Remove test for getegid.
1293         (Makefile.am): Remove rules for test-fchownat.
1294         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
1295         of module 'openat'.
1296         * NEWS: Mention the change.
1297
1298 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
1299
1300         stdalign: port better to MSVC and to Sun C 5.11
1301         This fixes some of the problems reported by Bruno Haible in
1302         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
1303         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
1304         shortcomings of MSVC and of Sun C 5.11.
1305         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
1306         around __declspec arg.
1307         * modules/stdalign-tests (Files): Add tests/macros.h.
1308         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
1309         Include macros.h, for ASSERT.
1310         (DECLARE_ALIGNED): Remove.
1311         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
1312         to catch bug), and to 1 if not (simplifies the rest of the code).
1313         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
1314         (CHECK_AUTO): Remove.
1315         (CHECK_ALIGNED): Check only the alignment of the static vars,
1316         since auto var alignment isn't supported by Sun C 5.11.
1317         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
1318         ASSERT failures are easier to diagnose.
1319
1320 2011-10-31  Bruno Haible  <bruno@clisp.org>
1321
1322         doc about some IRIX 5.3 problems.
1323         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
1324         on IRIX 5.3.
1325         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
1326         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
1327         5.3.
1328         * doc/posix-functions/grantpt.texi: Likewise.
1329         * doc/posix-functions/unlockpt.texi: Likewise.
1330         * doc/posix-functions/lgamma.texi: Likewise.
1331         * doc/posix-functions/nextafter.texi: Likewise.
1332         * doc/posix-functions/remainder.texi: Likewise.
1333         * doc/posix-functions/select.texi: Mention misplaced declaration on
1334         IRIX 5.3.
1335         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1336
1337 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
1338
1339         gitlog-to-changelog: fix git-log invocation.
1340         git-log mishandles date strings before 1970-01-01 UTC, and there is
1341         no use to specify --since=1970-01-01 by default anyway.
1342         * build-aux/gitlog-to-changelog: By default, when no --since option
1343         was given, do not specify explicit --since option to git-log.
1344
1345 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
1346
1347         gitlog-to-changelog: new option --append-dot.
1348         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
1349         first non-blank line of each commit message terminated with a dot.
1350
1351 2011-10-30  Bruno Haible  <bruno@clisp.org>
1352
1353         ffsl, ffsll: Avoid compilation error due to 'restrict'.
1354         * lib/ffsl.h: Include <config.h>.
1355         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
1356
1357 2011-10-30  Jim Meyering  <meyering@redhat.com>
1358
1359         GNUmakefile: reenable "make syntax-check" for most projects
1360         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
1361         build-aux variable", "syntax-check" would do nothing but succeed with
1362         the "No version control files detected..." diagnostic (unless you
1363         happened to override _build-aux via cfg.mk).
1364         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
1365         to precede inclusion of maint.mk.  Otherwise, these variables would
1366         be used undefined in any project that does not override the default.
1367
1368 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
1369
1370         gitlog-to-changelog: treat a message with only blank lines as empty.
1371         * build-aux/gitlog-to-changelog: Move the code that removes leading and
1372         trailing blank lines before the code that issues a warning about an
1373         empty commit message.
1374
1375 2011-10-30  Jim Meyering  <meyering@redhat.com>
1376
1377         test-parse-datetime.c: avoid new DST-related false positive test failure
1378         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
1379         based on the time/date we'll convert, not the current time.
1380         Otherwise, the moment we cross a DST boundary like today's in
1381         Europe, (CEST to CET), that offset ends up being one hour off.
1382
1383 2011-10-27  Bruno Haible  <bruno@clisp.org>
1384
1385         fstat: Tweak documentation.
1386         * modules/fstat (Description): More precise description.
1387
1388 2011-10-27  Bruno Haible  <bruno@clisp.org>
1389
1390         Update documentation regarding 'largefile' module.
1391         * doc/posix-functions/fstat.texi: Tweak wording.
1392         * doc/posix-functions/opendir.texi: Mention that the module fixes the
1393         problems with huge directories and/or small ino_t types.
1394         * doc/posix-functions/readdir.texi: Likewise.
1395         * doc/posix-functions/rewinddir.texi: Likewise.
1396
1397 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
1398
1399         maint.mk: don't maintain a second build-aux variable.
1400         * maint.mk (build_aux): Removed.  The maintainer-makefile module
1401         depends on GNUmakefile, which already maintains a cfg.mk
1402         overridable $(_build-aux) for projects with a non-standard
1403         build-aux directory location, although without the $(srcdir)
1404         prefix.  Use that variable consistently instead of introducing a
1405         second one.  Adjust all call sites.
1406
1407 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
1408
1409         Add stdalign module and use it in other modules.
1410         This is based on a previous proposal by Bruno Haible
1411         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
1412
1413         stdalign: new module
1414         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
1415         * modules/stdalign: New files.
1416         * MODULES.html.sh (c1x_core_properties): Add stdalign.
1417         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
1418
1419         stdalign-tests: new module
1420         * modules/stdalign-tests, tests/test-stdalign.c: New files.
1421
1422         argp: use stdalign
1423         * lib/argp-parse.c: Include <stdalign.h>.
1424         (alignof): Remove.
1425         * modules/argp (Depends-on): Add stdalign.
1426
1427         crypto libraries: use stdalign
1428         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
1429         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
1430         Do not include <stdlib.h> twice, in md4.c.
1431         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
1432         because we are accessing a pointer's bit-pattern, not a size.
1433         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
1434         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
1435         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
1436         * modules/crypto/sha512: Likewise.
1437
1438         sys_socket: use stdalign, not alignof
1439         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
1440         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
1441
1442 2011-10-27  Bruno Haible  <bruno@clisp.org>
1443
1444         raise test: Avoid a test failure on Linux/MIPS.
1445         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
1446         because 99 is a valid signal on Linux/MIPS.
1447
1448 2011-10-27  Bruno Haible  <bruno@clisp.org>
1449
1450         nonblocking tests: Fix test failure on Linux/MIPS.
1451         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
1452         Set to 270000.
1453
1454 2011-10-27  Bruno Haible  <bruno@clisp.org>
1455
1456         utimensat: Work around problem on Linux/hppa.
1457         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
1458         values.
1459         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
1460
1461 2011-10-25  Jim Meyering  <meyering@redhat.com>
1462
1463         maint.mk: fix a bug in sc_prohibit_stddef_without_use
1464         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
1465         after symbols like NULL, size_t, etc.
1466         Reported by Alfred M. Szmidt.
1467
1468         maint.mk: exempt ENODATA from a syntax-check rule
1469         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
1470         from the sc_prohibit_always-defined_macros syntax-check rule.
1471         Add a comment.  See this for more details:
1472         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
1473
1474 2011-10-23  Jim Meyering  <meyering@redhat.com>
1475
1476         fts: close parent dir FD before returning from post-traversal fts_read
1477         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
1478         unlink A, even though an FD open on A remained.  This is suboptimal
1479         (holding a file descriptor open longer than needed), but otherwise not
1480         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
1481         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
1482         that represents a real problem: it causes the removal of A to fail
1483         with e.g., "rm: cannot remove `A': Device or resource busy"
1484
1485         fts visits each directory twice and keeps a cache (fts_fd_ring) of
1486         directory file descriptors.  After completing the final, FTS_DP,
1487         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
1488         cache, but then proceeded to add a new FD to it via the subsequent
1489         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
1490         final file descriptor would be closed only via fts_close's call to
1491         fd_ring_clear.  Now, it is usually closed earlier, via the final
1492         FTS_DP-returning fts_read call.
1493         * lib/fts.c (restore_initial_cwd): New function, converted from
1494         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
1495         Update callers.
1496         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
1497         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
1498
1499 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
1500             Bruno Haible  <bruno@clisp.org>
1501             Jim Meyering  <jim@meyering.net>
1502
1503         readme-release: improve safety of release prep instructions.
1504         * README-release: Don't git pull all branches when only master
1505         is needed for the release process.
1506         Run make maintainer-clean before changing trees and merging.
1507         Don't try to run ./configure right after git pull in case files
1508         that influence the bootstrap process have changed, move the
1509         ./configure step to after running ./bootstrap.
1510         Don't bootstrap "one last time"... it's the first time!
1511
1512 2011-10-22  Bruno Haible  <bruno@clisp.org>
1513
1514         errno, strerror-override: Support for MSVC 10.
1515         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
1516         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
1517         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
1518         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
1519         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
1520         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
1521         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
1522         Assign values compatible with MSVC 10.
1523         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
1524         New macros.
1525         (GNULIB_defined_EWINSOCK): New macro.
1526         * lib/strerror-override.c (strerror_override): Update accordingly.
1527         * lib/strerror-override.h: Likewise.
1528         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
1529         longer equal to the corresponding errno value.
1530         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1531
1532 2011-10-22  Bruno Haible  <bruno@clisp.org>
1533
1534         perror: Recognize when test program crashes.
1535         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
1536         strerror, set gl_cv_func_perror_works to no.
1537         Reported by Daniel Richard G. <skunk@iskunk.org>.
1538
1539         perror: Fix indentation.
1540         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
1541
1542 2011-10-22  Bruno Haible  <bruno@clisp.org>
1543
1544         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
1545         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
1546         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
1547         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
1548         functions, not as a macro.
1549         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
1550         macros.
1551         (isfinite, isinf, isnan, signbit): Check overloaded functions and
1552         absence of macro.
1553         Suggested by Eric Blake.
1554         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1555
1556 2011-10-21  Bruno Haible  <bruno@clisp.org>
1557
1558         relocatable-prog-wrapper: Don't leave object files behind.
1559         * build-aux/install-reloc: Re-synchronize list of .o files to be
1560         removed with list of compilation units.
1561
1562 2011-10-20  Bruno Haible  <bruno@clisp.org>
1563
1564         openpty, posix_openpt: Remove code duplication.
1565         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
1566         * lib/openpty.c: Include <stdlib.h>.
1567         (openpty): Use posix_openpt on all platforms except IRIX.
1568         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
1569
1570 2011-10-20  Bruno Haible  <bruno@clisp.org>
1571
1572         unlockpt: Detect invalid argument.
1573         * lib/unlockpt.c: Include <fcntl.h>.
1574         (unlockpt): Check whether fd is valid, using fcntl().
1575         * modules/unlockpt (Depends-on): Add fcntl-h.
1576
1577 2011-10-20  Bruno Haible  <bruno@clisp.org>
1578
1579         openpty: Avoid compilation error on AIX 6.1.
1580         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
1581
1582 2011-10-20  Bruno Haible  <bruno@clisp.org>
1583
1584         posix_openpt: Support for OpenBSD.
1585         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
1586         (posix_openpt) [OpenBSD]: New code.
1587         * lib/grantpt.c: Include <fcntl.h>.
1588         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
1589         * modules/grantpt (Depends-on): Add fcntl-h.
1590
1591 2011-10-20  Bruno Haible  <bruno@clisp.org>
1592
1593         posix_openpt test: Coding style.
1594         * tests/test-posix_openpt.c: Use GNU coding style.
1595
1596 2011-10-20  Bruno Haible  <bruno@clisp.org>
1597
1598         grantpt: Support --avoid=pt_chown.
1599         * modules/grantpt (Files): Add lib/pty-private.h.
1600
1601 2011-10-20  Bruno Haible  <bruno@clisp.org>
1602
1603         posix_openpt: Fix autoconf macro.
1604         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
1605         unneeded check for _getpty.
1606
1607 2011-10-20  Bruno Haible  <bruno@clisp.org>
1608
1609         openpty: Update comments.
1610         * lib/openpty.c: Add comments about Minix.
1611
1612 2011-10-19  Eric Blake  <eblake@redhat.com>
1613
1614         openpty: relax license
1615         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
1616
1617         pt_chown: use configmake to simplify build
1618         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
1619
1620         ptsname and others: relax license
1621         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
1622         * modules/unlockpt (License): Likewise.
1623         * modules/pt_chown (License): Likewise.
1624         * modules/ptsname (License): Likewise.
1625         * modules/ttyname_r (License): Likewise.
1626
1627 2011-10-19  Jim Meyering  <meyering@redhat.com>
1628
1629         posix_openpt: remove spurious #endif
1630         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
1631
1632 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
1633
1634         maint.mk: Respect $(build_aux) in web-manual rule.
1635         * top/maint.mk (web-manual): Find gen-announce script in user's
1636         $(build_aux) directory instead of hard-coding 'build-aux'.
1637
1638 2011-10-19  Bruno Haible  <bruno@clisp.org>
1639
1640         posix_openpt: Fix compilation error.
1641         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
1642         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
1643         Mention the openpty module as an alternative.
1644
1645 2011-10-19  Bruno Haible  <bruno@clisp.org>
1646
1647         Support for old NeXTstep 3.3 frexp().
1648         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
1649         execution time of the test to 5 seconds.
1650         Reported by Daniel Richard G. <skunk@iskunk.org>.
1651
1652 2011-10-19  Bruno Haible  <bruno@clisp.org>
1653
1654         Support for old NeXTstep 3.3 sed.
1655         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
1656         part, use /.../, not \|...|. Escape periods in the header file name.
1657         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
1658         Reported by Daniel Richard G. <skunk@iskunk.org>.
1659
1660 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1661
1662         Support for old NeXTstep 3.3 gcc.
1663         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
1664         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
1665         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
1666         * lib/spawn.in.h (_Restrict_arr_): Likewise.
1667         * lib/regex.h (_Restrict_arr_): Likewise.
1668         * lib/regex_internal.h (re_token_t): Likewise.
1669         * lib/regexec.c (check_node_accept_bytes): Likewise.
1670         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
1671
1672 2011-10-18  Eric Blake  <eblake@redhat.com>
1673
1674         posix_openpt: new module
1675         * modules/posix_openpt: New module.
1676         * m4/posix_openpt.m4: New file.
1677         * lib/posix_openpt.c: Likewise.
1678         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1679         (gl_STDLIB_H_DEFAULTS): Set defaults.
1680         * modules/stdlib (Makefile.am): Substitute macros.
1681         * lib/stdlib.in.h (posix_openpt): Declare.
1682         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
1683         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
1684         * modules/posix_openpt-tests: New test module.
1685         * tests/test-posix_openpt.c: New test.
1686
1687 2011-10-15  Bruno Haible  <bruno@clisp.org>
1688
1689         xstrtoll: Fix compilation failure.
1690         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
1691         from lib/strtol.c.
1692         * doc/posix-headers/limits.texi: Mention missing numerical limits on
1693         some platforms.
1694         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1695
1696 2011-10-15  Bruno Haible  <bruno@clisp.org>
1697
1698         vasnprintf: Optimize bit search operation.
1699         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
1700         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
1701         gl_DOUBLE_EXPONENT_LOCATION.
1702         * modules/vasnprintf (Files): Add m4/exponentd.m4.
1703         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1704         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1705         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1706         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1707         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1708         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1709         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1710         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
1711
1712 2011-10-15  Bruno Haible  <bruno@clisp.org>
1713
1714         vasnprintf: Fix comments.
1715         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
1716
1717 2011-10-14  Bruno Haible  <bruno@clisp.org>
1718
1719         Tests for module 'integer_length_ll'.
1720         * modules/integer_length_ll-tests: New file.
1721         * tests/test-integer_length_ll.c: New file.
1722
1723         New module 'integer_length_ll'.
1724         * lib/integer_length_ll.c: New file.
1725         * modules/integer_length_ll: New file.
1726
1727 2011-10-14  Bruno Haible  <bruno@clisp.org>
1728
1729         Tests for module 'integer_length_l'.
1730         * modules/integer_length_l-tests: New file.
1731         * tests/test-integer_length_l.c: New file.
1732
1733         New module 'integer_length_l'.
1734         * lib/integer_length_l.c: New file.
1735         * modules/integer_length_l: New file.
1736
1737 2011-10-14  Bruno Haible  <bruno@clisp.org>
1738
1739         Tests for module 'integer_length'.
1740         * modules/integer_length-tests: New file.
1741         * tests/test-integer_length.c: New file.
1742
1743         New module 'integer_length'.
1744         * lib/integer_length.h: New file.
1745         * lib/integer_length.c: New file.
1746         * modules/integer_length: New file.
1747
1748 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1749
1750         popen: Fix dependency conditions.
1751         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
1752
1753 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1754
1755         perror: Fix autoconf test.
1756         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
1757         <stdlib.h> and <string.h>.
1758
1759 2011-10-14  Bruno Haible  <bruno@clisp.org>
1760
1761         ffsl: Optimize on 64-bit platforms.
1762         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
1763         unrolling.
1764
1765 2011-10-13  Bruno Haible  <bruno@clisp.org>
1766
1767         ffsl: Optimize on 32-bit platforms.
1768         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
1769         use ffs() without a loop.
1770
1771         ffsl, ffsll: Optimize for GCC.
1772         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
1773         * lib/ffsl.c (GCC_BUILTIN): New macro.
1774         * lib/ffsll.c (GCC_BUILTIN): Likewise.
1775
1776 2011-10-13  Bruno Haible  <bruno@clisp.org>
1777
1778         ffs, bcopy, memset: Support symbol renaming via config.h.
1779         * lib/ffs.c: Include <config.h>.
1780         * lib/bcopy.c: Likewise.
1781         * lib/memset.c: Likewise.
1782
1783 2011-10-10  Bruno Haible  <bruno@clisp.org>
1784
1785         atanl: Simplify for platforms where 'long double' == 'double'.
1786         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1787         alternative implementation.
1788         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1789         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1790         * modules/atanl (Depends-on): Add atan. Update conditions.
1791
1792 2011-10-10  Bruno Haible  <bruno@clisp.org>
1793
1794         acosl: Simplify for platforms where 'long double' == 'double'.
1795         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1796         alternative implementation.
1797         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1798         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1799         * modules/acosl (Depends-on): Add acos. Update conditions.
1800
1801 2011-10-10  Bruno Haible  <bruno@clisp.org>
1802
1803         asinl: Simplify for platforms where 'long double' == 'double'.
1804         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1805         alternative implementation.
1806         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1807         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1808         * modules/asinl (Depends-on): Add asin. Update conditions.
1809
1810 2011-10-10  Bruno Haible  <bruno@clisp.org>
1811
1812         tanl: Simplify for platforms where 'long double' == 'double'.
1813         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1814         implementation.
1815         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1816         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1817         * modules/tanl (Depends-on): Add tan. Update conditions.
1818         (configure.ac): Don't compile trigl.c if
1819         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1820
1821 2011-10-10  Bruno Haible  <bruno@clisp.org>
1822
1823         cosl: Simplify for platforms where 'long double' == 'double'.
1824         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1825         implementation.
1826         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1827         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1828         * modules/cosl (Depends-on): Add cos. Update conditions.
1829         (configure.ac): Don't compile sincosl.c and trigl.c if
1830         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1831
1832 2011-10-10  Bruno Haible  <bruno@clisp.org>
1833
1834         sinl: Simplify for platforms where 'long double' == 'double'.
1835         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1836         implementation.
1837         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1838         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1839         * modules/sinl (Depends-on): Add sin. Update conditions.
1840         (configure.ac): Don't compile sincosl.c and trigl.c if
1841         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1842
1843 2011-10-10  Bruno Haible  <bruno@clisp.org>
1844
1845         logl: Simplify for platforms where 'long double' == 'double'.
1846         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1847         implementation.
1848         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1849         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1850         * modules/logl (Depends-on): Add log. Update conditions.
1851
1852 2011-10-10  Bruno Haible  <bruno@clisp.org>
1853
1854         expl: Simplify for platforms where 'long double' == 'double'.
1855         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1856         implementation.
1857         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1858         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1859         * modules/expl (Depends-on): Add exp. Update conditions.
1860
1861 2011-10-10  Bruno Haible  <bruno@clisp.org>
1862
1863         sqrtl: Simplify for platforms where 'long double' == 'double'.
1864         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1865         alternative implementation.
1866         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1867         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1868         * modules/sqrtl (Depends-on): Update conditions.
1869
1870 2011-10-10  Bruno Haible  <bruno@clisp.org>
1871
1872         ldexpl: Simplify for platforms where 'long double' == 'double'.
1873         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1874         alternative implementation.
1875         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1876         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1877         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
1878
1879 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
1880
1881         ffsll: set correct witness
1882         * modules/ffsll (configure.ac): Fix typo.
1883
1884 2011-10-10  Bruno Haible  <bruno@clisp.org>
1885
1886         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
1887         * lib/printf-frexpl.c: Include <config.h>.
1888         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1889         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
1890         second time.
1891         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
1892         gl_LONG_DOUBLE_VS_DOUBLE.
1893         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
1894         conditions.
1895
1896 2011-10-10  Bruno Haible  <bruno@clisp.org>
1897
1898         frexpl: Simplify for platforms where 'long double' == 'double'.
1899         * lib/frexpl.c: Include <config.h>.
1900         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1901         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1902         time.
1903         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1904         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1905         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
1906         * modules/frexpl (Depends-on): Add frexp. Update conditions.
1907         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
1908         conditions.
1909
1910 2011-10-10  Jim Meyering  <meyering@redhat.com>
1911
1912         test-renameat: don't leave behind a temporary file
1913         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
1914           ERROR: files left in build directory after distclean:
1915           ./gltests/test-renameat.too
1916           make[1]: *** [distcleancheck] Error 1
1917         Reported by Tom G. Christensen.
1918
1919 2011-10-09  Bruno Haible  <bruno@clisp.org>
1920
1921         rint: Determine RINT_LIBM correctly on AIX 7.
1922         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
1923         directly, not only through a function pointer. Also accept an optional
1924         4th argument with extra code.
1925         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
1926         rintf() call by gcc when optimizing.
1927
1928         mathfunc.m4: Refactor.
1929         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
1930         m4 variable.
1931
1932 2011-10-09  Bruno Haible  <bruno@clisp.org>
1933
1934         rintl: Simplify for platforms where 'long double' == 'double'.
1935         * lib/rintl.c: Include <config.h>.
1936         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1937         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1938         time.
1939         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1940         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1941         * modules/rintl (Depends-on): Add rint. Update conditions.
1942
1943 2011-10-09  Bruno Haible  <bruno@clisp.org>
1944
1945         roundl: Simplify for platforms where 'long double' == 'double'.
1946         * lib/roundl.c: Include <config.h>.
1947         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1948         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1949         time.
1950         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1951         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1952         * modules/roundl (Depends-on): Add round. Update conditions.
1953
1954 2011-10-09  Bruno Haible  <bruno@clisp.org>
1955
1956         truncl: Simplify for platforms where 'long double' == 'double'.
1957         * lib/truncl.c: Include <config.h>.
1958         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1959         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1960         time.
1961         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1962         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1963         * modules/truncl (Depends-on): Add trunc. Update conditions.
1964
1965 2011-10-09  Bruno Haible  <bruno@clisp.org>
1966
1967         ceill: Simplify for platforms where 'long double' == 'double'.
1968         * lib/ceill.c: Include <config.h>.
1969         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1970         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1971         time.
1972         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1973         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1974         * modules/ceill (Depends-on): Add ceil. Update conditions.
1975
1976 2011-10-09  Bruno Haible  <bruno@clisp.org>
1977
1978         floorl: Simplify for platforms where 'long double' == 'double'.
1979         * lib/floorl.c: Include <config.h>.
1980         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1981         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1982         time.
1983         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1984         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1985         * modules/floorl (Depends-on): Add floor. Update conditions.
1986
1987 2011-10-09  Bruno Haible  <bruno@clisp.org>
1988
1989         rint: Fix ordering constraints.
1990         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
1991         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1992         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1993
1994 2011-10-09  Bruno Haible  <bruno@clisp.org>
1995
1996         copysignl: Simplify for platforms where 'long double' == 'double'.
1997         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1998         alternative.
1999         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2000         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2001         * modules/copysignl (Depends-on): Add copysign. Update conditions.
2002
2003 2011-10-09  Bruno Haible  <bruno@clisp.org>
2004
2005         Tests for module 'rintl'.
2006         * modules/rintl-tests: New file.
2007         * tests/test-rintl.c: New file.
2008
2009         New module 'rintl'.
2010         * lib/math.in.h (rintl): New declaration.
2011         * lib/rintl.c: New file.
2012         * m4/rintl.m4: New file.
2013         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
2014         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
2015         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
2016         * modules/rintl: New file.
2017         * tests/test-math-c++.cc: Check the declaration of rintl.
2018         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2019         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
2020         * doc/posix-functions/rintl.texi: Mention the new module.
2021
2022 2011-10-09  Bruno Haible  <bruno@clisp.org>
2023
2024         Tests for module 'rintf'.
2025         * modules/rintf-tests: New file.
2026         * tests/test-rintf.c: New file.
2027
2028         New module 'rintf'.
2029         * lib/math.in.h (rintf): New declaration.
2030         * lib/rintf.c: New file.
2031         * m4/rintf.m4: New file.
2032         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
2033         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
2034         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
2035         * modules/rintf: New file.
2036         * tests/test-math-c++.cc: Check the declaration of rintf.
2037         * doc/posix-functions/rintf.texi: Mention the new module.
2038
2039 2011-10-09  Bruno Haible  <bruno@clisp.org>
2040
2041         rint: Support for MSVC.
2042         * lib/math.in.h (rint): New declaration.
2043         * lib/rint.c: New file.
2044         * m4/rint.m4: New file.
2045         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
2046         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
2047         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
2048         * modules/rint (Description): Fix.
2049         (Files): Add lib/rint.c, m4/rint.m4.
2050         (Depends-on): Add math.
2051         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
2052         gl_MATH_MODULE_INDICATOR.
2053         * tests/test-math-c++.cc: Check the declaration of rint.
2054         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2055         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
2056         * doc/posix-functions/rint.texi: Mention the replacement provided by
2057         the module.
2058
2059         rint tests: More tests.
2060         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
2061         minus-zero.h, infinity.h, nan.h.
2062         (main): Skip the test if the current rounding mode is not standard. Add
2063         tests for negative numbers, minus zero, infinity, NaN.
2064         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
2065         tests/nan.h.
2066         (Depends-on): Add isnand-nolibm.
2067
2068 2011-10-09  Bruno Haible  <bruno@clisp.org>
2069
2070         Tests for module 'copysignl'.
2071         * modules/copysignl-tests: New file.
2072         * tests/test-copysignl.c: New file.
2073
2074         New module 'copysignl'.
2075         * lib/math.in.h (copysignl): New declaration.
2076         * lib/copysignl.c: New file.
2077         * m4/copysignl.m4: New file.
2078         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
2079         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
2080         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
2081         HAVE_COPYSIGNL.
2082         * modules/copysignl: New file.
2083         * tests/test-math-c++.cc: Check the declaration of copysignl.
2084         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2085         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
2086         * doc/posix-functions/copysignl.texi: Mention the new module.
2087
2088 2011-10-09  Bruno Haible  <bruno@clisp.org>
2089
2090         Tests for module 'copysignf'.
2091         * modules/copysignf-tests: New file.
2092         * tests/test-copysignf.c: New file.
2093
2094         New module 'copysignf'.
2095         * lib/math.in.h (copysignf): New declaration.
2096         * lib/copysignf.c: New file.
2097         * m4/copysignf.m4: New file.
2098         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
2099         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
2100         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
2101         HAVE_COPYSIGNF.
2102         * modules/copysignf: New file.
2103         * tests/test-math-c++.cc: Check the declaration of copysignf.
2104         * doc/posix-functions/copysignf.texi: Mention the new module.
2105
2106 2011-10-09  Bruno Haible  <bruno@clisp.org>
2107
2108         Ensure that HAVE_* variables are set to 1 before they are set to 0.
2109         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
2110         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
2111         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2112         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
2113         gl_SIGNAL_H_DEFAULTS.
2114
2115 2011-10-09  Bruno Haible  <bruno@clisp.org>
2116
2117         poll: Make macro safer.
2118         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
2119         ac_cv_header_poll_h is not set.
2120
2121 2011-10-09  Bruno Haible  <bruno@clisp.org>
2122
2123         copysign: Provide replacement.
2124         * lib/math.in.h (copysign): New declaration.
2125         * lib/copysign.c: New file.
2126         * m4/copysign.m4: New file.
2127         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
2128         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
2129         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
2130         HAVE_COPYSIGN.
2131         * modules/copysign (Description): Clarify.
2132         (Files): Add lib/copysign.c, m4/copysign.m4.
2133         (Depends-on): Add math, signbit.
2134         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
2135         gl_MATH_MODULE_INDICATOR.
2136         * tests/test-math-c++.cc: Check the declaration of copysign.
2137         * doc/posix-functions/copysign.texi: Mention the effects of the module
2138         on Minix and MSVC.
2139
2140 2011-10-09  Bruno Haible  <bruno@clisp.org>
2141
2142         isinf: Ensure macro on AIX 5.1.
2143         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
2144         macro.
2145         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
2146
2147 2011-10-09  Bruno Haible  <bruno@clisp.org>
2148
2149         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
2150         * modules/snprintf-posix-tests (configure.ac): Require
2151         gl_LONG_DOUBLE_VS_DOUBLE.
2152         * modules/sprintf-posix-tests (configure.ac): Likewise.
2153         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
2154         * modules/vasprintf-posix-tests (configure.ac): Likewise.
2155         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
2156         * modules/vsprintf-posix-tests (configure.ac): Likewise.
2157         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
2158         tests on platforms where 'long double' is the same as 'double'.
2159         * tests/test-sprintf-posix.h (test_function): Likewise.
2160         * tests/test-vasnprintf-posix.c (test_function): Likewise.
2161         * tests/test-vasprintf-posix.c (test_function): Likewise.
2162
2163         *printf: Fix for platforms where 'long double' == 'double'.
2164         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
2165         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
2166         * modules/dprintf-posix (Files): Add m4/math_h.m4.
2167         * modules/fprintf-posix (Files): Likewise.
2168         * modules/obstack-printf-posix (Files): Likewise.
2169         * modules/snprintf-posix (Files): Likewise.
2170         * modules/sprintf-posix (Files): Likewise.
2171         * modules/vasnprintf (Files): Likewise.
2172         * modules/vasnprintf-posix (Files): Likewise.
2173         * modules/vasprintf-posix (Files): Likewise.
2174         * modules/vdprintf-posix (Files): Likewise.
2175         * modules/vfprintf-posix (Files): Likewise.
2176         * modules/vsnprintf-posix (Files): Likewise.
2177         * modules/vsprintf-posix (Files): Likewise.
2178         * modules/unistdio/u8-vasnprintf (Files): Likewise.
2179         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
2180         * modules/unistdio/u16-vasnprintf (Files): Likewise.
2181         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
2182         * modules/unistdio/u32-vasnprintf (Files): Likewise.
2183         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
2184         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
2185
2186         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
2187         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
2188         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2189         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
2190         'long double'.
2191         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
2192
2193         isinf: Fix for platforms where 'long double' == 'double'.
2194         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
2195         Don't blindly assume 80-bit 'long double'.
2196
2197         isfinite: Fix for platforms where 'long double' == 'double'.
2198         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
2199         Don't blindly assume 80-bit 'long double'.
2200
2201         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
2202         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
2203         * modules/isfinite-tests (configure.ac): Require
2204         gl_LONG_DOUBLE_VS_DOUBLE.
2205         * modules/isinf-tests (configure.ac): Likewise.
2206         * modules/isnan-tests (configure.ac): Likewise.
2207         * modules/isnanl-tests (configure.ac): Likewise.
2208         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
2209         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
2210         tests on platforms where 'long double' is the same as 'double'.
2211         * tests/test-isinf.c (test_isinfl): Likewise.
2212         * tests/test-isnan.c (test_long_double): Likewise.
2213         * tests/test-isnanl.h (main): Likewise.
2214
2215 2011-10-08  Bruno Haible  <bruno@clisp.org>
2216
2217         Tests for module 'tanhf'.
2218         * modules/tanhf-tests: New file.
2219         * tests/test-tanhf.c: New file.
2220
2221         New module 'tanhf'.
2222         * lib/math.in.h (tanhf): New declaration.
2223         * lib/tanhf.c: New file.
2224         * m4/tanhf.m4: New file.
2225         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
2226         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
2227         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
2228         * modules/tanhf: New file.
2229         * tests/test-math-c++.cc: Check the declaration of tanhf.
2230         * doc/posix-functions/tanhf.texi: Mention the new module.
2231
2232         tanh: Use a .m4 file.
2233         * m4/tanh.m4: New file.
2234         * modules/tanh (Files): Add it.
2235         (configure.ac): Just invoke gl_FUNC_TANH.
2236
2237 2011-10-08  Bruno Haible  <bruno@clisp.org>
2238
2239         Tests for module 'coshf'.
2240         * modules/coshf-tests: New file.
2241         * tests/test-coshf.c: New file.
2242
2243         New module 'coshf'.
2244         * lib/math.in.h (coshf): New declaration.
2245         * lib/coshf.c: New file.
2246         * m4/coshf.m4: New file.
2247         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
2248         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
2249         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
2250         * modules/coshf: New file.
2251         * tests/test-math-c++.cc: Check the declaration of coshf.
2252         * doc/posix-functions/coshf.texi: Mention the new module.
2253
2254         cosh: Use a .m4 file.
2255         * m4/cosh.m4: New file.
2256         * modules/cosh (Files): Add it.
2257         (configure.ac): Just invoke gl_FUNC_COSH.
2258
2259 2011-10-08  Bruno Haible  <bruno@clisp.org>
2260
2261         Tests for module 'sinhf'.
2262         * modules/sinhf-tests: New file.
2263         * tests/test-sinhf.c: New file.
2264
2265         New module 'sinhf'.
2266         * lib/math.in.h (sinhf): New declaration.
2267         * lib/sinhf.c: New file.
2268         * m4/sinhf.m4: New file.
2269         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
2270         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
2271         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
2272         * modules/sinhf: New file.
2273         * tests/test-math-c++.cc: Check the declaration of sinhf.
2274         * doc/posix-functions/sinhf.texi: Mention the new module.
2275
2276         sinh: Use a .m4 file.
2277         * m4/sinh.m4: New file.
2278         * modules/sinh (Files): Add it.
2279         (configure.ac): Just invoke gl_FUNC_SINH.
2280
2281 2011-10-08  Bruno Haible  <bruno@clisp.org>
2282
2283         Tests for module 'atan2f'.
2284         * modules/atan2f-tests: New file.
2285         * tests/test-atan2f.c: New file.
2286
2287         New module 'atan2f'.
2288         * lib/math.in.h (atan2f): New declaration.
2289         * lib/atan2f.c: New file.
2290         * m4/atan2f.m4: New file.
2291         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
2292         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
2293         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
2294         * modules/atan2f: New file.
2295         * tests/test-math-c++.cc: Check the declaration of atan2f.
2296         * doc/posix-functions/atan2f.texi: Mention the new module.
2297
2298         atan2: Use a .m4 file.
2299         * m4/atan2.m4: New file.
2300         * modules/atan2 (Files): Add it.
2301         (configure.ac): Just invoke gl_FUNC_ATAN2.
2302
2303 2011-10-08  Bruno Haible  <bruno@clisp.org>
2304
2305         Tests for module 'atanf'.
2306         * modules/atanf-tests: New file.
2307         * tests/test-atanf.c: New file.
2308
2309         New module 'atanf'.
2310         * lib/math.in.h (atanf): New declaration.
2311         * lib/atanf.c: New file.
2312         * m4/atanf.m4: New file.
2313         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
2314         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
2315         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
2316         * modules/atanf: New file.
2317         * tests/test-math-c++.cc: Check the declaration of atanf.
2318         * doc/posix-functions/atanf.texi: Mention the new module.
2319
2320         atan: Use a .m4 file.
2321         * m4/atan.m4: New file.
2322         * modules/atan (Files): Add it.
2323         (configure.ac): Just invoke gl_FUNC_ATAN.
2324
2325 2011-10-08  Bruno Haible  <bruno@clisp.org>
2326
2327         Tests for module 'acosf'.
2328         * modules/acosf-tests: New file.
2329         * tests/test-acosf.c: New file.
2330
2331         New module 'acosf'.
2332         * lib/math.in.h (acosf): New declaration.
2333         * lib/acosf.c: New file.
2334         * m4/acosf.m4: New file.
2335         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
2336         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
2337         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
2338         * modules/acosf: New file.
2339         * tests/test-math-c++.cc: Check the declaration of acosf.
2340         * doc/posix-functions/acosf.texi: Mention the new module.
2341
2342         acos: Use a .m4 file.
2343         * m4/acos.m4: New file.
2344         * modules/acos (Files): Add it.
2345         (configure.ac): Just invoke gl_FUNC_ACOS.
2346
2347 2011-10-08  Bruno Haible  <bruno@clisp.org>
2348
2349         Tests for module 'asinf'.
2350         * modules/asinf-tests: New file.
2351         * tests/test-asinf.c: New file.
2352
2353         New module 'asinf'.
2354         * lib/math.in.h (asinf): New declaration.
2355         * lib/asinf.c: New file.
2356         * m4/asinf.m4: New file.
2357         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
2358         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
2359         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
2360         * modules/asinf: New file.
2361         * tests/test-math-c++.cc: Check the declaration of asinf.
2362         * doc/posix-functions/asinf.texi: Mention the new module.
2363
2364         asin: Use a .m4 file.
2365         * m4/asin.m4: New file.
2366         * modules/asin (Files): Add it.
2367         (configure.ac): Just invoke gl_FUNC_ASIN.
2368
2369 2011-10-08  Bruno Haible  <bruno@clisp.org>
2370
2371         Tests for module 'tanf'.
2372         * modules/tanf-tests: New file.
2373         * tests/test-tanf.c: New file.
2374
2375         New module 'tanf'.
2376         * lib/math.in.h (tanf): New declaration.
2377         * lib/tanf.c: New file.
2378         * m4/tanf.m4: New file.
2379         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
2380         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
2381         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
2382         * modules/tanf: New file.
2383         * tests/test-math-c++.cc: Check the declaration of tanf.
2384         * doc/posix-functions/tanf.texi: Mention the new module.
2385
2386         tan: Use a .m4 file.
2387         * m4/tan.m4: New file.
2388         * modules/tan (Files): Add it.
2389         (configure.ac): Just invoke gl_FUNC_TAN.
2390
2391 2011-10-08  Bruno Haible  <bruno@clisp.org>
2392
2393         Tests for module 'cosf'.
2394         * modules/cosf-tests: New file.
2395         * tests/test-cosf.c: New file.
2396
2397         New module 'cosf'.
2398         * lib/math.in.h (cosf): New declaration.
2399         * lib/cosf.c: New file.
2400         * m4/cosf.m4: New file.
2401         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
2402         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
2403         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
2404         * modules/cosf: New file.
2405         * tests/test-math-c++.cc: Check the declaration of cosf.
2406         * doc/posix-functions/cosf.texi: Mention the new module.
2407
2408         cos: Use a .m4 file.
2409         * m4/cos.m4: New file.
2410         * modules/cos (Files): Add it.
2411         (configure.ac): Just invoke gl_FUNC_COS.
2412
2413 2011-10-08  Bruno Haible  <bruno@clisp.org>
2414
2415         Tests for module 'sinf'.
2416         * modules/sinf-tests: New file.
2417         * tests/test-sinf.c: New file.
2418
2419         New module 'sinf'.
2420         * lib/math.in.h (sinf): New declaration.
2421         * lib/sinf.c: New file.
2422         * m4/sinf.m4: New file.
2423         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
2424         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
2425         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
2426         * modules/sinf: New file.
2427         * tests/test-math-c++.cc: Check the declaration of sinf.
2428         * doc/posix-functions/sinf.texi: Mention the new module.
2429
2430         sin: Use a .m4 file.
2431         * m4/sin.m4: New file.
2432         * modules/sin (Files): Add it.
2433         (configure.ac): Just invoke gl_FUNC_SIN.
2434
2435 2011-10-08  Bruno Haible  <bruno@clisp.org>
2436
2437         Tests for module 'powf'.
2438         * modules/powf-tests: New file.
2439         * tests/test-powf.c: New file.
2440
2441         New module 'powf'.
2442         * lib/math.in.h (powf): New declaration.
2443         * lib/powf.c: New file.
2444         * m4/powf.m4: New file.
2445         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
2446         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
2447         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
2448         * modules/powf: New file.
2449         * tests/test-math-c++.cc: Check the declaration of powf.
2450         * doc/posix-functions/powf.texi: Mention the new module.
2451
2452         pow: Use a .m4 file.
2453         * m4/pow.m4: New file.
2454         * modules/pow (Files): Add it.
2455         (configure.ac): Just invoke gl_FUNC_POW.
2456
2457 2011-10-08  Bruno Haible  <bruno@clisp.org>
2458
2459         Tests for module 'log10f'.
2460         * modules/log10f-tests: New file.
2461         * tests/test-log10f.c: New file.
2462
2463         New module 'log10f'.
2464         * lib/math.in.h (log10f): New declaration.
2465         * lib/log10f.c: New file.
2466         * m4/log10f.m4: New file.
2467         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
2468         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
2469         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
2470         * modules/log10f: New file.
2471         * tests/test-math-c++.cc: Check the declaration of log10f.
2472         * doc/posix-functions/log10f.texi: Mention the new module.
2473
2474         log10: Use a .m4 file.
2475         * m4/log10.m4: New file.
2476         * modules/log10 (Files): Add it.
2477         (configure.ac): Just invoke gl_FUNC_LOG10.
2478
2479 2011-10-08  Bruno Haible  <bruno@clisp.org>
2480
2481         Tests for module 'logf'.
2482         * modules/logf-tests: New file.
2483         * tests/test-logf.c: New file.
2484
2485         New module 'logf'.
2486         * lib/math.in.h (logf): New declaration.
2487         * lib/logf.c: New file.
2488         * m4/logf.m4: New file.
2489         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
2490         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
2491         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
2492         * modules/logf: New file.
2493         * tests/test-math-c++.cc: Check the declaration of logf.
2494         * doc/posix-functions/logf.texi: Mention the new module.
2495
2496         log: Use a .m4 file.
2497         * m4/log.m4: New file.
2498         * modules/log (Files): Add it.
2499         (configure.ac): Just invoke gl_FUNC_LOG.
2500
2501 2011-10-08  Bruno Haible  <bruno@clisp.org>
2502
2503         Tests for module 'expf'.
2504         * modules/expf-tests: New file.
2505         * tests/test-expf.c: New file.
2506
2507         New module 'expf'.
2508         * lib/math.in.h (expf): New declaration.
2509         * lib/expf.c: New file.
2510         * m4/expf.m4: New file.
2511         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
2512         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
2513         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
2514         * modules/expf: New file.
2515         * tests/test-math-c++.cc: Check the declaration of expf.
2516         * doc/posix-functions/expf.texi: Mention the new module.
2517
2518         exp: Use a .m4 file.
2519         * m4/exp.m4: New file.
2520         * modules/exp (Files): Add it.
2521         (configure.ac): Just invoke gl_FUNC_EXP.
2522
2523 2011-10-08  Bruno Haible  <bruno@clisp.org>
2524
2525         Tests for module 'sqrtf'.
2526         * modules/sqrtf-tests: New file.
2527         * tests/test-sqrtf.c: New file.
2528
2529         New module 'sqrtf'.
2530         * lib/math.in.h (sqrtf): New declaration.
2531         * lib/sqrtf.c: New file.
2532         * m4/sqrtf.m4: New file.
2533         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
2534         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
2535         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
2536         * modules/sqrtf: New file.
2537         * tests/test-math-c++.cc: Check the declaration of sqrtf.
2538         * doc/posix-functions/sqrtf.texi: Mention the new module.
2539
2540 2011-10-08  Bruno Haible  <bruno@clisp.org>
2541
2542         Tests: Avoid link failures w.r.t. libintl.
2543         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
2544         $(LIBINTL).
2545         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
2546         $(LIBINTL).
2547         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
2548         against $(LIBINTL).
2549         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
2550         $(LIBINTL).
2551         * modules/openat-tests (Makefile.am): Link test-fchmodat against
2552         $(LIBINTL).
2553         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
2554
2555 2011-10-08  Bruno Haible  <bruno@clisp.org>
2556
2557         pow tests: Defeat compiler optimizations.
2558         * tests/test-pow.c (main): Assign arguments to x and y before use.
2559
2560 2011-10-08  Bruno Haible  <bruno@clisp.org>
2561
2562         gnulib-tool: Improve last commit.
2563         * gnulib-tool (func_modules_transitive_closure): Simplify code.
2564         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
2565         ignore dependencies that are not among the modules list.
2566
2567 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
2568
2569         gnulib-tool: don't follow dependencies to avoided modules
2570         This fixes a bug that is related to the previous one.
2571         * gnulib-tool (func_modules_transitive_closure)
2572         (func_emit_autoconf_snippets):
2573         Check whether a dependency is acceptable before using it.
2574         (--extract-dependencies): Report an error if --avoid is also used,
2575         since this combination of options is not yet supported.
2576
2577         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
2578         Problem reported by Peter Dyballa in
2579         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
2580         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
2581         when echoing "$condition".
2582
2583 2011-10-07  Bruno Haible  <bruno@clisp.org>
2584
2585         Fix documentation about math functions on MacOS X.
2586         * doc/posix-functions/exp2.texi: Don't say the function is missing on
2587         MacOS X 10.5.
2588         * doc/posix-functions/fdim.texi: Likewise.
2589         * doc/posix-functions/feclearexcept.texi: Likewise.
2590         * doc/posix-functions/fegetenv.texi: Likewise.
2591         * doc/posix-functions/fegetround.texi: Likewise.
2592         * doc/posix-functions/feholdexcept.texi: Likewise.
2593         * doc/posix-functions/feraiseexcept.texi: Likewise.
2594         * doc/posix-functions/fesetenv.texi: Likewise.
2595         * doc/posix-functions/fesetround.texi: Likewise.
2596         * doc/posix-functions/fetestexcept.texi: Likewise.
2597         * doc/posix-functions/feupdateenv.texi: Likewise.
2598         * doc/posix-functions/fmax.texi: Likewise.
2599         * doc/posix-functions/fmin.texi: Likewise.
2600         * doc/posix-functions/log2.texi: Likewise.
2601         * doc/posix-functions/modff.texi: Likewise.
2602         * doc/posix-functions/nan.texi: Likewise.
2603         * doc/posix-functions/nanf.texi: Likewise.
2604         * doc/posix-functions/nextafterf.texi: Likewise.
2605         * doc/posix-functions/remquo.texi: Likewise.
2606
2607 2011-10-07  Bruno Haible  <bruno@clisp.org>
2608
2609         modff: Drop assumption about library that defines modff.
2610         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
2611         AC_CHECK_FUNCS.
2612         * modules/modff (Files): Add m4/mathfunc.m4.
2613
2614 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
2615
2616         raise tests: Avoid a GCC warning.
2617         * tests/test-raise.c (handler): Use _Noreturn.
2618
2619 2011-10-07  Bruno Haible  <bruno@clisp.org>
2620
2621         Tests for module 'ldexpf'.
2622         * modules/ldexpf-tests: New file.
2623         * tests/test-ldexpf.c: New file.
2624
2625         New module 'ldexpf'.
2626         * lib/math.in.h (ldexpf): New declaration.
2627         * lib/ldexpf.c: New file.
2628         * m4/ldexpf.m4: New file.
2629         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
2630         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
2631         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
2632         * modules/ldexpf: New file.
2633         * tests/test-math-c++.cc: Check the declaration of ldexpf.
2634         * doc/posix-functions/ldexpf.texi: Mention the new module.
2635
2636 2011-10-06  Bruno Haible  <bruno@clisp.org>
2637
2638         frexpf: Work around problems on IRIX and mingw.
2639         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
2640         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
2641         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
2642         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
2643         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
2644         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
2645         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
2646
2647 2011-10-06  Bruno Haible  <bruno@clisp.org>
2648
2649         fabsf: Drop assumption about library that defines fabsf.
2650         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
2651         AC_CHECK_FUNCS.
2652         * modules/fabsf (Files): Add m4/mathfunc.m4.
2653
2654 2011-10-06  Bruno Haible  <bruno@clisp.org>
2655
2656         frexpf: Drop assumption about library that defines frexpf.
2657         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
2658         'int *', 'float *', 'long double *', 'float', 'long double'.
2659         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
2660         AC_CHECK_FUNCS.
2661         * modules/frexpf (Files): Add m4/mathfunc.m4.
2662
2663         Tests for module 'frexpf'.
2664         * modules/frexpf-tests: New file.
2665         * tests/test-frexpf.c: New file.
2666
2667         New module 'frexpf'.
2668         * lib/math.in.h (frexpf): New declaration.
2669         * lib/frexpf.c: New file.
2670         * m4/frexpf.m4: New file.
2671         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
2672         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
2673         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
2674         * modules/frexpf: New file.
2675         * tests/test-math-c++.cc: Check the declaration of frexpf.
2676         * doc/posix-functions/frexpf.texi: Mention the new module.
2677
2678 2011-10-06  Bruno Haible  <bruno@clisp.org>
2679
2680         math: Sort function declarations of math.in.h.
2681         * lib/math.in.h (frexp, logb): Move declarations.
2682
2683 2011-10-05  Bruno Haible  <bruno@clisp.org>
2684
2685         Tests for module 'modff'.
2686         * modules/modff-tests: New file.
2687         * tests/test-modff.c: New file.
2688
2689         New module 'modff'.
2690         * lib/math.in.h (modff): New declaration.
2691         * lib/modff.c: New file.
2692         * m4/modff.m4: New file.
2693         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
2694         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
2695         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
2696         * modules/modff: New file.
2697         * tests/test-math-c++.cc: Check the declaration of modff.
2698         * doc/posix-functions/modff.texi: Mention the new module.
2699
2700         modf tests: Make test sharper.
2701         * tests/test-modf.c (main): Strengthen upper bound.
2702
2703         modf: Use a .m4 file.
2704         * m4/modf.m4: New file.
2705         * modules/modf (Files): Add it.
2706         (configure.ac): Just invoke gl_FUNC_MODF.
2707
2708 2011-10-05  Bruno Haible  <bruno@clisp.org>
2709
2710         Tests for module 'fmodf'.
2711         * modules/fmodf-tests: New file.
2712         * tests/test-fmodf.c: New file.
2713
2714         New module 'fmodf'.
2715         * lib/math.in.h (fmodf): New declaration.
2716         * lib/fmodf.c: New file.
2717         * m4/fmodf.m4: New file.
2718         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
2719         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
2720         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
2721         * modules/fmodf: New file.
2722         * tests/test-math-c++.cc: Check the declaration of fmodf.
2723         * doc/posix-functions/fmodf.texi: Mention the new module.
2724
2725         fmod: Use a .m4 file.
2726         * m4/fmod.m4: New file.
2727         * modules/fmod (Files): Add it.
2728         (configure.ac): Just invoke gl_FUNC_FMOD.
2729
2730 2011-10-05  Bruno Haible  <bruno@clisp.org>
2731
2732         Tests for module 'fabsf'.
2733         * modules/fabsf-tests: New file.
2734         * tests/test-fabsf.c: New file.
2735
2736         New module 'fabsf'.
2737         * lib/math.in.h (fabsf): New declaration.
2738         * lib/fabsf.c: New file.
2739         * m4/fabsf.m4: New file.
2740         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
2741         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
2742         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
2743         * modules/fabsf: New file.
2744         * tests/test-math-c++.cc: Check the declaration of fabsf.
2745         * doc/posix-functions/fabsf.texi: Mention the new module.
2746
2747         fabs: Use a .m4 file.
2748         * m4/fabs.m4: New file.
2749         * modules/fabs (Files): Add it.
2750         (configure.ac): Just invoke gl_FUNC_FABS.
2751
2752 2011-10-05  Jim Meyering  <meyering@redhat.com>
2753
2754         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
2755         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
2756         ls -lL regression introduced in coreutils-8.12, it does so at the
2757         cost of an additional stat call in the common case.  Besides, now
2758         that the kernel change that prompted commit 95f7c57f has been reverted
2759         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
2760         we have no use for commit 95f7c57f, "file-has-acl: use
2761         acl_extended_file_nofollow if available".
2762
2763 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
2764
2765         file-has-acl: revert unintended change in behavior of ls -L
2766         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
2767         derived from...
2768         (file_has_acl): ...code here.  Call it.
2769         This problem was introduced with 2011-07-22 commit 95f7c57f,
2770         "file-has-acl: use acl_extended_file_nofollow if available".
2771         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
2772
2773 2011-10-03  Bruno Haible  <bruno@clisp.org>
2774
2775         poll: Avoid link errors on MSVC.
2776         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
2777         * modules/poll (Depends-on): Add sockets.
2778         (Link): New section.
2779         * NEWS: Mention the change.
2780         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
2781         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
2782         $(LIB_POLL) instead of $(LIBSOCKET).
2783
2784 2011-10-03  Bruno Haible  <bruno@clisp.org>
2785
2786         sys_select tests: Fix link error on MSVC 9.
2787         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
2788         with $(LIB_SELECT) instead of $(LIBSOCKET).
2789
2790 2011-10-03  Bruno Haible  <bruno@clisp.org>
2791
2792         sys_select: Fix compilation error on mingw.
2793         * lib/sys_select.in.h: On native Windows, include <io.h>.
2794
2795 2011-10-03  Bruno Haible  <bruno@clisp.org>
2796
2797         wmemset: Support for MSVC.
2798         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
2799         whether wmemset() exists.
2800
2801 2011-10-03  Bruno Haible  <bruno@clisp.org>
2802
2803         wmemmove: Support for MSVC.
2804         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
2805         whether wmemmove() exists.
2806
2807 2011-10-03  Bruno Haible  <bruno@clisp.org>
2808
2809         wmemcpy: Support for MSVC.
2810         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
2811         whether wmemcpy() exists.
2812
2813 2011-10-03  Bruno Haible  <bruno@clisp.org>
2814
2815         wmemcmp: Support for MSVC.
2816         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
2817         whether wmemcmp() exists.
2818
2819 2011-10-03  Bruno Haible  <bruno@clisp.org>
2820
2821         wmemchr: Support for MSVC.
2822         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
2823         whether wmemchr() exists.
2824
2825 2011-10-03  Bruno Haible  <bruno@clisp.org>
2826
2827         glthread/*, strsignal: Support for MSVC.
2828         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
2829         including <winsock.h> on MSVC 9.
2830         * lib/glthread/lock.h: Likewise.
2831         * lib/glthread/thread.h: Likewise.
2832         * lib/glthread/tls.h: Likewise.
2833         * lib/glthread/yield.h: Likewise.
2834         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
2835         if HAVE_UNISTD_H is false.
2836         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
2837
2838 2011-10-03  Bruno Haible  <bruno@clisp.org>
2839
2840         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
2841         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
2842         Set to 100000.
2843
2844 2011-10-03  Bruno Haible  <bruno@clisp.org>
2845
2846         acl: Fix specification.
2847         * lib/file-has-acl.c (file_has_acl): Fix specification.
2848
2849 2011-10-03  Bruno Haible  <bruno@clisp.org>
2850
2851         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
2852         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
2853         (compute_curr_prefix, shared_library_fullname,
2854         find_shared_library_fullname, get_shared_library_fullname, relocate):
2855         Use it together with PIC && INSTALLDIR.
2856         Reported by <jojelino@gmail.com>
2857         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
2858
2859 2011-10-01  Jim Meyering  <meyering@redhat.com>
2860
2861         maint.mk: adjust a release-related rule not to require use of gzip
2862         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
2863         Instead, check each file in $(DIST_ARCHIVES).  This is better for
2864         projects that build only .tar.xz files.  Also fix an erroneous test.
2865
2866         test-linkat: don't leave behind a temporary file
2867         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
2868         Otherwise, coreutils' "make distcheck" would fail with this:
2869           Only in /c/cu/tests/torture/coreutils/test/\
2870             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
2871           make[2]: *** [my-distcheck] Error 1
2872
2873         float, math: add omitted file
2874         * lib/itold.c: Add file, required for yesterday's float change.
2875
2876 2011-10-01  Bruno Haible  <bruno@clisp.org>
2877
2878         isinf: Fix for OpenBSD/x86.
2879         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
2880         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
2881         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
2882
2883 2011-10-01  Bruno Haible  <bruno@clisp.org>
2884
2885         isfinite: Fix syntax error in configure test.
2886         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
2887
2888         isfinite: Fix typo.
2889         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
2890         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
2891
2892 2011-10-01  Bruno Haible  <bruno@clisp.org>
2893
2894         nonblocking tests: Fix test failure on Linux/IA-64.
2895         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
2896         Set to 270000.
2897
2898 2011-10-01  Bruno Haible  <bruno@clisp.org>
2899
2900         mkfifoat tests: Fix a test failure on mingw.
2901         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
2902         with error ENOSYS.
2903
2904 2011-09-30  Bruno Haible  <bruno@clisp.org>
2905
2906         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
2907         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
2908         'long double'. Set REPLACE_ITOLD.
2909         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
2910         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
2911         * lib/itold.c: New file.
2912         * modules/float (Files): Add lib/itold.c.
2913         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
2914         (Makefile.am): Substitute REPLACE_ITOLD.
2915         * modules/math (Depends-on): Add float.
2916         (Makefile.am): Substitute REPLACE_ITOLD.
2917         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
2918         * doc/posix-headers/math.texi: Likewise.
2919         * doc/posix-functions/logl.texi: Likewise.
2920
2921 2011-09-30  Bruno Haible  <bruno@clisp.org>
2922
2923         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
2924         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
2925         Set to 140000.
2926
2927 2011-09-30  Bruno Haible  <bruno@clisp.org>
2928
2929         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
2930         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
2931         invocation, say "right after AC_PROG_CC_STDC", not "right after
2932         AC_PROG_CC".
2933         Reported by Gary V. Vaughan <gary@gnu.org>.
2934
2935 2011-09-30  Bruno Haible  <bruno@clisp.org>
2936
2937         Centralize C99 requirement.
2938         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
2939         * modules/stdarg (configure.ac-early): Invoke it instead of
2940         AC_PROG_CC_STDC.
2941         Reported by Gary V. Vaughan and Paul Eggert.
2942
2943 2011-09-29  Bruno Haible  <bruno@clisp.org>
2944
2945         float: Fix LDBL_MAX value on Linux/PowerPC.
2946         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
2947         on Linux/PowerPC.
2948         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
2949         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
2950         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
2951         platform.
2952         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
2953
2954 2011-09-29  Bruno Haible  <bruno@clisp.org>
2955
2956         doc: Improve doc about gl_EARLY.
2957         * doc/gnulib-tool.texi (Initial import): Mention where to place an
2958         AC_PROG_CC_STDC invocation.
2959         Reported by Gary V. Vaughan <gary@gnu.org>.
2960
2961 2011-09-28  Bruno Haible  <bruno@clisp.org>
2962
2963         fgetc, fputc, fread, fwrite tests: Fix link error.
2964         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
2965         on non-MSVC platforms.
2966         * tests/test-fputc.c (main): Likewise.
2967         * tests/test-fread.c (main): Likewise.
2968         * tests/test-fwrite.c (main): Likewise.
2969         Reported by Jim Meyering.
2970
2971 2011-09-27  Bruno Haible  <bruno@clisp.org>
2972
2973         fputc, fwrite tests: Avoid test failure on MSVC.
2974         * tests/test-fgetc.c: Include msvc-inval.h.
2975         (main): Invoke gl_msvc_inval_ensure_handler.
2976         * tests/test-fputc.c: Include msvc-inval.h.
2977         (main): Invoke gl_msvc_inval_ensure_handler.
2978         * tests/test-fread.c: Include msvc-inval.h.
2979         (main): Invoke gl_msvc_inval_ensure_handler.
2980         * tests/test-fwrite.c: Include msvc-inval.h.
2981         (main): Invoke gl_msvc_inval_ensure_handler.
2982         * modules/fgetc-tests (Depends-on): Add msvc-inval.
2983         * modules/fputc-tests (Depends-on): Likewise.
2984         * modules/fread-tests (Depends-on): Likewise.
2985         * modules/fwrite-tests (Depends-on): Likewise.
2986
2987 2011-09-27  Bruno Haible  <bruno@clisp.org>
2988
2989         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
2990         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
2991         (raise): Remove older, duplicated declaration.
2992         (_gl_raise_SIGPIPE): New declaration.
2993         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
2994         (rpl_raise): Remove function.
2995         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
2996         a gnulib-defined SIGPIPE here.
2997         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
2998         'sigprocmask' has detected missing signal-blocking and the module
2999         'sigpipe' is enabled.
3000         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
3001
3002 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
3003
3004         base64-tests: avoid memory leak
3005         * tests/test-base64.c (main): Plug memory leak.
3006
3007         base32: new module
3008         * modules/base32: New module.
3009         * lib/base32.c: New file.
3010         * lib/base32.h: Likewise.
3011         * m4/base32.m4: Likewise.
3012         * modules/base32-tests: New test.
3013         * tests/test-base32.c: Likewise.
3014         * MODULES.html.sh (Misc): Mention it.
3015
3016 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3017
3018         gnulib: use more-standard license notice wording
3019         * gnulib-tool (func_emit_copyright_notice): When emitting a
3020         license notice into a file, use the standard wording as suggested
3021         by the current information for GNU maintainers, except say "file"
3022         rather than "program".  The new wording gives a license version
3023         number, which addresses an issue raised by Glenn Morris in
3024         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
3025         * m4/onceonly.m4: Use that same wording here, too.
3026
3027         dup2: minor simplification
3028         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
3029         as lib/dup2.c no longer uses 'inline'.
3030
3031 2011-09-25  Bruno Haible  <bruno@clisp.org>
3032
3033         strings: Fix compilation error on MSVC.
3034         * lib/strings.in.h: Include <stddef.h> for size_t.
3035
3036 2011-09-25  Bruno Haible  <bruno@clisp.org>
3037
3038         fflush et al.: Document limitation on MSVC.
3039         * doc/posix-functions/fflush.texi: Document possible crash in handling
3040         mode other than DEFAULT_HANDLING.
3041         * doc/posix-functions/fgetc.texi: Likewise.
3042         * doc/posix-functions/fputc.texi: Likewise.
3043         * doc/posix-functions/fread.texi: Likewise.
3044         * doc/posix-functions/fwrite.texi: Likewise.
3045
3046 2011-09-25  Bruno Haible  <bruno@clisp.org>
3047
3048         msvc-inval: Allow three invalid parameter handling modes.
3049         * lib/msvc-inval.h: Don't include <stdlib.h> here.
3050         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
3051         macros.
3052         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
3053         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
3054         SANE_LIBRARY_HANDLING as a no-op.
3055         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
3056         <stdlib.h>.
3057         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
3058
3059 2011-09-25  Bruno Haible  <bruno@clisp.org>
3060
3061         msvc-inval: Make handler multithread-safe.
3062         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
3063         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
3064         declarations.
3065         (gl_msvc_inval_current): New declaration.
3066         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
3067         Operate on the structure returned by gl_msvc_inval_current().
3068         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
3069         Remove varaiables.
3070         (tls_index, tls_initialized): New variables.
3071         (not_per_thread): New variable.
3072         (gl_msvc_inval_current): New function.
3073         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
3074         returned by gl_msvc_inval_current().
3075
3076 2011-09-25  Bruno Haible  <bruno@clisp.org>
3077
3078         msvc-inval: Install handler globally.
3079         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
3080         !_MSC_VER.
3081         (gl_msvc_invalid_parameter_handler): Remove declaration.
3082         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
3083         declarations.
3084         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
3085         Install the handler globally, don't uninstall it.
3086         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
3087         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
3088         currently valid, call RaiseException instead.
3089         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
3090         for !_MSC_VER.
3091
3092 2011-09-25  Bruno Haible  <bruno@clisp.org>
3093
3094         strerror_r-posix: Fix for MSVC 9.
3095         * lib/strerror_r.c (local_snprintf): New function.
3096         (snprintf): Define to local_snprintf, not to _snprintf.
3097
3098 2011-09-25  Bruno Haible  <bruno@clisp.org>
3099
3100         ftruncate: Support for MSVC 9.
3101         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
3102         (chsize_nothrow): New function.
3103         (chsize): Redefine as a macro.
3104         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
3105         * modules/ftruncate (Depends-on): Add msvc-inval.
3106
3107 2011-09-25  Bruno Haible  <bruno@clisp.org>
3108
3109         New module 'fstat'.
3110         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
3111         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
3112         * lib/fchdir.c (rpl_fstat): Remove function.
3113         * m4/fstat.m4: New file.
3114         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
3115         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
3116         declared.
3117         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
3118         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
3119         * modules/fstat: New file.
3120         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
3121         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
3122         is set.
3123         * doc/posix-functions/fstat.texi: Mention the new module and the
3124         problem on MSVC.
3125         * NEWS: Mention the change.
3126         * modules/acl (Depends-on): Add fstat.
3127         * modules/chdir-safer (Depends-on): Likewise.
3128         * modules/chown (Depends-on): Likewise.
3129         * modules/copy-file (Depends-on): Likewise.
3130         * modules/fchdir (Depends-on): Likewise.
3131         * modules/fdopendir (Depends-on): Likewise.
3132         * modules/fopen (Depends-on): Likewise.
3133         * modules/fts (Depends-on): Likewise.
3134         * modules/getcwd (Depends-on): Likewise.
3135         * modules/isapipe (Depends-on): Likewise.
3136         * modules/linkat (Depends-on): Likewise.
3137         * modules/lseek (Depends-on): Likewise.
3138         * modules/mkdir-p (Depends-on): Likewise.
3139         * modules/open (Depends-on): Likewise.
3140         * modules/openat (Depends-on): Likewise.
3141         * modules/read-file (Depends-on): Likewise.
3142         * modules/renameat (Depends-on): Likewise.
3143         * modules/utimens (Depends-on): Likewise.
3144
3145 2011-09-25  Bruno Haible  <bruno@clisp.org>
3146
3147         linkat: Fix compilation on MSVC 9.
3148         * lib/linkat.c: Don't include <stdint.h>.
3149
3150 2011-09-25  Bruno Haible  <bruno@clisp.org>
3151
3152         fclose: Support for MSVC 9.
3153         * lib/fclose.c: Include msvc-inval.h.
3154         (fclose_nothrow): New function.
3155         (rpl_fclose): Use it.
3156         * modules/fclose (Depends-on): Add msvc-inval.
3157         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
3158
3159 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
3160
3161         dup2: minor simplifications
3162         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
3163         that it's a performance win.
3164         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
3165         ! defined __CYGWIN__)" to "ifdef F_GETFL".
3166
3167 2011-09-24  Jim Meyering  <meyering@redhat.com>
3168
3169         test-futimens: avoid a warning from gcc -Wshadow
3170         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
3171         to avoid a shadowing warning.
3172
3173 2011-09-24  Bruno Haible  <bruno@clisp.org>
3174
3175         fdopen: Support for MSVC 9.
3176         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
3177         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
3178         * lib/fdopen.c: Include msvc-inval.h.
3179         (fdopen_nothrow): New function.
3180         (rpl_fdopen): Use it.
3181         * modules/fdopen (Depends-on): Add msvc-inval.
3182         * modules/fclose-tests (Depends-on): Add fdopen.
3183         * modules/fflush-tests (Depends-on): Likewise.
3184         * modules/fgetc-tests (Depends-on): Likewise.
3185         * modules/fputc-tests (Depends-on): Likewise.
3186         * modules/fread-tests (Depends-on): Likewise.
3187         * modules/freopen-tests (Depends-on): Likewise.
3188         * modules/fseeko-tests (Depends-on): Likewise.
3189         * modules/ftello-tests (Depends-on): Likewise.
3190         * modules/fwrite-tests  (Depends-on): Likewise.
3191         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
3192
3193 2011-09-24  Bruno Haible  <bruno@clisp.org>
3194
3195         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
3196         * modules/fgetc-tests (Depends-on): Add unistd.
3197         * modules/fputc-tests (Depends-on): Likewise.
3198         * modules/fread-tests (Depends-on): Likewise.
3199         * modules/fwrite-tests (Depends-on): Likewise.
3200
3201 2011-09-24  Bruno Haible  <bruno@clisp.org>
3202
3203         dup: Simplify autoconf test.
3204         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
3205         on gl_MSVC_INVAL's result.
3206
3207 2011-09-24  Bruno Haible  <bruno@clisp.org>
3208
3209         Tests for function fwrite().
3210         * modules/fwrite-tests: New file.
3211         * tests/test-fwrite.c: New file.
3212         * modules/stdio-tests (Depends-on): Add fwrite-tests.
3213
3214         Tests for function fread().
3215         * modules/fread-tests: New file.
3216         * tests/test-fread.c: New file.
3217         * modules/stdio-tests (Depends-on): Add fread-tests.
3218
3219         Activate fputc tests.
3220         * modules/stdio-tests (Depends-on): Add fputc-tests.
3221
3222         Enhance fgetc, fputc tests.
3223         * tests/test-fgetc.c (main): Also test the stream's error indicator.
3224         * tests/test-fputc.c (main): Likewise.
3225
3226 2011-09-24  Bruno Haible  <bruno@clisp.org>
3227
3228         write: Support for MSVC 9.
3229         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3230         is not 1.
3231         * lib/write.c (write_nothrow): New function.
3232         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
3233         not 1. Use write_nothrow.
3234         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
3235         invalid parameter handler.
3236         (gl_PREREQ_WRITE): New macro.
3237         * modules/write (Depends-on): Add msvc-inval.
3238         (configure.ac): Invoke gl_PREREQ_WRITE.
3239         * doc/posix-functions/write.texi: Mention the problem on MSVC.
3240
3241 2011-09-24  Bruno Haible  <bruno@clisp.org>
3242
3243         read: Fix last commit.
3244         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
3245
3246 2011-09-24  Bruno Haible  <bruno@clisp.org>
3247
3248         dup2: Fix last commit.
3249         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
3250         (rpl_dup2): Disable fcntl workaround on native Windows.
3251
3252         sigprocmask: Make code safer.
3253         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
3254         section that changes macro definitions for this compilation unit.
3255
3256 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
3257
3258         dup2: clarify by coalescing Windows-specific material
3259         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
3260         "msvc-nothrow.h"' to the Windows-specific section, so that the
3261         Emacs source need not contain these include files.
3262         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
3263         Windows-specific fixes into this function rather than just the
3264         nothrow fix, as this shortens and clarifies the code.  Always
3265         define as a function, as that's a bit cleaner than having it be
3266         sometimes a function and sometimes a macro.
3267         (rpl_dup2): Move the Windows-specific stuff out of here and into
3268         ms_windows_dup2.  Don't protect the Haiku-related fix with
3269         "#if !defined __linux__", as the same code also works around
3270         a Linux kernel bug, and it doesn't add any system calls on any
3271         platform.  Add comment about FreeBSD 6.1.
3272
3273         sigprocmask: move #include directive
3274         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
3275         Windows-specific section, so that the Emacs source need not
3276         contain msvc-inval.h.
3277
3278 2011-09-23  Bruno Haible  <bruno@clisp.org>
3279
3280         read: Support for MSVC 9.
3281         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3282         is not 1.
3283         * lib/read.c (read_nothrow): New function.
3284         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
3285         read_nothrow.
3286         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
3287         invalid parameter handler.
3288         (gl_PREREQ_READ): New macro.
3289         * modules/read (Depends-on): Add msvc-inval.
3290         (configure.ac): Invoke gl_PREREQ_READ.
3291         * doc/posix-functions/read.texi: Mention the problem on MSVC.
3292
3293 2011-09-23  Bruno Haible  <bruno@clisp.org>
3294
3295         close: Support for MSVC 9.
3296         * lib/close.c: Include <errno.h>, msvc-inval.h.
3297         (close_nothrow): New function.
3298         (rpl_close): Use it.
3299         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
3300         invalid parameter handler.
3301         * modules/close (Depends-on): Add msvc-inval.
3302         * modules/dup2-tests (Depends-on): Add close.
3303         * modules/dup3-tests (Depends-on): Likewise.
3304         * modules/fcntl-tests (Depends-on): Likewise.
3305         * modules/spawn-pipe-tests (Depends-on): Likewise.
3306         * modules/unistd-safer-tests (Depends-on): Likewise.
3307         * doc/posix-functions/close.texi: Mention the problem on MSVC.
3308
3309 2011-09-23  Bruno Haible  <bruno@clisp.org>
3310
3311         New module 'dup'.
3312         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
3313         Allow replacement.
3314         * lib/dup.c: New file.
3315         * lib/fchdir.c (rpl_dup): Remove function.
3316         * m4/dup.m4: New file.
3317         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
3318         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
3319         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
3320         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
3321         * modules/dup: New file.
3322         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
3323         'dup' module is in use.
3324         * modules/fdopendir (Depends-on): Add dup.
3325         * modules/fdutimensat-tests (Depends-on): Likewise.
3326         * modules/fts (Depends-on): Likewise.
3327         * modules/futimens-tests (Depends-on): Likewise.
3328         * modules/posix_spawnp-tests (Depends-on): Likewise.
3329         * modules/unistd-safer-tests (Depends-on): Likewise.
3330         * modules/utimens-tests (Depends-on): Likewise.
3331         * doc/posix-functions/dup.texi: Mention the new module and the problem
3332         on MSVC.
3333
3334 2011-09-23  Bruno Haible  <bruno@clisp.org>
3335
3336         getdtablesize: Support for MSVC 9.
3337         * lib/getdtablesize.c: Include msvc-inval.h.
3338         (_setmaxstdio_nothrow): New function.
3339         (_setmaxstdio): Redefine it.
3340         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
3341         * modules/getdtablesize (Depends-on): Add msvc-inval.
3342         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
3343
3344 2011-09-23  Bruno Haible  <bruno@clisp.org>
3345
3346         signal-h: Rename from signal.
3347         * modules/signal-h: Renamed from modules/signal.
3348         * modules/pthread_sigmask (Depends-on): Update.
3349         * modules/raise (Depends-on): Likewise.
3350         * modules/sigaction (Depends-on): Likewise.
3351         * modules/sigpipe (Depends-on): Likewise.
3352         * modules/sigprocmask (Depends-on): Likewise.
3353         * modules/sys_select (Depends-on): Likewise.
3354         * modules/signal-h-tests: Renamed from modules/signal-tests.
3355         (Files, Depends-on, Makefile.am): Update.
3356         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
3357         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
3358         (Files, Makefile.am): Update.
3359         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
3360         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
3361         * modules/signal: New placeholder file.
3362         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
3363         * doc/posix-headers/signal.texi: Update.
3364         * NEWS: Mention the change.
3365
3366 2011-09-23  Bruno Haible  <bruno@clisp.org>
3367
3368         sigprocmask: Avoid crashes through signal() on MSVC 9.
3369         * lib/sigprocmask.c: Include msvc-inval.h.
3370         (signal_nothrow): New function.
3371         (signal): Redefine it.
3372         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
3373         * modules/sigprocmask (Depends-on): Add msvc-inval.
3374         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
3375
3376 2011-09-23  Bruno Haible  <bruno@clisp.org>
3377
3378         Tests for module 'raise'.
3379         * modules/raise-tests: New file.
3380         * tests/test-raise.c: New file.
3381
3382         raise: Support for MSVC.
3383         * lib/signal.in.h (raise): New declaration.
3384         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
3385         for native Windows platforms.
3386         * m4/raise.m4: New file.
3387         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
3388         HAVE_RAISE, REPLACE_RAISE.
3389         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
3390         REPLACE_RAISE.
3391         * modules/raise (Status, Notice): Remove fields.
3392         (Files): Add m4/raise.m4.
3393         (Depends-on): Add signal, msvc-inval.
3394         (configure.ac): Use the common idioms.
3395         (Maintainer): Add me.
3396         * tests/test-signal-c++.cc: Check the signature of raise.
3397         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
3398
3399 2011-09-23  Bruno Haible  <bruno@clisp.org>
3400
3401         pipe2: Fix compilation on pre-C99 compilers.
3402         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
3403
3404 2011-09-23  Bruno Haible  <bruno@clisp.org>
3405
3406         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
3407         * lib/msvc-nothrow.h: New file.
3408         * lib/msvc-nothrow.c: New file.
3409         * m4/msvc-nothrow.m4: New file.
3410         * modules/msvc-nothrow: New file.
3411         * lib/dup2.c: Include msvc-nothrow.h.
3412         (rpl_dup2): No need to protect _get_osfhandle call here.
3413         * lib/accept4.c: Include msvc-nothrow.h.
3414         * lib/error.c: Likewise.
3415         * lib/fcntl.c: Likewise.
3416         * lib/lseek.c: Likewise.
3417         * lib/nonblocking.c: Likewise.
3418         * lib/poll.c: Likewise.
3419         * lib/read.c: Likewise.
3420         * lib/select.c: Likewise.
3421         * lib/sockets.h: Likewise.
3422         * lib/sockets.c: Likewise.
3423         * lib/stdio-read.c: Likewise.
3424         * lib/stdio-write.c: Likewise.
3425         * lib/write.c: Likewise.
3426         * lib/w32sock.h: Likewise.
3427         * lib/w32spawn.h: Likewise.
3428         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
3429         * lib/fsync.c: Likewise.
3430         * lib/isapipe.c: Likewise.
3431         * modules/dup2 (Depends-on): Add msvc-nothrow.
3432         * modules/accept4 (Depends-on): Likewise.
3433         * modules/error (Depends-on): Likewise.
3434         * modules/fcntl (Depends-on): Likewise.
3435         * modules/lseek (Depends-on): Likewise.
3436         * modules/nonblocking (Depends-on): Likewise.
3437         * modules/poll (Depends-on): Likewise.
3438         * modules/read (Depends-on): Likewise.
3439         * modules/select (Depends-on): Likewise.
3440         * modules/sockets (Depends-on): Likewise.
3441         * modules/sigpipe (Depends-on): Likewise.
3442         * modules/write (Depends-on): Likewise.
3443         * modules/accept (Depends-on): Likewise.
3444         * modules/bind (Depends-on): Likewise.
3445         * modules/connect (Depends-on): Likewise.
3446         * modules/gethostname (Depends-on): Likewise.
3447         * modules/getpeername (Depends-on): Likewise.
3448         * modules/getsockname (Depends-on): Likewise.
3449         * modules/getsockopt (Depends-on): Likewise.
3450         * modules/ioctl (Depends-on): Likewise.
3451         * modules/listen (Depends-on): Likewise.
3452         * modules/recv (Depends-on): Likewise.
3453         * modules/recvfrom (Depends-on): Likewise.
3454         * modules/send (Depends-on): Likewise.
3455         * modules/sendto (Depends-on): Likewise.
3456         * modules/setsockopt (Depends-on): Likewise.
3457         * modules/shutdown (Depends-on): Likewise.
3458         * modules/socket (Depends-on): Likewise.
3459         * modules/execute (Depends-on): Likewise.
3460         * modules/spawn-pipe (Depends-on): Likewise.
3461         * modules/flock (Depends-on): Likewise.
3462         * modules/fsync (Depends-on): Likewise.
3463         * modules/isapipe (Depends-on): Likewise.
3464         * tests/test-cloexec.c: Include msvc-nothrow.h.
3465         * tests/test-dup-safer.c: Likewise.
3466         * tests/test-dup2.c: Likewise.
3467         * tests/test-dup3.c: Likewise.
3468         * tests/test-fcntl.c: Likewise.
3469         * tests/test-pipe.c: Likewise.
3470         * tests/test-pipe2.c: Likewise.
3471         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
3472         * modules/unistd-safer-tests (Depends-on): Likewise.
3473         * modules/dup2-tests (Depends-on): Likewise.
3474         * modules/dup3-tests (Depends-on): Likewise.
3475         * modules/fcntl-tests (Depends-on): Likewise.
3476         * modules/pipe-posix-tests (Depends-on): Likewise.
3477         * modules/pipe2-tests (Depends-on): Likewise.
3478
3479 2011-09-23  Bruno Haible  <bruno@clisp.org>
3480
3481         dup2: Make code more maintainable.
3482         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
3483         (rpl_dup2): Use it.
3484         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
3485         * modules/dup2 (configure.ac): Invoke it.
3486         Reported by Paul Eggert.
3487
3488 2011-09-23  Bruno Haible  <bruno@clisp.org>
3489
3490         msvc-inval: Fix compilation error.
3491         * lib/msvc-inval.h: Include <excpt.h>.
3492
3493 2011-09-23  Bruno Haible  <bruno@clisp.org>
3494
3495         mkdir: Tweak for MSVC 9.
3496         * lib/sys_stat.in.h: Update comments.
3497         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
3498
3499         Tests for module 'chdir'.
3500         * modules/chdir-tests: New file.
3501         * tests/test-chdir.c: New file.
3502
3503         New module 'chdir'.
3504         * modules/chdir: New file.
3505         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
3506         (chdir): New declaration.
3507         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
3508         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
3509         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
3510         * tests/test-unistd-c++.cc: Check signature of chdir.
3511         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
3512         * modules/chdir-long (Depends-on): Add chdir.
3513         * modules/fchdir (Depends-on): Likewise.
3514         * modules/rename (Depends-on): Likewise.
3515         * modules/savewd (Depends-on): Likewise.
3516
3517         rmdir: Support for mingw, MSVC 9.
3518         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
3519         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
3520
3521         getcwd: Tweak for MSVC 9.
3522         * lib/unistd.in.h: Update comments.
3523         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
3524
3525 2011-09-22  Bruno Haible  <bruno@clisp.org>
3526
3527         strerror_r-posix: Avoid a link error on MSVC.
3528         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
3529         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
3530
3531 2011-09-22  Bruno Haible  <bruno@clisp.org>
3532
3533         select: Avoid link errors on MSVC.
3534         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
3535         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
3536         * modules/pselect (Link): Likewise.
3537         * NEWS: Mention the change.
3538         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
3539         test-select-stdin against $(LIB_SELECT).
3540         * modules/pselect-tests (Makefile.am): Link test-pselect against
3541         $(LIB_SELECT).
3542
3543 2011-09-22  Bruno Haible  <bruno@clisp.org>
3544
3545         select: Avoid compilation error on MSVC.
3546         * lib/select.c: Don't include <stdbool.h>.
3547
3548 2011-09-21  Bruno Haible  <bruno@clisp.org>
3549
3550         Consolidate all uses of PATH_MAX in *.m4 files.
3551         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
3552         macros.
3553         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
3554         and gl_PATHMAX_SNIPPET.
3555         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3556         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3557         * modules/chdir-long (Files): Add m4/pathmax.m4.
3558         * modules/getcwd (Files): Likewise.
3559
3560 2011-09-21  Bruno Haible  <bruno@clisp.org>
3561
3562         ftruncate: Un-deprecate, concentrate on Win32 support.
3563         * modules/ftruncate (Status, Notice): Remove sections.
3564         (Depends-on): Add largefile.
3565         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
3566         non-mingw platforms.
3567         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
3568         include <io.h>.
3569         * modules/perror-tests (Depends-on): Add ftruncate.
3570         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
3571         'ftruncate' module.
3572
3573 2011-09-21  Bruno Haible  <bruno@clisp.org>
3574
3575         Add dependencies to new dirent related modules.
3576         * modules/opendir (Depends-on): Add closedir.
3577         * modules/getcwd (Depends-on): Add opendir, closedir.
3578         * modules/dirent-safer-tests (Depends-on): Likewise.
3579         * modules/fdopendir-tests (Depends-on): Likewise.
3580         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
3581         * modules/renameat-tests (Depends-on): Likewise.
3582
3583 2011-09-21  Bruno Haible  <bruno@clisp.org>
3584
3585         opendir: Avoid compilation error on mingw.
3586         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
3587         * modules/opendir (Depends-on): Add unistd.
3588
3589 2011-09-21  Bruno Haible  <bruno@clisp.org>
3590
3591         ftruncate tests: Avoid a test failure on mingw.
3592         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
3593
3594 2011-09-21  Bruno Haible  <bruno@clisp.org>
3595
3596         select tests: Avoid test failures on OSF/1 5.1 and mingw.
3597         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
3598         native Windows.
3599
3600 2011-09-21  Bruno Haible  <bruno@clisp.org>
3601
3602         New module 'fdopen'.
3603         * lib/stdio.in.h (fdopen): New declaration.
3604         * lib/fdopen.c: New file.
3605         * m4/fdopen.m4: New file.
3606         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
3607         REPLACE_FDOPEN.
3608         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
3609         REPLACE_FDOPEN.
3610         * modules/fdopen: New file.
3611         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
3612         * tests/test-stdio-c++.cc: Check signature of fdopen.
3613         * doc/posix-functions/fdopen.texi: Mention the new module.
3614
3615 2011-09-21  Bruno Haible  <bruno@clisp.org>
3616
3617         unlockpt tests: Avoid test failure on NetBSD 5.1.
3618         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
3619         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
3620
3621 2011-09-21  Bruno Haible  <bruno@clisp.org>
3622
3623         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
3624         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
3625         * tests/test-getlogin_r.c (main): Likewise.
3626
3627 2011-09-20  Bruno Haible  <bruno@clisp.org>
3628
3629         time tests: Don't require pid_t.
3630         * doc/posix-headers/time.texi: Revert last change.
3631         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
3632         * tests/test-time.c: Comment out the check for pid_t.
3633
3634 2011-09-20  Bruno Haible  <bruno@clisp.org>
3635
3636         fsync tests: Avoid a test failure on mingw.
3637         * tests/test-fsync.c (main): Allow a failure with EIO.
3638
3639 2011-09-20  Bruno Haible  <bruno@clisp.org>
3640
3641         euidaccess: Update comments.
3642         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
3643
3644 2011-09-20  Bruno Haible  <bruno@clisp.org>
3645
3646         Ensure EBADF returns for socket functions on mingw.
3647         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
3648         descriptor is invalid.
3649         * lib/bind.c (rpl_bind): Likewise.
3650         * lib/connect.c (rpl_connect): Likewise.
3651         * lib/getpeername.c (rpl_getpeername): Likewise.
3652         * lib/getsockname.c (rpl_getsockname): Likewise.
3653         * lib/getsockopt.c (rpl_getsockopt): Likewise.
3654         * lib/listen.c (rpl_listen): Likewise.
3655         * lib/recv.c (rpl_recv): Likewise.
3656         * lib/recvfrom.c (rpl_recvfrom): Likewise.
3657         * lib/send.c (rpl_send): Likewise.
3658         * lib/sendto.c (rpl_sendto): Likewise.
3659         * lib/setsockopt.c (rpl_setsockopt): Likewise.
3660         * lib/shutdown.c (rpl_shutdown): Likewise.
3661
3662 2011-09-20  Bruno Haible  <bruno@clisp.org>
3663
3664         select tests: EBADF tests.
3665         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
3666         test_bad_fd): New functions.
3667         (test_function): Invoke also test_bad_fd.
3668
3669 2011-09-20  Bruno Haible  <bruno@clisp.org>
3670
3671         Tests for module 'posix_spawn_file_actions_addopen.
3672         * modules/posix_spawn_file_actions_addopen-tests: New file.
3673         * tests/test-posix_spawn_file_actions_addopen.c: New file.
3674
3675         Tests for module 'posix_spawn_file_actions_adddup2'.
3676         * modules/posix_spawn_file_actions_adddup2-tests: New file.
3677         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
3678
3679         Tests for module 'posix_spawn_file_actions_addclose'.
3680         * modules/posix_spawn_file_actions_addclose-tests: New file.
3681         * tests/test-posix_spawn_file_actions_addclose.c: New file.
3682
3683 2011-09-20  Bruno Haible  <bruno@clisp.org>
3684
3685         Tests for module 'unlockpt'.
3686         * modules/unlockpt-tests: New file.
3687         * tests/test-unlockpt.c: New file.
3688         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
3689
3690         Tests for module 'grantpt'.
3691         * modules/grantpt-tests: New file.
3692         * tests/test-grantpt.c: New file.
3693         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
3694
3695 2011-09-20  Bruno Haible  <bruno@clisp.org>
3696
3697         freopen tests: EBADF tests.
3698         * tests/test-freopen.c: Include errno.h, unistd.h.
3699         (main): Add tests for EBADF, commented out for the moment.
3700
3701         fclose tests: EBADF tests.
3702         * tests/test-fclose.c (main): Add tests for EBADF.
3703
3704         fflush tests: EBADF tests.
3705         * tests/test-fflush.c: Include errno.h, macros.h.
3706         (main): Add tests for EBADF.
3707
3708         ftello tests: EBADF tests.
3709         * tests/test-ftello4.sh: New file.
3710         * tests/test-ftello4.c: New file.
3711         * modules/ftello-tests (Files): Add them.
3712         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
3713
3714         fseeko tests: EBADF tests.
3715         * tests/test-fseeko4.sh: New file.
3716         * tests/test-fseeko4.c: New file.
3717         * modules/fseeko-tests (Files): Add them.
3718         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
3719
3720         Tests for function fputc().
3721         * modules/fputc-tests: New file.
3722         * tests/test-fputc.c: New file.
3723         * modules/stdio-tests (Depends-on): Add fputc-tests.
3724
3725         Tests for function fgetc().
3726         * modules/fgetc-tests: New file.
3727         * tests/test-fgetc.c: New file.
3728         * modules/stdio-tests (Depends-on): Add fgetc-tests.
3729
3730         Tests for function fdopen().
3731         * modules/fdopen-tests: New file.
3732         * tests/test-fdopen.c: New file.
3733         * modules/stdio-tests (Depends-on): Add fdopen-tests.
3734
3735         Tests for module 'vdprintf'.
3736         * modules/vdprintf-tests: New file.
3737         * tests/test-vdprintf.c: New file.
3738
3739         Tests for module 'dprintf'.
3740         * modules/dprintf-tests: New file.
3741         * tests/test-dprintf.c: New file.
3742
3743 2011-09-20  Bruno Haible  <bruno@clisp.org>
3744
3745         Tests for module 'ioctl'.
3746         * modules/ioctl-tests: New file.
3747         * tests/test-ioctl.c: New file.
3748
3749 2011-09-20  Bruno Haible  <bruno@clisp.org>
3750
3751         fcntl tests: EBADF tests.
3752         * tests/test-fcntl.c (main): Add more tests for EBADF.
3753
3754 2011-09-20  Bruno Haible  <bruno@clisp.org>
3755
3756         utimensat tests: EBADF tests.
3757         * tests/test-utimensat.c (main): Add tests for EBADF.
3758
3759         renameat tests: EBADF tests.
3760         * tests/test-renameat.c (main): Add tests for EBADF.
3761
3762         mkfifoat tests: EBADF tests.
3763         * tests/test-mkfifoat.c (main): Add tests for EBADF.
3764
3765         readlinkat tests: EBADF tests.
3766         * tests/test-readlinkat.c (main): Add tests for EBADF.
3767
3768         symlinkat tests: EBADF tests.
3769         * tests/test-symlinkat.c (main): Add tests for EBADF.
3770
3771         linkat tests: EBADF tests.
3772         * tests/test-linkat.c (main): Add tests for EBADF.
3773
3774         Tests for module 'faccessat'.
3775         * modules/faccessat-tests: New file.
3776         * tests/test-faccessat.c: New file.
3777
3778         fdopendir tests: EBADF tests.
3779         * tests/test-fdopendir.c (main): Add more tests for EBADF.
3780
3781         openat tests: EBADF tests.
3782         * tests/test-fchownat.c (main): Add tests for EBADF.
3783         * tests/test-fstatat.c (main): Likewise.
3784         * tests/test-mkdirat.c (main): Likewise.
3785         * tests/test-openat.c (main): Likewise.
3786         * tests/test-unlinkat.c (main): Likewise.
3787         * tests/test-fchmodat.c: New file.
3788         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
3789         (Makefile.am): Also run 'test-fchmodat'.
3790
3791 2011-09-20  Bruno Haible  <bruno@clisp.org>
3792
3793         utimens, futimens, fdutimensat tests: EBADF tests.
3794         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
3795
3796         Tests for function fstat().
3797         * modules/fstat-tests: New file.
3798         * tests/test-fstat.c: New file.
3799         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
3800
3801 2011-09-20  Bruno Haible  <bruno@clisp.org>
3802
3803         test-ttyname_r tests: EBADF tests.
3804         * tests/test-ttyname_r.c (main): Add tests for EBADF.
3805
3806         Tests for module 'isatty'.
3807         * modules/isatty-tests: New file.
3808         * tests/test-isatty.c: New file.
3809
3810         Tests for module 'write'.
3811         * modules/write-tests: New file.
3812         * tests/test-write.c: New file.
3813
3814         Tests for module 'read'.
3815         * modules/read-tests: New file.
3816         * tests/test-read.c: New file.
3817
3818         pwrite tests: EBADF tests.
3819         * tests/test-pwrite.c (main): Add tests for EBADF.
3820
3821         pread tests: EBADF tests.
3822         * tests/test-pread.c (main): Add tests for EBADF.
3823
3824         lseek tests: EBADF tests.
3825         * tests/test-lseek.c (main): Add more tests for EBADF.
3826
3827         Tests for module 'ftruncate'.
3828         * modules/ftruncate-tests: New file.
3829         * tests/test-ftruncate.sh: New file.
3830         * tests/test-ftruncate.c: New file.
3831
3832         fsync tests: EBADF tests.
3833         * tests/test-fsync.c (main): Add more tests for EBADF.
3834
3835         fdatasync tests: EBADF tests.
3836         * tests/test-fdatasync.c (main): Add more tests for EBADF.
3837
3838         Tests for module 'fchown'.
3839         * modules/fchown-tests: New file.
3840         * tests/test-fchown.c: New file.
3841
3842         Tests for module 'fchmod'.
3843         * modules/fchmod-tests: New file.
3844         * tests/test-fchmod.c: New file.
3845
3846         fchdir tests: EBADF tests.
3847         * tests/test-fchdir.c (main): Add more tests for EBADF.
3848
3849         dup2 tests: EBADF tests.
3850         * tests/test-dup2.c (main): Add more tests for EBADF.
3851
3852         Tests for module 'dup'.
3853         * modules/dup-tests: New file.
3854         * tests/test-dup.c: New file.
3855
3856         Tests for module 'close'.
3857         * modules/close-tests: New file.
3858         * tests/test-close.c: New file.
3859
3860 2011-09-20  Bruno Haible  <bruno@clisp.org>
3861
3862         Tests for module 'shutdown'.
3863         * modules/shutdown-tests: New file.
3864         * tests/test-shutdown.c: New file.
3865
3866         Tests for module 'setsockopt'.
3867         * modules/setsockopt-tests: New file.
3868         * tests/test-setsockopt.c: New file.
3869
3870         Tests for module 'sendto'.
3871         * modules/sendto-tests: New file.
3872         * tests/test-sendto.c: New file.
3873
3874         Tests for module 'send'.
3875         * modules/send-tests: New file.
3876         * tests/test-send.c: New file.
3877
3878         Tests for module 'recvfrom'.
3879         * modules/recvfrom-tests: New file.
3880         * tests/test-recvfrom.c: New file.
3881
3882         Tests for module 'recv'.
3883         * modules/recv-tests: New file.
3884         * tests/test-recv.c: New file.
3885
3886         Tests for module 'listen'.
3887         * modules/listen-tests: New file.
3888         * tests/test-listen.c: New file.
3889
3890         Tests for module 'getsockopt'.
3891         * modules/getsockopt-tests: New file.
3892         * tests/test-getsockopt.c: New file.
3893
3894         Tests for module 'getsockname'.
3895         * modules/getsockname-tests: New file.
3896         * tests/test-getsockname.c: New file.
3897
3898         Tests for module 'getpeername'.
3899         * modules/getpeername-tests: New file.
3900         * tests/test-getpeername.c: New file.
3901
3902         Tests for module 'connect'.
3903         * modules/connect-tests: New file.
3904         * tests/test-connect.c: New file.
3905
3906         Tests for module 'bind'.
3907         * modules/bind-tests: New file.
3908         * tests/test-bind.c: New file.
3909
3910         accept4 tests: Fix for native Windows.
3911         * tests/test-accept4.c: Include sockets.h.
3912         (main): Invoke gl_sockets_startup.
3913         * modules/accept4-tests (Depends-on): Add sockets.
3914
3915         accept tests: Fix for native Windows.
3916         * tests/test-accept.c: Include sockets.h.
3917         (main): Invoke gl_sockets_startup.
3918         * modules/accept-tests (Depends-on): Add sockets.
3919
3920 2011-09-19  Bruno Haible  <bruno@clisp.org>
3921
3922         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
3923         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
3924         do...while(0).
3925         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
3926         Suggested by Paul Eggert.
3927
3928 2011-09-19  Bruno Haible  <bruno@clisp.org>
3929
3930         sched: Ensure pid_t is defined.
3931         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
3932         not define pid_t.
3933         * lib/sched.in.h: Include <sys/types.h>.
3934         * doc/posix-headers/sched.texi: Mention the pid_t problem.
3935         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3936
3937 2011-09-19  Bruno Haible  <bruno@clisp.org>
3938
3939         msvc-inval: Ensure the entire expansion is a single statement.
3940         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
3941         of braces.
3942
3943 2011-09-19  Jim Meyering  <meyering@redhat.com>
3944
3945         tests: use printf, not echo in init.sh's warn_ function
3946         * tests/init.sh (warn_): Use printf, not echo.  The latter would
3947         misbehave when given strings containing a backslash or starting
3948         with e.g., -n.  James Youngman suggested setting IFS.
3949
3950 2011-09-19  Eric Blake  <eblake@redhat.com>
3951
3952         futimens: enhance test
3953         * tests/test-futimens.h (test_futimens): Also check for EBADF on
3954         closed non-negative fd.
3955
3956         date: accept 'hence' as opposite of 'ago'
3957         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
3958         * tests/test-parse-datetime.c (main): Enhance test.
3959         Suggested by Jesse Wilson.
3960
3961 2011-09-19  Jim Meyering  <meyering@redhat.com>
3962
3963         getcwd: don't fail in a deep directory on a system without openat
3964         Before this change, getcwd would fail when called from a directory
3965         of depth PATH_MAX / 3 or greater.  That was due to the fact that
3966         the non-openat implementation used "..", "../..", "../../..", etc.
3967         to access ancestor directories.  With too many, that string would
3968         be longer than PATH_MAX.
3969         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
3970         using gnulib's openat replacement.
3971         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
3972         we're using the replacement function.
3973
3974 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
3975
3976         maint.mk: avoid warnings from perl about missing files
3977         * top/maint.mk (def_sym_regex): Ignore files listed in
3978         $(gl_other_headers_) that do not exist, say because a project
3979         does not use a corresponding module.
3980
3981 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
3982
3983         stat: use pathmax.h only if needed
3984         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
3985         This is better for Emacs, which does not have a mingw port and
3986         therefore can avoid the pathmax module.
3987
3988         utimens: remove dependency on dup2
3989         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
3990         to work around the Linux kernel bug.
3991         * modules/utimens (Depends-on): Remove dup2.
3992
3993 2011-09-18  Bruno Haible  <bruno@clisp.org>
3994
3995         inet_ntop, inet_pton: Look for it also in libresolv.
3996         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
3997         libnsl, search for it in libresolv.
3998         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3999         Needed on Solaris 7.
4000
4001 2011-09-18  Bruno Haible  <bruno@clisp.org>
4002
4003         accept, accept4 tests: Avoid link error on Solaris.
4004         * modules/accept-tests (Makefile.am): Link test-accept against
4005         $(LIBSOCKET).
4006         * modules/accept4-tests (Makefile.am): Link test-accept4 against
4007         $(LIBSOCKET).
4008
4009         accept4: Avoid link error on Solaris.
4010         * modules/accept4 (Link): New section.
4011
4012         socket functions: Avoid link errors on Solaris.
4013         * modules/accept (Depends-on): Add socketlib.
4014         (Link): New section.
4015         * modules/bind (Depends-on): Add socketlib.
4016         (Link): New section.
4017         * modules/connect (Depends-on): Add socketlib.
4018         (Link): New section.
4019         * modules/getpeername (Depends-on): Add socketlib.
4020         (Link): New section.
4021         * modules/getsockname (Depends-on): Add socketlib.
4022         (Link): New section.
4023         * modules/getsockopt (Depends-on): Add socketlib.
4024         (Link): New section.
4025         * modules/listen (Depends-on): Add socketlib.
4026         (Link): New section.
4027         * modules/recv (Depends-on): Add socketlib.
4028         (Link): New section.
4029         * modules/recvfrom (Depends-on): Add socketlib.
4030         (Link): New section.
4031         * modules/send (Depends-on): Add socketlib.
4032         (Link): New section.
4033         * modules/sendto (Depends-on): Add socketlib.
4034         (Link): New section.
4035         * modules/setsockopt (Depends-on): Add socketlib.
4036         (Link): New section.
4037         * modules/shutdown (Depends-on): Add socketlib.
4038         (Link): New section.
4039         * modules/socket (Depends-on): Add socketlib.
4040         (Link): New section.
4041
4042 2011-09-18  Bruno Haible  <bruno@clisp.org>
4043
4044         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
4045         * tests/test-ptsname.c (main): Terminate the test if it takes longer
4046         than 5 seconds.
4047         * modules/ptsname-tests (configure.ac): Test for alarm.
4048
4049 2011-09-18  Bruno Haible  <bruno@clisp.org>
4050
4051         posix_spawn_file_actions_add*: Fix module dependencies.
4052         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
4053         posix_spawn_file_actions_init.
4054         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
4055         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
4056
4057 2011-09-18  Bruno Haible  <bruno@clisp.org>
4058
4059         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
4060         * tests/test-rename.h (test_rename): Allow error code EEXIST.
4061         * tests/test-renameat.c (main): Likewise.
4062
4063 2011-09-18  Bruno Haible  <bruno@clisp.org>
4064
4065         Tests for module 'accept4'.
4066         * modules/accept4-tests: New file.
4067         * tests/test-accept4.c: New file.
4068
4069 2011-09-18  Bruno Haible  <bruno@clisp.org>
4070
4071         Tests for module 'accept'.
4072         * modules/accept-tests: New file.
4073         * tests/test-accept.c: New file.
4074
4075 2011-09-18  Bruno Haible  <bruno@clisp.org>
4076
4077         dup2: Support for MSVC.
4078         * lib/dup2.c: Include msvc-inval.h.
4079         (rpl_dup2): Handle invalid parameter notifications during dup2 and
4080         _get_osfhandle calls.
4081         * modules/dup2 (Depends-on): Add msvc-inval.
4082         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
4083
4084         New module 'msvc-inval'.
4085         * lib/msvc-inval.h: New file.
4086         * lib/msvc-inval.c: New file.
4087         * m4/msvc-inval.m4: New file.
4088         * modules/msvc-inval: New file.
4089
4090 2011-09-17  Bruno Haible  <bruno@clisp.org>
4091
4092         Tests for module 'pclose'.
4093         * modules/pclose-tests: New file.
4094
4095         New module 'pclose'.
4096         * lib/stdio.in.h (pclose): New declaration.
4097         * lib/pclose.c: New file.
4098         * m4/pclose.m4: New file.
4099         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
4100         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
4101         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
4102         * modules/pclose: New file.
4103         * modules/popen-tests (Depends-on): Add pclose.
4104         * modules/popen-safer-tests (Depends-on): Likewise.
4105         * doc/posix-functions/pclose.texi: Mention the new module.
4106
4107 2011-09-17  Bruno Haible  <bruno@clisp.org>
4108
4109         popen: Support for MSVC.
4110         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
4111         * lib/popen.c (popen): Provide alternate definition for native Windows.
4112         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
4113         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
4114         * modules/popen (Depends-on, configure.ac): Update condition.
4115         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
4116         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
4117         fixed.
4118
4119 2011-09-17  Bruno Haible  <bruno@clisp.org>
4120
4121         isnanl, isnand, isnanf: Work around MSVC bug.
4122         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
4123
4124 2011-09-17  Bruno Haible  <bruno@clisp.org>
4125
4126         sys_socket tests: Fix recent mistake.
4127         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
4128
4129 2011-09-17  Bruno Haible  <bruno@clisp.org>
4130
4131         putenv: Support for MSVC.
4132         * modules/putenv (Depends-on): Add environ.
4133         * lib/putenv.c (environ): Disable declaration.
4134         * lib/unistd.in.h: Update comment.
4135
4136 2011-09-17  Bruno Haible  <bruno@clisp.org>
4137
4138         math: Avoid macro redefinition warnings on MSVC.
4139         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
4140         Undefine before redefining.
4141
4142 2011-09-17  Bruno Haible  <bruno@clisp.org>
4143
4144         doc: Mention functions which are declared as macros.
4145         * doc/posix-functions/*[fl].texi: Mention that some functions are
4146         defined as macros with arguments only.
4147
4148 2011-09-17  Bruno Haible  <bruno@clisp.org>
4149
4150         Add dependencies to new dirent related modules.
4151         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
4152         * modules/fts (Depends-on): Likewise.
4153         * modules/glob (Depends-on): Likewise.
4154         * modules/savedir (Depends-on): Likewise.
4155         * modules/scandir (Depends-on): Likewise.
4156         * modules/dirent-safer (Depends-on): Add opendir, closedir.
4157         * modules/fdopendir (Depends-on): Add opendir.
4158
4159 2011-09-17  Bruno Haible  <bruno@clisp.org>
4160
4161         inet_pton: Support for MSVC on Windows Vista or newer.
4162         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
4163         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
4164         HAVE_DECL_INET_PTON is defined.
4165         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
4166         On platforms with <winsock2.h>, test whether inet_pton is declared in
4167         <ws2tcpip.h>. If so, arrange to replace it.
4168         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
4169         REPLACE_INET_PTON.
4170         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
4171         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
4172         (Depends-on, configure.ac): Update condition.
4173         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
4174
4175 2011-09-17  Bruno Haible  <bruno@clisp.org>
4176
4177         inet_ntop: Support for MSVC on Windows Vista or newer.
4178         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
4179         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
4180         HAVE_DECL_INET_NTOP is defined.
4181         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
4182         On platforms with <winsock2.h>, test whether inet_ntop is declared in
4183         <ws2tcpip.h>. If so, arrange to replace it.
4184         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
4185         REPLACE_INET_NTOP.
4186         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
4187         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
4188         (Depends-on, configure.ac): Update condition.
4189         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
4190
4191 2011-09-16  Eric Blake  <eblake@redhat.com>
4192
4193         test-fsync: yet another enhancement
4194         * tests/test-fsync.c (main): Also test behavior on read-only text
4195         file.
4196
4197 2011-09-16  Bruno Haible  <bruno@clisp.org>
4198
4199         Enhance fsync, fdatasync tests.
4200         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
4201         * tests/test-fdatasync.c (main): Likewise.
4202
4203 2011-09-16  Bruno Haible  <bruno@clisp.org>
4204
4205         Support for MSVC compiler: Ensure mode_t gets defined.
4206         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
4207         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4208         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
4209         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
4210         * tests/test-fcntl-h.c: Check that mode_t is defined.
4211         * tests/test-sys_stat.c: Likewise.
4212         * tests/test-sys_types.c: Likewise.
4213         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
4214         * doc/posix-headers/sys_stat.texi: Likewise.
4215         * doc/posix-headers/sys_types.texi: Likewise.
4216
4217 2011-09-16  Bruno Haible  <bruno@clisp.org>
4218
4219         sys_stat: Support for MSVC.
4220         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
4221         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
4222         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
4223         MSVC.
4224
4225 2011-09-16  Bruno Haible  <bruno@clisp.org>
4226
4227         Support for MSVC compiler: Ensure off_t gets defined.
4228         * lib/unistd.in.h: Include <sys/types.h>.
4229         * tests/test-fcntl-h.c: Check that off_t is defined.
4230         * tests/test-sys_stat.c: Likewise.
4231         * tests/test-sys_types.c: Likewise.
4232
4233 2011-09-16  Eric Blake  <eblake@redhat.com>
4234
4235         fdatasync: port to Solaris
4236         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
4237         * modules/fdatasync (Link): Document it.
4238         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
4239
4240         fdatasync: port to MacOS X 10.7
4241         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
4242         declared.
4243         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
4244         * modules/unistd (Makefile.am): Substitute it.
4245         * lib/unistd.in.h (fdatasync): Declare on MacOS.
4246         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
4247
4248         fdatasync: minor improvements
4249         * modules/fdatasync (Depends-on): Add condition for fsync.
4250         * lib/fdatasync.c (fdatasync): Add comment.
4251         * tests/test-unistd-c++.cc: Test fdatasync.
4252
4253         unistd: update refs to newer POSIX
4254         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
4255         Suggested by Bruno Haible.
4256
4257         fdatasync: new module
4258         * modules/fsync (Description): Document difference to fdatasync.
4259         * modules/fdatasync: New module.
4260         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
4261         * lib/fdatasync.c (fdatasync): Likewise.
4262         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
4263         defaults.
4264         * modules/unistd (Makefile.am): Set witnesses.
4265         * lib/unistd.in.h (fdatasync): Declare.
4266         * MODULES.html.sh: Document it.
4267         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
4268         * modules/fdatasync-tests: New test.
4269         * tests/test-fdatasync.c: Likewise.
4270
4271 2011-09-16  Eric Blake  <eblake@redhat.com>
4272
4273         test-fsync: enhance tests
4274         * modules/fsync-tests (Depends-on): Add errno, for mingw.
4275         * tests/test-fsync.c (main): Enhance test.
4276
4277 2011-09-15  Bruno Haible  <bruno@clisp.org>
4278
4279         Support for MSVC compiler: Ensure ssize_t gets defined.
4280         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
4281         * doc/posix-headers/stdio.texi: Likewise.
4282         * modules/stdio (Depends-on): Add ssize_t.
4283         * modules/sys_socket (Depends-on): Likewise.
4284         * modules/sys_types (Depends-on): Likewise.
4285         * modules/sys_uio (Depends-on): Likewise.
4286         * modules/unistd (Depends-on): Likewise.
4287         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
4288         * tests/test-sys_types.c: Check that ssize_t is defined.
4289
4290 2011-09-14  Bruno Haible  <bruno@clisp.org>
4291
4292         Avoid using #, the m4 comment starter character, near brackets.
4293         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
4294         delimiter character in sed expressions.
4295         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
4296         Suggested by Eric Blake.
4297
4298         Properly quote AC_CHECK_DECLS' 4th argument.
4299         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
4300         argument.
4301         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
4302         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4303         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4304         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
4305         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
4306         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
4307         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
4308         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
4309         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
4310         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
4311         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
4312         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4313         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
4314         * m4/isinf.m4 (gl_ISINF): Likewise.
4315         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
4316         * m4/readutmp.m4 (gl_READUTMP): Likewise.
4317         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4318         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4319         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4320         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
4321         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
4322         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
4323         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
4324         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
4325         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4326         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4327         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
4328         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
4329         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
4330         Reported by Eric Blake.
4331
4332         Properly quote AC_CHECK_DECL's 4th argument.
4333         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
4334         argument.
4335         * m4/argp.m4 (gl_ARGP): Likewise.
4336         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
4337         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
4338         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
4339         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
4340         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
4341         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
4342         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
4343         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
4344         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
4345         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
4346         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
4347         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
4348         Reported by Eric Blake.
4349
4350 2011-09-14  Eric Blake  <eblake@redhat.com>
4351
4352         opendir: avoid compile warning
4353         * lib/opendir.c (includes): Always include errno.h.
4354         Reported by Tatsuro MATSUOKA.
4355
4356 2011-09-14  Jim Meyering  <meyering@redhat.com>
4357
4358         maint.mk: sc_tight_scope: propagate failure from sub-make
4359         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
4360         Reported by Martin von Gagern.
4361
4362 2011-09-13  Bruno Haible  <bruno@clisp.org>
4363
4364         tempname: Support for MSVC.
4365         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
4366         MSVC.
4367         * modules/tempname (Depends-on): Add fcntl-h.
4368
4369 2011-09-13  Bruno Haible  <bruno@clisp.org>
4370
4371         sys_time: Support for MSVC.
4372         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
4373         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
4374         include <winsock2.h>.
4375         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
4376         function declarations that collide with POSIX.
4377         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
4378         (Makefile.am): Substitute HAVE_WINSOCK2_H.
4379
4380 2011-09-13  Bruno Haible  <bruno@clisp.org>
4381
4382         stat: Support for MSVC.
4383         * lib/stat.c: Include pathmax.h.
4384         * modules/stat (Depends-on): Add pathmax.
4385
4386         pathmax: Support for native Windows.
4387         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
4388
4389 2011-09-12  Bruno Haible  <bruno@clisp.org>
4390
4391         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
4392         * lib/dirent.in.h (struct dirent): New type.
4393         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
4394         DT_WHT): New macros.
4395         (DIR): New type.
4396         (opendir, closedir): Declare only if the module 'opendir' is enabled.
4397         (readdir, rewinddir): New declarations.
4398         * lib/dirent-private.h: New file.
4399         * lib/opendir.c: New file.
4400         * lib/readdir.c: New file.
4401         * lib/rewinddir.c: New file.
4402         * lib/closedir.c: New file.
4403         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
4404         * m4/opendir.m4: New file.
4405         * m4/readdir.m4: New file.
4406         * m4/rewinddir.m4: New file.
4407         * m4/closedir.m4: New file.
4408         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
4409         REPLACE_CLOSEDIR here.
4410         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
4411         readdir, rewinddir are declared.
4412         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
4413         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
4414         HAVE_REWINDDIR, HAVE_CLOSEDIR.
4415         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
4416         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
4417         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
4418         * modules/opendir: New file.
4419         * modules/readdir: New file.
4420         * modules/rewinddir: New file.
4421         * modules/closedir: New file.
4422         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
4423         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
4424         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
4425         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
4426         * NEWS: Mention the 'fchdir' change.
4427
4428 2011-09-11  Bruno Haible  <bruno@clisp.org>
4429
4430         asm-underscore.m4: Support for MSVC.
4431         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
4432         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
4433
4434 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
4435
4436         Doc about crypt functions.
4437         * doc/posix-functions/crypt.texi: Expand range of glibc versions
4438         needing for _GNU_SOURCE to get crypt.
4439         * doc/posix-functions/encrypt.texi: Likewise.
4440         * doc/posix-functions/setkey.texi: Likewise.
4441
4442 2011-09-11  Bruno Haible  <bruno@clisp.org>
4443
4444         doc: Update regarding MSVC 9.
4445         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
4446         tested".
4447         * doc/posix-functions/*.texi: Update with info about MSVC 9.
4448         * doc/posix-headers/*.texi: Likewise.
4449         * doc/pastposix-functions/*.texi: Likewise.
4450         * doc/glibc-functions/*.texi: Likewise.
4451         * doc/glibc-headers/*.texi: Likewise.
4452
4453 2011-09-11  Bruno Haible  <bruno@clisp.org>
4454
4455         unistd et al.: Don't assume <unistd.h> exists.
4456         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
4457         does not exist.
4458         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
4459         exist. But include <stdlib.h>.
4460         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
4461         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
4462         symlink() does not exist.
4463         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
4464         include <io.h> instead.
4465         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
4466         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
4467         include <direct.h> instead.
4468         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4469         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4470         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
4471         <io.h> instead.
4472         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
4473         correctly if the system does not have hard links.
4474         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
4475         <direct.h> instead.
4476         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
4477         it when looking for function declarations.
4478         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
4479         <direct.h> and <io.h> instead.
4480         * doc/posix-headers/unistd.texi: More details about MSVC problem.
4481
4482 2011-09-11  Bruno Haible  <bruno@clisp.org>
4483
4484         strcase: Support for MSVC.
4485         * modules/strcase (Status, Notice): Remove obsoletion mark.
4486         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
4487         * doc/posix-functions/strncasecmp.texi: Likewise.
4488
4489         strings: Don't assume <strings.h> exists.
4490         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
4491         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
4492         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
4493         * doc/posix-headers/strings.texi: Mention the MSVC problem.
4494
4495 2011-09-11  Bruno Haible  <bruno@clisp.org>
4496
4497         dirent: Don't assume <dirent.h> exists.
4498         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
4499         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
4500         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
4501         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
4502
4503 2011-09-11  Bruno Haible  <bruno@clisp.org>
4504
4505         Fix wint_t on MSVC.
4506         * lib/wchar.in.h (wint_t): On MSVC, override it.
4507         * lib/wctype.in.h (wint_t): Likewise.
4508         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
4509         MSVC.
4510         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
4511         * doc/posix-headers/wctype.texi: Likewise.
4512
4513 2011-09-11  Bruno Haible  <bruno@clisp.org>
4514
4515         sys_types: Fix typo.
4516         * lib/sys_types.in.h: Fix typo in comment.
4517         Reported by Paul Eggert.
4518
4519         Support for MSVC compiler: Ensure size_t gets defined.
4520         * modules/strings (Depends-on): Add 'sys_types'.
4521         * modules/sys_uio (Depends-on): Likewise.
4522         * lib/sys_uio.in.h: Update comment.
4523
4524         C++ tests for module 'sys_types'.
4525         * modules/sys_types-c++-tests: New file.
4526         * tests/test-sys_types-c++.cc: New file.
4527
4528         Tests for module 'sys_types'.
4529         * modules/sys_types-tests: New file.
4530         * tests/test-sys_types.c: New file.
4531
4532         New module 'sys_types'.
4533         * lib/sys_types.in.h: New file.
4534         * m4/sys_types_h.m4: New file.
4535         * modules/sys_types: New file.
4536         * doc/posix-headers/sys_types.texi: Mention the new module and the
4537         size_t problem on MSVC 9.
4538
4539 2011-09-11  Bruno Haible  <bruno@clisp.org>
4540
4541         Support for MSVC compiler: Avoid division by a literal 0.
4542         * lib/math.in.h (NAN): Define through a function call also on MSVC.
4543         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
4544         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
4545         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
4546         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
4547         * tests/infinity.h: New file.
4548         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
4549         on MSVC.
4550         * tests/test-ceilf1.c: Include infinity.h.
4551         (main): Use Infinityf.
4552         * tests/test-ceil1.c: Include infinity.h.
4553         (main): Use Infinityd.
4554         * tests/test-ceill.c: Include infinity.h.
4555         (main): Use Infinityl.
4556         * tests/test-dprintf-posix.c: Include infinity.h.
4557         (test_function): Use Infinityd.
4558         * tests/test-floorf1.c: Include infinity.h.
4559         (main): Use Infinityf.
4560         * tests/test-floor1.c: Include infinity.h.
4561         (main): Use Infinityd.
4562         * tests/test-floorl.c: Include infinity.h.
4563         (main): Use Infinityl.
4564         * tests/test-fprintf-posix.c: Include infinity.h.
4565         (test_function): Use Infinityd.
4566         * tests/test-frexp.c: Include infinity.h.
4567         (main): Use Infinityd.
4568         * tests/test-frexpl.c: Include infinity.h.
4569         (main): Use Infinityl.
4570         * tests/test-isfinite.c: Include infinity.h.
4571         (test_isfinitef): Use Infinityf.
4572         (test_isfinited): Use Infinityd.
4573         (test_isfinitel): Use Infinityl.
4574         * tests/test-isinf.c: Include infinity.h.
4575         (test_isinff): Use Infinityf.
4576         (test_isinfd): Use Infinityd.
4577         (test_isinfl): Use Infinityl.
4578         * tests/test-isnan.c: Include infinity.h.
4579         (test_float): Use Infinityf.
4580         (test_double): Use Infinityd.
4581         (test_long_double): Use Infinityl.
4582         * tests/test-isnanf.h: Include infinity.h.
4583         (main): Use Infinityf.
4584         * tests/test-isnand.h: Include infinity.h.
4585         (main): Use Infinityd.
4586         * tests/test-isnanl.h: Include infinity.h.
4587         (main): Use Infinityl.
4588         * tests/test-ldexpl.c: Include infinity.h.
4589         (main): Use Infinityl.
4590         * tests/test-printf-posix.h: Include infinity.h.
4591         (test_function): Use Infinityd.
4592         * tests/test-roundf1.c: Include infinity.h.
4593         (main): Use Infinityf.
4594         * tests/test-round1.c: Include infinity.h.
4595         (main): Use Infinityd.
4596         * tests/test-roundl.c: Include infinity.h.
4597         (main): Use Infinityl.
4598         * tests/test-signbit.c: Include infinity.h.
4599         (test_signbitf): Use Infinityf.
4600         (test_signbitd): Use Infinityd.
4601         (test_signbitl): Use Infinityl.
4602         * tests/test-snprintf-posix.h: Include infinity.h.
4603         (test_function): Use Infinityd, Infinityl.
4604         * tests/test-sprintf-posix.h: Include infinity.h.
4605         (test_function): Use Infinityd, Infinityl.
4606         * tests/test-truncf1.c: Include infinity.h.
4607         (main): Use Infinityf.
4608         * tests/test-trunc1.c: Include infinity.h.
4609         (main): Use Infinityd.
4610         * tests/test-truncl.c: Include infinity.h.
4611         (main): Use Infinityl.
4612         * tests/test-vasnprintf-posix.c: Include infinity.h.
4613         (test_function): Use Infinityd, Infinityl.
4614         * tests/test-vasprintf-posix.c: Include infinity.h.
4615         (test_function): Use Infinityd, Infinityl.
4616         * modules/ceilf-tests (Files): Add tests/infinity.h.
4617         * modules/ceil-tests (Files): Likewise.
4618         * modules/ceill-tests (Files): Likewise.
4619         * modules/dprintf-posix-tests (Files): Likewise.
4620         * modules/floorf-tests (Files): Likewise.
4621         * modules/floor-tests (Files): Likewise.
4622         * modules/floorl-tests (Files): Likewise.
4623         * modules/fprintf-posix-tests (Files): Likewise.
4624         * modules/frexp-tests (Files): Likewise.
4625         * modules/frexp-nolibm-tests (Files): Likewise.
4626         * modules/frexpl-tests (Files): Likewise.
4627         * modules/frexpl-nolibm-tests (Files): Likewise.
4628         * modules/isfinite-tests (Files): Likewise.
4629         * modules/isinf-tests (Files): Likewise.
4630         * modules/isnan-tests (Files): Likewise.
4631         * modules/isnanf-tests (Files): Likewise.
4632         * modules/isnanf-nolibm-tests (Files): Likewise.
4633         * modules/isnand-tests (Files): Likewise.
4634         * modules/isnand-nolibm-tests (Files): Likewise.
4635         * modules/isnanl-tests (Files): Likewise.
4636         * modules/isnanl-nolibm-tests (Files): Likewise.
4637         * modules/ldexpl-tests (Files): Likewise.
4638         * modules/printf-posix-tests (Files): Likewise.
4639         * modules/roundf-tests (Files): Likewise.
4640         * modules/round-tests (Files): Likewise.
4641         * modules/roundl-tests (Files): Likewise.
4642         * modules/signbit-tests (Files): Likewise.
4643         * modules/snprintf-posix-tests (Files): Likewise.
4644         * modules/sprintf-posix-tests (Files): Likewise.
4645         * modules/truncf-tests (Files): Likewise.
4646         * modules/trunc-tests (Files): Likewise.
4647         * modules/truncl-tests (Files): Likewise.
4648         * modules/vasnprintf-posix-tests (Files): Likewise.
4649         * modules/vasprintf-posix-tests (Files): Likewise.
4650         * modules/vdprintf-posix-tests (Files): Likewise.
4651         * modules/vfprintf-posix-tests (Files): Likewise.
4652         * modules/vprintf-posix-tests (Files): Likewise.
4653         * modules/vsnprintf-posix-tests (Files): Likewise.
4654         * modules/vsprintf-posix-tests (Files): Likewise.
4655         * modules/xprintf-posix-tests (Files): Likewise.
4656
4657 2011-09-11  Bruno Haible  <bruno@clisp.org>
4658
4659         Ensure pid_t gets defined.
4660         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
4661         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
4662         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
4663         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4664         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
4665         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
4666         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
4667         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4668         * tests/test-fcntl-h.c: Check that pid_t is defined.
4669         * tests/test-sched.c: Likewise.
4670         * tests/test-termios.c: Likewise.
4671         * tests/test-time.c: Likewise.
4672         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
4673         * doc/posix-headers/signal.texi: Likewise.
4674         * doc/posix-headers/sys_types.texi: Likewise.
4675         * doc/posix-headers/time.texi: Likewise.
4676
4677 2011-09-11  Bruno Haible  <bruno@clisp.org>
4678
4679         acl: Fix compilation on Solaris 10 (older version).
4680         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
4681         of ACE_EVERYONE.
4682         * lib/set-mode-acl.c (qset_acl): Likewise.
4683         Reported by Christian Jullien <eligis@orange.fr>.
4684
4685 2011-09-10  Bruno Haible  <bruno@clisp.org>
4686
4687         iconv, unsetenv: Add support for MSVC compiler.
4688         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
4689         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
4690
4691 2011-09-10  Bruno Haible  <bruno@clisp.org>
4692
4693         *printf: Add support for MSVC compiler.
4694         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
4695         handles the exception caused by the %n directive. When cross-compiling,
4696         guess no on native Windows.
4697         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
4698         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
4699         emulate it through vsnprintf.
4700         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
4701         * doc/posix-functions/dprintf.texi: Update documentation regarding
4702         MSVC 9.
4703         * doc/posix-functions/fprintf.texi: Likewise.
4704         * doc/posix-functions/printf.texi: Likewise.
4705         * doc/posix-functions/snprintf.texi: Likewise.
4706         * doc/posix-functions/sprintf.texi: Likewise.
4707         * doc/posix-functions/swprintf.texi: Likewise.
4708         * doc/posix-functions/vdprintf.texi: Likewise.
4709         * doc/posix-functions/vfprintf.texi: Likewise.
4710         * doc/posix-functions/vprintf.texi: Likewise.
4711         * doc/posix-functions/vsnprintf.texi: Likewise.
4712         * doc/posix-functions/vsprintf.texi: Likewise.
4713         * doc/glibc-functions/asprintf.texi: Likewise.
4714         * doc/glibc-functions/obstack_printf.texi: Likewise.
4715         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
4716         * doc/glibc-functions/vasprintf.texi: Likewise.
4717
4718 2011-09-10  Bruno Haible  <bruno@clisp.org>
4719
4720         nocrash: Add support for native Windows.
4721         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
4722
4723 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
4724             Bruno Haible  <bruno@clisp.org>
4725
4726         absolute-header, include-next: Add support for MSVC compiler.
4727         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
4728         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
4729         directory separator in #line directives.
4730         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
4731         recognize also backslash as directory separator in #line directives.
4732
4733 2011-09-08  Jim Meyering  <meyering@redhat.com>
4734
4735         maint.mk: mark the post-release commit log with "maint: " prefix
4736         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
4737         one-line commit-log summary.
4738
4739 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
4740             Bruno Haible  <bruno@clisp.org>
4741
4742         Doc about crypt functions.
4743         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
4744         systems.
4745         * doc/posix-functions/encrypt.texi: Likewise.
4746         * doc/posix-functions/setkey.texi: Likewise.
4747
4748 2011-09-08  Simon Josefsson  <simon@josefsson.org>
4749
4750         * lib/gc.h: Fix copyright header.
4751
4752 2011-09-07  Bruno Haible  <bruno@clisp.org>
4753
4754         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
4755         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
4756         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
4757
4758 2011-09-07  Bruno Haible  <bruno@clisp.org>
4759
4760         openat: Work around compilation error with OSF/1 5.1 DTK cc.
4761         * lib/fopen.c: Use different syntax for include of <stdio.h>.
4762         * lib/freopen.c: Likewise.
4763         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
4764         * lib/lstat.c: Likewise.
4765         * lib/stat.c: Likewise.
4766         * lib/open.c: Use different syntax for include of <fcntl.h>.
4767         * lib/openat.c: Include fcntl.h again, explicitly.
4768
4769 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
4770
4771         parse-datetime: document the newly accepted format
4772         * doc/parse-datetime.texi (Combined date and time of day items):
4773         New section.
4774
4775 2011-09-06  Bruno Haible  <bruno@clisp.org>
4776
4777         acl: Fix a test failure on newer Solaris 10 with ZFS.
4778         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
4779         ENOSYS as no ACL.
4780         Reported by Jim Meyering.
4781
4782 2011-09-06  Bruno Haible  <bruno@clisp.org>
4783
4784         acl: Update for AIX >= 5.3 with NFS.
4785         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
4786         ENOSYS as no ACL.
4787
4788         acl: Fix a test failure on AIX >= 5.3 with NFS.
4789         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
4790         as no ACL.
4791
4792 2011-09-06  Bruno Haible  <bruno@clisp.org>
4793
4794         acl: Fix a test failure on IRIX 6.5 with NFS.
4795         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
4796         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
4797         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
4798         * lib/copy-acl.c (qcopy_acl): Likewise.
4799
4800 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
4801
4802         openat: port to AIX 7.1 with large files
4803         AIX 7.1 does a "#define openat open64at" if large files are in use,
4804         so we can't simply #undef openat.  Use the orig_openat trick (similar
4805         to orig_open in lib/open.c) to work around the problem.  Problem
4806         reported by Kevin Brott for GNU tar, in the thread containing
4807         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
4808         * lib/openat.c (__need_system_fcntl_h): Define first.
4809         Include <fcntl.h> and <sys/types.h> before undefining.
4810         (orig_openat) [HAVE_OPENAT]: New inline function.
4811         (openat) [HAVE_OPENAT]: Do not undef.
4812         (rpl_openat): Use orig_openat, not openat.
4813
4814 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
4815             Bruno Haible  <bruno@clisp.org>
4816
4817         acl: Avoid errors on NonStop Kernel.
4818         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
4819         ENOTSUP errors.
4820
4821 2011-09-05  Bruno Haible  <bruno@clisp.org>
4822
4823         acl: Clean up Solaris code.
4824         * lib/acl-internal.h: Remove no-op #if.
4825         * lib/file-has-acl.c: Likewise.
4826         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
4827         * lib/copy-acl.c (qcopy_acl): Likewise.
4828
4829 2011-09-05  Bruno Haible  <bruno@clisp.org>
4830
4831         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
4832         binaries built on the original Solaris 10.
4833         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
4834         trivial.
4835
4836 2011-09-05  Bruno Haible  <bruno@clisp.org>
4837
4838         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4839         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
4840         10.
4841         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
4842         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
4843         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
4844         instead of acl_get, facl_get, acl_set, facl_set.
4845
4846 2011-09-05  Bruno Haible  <bruno@clisp.org>
4847
4848         copy-file: Try unit tests on more file systems.
4849         * tests/test-copy-file-1.sh: New file.
4850         * tests/test-copy-file-2.sh: New file.
4851         * modules/copy-file-tests (Files): Add them.
4852         (Makefile.am): Add them to TESTS.
4853
4854         acl: Try unit tests on more file systems.
4855         * tests/test-file-has-acl-1.sh: New file.
4856         * tests/test-file-has-acl-2.sh: New file.
4857         * tests/test-set-mode-acl-1.sh: New file.
4858         * tests/test-set-mode-acl-2.sh: New file.
4859         * tests/test-copy-acl-1.sh: New file.
4860         * tests/test-copy-acl-2.sh: New file.
4861         * modules/acl-tests (Files): Add them.
4862         (Makefile.am): Add them to TESTS.
4863
4864 2011-09-04  Bruno Haible  <bruno@clisp.org>
4865
4866         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4867         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
4868         10.
4869         (OLD_ALLOW, OLD_DENY): New macros.
4870         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
4871         ACE_ACCESS_ALLOWED_ACE_TYPE.
4872         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
4873         ACE_ACCESS_DENIED_ACE_TYPE.
4874         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
4875         (NEW_ACE_EXECUTE): Fix value.
4876         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
4877         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
4878         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
4879         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
4880         NEW_ACE_SYNCHRONIZE): New macros.
4881         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
4882         instead of acl_fromtext, acl_set, facl_set.
4883         Fixes a coreutils/tests/cp/perm failure.
4884
4885 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
4886
4887         openat: test for fstatat (..., 0) bug
4888         Further testing with tar suggests that fstatat (..., 0)
4889         does not work in general, on AIX 7.1; see
4890         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
4891         So, give up entirely on AIX 7.1's fstatat, and fall back on our
4892         replacement fstatat (which is what older AIX releases were using
4893         anyway).
4894         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
4895         use is now changed to orig_fstatat.  This was probably the right
4896         thing to do anyway.
4897         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
4898         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
4899         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
4900         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
4901         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
4902         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
4903         if the bug is found.
4904
4905         openat: test for fstatat (AT_FDCWD, ..., 0) bug
4906         This tests for another fstatat bug on AIX 7.1:
4907         fstatat (AT_FDCWD, ..., 0) does not work.  See
4908         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
4909         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
4910         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
4911         (rpl_fstatat): Adjust so that it works around either (or both)
4912         bugs if present.
4913         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
4914
4915 2011-09-03  Karl Berry  <karl@gnu.org>
4916
4917         * doc/regex.texi (Character Class Operators): Avoid literal ":"
4918         in index entries.
4919
4920 2011-09-02  Bruno Haible  <bruno@clisp.org>
4921
4922         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
4923         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
4924         values of AR, ARFLAGS, RANLIB.
4925         Reported by John W. Eaton <jwe@gnu.org> for Octave.
4926
4927 2011-09-02  Bruno Haible  <bruno@clisp.org>
4928
4929         Find 'ar' program that fits with --host argument.
4930         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
4931
4932 2011-09-02  Bruno Haible  <bruno@clisp.org>
4933
4934         tests: init.sh: Support any non-GNU diff.
4935         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
4936         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
4937         Solaris 8.
4938
4939 2011-09-02  Bruno Haible  <bruno@clisp.org>
4940
4941         tests: init.sh: work also with any non-GNU diff that supports -u
4942         * tests/init.sh: Relax check for diff -u support.
4943         Rather than checking for GNU diff via --version, simply check
4944         for support for -u itself.  Useful at least on OpenBSD 4.9,
4945         AIX 7.1, IRIX 6.5, and Solaris 10.
4946
4947 2011-09-01  Bruno Haible  <bruno@clisp.org>
4948
4949         strtoimax, strtoumax: Document problem on HP-UX 11.
4950         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
4951         * doc/posix-functions/strtoumax.texi: Likewise.
4952
4953 2011-09-01  Bruno Haible  <bruno@clisp.org>
4954
4955         strtoumax: Avoid link error on OSF/1 with DTK cc.
4956         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
4957         defined as a function.
4958         * modules/strtoumax (Depends-on, configure.ac): Test only whether
4959         strtoumax is defined, not whether it is declared.
4960
4961 2011-09-01  Bruno Haible  <bruno@clisp.org>
4962
4963         strtoimax: Avoid link error on OSF/1 with DTK cc.
4964         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
4965         defined as a function.
4966         * modules/strtoimax (Depends-on, configure.ac): Test only whether
4967         strtoimax is defined, not whether it is declared.
4968
4969 2011-09-01  Bruno Haible  <bruno@clisp.org>
4970
4971         imaxdiv: Avoid link error on OSF/1 with DTK cc.
4972         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
4973         as a function.
4974         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
4975         whether it is declared.
4976
4977 2011-09-01  Bruno Haible  <bruno@clisp.org>
4978
4979         imaxabs: Avoid link error on OSF/1 with DTK cc.
4980         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
4981         as a function.
4982         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
4983         whether it is declared.
4984
4985 2011-09-01  Bruno Haible  <bruno@clisp.org>
4986
4987         Tests for module 'strtoumax'.
4988         * modules/strtoumax-tests: New file.
4989         * tests/test-strtoumax.c: New file.
4990
4991         Tests for module 'strtoimax'.
4992         * modules/strtoimax-tests: New file.
4993         * tests/test-strtoimax.c: New file.
4994
4995         Tests for module 'imaxdiv'.
4996         * modules/imaxdiv-tests: New file.
4997         * tests/test-imaxdiv.c: New file.
4998
4999         Tests for module 'imaxabs'.
5000         * modules/imaxabs-tests: New file.
5001         * tests/test-imaxabs.c: New file.
5002
5003 2011-09-01  Bruno Haible  <bruno@clisp.org>
5004
5005         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
5006         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
5007         pthread_create.
5008
5009 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5010
5011         openat: work around AIX 7.1 fstatat issue
5012         This should fix the problem that was not properly fixed
5013         in the previous change, dated 2011-08-30.
5014         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
5015         __need_system_stat_h defined.
5016         (orig_fstatat) [HAVE_FSTATAT]: New function.
5017         (rpl_fstatat): Go back to the old way of doing things,
5018         except call orig_fstatat instead of fstatat.
5019         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
5020         Remove unnecessary check whether fstatat fills in st_size etc.
5021
5022 2011-09-01  Bruno Haible  <bruno@clisp.org>
5023
5024         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
5025         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
5026         just include the system's header.
5027
5028 2011-08-31  Jim Meyering  <meyering@redhat.com>
5029
5030         tests: avoid spurious assertion failure in test-float.c on ppc64
5031         * tests/test-float.c (test_long_double): Comment out an assertion,
5032         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
5033         with gcc-4.4.4.
5034
5035         maint: indent with spaces, not TABs
5036         I need to get in the habit of running gnulib's "make check".
5037         Both of these would have been caught.
5038         * m4/largefile.m4: Indent with spaces, not TABs.
5039         * lib/parse-datetime.y (iso_8601_time): Likewise.
5040         Spotted by Pádraig Brady.
5041
5042         test-parse-datetime.c: accommodate a relatively strict gcc warning
5043         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
5044         to avoid a warning from gcc's -Werror=missing-declarations.
5045         Insert a few spaces-before-funcall-parenthesis.
5046
5047 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
5048
5049         parse-datetime: accept ISO 8601 date and time rep with "T" separator
5050         The parser now accepts ISO 8601 date-time strings with "T" as the
5051         separator.  It has long parsed dates like "2004-02-29 16:21:42"
5052         with a space between the date and time strings.  Now it also parses
5053         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
5054         variants like "2004-02-29T16:21:42.333-07:00"
5055         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
5056         of day representation using the 'T' separator character.
5057         * doc/parse-datetime.texi (General date syntax): replace use of
5058         deprecated --iso-8601 option with --rfc-3339 in example of date
5059         command output formats that can be parsed.
5060         * tests/test-parse-datetime.c (tm_diff): New function, taken from
5061         lib/parse-datetime.y.
5062         (gmt_offset): New function.
5063         (main): Add additional test cases to validate ISO8601 extended
5064         date and time of day parsing.
5065
5066 2011-08-31  Bruno Haible  <bruno@clisp.org>
5067
5068         freopen: Documentation.
5069         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
5070         name.
5071         Reported by Claudio Bley <claudio.bley@gmail.com>.
5072
5073 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
5074
5075         freopen: Don't crash if the filename argument is NULL.
5076         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
5077         NULL.
5078
5079 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
5080
5081         openat: work around AIX 7.1 fstatat bug
5082         Problem reported by Kevin Brott for GNU tar, in the thread containing
5083         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
5084         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
5085         FSTATAT_ST_SIZE_ETC_BROKEN.
5086         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
5087         rpl_fstatat.
5088         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
5089         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
5090         AC_CHECK_FUNCS_ONCE for fstatat.
5091         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
5092         fchmodat, mkdirat, openat and unlinkat.
5093
5094 2011-08-30  Bruno Haible  <bruno@clisp.org>
5095
5096         Avoid endless recursions if config.h includes some header files.
5097         * lib/fopen.c (__need_FILE): Define already before including config.h.
5098         * lib/freopen.c (__need_FILE): Likewise.
5099         * lib/open.c (__need_system_fcntl_h): Likewise.
5100         * lib/stat.c (__need_system_sys_stat_h): Likewise.
5101         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
5102         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5103
5104 2011-08-25  Karl Berry  <karl@gnu.org>
5105
5106         * config/srclist.txt (ylwrap): new try.
5107         * build-aux/ylwrap: new file.
5108
5109 2011-08-23  Bruno Haible  <bruno@clisp.org>
5110
5111         tmpdir: Use a good default directory on native Windows.
5112         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
5113         (P_tmpdir): Default to _P_tmpdir on native Windows.
5114         (path_search): On native Windows, try the value returned by GetTempPath
5115         before trying P_tmpdir.
5116         * modules/tmpdir (Depends-on): Add pathmax.
5117         Suggested by John Darrington <john@darrington.wattle.id.au>.
5118
5119 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
5120
5121         doc: fix typo in README-release
5122         * top/README-release: Capitalize first word of a sentence.
5123
5124 2011-08-19  Jim Meyering  <meyering@redhat.com>
5125
5126         fts: do not exhaust memory when processing million-entry directories
5127         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
5128         directory would require about 256*N bytes of memory.  Thus, it was
5129         easy to construct a directory too large to be processed by any of
5130         those tools.  With this change, fts' maximum memory utilization is
5131         now limited to around 30MB.
5132         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
5133         (fts_read): When we've processed the final entry (i.e., when
5134         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
5135         using the parent entry to read any remaining entries.  Dispatch
5136         depending on what fts_build returns:
5137         - NULL+stop, aka failure: stop
5138         - NULL otherwise: move up in the dir hierarchy
5139         - non-NULL: handle this new entry
5140         (fts_build): Declare and use new local, continue_readdir.
5141         Prepare to be called from fts_read, when the entries
5142         from a partially-read directory have just been exhausted.
5143         In that case, we'll skip the opendir and instead use the parent's
5144         fts_dirp and derive dir_fd from that.
5145         Finally, in the readdir loop, if we read max_entries entries,
5146         exit the loop ensuring *not* to call closedir.  This is required
5147         so that fts_dirp can be reused on a subsequent call.
5148         Prompted by Ben England's report of memory exhaustion in find
5149         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
5150
5151         maint: fts: move decl of `dp' down into while loop; split a long line
5152         * lib/fts.c (fts_build): No semantic change.
5153
5154         fts: add/use new struct member, fts_dirp
5155         We are about to use this to manage any directory with
5156         too many entries to read all of them into memory at once.
5157         To do that, we'll need to save the DIR* pointer in each
5158         affected FTSENT struct.
5159         * lib/fts_.h: Include <dirent.h>.
5160         (struct FTSENT) [fts_dirp]: New member.
5161         * lib/fts.c (closedir_and_clear): Define.
5162         Use it in place of closedir so that we are sure to
5163         clear the new fts_dirp member when done with it.
5164         (fts_alloc): Initialize the new member.
5165         (fts_lfree): Free, if needed.
5166
5167         maint: fts: give __opendir2 a new parameter and rename
5168         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
5169         than surreptitiously using sole caller's "dir_fd".
5170         (fts_opendir): Rename from __opendir2.
5171
5172         maint: fts.c: remove __opendir2's now-unused parameter, oflag
5173         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
5174
5175         maint: fts.c: correct off-by-one indentation
5176         * lib/fts.c (fts_build): Correct indentation, change style
5177         of a couple of block comments, and bracing style.
5178
5179         maint: fts.c: move __opendir2 #define "up" out of function body
5180         * lib/fts.c (__opendir2): Move "up".  No semantic change.
5181
5182         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
5183         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
5184         out for a long time and besides was useful only on BSD systems.
5185
5186 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
5187
5188         regex: port to Stratus OpenVOS
5189         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
5190         define to empty, rather than attempting nonportable optimizations.
5191         Problem reported by Paul Green in:
5192         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
5193         and fix suggested by Eric Blake in:
5194         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
5195
5196 2011-08-17  Eric Blake  <eblake@redhat.com>
5197
5198         getcwd: fix test failures on mingw
5199         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
5200         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
5201         test if long directory cannot be created, and allow mingw errno.
5202
5203         getcwd-lgpl: fix m4 to match relaxed test for BSD
5204         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
5205         (gl_FUNC_GETCWD_SIGNATURE): New macro.
5206         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
5207         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
5208         signature problem.
5209
5210         getcwd: fix compilation on mingw64
5211         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
5212         getcwd.
5213         Reported by Marc-André Lureau.
5214
5215         pipe2: silence compiler warning
5216         * lib/pipe2.c (pipe2): Hide label if it is not used.
5217
5218 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
5219
5220         relocatable-prog: fix link error
5221         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
5222         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
5223         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
5224         into modules/relocatable-lib without noticing that
5225         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
5226         also needs to build relocatable.c.
5227
5228 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
5229
5230         getaddrinfo: fix sh typo in gai_strerrorA decl checking
5231         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
5232         shell code: it contained a 'break' that was not in a loop.
5233         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
5234         via a shell-language loop; this may have been true in old Autoconf
5235         versions, but it's not true in Autoconf 2.68.  I found this bug
5236         when testing coreutils git on Solaris 8, whose shell complains
5237         about the syntax error.
5238
5239 2011-08-12  Simon Josefsson  <simon@josefsson.org>
5240
5241         * lib/base64.c: Fix comment to reference RFC 4648.
5242         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
5243         <gvtulder@gmail.com>.
5244
5245 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
5246
5247         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
5248
5249         po/Makefile.in.in: fix make -q problem
5250         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
5251         rule, since there's no file named 'check-macro-version' and its
5252         use as a file breaks make -q.
5253         (all): Don't depend on check-macro-version.
5254         (CHECK_MACRO_VERSION): New macro.
5255         (stamp-po): Use it.
5256
5257         configmake: fix make -q problem
5258         * modules/configmake (configmake.h): Update configmake.h's time stamp
5259         even if the file does not change.  Otherwise, 'make -q' fails.
5260         Problem reported by Simon Josefsson in
5261         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
5262
5263 2011-08-11  Jim Meyering  <meyering@redhat.com>
5264
5265         git-version-gen: correct the advice in a comment
5266         * build-aux/git-version-gen: Correct comment.
5267         Don't recommend to list .tarball-version in .gitignore.
5268
5269 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5270
5271         base64: fix off-by-one buffer size bug
5272         Problem and (trivial) fix reported by Gijs van Tulder in
5273         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
5274         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
5275         * tests/test-base64.c (main): Catch the bug.
5276
5277 2011-08-10  Eric Blake  <eblake@redhat.com>
5278
5279         closein: correct comments
5280         * lib/closein.c (close_stdin): Improve comments.
5281
5282 2011-08-09  Bruno Haible  <bruno@clisp.org>
5283
5284         More tests for 'fseeko'.
5285         * tests/test-fseeko3.c: New file, from Eric Blake.
5286         * tests/test-fseeko3.sh: New file.
5287         * modules/fseeko-tests (Files): Add them.
5288         (TESTS): Add test-fseeko3.sh.
5289         (check_PROGRAMS): Add test-fseeko3.
5290
5291 2011-08-09  Eric Blake  <eblake@redhat.com>
5292
5293         fseeko: remove unneeded hack
5294         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
5295
5296         fseeko: fix bug on glibc
5297         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
5298         Reported by John W. Eaton.
5299
5300 2011-08-08  Bruno Haible  <bruno@clisp.org>
5301
5302         unictype/base: Fix interoperability with preinstalled libunistring.
5303         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
5304         Reported by Simon Josefsson.
5305
5306 2011-08-08  Bruno Haible  <bruno@clisp.org>
5307
5308         iswblank: Detect declaration correctly.
5309         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
5310         AC_CHECK_DECLS invocation.
5311
5312 2011-08-08  Bruno Haible  <bruno@clisp.org>
5313
5314         tcgetsid: Detect declaration correctly.
5315         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
5316         AC_CHECK_DECLS invocation.
5317         Reported by Simon Josefsson.
5318
5319 2011-08-08  Eric Blake  <eblake@redhat.com>
5320
5321         largefile: fix typo that regressed large file support
5322         * modules/largefile (configure.ac-early): Fix section name.
5323
5324 2011-08-06  Karl Berry  <karl@gnu.org>
5325
5326         * MODULES.html.sh (func_all_files): _Noreturn is no longer
5327         a separate module.
5328
5329 2011-08-05  Simon Josefsson  <simon@josefsson.org>
5330
5331         openat: Fix warnings and commens when building unlinkat.c on Hurd.
5332         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
5333         get prototype for free.
5334
5335 2011-08-04  Bruno Haible  <bruno@clisp.org>
5336
5337         Tests for module 'pathmax'.
5338         * modules/pathmax-tests: New file.
5339         * tests/test-pathmax.c: New file.
5340
5341         canonicalize-lgpl: Support larger filenames on the Hurd.
5342         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
5343         Reported by Paul Eggert.
5344
5345         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
5346         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
5347         * lib/chdir-long.h: Include pathmax.h.
5348         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
5349         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
5350         (PATH_MAX): Remove code that is done by pathmax.h.
5351         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
5352         * lib/tmpfile.c: Add a comment.
5353         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
5354         * modules/chdir-long (Depends-on): Add pathmax.
5355         * modules/getcwd (Depends-on): Add pathmax.
5356         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
5357         is not defined.
5358         * doc/posix-headers/limits.texi: Mention the pathmax module.
5359         * NEWS: Mention the change.
5360
5361 2011-08-02  Bruno Haible  <bruno@clisp.org>
5362
5363         pthread_sigmask: Actually use results of gl_THREADLIB.
5364         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
5365         gl_THREADLIB, not gl_[]THREADLIB.
5366         Reported by Eric Blake.
5367
5368 2011-08-02  Jim Meyering  <meyering@redhat.com>
5369
5370         maint.mk: relax the default _gl_TS_function_match regexp
5371         * top/maint.mk (_gl_TS_function_match): Don't require at least one
5372         space between function name and "(" in an "extern" declaration.
5373         That would fail to match a decl with no space there: extern void foo();
5374
5375 2011-07-31  Iain Nicol  <iain@thenicols.net>
5376
5377         git-version-gen: document that EXTRA_DIST must include .version
5378         * build-aux/git-version-gen: In the how-to-use comment, document
5379         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
5380         will fail when run from an unpacked distribution tarball.
5381
5382 2011-08-01  Bruno Haible  <bruno@clisp.org>
5383
5384         wctype-h: Fix last change.
5385         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
5386         REPLACE_TOWLOWER to 0.
5387         Reported by Sam Steingold <sds@gnu.org>.
5388
5389 2011-07-31  Bruno Haible  <bruno@clisp.org>
5390
5391         frexpl: Update autoconf test.
5392         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
5393         according to changes of 2011-06-20.
5394
5395 2011-07-31  Bruno Haible  <bruno@clisp.org>
5396
5397         sys_utsname: Add support for Minix.
5398         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
5399         <sys/utsname.h>.
5400         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5401         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
5402
5403 2011-07-31  Bruno Haible  <bruno@clisp.org>
5404
5405         strings: Add support for Minix.
5406         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
5407         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
5408         * doc/posix-headers/strings.texi: Document the Minix problem.
5409
5410 2011-07-31  Bruno Haible  <bruno@clisp.org>
5411
5412         wctype-h: Add support for Minix.
5413         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
5414         REPLACE_TOWLOWER.
5415         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
5416         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
5417         REPLACE_ISWCNTRL.
5418
5419 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
5420
5421         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
5422         This is a performance improvement for 64-bit hosts: it causes the
5423         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
5424
5425 2011-07-31  Bruno Haible  <bruno@clisp.org>
5426
5427         stdioext: Add support for Minix.
5428         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
5429         * lib/fpurge.c (fpurge): Likewise.
5430         * lib/freadahead.c (freadahead): Likewise.
5431         * lib/freadable.c (freadable): Likewise.
5432         * lib/freading.c (freading): Likewise.
5433         * lib/freadptr.c (freadptr): Likewise.
5434         * lib/freadseek.c (freadptrinc): Likewise.
5435         * lib/fseeko.c (rpl_fseeko): Likewise.
5436         * lib/fseterr.c (fseterr): Likewise.
5437         * lib/fwritable.c (fwritable): Likewise.
5438         * lib/fwriting.c (fwriting): Likewise.
5439         * lib/fflush.c (clear_ungetc_buffer): Update comment.
5440         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
5441
5442 2011-07-31  Bruno Haible  <bruno@clisp.org>
5443
5444         errno: Port to Minix.
5445         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
5446         ECONNABORTED are defined.
5447         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
5448         GNULIB_defined_ECONNABORTED): New macros.
5449         * lib/strerror-override.h (strerror_override): Test also
5450         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
5451         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
5452         ECONNABORTED.
5453         * doc/posix-headers/errno.texi: Mention the Minix problem.
5454
5455 2011-07-31  Bruno Haible  <bruno@clisp.org>
5456
5457         Work around declaration collisions on Minix.
5458         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
5459         defined, set REPLACE_MBSINIT.
5460         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
5461         defined, set REPLACE_MBRTOWC.
5462         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
5463         set REPLACE_MBRLEN.
5464         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
5465         defined, set REPLACE_MBSRTOWCS.
5466         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
5467         defined, set REPLACE_WCRTOMB.
5468         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
5469         defined, set REPLACE_WCSRTOMBS.
5470
5471 2011-07-31  Bruno Haible  <bruno@clisp.org>
5472
5473         Add support for Minix with ACK compiler.
5474         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
5475         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
5476         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
5477
5478 2011-07-31  Bruno Haible  <bruno@clisp.org>
5479
5480         Documentation about Minix.
5481         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
5482         * doc/glibc-headers/*.texi: Likewise.
5483         * doc/posix-functions/*.texi: Likewise.
5484         * doc/glibc-functions/*.texi: Likewise.
5485
5486 2011-07-31  Bruno Haible  <bruno@clisp.org>
5487
5488         snippet/warn-on-use: Fix indentation.
5489         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
5490
5491 2011-07-25  Jim Meyering  <meyering@redhat.com>
5492
5493         tests: test-update-copyright.sh: remove unnecessary "rm" commands
5494         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
5495         commands.
5496
5497 2011-07-27  Jim Meyering  <meyering@redhat.com>
5498
5499         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
5500         * top/maint.mk (gl_extract_significant_defines_): Now that
5501         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
5502         gnulib/lib/signal.in.h, and now that we recommend to
5503         define-if-undefined those two symbols in application code,
5504         we must filter them out of the "significant" list.
5505         This avoids a "make syntax-check" failure in coreutils.
5506
5507 2011-07-26  Eric Blake  <eblake@redhat.com>
5508
5509         warnings: add comments about previous patch
5510         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
5511         * m4/include_next.m4: Likewise.
5512         * m4/warn-on-use.m4: Likewise.
5513         * m4/warnings.m4: Likewise, and simplify use.
5514         Suggested by Stefano Lattarini.
5515
5516         include-next, warnings: support older autoconf
5517         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
5518         AS_VAR_PUSHDEF in a way that works with older autoconf.
5519         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
5520         Reported by Daniel P. Berrange.
5521
5522 2011-07-25  Bruno Haible  <bruno@clisp.org>
5523
5524         fseek, ftell: Fix doc.
5525         * doc/posix-functions/fseek.texi: Reword statement about
5526         AC_SYS_LARGEFILE.
5527         * doc/posix-functions/ftell.texi: Likewise.
5528
5529 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5530             Bruno Haible  <bruno@clisp.org>
5531
5532         Add dependencies to the 'largefile' module.
5533         * modules/fopen (Depends-on): Add 'largefile'.
5534         * modules/freopen (Depends-on): Likewise.
5535         * modules/fseeko (Depends-on): Likewise.
5536         * modules/ftello (Depends-on): Likewise.
5537         * modules/glob (Depends-on): Likewise.
5538         * modules/lseek (Depends-on): Likewise.
5539         * modules/lstat (Depends-on): Likewise.
5540         * modules/mkostemp (Depends-on): Likewise.
5541         * modules/mkostemps (Depends-on): Likewise.
5542         * modules/mkstemp (Depends-on): Likewise.
5543         * modules/mkstemps (Depends-on): Likewise.
5544         * modules/open (Depends-on): Likewise.
5545         * modules/openat (Depends-on): Likewise.
5546         * modules/pread (Depends-on): Likewise.
5547         * modules/pwrite (Depends-on): Likewise.
5548         * modules/scandir (Depends-on): Likewise.
5549         * modules/stat (Depends-on): Likewise.
5550         * modules/tmpfile (Depends-on): Likewise.
5551         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
5552         since the containing module now depends on the largefile module.
5553         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
5554         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
5555         off_t is fixed by gnulib.
5556         * doc/posix-functions/freopen.texi: Likewise.
5557         * doc/posix-functions/fseeko.texi: Likewise.
5558         * doc/posix-functions/fstatat.texi: Likewise.
5559         * doc/posix-functions/ftello.texi: Likewise.
5560         * doc/posix-functions/glob.texi: Likewise.
5561         * doc/posix-functions/lseek.texi: Likewise.
5562         * doc/posix-functions/lstat.texi: Likewise.
5563         * doc/posix-functions/mkstemp.texi: Likewise.
5564         * doc/posix-functions/open.texi: Likewise.
5565         * doc/posix-functions/openat.texi: Likewise.
5566         * doc/posix-functions/pread.texi: Likewise.
5567         * doc/posix-functions/pwrite.texi: Likewise.
5568         * doc/posix-functions/scandir.texi: Likewise.
5569         * doc/posix-functions/stat.texi: Likewise.
5570         * doc/posix-functions/tmpfile.texi: Likewise.
5571         * doc/glibc-functions/mkostemp.texi: Likewise.
5572         * doc/glibc-functions/mkostemps.texi: Likewise.
5573         * doc/glibc-functions/mkstemps.texi: Likewise.
5574
5575 2011-07-25  Bruno Haible  <bruno@clisp.org>
5576
5577         fcntl: Move AC_LIBOBJ invocation to module description.
5578         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
5579         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
5580
5581         fcntl: Remove call-in from fchdir.m4.
5582         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
5583         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
5584
5585         dup3: Remove potential call-in from fchdir.m4.
5586         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
5587         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
5588
5589         dup2: Move AC_LIBOBJ invocation to module description.
5590         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
5591         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
5592         Don't invoke AC_LIBOBJ.
5593         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
5594
5595         dup2: Remove call-in from fchdir.m4.
5596         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
5597         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
5598
5599         fclose: Move AC_LIBOBJ invocation to module description.
5600         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
5601         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
5602         to 1.
5603         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
5604
5605         fclose: Remove call-in from close.m4.
5606         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
5607         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
5608
5609         close: Move AC_LIBOBJ invocation to module description.
5610         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
5611         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
5612         1.
5613         * modules/close (configure.ac): Invoke AC_LIBOBJ.
5614
5615         close: Remove call-in from fchdir.m4.
5616         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
5617         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
5618
5619         open: Move AC_LIBOBJ invocation to module description.
5620         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
5621         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
5622         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
5623
5624         open: Remove call-in from fchdir.m4.
5625         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
5626         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
5627
5628         fchdir: Start to remove gl_REPLACE_* idiom.
5629         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
5630         (gl_FUNC_FCHDIR): Invoke it.
5631
5632 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5633
5634         * lib/ftell.c (ftell): Comment out cast.
5635
5636         close: use gl_REPLACE_FCLOSE only if defined
5637         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
5638         is defined.  The close module doesn't depend on the fclose module
5639         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
5640         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
5641         I reproduced the problem with "./gnulib-tool --test close sys_socket".
5642
5643 2011-07-24  Jim Meyering  <meyering@redhat.com>
5644
5645         test-select.h: avoid warning when using gcc's -Wmissing-declarations
5646         * tests/test-select.h (test_function): Declare as "static".
5647
5648 2011-07-24  Bruno Haible  <bruno@clisp.org>
5649
5650         doc: Mention the effects of AC_SYS_LARGEFILE.
5651         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
5652         on this function.
5653         * doc/posix-functions/aio_error.texi: Likewise.
5654         * doc/posix-functions/aio_fsync.texi: Likewise.
5655         * doc/posix-functions/aio_read.texi: Likewise.
5656         * doc/posix-functions/aio_return.texi: Likewise.
5657         * doc/posix-functions/aio_suspend.texi: Likewise.
5658         * doc/posix-functions/aio_write.texi: Likewise.
5659         * doc/posix-functions/fgetpos.texi: Likewise.
5660         * doc/posix-functions/fopen.texi: Likewise.
5661         * doc/posix-functions/freopen.texi: Likewise.
5662         * doc/posix-functions/fsetpos.texi: Likewise.
5663         * doc/posix-functions/fstatvfs.texi: Likewise.
5664         * doc/posix-functions/ftruncate.texi: Likewise.
5665         * doc/posix-functions/ftw.texi: Likewise.
5666         * doc/posix-functions/getrlimit.texi: Likewise.
5667         * doc/posix-functions/glob.texi: Likewise.
5668         * doc/posix-functions/lio_listio.texi: Likewise.
5669         * doc/posix-functions/lockf.texi: Likewise.
5670         * doc/posix-functions/mkstemp.texi: Likewise.
5671         * doc/posix-functions/mmap.texi: Likewise.
5672         * doc/posix-functions/nftw.texi: Likewise.
5673         * doc/posix-functions/openat.texi: Likewise.
5674         * doc/posix-functions/opendir.texi: Likewise.
5675         * doc/posix-functions/posix_fadvise.texi: Likewise.
5676         * doc/posix-functions/posix_fallocate.texi: Likewise.
5677         * doc/posix-functions/pread.texi: Likewise.
5678         * doc/posix-functions/pwrite.texi: Likewise.
5679         * doc/posix-functions/readdir.texi: Likewise.
5680         * doc/posix-functions/readdir_r.texi: Likewise.
5681         * doc/posix-functions/rewinddir.texi: Likewise.
5682         * doc/posix-functions/scandir.texi: Likewise.
5683         * doc/posix-functions/seekdir.texi: Likewise.
5684         * doc/posix-functions/setrlimit.texi: Likewise.
5685         * doc/posix-functions/statvfs.texi: Likewise.
5686         * doc/posix-functions/telldir.texi: Likewise.
5687         * doc/posix-functions/tmpfile.texi: Likewise.
5688         * doc/posix-functions/truncate.texi: Likewise.
5689         * doc/glibc-functions/fallocate.texi: Likewise.
5690         * doc/glibc-functions/fstatfs.texi: Likewise.
5691         * doc/glibc-functions/fts_children.texi: Likewise.
5692         * doc/glibc-functions/fts_read.texi: Likewise.
5693         * doc/glibc-functions/getdirentries.texi: Likewise.
5694         * doc/glibc-functions/mkostemp.texi: Likewise.
5695         * doc/glibc-functions/mkostemps.texi: Likewise.
5696         * doc/glibc-functions/mkstemps.texi: Likewise.
5697         * doc/glibc-functions/preadv.texi: Likewise.
5698         * doc/glibc-functions/pwritev.texi: Likewise.
5699         * doc/glibc-functions/sendfile.texi: Likewise.
5700         * doc/glibc-functions/statfs.texi: Likewise.
5701
5702 2011-07-24  Bruno Haible  <bruno@clisp.org>
5703
5704         doc: Fix typo.
5705         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
5706
5707 2011-07-24  Bruno Haible  <bruno@clisp.org>
5708
5709         doc: Mention fsusage.
5710         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
5711
5712 2011-07-24  Bruno Haible  <bruno@clisp.org>
5713
5714         doc: Mention new glibc headers and functions.
5715         * doc/glibc-headers/gshadow.texi: New file.
5716         * doc/glibc-functions/endsgent.texi: New file.
5717         * doc/glibc-functions/fgetsgent.texi: New file.
5718         * doc/glibc-functions/fgetsgent_r.texi: New file.
5719         * doc/glibc-functions/getsgent.texi: New file.
5720         * doc/glibc-functions/getsgent_r.texi: New file.
5721         * doc/glibc-functions/getsgnam.texi: New file.
5722         * doc/glibc-functions/getsgnam_r.texi: New file.
5723         * doc/glibc-functions/putsgent.texi: New file.
5724         * doc/glibc-functions/setsgent.texi: New file.
5725         * doc/glibc-functions/sgetsgent.texi: New file.
5726         * doc/glibc-functions/sgetsgent_r.texi: New file.
5727         * doc/glibc-functions/malloc_info.texi: New file.
5728         * doc/glibc-functions/preadv.texi: New file.
5729         * doc/glibc-functions/pwritev.texi: New file.
5730         * doc/glibc-functions/register_printf_modifier.texi: New file.
5731         * doc/glibc-functions/register_printf_specifier.texi: New file.
5732         * doc/glibc-functions/register_printf_type.texi: New file.
5733         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
5734         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
5735         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
5736         * doc/glibc-functions/pthread_getname_np.texi: New file.
5737         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
5738         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
5739         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
5740         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
5741         * doc/glibc-functions/pthread_setname_np.texi: New file.
5742         * doc/glibc-functions/pthread_sigqueue.texi: New file.
5743         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
5744         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
5745         * doc/glibc-functions/qsort_r.texi: New file.
5746         * doc/glibc-functions/quick_exit.texi: New file.
5747         * doc/glibc-functions/syncfs.texi: New file.
5748         * doc/gnulib.texi: Include them.
5749         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
5750         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
5751         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
5752         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
5753         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
5754         * doc/glibc-functions/execvpe.texi: Likewise.
5755
5756 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5757
5758         ftell: don't include <unistd.h>
5759         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
5760         guaranteed to define off_t, and the ftell module depends on the
5761         stdio module.
5762
5763         ftell: do not assume wraparound signed arithmetic
5764         * lib/ftell.c: Include <limits.h>.
5765         (ftell): Don't assume wraparound signed arithmetic.
5766
5767 2011-07-24  Bruno Haible  <bruno@clisp.org>
5768
5769         close: No longer depend on module 'fclose'.
5770         * modules/close (Depends-on): Remove fclose.
5771         * NEWS: Mention the change.
5772         Suggested by Sam Steingold <sds@gnu.org>.
5773
5774 2011-07-24  Bruno Haible  <bruno@clisp.org>
5775
5776         fsusage: Enable large volume support on AIX >= 5.2.
5777         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
5778         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
5779         instead of STAT_STATVFS.
5780         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
5781
5782         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
5783         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
5784         f_blocks field only on MacOS X.
5785
5786         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
5787         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
5788         * modules/fsusage (Depends-on): Add largefile.
5789
5790 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5791
5792         * README: Modernize discussion of signed integers.
5793         Assuming overflow wraparound is no longer safe.
5794         Mention ones' complement and signed magnitude.
5795
5796 2011-07-22  Bruno Haible  <bruno@clisp.org>
5797
5798         select tests, pselect tests: Refactor.
5799         * tests/test-select.h: New file, extracted from tests/test-select.c.
5800         (select_fn): New type.
5801         (test, do_select, do_select_nowait, do_select_wait, test_tty,
5802         test_connect_first, test_accept_first, test_pair, test_socket_pair,
5803         test_pipe): Add my_select argument.
5804         (test_function): Renamed from main. Add my_select argument.
5805         * tests/test-select.c: Move most code to tests/test-select.h. Include
5806         test-select.h.
5807         * modules/select-tests (Files): Add tests/test-select.h.
5808         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
5809         (my_select, main): New functions.
5810         * modules/pselect-tests (Files): Add tests/test-select.h,
5811         tests/macros.h, tests/signature.h.
5812         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
5813         (configure.ac): Check for <sys/wait.h>.
5814
5815 2011-07-22  Bruno Haible  <bruno@clisp.org>
5816
5817         sys_select tests: Check the signature of FD_*.
5818         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
5819         signature tests from here...
5820         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
5821         here.
5822         * modules/sys_select-tests (Files): Add tests/signature.h.
5823
5824 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
5825
5826         largefile: new module, replacing large-inode
5827         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
5828         * MODULES.html.sh: Add largefile, remove large-inode.
5829         * modules/largefile, m4/largefile.m4: New files.
5830         * modules/large-inode, m4/large-inode.m4: Remove.
5831
5832         fsusage: port to MacOS X 10.7 with 4 TiB file systems
5833         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
5834         implementations that use only 32 bits to count blocks.
5835         On typical hosts with 1024-byte blocks, this fails with file
5836         systems as small as 4 TiB.  Problem reported by Herb Wartens
5837         <http://debbugs.gnu.org/9140> and this should also fix a similar
5838         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
5839
5840         large-inode: New module
5841         * MODULES.html.sh: Add it.
5842         * modules/large-inode, m4/large-inode.m4: New files.
5843
5844         extensions: Enable extensions on MacOS X 10.5 and later.
5845         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
5846
5847 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
5848
5849         file-has-acl: use acl_extended_file_nofollow if available
5850         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
5851         (acl_extended_file): New macro.
5852         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
5853         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
5854
5855 2011-07-21  Bruno Haible  <bruno@clisp.org>
5856
5857         Declare system functions in a way that works with C++.
5858         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
5859         declare fdopendir as extern "C".
5860         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
5861         declare frexpl as extern "C".
5862         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
5863         declare gai_strerror as extern "C".
5864         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
5865         programs, declare gai_strerror as extern "C".
5866         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
5867         declare getlogin_r as extern "C".
5868         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
5869         as extern "C".
5870         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
5871         declare ldexpl as extern "C".
5872         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
5873         as extern "C".
5874         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
5875         program, declare getmntinfo as extern "C".
5876         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
5877         stpncpy as extern "C".
5878         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
5879         program, declare __xpg_strerror_r as extern "C".
5880         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
5881         strndup as extern "C".
5882         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
5883         declare memset and bzero as extern "C".
5884         Reported by Sam Steingold <sds@gnu.org>.
5885
5886 2011-07-12  Jim Meyering  <meyering@redhat.com>
5887
5888         maint.mk: prohibit inclusion of "verify.h" without use
5889         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
5890
5891 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5892
5893         timer-time: A new module to check for timer_settime()
5894         * m4/timer_time.m4: Check for the posix function.
5895         * modules/timer-time: Add the new module.
5896         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
5897         Mention it.
5898
5899 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
5900             Bruno Haible  <bruno@clisp.org>
5901
5902         pthread_sigmask: assume POSIX threads if --avoid=threadlib
5903         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
5904         not defined, assume POSIX threads and look for pthread_sigmask in
5905         $LIBS, without changing $CPPFLAGS.
5906
5907 2011-07-19  Bruno Haible  <bruno@clisp.org>
5908
5909         strstr: Update cross-compilation guess.
5910         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
5911         CPUs, guess no, in view of glibc
5912         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
5913         Suggested by Eric Blake. Reported by Reuben Thomas.
5914
5915 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5916
5917         getopt-gnu: suppress core dumps from detection code
5918         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
5919         to suppress core dumps that may well occur on glibc systems.
5920         * modules/getopt-gnu: Depend on nocrash.
5921
5922 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
5923
5924         pthread_sigmask: ensure usleep is declared
5925         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
5926         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
5927
5928 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
5929
5930         doc: Document NonStop portability issues.
5931         * doc/posix-functions/sigaction.texi (sigaction):
5932         * doc/posix-headers/signal.texi (signal.h):
5933         Document NonStop.  See Joachim Schmitz in
5934         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
5935
5936 2011-07-15  Bruno Haible  <bruno@clisp.org>
5937
5938         ffsl, ffsll: Avoid unportable behaviour.
5939         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
5940
5941 2011-07-15  Bruno Haible  <bruno@clisp.org>
5942
5943         ffs: More tests.
5944         * tests/test-ffs.c (NBITS): New macro.
5945         (main): Add more tests.
5946         * tests/test-ffsl.c (NBITS): New macro.
5947         (main): Add more tests.
5948         * tests/test-ffsll.c (NBITS): New macro.
5949         (main): Add more tests.
5950
5951 2011-07-15  Eric Blake  <eblake@redhat.com>
5952
5953         ffsl, ffsll: new modules
5954         * modules/ffsl: New file.
5955         * modules/ffsll: Likewise.
5956         * m4/ffsl.m4: Likewise.
5957         * m4/ffsll.m4: Likewise.
5958         * lib/ffsl.c: Likewise.
5959         * lib/ffsl.h: Likewise.
5960         * lib/ffsll.c: Likewise.
5961         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
5962         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
5963         * modules/string (Makefile.am): Substitute witnesses.
5964         * lib/strings.in.h (ffsl, ffsll): Declare.
5965         * modules/ffsl-tests: New test file.
5966         * modules/ffsll-tests: Likewise.
5967         * tests/test-ffsl.c: Likewise.
5968         * tests/test-ffsll.c: Likewise.
5969         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5970         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
5971         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
5972
5973         ffs: fix m4 prerequisite
5974         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
5975
5976         ffs: avoid undefined behavior
5977         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
5978         * tests/test-ffs.c (naive, main): Avoid signed shifts.
5979         Reported by Bruno Haible.
5980
5981 2011-07-12  Bruno Haible  <bruno@clisp.org>
5982
5983         pthread_sigmask: Rely on module 'threadlib'.
5984         * modules/pthread_sigmask (Depends-on): Add threadlib.
5985         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
5986         is defined.
5987
5988 2011-07-12  Bruno Haible  <bruno@clisp.org>
5989
5990         regex: Depend on module 'strcase'.
5991         * modules/regex (Depends-on): Add strcase, for strcasecmp().
5992
5993 2011-07-12  Jim Meyering  <meyering@redhat.com>
5994
5995         warn-on-use: fix typo in file name
5996         * modules/snippet/warn-on-use (Files): Correct file name:
5997         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
5998
5999 2011-07-12  Bruno Haible  <bruno@clisp.org>
6000
6001         strings: Document module.
6002         * doc/posix-headers/strings.texi: Mention module 'strings'.
6003
6004 2011-07-12  Bruno Haible  <bruno@clisp.org>
6005
6006         Rename module '_Noreturn' to 'snippet/_Noreturn'.
6007         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
6008         (Files, Makefile.am): Update.
6009         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
6010         * modules/stdlib (Depends-on): Update.
6011
6012 2011-07-12  Bruno Haible  <bruno@clisp.org>
6013
6014         * NEWS: Mention the changes.
6015
6016         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
6017         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
6018         (Files, Makefile.am): Update.
6019         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
6020         * modules/arpa_inet (Depends-on): Update.
6021         * modules/ctype (Depends-on): Update.
6022         * modules/dirent (Depends-on): Update.
6023         * modules/fcntl-h (Depends-on): Update.
6024         * modules/glob (Depends-on): Update.
6025         * modules/iconv-h (Depends-on): Update.
6026         * modules/inttypes-incomplete (Depends-on): Update.
6027         * modules/langinfo (Depends-on): Update.
6028         * modules/locale (Depends-on): Update.
6029         * modules/math (Depends-on): Update.
6030         * modules/netdb (Depends-on): Update.
6031         * modules/poll-h (Depends-on): Update.
6032         * modules/pty (Depends-on): Update.
6033         * modules/search (Depends-on): Update.
6034         * modules/signal (Depends-on): Update.
6035         * modules/spawn (Depends-on): Update.
6036         * modules/stdio (Depends-on): Update.
6037         * modules/stdlib (Depends-on): Update.
6038         * modules/string (Depends-on): Update.
6039         * modules/strings (Depends-on): Update.
6040         * modules/sys_file (Depends-on): Update.
6041         * modules/sys_ioctl (Depends-on): Update.
6042         * modules/sys_select (Depends-on): Update.
6043         * modules/sys_socket (Depends-on): Update.
6044         * modules/sys_stat (Depends-on): Update.
6045         * modules/sys_time (Depends-on): Update.
6046         * modules/sys_times (Depends-on): Update.
6047         * modules/sys_utsname (Depends-on): Update.
6048         * modules/sys_wait (Depends-on): Update.
6049         * modules/termios (Depends-on): Update.
6050         * modules/time (Depends-on): Update.
6051         * modules/unistd (Depends-on): Update.
6052         * modules/wchar (Depends-on): Update.
6053         * modules/wctype-h (Depends-on): Update.
6054         * MODULES.html.sh (Support for building libraries and executables):
6055         Update.
6056
6057         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
6058         * modules/snippet/unused-parameter: Renamed from
6059         modules/unused-parameter.
6060         (Files, Makefile.am): Update.
6061         * build-aux/snippet/unused-parameter.h: Renamed from
6062         build-aux/unused-parameter.h.
6063         * modules/selinux-h (Depends-on): Update.
6064         * modules/unistr/base (Depends-on): Update.
6065         * MODULES.html.sh (Core language properties): Update.
6066
6067         Rename module 'link-warning' to 'snippet/link-warning'.
6068         * modules/snippet/link-warning: Renamed from modules/link-warning.
6069         (Files, Makefile.am): Update.
6070         * build-aux/snippet/link-warning.h: Renamed from
6071         build-aux/link-warning.h.
6072         * MODULES.html.sh (Support for building libraries and executables):
6073         Update.
6074
6075         Rename module 'c++defs' to 'snippet/c++defs'.
6076         * modules/snippet/c++defs: Renamed from modules/c++defs.
6077         (Files, Makefile.am): Update.
6078         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
6079         * modules/arpa_inet (Depends-on): Update.
6080         * modules/ctype (Depends-on): Update.
6081         * modules/dirent (Depends-on): Update.
6082         * modules/fcntl-h (Depends-on): Update.
6083         * modules/glob (Depends-on): Update.
6084         * modules/iconv-h (Depends-on): Update.
6085         * modules/langinfo (Depends-on): Update.
6086         * modules/locale (Depends-on): Update.
6087         * modules/math (Depends-on): Update.
6088         * modules/netdb (Depends-on): Update.
6089         * modules/poll-h (Depends-on): Update.
6090         * modules/pty (Depends-on): Update.
6091         * modules/search (Depends-on): Update.
6092         * modules/signal (Depends-on): Update.
6093         * modules/spawn (Depends-on): Update.
6094         * modules/stdio (Depends-on): Update.
6095         * modules/stdlib (Depends-on): Update.
6096         * modules/string (Depends-on): Update.
6097         * modules/strings (Depends-on): Update.
6098         * modules/sys_ioctl (Depends-on): Update.
6099         * modules/sys_select (Depends-on): Update.
6100         * modules/sys_socket (Depends-on): Update.
6101         * modules/sys_stat (Depends-on): Update.
6102         * modules/sys_time (Depends-on): Update.
6103         * modules/sys_wait (Depends-on): Update.
6104         * modules/termios (Depends-on): Update.
6105         * modules/time (Depends-on): Update.
6106         * modules/unistd (Depends-on): Update.
6107         * modules/wchar (Depends-on): Update.
6108         * modules/wctype-h (Depends-on): Update.
6109
6110         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
6111         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
6112         (Files, Makefile.am): Update.
6113         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
6114         * modules/argv-iter (Depends-on): Update.
6115         * modules/arpa_inet (Depends-on): Update.
6116         * modules/dirent (Depends-on): Update.
6117         * modules/fcntl-h (Depends-on): Update.
6118         * modules/fnmatch (Depends-on): Update.
6119         * modules/getopt-posix (Depends-on): Update.
6120         * modules/glob (Depends-on): Update.
6121         * modules/iconv-h (Depends-on): Update.
6122         * modules/inttypes-incomplete (Depends-on): Update.
6123         * modules/locale (Depends-on): Update.
6124         * modules/math (Depends-on): Update.
6125         * modules/netdb (Depends-on): Update.
6126         * modules/search (Depends-on): Update.
6127         * modules/signal (Depends-on): Update.
6128         * modules/spawn (Depends-on): Update.
6129         * modules/stdio (Depends-on): Update.
6130         * modules/stdlib (Depends-on): Update.
6131         * modules/string (Depends-on): Update.
6132         * modules/strings (Depends-on): Update.
6133         * modules/sys_socket (Depends-on): Update.
6134         * modules/sys_stat (Depends-on): Update.
6135         * modules/sys_time (Depends-on): Update.
6136         * modules/sys_times (Depends-on): Update.
6137         * modules/sys_utsname (Depends-on): Update.
6138         * modules/time (Depends-on): Update.
6139         * modules/unistd (Depends-on): Update.
6140         * modules/wchar (Depends-on): Update.
6141         * MODULES.html.sh (Support for building libraries and executables):
6142         Update.
6143
6144 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
6145
6146         Improvements on _Noreturn and related modules.
6147
6148         modules/_Exit-tests: test _Noreturn too
6149         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
6150         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
6151         (main): Use them.
6152
6153         stdnoreturn, stdnoreturn-tests: remove modules
6154         They're not needed here and a bit premature for use elsewhere.  See
6155         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
6156         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
6157         * tests/test-stdnoreturn.c: Remove files.
6158         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
6159         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
6160         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
6161         and using noreturn.
6162         * modules/openat, modules/sigpipe-die, modules/xalloc:
6163         * modules/xmemdup0, modules/xstrtol:
6164         Remove dependency on stdnoreturn.
6165
6166         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
6167         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
6168         Reparenthesize to avoid GCC warning.
6169         Support Microsoft's syntax.
6170         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
6171
6172         _Noreturn-tests: remove module
6173         * modules/_Noreturn-tests: Remove.
6174         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
6175         * tests/test-_Noreturn.c: Remove.
6176         * tests/test-stdnoreturn.c: Merge from the old
6177         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
6178
6179 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
6180
6181         _Noreturn, stdnoreturn, and related modules.
6182
6183         * top/maint.mk: Adjust to new noreturn support.
6184         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
6185         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
6186
6187         xalloc: use stdnoreturn.h
6188         * lib/xalloc.h: Include <stdnoreturn.h>.
6189         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6190         * modules/xalloc (Depends-on): Add stdnoreturn.
6191
6192         xstrtol: use stdnoreturn.h
6193         * lib/xstrtol.h: Include <stdnoreturn.h>.
6194         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6195         * modules/xstrtol (Depends-on): Add stdnoreturn.
6196
6197         xmemdup0: use stdnoreturn.h
6198         * lib/xmemdup0.h: Include <stdnoreturn.h>.
6199         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6200         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
6201
6202         sigpipe-die: use stdnoreturn.h
6203         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
6204         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6205         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
6206
6207         openat: use stdnoreturn.h
6208         * lib/openat.h: Include <stdnoreturn.h>.
6209         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6210         * modules/openat (Depends-on): Add stdnoreturn.
6211
6212         * lib/openat-die.c (openat_save_fail): Modernize comment.
6213
6214         * lib/xalloc-die.c (xalloc_die): Modernize comment.
6215
6216         * lib/glthread/thread.h: Modernize comment.
6217
6218         obstack: use _Noreturn
6219         * lib/obstack.c (__attribute__): Remove macro.
6220         (print_and_abort): Use _Noreturn.
6221
6222         c-stack: use _Noreturn
6223         * lib/c-stack.c (die, overflow_handler, segv_handler):
6224         Use _Noreturn rather than __attribute__((noreturn)).
6225
6226         argmatch-tests, exclude_tests: use _Noreturn
6227         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
6228         Remove.
6229         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
6230
6231         stdlib: use _Noreturn
6232         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
6233         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
6234         * modules/stdlib (Depends-on): Add _Noreturn.
6235         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
6236
6237         stdnoreturn-tests: new module
6238         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
6239
6240         stdnoreturn: new module
6241         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
6242         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
6243
6244         _Noreturn-tests: new module
6245         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
6246
6247         _Noreturn: new module
6248         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
6249         New section, mentioning it.
6250         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
6251
6252         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
6253
6254 2011-07-11  Eric Blake  <eblake@redhat.com>
6255
6256         ffs: new module
6257         * modules/ffs: New file.
6258         * m4/ffs.m4: Likewise.
6259         * lib/ffs.c: Likewise.
6260         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
6261         * modules/strings (Makefile.am): Substitute witness.
6262         (Depends-on): Add c++defs.
6263         * lib/strings.in.h (ffs): Declare.
6264         * modules/ffs-tests: New test file.
6265         * tests/test-ffs.c: Test new module.
6266         * MODULES.html.sh (Integer arithmetic functions): Mention it.
6267         * doc/posix-functions/ffs.texi (ffs): Likewise.
6268
6269         regex: avoid compiler warning
6270         * lib/regex.c (includes): Include <strings.h>, for use of
6271         strcasecmp in regcomp.c.
6272         Reported by Joachim Schmitz.
6273
6274 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
6275
6276         stdint: respect system's intmax_t if INTMAX_MAX
6277         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
6278         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
6279         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
6280         long but int64_t is long long, and where we will clash with the
6281         system intmax_t if we override it.  See
6282         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
6283         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
6284         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
6285         similarly for UINTMAX_C.
6286
6287 2011-07-08  Bruno Haible  <bruno@clisp.org>
6288
6289         pthread_sigmask tests: Avoid a compiler warning.
6290         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
6291         non-zero.
6292
6293         sigprocmask tests: A better way to avoid a compiler warning.
6294         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
6295         (main): Complain if system() returns non-zero.
6296         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
6297
6298 2011-07-08  Bruno Haible  <bruno@clisp.org>
6299
6300         pthread_sigmask: Work around IRIX bug.
6301         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
6302         bug.
6303         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
6304         there may be unblocked pending signals.
6305         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
6306
6307 2011-07-08  Bruno Haible  <bruno@clisp.org>
6308
6309         pthread_sigmask: Work around Cygwin bug.
6310         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
6311         bug.
6312         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
6313         the system's pthread_sigmask function.
6314         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
6315
6316 2011-07-08  Bruno Haible  <bruno@clisp.org>
6317
6318         pthread_sigmask: Work around bug in single-threaded implementation.
6319         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
6320         FreeBSD, HP-UX, Solaris bug.
6321         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
6322         * lib/pthread_sigmask.c: Include <stddef.h>.
6323         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
6324         the system's pthread_sigmask function.
6325         * modules/pthread_sigmask (configure.ac): Invoke
6326         gl_PREREQ_PTHREAD_SIGMASK.
6327         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
6328         HP-UX, Solaris.
6329
6330 2011-07-08  Eric Blake  <eblake@redhat.com>
6331
6332         test-sigprocmask: avoid compiler warning
6333         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
6334         * tests/test-sigprocmask.c (main): Use it to silence warning.
6335         Reported by Jim Meyering.
6336
6337         test-snprintf: avoid compiler warning
6338         * tests/test-snprintf.c (main): Avoid shadowed declaration.
6339         * tests/test-vsnprintf.c (main): Likewise.
6340         Reported by Jim Meyering.
6341
6342 2011-07-08  Bruno Haible  <bruno@clisp.org>
6343
6344         Tests for module 'pthread_sigmask'.
6345         * modules/pthread_sigmask-tests: New file.
6346         * tests/test-pthread_sigmask1.c: New file, based on
6347         tests/test-sigprocmask.c.
6348         * tests/test-pthread_sigmask2.c: New file.
6349
6350 2011-07-08  Jim Meyering  <meyering@redhat.com>
6351
6352         test-getopt.h: avoid warning about an unused variable
6353         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
6354
6355 2011-07-07  Jim Meyering  <meyering@redhat.com>
6356
6357         maint: reduce list of files exempt from sc_prohibit_leading_TABs
6358         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
6359         now that it no longer contains leading TABs.
6360         Remove unused "url=FIXME" statement.
6361
6362 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
6363
6364         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
6365         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6366         When gl_THREADLIB is not in use, assume that the POSIX sematics
6367         are desired.  This is better for Emacs, which uses POSIX semantics
6368         on GNUish and/or POSIXish platforms, and does not use threads at
6369         all otherwise.
6370
6371         pthread_sigmask: fix typo when testing for libraries
6372         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6373         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
6374
6375 2011-07-08  Eric Blake  <eblake@redhat.com>
6376
6377         fts: introduce FTS_NOATIME
6378         * lib/fts_.h (FTS_NOATIME): New bit flag.
6379         (FTS_OPTIONMASK): Adjust.
6380         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
6381         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
6382
6383 2011-07-08  Bruno Haible  <bruno@clisp.org>
6384
6385         Tests for module 'thread'.
6386         * modules/thread-tests: New file.
6387         * tests/test-thread_self.c: New file.
6388         * tests/test-thread_create.cc: New file.
6389
6390 2011-07-08  Bruno Haible  <bruno@clisp.org>
6391
6392         thread: Avoid gcc warnings when using gl_thread_self().
6393         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
6394         'void *'.
6395         (gl_thread_self_pointer): Update.
6396
6397 2011-07-07  Bruno Haible  <bruno@clisp.org>
6398
6399         signal-c++-tests: Check declaration of pthread_sigmask.
6400         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
6401         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
6402         $(LIB_PTHREAD_SIGMASK).
6403
6404 2011-07-07  Bruno Haible  <bruno@clisp.org>
6405
6406         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
6407         * lib/signal.in.h (pthread_sigmask): Override if
6408         REPLACE_PTHREAD_SIGMASK is 1.
6409         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6410         REPLACE_PTHREAD_SIGMASK.
6411         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
6412         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
6413         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
6414         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6415         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
6416
6417 2011-07-07  Bruno Haible  <bruno@clisp.org>
6418
6419         pthread_sigmask: Ensure declaration in <signal.h>.
6420         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
6421         include <pthread.h>.
6422         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
6423         problem.
6424
6425 2011-07-07  Bruno Haible  <bruno@clisp.org>
6426
6427         pthread_sigmask: Document the module.
6428         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
6429
6430 2011-07-07  Bruno Haible  <bruno@clisp.org>
6431
6432         pthread_sigmask: Follow gnulib conventions.
6433         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
6434         gl_PTHREAD_SIGMASK.
6435         * modules/pthread_sigmask (configure.ac): Update.
6436
6437 2011-07-07  Bruno Haible  <bruno@clisp.org>
6438
6439         pthread_sigmask: Make declaration C++ safe.
6440         * lib/signal.in.h: In two special conditions, just do an #include_next.
6441         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6442         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
6443         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6444         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6445         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
6446         not REPLACE_PTHREAD_MASK.
6447         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
6448         not REPLACE_PTHREAD_MASK.
6449         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6450
6451 2011-07-07  Bruno Haible  <bruno@clisp.org>
6452
6453         pthread_sigmask: Fix return value.
6454         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
6455         * lib/pthread_sigmask.c: New file.
6456         * modules/pthread_sigmask (Files): Add it.
6457         (configure.ac): Invoke AC_LIBOBJ.
6458
6459 2011-07-07  Eric Blake  <eblake@redhat.com>
6460
6461         getopt: more portable argv creation
6462         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
6463         const, use char arrays rather than strings.
6464         Suggested by Paul Eggert.
6465
6466 2011-07-07  Bruno Haible  <bruno@clisp.org>
6467
6468         Tests for module 'sigprocmask'.
6469         * modules/sigprocmask-tests: New file.
6470         * tests/test-sigprocmask.c: New file.
6471
6472 2011-07-07  Bruno Haible  <bruno@clisp.org>
6473
6474         float tests: Tweak.
6475         * tests/test-float.c (main): Tweak skip message.
6476
6477 2011-07-07  Eric Blake  <eblake@redhat.com>
6478
6479         getopt: avoid compiler warning during configure
6480         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
6481         assigning string literals to non-const pointer.
6482
6483         getopt-gnu: avoid crash in glibc getopt
6484         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
6485         * tests/test-getopt.h (test_getopt): Enhance test.
6486         * tests/test-getopt_long.h (test_getopt_long): Likewise.
6487         * doc/posix-functions/getopt.texi (getopt): Document it.
6488         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
6489         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6490         Likewise.
6491
6492 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
6493
6494         getopt: handle W; without long options in getopt [BZ #12922]
6495         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
6496         but no long options are defined, just return 'W'.
6497
6498 2011-07-07  Bruno Haible  <bruno@clisp.org>
6499
6500         Avoid literal tabs.
6501         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
6502         variable containing a tab instead of a literal tab.
6503         Reported by Jim Meyering.
6504
6505 2011-07-07  Bruno Haible  <bruno@clisp.org>
6506
6507         Comments.
6508         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
6509
6510 2011-07-06  Bruno Haible  <bruno@clisp.org>
6511
6512         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
6513         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
6514         <winsock2.h>.
6515         (rpl_fd_isset, FD_ISSET): New definitions, copied from
6516         lib/sys_socket.in.h.
6517         (close, gethostname): Hide declarations from <winsock2.h>.
6518         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6519         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
6520         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
6521         (select): Don't override if gnulib's <sys/select.h> was already
6522         included.
6523         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
6524         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
6525         setsockopt, shutdown, select): Tweak indentation.
6526
6527 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6528
6529         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
6530         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
6531         in an application that does not use the sys_select module.
6532
6533 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
6534
6535         poll: do not return 0 on timeout=-1
6536         * lib/poll.c: Loop with yield if no events occured
6537
6538 2011-07-06  Eric Blake  <eblake@redhat.com>
6539
6540         pthread_sigmask: always replace when not using pthread
6541         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
6542         replacement when using some threading other than pthread.  Fix
6543         logic bug.
6544
6545 2011-07-06  Bruno Haible  <bruno@clisp.org>
6546
6547         Comments.
6548         * m4/printf.m4: Update comments about mingw.
6549
6550 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6551
6552         sys_select: define sigset_t more portably
6553         * lib/sys_select.in.h: Always include <sys/types.h>, since
6554         we now need sigset_t and mingw defines it there.
6555         Include <signal.h> before split inclusion guard, to avoid
6556         mishaps on Solaris, whose <signal.h> eventually includes us.
6557         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
6558         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
6559         which come from ...
6560         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
6561         gl_CHECK_TYPE_SIGSET_T.
6562         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
6563         does the real work.
6564         * modules/sys_select (Depends-on): Add 'signal'.
6565
6566         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
6567         Suggested by Bruno Haible.
6568
6569         pselect: Use pthread_sigmask, not sigprocmask.
6570         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
6571         multithreaded apps better than sigprocmask does.
6572         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
6573         sigprocmask directly.
6574
6575 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
6576
6577         * lib/pselect.c (pselect): Use plain name, without "rpl_".
6578         Don't #undef,  since we don't need any underlying pselect.
6579         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
6580         (Depends-on): Add select.
6581         (Link): Add $(LIBSOCKET).
6582         These changes suggested by Bruno Haible.
6583
6584         pselect: document better
6585         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6586         * doc/posix-functions/pselect.texi (pselect): Document new module.
6587
6588         pthread_sigmask: new module
6589         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6590         * doc/posix-functions/pthread_sigmask.texi: Document new module.
6591         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
6592         This is done only as a macro; I don't know how well that'll
6593         work for C++.  Move <sys/types.h> include before the include_next,
6594         to avoid mishap on Solaris.
6595         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
6596         * modules/signal (Makefile.am): Substitute the check's results.
6597         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
6598
6599         test-pselect: new module
6600         * modules/pselect-tests, tests/test-pselect.c: New files.
6601         * tests/test-select.c, tests/test-sys_select-c++.cc:
6602         If TEST_PSELECT is defined, test pselect instead of testing select.
6603
6604         * tests/test-sys_select.c (sigset_t): Test for it, too.
6605         Suggested by Bruno Haible.
6606
6607 2011-07-05  Eric Blake  <eblake@redhat.com>
6608
6609         snprintf: guarantee %1$d, for libintl
6610         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
6611         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
6612         * doc/posix-functions/snprintf.texi (snprintf): Update.
6613         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6614         * tests/test-snprintf.c (main): Enhance test.
6615         * tests/test-vsnprintf.c (main): Likewise.
6616
6617 2011-07-05  Jim Meyering  <meyering@redhat.com>
6618
6619         maint: exempt stdio-read.c and stdio-write.c from the cppi check
6620         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
6621         per Bruno's request, to accommodate this idiom (no space after "#")
6622         even when the function is inside an #if block:
6623         char *
6624         gets (char *s)
6625         #undef gets
6626         {
6627           ...
6628         }
6629
6630 2011-07-04  Jim Meyering  <meyering@redhat.com>
6631
6632         maint: indent with spaces, not TABs, and add a rule to check this
6633         * tests/test-userspec.c: Indent with spaces, not TABs.
6634         * tests/test-argp.c: Likewise.
6635         * tests/test-c-stack2.sh: Likewise.
6636         * tests/test-parse-duration.sh: Likewise
6637         * m4/strtod.m4: Likewise.
6638         * m4/alloca.m4: Likewise.
6639         * m4/pselect.m4: Likewise.
6640         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
6641
6642 2011-07-03  Jim Meyering  <meyering@redhat.com>
6643
6644         maint.mk: correct omissions in prohibit_argmatch_without_use check
6645         This rule would mistakenly report that argmatch.h is included without
6646         use even when both the argmatch and invalid_arg macro were used.
6647         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
6648         of argmatch and invalid_arg.
6649
6650 2011-07-03  Bruno Haible  <bruno@clisp.org>
6651
6652         Comments about EINTR.
6653         * lib/safe-read.h: Explain the purpose of this module.
6654         * lib/safe-write.h: Likewise.
6655         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
6656         module.
6657         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
6658         module.
6659         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6660
6661 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
6662
6663         xnanosleep: Rewrite to use new dtotimespec module.
6664         It has the conversion code that used to be in xnanosleep.
6665         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
6666         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
6667         (TIME_T_MAX): Remove.
6668         (xnanosleep): Rewrite in terms of dtotimespec.
6669         * modules/xnanosleep (Depends-on): Add dtotimespec.
6670         Remove intprops, stdbool.
6671
6672         timespec-add, timespec-sub: new modules
6673         * lib/timespec.h (timespec_add, timespec_sub): New decls.
6674         * lib/timespec-add.c, lib/timespec-sub.c:
6675         * modules/timespec-add, modules/timespec-sub: New files.
6676
6677         dtotimespec: new module
6678         * lib/timespec.h (dtotimespec): New decl.
6679         * lib/dtotimespec.c, modules/dtotimespec: New files.
6680
6681         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
6682
6683         pselect: new module
6684         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
6685         (pselect): New decls.
6686         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
6687         since the standard pselect decl uses 'restrict'.
6688         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
6689         HAVE_PSELECT, REPLACE_PSELECT.
6690         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
6691         HAVE_PSELECT, REPLACE_PSELECT.
6692         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
6693
6694         sys_select: don't depend on sys_socket
6695         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
6696         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
6697         This fix works on GNU and GNU-like platforms, but has not been tested
6698         on native Windows.
6699         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
6700         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
6701         gl_HEADER_SYS_SOCKET.
6702         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
6703         gl_PREREQ_SYS_H_WINSOCK2.
6704
6705 2011-06-29  Eric Blake  <eblake@redhat.com>
6706
6707         pipe2: fix C89 compile problem
6708         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
6709         Reported by Bruno Haible.
6710
6711         pipe, pipe2: don't corrupt fd on error
6712         * lib/pipe.c (pipe): Leave fd unchanged on error.
6713         * lib/pipe2.c (pipe2): Likewise.
6714         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
6715         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
6716
6717 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
6718
6719         mmap-anon: do not use regular expressions inadvertently
6720         * m4/mmap-anon.m4: Remove trailing period from strings sought
6721         in the output.
6722
6723 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
6724
6725         nanosleep: fix integer overflow problem
6726         * lib/nanosleep.c (my_usleep): Don't assume signed integer
6727         arithmetic wraps around on overflow.
6728
6729         nanosleep: simplify carrying
6730         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
6731         first call to the underyling nanosleep, not for the last one.
6732         This doesn't fix any bugs, but it simplifies the computation of
6733         the remaining delay.  Found while auditing integer overflow issues.
6734
6735         dup2: remove test for existence of fcntl
6736         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
6737         "#if HAVE_FCNTL", in the configure-time test program.
6738         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
6739         and therefore speeds up "configure" a bit.  Found while
6740         adding the dup2 module to Emacs.
6741
6742 2011-06-24  Eric Blake  <eblake@redhat.com>
6743
6744         maint.mk: enhance useless header checks
6745         * top/maint.mk (_sc_header_without_use): Check both include
6746         styles.
6747         (sc_prohibit_assert_without_use)
6748         (sc_prohibit_close_stream_without_use)
6749         (sc_prohibit_getopt_without_use)
6750         (sc_prohibit_quotearg_without_use)
6751         (sc_prohibit_quote_without_use)
6752         (sc_prohibit_long_options_without_use)
6753         (sc_prohibit_inttostr_without_use)
6754         (sc_prohibit_ignore_value_without_use)
6755         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
6756         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
6757         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
6758         (sc_prohibit_hash_pjw_without_use)
6759         (sc_prohibit_safe_read_without_use)
6760         (sc_prohibit_argmatch_without_use)
6761         (sc_prohibit_canonicalize_without_use)
6762         (sc_prohibit_root_dev_ino_without_use)
6763         (sc_prohibit_openat_without_use)
6764         (sc_prohibit_c_ctype_without_use)
6765         (sc_prohibit_signal_without_use)
6766         (sc_prohibit_stdio--_without_use)
6767         (sc_prohibit_stdio-safer_without_use)
6768         (sc_prohibit_strings_without_use)
6769         (sc_prohibit_intprops_without_use)
6770         (sc_prohibit_stddef_without_use)
6771         (sc_prohibit_xfreopen_without_use): Update clients.
6772
6773 2011-06-24  Jim Meyering  <meyering@redhat.com>
6774
6775         syntax-check: keep one maint.mk rule in sync with its header
6776         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
6777         of the bug Eric has just fixed, with today's commit 25e4c2ec.
6778         I prefer to avoid temporary files here, so use <(...), but that
6779         is not supported by /bin/sh, so...
6780         (SHELL): Define to /bin/bash.
6781
6782 2011-06-24  Eric Blake  <eblake@redhat.com>
6783
6784         maint.mk: update sc_prohibit_intprops_without_use
6785         * top/maint.mk (_intprops_names): Match recent changes.
6786
6787 2011-06-24  Bruno Haible  <bruno@clisp.org>
6788
6789         strerror-override: No-op tweak.
6790         * lib/strerror-override.h (strerror_override): Reorder conditions,
6791         for consistency with lib/strerror-override.c.
6792
6793 2011-06-23  Eric Blake  <eblake@redhat.com>
6794
6795         maint.mk: test further PATH_MAX issues
6796         * top/maint.mk (sc_prohibit_path_max_array): Rename...
6797         (sc_prohibit_path_max_allocation): ...and also test alloca.
6798         Suggested by Jim Meyering.
6799
6800 2011-06-22  Eric Blake  <eblake@redhat.com>
6801
6802         maint.mk: add syntax-check to avoid char[PATH_MAX]
6803         * top/maint.mk (sc_prohibit_path_max_array): New rule.
6804
6805         stat: be robust to PATH_MAX definition
6806         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
6807         * modules/stat (Depends-on): Add verify.
6808
6809         link: work around IRIX bug
6810         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
6811         * lib/link.c (rpl_link): Work around it.
6812         * tests/test-link.h (test_link): Enhance test.
6813         * doc/posix-functions/link.texi (link): Document the bug.
6814
6815         getopt: silence clang warning
6816         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
6817         dereference.
6818         Reported by Gustavo Martin Domato.
6819
6820 2011-06-22  Jim Meyering  <meyering@redhat.com>
6821
6822         bootstrap: do not insert a blank line into each .gitignore file
6823         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
6824
6825 2011-06-21  Eric Blake  <eblake@redhat.com>
6826
6827         perror: test for output mismatch
6828         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
6829         perror on IRIX.
6830
6831         strerror_r: fix OpenBSD behavior on out-of-range
6832         * lib/strerror_r.c (strerror_r): Always use maximal string.
6833         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6834
6835         strerror_r: fix OpenBSD behavior on 0
6836         * lib/strerror-override.c (strerror_override): Also override 0
6837         when needed.
6838         * lib/strerror-override.h (strerror_override): Likewise.
6839         * lib/strerror.c (strerror): Simplify, now that 0 override is done
6840         earlier.
6841         * lib/strerror_r.c (strerror_r): Likewise.
6842         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
6843         behavior...
6844         (gl_FUNC_STRERROR_0): ...into new macro.
6845         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
6846         is overridden.
6847         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
6848         * modules/strerror-override (Files): Add strerror.m4.
6849         (configure.ac): Also provide override for 0 when needed.
6850         * doc/posix-functions/strerror.texi (strerror): Document this.
6851         * doc/posix-functions/perror.texi (perror): Likewise.
6852
6853         perror: adjust array size
6854         * modules/perror (Depends-on): Add strerror-override.
6855         * lib/perror.c (perror): Use it to avoid magic number.
6856
6857         strerror-override: reduce size
6858         * lib/strerror-override.c (strerror_override): Use fewer lines.
6859
6860 2011-06-20  Bruno Haible  <bruno@clisp.org>
6861
6862         pathmax: Ensure correct value for PATH_MAX on HP-UX.
6863         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
6864
6865 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
6866
6867         alloca: port to compilers that can optimize like GCC 4.6.0
6868         * lib/alloca.c (find_stack_direction): New signature, taken from
6869         Autoconf git.  This works with GCC 4.6.0.  This code should never
6870         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
6871         be used with other compilers that optimize as well as GCC 4.6.0 does.
6872         (alloca): Adjust to new signature.
6873         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
6874         New macro, which patches Autoconf in a similar way.
6875
6876         c-stack: stop worrying about stack direction
6877         * lib/c-stack.c (find_stack_direction): Remove.
6878         (segv_handler): Don't worry about stack direction growth, as it's
6879         too much of a pain to configure this correctly, given how compilers
6880         are optimizing-away our stack-growth detection code.  Instead, assume
6881         that any access to just before or just after the stack is OK.
6882         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
6883         Don't require AC_FUNC_ALLOCA; no longer needed.
6884
6885 2011-06-20  Eric Blake  <eblake@redhat.com>
6886
6887         test-stat: don't allocate PATH_MAX bytes
6888         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
6889         PATH_MAX-sized buffer.
6890         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
6891         * modules/stat-tests (Depends-on): Likewise.
6892         * tests/test-fstatat.c (includes): Drop pathmax.h.
6893         * tests/test-stat.c (includes): Likewise.
6894         Reported by Bruno Haible.
6895
6896 2011-06-20  Bruno Haible  <bruno@clisp.org>
6897
6898         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
6899         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
6900         * lib/float.c: New file.
6901         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
6902         REPLACE_FLOAT_LDBL.
6903         * modules/float (Files): Add lib/float.c.
6904         (configure.ac): Invoke AC_LIBOBJ.
6905         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
6906
6907 2011-06-20  Bruno Haible  <bruno@clisp.org>
6908
6909         Tests for module 'float'.
6910         * modules/float-tests: New file.
6911         * tests/test-float.c: New file.
6912
6913 2011-06-19  Bruno Haible  <bruno@clisp.org>
6914
6915         isinf: Coding style.
6916         * lib/isinf.c: Use GNU coding style.
6917
6918 2011-06-19  Bruno Haible  <bruno@clisp.org>
6919
6920         linkat test: Avoid test failure on AIX 7.1.
6921         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
6922         * tests/test-link.h (test_link): Likewise.
6923
6924 2011-06-19  Bruno Haible  <bruno@clisp.org>
6925
6926         pread test: Avoid test failure on OpenBSD 4.9.
6927         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
6928
6929 2011-06-19  Bruno Haible  <bruno@clisp.org>
6930
6931         sprintf-posix: Fix test failure on AIX 7.1.
6932         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
6933         * doc/posix-functions/dprintf.texi: Mention limited precision problem
6934         on AIX.
6935         * doc/posix-functions/fprintf.texi: Likewise.
6936         * doc/posix-functions/printf.texi: Likewise.
6937         * doc/posix-functions/snprintf.texi: Likewise.
6938         * doc/posix-functions/sprintf.texi: Likewise.
6939         * doc/posix-functions/vdprintf.texi: Likewise.
6940         * doc/posix-functions/vfprintf.texi: Likewise.
6941         * doc/posix-functions/vprintf.texi: Likewise.
6942         * doc/posix-functions/vsnprintf.texi: Likewise.
6943         * doc/posix-functions/vsprintf.texi: Likewise.
6944
6945 2011-06-19  Bruno Haible  <bruno@clisp.org>
6946
6947         roundl-ieee: Fix test failure on AIX 7.1.
6948         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
6949         * doc/posix-functions/roundl.texi: Mention problem with negative
6950         arguments.
6951
6952 2011-06-19  Bruno Haible  <bruno@clisp.org>
6953
6954         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6955         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
6956         * doc/posix-functions/round.texi: Mention problem with negative
6957         arguments.
6958         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
6959
6960 2011-06-19  Bruno Haible  <bruno@clisp.org>
6961
6962         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6963         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
6964         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
6965         * doc/posix-functions/roundf.texi: Mention problem with negative
6966         arguments.
6967         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
6968
6969 2011-06-19  Bruno Haible  <bruno@clisp.org>
6970
6971         ceilf-ieee: Work around bug on MacOS X 10.5.
6972         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
6973
6974         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
6975         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
6976         IEEE compliant, avoid compiler optimizations.
6977         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
6978         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6979         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
6980         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6981         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6982         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6983         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6984         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6985         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6986         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6987
6988 2011-06-19  Bruno Haible  <bruno@clisp.org>
6989
6990         ceilf-ieee: Work around bug on AIX 7.1.
6991         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
6992         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
6993
6994 2011-06-19  Bruno Haible  <bruno@clisp.org>
6995
6996         ceil-ieee: Work around bug on AIX 7.1.
6997         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
6998         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
6999
7000 2011-06-18  Bruno Haible  <bruno@clisp.org>
7001
7002         fsync test: Avoid test failure on MacOS X and AIX.
7003         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
7004         EINVAL.
7005
7006 2011-06-18  Bruno Haible  <bruno@clisp.org>
7007
7008         openat, fdopendir tests: Fix link errors.
7009         * modules/openat-tests (Depends-on): Add progname.
7010         * modules/fdopendir-tests (Depends-on): Likewise.
7011         * tests/test-fchownat.c: Include progname.h.
7012         (main): Call set_program_name.
7013         * tests/test-fstatat.c: Include progname.h.
7014         (main): Call set_program_name.
7015         * tests/test-mkdirat.c: Include progname.h.
7016         (main): Call set_program_name.
7017         * tests/test-openat.c: Include progname.h.
7018         (main): Call set_program_name.
7019         * tests/test-unlinkat.c: Include progname.h.
7020         (main): Call set_program_name.
7021         * tests/test-fdopendir.c: Include progname.h.
7022         (main): Call set_program_name.
7023
7024 2011-06-18  Bruno Haible  <bruno@clisp.org>
7025
7026         Doc update.
7027         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
7028         HP-UX.
7029         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
7030
7031 2011-06-18  Bruno Haible  <bruno@clisp.org>
7032
7033         getcwd tests: Avoid compilation error on HP-UX 11.31.
7034         * modules/getcwd-tests (Depends-on): Add pathmax.
7035         * tests/test-getcwd.c: Include pathmax.h.
7036
7037 2011-06-18  Bruno Haible  <bruno@clisp.org>
7038
7039         isfinite, isinf: Fix link error on AIX 6 and 7.
7040         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
7041         needed, also test the macro with a 'float' argument.
7042         * m4/isinf.m4 (gl_ISINF): Likewise.
7043
7044 2011-06-18  Bruno Haible  <bruno@clisp.org>
7045
7046         getloadavg: Don't clobber LIBS. Regression from previous commit.
7047         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
7048         AC_CHECK_LIB from here...
7049         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
7050         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
7051         gl_func_getloadavg_done.
7052         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7053
7054 2011-06-18  Bruno Haible  <bruno@clisp.org>
7055
7056         clean-temp: Improve documentation.
7057         * lib/clean-temp.h: Explain better how to use this module.
7058         Reported by John Darrington <john@darrington.wattle.id.au>.
7059
7060 2011-06-17  Bruno Haible  <bruno@clisp.org>
7061
7062         pread, pwrite: Avoid cc warning on AIX.
7063         * lib/unistd.in.h (pread): Undefine before defining as a macro.
7064         (pwrite): Likewise.
7065
7066 2011-06-17  Bruno Haible  <bruno@clisp.org>
7067
7068         spawn-pipe tests: Fix link error.
7069         * tests/test-spawn-pipe-child.c: Undefine fprintf.
7070         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7071
7072 2011-06-17  Bruno Haible  <bruno@clisp.org>
7073
7074         Tests: Remove unnecessary dependency.
7075         * modules/canonicalize-tests (Depends-on): Remove progname.
7076         * modules/chown-tests (Depends-on): Likewise.
7077         * modules/dirname-tests (Depends-on): Likewise.
7078         * modules/fdopendir-tests (Depends-on): Likewise.
7079         * modules/fdutimensat-tests (Depends-on): Likewise.
7080         * modules/hash-tests (Depends-on): Likewise.
7081         * modules/lchown-tests (Depends-on): Likewise.
7082         * modules/linkat-tests (Depends-on): Likewise.
7083         * modules/renameat-tests (Depends-on): Likewise.
7084         * modules/spawn-pipe-tests (Depends-on): Likewise.
7085         * modules/utimensat-tests (Depends-on): Likewise.
7086
7087 2011-06-17  Bruno Haible  <bruno@clisp.org>
7088
7089         spawn-pipe tests: Fix link error.
7090         * tests/test-spawn-pipe-child.c: Undefine fflush.
7091
7092 2011-06-17  Bruno Haible  <bruno@clisp.org>
7093
7094         Fix tests link errors.
7095         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
7096         * modules/chown-tests (Makefile.am): Don't link test-chown with
7097         LIBINTL.
7098         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
7099         LIBINTL.
7100         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
7101         LIBINTL.
7102         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
7103         LIBINTL.
7104
7105 2011-06-16  Bruno Haible  <bruno@clisp.org>
7106
7107         crypto/gc-sha1: Fix recent regression.
7108         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
7109         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
7110
7111         crypto/gc-md5: Fix recent regression.
7112         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
7113
7114         crypto/gc-md4: Fix recent regression.
7115         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
7116         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
7117
7118         crypto/gc-arctwo: Fix recent regression.
7119         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
7120         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
7121
7122         crypto/gc-rijndael: Fix recent regression.
7123         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
7124         (configure.ac): Invoke AC_LIBOBJ here.
7125         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
7126         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7127
7128         crypto/gc-hmac-sha1: Fix recent regression.
7129         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
7130         (configure.ac): Invoke AC_LIBOBJ here.
7131         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
7132         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7133
7134         crypto/gc-hmac-md5: Fix recent regression.
7135         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
7136         (configure.ac): Invoke AC_LIBOBJ here.
7137         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
7138         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7139
7140         crypto/gc-des: Fix recent regression.
7141         * modules/crypto/gc-des (Files): Remove m4/des.m4.
7142         (configure.ac): Invoke AC_LIBOBJ here.
7143         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
7144         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7145
7146         crypto/gc-arcfour: Fix recent regression.
7147         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
7148         (configure.ac): Invoke AC_LIBOBJ here.
7149         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
7150         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7151
7152 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
7153
7154         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
7155         After the 2011-05-21 change, this macro requires
7156         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
7157         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
7158
7159 2011-06-16  Bruno Haible  <bruno@clisp.org>
7160
7161         fprintftime: Move AC_LIBOBJ invocations to module description.
7162         * m4/fprintftime.m4: Remove file.
7163         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
7164         (configure.ac): Remove gl_FPRINTFTIME call.
7165         (Makefile.am): Augment lib_SOURCES.
7166         Reported by Jim Meyering.
7167
7168 2011-06-16  Bruno Haible  <bruno@clisp.org>
7169
7170         tmpfile-safer: Finish 2011-05-23 commit.
7171         * m4/stdio-safer.m4: Really remove file.
7172         Reported by Jim Meyering.
7173
7174 2011-06-16  Bruno Haible  <bruno@clisp.org>
7175
7176         syntax-check: Fix typo.
7177         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
7178         printf-posix.m4.
7179         Reported by Jim Meyering.
7180
7181 2011-06-13  Jim Meyering  <meyering@redhat.com>
7182
7183         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
7184         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
7185
7186 2011-05-23  Bruno Haible  <bruno@clisp.org>
7187
7188         yesno: Move AC_LIBOBJ invocations to module description.
7189         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
7190         * modules/yesno (Makefile.am): Augment lib_SOURCES.
7191
7192 2011-05-23  Bruno Haible  <bruno@clisp.org>
7193
7194         xstrtol: Move AC_LIBOBJ invocations to module description.
7195         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
7196         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
7197
7198 2011-05-23  Bruno Haible  <bruno@clisp.org>
7199
7200         xstrtold: Move AC_LIBOBJ invocations to module description.
7201         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
7202         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
7203
7204 2011-05-23  Bruno Haible  <bruno@clisp.org>
7205
7206         xstrtod: Move AC_LIBOBJ invocations to module description.
7207         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
7208         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
7209
7210 2011-05-23  Bruno Haible  <bruno@clisp.org>
7211
7212         xnanosleep: Move AC_LIBOBJ invocations to module description.
7213         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
7214         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
7215
7216 2011-05-23  Bruno Haible  <bruno@clisp.org>
7217
7218         xgetcwd: Move AC_LIBOBJ invocations to module description.
7219         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
7220         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
7221
7222 2011-05-23  Bruno Haible  <bruno@clisp.org>
7223
7224         xalloc: Move AC_LIBOBJ invocations to module description.
7225         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
7226         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
7227
7228 2011-05-23  Bruno Haible  <bruno@clisp.org>
7229
7230         write-any-file: Move AC_LIBOBJ invocations to module description.
7231         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
7232         invocation.
7233         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
7234
7235 2011-05-23  Bruno Haible  <bruno@clisp.org>
7236
7237         utimens: Move AC_LIBOBJ invocations to module description.
7238         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
7239         * modules/utimens (Makefile.am): Augment lib_SOURCES.
7240
7241 2011-05-23  Bruno Haible  <bruno@clisp.org>
7242
7243         utimecmp: Move AC_LIBOBJ invocations to module description.
7244         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
7245         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
7246
7247 2011-05-23  Bruno Haible  <bruno@clisp.org>
7248
7249         userspec: Move AC_LIBOBJ invocations to module description.
7250         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
7251         * modules/userspec (Makefile.am): Augment lib_SOURCES.
7252
7253 2011-05-23  Bruno Haible  <bruno@clisp.org>
7254
7255         unlinkdir: Move AC_LIBOBJ invocations to module description.
7256         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
7257         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
7258
7259 2011-05-23  Bruno Haible  <bruno@clisp.org>
7260
7261         unistd-safer: Move AC_LIBOBJ invocations to module description.
7262         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
7263         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
7264
7265 2011-05-23  Bruno Haible  <bruno@clisp.org>
7266
7267         tempname: Move AC_LIBOBJ invocations to module description.
7268         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
7269         * modules/tempname (Makefile.am): Augment lib_SOURCES.
7270
7271 2011-05-23  Bruno Haible  <bruno@clisp.org>
7272
7273         strftime: Move AC_LIBOBJ invocations to module description.
7274         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
7275         * modules/strftime (Makefile.am): Augment lib_SOURCES.
7276
7277 2011-05-23  Bruno Haible  <bruno@clisp.org>
7278
7279         stdlib-safer: Move AC_LIBOBJ invocations to module description.
7280         * m4/stdlib-safer.m4: Remove file.
7281         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
7282         (configure.ac): Remove gl_STDLIB_SAFER call.
7283         (Makefile.am): Augment lib_SOURCES.
7284
7285 2011-05-23  Bruno Haible  <bruno@clisp.org>
7286
7287         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
7288         * m4/stdio-safer.m4: Remove file.
7289         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
7290         (configure.ac): Remove gl_TMPFILE_SAFER call.
7291         (Makefile.am): Augment lib_SOURCES.
7292
7293 2011-05-23  Bruno Haible  <bruno@clisp.org>
7294
7295         popen-safer: Move AC_LIBOBJ invocations to module description.
7296         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
7297         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
7298         (configure.ac): Remove gl_POPEN_SAFER call.
7299         (Makefile.am): Augment lib_SOURCES.
7300
7301 2011-05-23  Bruno Haible  <bruno@clisp.org>
7302
7303         freopen-safer: Move AC_LIBOBJ invocations to module description.
7304         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
7305         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
7306         (configure.ac): Remove gl_FREOPEN_SAFER call.
7307         (Makefile.am): Augment lib_SOURCES.
7308
7309 2011-05-23  Bruno Haible  <bruno@clisp.org>
7310
7311         fopen-safer: Move AC_LIBOBJ invocations to module description.
7312         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
7313         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
7314         (configure.ac): Remove gl_FOPEN_SAFER call.
7315         (Makefile.am): Augment lib_SOURCES.
7316
7317 2011-05-23  Bruno Haible  <bruno@clisp.org>
7318
7319         crypto/sha512: Move AC_LIBOBJ invocations to module description.
7320         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
7321         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
7322
7323 2011-05-23  Bruno Haible  <bruno@clisp.org>
7324
7325         crypto/sha256: Move AC_LIBOBJ invocations to module description.
7326         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
7327         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
7328
7329 2011-05-23  Bruno Haible  <bruno@clisp.org>
7330
7331         crypto/sha1: Move AC_LIBOBJ invocations to module description.
7332         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
7333         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
7334
7335 2011-05-23  Bruno Haible  <bruno@clisp.org>
7336
7337         settime: Move AC_LIBOBJ invocations to module description.
7338         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
7339         * modules/settime (Makefile.am): Augment lib_SOURCES.
7340
7341 2011-05-23  Bruno Haible  <bruno@clisp.org>
7342
7343         savedir: Move AC_LIBOBJ invocations to module description.
7344         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
7345         * modules/savedir (Makefile.am): Augment lib_SOURCES.
7346
7347 2011-05-23  Bruno Haible  <bruno@clisp.org>
7348
7349         save-cwd: Move AC_LIBOBJ invocations to module description.
7350         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
7351         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
7352
7353 2011-05-23  Bruno Haible  <bruno@clisp.org>
7354
7355         same: Move AC_LIBOBJ invocations to module description.
7356         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
7357         * modules/same (Makefile.am): Augment lib_SOURCES.
7358
7359 2011-05-23  Bruno Haible  <bruno@clisp.org>
7360
7361         safe-write: Move AC_LIBOBJ invocations to module description.
7362         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
7363         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
7364         instead of gl_SAFE_WRITE.
7365         (Makefile.am): Augment lib_SOURCES.
7366
7367 2011-05-23  Bruno Haible  <bruno@clisp.org>
7368
7369         safe-read: Move AC_LIBOBJ invocations to module description.
7370         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
7371         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
7372         of gl_SAFE_READ.
7373         (Makefile.am): Augment lib_SOURCES.
7374
7375 2011-05-23  Bruno Haible  <bruno@clisp.org>
7376
7377         safe-alloc: Move AC_LIBOBJ invocations to module description.
7378         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
7379         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
7380
7381 2011-05-23  Bruno Haible  <bruno@clisp.org>
7382
7383         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
7384         * m4/rijndael.m4: Remove file.
7385         * modules/crypto/rijndael (Files): Remove it.
7386         (configure.ac): Remove gl_RIJNDAEL call.
7387         (Makefile.am): Augment lib_SOURCES.
7388
7389 2011-05-23  Bruno Haible  <bruno@clisp.org>
7390
7391         readtokens: Move AC_LIBOBJ invocations to module description.
7392         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
7393         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
7394
7395 2011-05-23  Bruno Haible  <bruno@clisp.org>
7396
7397         read-file: Move AC_LIBOBJ invocations to module description.
7398         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
7399         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
7400         of gl_FUNC_READ_FILE.
7401         (Makefile.am): Augment lib_SOURCES.
7402
7403 2011-05-23  Bruno Haible  <bruno@clisp.org>
7404
7405         quotearg: Move AC_LIBOBJ invocations to module description.
7406         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
7407         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
7408
7409 2011-05-23  Bruno Haible  <bruno@clisp.org>
7410
7411         quote: Move AC_LIBOBJ invocations to module description.
7412         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
7413         * modules/quote (Makefile.am): Augment lib_SOURCES.
7414
7415 2011-05-23  Bruno Haible  <bruno@clisp.org>
7416
7417         posixver: Move AC_LIBOBJ invocations to module description.
7418         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
7419         * modules/posixver (Makefile.am): Augment lib_SOURCES.
7420
7421 2011-05-23  Bruno Haible  <bruno@clisp.org>
7422
7423         posixtm: Move AC_LIBOBJ invocations to module description.
7424         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
7425         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
7426
7427 2011-05-23  Bruno Haible  <bruno@clisp.org>
7428
7429         physmem: Move AC_LIBOBJ invocations to module description.
7430         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
7431         * modules/physmem (Makefile.am): Augment lib_SOURCES.
7432
7433 2011-05-23  Bruno Haible  <bruno@clisp.org>
7434
7435         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
7436         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
7437         invocation.
7438         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
7439
7440 2011-05-23  Bruno Haible  <bruno@clisp.org>
7441
7442         mpsort: Move AC_LIBOBJ invocations to module description.
7443         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
7444         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
7445
7446 2011-05-23  Bruno Haible  <bruno@clisp.org>
7447
7448         modechange: Move AC_LIBOBJ invocations to module description.
7449         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
7450         * modules/modechange (Makefile.am): Augment lib_SOURCES.
7451
7452 2011-05-23  Bruno Haible  <bruno@clisp.org>
7453
7454         mkdir-p: Move AC_LIBOBJ invocations to module description.
7455         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
7456         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
7457
7458 2011-05-23  Bruno Haible  <bruno@clisp.org>
7459
7460         mkancesdirs: Move AC_LIBOBJ invocations to module description.
7461         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
7462         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
7463
7464 2011-05-23  Bruno Haible  <bruno@clisp.org>
7465
7466         mgetgroups: Move AC_LIBOBJ invocations to module description.
7467         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
7468         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
7469
7470 2011-05-23  Bruno Haible  <bruno@clisp.org>
7471
7472         memxor: Move AC_LIBOBJ invocations to module description.
7473         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
7474         * modules/memxor (Makefile.am): Augment lib_SOURCES.
7475
7476 2011-05-23  Bruno Haible  <bruno@clisp.org>
7477
7478         memcoll: Move AC_LIBOBJ invocations to module description.
7479         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
7480         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
7481
7482 2011-05-23  Bruno Haible  <bruno@clisp.org>
7483
7484         memcasecmp: Move AC_LIBOBJ invocations to module description.
7485         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
7486         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
7487
7488 2011-05-23  Bruno Haible  <bruno@clisp.org>
7489
7490         crypto/md5: Move AC_LIBOBJ invocations to module description.
7491         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
7492         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
7493
7494 2011-05-23  Bruno Haible  <bruno@clisp.org>
7495
7496         crypto/md4: Move AC_LIBOBJ invocations to module description.
7497         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
7498         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
7499
7500 2011-05-23  Bruno Haible  <bruno@clisp.org>
7501
7502         crypto/md2: Move AC_LIBOBJ invocations to module description.
7503         * m4/md2.m4: Remove file.
7504         * modules/crypto/md2 (Files): Remove it.
7505         (configure.ac): Remove gl_MD2 call.
7506         (Makefile.am): Augment lib_SOURCES.
7507
7508 2011-05-23  Bruno Haible  <bruno@clisp.org>
7509
7510         long-options: Move AC_LIBOBJ invocations to module description.
7511         * m4/long-options.m4: Remove file.
7512         * modules/long-options (Files): Remove it.
7513         (configure.ac): Remove gl_LONG_OPTIONS call.
7514         (Makefile.am): Augment lib_SOURCES.
7515
7516 2011-05-23  Bruno Haible  <bruno@clisp.org>
7517
7518         i-ring: Move AC_LIBOBJ invocations to module description.
7519         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
7520         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
7521
7522 2011-05-23  Bruno Haible  <bruno@clisp.org>
7523
7524         idcache: Move AC_LIBOBJ invocations to module description.
7525         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
7526         * modules/idcache (Makefile.am): Augment lib_SOURCES.
7527
7528 2011-05-23  Bruno Haible  <bruno@clisp.org>
7529
7530         human: Move AC_LIBOBJ invocations to module description.
7531         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
7532         * modules/human (Makefile.am): Augment lib_SOURCES.
7533
7534 2011-05-23  Bruno Haible  <bruno@clisp.org>
7535
7536         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
7537         * m4/hmac-sha1.m4: Remove file.
7538         * modules/crypto/hmac-sha1 (Files): Remove it.
7539         (configure.ac): Remove gl_HMAC_SHA1 call.
7540         (Makefile.am): Augment lib_SOURCES.
7541
7542 2011-05-23  Bruno Haible  <bruno@clisp.org>
7543
7544         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
7545         * m4/hmac-md5.m4: Remove file.
7546         * modules/crypto/hmac-md5 (Files): Remove it.
7547         (configure.ac): Remove gl_HMAC_MD5 call.
7548         (Makefile.am): Augment lib_SOURCES.
7549
7550 2011-05-23  Bruno Haible  <bruno@clisp.org>
7551
7552         hash: Move AC_LIBOBJ invocations to module description.
7553         * m4/hash.m4: Remove file.
7554         * modules/hash (Files): Remove it.
7555         (configure.ac): Remove gl_HASH call.
7556         (Makefile.am): Augment lib_SOURCES.
7557
7558 2011-05-23  Bruno Haible  <bruno@clisp.org>
7559
7560         hard-locale: Move AC_LIBOBJ invocations to module description.
7561         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
7562         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
7563
7564 2011-05-23  Bruno Haible  <bruno@clisp.org>
7565
7566         getugroups: Move AC_LIBOBJ invocations to module description.
7567         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
7568         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
7569
7570 2011-05-23  Bruno Haible  <bruno@clisp.org>
7571
7572         gettime: Move AC_LIBOBJ invocations to module description.
7573         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
7574         * modules/gettime (Makefile.am): Augment lib_SOURCES.
7575
7576 2011-05-23  Bruno Haible  <bruno@clisp.org>
7577
7578         getndelim2: Move AC_LIBOBJ invocations to module description.
7579         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
7580         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
7581
7582 2011-05-23  Bruno Haible  <bruno@clisp.org>
7583
7584         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
7585         * m4/gc-pbkdf2-sha1.m4: Remove file.
7586         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
7587         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
7588         (Makefile.am): Augment lib_SOURCES.
7589
7590 2011-05-23  Bruno Haible  <bruno@clisp.org>
7591
7592         fts: Move AC_LIBOBJ invocations to module description.
7593         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
7594         * modules/fts (configure.ac): ... to here.
7595
7596 2011-05-23  Bruno Haible  <bruno@clisp.org>
7597
7598         file-type: Move AC_LIBOBJ invocations to module description.
7599         * m4/file-type.m4: Remove file.
7600         * modules/file-type (Files): Remove it.
7601         (configure.ac): Remove gl_FILE_TYPE call.
7602         (Makefile.am): Augment lib_SOURCES.
7603
7604 2011-05-23  Bruno Haible  <bruno@clisp.org>
7605
7606         filenamecat*: Respect rules for use of AC_LIBOBJ.
7607         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
7608         Remove AC_LIBOBJ invocation.
7609         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
7610         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
7611
7612 2011-05-23  Bruno Haible  <bruno@clisp.org>
7613
7614         filemode: Move AC_LIBOBJ invocations to module description.
7615         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
7616         * modules/filemode (Makefile.am): Augment lib_SOURCES.
7617
7618 2011-05-23  Bruno Haible  <bruno@clisp.org>
7619
7620         openat-safer: Move AC_LIBOBJ invocations to module description.
7621         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
7622         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
7623
7624 2011-05-23  Bruno Haible  <bruno@clisp.org>
7625
7626         fcntl-safer: Move AC_LIBOBJ invocations to module description.
7627         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
7628         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
7629
7630 2011-05-23  Bruno Haible  <bruno@clisp.org>
7631
7632         exclude: Move AC_LIBOBJ invocations to module description.
7633         * m4/exclude.m4: Remove file.
7634         * modules/exclude (Files): Remove it.
7635         (configure.ac): Remove gl_EXCLUDE call.
7636         (Makefile.am): Augment lib_SOURCES.
7637
7638 2011-05-23  Bruno Haible  <bruno@clisp.org>
7639
7640         dirname*: Respect rules for use of AC_LIBOBJ.
7641         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
7642         invocations.
7643         * modules/dirname (Makefile.am): Augment lib_SOURCES.
7644         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
7645
7646 2011-05-23  Bruno Haible  <bruno@clisp.org>
7647
7648         dirent-safer: Move AC_LIBOBJ invocations to module description.
7649         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
7650         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
7651
7652 2011-05-23  Bruno Haible  <bruno@clisp.org>
7653
7654         crypto/des: Move AC_LIBOBJ invocations to module description.
7655         * m4/des.m4: Remove file.
7656         * modules/crypto/des (Files): Remove it.
7657         (configure.ac): Remove gl_DES call.
7658         (Makefile.am): Augment lib_SOURCES.
7659
7660 2011-05-23  Bruno Haible  <bruno@clisp.org>
7661
7662         cycle-check: Move AC_LIBOBJ invocations to module description.
7663         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
7664         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
7665
7666 2011-05-23  Bruno Haible  <bruno@clisp.org>
7667
7668         c-strtold: Move AC_LIBOBJ invocations to module description.
7669         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
7670         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
7671
7672 2011-05-23  Bruno Haible  <bruno@clisp.org>
7673
7674         c-strtod: Move AC_LIBOBJ invocations to module description.
7675         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
7676         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
7677
7678 2011-05-23  Bruno Haible  <bruno@clisp.org>
7679
7680         crc: Move AC_LIBOBJ invocations to module description.
7681         * m4/crc.m4: Remove file.
7682         * modules/crc (Files): Remove it.
7683         (configure.ac): Remove gl_CRC call.
7684         (Makefile.am): Augment lib_SOURCES.
7685
7686 2011-05-23  Bruno Haible  <bruno@clisp.org>
7687
7688         close-stream: Move AC_LIBOBJ invocations to module description.
7689         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
7690         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
7691
7692 2011-05-23  Bruno Haible  <bruno@clisp.org>
7693
7694         closeout: Move AC_LIBOBJ invocations to module description.
7695         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
7696         * modules/closeout (Makefile.am): Augment lib_SOURCES.
7697
7698 2011-05-23  Bruno Haible  <bruno@clisp.org>
7699
7700         closein: Move AC_LIBOBJ invocations to module description.
7701         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
7702         * modules/closein (Makefile.am): Augment lib_SOURCES.
7703
7704 2011-05-23  Bruno Haible  <bruno@clisp.org>
7705
7706         cloexec: Move AC_LIBOBJ invocations to module description.
7707         * m4/cloexec.m4: Remove file.
7708         * modules/cloexec (Files): Remove it.
7709         (configure.ac): Remove gl_CLOEXEC call.
7710         (Makefile.am): Augment lib_SOURCES.
7711
7712 2011-05-23  Bruno Haible  <bruno@clisp.org>
7713
7714         check-version: Move AC_LIBOBJ invocations to module description.
7715         * m4/check-version.m4: Remove file.
7716         * modules/check-version (Files): Remove it.
7717         (configure.ac): Remove gl_CHECK_VERSION call.
7718         (Makefile.am): Augment lib_SOURCES.
7719
7720 2011-05-23  Bruno Haible  <bruno@clisp.org>
7721
7722         chdir-safer: Move AC_LIBOBJ invocations to module description.
7723         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
7724         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
7725
7726 2011-05-23  Bruno Haible  <bruno@clisp.org>
7727
7728         canonicalize: Move AC_LIBOBJ invocations to module description.
7729         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
7730         AC_LIBOBJ invocation.
7731         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
7732
7733 2011-05-23  Bruno Haible  <bruno@clisp.org>
7734
7735         canon-host: Move AC_LIBOBJ invocations to module description.
7736         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
7737         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
7738         instead of gl_CANON_HOST.
7739         (Makefile.am): Augment lib_SOURCES.
7740
7741 2011-05-23  Bruno Haible  <bruno@clisp.org>
7742
7743         backupfile: Move AC_LIBOBJ invocations to module description.
7744         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
7745         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
7746
7747 2011-05-23  Bruno Haible  <bruno@clisp.org>
7748
7749         argmatch: Move AC_LIBOBJ invocations to module description.
7750         * m4/argmatch.m4: Remove file.
7751         * modules/argmatch (Files): Remove it.
7752         (configure.ac): Remove gl_ARGMATCH call.
7753         (Makefile.am): Augment lib_SOURCES.
7754
7755 2011-05-23  Bruno Haible  <bruno@clisp.org>
7756
7757         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
7758         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
7759         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
7760
7761 2011-05-23  Bruno Haible  <bruno@clisp.org>
7762
7763         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
7764         * m4/arcfour.m4: Remove file.
7765         * modules/crypto/arcfour (Files): Remove it.
7766         (configure.ac): Remove gl_ARCFOUR call.
7767         (Makefile.am): Augment lib_SOURCES.
7768
7769 2011-05-22  Bruno Haible  <bruno@clisp.org>
7770
7771         write: Move AC_LIBOBJ invocations to module description.
7772         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
7773         * modules/write (configure.ac): ... to here.
7774
7775 2011-05-22  Bruno Haible  <bruno@clisp.org>
7776
7777         wmemset: Move AC_LIBOBJ invocations to module description.
7778         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
7779         here...
7780         * modules/wmemset (configure.ac): ... to here.
7781
7782 2011-05-22  Bruno Haible  <bruno@clisp.org>
7783
7784         wmemmove: Move AC_LIBOBJ invocations to module description.
7785         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
7786         here...
7787         * modules/wmemmove (configure.ac): ... to here.
7788
7789 2011-05-22  Bruno Haible  <bruno@clisp.org>
7790
7791         wmemcpy: Move AC_LIBOBJ invocations to module description.
7792         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
7793         here...
7794         * modules/wmemcpy (configure.ac): ... to here.
7795
7796 2011-05-22  Bruno Haible  <bruno@clisp.org>
7797
7798         wmemcmp: Move AC_LIBOBJ invocations to module description.
7799         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
7800         here...
7801         * modules/wmemcmp (configure.ac): ... to here.
7802
7803 2011-05-22  Bruno Haible  <bruno@clisp.org>
7804
7805         wmemchr: Move AC_LIBOBJ invocations to module description.
7806         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
7807         here...
7808         * modules/wmemchr (configure.ac): ... to here.
7809
7810 2011-05-22  Bruno Haible  <bruno@clisp.org>
7811
7812         wcswidth: Move AC_LIBOBJ invocations to module description.
7813         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
7814         here...
7815         * modules/wcswidth (configure.ac): ... to here.
7816
7817 2011-05-22  Bruno Haible  <bruno@clisp.org>
7818
7819         wcwidth: Respect rules for use of AC_LIBOBJ.
7820         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
7821         invocation from here...
7822         * modules/wcwidth (configure.ac): ... to here.
7823         (Depends-on): Update conditions.
7824
7825 2011-05-22  Bruno Haible  <bruno@clisp.org>
7826
7827         wctype: Move AC_LIBOBJ invocations to module description.
7828         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
7829         invocation from here...
7830         * modules/wctype (configure.ac): ... to here.
7831         (Depends-on): Update conditions.
7832
7833 2011-05-22  Bruno Haible  <bruno@clisp.org>
7834
7835         wctrans: Move AC_LIBOBJ invocations to module description.
7836         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
7837         invocation from here...
7838         * modules/wctrans (configure.ac): ... to here.
7839
7840 2011-05-22  Bruno Haible  <bruno@clisp.org>
7841
7842         wctomb: Move AC_LIBOBJ invocations to module description.
7843         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
7844         invocations from here...
7845         * modules/wctomb (configure.ac): ... to here.
7846
7847 2011-05-22  Bruno Haible  <bruno@clisp.org>
7848
7849         wctob: Move AC_LIBOBJ invocations to module description.
7850         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
7851         gl_PREREQ_WCTOB invocations from here...
7852         * modules/wctob (configure.ac): ... to here.
7853         (Depends-on): Update conditions.
7854
7855 2011-05-22  Bruno Haible  <bruno@clisp.org>
7856
7857         wcsxfrm: Move AC_LIBOBJ invocations to module description.
7858         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
7859         here...
7860         * modules/wcsxfrm (configure.ac): ... to here.
7861
7862 2011-05-22  Bruno Haible  <bruno@clisp.org>
7863
7864         wcstok: Move AC_LIBOBJ invocations to module description.
7865         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
7866         * modules/wcstok (configure.ac): ... to here.
7867
7868 2011-05-22  Bruno Haible  <bruno@clisp.org>
7869
7870         wcsstr: Move AC_LIBOBJ invocations to module description.
7871         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
7872         * modules/wcsstr (configure.ac): ... to here.
7873
7874 2011-05-22  Bruno Haible  <bruno@clisp.org>
7875
7876         wcsspn: Move AC_LIBOBJ invocations to module description.
7877         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
7878         * modules/wcsspn (configure.ac): ... to here.
7879
7880 2011-05-22  Bruno Haible  <bruno@clisp.org>
7881
7882         wcsrtombs: Move AC_LIBOBJ invocations to module description.
7883         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
7884         gl_PREREQ_WCSRTOMBS invocations from here...
7885         * modules/wcsrtombs (configure.ac): ... to here.
7886
7887 2011-05-22  Bruno Haible  <bruno@clisp.org>
7888
7889         wcsrchr: Move AC_LIBOBJ invocations to module description.
7890         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
7891         here...
7892         * modules/wcsrchr (configure.ac): ... to here.
7893
7894 2011-05-22  Bruno Haible  <bruno@clisp.org>
7895
7896         wcspbrk: Move AC_LIBOBJ invocations to module description.
7897         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
7898         here...
7899         * modules/wcspbrk (configure.ac): ... to here.
7900
7901 2011-05-22  Bruno Haible  <bruno@clisp.org>
7902
7903         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
7904         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
7905         gl_PREREQ_WCSNRTOMBS invocations from here...
7906         * modules/wcsnrtombs (configure.ac): ... to here.
7907
7908 2011-05-22  Bruno Haible  <bruno@clisp.org>
7909
7910         wcsnlen: Move AC_LIBOBJ invocations to module description.
7911         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
7912         here...
7913         * modules/wcsnlen (configure.ac): ... to here.
7914
7915 2011-05-22  Bruno Haible  <bruno@clisp.org>
7916
7917         wcsncpy: Move AC_LIBOBJ invocations to module description.
7918         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
7919         here...
7920         * modules/wcsncpy (configure.ac): ... to here.
7921
7922 2011-05-22  Bruno Haible  <bruno@clisp.org>
7923
7924         wcsncmp: Move AC_LIBOBJ invocations to module description.
7925         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
7926         here...
7927         * modules/wcsncmp (configure.ac): ... to here.
7928
7929 2011-05-22  Bruno Haible  <bruno@clisp.org>
7930
7931         wcsncat: Move AC_LIBOBJ invocations to module description.
7932         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
7933         here...
7934         * modules/wcsncat (configure.ac): ... to here.
7935
7936 2011-05-22  Bruno Haible  <bruno@clisp.org>
7937
7938         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
7939         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
7940         from here...
7941         * modules/wcsncasecmp (configure.ac): ... to here.
7942
7943 2011-05-22  Bruno Haible  <bruno@clisp.org>
7944
7945         wcslen: Move AC_LIBOBJ invocations to module description.
7946         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
7947         * modules/wcslen (configure.ac): ... to here.
7948
7949 2011-05-22  Bruno Haible  <bruno@clisp.org>
7950
7951         wcsdup: Move AC_LIBOBJ invocations to module description.
7952         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
7953         * modules/wcsdup (configure.ac): ... to here.
7954
7955 2011-05-22  Bruno Haible  <bruno@clisp.org>
7956
7957         wcscspn: Move AC_LIBOBJ invocations to module description.
7958         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
7959         here...
7960         * modules/wcscspn (configure.ac): ... to here.
7961
7962 2011-05-22  Bruno Haible  <bruno@clisp.org>
7963
7964         wcscpy: Move AC_LIBOBJ invocations to module description.
7965         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
7966         * modules/wcscpy (configure.ac): ... to here.
7967
7968 2011-05-22  Bruno Haible  <bruno@clisp.org>
7969
7970         wcscoll: Move AC_LIBOBJ invocations to module description.
7971         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
7972         here...
7973         * modules/wcscoll (configure.ac): ... to here.
7974
7975 2011-05-22  Bruno Haible  <bruno@clisp.org>
7976
7977         wcscmp: Move AC_LIBOBJ invocations to module description.
7978         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
7979         * modules/wcscmp (configure.ac): ... to here.
7980
7981 2011-05-22  Bruno Haible  <bruno@clisp.org>
7982
7983         wcschr: Move AC_LIBOBJ invocations to module description.
7984         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
7985         * modules/wcschr (configure.ac): ... to here.
7986
7987 2011-05-22  Bruno Haible  <bruno@clisp.org>
7988
7989         wcscat: Move AC_LIBOBJ invocations to module description.
7990         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
7991         * modules/wcscat (configure.ac): ... to here.
7992
7993 2011-05-22  Bruno Haible  <bruno@clisp.org>
7994
7995         wcscasecmp: Move AC_LIBOBJ invocations to module description.
7996         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
7997         here...
7998         * modules/wcscasecmp (configure.ac): ... to here.
7999
8000 2011-05-22  Bruno Haible  <bruno@clisp.org>
8001
8002         wcrtomb: Move AC_LIBOBJ invocations to module description.
8003         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
8004         invocations from here...
8005         * modules/wcrtomb (configure.ac): ... to here.
8006
8007 2011-05-22  Bruno Haible  <bruno@clisp.org>
8008
8009         wcpncpy: Move AC_LIBOBJ invocations to module description.
8010         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
8011         here...
8012         * modules/wcpncpy (configure.ac): ... to here.
8013
8014 2011-05-22  Bruno Haible  <bruno@clisp.org>
8015
8016         wcpcpy: Move AC_LIBOBJ invocations to module description.
8017         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
8018         * modules/wcpcpy (configure.ac): ... to here.
8019
8020 2011-05-22  Bruno Haible  <bruno@clisp.org>
8021
8022         waitpid: Move AC_LIBOBJ invocations to module description.
8023         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
8024         invocation from here...
8025         * modules/waitpid (configure.ac): ... to here.
8026
8027 2011-05-22  Bruno Haible  <bruno@clisp.org>
8028
8029         utimensat: Move AC_LIBOBJ invocations to module description.
8030         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
8031         here...
8032         * modules/utimensat (configure.ac): ... to here.
8033
8034 2011-05-22  Bruno Haible  <bruno@clisp.org>
8035
8036         usleep: Move AC_LIBOBJ invocations to module description.
8037         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
8038         here...
8039         * modules/usleep (configure.ac): ... to here.
8040
8041 2011-05-22  Bruno Haible  <bruno@clisp.org>
8042
8043         unlockpt: Move AC_LIBOBJ invocations to module description.
8044         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
8045         gl_PREREQ_UNLOCKPT invocations from here...
8046         * modules/unlockpt (configure.ac): ... to here.
8047
8048 2011-05-22  Bruno Haible  <bruno@clisp.org>
8049
8050         unlink: Respect rules for use of AC_LIBOBJ.
8051         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
8052         * modules/unlink (configure.ac): ... to here.
8053
8054 2011-05-22  Bruno Haible  <bruno@clisp.org>
8055
8056         uname: Move AC_LIBOBJ invocations to module description.
8057         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
8058         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
8059         here...
8060         * modules/uname (configure.ac): ... to here.
8061
8062 2011-05-22  Bruno Haible  <bruno@clisp.org>
8063
8064         ttyname_r: Move AC_LIBOBJ invocations to module description.
8065         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
8066         gl_PREREQ_TTYNAME_R invocations from here...
8067         * modules/ttyname_r (configure.ac): ... to here.
8068
8069 2011-05-22  Bruno Haible  <bruno@clisp.org>
8070
8071         tsearch: Move AC_LIBOBJ invocations to module description.
8072         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
8073         invocations from here...
8074         * modules/tsearch (configure.ac): ... to here.
8075
8076 2011-05-22  Bruno Haible  <bruno@clisp.org>
8077
8078         towctrans: Move AC_LIBOBJ invocations to module description.
8079         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
8080         AC_LIBOBJ invocation from here...
8081         * modules/towctrans (configure.ac): ... to here.
8082
8083 2011-05-22  Bruno Haible  <bruno@clisp.org>
8084
8085         tmpfile: Move AC_LIBOBJ invocations to module description.
8086         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
8087         invocations from here...
8088         * modules/tmpfile (configure.ac): ... to here.
8089
8090 2011-05-22  Bruno Haible  <bruno@clisp.org>
8091
8092         times: Move AC_LIBOBJ invocations to module description.
8093         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
8094         * modules/times (configure.ac): ... to here.
8095
8096 2011-05-22  Bruno Haible  <bruno@clisp.org>
8097
8098         time_r: Move AC_LIBOBJ invocations to module description.
8099         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
8100         invocations from here...
8101         * modules/time_r (configure.ac): ... to here.
8102
8103 2011-05-22  Bruno Haible  <bruno@clisp.org>
8104
8105         timegm: Move AC_LIBOBJ invocations to module description.
8106         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
8107         invocations from here...
8108         * modules/timegm (configure.ac): ... to here.
8109
8110 2011-05-22  Bruno Haible  <bruno@clisp.org>
8111
8112         tcgetsid: Move AC_LIBOBJ invocations to module description.
8113         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
8114         and gl_PREREQ_TCGETSID invocations from here...
8115         * modules/tcgetsid (configure.ac): ... to here.
8116         (Depends-on): Update conditions.
8117
8118 2011-05-22  Bruno Haible  <bruno@clisp.org>
8119
8120         symlinkat: Move AC_LIBOBJ invocations to module description.
8121         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
8122         here...
8123         * modules/symlinkat (configure.ac): ... to here.
8124
8125 2011-05-22  Bruno Haible  <bruno@clisp.org>
8126
8127         symlink: Move AC_LIBOBJ invocations to module description.
8128         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
8129         here...
8130         * modules/symlink (configure.ac): ... to here.
8131
8132 2011-05-22  Bruno Haible  <bruno@clisp.org>
8133
8134         strverscmp: Move AC_LIBOBJ invocations to module description.
8135         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
8136         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
8137         from here...
8138         * modules/strverscmp (configure.ac): ... to here.
8139
8140 2011-05-22  Bruno Haible  <bruno@clisp.org>
8141
8142         strtok_r: Move AC_LIBOBJ invocations to module description.
8143         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
8144         and gl_PREREQ_STRTOK_R invocations from here...
8145         * modules/strtok_r (configure.ac): ... to here.
8146         (Depends-on): Update conditions.
8147
8148 2011-05-22  Bruno Haible  <bruno@clisp.org>
8149
8150         strtoumax: Move AC_LIBOBJ invocations to module description.
8151         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
8152         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
8153         from here...
8154         * modules/strtoumax (configure.ac): ... to here.
8155
8156 2011-05-22  Bruno Haible  <bruno@clisp.org>
8157
8158         strtoimax: Move AC_LIBOBJ invocations to module description.
8159         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
8160         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
8161         from here...
8162         * modules/strtoimax (configure.ac): ... to here.
8163
8164 2011-05-22  Bruno Haible  <bruno@clisp.org>
8165
8166         strtoull: Move AC_LIBOBJ invocations to module description.
8167         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
8168         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
8169         from here...
8170         * modules/strtoull (configure.ac): ... to here.
8171
8172 2011-05-22  Bruno Haible  <bruno@clisp.org>
8173
8174         strtoll: Move AC_LIBOBJ invocations to module description.
8175         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
8176         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
8177         here...
8178         * modules/strtoll (configure.ac): ... to here.
8179
8180 2011-05-22  Bruno Haible  <bruno@clisp.org>
8181
8182         strtoul: Move AC_LIBOBJ invocations to module description.
8183         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
8184         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
8185         * modules/strtoul (configure.ac): ... to here.
8186
8187 2011-05-22  Bruno Haible  <bruno@clisp.org>
8188
8189         strtol: Move AC_LIBOBJ invocations to module description.
8190         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
8191         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
8192         * modules/strtol (configure.ac): ... to here.
8193
8194 2011-05-22  Bruno Haible  <bruno@clisp.org>
8195
8196         strtod: Move AC_LIBOBJ invocations to module description.
8197         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
8198         invocations from here...
8199         * modules/strtod (configure.ac): ... to here.
8200
8201 2011-05-22  Bruno Haible  <bruno@clisp.org>
8202
8203         strstr*: Move AC_LIBOBJ invocations to module description.
8204         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
8205         invocations from here...
8206         * modules/strstr-simple (configure.ac): ... to here.
8207         * modules/strstr (configure.ac): ... and here.
8208
8209 2011-05-22  Bruno Haible  <bruno@clisp.org>
8210
8211         strsignal: Move AC_LIBOBJ invocations to module description.
8212         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
8213         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
8214         * modules/strsignal (configure.ac): ... to here.
8215         (Depends-on): Update conditions.
8216
8217 2011-05-22  Bruno Haible  <bruno@clisp.org>
8218
8219         strsep: Move AC_LIBOBJ invocations to module description.
8220         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
8221         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
8222         here...
8223         * modules/strsep (configure.ac): ... to here.
8224
8225 2011-05-22  Bruno Haible  <bruno@clisp.org>
8226
8227         strptime: Move AC_LIBOBJ invocations to module description.
8228         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
8229         gl_PREREQ_STRPTIME invocations from here...
8230         * modules/strptime (configure.ac): ... to here.
8231
8232 2011-05-22  Bruno Haible  <bruno@clisp.org>
8233
8234         strpbrk: Move AC_LIBOBJ invocations to module description.
8235         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
8236         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
8237         here...
8238         * modules/strpbrk (configure.ac): ... to here.
8239
8240 2011-05-22  Bruno Haible  <bruno@clisp.org>
8241
8242         strnlen: Move AC_LIBOBJ invocations to module description.
8243         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
8244         invocations from here...
8245         * modules/strnlen (configure.ac): ... to here.
8246
8247 2011-05-22  Bruno Haible  <bruno@clisp.org>
8248
8249         strndup: Move AC_LIBOBJ invocations to module description.
8250         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
8251         invocations from here...
8252         * modules/strndup (configure.ac): ... to here.
8253         (Depends-on): Update conditions.
8254
8255 2011-05-22  Bruno Haible  <bruno@clisp.org>
8256
8257         strncat: Move AC_LIBOBJ invocations to module description.
8258         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
8259         invocations from here...
8260         * modules/strncat (configure.ac): ... to here.
8261
8262 2011-05-22  Bruno Haible  <bruno@clisp.org>
8263
8264         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
8265         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
8266         invocations from here...
8267         * modules/strdup (configure.ac): ... to here.
8268         * modules/strdup-posix (configure.ac): ... and here.
8269
8270 2011-05-22  Bruno Haible  <bruno@clisp.org>
8271
8272         strcspn: Move AC_LIBOBJ invocations to module description.
8273         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
8274         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
8275         here...
8276         * modules/strcspn (configure.ac): ... to here.
8277
8278 2011-05-22  Bruno Haible  <bruno@clisp.org>
8279
8280         strchrnul: Move AC_LIBOBJ invocations to module description.
8281         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
8282         gl_PREREQ_STRCHRNUL invocations from here...
8283         * modules/strchrnul (configure.ac): ... to here.
8284
8285 2011-05-22  Bruno Haible  <bruno@clisp.org>
8286
8287         strcasestr*: Move AC_LIBOBJ invocations to module description.
8288         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
8289         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
8290         * modules/strcasestr-simple (configure.ac): ... to here.
8291         * modules/strcasestr (configure.ac): ... and here.
8292
8293 2011-05-22  Bruno Haible  <bruno@clisp.org>
8294
8295         strcase: Move AC_LIBOBJ invocations to module description.
8296         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
8297         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
8298         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
8299         gl_PREREQ_STRNCASECMP invocations from here...
8300         * modules/strcase (configure.ac): ... to here.
8301
8302 2011-05-22  Bruno Haible  <bruno@clisp.org>
8303
8304         stpncpy: Move AC_LIBOBJ invocations to module description.
8305         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
8306         here...
8307         * modules/stpncpy (configure.ac): ... to here.
8308
8309 2011-05-22  Bruno Haible  <bruno@clisp.org>
8310
8311         stpcpy: Move AC_LIBOBJ invocations to module description.
8312         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
8313         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
8314         here...
8315         * modules/stpcpy (configure.ac): ... to here.
8316
8317 2011-05-21  Bruno Haible  <bruno@clisp.org>
8318
8319         stat: Move AC_LIBOBJ invocations to module description.
8320         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
8321         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
8322         here...
8323         * modules/stat (configure.ac): ... to here.
8324
8325 2011-05-21  Bruno Haible  <bruno@clisp.org>
8326
8327         sleep: Move AC_LIBOBJ invocations to module description.
8328         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
8329         * modules/sleep (configure.ac): ... to here.
8330
8331 2011-05-21  Bruno Haible  <bruno@clisp.org>
8332
8333         signbit: Move AC_LIBOBJ invocations to module description.
8334         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
8335         * modules/signbit (configure.ac): ... to here.
8336
8337 2011-05-21  Bruno Haible  <bruno@clisp.org>
8338
8339         sigprocmask: Move AC_LIBOBJ invocations to module description.
8340         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
8341         gl_PREREQ_SIGPROMASK invocations from here...
8342         * modules/sigprocmask (configure.ac): ... to here.
8343
8344 2011-05-21  Bruno Haible  <bruno@clisp.org>
8345
8346         sigaction: Move AC_LIBOBJ invocations to module description.
8347         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
8348         gl_PREREQ_SIGACTION invocations from here...
8349         * modules/sigaction (configure.ac): ... to here.
8350
8351 2011-05-21  Bruno Haible  <bruno@clisp.org>
8352
8353         sig2str: Move AC_LIBOBJ invocations to module description.
8354         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
8355         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
8356         here...
8357         * modules/sig2str (configure.ac): ... to here.
8358
8359 2011-05-21  Bruno Haible  <bruno@clisp.org>
8360
8361         setlocale: Move AC_LIBOBJ invocations to module description.
8362         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
8363         gl_PREREQ_SETLOCALE invocations from here...
8364         * modules/setlocale (configure.ac): ... to here.
8365
8366 2011-05-21  Bruno Haible  <bruno@clisp.org>
8367
8368         unsetenv: Move AC_LIBOBJ invocations to module description.
8369         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
8370         and gl_PREREQ_UNSETENV invocations from here...
8371         * modules/unsetenv (configure.ac): ... to here.
8372         (Depends-on): Update.
8373
8374 2011-05-21  Bruno Haible  <bruno@clisp.org>
8375
8376         setenv: Move AC_LIBOBJ invocations to module description.
8377         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
8378         here...
8379         * modules/setenv (configure.ac): ... to here.
8380
8381 2011-05-21  Bruno Haible  <bruno@clisp.org>
8382
8383         selinux-h: Move AC_LIBOBJ invocations to module description.
8384         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
8385         AC_LIBOBJ invocation from here...
8386         * modules/selinux-h (configure.ac): ... to here.
8387
8388 2011-05-21  Bruno Haible  <bruno@clisp.org>
8389
8390         select: Respect rules for use of AC_LIBOBJ.
8391         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
8392         here...
8393         * modules/select (configure.ac): ... to here.
8394
8395 2011-05-21  Bruno Haible  <bruno@clisp.org>
8396
8397         scandir: Move AC_LIBOBJ invocations to module description.
8398         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
8399         invocations from here...
8400         * modules/scandir (configure.ac): ... to here.
8401
8402 2011-05-21  Bruno Haible  <bruno@clisp.org>
8403
8404         rpmatch: Move AC_LIBOBJ invocations to module description.
8405         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
8406         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
8407         here...
8408         * modules/rpmatch (configure.ac): ... to here.
8409
8410 2011-05-21  Bruno Haible  <bruno@clisp.org>
8411
8412         rmdir: Respect rules for use of AC_LIBOBJ.
8413         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
8414         * modules/rmdir (configure.ac): ... to here.
8415
8416 2011-05-21  Bruno Haible  <bruno@clisp.org>
8417
8418         renameat: Move AC_LIBOBJ invocations to module description.
8419         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
8420         here...
8421         * modules/renameat (configure.ac): ... to here.
8422
8423 2011-05-21  Bruno Haible  <bruno@clisp.org>
8424
8425         rename: Respect rules for use of AC_LIBOBJ.
8426         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
8427         here...
8428         * modules/rename (configure.ac): ... to here.
8429
8430 2011-05-21  Bruno Haible  <bruno@clisp.org>
8431
8432         remove: Move AC_LIBOBJ invocations to module description.
8433         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
8434         here...
8435         * modules/remove (configure.ac): ... to here.
8436
8437 2011-05-21  Bruno Haible  <bruno@clisp.org>
8438
8439         relocatable-lib: Move AC_LIBOBJ invocations to module description.
8440         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
8441         macro.
8442         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
8443         * modules/relocatable-lib (configure.ac): ... to here.
8444         * modules/relocatable-prog-wrapper (configure.ac): Invoke
8445         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
8446
8447 2011-05-21  Bruno Haible  <bruno@clisp.org>
8448
8449         relocatable-prog: Move AC_LIBOBJ invocations to module description.
8450         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
8451         here...
8452         * modules/relocatable-prog (configure.ac): ... to here.
8453
8454 2011-05-21  Bruno Haible  <bruno@clisp.org>
8455
8456         regex: Move AC_LIBOBJ invocations to module description.
8457         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
8458         invocations from here...
8459         * modules/regex (configure.ac): ... to here.
8460
8461 2011-05-21  Bruno Haible  <bruno@clisp.org>
8462
8463         realloc-*: Move AC_LIBOBJ invocations to module description.
8464         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
8465         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
8466         AC_LIBOBJ invocations from here...
8467         * modules/realloc-gnu (configure.ac): ... to here.
8468         * modules/realloc-posix (configure.ac): ... and here.
8469
8470 2011-05-21  Bruno Haible  <bruno@clisp.org>
8471
8472         readutmp: Move AC_LIBOBJ invocations to module description.
8473         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
8474         * modules/readutmp (configure.ac): ... to here.
8475
8476 2011-05-21  Bruno Haible  <bruno@clisp.org>
8477
8478         readlinkat: Move AC_LIBOBJ invocations to module description.
8479         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
8480         here...
8481         * modules/readlinkat (configure.ac): ... to here.
8482
8483 2011-05-21  Bruno Haible  <bruno@clisp.org>
8484
8485         readlink: Move AC_LIBOBJ invocations to module description.
8486         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
8487         gl_PREREQ_READLINK invocations from here...
8488         * modules/readlink (configure.ac): ... to here.
8489
8490 2011-05-21  Bruno Haible  <bruno@clisp.org>
8491
8492         readline: Move AC_LIBOBJ invocations to module description.
8493         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
8494         gl_PREREQ_READLINE invocations from here...
8495         * modules/readline (configure.ac): ... to here.
8496
8497 2011-05-21  Bruno Haible  <bruno@clisp.org>
8498
8499         read: Move AC_LIBOBJ invocations to module description.
8500         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
8501         * modules/read (configure.ac): ... to here.
8502
8503 2011-05-21  Bruno Haible  <bruno@clisp.org>
8504
8505         rawmemchr: Move AC_LIBOBJ invocations to module description.
8506         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
8507         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
8508         from here...
8509         * modules/rawmemchr (configure.ac): ... to here.
8510
8511 2011-05-21  Bruno Haible  <bruno@clisp.org>
8512
8513         random_r: Move AC_LIBOBJ invocations to module description.
8514         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
8515         gl_PREREQ_RANDOM_R invocations from here...
8516         * modules/random_r (configure.ac): ... to here.
8517
8518 2011-05-21  Bruno Haible  <bruno@clisp.org>
8519
8520         pwrite: Move AC_LIBOBJ invocations to module description.
8521         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
8522         * modules/pwrite (configure.ac): ... to here.
8523
8524 2011-05-21  Bruno Haible  <bruno@clisp.org>
8525
8526         putenv: Move AC_LIBOBJ invocations to module description.
8527         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
8528         * modules/putenv (configure.ac): ... to here.
8529
8530 2011-05-21  Bruno Haible  <bruno@clisp.org>
8531
8532         login_tty: Move AC_LIBOBJ invocations to module description.
8533         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
8534         * modules/login_tty (configure.ac): ... to here.
8535
8536 2011-05-21  Bruno Haible  <bruno@clisp.org>
8537
8538         openpty: Move AC_LIBOBJ invocations to module description.
8539         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
8540         * modules/openpty (configure.ac): ... to here.
8541
8542 2011-05-21  Bruno Haible  <bruno@clisp.org>
8543
8544         forkpty: Move AC_LIBOBJ invocations to module description.
8545         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
8546         * modules/forkpty (configure.ac): ... to here.
8547
8548 2011-05-21  Bruno Haible  <bruno@clisp.org>
8549
8550         ptsname: Move AC_LIBOBJ invocations to module description.
8551         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
8552         invocations from here...
8553         * modules/ptsname (configure.ac): ... to here.
8554
8555 2011-05-21  Bruno Haible  <bruno@clisp.org>
8556
8557         pread: Move AC_LIBOBJ invocations to module description.
8558         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
8559         * modules/pread (configure.ac): ... to here.
8560
8561 2011-05-21  Bruno Haible  <bruno@clisp.org>
8562
8563         posix_spawn*: Move AC_LIBOBJ invocations to module description.
8564         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
8565         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
8566         * modules/posix_spawn (configure.ac): ... to here.
8567         * modules/posix_spawnp (configure.ac): ... and here.
8568
8569 2011-05-21  Bruno Haible  <bruno@clisp.org>
8570
8571         popen: Move AC_LIBOBJ invocations to module description.
8572         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
8573         invocations from here...
8574         * modules/popen (configure.ac): ... to here.
8575
8576 2011-05-21  Bruno Haible  <bruno@clisp.org>
8577
8578         poll: Move AC_LIBOBJ invocations to module description.
8579         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
8580         invocations from here...
8581         * modules/poll (configure.ac): ... to here.
8582
8583 2011-05-21  Bruno Haible  <bruno@clisp.org>
8584
8585         pipe-posix: Move AC_LIBOBJ invocations to module description.
8586         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
8587         * modules/pipe-posix (configure.ac): ... to here.
8588
8589 2011-05-21  Bruno Haible  <bruno@clisp.org>
8590
8591         openat: Respect rules for use of AC_LIBOBJ.
8592         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
8593         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8594         * modules/openat (configure.ac): ... to here.
8595
8596 2011-05-21  Bruno Haible  <bruno@clisp.org>
8597
8598         obstack-printf*: Move AC_LIBOBJ invocations to module description.
8599         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
8600         invocation from here...
8601         * modules/obstack-printf (configure.ac): ... to here.
8602         * modules/obstack-printf-posix (configure.ac): ... and here.
8603
8604 2011-05-21  Bruno Haible  <bruno@clisp.org>
8605
8606         nl_langinfo: Move AC_LIBOBJ invocations to module description.
8607         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
8608         from here...
8609         * modules/nl_langinfo (configure.ac): ... to here.
8610
8611 2011-05-21  Bruno Haible  <bruno@clisp.org>
8612
8613         nanosleep: Move AC_LIBOBJ invocations to module description.
8614         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
8615         gl_PREREQ_NANOSLEEP invocations from here...
8616         * modules/nanosleep (configure.ac): ... to here.
8617
8618 2011-05-21  Bruno Haible  <bruno@clisp.org>
8619
8620         mountlist: Move AC_LIBOBJ invocations to module description.
8621         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
8622         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
8623         * modules/mountlist (configure.ac): ... to here.
8624
8625 2011-05-21  Bruno Haible  <bruno@clisp.org>
8626
8627         mktime: Respect rules for use of AC_LIBOBJ.
8628         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
8629         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
8630         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
8631         (gl_FUNC_MKTIME_INTERNAL): ... and here...
8632         * modules/mktime (configure.ac): ... to here.
8633         * modules/mktime-internal (configure.ac): ... and here.
8634         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
8635
8636 2011-05-21  Bruno Haible  <bruno@clisp.org>
8637
8638         mkstemps: Move AC_LIBOBJ invocations to module description.
8639         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
8640         here...
8641         * modules/mkstemps (configure.ac): ... to here.
8642
8643 2011-05-21  Bruno Haible  <bruno@clisp.org>
8644
8645         mkstemp: Move AC_LIBOBJ invocations to module description.
8646         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
8647         gl_PREREQ_MKSTEMP invocations from here...
8648         * modules/mkstemp (configure.ac): ... to here.
8649
8650 2011-05-21  Bruno Haible  <bruno@clisp.org>
8651
8652         mkostemps: Move AC_LIBOBJ invocations to module description.
8653         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
8654         here...
8655         * modules/mkostemps (configure.ac): ... to here.
8656
8657 2011-05-21  Bruno Haible  <bruno@clisp.org>
8658
8659         mkostemp: Move AC_LIBOBJ invocations to module description.
8660         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
8661         gl_PREREQ_MKOSTEMP invocations from here...
8662         * modules/mkostemp (configure.ac): ... to here.
8663
8664 2011-05-21  Bruno Haible  <bruno@clisp.org>
8665
8666         mknod: Move AC_LIBOBJ invocations to module description.
8667         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
8668         * modules/mknod (configure.ac): ... to here.
8669
8670 2011-05-21  Bruno Haible  <bruno@clisp.org>
8671
8672         mkfifoat: Move AC_LIBOBJ invocations to module description.
8673         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
8674         here...
8675         * modules/mkfifoat (configure.ac): ... to here.
8676
8677 2011-05-21  Bruno Haible  <bruno@clisp.org>
8678
8679         mkfifo: Respect rules for use of AC_LIBOBJ.
8680         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
8681         here...
8682         * modules/mkfifo (configure.ac): ... to here.
8683
8684 2011-05-21  Bruno Haible  <bruno@clisp.org>
8685
8686         mkdtemp: Move AC_LIBOBJ invocations to module description.
8687         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
8688         invocations from here...
8689         * modules/mkdtemp (configure.ac): ... to here.
8690
8691 2011-05-21  Bruno Haible  <bruno@clisp.org>
8692
8693         mkdir: Move AC_LIBOBJ invocations to module description.
8694         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
8695         * modules/mkdir (configure.ac): ... to here.
8696
8697 2011-05-21  Bruno Haible  <bruno@clisp.org>
8698
8699         memset: Move AC_LIBOBJ invocations to module description.
8700         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
8701         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
8702         here...
8703         * modules/memset (configure.ac): ... to here.
8704
8705 2011-05-21  Bruno Haible  <bruno@clisp.org>
8706
8707         memrchr: Move AC_LIBOBJ invocations to module description.
8708         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
8709         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
8710         here...
8711         * modules/memrchr (configure.ac): ... to here.
8712
8713 2011-05-21  Bruno Haible  <bruno@clisp.org>
8714
8715         mempcpy: Move AC_LIBOBJ invocations to module description.
8716         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
8717         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
8718         here...
8719         * modules/mempcpy (configure.ac): ... to here.
8720
8721 2011-05-21  Bruno Haible  <bruno@clisp.org>
8722
8723         memmove: Move AC_LIBOBJ invocations to module description.
8724         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
8725         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
8726         here...
8727         * modules/memmove (configure.ac): ... to here.
8728
8729 2011-05-21  Bruno Haible  <bruno@clisp.org>
8730
8731         memmem*: Move AC_LIBOBJ invocations to module description.
8732         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
8733         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
8734         here...
8735         (gl_FUNC_MEMMEM): ... and here...
8736         * modules/memmem-simple (configure.ac): ... to here.
8737         * modules/memmem (configure.ac): ... and here.
8738
8739 2011-05-21  Bruno Haible  <bruno@clisp.org>
8740
8741         memcpy: Move AC_LIBOBJ invocations to module description.
8742         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
8743         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
8744         here...
8745         * modules/memcpy (configure.ac): ... to here.
8746
8747 2011-05-21  Bruno Haible  <bruno@clisp.org>
8748
8749         memcmp: Simplify autoconf macro.
8750         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
8751         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
8752         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
8753
8754 2011-05-21  Bruno Haible  <bruno@clisp.org>
8755
8756         memcmp: Move AC_LIBOBJ invocations to module description.
8757         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
8758         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
8759         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
8760         * modules/memcmp (configure.ac): ... to here.
8761         (Depends-on): Update conditions.
8762
8763 2011-05-21  Bruno Haible  <bruno@clisp.org>
8764
8765         memchr: Respect rules for use of AC_LIBOBJ.
8766         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
8767         invocations from here...
8768         * modules/memchr (configure.ac): ... to here.
8769
8770 2011-05-21  Bruno Haible  <bruno@clisp.org>
8771
8772         mbtowc: Move AC_LIBOBJ invocations to module description.
8773         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
8774         invocations from here...
8775         * modules/mbtowc (configure.ac): ... to here.
8776
8777 2011-05-21  Bruno Haible  <bruno@clisp.org>
8778
8779         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
8780         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
8781         gl_PREREQ_MBSRTOWCS invocations from here...
8782         * modules/mbsrtowcs (configure.ac): ... to here.
8783
8784 2011-05-21  Bruno Haible  <bruno@clisp.org>
8785
8786         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
8787         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
8788         gl_PREREQ_MBSNRTOWCS invocations from here...
8789         * modules/mbsnrtowcs (configure.ac): ... to here.
8790
8791 2011-05-21  Bruno Haible  <bruno@clisp.org>
8792
8793         mbsinit: Move AC_LIBOBJ invocations to module description.
8794         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
8795         invocations from here...
8796         * modules/mbsinit (configure.ac): ... to here.
8797
8798 2011-05-21  Bruno Haible  <bruno@clisp.org>
8799
8800         mbrlen: Move AC_LIBOBJ invocations to module description.
8801         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
8802         invocations from here...
8803         * modules/mbrlen (configure.ac): ... to here.
8804
8805 2011-05-21  Bruno Haible  <bruno@clisp.org>
8806
8807         mbrtowc: Respect rules for use of AC_LIBOBJ.
8808         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
8809         invocations from here...
8810         * modules/mbrtowc (configure.ac): ... to here.
8811
8812 2011-05-21  Bruno Haible  <bruno@clisp.org>
8813
8814         malloc-*: Move AC_LIBOBJ invocations to module description.
8815         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
8816         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
8817         AC_LIBOBJ invocations from here...
8818         * modules/malloc-gnu (configure.ac): ... to here.
8819         * modules/malloc-posix (configure.ac): ... and here.
8820
8821 2011-05-21  Bruno Haible  <bruno@clisp.org>
8822
8823         lstat, openat: Respect rules for use of AC_LIBOBJ.
8824         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
8825         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
8826         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
8827         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
8828         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
8829         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
8830         here.
8831         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
8832
8833 2011-05-21  Bruno Haible  <bruno@clisp.org>
8834
8835         lseek: Move AC_LIBOBJ invocations to module description.
8836         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
8837         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8838         * modules/lseek (configure.ac): ... to here.
8839
8840 2011-05-21  Bruno Haible  <bruno@clisp.org>
8841
8842         linkat: Move AC_LIBOBJ invocations to module description.
8843         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
8844         here...
8845         * modules/linkat (configure.ac): ... to here.
8846
8847 2011-05-21  Bruno Haible  <bruno@clisp.org>
8848
8849         link: Respect rules for use of AC_LIBOBJ.
8850         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
8851         * modules/link (configure.ac): ... to here.
8852
8853 2011-05-21  Bruno Haible  <bruno@clisp.org>
8854
8855         lchown: Move AC_LIBOBJ invocations to module description.
8856         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8857         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8858         * modules/lchown (configure.ac): ... to here.
8859
8860 2011-05-21  Bruno Haible  <bruno@clisp.org>
8861
8862         iswctype: Move AC_LIBOBJ invocations to module description.
8863         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
8864         here...
8865         * modules/iswctype (configure.ac): ... to here.
8866
8867 2011-05-21  Bruno Haible  <bruno@clisp.org>
8868
8869         iswblank: Move AC_LIBOBJ invocations to module description.
8870         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
8871         here...
8872         * modules/iswblank (configure.ac): ... to here.
8873
8874 2011-05-21  Bruno Haible  <bruno@clisp.org>
8875
8876         atanl: Move AC_LIBOBJ invocations to module description.
8877         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
8878         * modules/atanl (configure.ac): ... to here.
8879
8880 2011-05-21  Bruno Haible  <bruno@clisp.org>
8881
8882         acosl: Move AC_LIBOBJ invocations to module description.
8883         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
8884         * modules/acosl (configure.ac): ... to here.
8885
8886 2011-05-21  Bruno Haible  <bruno@clisp.org>
8887
8888         asinl: Respect rules for use of AC_LIBOBJ.
8889         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
8890         * modules/asinl (configure.ac): ... to here.
8891
8892 2011-05-21  Bruno Haible  <bruno@clisp.org>
8893
8894         tanl: Move AC_LIBOBJ invocations to module description.
8895         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
8896         * modules/tanl (configure.ac): ... to here.
8897
8898 2011-05-21  Bruno Haible  <bruno@clisp.org>
8899
8900         cosl: Move AC_LIBOBJ invocations to module description.
8901         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
8902         * modules/cosl (configure.ac): ... to here.
8903
8904 2011-05-21  Bruno Haible  <bruno@clisp.org>
8905
8906         sinl: Move AC_LIBOBJ invocations to module description.
8907         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
8908         * modules/sinl (configure.ac): ... to here.
8909
8910 2011-05-21  Bruno Haible  <bruno@clisp.org>
8911
8912         logl: Move AC_LIBOBJ invocations to module description.
8913         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
8914         * modules/logl (configure.ac): ... to here.
8915
8916 2011-05-21  Bruno Haible  <bruno@clisp.org>
8917
8918         expl: Move AC_LIBOBJ invocations to module description.
8919         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
8920         * modules/expl (configure.ac): ... to here.
8921
8922 2011-05-21  Bruno Haible  <bruno@clisp.org>
8923
8924         roundl: Move AC_LIBOBJ invocations to module description.
8925         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
8926         * modules/roundl (configure.ac): ... to here.
8927
8928 2011-05-21  Bruno Haible  <bruno@clisp.org>
8929
8930         round: Move AC_LIBOBJ invocations to module description.
8931         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
8932         * modules/round (configure.ac): ... to here.
8933
8934 2011-05-21  Bruno Haible  <bruno@clisp.org>
8935
8936         roundf: Move AC_LIBOBJ invocations to module description.
8937         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
8938         * modules/roundf (configure.ac): ... to here.
8939
8940 2011-05-21  Bruno Haible  <bruno@clisp.org>
8941
8942         truncl: Move AC_LIBOBJ invocations to module description.
8943         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
8944         * modules/truncl (configure.ac): ... to here.
8945
8946 2011-05-21  Bruno Haible  <bruno@clisp.org>
8947
8948         trunc: Move AC_LIBOBJ invocations to module description.
8949         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
8950         * modules/trunc (configure.ac): ... to here.
8951
8952 2011-05-21  Bruno Haible  <bruno@clisp.org>
8953
8954         truncf: Move AC_LIBOBJ invocations to module description.
8955         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
8956         * modules/truncf (configure.ac): ... to here.
8957
8958 2011-05-21  Bruno Haible  <bruno@clisp.org>
8959
8960         ceill: Move AC_LIBOBJ invocations to module description.
8961         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
8962         * modules/ceill (configure.ac): ... to here.
8963
8964 2011-05-21  Bruno Haible  <bruno@clisp.org>
8965
8966         ceil: Move AC_LIBOBJ invocations to module description.
8967         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
8968         * modules/ceil (configure.ac): ... to here.
8969
8970 2011-05-21  Bruno Haible  <bruno@clisp.org>
8971
8972         ceilf: Move AC_LIBOBJ invocations to module description.
8973         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
8974         * modules/ceilf (configure.ac): ... to here.
8975
8976 2011-05-21  Bruno Haible  <bruno@clisp.org>
8977
8978         floorl: Respect rules for use of AC_LIBOBJ.
8979         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
8980         * modules/floorl (configure.ac): ... to here.
8981
8982 2011-05-21  Bruno Haible  <bruno@clisp.org>
8983
8984         floor: Respect rules for use of AC_LIBOBJ.
8985         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
8986         * modules/floor (configure.ac): ... to here.
8987
8988 2011-05-21  Bruno Haible  <bruno@clisp.org>
8989
8990         floorf: Move AC_LIBOBJ invocations to module description.
8991         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
8992         * modules/floorf (configure.ac): ... to here.
8993
8994 2011-05-20  Bruno Haible  <bruno@clisp.org>
8995
8996         sqrtl: Respect rules for use of AC_LIBOBJ.
8997         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
8998         * modules/sqrtl (configure.ac): ... to here.
8999
9000 2011-05-20  Bruno Haible  <bruno@clisp.org>
9001
9002         ldexpl: Respect rules for use of AC_LIBOBJ.
9003         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
9004         * modules/ldexpl (configure.ac): ... to here.
9005
9006 2011-05-20  Bruno Haible  <bruno@clisp.org>
9007
9008         frexpl*: Respect rules for use of AC_LIBOBJ.
9009         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
9010         invocation from here...
9011         * modules/frexpl (configure.ac): ... to here.
9012         * modules/frexpl-nolibm (configure.ac): ... and here.
9013
9014 2011-05-20  Bruno Haible  <bruno@clisp.org>
9015
9016         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
9017         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
9018         invocation from here...
9019         * modules/frexp (configure.ac): ... to here.
9020         * modules/frexp-nolibm (configure.ac): ... and here.
9021
9022 2011-05-20  Bruno Haible  <bruno@clisp.org>
9023
9024         isnan: Respect rules for use of AC_LIBOBJ.
9025         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
9026         invocations here.
9027         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
9028         REPLACE_ISNAN.
9029         * modules/isnand (configure.ac): Likewise.
9030         * modules/isnanl (configure.ac): Likewise.
9031
9032 2011-05-20  Bruno Haible  <bruno@clisp.org>
9033
9034         isnanl*: Respect rules for use of AC_LIBOBJ.
9035         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
9036         invocation from here...
9037         * modules/isnanl (configure.ac): ... to here.
9038         * modules/isnanl-nolibm (configure.ac): ... and here.
9039
9040 2011-05-20  Bruno Haible  <bruno@clisp.org>
9041
9042         isnand*: Move AC_LIBOBJ invocations to module description.
9043         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
9044         invocation from here...
9045         * modules/isnand (configure.ac): ... to here.
9046         * modules/isnand-nolibm (configure.ac): ... and here.
9047
9048 2011-05-20  Bruno Haible  <bruno@clisp.org>
9049
9050         isnanf*: Move AC_LIBOBJ invocations to module description.
9051         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
9052         invocation from here...
9053         * modules/isnanf (configure.ac): ... to here.
9054         * modules/isnanf-nolibm (configure.ac): ... and here.
9055
9056 2011-05-20  Bruno Haible  <bruno@clisp.org>
9057
9058         isnan*: Separate the AC_LIBOBJ invocations.
9059         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
9060         AC_LIBOBJ invocation.
9061         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
9062         here.
9063         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
9064         AC_LIBOBJ invocation.
9065         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
9066         here.
9067         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
9068         AC_LIBOBJ invocation.
9069         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
9070         here.
9071         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
9072
9073 2011-05-08  Bruno Haible  <bruno@clisp.org>
9074
9075         isinf: Move AC_LIBOBJ invocations to module description.
9076         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
9077         * modules/isinf (configure.ac): ... to here.
9078
9079 2011-05-08  Bruno Haible  <bruno@clisp.org>
9080
9081         isfinite: Move AC_LIBOBJ invocations to module description.
9082         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
9083         * modules/isfinite (configure.ac): ... to here.
9084
9085 2011-05-08  Bruno Haible  <bruno@clisp.org>
9086
9087         isblank: Move AC_LIBOBJ invocations to module description.
9088         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
9089         here...
9090         * modules/isblank (configure.ac): ... to here.
9091
9092 2011-05-08  Bruno Haible  <bruno@clisp.org>
9093
9094         isapipe: Move AC_LIBOBJ invocations to module description.
9095         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
9096         gl_PREREQ_ISAPIPE invocations from here...
9097         * modules/isapipe (configure.ac): ... to here.
9098         (Depends-on): Update condition.
9099
9100 2011-05-08  Bruno Haible  <bruno@clisp.org>
9101
9102         ioctl: Move AC_LIBOBJ invocations to module description.
9103         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
9104         invocations from here...
9105         * modules/ioctl (configure.ac): ... to here.
9106         (Depends-on): Update condition.
9107
9108 2011-05-08  Bruno Haible  <bruno@clisp.org>
9109
9110         imaxdiv: Move AC_LIBOBJ invocations to module description.
9111         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
9112         invocations from here...
9113         * modules/imaxdiv (configure.ac): ... to here.
9114
9115 2011-05-08  Bruno Haible  <bruno@clisp.org>
9116
9117         imaxabs: Move AC_LIBOBJ invocations to module description.
9118         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
9119         invocations from here...
9120         * modules/imaxabs (configure.ac): ... to here.
9121
9122 2011-05-08  Bruno Haible  <bruno@clisp.org>
9123
9124         getaddrinfo: Move AC_LIBOBJ invocations to module description.
9125         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
9126         AC_LIBOBJ invocations from here...
9127         * modules/getaddrinfo (configure.ac): ... to here.
9128         (Depends-on): Add conditions.
9129
9130 2011-05-08  Bruno Haible  <bruno@clisp.org>
9131
9132         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
9133         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
9134         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
9135         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
9136         (gl_PREREQ_INET_PTON): ... from here.
9137         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
9138         gl_PREREQ_INET_PTON here.
9139         (Depends-on): Update condition.
9140
9141 2011-05-08  Bruno Haible  <bruno@clisp.org>
9142
9143         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
9144         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
9145         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
9146         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
9147         (gl_PREREQ_INET_NTOP): ... from here.
9148         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
9149         gl_PREREQ_INET_NTOP here.
9150         (Depends-on): Update condition.
9151
9152 2011-05-08  Bruno Haible  <bruno@clisp.org>
9153
9154         iconv_open: Move AC_LIBOBJ invocations to module description.
9155         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
9156         AC_LIBOBJ invocations from here...
9157         * modules/iconv_open (configure.ac): ... to here.
9158
9159 2011-05-08  Bruno Haible  <bruno@clisp.org>
9160
9161         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
9162         If module 'iconv_open' is among the main modules and module
9163         'iconv_open-utf' is among the tests dependencies, then
9164         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
9165         return the special iconv_t values. Therefore iconv() and iconv_close()
9166         must support these special iconv_t values, already in lib, not only in
9167         tests.
9168         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
9169         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
9170         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
9171         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
9172         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
9173         (Depends-on): Add the dependencies of iconv_open-utf.
9174         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
9175         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
9176         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
9177
9178 2011-05-08  Bruno Haible  <bruno@clisp.org>
9179
9180         group-member: Move AC_LIBOBJ invocations to module description.
9181         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
9182         gl_PREREQ_GROUP_MEMBER invocations from here...
9183         * modules/group-member (configure.ac): ... to here.
9184
9185 2011-05-08  Bruno Haible  <bruno@clisp.org>
9186
9187         grantpt: Move AC_LIBOBJ invocations to module description.
9188         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
9189         invocations from here...
9190         * modules/grantpt (configure.ac): ... to here.
9191
9192 2011-05-08  Bruno Haible  <bruno@clisp.org>
9193
9194         glob: Move AC_LIBOBJ invocations to module description.
9195         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
9196         from here...
9197         * modules/glob (configure.ac): ... to here.
9198
9199 2011-05-08  Bruno Haible  <bruno@clisp.org>
9200
9201         getusershell: Move AC_LIBOBJ invocations to module description.
9202         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
9203         Move AC_LIBOBJ invocation from here...
9204         * modules/getusershell (configure.ac): ... to here.
9205         (Depends-on): Update condition.
9206
9207 2011-05-08  Bruno Haible  <bruno@clisp.org>
9208
9209         gettimeofday: Move AC_LIBOBJ invocations to module description.
9210         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
9211         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
9212         gl_PREREQ_GETTIMEOFDAY invocations from here...
9213         * modules/gettimeofday (configure.ac): ... to here.
9214
9215 2011-05-08  Bruno Haible  <bruno@clisp.org>
9216
9217         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
9218         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
9219         just gl_FUNC_TZSET.
9220         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
9221         (gl_FUNC_TZSET_CLOBBER): Remove actions.
9222         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
9223         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
9224
9225 2011-05-08  Bruno Haible  <bruno@clisp.org>
9226
9227         getsubopt: Move AC_LIBOBJ invocations to module description.
9228         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
9229         gl_PREREQ_GETSUBOPT invocations from here...
9230         * modules/getsubopt (configure.ac): ... to here.
9231
9232 2011-05-08  Bruno Haible  <bruno@clisp.org>
9233
9234         getpass-gnu: Move AC_LIBOBJ invocations to module description.
9235         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
9236         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
9237         * modules/getpass-gnu (configure.ac): ... to here.
9238
9239 2011-05-08  Bruno Haible  <bruno@clisp.org>
9240
9241         getpass: Move AC_LIBOBJ invocations to module description.
9242         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
9243         gl_PREREQ_GETPASS invocations from here...
9244         * modules/getpass (configure.ac): ... to here.
9245
9246 2011-05-08  Bruno Haible  <bruno@clisp.org>
9247
9248         getpagesize: Move AC_LIBOBJ invocations to module description.
9249         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
9250         from here...
9251         * modules/getpagesize (configure.ac): ... to here.
9252
9253 2011-05-08  Bruno Haible  <bruno@clisp.org>
9254
9255         getopt: Move AC_LIBOBJ invocations to module description.
9256         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
9257         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
9258         invocations from here...
9259         * modules/getopt-gnu (configure.ac): ... to here.
9260         * modules/getopt-posix (configure.ac): ... and here.
9261         (Depends-on): Update condition.
9262
9263 2011-05-08  Bruno Haible  <bruno@clisp.org>
9264
9265         getopt, argp: Respect rules for use of AC_LIBOBJ.
9266         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
9267         (gl_REPLACE_GETOPT_ALWAYS): New macro.
9268         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
9269         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
9270
9271 2011-05-08  Bruno Haible  <bruno@clisp.org>
9272
9273         getlogin_r: Move AC_LIBOBJ invocations to module description.
9274         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
9275         gl_PREREQ_GETLOGIN_R invocations from here...
9276         * modules/getlogin_r (configure.ac): ... to here.
9277
9278 2011-05-08  Bruno Haible  <bruno@clisp.org>
9279
9280         getlogin: Move AC_LIBOBJ invocations to module description.
9281         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
9282         here...
9283         * modules/getlogin (configure.ac): ... to here.
9284
9285 2011-05-08  Bruno Haible  <bruno@clisp.org>
9286
9287         getloadavg: Move AC_LIBOBJ invocations to module description.
9288         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
9289         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
9290         * modules/getloadavg (configure.ac): ... to here.
9291
9292 2011-05-08  Bruno Haible  <bruno@clisp.org>
9293
9294         gethrxtime: Move AC_LIBOBJ invocations to module description.
9295         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
9296         LIB_GETHRXTIME from here...
9297         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
9298         invocations from here...
9299         * modules/gethrxtime (configure.ac): ... to here.
9300
9301 2011-05-08  Bruno Haible  <bruno@clisp.org>
9302
9303         gethostname: Move AC_LIBOBJ invocations to module description.
9304         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
9305         gl_PREREQ_GETHOSTNAME invocations from here...
9306         * modules/gethostname (configure.ac): ... to here.
9307
9308 2011-05-08  Bruno Haible  <bruno@clisp.org>
9309
9310         getgroups: Move AC_LIBOBJ invocations to module description.
9311         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
9312         here...
9313         * modules/getgroups (configure.ac): ... to here.
9314
9315 2011-05-08  Bruno Haible  <bruno@clisp.org>
9316
9317         getdtablesize: Move AC_LIBOBJ invocations to module description.
9318         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
9319         invocation from here...
9320         * modules/getdtablesize (configure.ac): ... to here.
9321
9322 2011-05-08  Bruno Haible  <bruno@clisp.org>
9323
9324         getdomainname: Move AC_LIBOBJ invocations to module description.
9325         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
9326         gl_PREREQ_GETDOMAINNAME invocations from here...
9327         * modules/getdomainname (configure.ac): ... to here.
9328
9329 2011-05-08  Bruno Haible  <bruno@clisp.org>
9330
9331         getline: Move AC_LIBOBJ invocations to module description.
9332         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
9333         invocations from here...
9334         * modules/getline (configure.ac): ... to here.
9335
9336 2011-05-08  Bruno Haible  <bruno@clisp.org>
9337
9338         getline: Simplify.
9339         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
9340         It's already handled through the module dependency.
9341
9342 2011-05-08  Bruno Haible  <bruno@clisp.org>
9343
9344         getdelim: Move AC_LIBOBJ invocations to module description.
9345         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
9346         and gl_PREREQ_GETDELIM invocations from here...
9347         * modules/getdelim (configure.ac): ... to here.
9348         (Depends-on): Fix condition.
9349
9350 2011-05-08  Bruno Haible  <bruno@clisp.org>
9351
9352         getcwd: Move AC_LIBOBJ invocations to module description.
9353         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
9354         invocations from here...
9355         * modules/getcwd (configure.ac): ... to here.
9356
9357 2011-05-08  Bruno Haible  <bruno@clisp.org>
9358
9359         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
9360         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
9361         here...
9362         * modules/getcwd-lgpl (configure.ac): ... to here.
9363
9364 2011-05-07  Bruno Haible  <bruno@clisp.org>
9365
9366         crypto/gc: Move AC_LIBOBJ invocations to module description.
9367         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
9368         * modules/crypto/gc (configure.ac): ... to here.
9369
9370 2011-05-07  Bruno Haible  <bruno@clisp.org>
9371
9372         fwriting: Move AC_LIBOBJ invocations to module description.
9373         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
9374         here...
9375         * modules/fwriting (configure.ac): ... to here.
9376
9377 2011-05-07  Bruno Haible  <bruno@clisp.org>
9378
9379         fwritable: Move AC_LIBOBJ invocations to module description.
9380         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
9381         here...
9382         * modules/fwritable (configure.ac): ... to here.
9383
9384 2011-05-07  Bruno Haible  <bruno@clisp.org>
9385
9386         futimens: Move AC_LIBOBJ invocations to module description.
9387         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
9388         here...
9389         * modules/futimens (configure.ac): ... to here.
9390
9391 2011-05-07  Bruno Haible  <bruno@clisp.org>
9392
9393         ftruncate: Move AC_LIBOBJ invocations to module description.
9394         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
9395         gl_PREREQ_FTRUNCATE invocations from here...
9396         * modules/ftruncate (configure.ac): ... to here.
9397
9398 2011-05-07  Bruno Haible  <bruno@clisp.org>
9399
9400         fsync: Move AC_LIBOBJ invocations to module description.
9401         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
9402         invocations from here...
9403         * modules/fsync (configure.ac): ... to here.
9404
9405 2011-05-07  Bruno Haible  <bruno@clisp.org>
9406
9407         fsusage: Move AC_LIBOBJ invocations to module description.
9408         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
9409         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
9410         * modules/fsusage (configure.ac): ... to here.
9411
9412 2011-05-07  Bruno Haible  <bruno@clisp.org>
9413
9414         freopen: Move AC_LIBOBJ invocations to module description.
9415         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
9416         invocations from here...
9417         * modules/freopen (configure.ac): ... to here.
9418
9419 2011-05-07  Bruno Haible  <bruno@clisp.org>
9420
9421         free: Move AC_LIBOBJ invocations to module description.
9422         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
9423         invocations from here...
9424         * modules/free (configure.ac): ... to here.
9425
9426 2011-05-07  Bruno Haible  <bruno@clisp.org>
9427
9428         freadable: Move AC_LIBOBJ invocations to module description.
9429         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
9430         here...
9431         * modules/freadable (configure.ac): ... to here.
9432
9433 2011-05-07  Bruno Haible  <bruno@clisp.org>
9434
9435         fpurge: Move AC_LIBOBJ invocations to module description.
9436         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
9437         invocations from here...
9438         * modules/fpurge (configure.ac): ... to here.
9439
9440 2011-05-07  Bruno Haible  <bruno@clisp.org>
9441
9442         fpending: Move AC_LIBOBJ invocations to module description.
9443         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
9444         gl_FUNC_FPENDING.
9445         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
9446         invocations from here...
9447         * modules/fpending (configure.ac): ... to here.
9448
9449 2011-05-07  Bruno Haible  <bruno@clisp.org>
9450
9451         fopen: Move AC_LIBOBJ invocations to module description.
9452         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
9453         invocations from here...
9454         * modules/fopen (configure.ac): ... to here.
9455
9456 2011-05-07  Bruno Haible  <bruno@clisp.org>
9457
9458         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
9459         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
9460         gl_FUNC_FNMATCH_POSIX.
9461         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
9462         invocations from here...
9463         * modules/fnmatch (configure.ac): ... to here.
9464         * modules/fnmatch-gnu (configure.ac): ... and here.
9465
9466 2011-05-07  Bruno Haible  <bruno@clisp.org>
9467
9468         flock: Move AC_LIBOBJ invocations to module description.
9469         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
9470         invocations from here...
9471         * modules/flock (configure.ac): ... to here.
9472
9473 2011-05-07  Bruno Haible  <bruno@clisp.org>
9474
9475         fileblocks: Move AC_LIBOBJ invocations to module description.
9476         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
9477         gl_PREREQ_FILEBLOCKS invocations from here...
9478         * modules/fileblocks (configure.ac): ... to here.
9479
9480 2011-05-06  Bruno Haible  <bruno@clisp.org>
9481
9482         fflush: Move AC_LIBOBJ invocations to module description.
9483         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
9484         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
9485         invocations from here...
9486         * modules/fflush (configure.ac): ... to here.
9487
9488 2011-05-06  Bruno Haible  <bruno@clisp.org>
9489
9490         fdopendir: Move AC_LIBOBJ invocations to module description.
9491         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
9492         here...
9493         * modules/fdopendir (configure.ac): ... to here.
9494         (Depends-on): Improve conditions.
9495
9496 2011-05-06  Bruno Haible  <bruno@clisp.org>
9497
9498         _Exit: Move AC_LIBOBJ invocations to module description.
9499         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
9500         invocations from here...
9501         * modules/_Exit (configure.ac): ... to here.
9502
9503 2011-05-21  Bruno Haible  <bruno@clisp.org>
9504
9505         euidaccess: Respect rules for use of AC_LIBOBJ.
9506         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9507         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
9508         from here...
9509         * modules/euidaccess (configure.ac): ... to here.
9510
9511 2011-05-06  Bruno Haible  <bruno@clisp.org>
9512
9513         error: Move AC_LIBOBJ invocations to module description.
9514         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
9515         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
9516         invocations from here...
9517         * modules/error (configure.ac): ... to here.
9518
9519 2011-05-06  Bruno Haible  <bruno@clisp.org>
9520
9521         duplocale: Move AC_LIBOBJ invocations to module description.
9522         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
9523         gl_PREREQ_DUPLOCALE invocations from here...
9524         * modules/duplocale (configure.ac): ... to here.
9525
9526 2011-05-05  Bruno Haible  <bruno@clisp.org>
9527
9528         dirfd: Move AC_LIBOBJ invocations to module description.
9529         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
9530         gl_FUNC_DIRFD.
9531         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
9532         here...
9533         * modules/dirfd (configure.ac): ... to here.
9534         (Depends-on): Fix condition.
9535
9536 2011-05-05  Bruno Haible  <bruno@clisp.org>
9537
9538         chown: Respect rules for use of AC_LIBOBJ.
9539         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
9540         * modules/chown (configure.ac): ... to here.
9541
9542 2011-05-05  Bruno Haible  <bruno@clisp.org>
9543
9544         chdir-long: Move AC_LIBOBJ invocations to module description.
9545         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
9546         gl_PREREQ_CHDIR_LONG invocations from here...
9547         * modules/chdir-long (configure.ac): ... to here.
9548
9549 2011-05-05  Bruno Haible  <bruno@clisp.org>
9550
9551         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
9552         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
9553         from here...
9554         * modules/canonicalize-lgpl (configure.ac): ... to here.
9555
9556 2011-05-05  Bruno Haible  <bruno@clisp.org>
9557
9558         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
9559         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
9560         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
9561         REPLACE_CALLOC.
9562         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
9563         * modules/calloc-gnu (configure.ac): Likewise.
9564
9565 2011-05-05  Bruno Haible  <bruno@clisp.org>
9566
9567         btowc: Move AC_LIBOBJ invocations to module description.
9568         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
9569         invocations from here...
9570         * modules/btowc (configure.ac): ... to here.
9571
9572 2011-05-21  Bruno Haible  <bruno@clisp.org>
9573
9574         atexit: Move AC_LIBOBJ invocations to module description.
9575         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
9576         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
9577         here...
9578         * modules/atexit (configure.ac): ... to here.
9579
9580 2011-05-05  Bruno Haible  <bruno@clisp.org>
9581
9582         atoll: Move AC_LIBOBJ invocations to module description.
9583         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
9584         invocations from here...
9585         * modules/atoll (configure.ac): ... to here.
9586
9587 2011-05-05  Bruno Haible  <bruno@clisp.org>
9588
9589         argz: Move AC_LIBOBJ invocations to module description.
9590         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
9591         * modules/argz (configure.ac): ... to here.
9592
9593 2011-05-05  Bruno Haible  <bruno@clisp.org>
9594
9595         alphasort: Move AC_LIBOBJ invocations to module description.
9596         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
9597         gl_PREREQ_ALPHASORT invocations from here...
9598         * modules/alphasort (configure.ac): ... to here.
9599
9600 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
9601
9602         verify: new macro verify_expr; verify_true deprecated
9603         * NEWS: Mention this.
9604         * doc/verify.texi (Compile-time Assertions): Document this.
9605         * lib/verify.h (verify_true): Deprecate.
9606         (verify_expr): New macro.
9607         * tests/test-verify.c (function): Test verify_expr.
9608
9609 2011-06-14  Jim Meyering  <meyering@redhat.com>
9610
9611         init.sh: give more portable redirection-related advice in a comment
9612         * tests/init.sh (stderr_fileno_): Update the advice in comments.
9613         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
9614         for lots of discussion.  Stefano Lattarini suggested the solution
9615         of putting "9>&2" after the command.  Reported by Bruno Haible.
9616
9617 2011-06-13  Bruno Haible  <bruno@clisp.org>
9618
9619         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
9620         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
9621         'none'.
9622
9623 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
9624
9625         ftoastr: use strtof only if HAVE_STRTOF
9626         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
9627         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
9628         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
9629         * modules/ftoastr (configure.ac): Check for strtof.
9630
9631 2011-06-13  Bruno Haible  <bruno@clisp.org>
9632
9633         gnulib-tool: Addendum to 2011-06-08 commit.
9634         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
9635         and --witness-c-macro have been given, augment AM_CPPFLAGS.
9636
9637 2011-06-13  Bruno Haible  <bruno@clisp.org>
9638
9639         fseeko: Provide a non-inline replacement of fseek().
9640         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
9641         * modules/fseeko (Depends-on): Add fseek.
9642         * modules/fseek (License): Change to LGPLv2+.
9643
9644 2011-06-13  Bruno Haible  <bruno@clisp.org>
9645
9646         ftello: Provide a non-inline replacement of ftell().
9647         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
9648         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
9649         not have ftello() (such as on mingw).
9650         * modules/ftello (Depends-on): Add ftell.
9651         * modules/ftell (License): Change to LGPLv2+.
9652
9653 2011-05-07  Bruno Haible  <bruno@clisp.org>
9654
9655         ftell: Move AC_LIBOBJ invocations to module description.
9656         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
9657         * modules/ftell (configure.ac): ... to here.
9658
9659 2011-05-07  Bruno Haible  <bruno@clisp.org>
9660
9661         ftello: Respect rules for use of AC_LIBOBJ.
9662         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
9663         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
9664         here...
9665         * modules/ftello (configure.ac): ... to here.
9666
9667 2011-05-07  Bruno Haible  <bruno@clisp.org>
9668
9669         fseeko: Simplify.
9670         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
9671         (gl_FUNC_FSEEKO): Inline it here.
9672
9673 2011-05-07  Bruno Haible  <bruno@clisp.org>
9674
9675         fseek: Move AC_LIBOBJ invocations to module description.
9676         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
9677         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9678         * modules/fseek (configure.ac): ... to here.
9679
9680 2011-05-07  Bruno Haible  <bruno@clisp.org>
9681
9682         fseek: Respect rules for use of AC_LIBOBJ.
9683         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
9684         here...
9685         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
9686
9687 2011-05-07  Bruno Haible  <bruno@clisp.org>
9688
9689         fseeko: Respect rules for use of AC_LIBOBJ.
9690         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
9691         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
9692         here...
9693         * modules/fseeko (configure.ac): ... to here.
9694
9695 2011-06-13  Bruno Haible  <bruno@clisp.org>
9696
9697         gnulib-tool: Allow comments in the 'Depends-on' section.
9698         * doc/gnulib.texi (Module description): Mention comment syntax in the
9699         Depends-on section.
9700         * gnulib-tool (func_get_dependencies): Filter out comment lines.
9701
9702 2011-06-13  Bruno Haible  <bruno@clisp.org>
9703
9704         file-set.h: guard __attibute__ use, now that it's not always defined
9705         * lib/file-set.h (record_file): Use __attribute__ only with compiler
9706         versions that support it.  This fixes a coreutils build failure with
9707         the vendor cc on HP-UX 11.31.
9708
9709 2011-06-12  Bruno Haible  <bruno@clisp.org>
9710
9711         acl: Add support for HP-UX >= 11.11 JFS ACLs.
9712         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
9713         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
9714         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
9715         (acl, aclsort): New declarations.
9716         (aclv_nontrivial): New declaration.
9717         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
9718         (file_has_acl): Read also the second kind of HP-UX ACLs.
9719         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
9720         kind of HP-UX ACLs if the first kind fails.
9721         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
9722         second kind of HP-UX ACLs.
9723         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
9724         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
9725         agree.
9726         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9727         hpuxjfs.
9728         Handle hpuxjfs.
9729         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9730         hpuxjfs.
9731         Handle hpuxjfs.
9732         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9733         (func_test_same_acls): Use both lsacl and getacl.
9734         Handle hpuxjfs.
9735         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9736         (func_test_same_acls): Use both lsacl and getacl.
9737         Handle hpuxjfs.
9738
9739 2011-06-12  Bruno Haible  <bruno@clisp.org>
9740
9741         acl: Complete the 2010-08-10 fix.
9742         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
9743         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
9744         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
9745         explicitly.
9746         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
9747         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
9748
9749 2011-06-12  Bruno Haible  <bruno@clisp.org>
9750
9751         spawn-pipe tests: Comments.
9752         * tests/test-spawn-pipe-child.c (main): Update comment.
9753         Reported by James Youngman <jay@gnu.org>.
9754
9755 2011-06-11  James Youngman  <jay@gnu.org>
9756
9757         New module 'stat-size'.
9758         * modules/stat-size: New module.  Provides macros for accessing
9759         file size information in instances of struct stat.  Depends on the
9760         fileblocks module because it calls st_blocks.
9761         * lib/stat-size.h: New file, adapted from coreutils' system.h.
9762         * doc/gnulib.texi: Include stat-size.texi.
9763         * doc/stat-size.texi: Documentation for this module.
9764         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
9765         * m4/fileblocks.m4: Mention that stat-size depends on the call to
9766         AC_STRUCT_ST_BLOCKS.
9767
9768 2011-06-09  Bruno Haible  <bruno@clisp.org>
9769
9770         thread: Support pthreads-win32.
9771         * lib/glthread/thread.h (gl_thread_self): Define differently on
9772         pthreads-win32.
9773         (gl_null_thread): New declaration.
9774         (gl_thread_self_pointer): New macro.
9775         * lib/glthread/thread.c (gl_null_thread): New constant.
9776         * tests/test-lock.c: Use gl_thread_self_pointer instead of
9777         gl_thread_self.
9778         * tests/test-tls.c: Likewise.
9779         Suggested by Paul Eggert. Reported by Eric Blake.
9780
9781 2011-06-09  Bruno Haible  <bruno@clisp.org>
9782
9783         thread: Fix confusion between NULL and 0.
9784         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
9785         Reported by Paul Eggert.
9786
9787 2011-06-09  Bruno Haible  <bruno@clisp.org>
9788
9789         spawn-pipe tests: Avoid test failure on HP-UX 11.
9790         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
9791         is closed.
9792
9793 2011-06-09  Bruno Haible  <bruno@clisp.org>
9794
9795         acl tests: Fix compilation error on HP-UX 11.
9796         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
9797
9798 2011-06-09  Bruno Haible  <bruno@clisp.org>
9799
9800         rmdir: Avoid test failure on HP-UX 10.20.
9801         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
9802         EEXIST.
9803
9804 2011-06-08  Eric Blake  <eblake@redhat.com>
9805
9806         perror: fix test on mingw
9807         * modules/perror-tests (Depends-on): Add dup2.
9808
9809         strerror_r-posix: fix on MacOS
9810         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
9811         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
9812         logic bug.
9813         * lib/strerror_r.c (strerror_r): Fix the bug.
9814         * lib/strerror.c (strerror): Likewise.
9815         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9816         problem.
9817         * doc/posix-functions/strerror.texi (strerror): Likewise.
9818         * doc/posix-functions/perror.texi (perror): Likewise.
9819         * tests/test-strerror.c (main): Enhance test.
9820         * tests/test-strerror_r.c (main): Likewise.
9821
9822 2011-06-08  Bruno Haible  <bruno@clisp.org>
9823
9824         gnulib-tool: Better isolation between different gnulib-tool invocations.
9825         * gnulib-tool: New option --witness-c-macro.
9826         (witness_c_macro): New variable.
9827         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
9828         AM_CPPFLAGS define it as a C macro.
9829         (func_emit_tests_Makefile_am): Likewise.
9830         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
9831         read it from there.
9832         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
9833         m4_define, not AC_DEFUN.
9834         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
9835         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
9836         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
9837         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
9838         s|...|...|, to substitute the values of the GNULIB_* module indicator
9839         variables.
9840         * modules/dirent (Makefile.am): Likewise.
9841         * modules/fcntl-h (Makefile.am): Likewise.
9842         * modules/iconv-h (Makefile.am): Likewise.
9843         * modules/langinfo (Makefile.am): Likewise.
9844         * modules/locale (Makefile.am): Likewise.
9845         * modules/math (Makefile.am): Likewise.
9846         * modules/netdb (Makefile.am): Likewise.
9847         * modules/poll-h (Makefile.am): Likewise.
9848         * modules/pty (Makefile.am): Likewise.
9849         * modules/search (Makefile.am): Likewise.
9850         * modules/signal (Makefile.am): Likewise.
9851         * modules/spawn (Makefile.am): Likewise.
9852         * modules/stdio (Makefile.am): Likewise.
9853         * modules/stdlib (Makefile.am): Likewise.
9854         * modules/string (Makefile.am): Likewise.
9855         * modules/sys_ioctl (Makefile.am): Likewise.
9856         * modules/sys_select (Makefile.am): Likewise.
9857         * modules/sys_socket (Makefile.am): Likewise.
9858         * modules/sys_stat (Makefile.am): Likewise.
9859         * modules/sys_times (Makefile.am): Likewise.
9860         * modules/sys_utsname (Makefile.am): Likewise.
9861         * modules/sys_wait (Makefile.am): Likewise.
9862         * modules/termios (Makefile.am): Likewise.
9863         * modules/time (Makefile.am): Likewise.
9864         * modules/unistd (Makefile.am): Likewise.
9865         * modules/wchar (Makefile.am): Likewise.
9866
9867 2011-06-08  Eric Blake  <eblake@redhat.com>
9868
9869         strerror: simplify replacement
9870         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
9871         * modules/strerror (configure.ac): No prereqs needed here...
9872         * modules/strerror-override (configure.ac): ...but this needs it.
9873         (Files): Add file for needed prereq macro.
9874
9875 2011-06-08  Bruno Haible  <bruno@clisp.org>
9876
9877         strerror_r-posix: Tweaks.
9878         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
9879         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
9880         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
9881         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
9882         (gl_FUNC_STRERROR_R): ... to here.
9883         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
9884
9885 2011-06-07  Eric Blake  <eblake@redhat.com>
9886
9887         perror: document fixed bugs
9888         * doc/posix-functions/perror.texi (perror): Document recent
9889         patches.
9890
9891 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
9892
9893         stat-time: get_stat_birthtime failure is better-defined
9894         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
9895         return a timestamp whose tv_sec and tv_nsec values are both -1.
9896         Previously, the spec said only that the tv_nsec value was negative.
9897         This upward-compatible change simplifies GNU tar a bit.
9898
9899 2011-06-07  Eric Blake  <eblake@redhat.com>
9900
9901         strerror_r-posix: work around cygwin 1.7.9
9902         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
9903         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
9904         bug without replacing strerror_r.
9905         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
9906         strerror_r is buggy, but without requiring strerror_r compilation.
9907         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
9908
9909         test-perror: relax test to ignore cygwin bug
9910         * tests/test-perror2.c (main): Relax test on requiring detection
9911         of stream errors, and use unbuffered stream.
9912         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
9913         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
9914         * doc/posix-functions/fputc.texi (fputc): Likewise.
9915         * doc/posix-functions/fputs.texi (fputs): Likewise.
9916         * doc/posix-functions/fputws.texi (fputws): Likewise.
9917         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
9918         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
9919         * doc/posix-functions/getopt.texi (getopt): Likewise.
9920         * doc/posix-functions/perror.texi (perror): Likewise.
9921         * doc/posix-functions/printf.texi (printf): Likewise.
9922         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
9923         * doc/posix-functions/psignal.texi (psignal): Likewise.
9924         * doc/posix-functions/putc.texi (putc): Likewise.
9925         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
9926         Likewise.
9927         * doc/posix-functions/putchar.texi (putchar): Likewise.
9928         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
9929         Likewise.
9930         * doc/posix-functions/puts.texi (puts): Likewise.
9931         * doc/posix-functions/putwc.texi (putwc): Likewise.
9932         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
9933         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
9934         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9935         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
9936         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9937         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
9938         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
9939         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
9940
9941 2011-05-22  Bruno Haible  <bruno@clisp.org>
9942
9943         strerror: Move AC_LIBOBJ invocations to module description.
9944         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
9945         gl_PREREQ_STRERROR invocations from here...
9946         * modules/strerror (configure.ac): ... to here.
9947
9948 2011-05-21  Bruno Haible  <bruno@clisp.org>
9949
9950         perror: Use common idiom.
9951         * modules/perror (configure.ac): Reorder statements.
9952
9953 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9954
9955         tests: fix usage message in 'mktempd_'
9956         * tests/init.sh (mktempd_): In the usage message, use literal
9957         'mktempd_', not '$ME' (which is even undefined), as the name of
9958         the subroutine.
9959
9960 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9961
9962         tests init: new function 'fatal_', for hard errors
9963         Before this patch, the only way offered by tests/init.sh to
9964         properly signal a hard error was the `framework_failure_'
9965         function.  But the error message issued by that function,
9966         as its name would suggest, refers to a set-up failure in the
9967         testsuite, while hard errors can obviously also be due to
9968         other reasons.  The best way to fix this inconsistency is to
9969         introduce a new function with a more general error message.
9970         * tests/init.sh (fatal_): New function.
9971
9972 2011-06-06  Eric Blake  <eblake@redhat.com>
9973
9974         canonicalize-lgpl: use common idiom
9975         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
9976         over newer POSIX -Rf.
9977         Reported by Bruno Haible.
9978
9979         canonicalize-lgpl: work around AIX realpath bug
9980         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
9981         * doc/posix-functions/realpath.texi (realpath): Document it.
9982         Reported by Bruno Haible.
9983
9984         strerror: work around FreeBSD bug
9985         * lib/strerror.c (strerror): Special case 0.
9986         Reported by Bruno Haible.
9987
9988         strerror-override: avoid bloating errno module
9989         * modules/errno (Files, configure.ac): Move replacement strings...
9990         * modules/strerror-override: ...to new module.
9991         * modules/strerror (Depends-on): Add strerror-override.
9992         * modules/strerror_r-posix (Depends-on): Likewise.
9993         * MODULES.html.sh: Document new module.
9994         Reported by Bruno Haible.
9995
9996 2011-06-06  Bruno Haible  <bruno@clisp.org>
9997
9998         spawn-pipe tests: Rename program.
9999         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
10000         * tests/test-spawn-pipe-child.c: Update comment.
10001         * tests/test-spawn-pipe.sh: Update.
10002         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
10003
10004         spawn-pipe tests: Link the child program only against libc.
10005         * tests/test-spawn-pipe-child.c: New file, extracted from
10006         tests/test-spawn-pipe.c.
10007         (main): Expect only one argument.
10008         (is_open): New function, copied from tests/test-pipe.c.
10009         * tests/test-spawn-pipe.c: Don't include <errno.h>.
10010         (child_main): Remove function.
10011         (test_pipe): Pass only one argument to the child program.
10012         (main): Remove child process code. Expect the child program's name as
10013         first argument.
10014         * tests/test-spawn-pipe.sh: Pass the child program's name as first
10015         argument.
10016         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
10017         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
10018         test-spawn-pipe-child against no libraries.
10019
10020 2011-06-06  Bruno Haible  <bruno@clisp.org>
10021
10022         careadlinkat: Avoid mismatch between ssize_t and int.
10023         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
10024         * lib/careadlinkat.c (careadlinkatcwd): Define always.
10025
10026 2011-06-06  Jim Meyering  <meyering@redhat.com>
10027
10028         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
10029         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
10030         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
10031
10032 2011-06-05  Bruno Haible  <bruno@clisp.org>
10033
10034         ansi-c++-opt: Interoperability with libtool.
10035         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
10036         set the variable to "no", not to ":".
10037         * NEWS: Mention the change.
10038
10039 2011-06-05  Bruno Haible  <bruno@clisp.org>
10040
10041         acl: Fix test failure on AIX 7.
10042         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
10043         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
10044
10045 2011-06-05  Bruno Haible  <bruno@clisp.org>
10046
10047         pipe-filter-ii: Fix test failure on AIX and IRIX.
10048         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
10049         with EAGAIN, retry with a smaller buffer size.
10050
10051 2011-06-05  Bruno Haible  <bruno@clisp.org>
10052
10053         localename: Fix link dependencies.
10054         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
10055         * modules/localename-tests (Makefile.am): Link test-localename with
10056         $(LIBTHREAD).
10057
10058 2011-06-05  Bruno Haible  <bruno@clisp.org>
10059
10060         error: Avoid gcc warning.
10061         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
10062
10063 2011-06-05  Bruno Haible  <bruno@clisp.org>
10064
10065         unsetenv: Avoid gcc warning.
10066         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
10067
10068 2011-06-05  Bruno Haible  <bruno@clisp.org>
10069
10070         setenv: Avoid gcc warning.
10071         * lib/setenv.c (setenv): Provide declaration if system lacks it.
10072
10073 2011-06-05  Bruno Haible  <bruno@clisp.org>
10074
10075         sys_select: Ensure memset is declared also on AIX 7.
10076         * lib/sys_select.in.h: Include <string.h> also on AIX.
10077         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
10078         self-contained also on AIX 7.1.
10079
10080 2011-06-04  Jim Meyering  <meyering@redhat.com>
10081
10082         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
10083         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
10084         function name, "error".
10085         (_gl_translatable_diag_func_re): New configurable variable.
10086
10087 2011-06-04  Bruno Haible  <bruno@clisp.org>
10088
10089         getopt: Avoid gcc warning.
10090         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
10091
10092 2011-06-04  Bruno Haible  <bruno@clisp.org>
10093
10094         strerror_r: Fix comments.
10095         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
10096         commit.
10097
10098 2011-06-04  Bruno Haible  <bruno@clisp.org>
10099
10100         perror: Fix compilation error.
10101         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
10102         Undefine fprintf, not sprintf.
10103         * modules/perror (Depends-on): Remove intprops, verify.
10104
10105 2011-06-04  Bruno Haible  <bruno@clisp.org>
10106
10107         setlocale: Enable replacement on Cygwin 1.5.
10108         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
10109         Cygwin 1.5.x.
10110         * doc/posix-functions/setlocale.texi: Mention that the problem with the
10111         LC_CTYPE category also exists on Cygwin 1.5.x.
10112
10113 2011-06-04  Bruno Haible  <bruno@clisp.org>
10114
10115         strerror-override: Don't disable symbol renamings.
10116         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
10117         * lib/strerror-override.c: Include config.h.
10118         (strerror_override): Don't undefine.
10119
10120 2011-06-03  Bruno Haible  <bruno@clisp.org>
10121
10122         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
10123         * lib/localename.h: Update copyright header.
10124         * lib/localename.c: Likewise.
10125         * lib/relocatable.h: Likewise.
10126         * lib/relocatable.c: Likewise.
10127
10128 2011-06-02  Bruno Haible  <bruno@clisp.org>
10129
10130         doc: Fix a module name.
10131         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
10132
10133 2011-06-02  Bruno Haible  <bruno@clisp.org>
10134
10135         pipe2: Remove dependency on 'nonblocking' module.
10136         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
10137         O_NONBLOCK is defined by gnulib.
10138         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
10139         is zero.
10140         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
10141         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
10142         defined by gnulib.
10143         (get_nonblocking_flag): New function.
10144         (main): Test O_NONBLOCK flag only if it is nonzero.
10145         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
10146
10147 2011-06-03  Jim Meyering  <meyering@redhat.com>
10148
10149         maint: three new prohibit-header-without-use rules
10150         Prohibit use of cloexec.h, posixver.h, same.h without use.
10151         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
10152         (sc_prohibit_posixver_without_use): Likewise.
10153         (sc_prohibit_same_without_use): Likewise.
10154
10155 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
10156
10157         allocator: 'die' routine is now given requested size
10158         * lib/allocator.h (struct allocator.die): New size arg.
10159         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
10160         If the actual problem is an ssize_t limitation, not a size_t or
10161         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
10162
10163 2011-06-01  Eric Blake  <eblake@redhat.com>
10164
10165         strerror: drop strerror_r dependency
10166         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
10167         * lib/strerror-override.c (strerror_override): ...to new file.
10168         * lib/strerror-override.h: Add prototype.
10169         * lib/strerror-impl.h: Delete.
10170         * lib/strerror.c (strerror): New implementation.
10171         * modules/errno (Files): Add new files.
10172         (configure.ac): Compile new file as appropriate.
10173         * modules/strerror (Files): Drop unused file.
10174         (Depends-on): Drop strerror_r-posix.
10175         * MODULES.html.sh: Document strerror_r-posix.
10176         Requested by Sam Steingold.
10177
10178         perror: call strerror_r directly
10179         * modules/perror (Files): Drop strerror-impl.h.
10180         * lib/perror.c (perror): Use our own stack buffer, rather than
10181         calling a wrapper that uses static storage.
10182         * doc/posix-functions/perror.texi (perror): Document a limitation
10183         of our replacement.
10184
10185         strerror_r: fix includes for FreeBSD
10186         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
10187         since we use abort on some platforms.
10188         Reported by Matthias Bolte.
10189
10190 2011-05-31  Bruno Haible  <bruno@clisp.org>
10191
10192         Fix link errors in tests: openat-die uses gettext-h.
10193         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
10194         against $(LIBINTL).
10195         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
10196         against $(LIBINTL).
10197         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
10198         $(LIBINTL).
10199         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
10200         against $(LIBINTL).
10201         * modules/linkat-tests (Makefile.am): Link test-linkat against
10202         $(LIBINTL).
10203         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
10204         $(LIBINTL).
10205         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
10206         against $(LIBINTL).
10207         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
10208         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
10209         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
10210         $(LIBINTL).
10211         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
10212         $(LIBINTL).
10213         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
10214         $(LIBINTL).
10215         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10216
10217 2011-05-31  Bruno Haible  <bruno@clisp.org>
10218
10219         Fix link errors in tests: wait-process uses gettext-h.
10220         * modules/nonblocking-pipe-tests (Makefile.am): Set
10221         test_nonblocking_pipe_main_LDADD.
10222         * modules/nonblocking-socket-tests (Makefile.am): Link
10223         test-nonblocking-socket-main against $(LIBINTL).
10224         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10225
10226 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
10227
10228         assert-h: work around 'verify' incompatibility
10229         * lib/verify.h: Use @...@ directives, not ifdef.
10230         * modules/assert-h (assert.h): Implement the directives.
10231         (assert.h): Substitute the symbol-prefix more consistently.
10232
10233 2011-05-29  Jim Meyering  <meyering@redhat.com>
10234
10235         trim: remove three superfluous assignments
10236         * lib/trim.c (trim2): Remove three superfluous assignments
10237         and correct brace positioning.
10238
10239 2011-05-29  Bruno Haible  <bruno@clisp.org>
10240
10241         wctype-h: Avoid namespace pollution on Solaris 2.6.
10242         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
10243         identifiers.
10244         * doc/posix-headers/wctype.texi: Mention the problem.
10245         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10246
10247 2011-05-28  Jim Meyering  <meyering@redhat.com>
10248
10249         parse-datetime.y: accommodate -Wstrict-overflow
10250         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
10251         placate -Wstrict-overflow.
10252
10253         trim: avoid a warning from -O2 -Wstrict-overflow
10254         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
10255
10256 2011-05-29  Bruno Haible  <bruno@clisp.org>
10257
10258         gnulib-tool: Fix bug in yesterday's commit.
10259         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
10260         twice.
10261
10262 2011-05-29  Bruno Haible  <bruno@clisp.org>
10263
10264         Allow multiple gnulib generated include files to be combined.
10265         * gnulib-tool (func_compute_include_guard_prefix): New function.
10266         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
10267         ${gl_include_guard_prefix} references.
10268         (func_import, func_create_testdir): Invoke
10269         func_compute_include_guard_prefix.
10270         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
10271         * lib/ctype.in.h: Likewise.
10272         * lib/dirent.in.h: Likewise.
10273         * lib/errno.in.h: Likewise.
10274         * lib/fcntl.in.h: Likewise.
10275         * lib/float.in.h: Likewise.
10276         * lib/getopt.in.h: Likewise.
10277         * lib/iconv.in.h: Likewise.
10278         * lib/langinfo.in.h: Likewise.
10279         * lib/locale.in.h: Likewise.
10280         * lib/math.in.h: Likewise.
10281         * lib/netdb.in.h: Likewise.
10282         * lib/netinet_in.in.h: Likewise.
10283         * lib/poll.in.h: Likewise.
10284         * lib/pthread.in.h: Likewise.
10285         * lib/pty.in.h: Likewise.
10286         * lib/sched.in.h: Likewise.
10287         * lib/se-selinux.in.h: Likewise.
10288         * lib/search.in.h: Likewise.
10289         * lib/signal.in.h: Likewise.
10290         * lib/spawn.in.h: Likewise.
10291         * lib/stdarg.in.h: Likewise.
10292         * lib/stddef.in.h: Likewise.
10293         * lib/stdint.in.h: Likewise.
10294         * lib/stdio.in.h: Likewise.
10295         * lib/stdlib.in.h: Likewise.
10296         * lib/string.in.h: Likewise.
10297         * lib/strings.in.h: Likewise.
10298         * lib/sys_file.in.h: Likewise.
10299         * lib/sys_ioctl.in.h: Likewise.
10300         * lib/sys_select.in.h: Likewise.
10301         * lib/sys_socket.in.h: Likewise.
10302         * lib/sys_stat.in.h: Likewise.
10303         * lib/sys_time.in.h: Likewise.
10304         * lib/sys_times.in.h: Likewise.
10305         * lib/sys_uio.in.h: Likewise.
10306         * lib/sys_utsname.in.h: Likewise.
10307         * lib/sys_wait.in.h: Likewise.
10308         * lib/sysexits.in.h: Likewise.
10309         * lib/termios.in.h: Likewise.
10310         * lib/time.in.h: Likewise.
10311         * lib/unistd.in.h: Likewise.
10312         * lib/wchar.in.h: Likewise.
10313         * lib/wctype.in.h: Likewise.
10314         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
10315         * modules/ctype (Makefile.am): Likewise.
10316         * modules/dirent (Makefile.am): Likewise.
10317         * modules/errno (Makefile.am): Likewise.
10318         * modules/fcntl-h (Makefile.am): Likewise.
10319         * modules/float (Makefile.am): Likewise.
10320         * modules/getopt-posix (Makefile.am): Likewise.
10321         * modules/iconv-h (Makefile.am): Likewise.
10322         * modules/langinfo (Makefile.am): Likewise.
10323         * modules/locale (Makefile.am): Likewise.
10324         * modules/math (Makefile.am): Likewise.
10325         * modules/netdb (Makefile.am): Likewise.
10326         * modules/netinet_in (Makefile.am): Likewise.
10327         * modules/poll-h (Makefile.am): Likewise.
10328         * modules/pthread (Makefile.am): Likewise.
10329         * modules/pty (Makefile.am): Likewise.
10330         * modules/sched (Makefile.am): Likewise.
10331         * modules/search (Makefile.am): Likewise.
10332         * modules/selinux-h (Makefile.am): Likewise.
10333         * modules/signal (Makefile.am): Likewise.
10334         * modules/spawn (Makefile.am): Likewise.
10335         * modules/stdarg (Makefile.am): Likewise.
10336         * modules/stddef (Makefile.am): Likewise.
10337         * modules/stdint (Makefile.am): Likewise.
10338         * modules/stdio (Makefile.am): Likewise.
10339         * modules/stdlib (Makefile.am): Likewise.
10340         * modules/string (Makefile.am): Likewise.
10341         * modules/strings (Makefile.am): Likewise.
10342         * modules/sys_file (Makefile.am): Likewise.
10343         * modules/sys_ioctl (Makefile.am): Likewise.
10344         * modules/sys_select (Makefile.am): Likewise.
10345         * modules/sys_socket (Makefile.am): Likewise.
10346         * modules/sys_stat (Makefile.am): Likewise.
10347         * modules/sys_time (Makefile.am): Likewise.
10348         * modules/sys_times (Makefile.am): Likewise.
10349         * modules/sys_uio (Makefile.am): Likewise.
10350         * modules/sys_utsname (Makefile.am): Likewise.
10351         * modules/sys_wait (Makefile.am): Likewise.
10352         * modules/sysexits (Makefile.am): Likewise.
10353         * modules/termios (Makefile.am): Likewise.
10354         * modules/time (Makefile.am): Likewise.
10355         * modules/unistd (Makefile.am): Likewise.
10356         * modules/wchar (Makefile.am): Likewise.
10357         * modules/wctype-h (Makefile.am): Likewise.
10358         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
10359
10360 2011-05-29  Bruno Haible  <bruno@clisp.org>
10361
10362         assert-h: Allow multiple gnulib generated replacements to coexist.
10363         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
10364
10365 2011-05-29  Bruno Haible  <bruno@clisp.org>
10366
10367         argp: Allow coexistence with strerror_r-posix module.
10368         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
10369         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
10370         by gnulib's <string.h> replacement), assume it has the POSIX signature,
10371         not the glibc signature.
10372
10373 2011-05-28  Bruno Haible  <bruno@clisp.org>
10374
10375         gnulib-tool: Alternative structure of testdirs, similar to --import.
10376         * gnulib-tool: New option --single-configure.
10377         (func_usage): Document it.
10378         (single_configure): New variable.
10379         (func_modules_transitive_closure_separately,
10380         func_modules_transitive_closure_separately,
10381         func_determine_use_libtests, func_modules_add_dummy_separately,
10382         func_modules_to_filelist_separately): New functions, extracted from
10383         func_import.
10384         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
10385         (func_import): Use the new functions.
10386         (func_create_testdir): Set final_modules. Handle $single_configure =
10387         true case.
10388
10389 2011-05-28  Bruno Haible  <bruno@clisp.org>
10390
10391         getloadavg: Remove an unreliable safety check.
10392         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
10393         getloadavg.c is in place.
10394         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
10395         Reported by Sam Steingold <sds@gnu.org>.
10396
10397 2011-05-28  Bruno Haible  <bruno@clisp.org>
10398
10399         doc: Cleanup yet another file produced by texinfo.tex.
10400         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
10401
10402 2011-05-28  Bruno Haible  <bruno@clisp.org>
10403
10404         Finish the conditional dependencies mechanism.
10405         * gnulib-tool: New option --no-conditional-dependencies.
10406         (func_usage): Document it. Don't mark --conditional-dependencies as
10407         experimental.
10408         (cond_dependencies): The possible values can now be true, false, empty.
10409         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
10410         (func_import): Store setting in gnulib-cache.m4 and read it from there.
10411         * doc/gnulib-tool.texi (Conditional dependencies): New section.
10412
10413 2011-05-28  Bruno Haible  <bruno@clisp.org>
10414
10415         doc: Use a recent texinfo.tex.
10416         * doc/Makefile (tex_opts): New variable.
10417         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
10418
10419 2011-05-28  Jim Meyering  <meyering@redhat.com>
10420
10421         intprops.h: adjust comment to match code change
10422         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
10423         only once, it *may* have side effects.  Also fix an unrelated typo.
10424         (_GL_INT_SIGNED): Likewise.
10425
10426 2011-05-26  Simon Josefsson  <simon@josefsson.org>
10427
10428         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
10429
10430 2011-05-26  Bruno Haible  <bruno@clisp.org>
10431
10432         mbsrchr: Avoid collision with system function on Interix.
10433         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
10434         Reported by Markus Duft <mduft@gentoo.org>.
10435
10436 2011-05-15  James Youngman  <jay@gnu.org>
10437
10438         getopt: for ambiguous options, enumerate the possibilities.
10439         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
10440         the ambiguous options when an ambiguous prefix is given. This was
10441         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
10442         glibc change was
10443         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
10444
10445 2011-05-25  Eric Blake  <eblake@redhat.com>
10446
10447         getcwd: work around mingw bug
10448         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
10449         * doc/posix-functions/getcwd.texi (getcwd): Document it.
10450         Reported by Matthias Bolte.
10451
10452 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
10453
10454         test-intprops: disable -Wtype-limits diagnostics
10455         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
10456         diagnostics.  Otherwise, the integer overflow macros generate many
10457         diagnostics.  Reported by Jim Meyering in
10458         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10459
10460         intprops: shorten, to pacify gcc -Woverlength-strings
10461         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
10462         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
10463         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
10464         likely to run afoul of C compiler limits for string constant lengths.
10465         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10466
10467 2011-05-24  Eric Blake  <eblake@redhat.com>
10468
10469         docs: document recently fixed glibc printf bug
10470         * doc/posix-functions/fprintf.texi (fprintf): Document it.
10471         * doc/posix-functions/printf.texi (printf): Likewise.
10472         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10473         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10474
10475         closein-tests: convert to init.sh
10476         * modules/closein-tests (Files): Add init.sh
10477         * tests/test-closein.sh Use it.
10478
10479         yesno-tests: convert to init.sh
10480         * modules/yesno-tests (Files): Add init.sh.
10481         * tests/test-yesno.sh: Use it.
10482
10483         atexit-tests: ensure reliable exit status
10484         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
10485         Reported by Bruno Haible.
10486
10487 2011-05-24  Bruno Haible  <bruno@clisp.org>
10488
10489         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
10490         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
10491         gl_PREREQ_STRERROR_R invocations from here...
10492         * modules/strerror_r-posix (configure.ac): ... to here.
10493
10494 2011-05-24  Eric Blake  <eblake@redhat.com>
10495
10496         strerror_r: fix missing header
10497         * lib/strerror_r.c: Avoid compiler warning about snprintf.
10498
10499         strerror_r: fix AIX test failures
10500         * lib/strerror_r.c (strerror_r): Convert silent truncation to
10501         ERANGE failure.
10502
10503         strerror_r: fix Solaris test failures
10504         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
10505         failures.
10506         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10507
10508         strerror_r: enforce POSIX recommendations
10509         * lib/strerror_r.c (safe_copy): New helper method.
10510         (strerror_r): Guarantee a non-empty string.
10511         * tests/test-strerror_r.c (main): Enhance tests to incorporate
10512         recent POSIX rulings and to match our strerror guarantees.
10513         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10514
10515 2011-05-24  Jim Meyering  <meyering@redhat.com>
10516
10517         test-perror2.c: avoid warning about unused variable
10518         * tests/test-perror2.c (main): Remove declaration of unused "fp".
10519
10520 2011-05-24  Eric Blake  <eblake@redhat.com>
10521
10522         perror: avoid spurious test failure on HP-UX
10523         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
10524
10525         tests: fix logic bug in init.sh
10526         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
10527         shell.
10528
10529 2011-05-24  Jim Meyering  <meyering@redhat.com>
10530
10531         utimensat: do not reference an out-of-scope buffer
10532         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
10533         declared in an inner scope, yet "times" would be dereferenced outside
10534         the scope in which "ts" was valid.
10535         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
10536         of ts[2] "out/up", so that the use of aliased "times" (via
10537         "times = ts;") does not end up referencing an out-of-scope "ts"
10538
10539         opendir-safer.c: don't clobber errno; don't close negative FD
10540         * lib/opendir-safer.c (opendir_safer):
10541         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
10542         file descriptor, and more importantly, don't clobber the
10543         offending errno value with EINVAL.  Before, upon failure
10544         of dup_safer, we would pass the negative file descriptor to
10545         fdopendir, which would clobber errno.
10546
10547 2011-05-23  Bruno Haible  <bruno@clisp.org>
10548
10549         idcache: Fix module description.
10550         * modules/idcache (Include): Set to "idcache.h".
10551
10552 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
10553
10554         gnulib-tool: fix portability problem with MacOS sed
10555         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
10556         before the "}".  Problem reported by Leo in
10557         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
10558         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
10559         sed_extract_condition1, sed_extract_condition2.
10560
10561 2011-05-23  Bruno Haible  <bruno@clisp.org>
10562
10563         hash: Simplify autoconf macro.
10564         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
10565
10566 2011-05-23  Bruno Haible  <bruno@clisp.org>
10567
10568         getugroups: Fix module description.
10569         * modules/getugroups (Include): Set to "getugroups.h".
10570
10571 2011-05-23  Bruno Haible  <bruno@clisp.org>
10572
10573         linkat: Simplify autoconf macro.
10574         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
10575
10576 2011-05-23  Bruno Haible  <bruno@clisp.org>
10577             Eric Blake  <eblake@redhat.com>
10578
10579         linkat, renameat: Update dependencies.
10580         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
10581         * modules/linkat (Depends-on): Likewise. Remove also readlink,
10582         symlinkat.
10583
10584 2011-05-23  Jim Meyering  <meyering@redhat.com>
10585
10586         maint.mk: more tight_scope improvements
10587         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
10588         (_gl_TS_headers): Define only in if-0'd block.
10589         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
10590         sometimes we must *not* use it.  Adjust uses accordingly.
10591         (sc_tight_scope): Use much simpler grep-based test to determine
10592         whether we skip this rule.
10593
10594         maint.mk: generalize/improve the tight-scope rule
10595         * top/maint.mk: Emit a warning when the test is skipped.
10596         (_gl_TS_dir): Add $(srcdir)/ prefix.
10597         (_gl_TS_function_match): Simplify, rather than trying
10598         to enumerate common types.  Otherwise, it would fail to match an
10599         "extern unsigned char const *" declaration in idutils.
10600         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
10601         a way to support use of that type of macro.
10602         (_gl_TS_var_match): Simplify regexp.
10603         (_gl_TS_obj_files): New configurable variable.
10604         (_gl_TS_headers): Likewise.
10605
10606 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
10607
10608         verify: fix bug when gnulib <assert.h> is also included
10609         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
10610         is defined, not if _GL_STATIC_ASSERT_H is not defined.
10611         Perhaps there's a better way, but this fixes the immediate problem.
10612         Problem reported by Bruno Haible in
10613         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
10614
10615 2011-05-22  Bruno Haible  <bruno@clisp.org>
10616
10617         xgetcwd: Simplify autoconf macro.
10618         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
10619
10620 2011-05-22  Bruno Haible  <bruno@clisp.org>
10621
10622         New module 'mktime-internal'.
10623         * modules/mktime-internal: New file.
10624         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
10625         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
10626         mktime_internal as a C macro if libc has __mktime_internal.
10627         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
10628         conditions.
10629         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
10630
10631 2011-05-22  Bruno Haible  <bruno@clisp.org>
10632
10633         timegm: Correct mktime replacement statements.
10634         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
10635         defining mktime as a C macro. This completes a 2009-07-28 commit.
10636
10637 2011-05-22  Bruno Haible  <bruno@clisp.org>
10638
10639         timegm: Simplify autoconf macro.
10640         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
10641
10642 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
10643
10644         clock-time: change to LGPLv2+.
10645         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
10646         BSD-like but we have no mark for that; this is good enough for now.
10647
10648 2011-05-21  Bruno Haible  <bruno@clisp.org>
10649
10650         strerror_r: Fix comments.
10651         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
10652
10653 2011-05-21  Bruno Haible  <bruno@clisp.org>
10654
10655         relocatable-prog-wrapper: Fix possible link error.
10656         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
10657         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
10658         (gl_FUNC_SETENV): ... to here.
10659         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
10660         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
10661
10662 2011-05-21  Bruno Haible  <bruno@clisp.org>
10663
10664         relocatable-prog-wrapper: Assume strerror() exists.
10665         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
10666         m4/strerror.m4.
10667         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
10668         * lib/relocwrapper.c: Remove mention of strerror module.
10669         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
10670         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
10671         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
10672         C macro.
10673
10674 2011-05-21  Bruno Haible  <bruno@clisp.org>
10675
10676         select: Simplify replacement idiom.
10677         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
10678         Win32 platforms.
10679         * lib/sys_select.in.h (select): Simplify accordingly.
10680         * modules/select (Depends-on): Likewise.
10681
10682 2011-05-21  Bruno Haible  <bruno@clisp.org>
10683
10684         mkdir-p: Simplify autoconf macro.
10685         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
10686         gl_FUNC_LCHOWN.
10687
10688 2011-05-21  Eric Blake  <eblake@redhat.com>
10689
10690         strerror_r: avoid clobbering strerror on cygwin
10691         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
10692         fall back instead to sys_errlist.
10693         * modules/strerror (configure.ac): Add witness.
10694         * tests/test-strerror_r.c (main): Enhance test.
10695         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10696         * tests/test-perror2.c (main): Free memory before exit.
10697
10698 2011-05-21  Bruno Haible  <bruno@clisp.org>
10699
10700         mkdtemp: Use gnulib naming conventions.
10701         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
10702         * modules/mkdtemp (configure.ac): Update.
10703
10704 2011-05-20  Eric Blake  <eblake@redhat.com>
10705
10706         strerror_r: avoid corrupting errno on Solaris
10707         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
10708         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10709
10710         strerror_r: avoid compiler warning
10711         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
10712
10713         strerror_r: simplify AIX code
10714         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
10715
10716         test-perror: avoid spurious failure on FreeBSD
10717         * modules/perror-tests (Depends-on): Add strerror, now that
10718         strerror_r no longer pulls it in.
10719
10720 2011-05-20  Bruno Haible  <bruno@clisp.org>
10721
10722         strerror_r-posix: Remove unused dependencies.
10723         * modules/strerror_r-posix (Depends-on): Remove strerror.
10724         Reported by Eric Blake.
10725
10726 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10727
10728         intprops: remove assumption about A|B representation
10729         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
10730         is a valid integer if both A and B are.  Although this is true for
10731         all known practical hosts, the C standard doesn't guarantee it,
10732         and the code need not assume it.  Also, this change may work around
10733         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
10734         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
10735
10736 2011-05-20  Eric Blake  <eblake@redhat.com>
10737
10738         perror: work around FreeBSD bug
10739         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
10740         is broken.  Move AC_LIBOBJ...
10741         * modules/perror (configure.ac): Here.
10742         * doc/posix-functions/perror.texi (perror): Document this.
10743         * tests/test-perror2.c (main): Enhance test.
10744
10745         test-perror: check for strerror interactions
10746         * tests/macros.h (STREQ): Add macro.
10747         * modules/perror-tests (Files): Add second test.
10748         * tests/test-perror2.c (main): New file.
10749         * doc/posix-functions/perror.texi (perror): Document glibc bug.
10750
10751         test-perror: rewrite to use init script
10752         * modules/perror-tests (Files): Add init.sh.
10753         * tests/test-perror.sh: Use temporary directory.
10754
10755 2011-05-20  Jim Meyering  <meyering@redhat.com>
10756
10757         maint: replace misused "a" with "an"
10758         * doc/intprops.texi: "a integer"
10759         * doc/regex.texi: "a explanation"
10760         * lib/alignof.h: "a object"
10761         * lib/argmatch.h: "a explanation"
10762         * lib/argp-help.c: "a option" and "a OPTION_DOC"
10763         * lib/stdint.in.h: "a integer"
10764         * lib/userspec.c: "a owner"
10765         * doc/gnulib.texi: Fix "a idea", and reword.
10766
10767 2011-05-19  Jim Meyering  <meyering@redhat.com>
10768
10769         maint: correct misuse of "a" and "an"
10770         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
10771         * lib/argp-help.c: "an docum...": s/an/a/
10772         * lib/argp-parse.c: "An vector": s/An/A/
10773         * lib/execute.c: "an native": s/an/a/
10774         * lib/spawn-pipe.c: Likewise.
10775         * lib/gc.h: "an Gc_rc": s/an/a/
10776         * lib/unigbrk.in.h: "an grapheme": s/an/a/
10777         * lib/fts.c: "an stat.st_dev": s/an/a/
10778
10779 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10780
10781         intprops-tests: work around HP-UX 11.23 cc bug with constants
10782         * tests/test-intprops.c (VERIFY): New macro.
10783         (main): Use it, instead of verify, to work around the compiler bug; see
10784         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10785
10786         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
10787         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
10788         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
10789         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
10790         (_GL_REMAINDER_OVERFLOW): Use it.
10791
10792         intprops-tests: revert unsigned part of previous change
10793         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
10794         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
10795         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
10796         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
10797
10798 2011-05-19  Bruno Haible  <bruno@clisp.org>
10799
10800         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
10801         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
10802         strerror_r() returned without filling the buffer.
10803         Reported by Eric Blake.
10804
10805 2011-05-19  Eric Blake  <eblake@redhat.com>
10806
10807         strerror_r: guarantee unchanged errno
10808         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
10809         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
10810         failure.
10811         * tests/test-strerror_r.c (main): Enhance test.
10812
10813 2011-05-19  Bruno Haible  <bruno@clisp.org>
10814
10815         strerror_r: Reorder #if blocks.
10816         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
10817         for consistency with the previous commit.
10818
10819 2011-05-19  Bruno Haible  <bruno@clisp.org>
10820
10821         perror: Avoid clobbering the strerror buffer when possible.
10822         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
10823         * lib/strerror.c: Include it.
10824         * modules/strerror (Files): Add lib/strerror-impl.h.
10825         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
10826         (my_strerror): New function, defined through lib/strerror-impl.h.
10827         (perror): Use it instead of strerror.
10828         * modules/perror (Files): Add lib/strerror-impl.h.
10829         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
10830
10831 2011-05-19  Eric Blake  <eblake@redhat.com>
10832
10833         strerror_r: fix on newer cygwin
10834         * lib/strerror_r.c (strerror_r): Cygwin now has
10835         __xpg_strerror_r, use it.
10836
10837 2011-05-19  Bruno Haible  <bruno@clisp.org>
10838
10839         strerror_r: Avoid clobbering the strerror buffer when possible.
10840         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
10841         (sys_nerr, sys_errlist): New declarations.
10842         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
10843         HP-UX, native Win32, IRIX, and 32-bit Solaris.
10844         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
10845
10846 2011-05-19  Bruno Haible  <bruno@clisp.org>
10847
10848         strerror_r: Fix test failure on mingw.
10849         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
10850         EXTEND_STRERROR_R.
10851         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
10852         macros from errno.in.h instead.
10853
10854 2011-05-19  Eric Blake  <eblake@redhat.com>
10855
10856         strerror: relax test for Solaris
10857         * tests/test-strerror.c (main): Permit Solaris behavior.
10858         * tests/test-strerror_r.c (main): Likewise.
10859
10860         strerror: enforce POSIX ruling on strerror(0)
10861         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
10862         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10863         * lib/strerror_r.c (rpl_strerror_r): Work around it.
10864         * doc/posix-functions/strerror.texi (strerror): Document it.
10865         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
10866         * tests/test-strerror.c (main): Strengthen test.
10867         * tests/test-strerror_r.c (main): Likewise.
10868
10869 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10870
10871         intprop-tests: port to older and more-pedantic compilers
10872         * modules/intprops-tests (Files): Add tests/macros.h.
10873         * tests/test-intprops.c: Include macros.h.
10874         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
10875         it's no longer documented to expand to an integer constant expression.
10876         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
10877         argument is floating point, as it's no longer documented to expand
10878         to an integer constant expression in that case.
10879         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
10880         compiler bugs reported by Bruno Haible.  See
10881         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10882         (U0, U1): New constants, to work around the same bugs.  Also,
10883         in tests, use e.g., "(unsigned int) 39" rather than "39u".
10884
10885         intprops: work around C compiler bugs
10886         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
10887         bug in Sun C 5.11 2010/08/13 and other compilers; see
10888         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10889
10890         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
10891         * doc/intprops.texi (Integer Type Determination): Fix
10892         documentation for TYPE_IS_INTEGER: it returns an constant
10893         expression, not an integer constant expression.  Fix doc for
10894         TYPE_SIGNED: it returns an integer constant expression only if its
10895         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
10896         hardly worth documented that way....)
10897
10898 2011-05-18  Bruno Haible  <bruno@clisp.org>
10899
10900         strerror_r: Avoid clobbering the strerror buffer when possible.
10901         * lib/strerror_r.c (strerror_r): Merge the three implementations.
10902         Handle gnulib defined errno values here. When strerror() returns NULL
10903         or an empty string, return EINVAL.
10904         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
10905         gnulib defined errno values here.
10906         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
10907
10908 2011-05-18  Eric Blake  <eblake@redhat.com>
10909
10910         fnmatch: avoid compiler warning
10911         * lib/fnmatch_loop.c (FCT): Use correct type.
10912         Reported by Matthias Bolte.
10913
10914 2011-05-13  Jim Meyering  <meyering@redhat.com>
10915
10916         maint.mk: three new prohibit_<HDR>_without_use rules
10917         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
10918         (sc_prohibit_stdio-safer_without_use): Likewise.
10919         (sc_prohibit_xfreopen_without_use): Likewise.
10920
10921 2011-05-17  Jim Meyering  <meyering@redhat.com>
10922
10923         announce-gen: fail if the NEWS delta is empty
10924         If there's nothing noteworthy in NEWS, then either you forgot
10925         or you shouldn't be releasing.
10926         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
10927
10928 2011-05-17  Pádraig Brady <P@draigBrady.com>
10929
10930         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
10931         reserved symbols starting with double underscore from the check.
10932
10933 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
10934
10935         intprops: add doc
10936         * doc/intprops.texi: New file, documenting intprops.
10937         * doc/gnulib.texi (Particular Modules): Include it.
10938
10939         verify: add doc to gnulib manual and fix example
10940         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
10941         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
10942         (Compile-time Assertions): Fix example so it can't overflow.
10943
10944 2011-05-17  Jim Meyering  <meyering@redhat.com>
10945
10946         warnings.m4: don't usurp save_CPPFLAGS variable name
10947         * m4/warnings.m4: Prefix local temporary variable name with gl_.
10948
10949         doc: fix typo
10950         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
10951
10952 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10953             Bruno Haible  <bruno@clisp.org>
10954
10955         doc: Tweak recent change.
10956         * README (Portability guidelines): Tweak new text.
10957         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
10958         Interix 6.1.
10959
10960 2011-05-16  Eric Blake  <eblake@redhat.com>
10961
10962         inttypes: avoid autoconf warning
10963         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
10964         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10965
10966 2011-05-16  Sam Steingold <sds@gnu.org>
10967         and Eric Blake  <eblake@redhat.com>
10968
10969         vc-list-files: accept multiple directory operands
10970         * build-aux/vc-list-files: Iterate over all remaining operands.
10971
10972 2011-05-16  Bruno Haible  <bruno@clisp.org>
10973
10974         Fix confusion regarding deprecated modules.
10975         * modules/calloc (Status, Notice): Mark module as deprecated, not
10976         obsolete.
10977         * modules/fnmatch-posix (Status, Notice): Likewise.
10978         * modules/getdate (Status, Notice): Likewise.
10979         * modules/getopt (Status, Notice): Likewise.
10980         * modules/malloc (Status, Notice): Likewise.
10981         * modules/pipe (Status, Notice): Likewise.
10982         * modules/realloc (Status, Notice): Likewise.
10983         * modules/rename-dest-slash (Status, Notice): Likewise.
10984         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
10985         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
10986         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
10987         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
10988         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
10989
10990 2011-05-16  Bruno Haible  <bruno@clisp.org>
10991
10992         doc: List the target platforms.
10993         * doc/gnulib-intro.texi (Target Platforms): New section.
10994         * doc/gnulib.texi (Introduction): Update menu.
10995         * README (Portability guidelines): Refer to the new section. Update
10996         statement about oldest supported environment. Remove rationale why
10997         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
10998         unportable C89 function.
10999         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
11000         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
11001
11002 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11003
11004         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
11005
11006 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
11007
11008         intprops-tests: new module
11009         * modules/intprops-tests, tests/test-intprops.c: New files.
11010
11011         intprops: add safe, portable integer overflow checking
11012         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
11013         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
11014         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
11015         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
11016         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
11017         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
11018         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
11019         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
11020         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
11021         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
11022         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
11023
11024 2011-05-12  James Youngman  <jay@gnu.org>
11025
11026         Add a test for glibc's Bugzilla bug #12378.
11027         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
11028         doesn't allow the literal matching of a lone "[" (which is
11029         required by POSIX).
11030         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
11031
11032 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
11033
11034         Sync glibc change fixing Bugzilla bug #12378.
11035         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
11036         beginning and fall back to matching as normal character if the
11037         string ends before the matching ']' is found.  This is what POSIX
11038         requires.
11039
11040 2011-05-13  Eric Blake  <eblake@redhat.com>
11041
11042         getcwd-lgpl: relax test for FreeBSD
11043         * doc/posix-functions/getcwd.texi (getcwd): Document portability
11044         issue.
11045         * tests/test-getcwd-lgpl.c (main): Relax test.
11046         Reported by Matthias Bolte.
11047
11048 2011-05-11  Eric Blake  <eblake@redhat.com>
11049
11050         test-fflush: silence compiler warning
11051         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
11052
11053 2011-05-11  Bruno Haible  <bruno@clisp.org>
11054
11055         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
11056         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
11057         * modules/canonicalize (Depends-on): Add 'nocrash'.
11058         * modules/canonicalize-lgpl (Depends-on): Likewise.
11059         * doc/posix-functions/realpath.texi: Update platforms list.
11060         Reported by Ryan Schmidt <ryandesign@macports.org>.
11061
11062 2011-05-11  Bruno Haible  <bruno@clisp.org>
11063
11064         group-member: Declare function in <unistd.h>.
11065         * lib/unistd.in.h (group_member): New declaration.
11066         * lib/group-member.h: Remove file.
11067         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
11068         * tests/test-unistd-c++.cc: Check signature of group_member.
11069         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
11070         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
11071         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
11072         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
11073         HAVE_GROUP_MEMBER.
11074         * modules/group-member (Files): Remove lib/group-member.h.
11075         (Depends-on): Add unistd. Specify conditions.
11076         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11077         (Include): Change to <unistd.h>.
11078         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
11079         HAVE_GROUP_MEMBER.
11080         * NEWS: Mention the change.
11081         * lib/euidaccess.c: Don't include group-member.h.
11082
11083 2011-05-11  Bruno Haible  <bruno@clisp.org>
11084
11085         group-member: Document module.
11086         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
11087         module.
11088
11089 2011-05-11  Bruno Haible  <bruno@clisp.org>
11090
11091         fclose: Fix mistake earlier today.
11092         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
11093
11094 2011-05-11  Eric Blake  <eblake@redhat.com>
11095
11096         fclose: preserve fflush errors
11097         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
11098         Reported by Jim Meyering.
11099
11100         bootstrap: support a prereq of 'rpcgen -' on RHEL5
11101         * build-aux/bootstrap (check_versions): When no specific version
11102         is required, merely check that the app produces an exit status
11103         that indicates its existence.
11104
11105         maint.mk: drop redundant check
11106         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
11107         the same but better.
11108
11109 2011-05-11  Bruno Haible  <bruno@clisp.org>
11110
11111         fclose: Fix possible link error.
11112         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
11113         unregister_shadow_fd. Improve comments.
11114         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
11115         Eric Blake.
11116
11117 2011-05-11  Jim Meyering  <meyering@redhat.com>
11118
11119         maint.mk: improve "can not" detection and generalize rule name
11120         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
11121         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
11122         Use the same technique as in sc_prohibit_doubled_word, so that
11123         we recognize "can not" also when the words are separated by a newline.
11124         Suggested by Eric Blake.
11125         (perl_filename_lineno_text_): Define.  Factored out of...
11126         (prohibit_doubled_word_): ...here.  Use the new definition.
11127         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
11128         (prohibit_undesirable_word_seq_RE_): New overridable variable.
11129         (ignore_undesirable_word_sequence_RE_): New overridable variable.
11130
11131 2011-05-10  Eric Blake  <eblake@redhat.com>
11132
11133         fclose: avoid double close race when possible
11134         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
11135         all but WINDOWS_SOCKETS.
11136
11137 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
11138
11139         openat: correct new comment
11140         * lib/openat-proc.c (openat_proc_name): Correct the comment.
11141
11142 2011-05-10  Jim Meyering  <meyering@redhat.com>
11143
11144         openat: add comments
11145         * lib/openat-proc.c (openat_proc_name): Add comments,
11146         mostly from Eric Blake.
11147
11148 2011-05-09  Eric Blake  <eblake@redhat.com>
11149
11150         openat: reduce syscalls in first probe of /proc
11151         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
11152         be a directory.  Simplify the probe for .. bugs.
11153         * modules/openat (Depends-on): Drop same-inode.
11154         Reported by Bastien ROUCARIES.
11155
11156 2011-05-09  Jim Meyering  <meyering@redhat.com>
11157
11158         maint.mk: change semantics/name of tight_scope variables
11159         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
11160         Rename variables to align with semantics that make them more useful.
11161
11162         maint.mk: tweak new rule's name not to impinge
11163         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
11164         (sc_tight_scope): Use new rule name rather than $@-0.
11165
11166         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
11167         * top/maint.mk (sc_tight_scope): New rule.
11168         (sc_tight_scope-0): New rule, ifdef'd out.
11169         (_gl_TS_dir): Default.
11170         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
11171         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
11172
11173 2011-05-09  Simon Josefsson  <simon@josefsson.org>
11174
11175         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
11176         Haible <bruno@clisp.org>.
11177
11178 2011-05-08  Bruno Haible  <bruno@clisp.org>
11179
11180         Comments.
11181         * m4/isnanf.m4: Add comment.
11182         * m4/isnanl.m4: Likewise.
11183
11184 2011-05-08  Bruno Haible  <bruno@clisp.org>
11185
11186         glob: Remove obsolete macro.
11187         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
11188
11189 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
11190
11191         intprops: Sun C 5.11 supports __typeof__
11192         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
11193         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
11194         which is new.
11195         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
11196
11197         intprops: switch to usual gnulib indenting and naming
11198         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
11199         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
11200
11201         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
11202
11203 2011-05-08  Jim Meyering  <meyering@redhat.com>
11204
11205         maint.mk: suppress "Entering/Leaving directory" diag in announcement
11206         * top/maint.mk (release-prep): Use make's --no-print-directory
11207         option when generating the announcement.  This eliminates the
11208         pesky "make[2]: Entering/Leaving directory" diagnostics in the
11209         generated announcement template.
11210
11211 2011-05-08  Bruno Haible  <bruno@clisp.org>
11212
11213         tzset: Fix gettimeofday wrapper on Solaris 2.6.
11214         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
11215         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
11216
11217 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
11218
11219         ignore-value, verify: Omit include files from lib_SOURCES.
11220         * modules/ignore-value, modules/verify (Makefile.am):
11221         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
11222         that leads Automake to duplicate use of am__objects_... variables
11223         in Makefile.in.  See
11224         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
11225
11226 2011-05-07  Bruno Haible  <bruno@clisp.org>
11227
11228         fclose: Simplify autoconf macro.
11229         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
11230         defined.
11231
11232 2011-05-07  Bruno Haible  <bruno@clisp.org>
11233
11234         canonicalize-lgpl: Fix autoconf macro ordering bug.
11235         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
11236         gl_STDLIB_H_DEFAULTS.
11237
11238 2011-05-06  Eric Blake  <eblake@redhat.com>
11239
11240         maintainer-makefile: make sc_po_check easier to tune
11241         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
11242         to probe for strings, such as an alternate location for gnulib.
11243
11244         fclose: guarantee behavior on seekable stdin
11245         * modules/fclose (Depends-on): Add fflush.
11246         * doc/posix-functions/fclose.texi (fclose): Document this.
11247         * tests/test-fclose.c (main): Make test for this unconditional.
11248
11249 2011-05-06  Bruno Haible  <bruno@clisp.org>
11250
11251         fflush, fpurge: Relicense under LGPLv2+.
11252         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
11253         * modules/fpurge (License): Likewise.
11254         With permission from Eric Blake and Jim Meyering.
11255         Suggested by Eric Blake.
11256
11257 2011-05-06  Karl Berry  <karl@gnu.org>
11258
11259         * MODULES.html.sh (func_all_modules): remove exit.
11260
11261 2011-05-06  Jim Meyering  <meyering@redhat.com>
11262
11263         maint.mk: use info-gnu@ as the default only for a stable release
11264         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
11265         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
11266         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
11267         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
11268
11269 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
11270
11271         assert-h: new module, which supports C1X-style static_assert
11272         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
11273         * lib/verify.h: Revamp so that this can be copied into assert.h,
11274         while retaining the ability to use it standalone as before.
11275         Rename private identifiers so as not to encroach on the
11276         standard C namespace, since this is now used by assert.h.
11277         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
11278         the old verify_true.
11279         (_GL_VERIFY_TRUE): New macro, with much of the contents of
11280         the old verify_true.  Use _GL_VERIFY_TYPE.
11281         (_GL_VERIFY): New macro, with much of the contents of the old verify.
11282         (static_assert): New macro, if _GL_STATIC_ASSERT_H
11283         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
11284         defined when this file is copied into the replacement assert.h.
11285         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
11286         and _Static_assert is not built in.
11287         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
11288         defined, and use the new macros mentioned above.
11289         * doc/posix-headers/assert.texi: Document this.
11290
11291 2011-05-05  Bruno Haible  <bruno@clisp.org>
11292
11293         fclose, fflush: Respect rules for use of AC_LIBOBJ.
11294         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
11295         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
11296         gl_REPLACE_FCLOSE here.
11297         * modules/fflush (Depends-on): Remove fclose.
11298         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
11299         combination with module 'fclose'.
11300
11301 2011-05-05  Bruno Haible  <bruno@clisp.org>
11302
11303         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
11304         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
11305         gl_FUNC_FFLUSH.
11306         (gl_FUNC_FFLUSH): Use it.
11307         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
11308         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
11309         gl_REPLACE_FSEEKO here.
11310
11311 2011-05-05  Bruno Haible  <bruno@clisp.org>
11312
11313         tzset: Relicense under LGPL.
11314         * modules/tzset (License): Change to LGPL.
11315         No agreement needed; it's a no-op.
11316
11317         strtoimax, strtoumax: Relicense under LGPL.
11318         * modules/strtoimax (License): Change to LGPL.
11319         * modules/strtoumax (License): Likewise.
11320         With permission from Jim Meyering, Paul Eggert:
11321         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
11322         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
11323
11324         getgroups: Relicense under LGPL.
11325         * modules/getgroups (License): Change to LGPL.
11326         With permission from Jim Meyering, Paul Eggert, Eric Blake:
11327         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11328         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11329         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11330
11331         nanosleep: Relicense under LGPL.
11332         * modules/nanosleep (License): Change to LGPL.
11333         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
11334         Haible:
11335         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11336         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11337         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11338         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11339
11340         futimens: Relicense under LGPL.
11341         * modules/futimens (License): Change to LGPL.
11342         With permission from Eric Blake:
11343         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11344
11345         fflush: Relicense under LGPL.
11346         * modules/fflush (License): Change to LGPL.
11347         With permission from Eric Blake, Bruno Haible, Jim Meyering:
11348         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11349         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11350         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
11351
11352         tmpfile: Relicense under LGPL.
11353         * modules/tmpfile (License): Change to LGPL.
11354         With permission from Ben Pfaff:
11355         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11356
11357         isfinite: Relicense under LGPL.
11358         * modules/isfinite (License): Change to LGPL.
11359         With permission from Ben Pfaff, Bruno Haible:
11360         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11361         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
11362
11363         acosl..tanl: Relicense under LGPL.
11364         * modules/acosl (License): Change to LGPL.
11365         * modules/asinl (License): Likewise.
11366         * modules/atanl (License): Likewise.
11367         * modules/cosl (License): Likewise.
11368         * modules/expl (License): Likewise.
11369         * modules/logl (License): Likewise.
11370         * modules/sinl (License): Likewise.
11371         * modules/sqrtl (License): Likewise.
11372         * modules/tanl (License): Likewise.
11373         Source code originally from glibc and Paolo Bonzini. Agreements:
11374         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
11375         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
11376
11377 2011-05-05  Bruno Haible  <bruno@clisp.org>
11378
11379         signal: Define sighandler_t.
11380         * lib/signal.in.h (sighandler_t): New type.
11381         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
11382         whether sighandler_t is defined.
11383         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
11384         * modules/signal (Depends-on): Add extensions.
11385         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
11386         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
11387         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
11388
11389 2011-05-05  Eric Blake  <eblake@redhat.com>
11390
11391         maint: remove useless REPLACE_*_H macros
11392         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
11393         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
11394         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
11395         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
11396         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
11397         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
11398         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
11399         * m4/btowc.m4: Update callers.
11400         * m4/dirfd.m4: Likewise.
11401         * m4/duplocale.m4: Likewise.
11402         * m4/fchdir.m4: Likewise.
11403         * m4/fdopendir.m4: Likewise.
11404         * m4/inet_ntop.m4: Likewise.
11405         * m4/inet_pton.m4: Likewise.
11406         * m4/ioctl.m4: Likewise.
11407         * m4/mbrlen.m4: Likewise.
11408         * m4/mbrtowc.m4: Likewise.
11409         * m4/mbsinit.m4: Likewise.
11410         * m4/mbsnrtowcs.m4: Likewise.
11411         * m4/mbsrtowcs.m4: Likewise.
11412         * m4/poll.m4: Likewise.
11413         * m4/setlocale.m4: Likewise.
11414         * m4/wcrtomb.m4: Likewise.
11415         * m4/wcsnrtombs.m4: Likewise.
11416         * m4/wcsrtombs.m4: Likewise.
11417         * m4/wctob.m4: Likewise.
11418         * m4/wcwidth.m4: Likewise.
11419         * modules/posix_spawn: Likewise.
11420         * modules/posix_spawn_file_actions_addclose: Likewise.
11421         * modules/posix_spawn_file_actions_adddup2: Likewise.
11422         * modules/posix_spawn_file_actions_addopen: Likewise.
11423         * modules/posix_spawn_file_actions_destroy: Likewise.
11424         * modules/posix_spawn_file_actions_init: Likewise.
11425         * modules/posix_spawnattr_destroy: Likewise.
11426         * modules/posix_spawnattr_getflags: Likewise.
11427         * modules/posix_spawnattr_getpgroup: Likewise.
11428         * modules/posix_spawnattr_getschedparam: Likewise.
11429         * modules/posix_spawnattr_getschedpolicy: Likewise.
11430         * modules/posix_spawnattr_getsigdefault: Likewise.
11431         * modules/posix_spawnattr_getsigmask: Likewise.
11432         * modules/posix_spawnattr_init: Likewise.
11433         * modules/posix_spawnattr_setflags: Likewise.
11434         * modules/posix_spawnattr_setpgroup: Likewise.
11435         * modules/posix_spawnattr_setschedparam: Likewise.
11436         * modules/posix_spawnattr_setschedpolicy: Likewise.
11437         * modules/posix_spawnattr_setsigdefault: Likewise.
11438         * modules/posix_spawnattr_setsigmask: Likewise.
11439         * modules/posix_spawnp: Likewise.
11440
11441 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
11442
11443         Add option to do-release-commit-and-tag to specify branch.
11444         * build-aux/do-release-commit-and-tag: Add --branch.
11445
11446 2011-05-03  Bruno Haible  <bruno@clisp.org>
11447
11448         Avoid unnecessary compilation units, through conditional dependencies.
11449         * modules/accept (Depends-on): Add conditions to the dependencies.
11450         * modules/acosl (Depends-on): Likewise.
11451         * modules/argz (Depends-on): Likewise.
11452         * modules/asinl (Depends-on): Likewise.
11453         * modules/atanl (Depends-on): Likewise.
11454         * modules/atoll (Depends-on): Likewise.
11455         * modules/bind (Depends-on): Likewise.
11456         * modules/btowc (Depends-on): Likewise.
11457         * modules/canonicalize-lgpl (Depends-on): Likewise.
11458         * modules/ceil (Depends-on): Likewise.
11459         * modules/ceilf (Depends-on): Likewise.
11460         * modules/ceill (Depends-on): Likewise.
11461         * modules/chdir-long (Depends-on): Likewise.
11462         * modules/chown (Depends-on): Likewise.
11463         * modules/close (Depends-on): Likewise.
11464         * modules/connect (Depends-on): Likewise.
11465         * modules/cosl (Depends-on): Likewise.
11466         * modules/dirfd (Depends-on): Likewise.
11467         * modules/dprintf (Depends-on): Likewise.
11468         * modules/dprintf-posix (Depends-on): Likewise.
11469         * modules/error (Depends-on): Likewise.
11470         * modules/euidaccess (Depends-on): Likewise.
11471         * modules/expl (Depends-on): Likewise.
11472         * modules/faccessat (Depends-on): Likewise.
11473         * modules/fchdir (Depends-on): Likewise.
11474         * modules/fclose (Depends-on): Likewise.
11475         * modules/fcntl (Depends-on): Likewise.
11476         * modules/fdopendir (Depends-on): Likewise.
11477         * modules/fflush (Depends-on): Likewise.
11478         * modules/floor (Depends-on): Likewise.
11479         * modules/floorf (Depends-on): Likewise.
11480         * modules/floorl (Depends-on): Likewise.
11481         * modules/fnmatch (Depends-on): Likewise.
11482         * modules/fopen (Depends-on): Likewise.
11483         * modules/fprintf-posix (Depends-on): Likewise.
11484         * modules/frexp (Depends-on): Likewise.
11485         * modules/frexp-nolibm (Depends-on): Likewise.
11486         * modules/frexpl (Depends-on): Likewise.
11487         * modules/frexpl-nolibm (Depends-on): Likewise.
11488         * modules/fseek (Depends-on): Likewise.
11489         * modules/fsusage (Depends-on): Likewise.
11490         * modules/ftell (Depends-on): Likewise.
11491         * modules/ftello (Depends-on): Likewise.
11492         * modules/futimens (Depends-on): Likewise.
11493         * modules/getcwd (Depends-on): Likewise.
11494         * modules/getcwd-lgpl (Depends-on): Likewise.
11495         * modules/getdelim (Depends-on): Likewise.
11496         * modules/getdomainname (Depends-on): Likewise.
11497         * modules/getgroups (Depends-on): Likewise.
11498         * modules/gethostname (Depends-on): Likewise.
11499         * modules/getline (Depends-on): Likewise.
11500         * modules/getlogin_r (Depends-on): Likewise.
11501         * modules/getopt-posix (Depends-on): Likewise.
11502         * modules/getpeername (Depends-on): Likewise.
11503         * modules/getsockname (Depends-on): Likewise.
11504         * modules/getsockopt (Depends-on): Likewise.
11505         * modules/getsubopt (Depends-on): Likewise.
11506         * modules/getusershell (Depends-on): Likewise.
11507         * modules/glob (Depends-on): Likewise.
11508         * modules/grantpt (Depends-on): Likewise.
11509         * modules/iconv_open (Depends-on): Likewise.
11510         * modules/iconv_open-utf (Depends-on): Likewise.
11511         * modules/inet_ntop (Depends-on): Likewise.
11512         * modules/inet_pton (Depends-on): Likewise.
11513         * modules/ioctl (Depends-on): Likewise.
11514         * modules/isapipe (Depends-on): Likewise.
11515         * modules/isfinite (Depends-on): Likewise.
11516         * modules/isinf (Depends-on): Likewise.
11517         * modules/lchown (Depends-on): Likewise.
11518         * modules/ldexpl (Depends-on): Likewise.
11519         * modules/link (Depends-on): Likewise.
11520         * modules/linkat (Depends-on): Likewise.
11521         * modules/listen (Depends-on): Likewise.
11522         * modules/logl (Depends-on): Likewise.
11523         * modules/lstat (Depends-on): Likewise.
11524         * modules/mbrlen (Depends-on): Likewise.
11525         * modules/mbrtowc (Depends-on): Likewise.
11526         * modules/mbsinit (Depends-on): Likewise.
11527         * modules/mbsnrtowcs (Depends-on): Likewise.
11528         * modules/mbsrtowcs (Depends-on): Likewise.
11529         * modules/mbtowc (Depends-on): Likewise.
11530         * modules/memcmp (Depends-on): Likewise.
11531         * modules/mkdir (Depends-on): Likewise.
11532         * modules/mkdtemp (Depends-on): Likewise.
11533         * modules/mkfifo (Depends-on): Likewise.
11534         * modules/mkfifoat (Depends-on): Likewise.
11535         * modules/mknod (Depends-on): Likewise.
11536         * modules/mkostemp (Depends-on): Likewise.
11537         * modules/mkostemps (Depends-on): Likewise.
11538         * modules/mkstemp (Depends-on): Likewise.
11539         * modules/mkstemps (Depends-on): Likewise.
11540         * modules/mktime (Depends-on): Likewise.
11541         * modules/nanosleep (Depends-on): Likewise.
11542         * modules/open (Depends-on): Likewise.
11543         * modules/openat (Depends-on): Likewise.
11544         * modules/perror (Depends-on): Likewise.
11545         * modules/poll (Depends-on): Likewise.
11546         * modules/popen (Depends-on): Likewise.
11547         * modules/posix_spawn (Depends-on): Likewise.
11548         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
11549         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
11550         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
11551         * modules/posix_spawnp (Depends-on): Likewise.
11552         * modules/pread (Depends-on): Likewise.
11553         * modules/printf-posix (Depends-on): Likewise.
11554         * modules/ptsname (Depends-on): Likewise.
11555         * modules/putenv (Depends-on): Likewise.
11556         * modules/pwrite (Depends-on): Likewise.
11557         * modules/readline (Depends-on): Likewise.
11558         * modules/readlink (Depends-on): Likewise.
11559         * modules/readlinkat (Depends-on): Likewise.
11560         * modules/recv (Depends-on): Likewise.
11561         * modules/recvfrom (Depends-on): Likewise.
11562         * modules/regex (Depends-on): Likewise.
11563         * modules/remove (Depends-on): Likewise.
11564         * modules/rename (Depends-on): Likewise.
11565         * modules/renameat (Depends-on): Likewise.
11566         * modules/rmdir (Depends-on): Likewise.
11567         * modules/round (Depends-on): Likewise.
11568         * modules/roundf (Depends-on): Likewise.
11569         * modules/roundl (Depends-on): Likewise.
11570         * modules/rpmatch (Depends-on): Likewise.
11571         * modules/select (Depends-on): Likewise.
11572         * modules/send (Depends-on): Likewise.
11573         * modules/sendto (Depends-on): Likewise.
11574         * modules/setenv (Depends-on): Likewise.
11575         * modules/setlocale (Depends-on): Likewise.
11576         * modules/setsockopt (Depends-on): Likewise.
11577         * modules/shutdown (Depends-on): Likewise.
11578         * modules/sigaction (Depends-on): Likewise.
11579         * modules/signbit (Depends-on): Likewise.
11580         * modules/sigprocmask (Depends-on): Likewise.
11581         * modules/sinl (Depends-on): Likewise.
11582         * modules/sleep (Depends-on): Likewise.
11583         * modules/snprintf (Depends-on): Likewise.
11584         * modules/snprintf-posix (Depends-on): Likewise.
11585         * modules/socket (Depends-on): Likewise.
11586         * modules/sprintf-posix (Depends-on): Likewise.
11587         * modules/sqrtl (Depends-on): Likewise.
11588         * modules/stat (Depends-on): Likewise.
11589         * modules/strchrnul (Depends-on): Likewise.
11590         * modules/strdup-posix (Depends-on): Likewise.
11591         * modules/strerror (Depends-on): Likewise.
11592         * modules/strerror_r-posix (Depends-on): Likewise.
11593         * modules/strndup (Depends-on): Likewise.
11594         * modules/strnlen (Depends-on): Likewise.
11595         * modules/strptime (Depends-on): Likewise.
11596         * modules/strsep (Depends-on): Likewise.
11597         * modules/strsignal (Depends-on): Likewise.
11598         * modules/strstr-simple (Depends-on): Likewise.
11599         * modules/strtod (Depends-on): Likewise.
11600         * modules/strtoimax (Depends-on): Likewise.
11601         * modules/strtok_r (Depends-on): Likewise.
11602         * modules/strtoumax (Depends-on): Likewise.
11603         * modules/symlink (Depends-on): Likewise.
11604         * modules/symlinkat (Depends-on): Likewise.
11605         * modules/tanl (Depends-on): Likewise.
11606         * modules/tcgetsid (Depends-on): Likewise.
11607         * modules/tmpfile (Depends-on): Likewise.
11608         * modules/trunc (Depends-on): Likewise.
11609         * modules/truncf (Depends-on): Likewise.
11610         * modules/truncl (Depends-on): Likewise.
11611         * modules/uname (Depends-on): Likewise.
11612         * modules/unlink (Depends-on): Likewise.
11613         * modules/unlockpt (Depends-on): Likewise.
11614         * modules/unsetenv (Depends-on): Likewise.
11615         * modules/usleep (Depends-on): Likewise.
11616         * modules/utimensat (Depends-on): Likewise.
11617         * modules/vasprintf (Depends-on): Likewise.
11618         * modules/vdprintf (Depends-on): Likewise.
11619         * modules/vdprintf-posix (Depends-on): Likewise.
11620         * modules/vfprintf-posix (Depends-on): Likewise.
11621         * modules/vprintf-posix (Depends-on): Likewise.
11622         * modules/vsnprintf (Depends-on): Likewise.
11623         * modules/vsnprintf-posix (Depends-on): Likewise.
11624         * modules/vsprintf-posix (Depends-on): Likewise.
11625         * modules/wcrtomb (Depends-on): Likewise.
11626         * modules/wcscasecmp (Depends-on): Likewise.
11627         * modules/wcscspn (Depends-on): Likewise.
11628         * modules/wcsdup (Depends-on): Likewise.
11629         * modules/wcsncasecmp (Depends-on): Likewise.
11630         * modules/wcsnrtombs (Depends-on): Likewise.
11631         * modules/wcspbrk (Depends-on): Likewise.
11632         * modules/wcsrtombs (Depends-on): Likewise.
11633         * modules/wcsspn (Depends-on): Likewise.
11634         * modules/wcsstr (Depends-on): Likewise.
11635         * modules/wcstok (Depends-on): Likewise.
11636         * modules/wcswidth (Depends-on): Likewise.
11637         * modules/wctob (Depends-on): Likewise.
11638         * modules/wctomb (Depends-on): Likewise.
11639         * modules/wctype (Depends-on): Likewise.
11640         * modules/wcwidth (Depends-on): Likewise.
11641         * modules/write (Depends-on): Likewise.
11642
11643 2011-05-03  Bruno Haible  <bruno@clisp.org>
11644
11645         Support for conditional dependencies.
11646         * doc/gnulib.texi (Module description): Document the syntax of
11647         conditional dependencies.
11648         * gnulib-tool: New option --conditional-dependencies.
11649         (func_usage): Document it.
11650         (cond_dependencies): New variable.
11651         (func_get_automake_snippet_conditional,
11652         func_get_automake_snippet_unconditional): New functions, extracted from
11653         func_get_automake_snippet.
11654         (func_get_automake_snippet): Use them.
11655         (sed_first_32_chars): New variable.
11656         (func_module_shellfunc_name): New function.
11657         (func_module_shellvar_name): New function.
11658         (func_module_conditional_name): New function.
11659         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
11660         func_cond_module_condition): New functions.
11661         (func_modules_transitive_closure): Add support for conditional
11662         dependencies.
11663         (func_emit_lib_Makefile_am): For a conditional module, enclose the
11664         conditional automake snippet in an automake conditional.
11665         (func_emit_autoconf_snippets): Emit shell functions that contain the
11666         code for conditional modules.
11667         (func_import, func_create_testdir): Update specification.
11668
11669 2011-05-03  Eric Blake  <eblake@redhat.com>
11670
11671         test-getaddrinfo: report error information
11672         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
11673
11674 2011-05-03  Jim Meyering  <meyering@redhat.com>
11675
11676         bootstrap: avoid build failure when $GZIP is set
11677         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
11678         program name.  If defined at all, it is supposed to list gzip options.
11679         Reported by Alan Curry in http://debbugs.gnu.org/8609
11680
11681 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
11682
11683         readme-release: new module with release instructions
11684         * modules/readme-release: New module.
11685         * top/README-release: New file, from coreutils, grep, diffutils.
11686         * MODULES.html.sh (Support for maintaining and releasing): Add it.
11687
11688 2011-05-02  Eric Blake  <eblake@redhat.com>
11689
11690         fflush: also replace fclose when fixing fflush
11691         * modules/fflush (Depends-on): Add fclose.
11692         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
11693         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
11694         memstreams with no backing fd.
11695         * doc/posix-functions/fclose.texi (fclose): Document the use of
11696         fflush module to fix the bug.
11697         * tests/test-fclose.c (main): Relax test when fclose is used in
11698         isolation.
11699
11700         fclose: add some tests
11701         * modules/fclose-tests: New test module.
11702         * tests/test-fclose.c: New file.
11703         * doc/posix-functions/fclose.texi (fclose): Document the bug.
11704
11705         fclose: reduced dependencies
11706         * modules/fclose (Depends-on): Switch from fflush/fseeko to
11707         simpler lseek.
11708         * lib/fclose.c (rpl_fclose): Likewise.
11709         Reported by Simon Josefsson.
11710
11711         exit: drop remaining clients
11712         * modules/argmatch (Depends-on): Replace exit with stdlib.
11713         * modules/copy-file (Depends-on): Likewise.
11714         * modules/execute (Depends-on): Likewise.
11715         * modules/exitfail (Depends-on): Likewise.
11716         * modules/obstack (Depends-on): Likewise.
11717         * modules/pagealign_alloc (Depends-on): Likewise.
11718         * modules/pipe-filter-gi (Depends-on): Likewise.
11719         * modules/pipe-filter-ii (Depends-on): Likewise.
11720         * modules/savewd (Depends-on): Likewise.
11721         * modules/spawn-pipe (Depends-on): Likewise.
11722         * modules/wait-process (Depends-on): Likewise.
11723         * modules/xsetenv (Depends-on): Likewise.
11724         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
11725         * modules/git-merge-changelog (Depends-on): Likewise.
11726         * modules/long-options (Depends-on): Likewise.
11727         * modules/pt_chown (Depends-on): Likewise.
11728         * modules/sysexits (Depends-on): Likewise.
11729
11730         freading: relax license from LGPLv3+ to LGPLv2+
11731         * modules/freading (License): Relax LGPL version.
11732
11733 2011-05-02  Bruno Haible  <bruno@clisp.org>
11734
11735         fchdir: Remove unused dependencies.
11736         * modules/fchdir (Depends-on): Remove include_next.
11737
11738 2011-05-02  Bruno Haible  <bruno@clisp.org>
11739
11740         gnulib-tool: Refactor.
11741         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
11742         from func_emit_autoconf_snippets.
11743         (func_emit_autoconf_snippets): Use it.
11744
11745 2011-05-02  Simon Josefsson  <simon@josefsson.org>
11746
11747         * NEWS: Document removal of 'exit'.
11748         * modules/exit: Remove file.
11749
11750 2011-05-01  Bruno Haible  <bruno@clisp.org>
11751
11752         Update DEPENDENCIES.
11753         * DEPENDENCIES (gettext): Recommend the newest release.
11754         Reported by Simon Josefsson.
11755
11756 2011-05-01  Bruno Haible  <bruno@clisp.org>
11757
11758         gnulib-tool: Reduce code duplication.
11759         * gnulib-tool (func_emit_autoconf_snippets): New function.
11760         (func_import, func_create_testdir): Use it.
11761
11762 2011-04-30  Eric Blake  <eblake@redhat.com>
11763
11764         fclose: don't fail on non-seekable input stream
11765         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
11766         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
11767         since fflush is allowed to fail in that case.
11768
11769 2011-04-30  Bruno Haible  <bruno@clisp.org>
11770
11771         dup3: cleanup
11772         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
11773
11774 2011-04-30  Bruno Haible  <bruno@clisp.org>
11775
11776         netdb: Make it work in C++ mode.
11777         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
11778         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
11779         module.
11780         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
11781         gl_MODULE_INDICATOR_FOR_TESTS.
11782         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
11783         * modules/netdb-c++-tests: New file.
11784         * tests/test-netdb-c++.cc: New file.
11785
11786 2011-04-30  Bruno Haible  <bruno@clisp.org>
11787
11788         New modules 'vfscanf', 'vscanf'.
11789         * modules/vfscanf: New file.
11790         * modules/vscanf: New file.
11791         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
11792         here.
11793         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
11794         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
11795
11796 2011-04-30  Bruno Haible  <bruno@clisp.org>
11797
11798         passfd: Add comments.
11799         * lib/passfd.c: Add comments about platforms.
11800
11801 2011-04-30  Bruno Haible  <bruno@clisp.org>
11802
11803         sys_uio: Make <sys/uio.h> self-contained.
11804         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
11805         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
11806
11807 2011-04-30  Bruno Haible  <bruno@clisp.org>
11808
11809         sys_socket: Ensure 'struct iovec' definition.
11810         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
11811         <sys/socket.h>.
11812         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
11813
11814 2011-04-30  Bruno Haible  <bruno@clisp.org>
11815
11816         sys_uio: Protect definition of 'struct iovec'.
11817         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
11818         it as a C struct.
11819
11820 2011-04-30  Bruno Haible  <bruno@clisp.org>
11821
11822         manywarnings: fix indentation
11823         * m4/manywarnings.m4: Indent by 2 spaces consistently.
11824
11825 2011-04-30  Pádraig Brady <P@draigBrady.com>
11826
11827         manywarnings: add -Wno-missing-field-initializers if needed.
11828         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
11829         option if it's needed to allow initialization with { 0, }
11830
11831 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
11832
11833         announce-gen: cosmetic improvement
11834         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
11835
11836 2011-04-29  Jim Meyering  <meyering@redhat.com>
11837
11838         vc-list-files: indent with spaces, not TABs
11839         * build-aux/vc-list-files: Convert leading TABs to spaces,
11840         to match the style of most other files in gnulib.
11841
11842         announce-gen: indent with spaces, not TABs
11843         * build-aux/announce-gen: Convert all TABs to spaces, to match
11844         the style of most other files in gnulib.
11845
11846 2011-04-29  Eric Blake  <eblake@redhat.com>
11847
11848         quotearg: avoid uninitialized variable use
11849         * lib/quotearg.c (quoting_options_from_style): Initialize
11850         remaining fields, and ensure that custom styles are only used via
11851         quoting_options rather than quoting_style.
11852
11853 2011-04-29  Jim Meyering  <meyering@redhat.com>
11854
11855         maint.mk: remove unused VC-tag variable
11856         * top/maint.mk (VC-tag): Remove unused variable.
11857
11858 2011-04-29  Bruno Haible  <bruno@clisp.org>
11859
11860         netdb: fix gai_strerror replacements
11861         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
11862         * modules/netdb: Substitute it.
11863
11864 2011-04-29  Jim Meyering  <meyering@redhat.com>
11865
11866         test-getcwd.c: avoid new set-but-not-used warning
11867         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
11868         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
11869         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
11870         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
11871
11872         test-hash.c: avoid a new shadowing warning
11873         * tests/test-hash.c (main): Don't shadow "dup".
11874
11875 2011-04-28  Eric Blake  <eblake@redhat.com>
11876
11877         getaddrinfo: fix gai_strerror signature
11878         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
11879         and work around mingw with UNICODE defined.
11880         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
11881         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
11882         * modules/netdb (Makefile.am): Substitute it.
11883         * lib/netdb.in.h (gai_strerror): Declare replacement.
11884         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
11885         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
11886         the fix.
11887
11888         getsockopt: avoid compiler warning
11889         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
11890         Reported by Matthias Bolte.
11891
11892         tests: drop unused link dependency
11893         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
11894         * modules/dirent-safer-tests (Makefile.am): Likewise.
11895         * modules/fdopendir-tests (Makefile.am): Likewise.
11896         * modules/mkfifoat-tests (Makefile.am): Likewise.
11897         * modules/openat-safer-tests (Makefile.am): Likewise.
11898         * modules/openat-tests (Makefile.am): Likewise.
11899         * modules/readlinkat-tests (Makefile.am): Likewise.
11900         * modules/symlinkat-tests (Makefile.am): Likewise.
11901         * modules/linkat-tests (Makefile.am): Likewise.
11902         (Depends-on): Switch to filenamecat-lgpl.
11903         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
11904         LIBINTL.
11905         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
11906         * tests/test-linkat.c (main): Don't require xalloc.
11907
11908         hash, mgetgroups: drop xalloc dependency
11909         * lib/hash.c (includes): Adjust includes.
11910         * lib/mgetgroups.c (includes): Likewise.
11911         (xgetgroups): Move...
11912         * lib/xgetgroups.c: ...to new file.
11913         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
11914         * modules/xgetgroups: New file, split from...
11915         * modules/mgetgroups: ...here.
11916         (Depends-on): Add xalloc-oversized.
11917         * modules/hash (Depends-on): Likewise.
11918         * modules/hash-tests (Depends-on): Drop xalloc.
11919         (test_hash_LDADD): Drop unused library.
11920         * tests/test-hash.c (main): Break xalloc dependency.
11921         (includes): Drop unused include.
11922
11923         xalloc-oversized: new module
11924         * modules/xalloc-oversized: New module.
11925         * modules/xalloc (Depends-on): Add it.
11926         * lib/xalloc.h (xalloc_oversized): Move...
11927         * lib/xalloc-oversized.h: ...into new file.
11928
11929         utimecmp: drop dependency on xmalloc
11930         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
11931         due to memory pressure.
11932         * modules/utimecmp (Depends-on): Drop xalloc.
11933
11934 2011-04-27  Eric Blake  <eblake@redhat.com>
11935
11936         getcwd: fix mingw bugs
11937         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
11938         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
11939         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
11940
11941 2011-04-27  Bruno Haible  <bruno@clisp.org>
11942
11943         mkstemps: Ensure declaration on MacOS X 10.5.
11944         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
11945         * doc/glibc-functions/mkstemps.texi: Document header file problem on
11946         MacOS X.
11947
11948 2011-04-27  Bruno Haible  <bruno@clisp.org>
11949
11950         mkstemp: More documentation.
11951         * doc/posix-functions/mkstemp.texi: Document header file problem on
11952         MacOS X.
11953
11954 2011-04-27  Bruno Haible  <bruno@clisp.org>
11955
11956         mkstemp: Tweak configure message when cross-compiling.
11957         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
11958         result as a guess.
11959
11960 2011-04-27  Bruno Haible  <bruno@clisp.org>
11961
11962         clean-temp: Clarify what it does.
11963         * lib/clean-temp.h: Add more comments.
11964         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
11965         module.
11966         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
11967         * doc/glibc-functions/mkstemps.texi: Likewise.
11968         * doc/glibc-functions/mkostemps.texi: Likewise.
11969
11970 2011-04-27  Eric Blake  <eblake@redhat.com>
11971
11972         fchdir: avoid extra chdir and fix test
11973         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
11974         getcwd-lgpl.
11975         * lib/fchdir.c (get_name): Any absolute name will do; it does not
11976         have to be canonical.
11977         (canonicalize_file_name): Drop unused macro.
11978         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
11979
11980         filenamecat-lgpl: fix licence
11981         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
11982         when it was first created.
11983
11984         linkat, renameat: add missing dependency
11985         * modules/linkat (Depends-on): Require getcwd-lgpl.
11986         * modules/renameat (Depends-on): Likewise.
11987
11988         tests: reduce dependencies
11989         * tests/test-linkat.c (main): Use lighter-weight getcwd.
11990         * tests/test-renameat.c (main): Likewise.
11991         * modules/linkat-tests (Depends-on): Relax dependency.
11992         * modules/renameat-tests (Depends-on): Likewise.
11993         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
11994         dependency explicit.
11995
11996         save-cwd: reduce default dependency
11997         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
11998         * lib/save-cwd.c: Update comments.
11999         * NEWS: Document the semantic change.
12000
12001         getcwd: enhance tests
12002         * tests/test-getcwd-lgpl.c: New file, taken from...
12003         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
12004         repeat long path stress tests from m4 probe.
12005         * modules/getcwd-lgpl-tests: New module.
12006         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
12007         * m4/getcwd-abort-bug.m4: Update comment.
12008         * m4/getcwd-path-max.m4: Likewise.
12009
12010         getcwd-lgpl: new module
12011         * modules/getcwd-lgpl: New module.
12012         * lib/getcwd-lgpl.c: New file.
12013         * doc/posix-functions/getcwd.texi (getcwd): Document it.
12014         * MODULES.html.sh (lacking POSIX:2008): Likewise.
12015         * modules/getcwd (configure.ac): Set C witness.
12016         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
12017
12018         getcwd: tweak comments
12019         * m4/getcwd-abort-bug.m4: Fix comments.
12020         * m4/getcwd-path-max.m4: Likewise.
12021         * m4/getcwd.m4: Likewise.
12022
12023 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
12024         and Eric Blake  <eblake@redhat.com>
12025
12026         mkstemp: replace if system version uses wrong permissions
12027         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
12028         read/write mode bits set in file created by mkstemp.
12029         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
12030
12031 2011-04-27  Eric Blake  <eblake@redhat.com>
12032
12033         passfd: avoid compiler warning
12034         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
12035         Reported by Laine Stump.
12036
12037 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
12038
12039         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
12040         required by the NetBSD (and perhaps other 4.4BSD derived) join.
12041
12042 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
12043         and Eric Blake  <eblake@redhat.com>
12044
12045         mkstemp: mention clean-temp module
12046         * lib/mkstemp.c: Add comment.
12047         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
12048
12049 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
12050
12051         inttypes: also provide default values for 32-bit tests
12052         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
12053         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
12054
12055 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
12056
12057         strtoumax: remove dependency on strtoimax
12058         This is like the strtoull change of yesterday.
12059         * modules/strtoumax (Files): Add lib/strtoimax.c.
12060         (Depends-on): Remove strtoimax and add verify.
12061
12062         inttypes-incomplete: new module
12063         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
12064         all but the PRI* and SCN* parts of gl_INTTYPES_H.
12065         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
12066         of gl_INTTYPES_H.
12067         (gl_INTTYPES_H): Rewrite in terms of these new macros.
12068         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
12069         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
12070         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
12071         * modules/strtoumax, modules/xstrtol (Depends-on):
12072         Depend on inttypes-incomplete, not inttypes.
12073         * modules/inttypes-incomplete: New module, containing the contents
12074         of the old modules/inttypes module, except that the Files: section
12075         omits m4/inttypes-pri.m4, and the configure.ac section invokes
12076         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
12077         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
12078         (Depends-on): Depend only on inttypes-incomplete.
12079         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
12080
12081         inttypes: omit now-redundant strtoimax and strtoumax work
12082         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
12083         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
12084
12085         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
12086         This supports apps that need pointers to strtoimax and strtoumax,
12087         and ports to HP-UX 11.00 64.bit, which has macros that expand to
12088         nonexistent functions.  See
12089         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
12090         et seq.
12091         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
12092         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
12093         a macro.
12094         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
12095
12096 2011-04-25  Simon Josefsson  <simon@josefsson.org>
12097
12098         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
12099
12100 2011-04-25  Bruno Haible  <bruno@clisp.org>
12101
12102         strtol, strtoul: Mark modules as obsolete.
12103         * modules/strtol (Status, Notice): New sections.
12104         * modules/strtoul (Status, Notice): New sections.
12105
12106 2011-04-25  Bruno Haible  <bruno@clisp.org>
12107
12108         strtod: Remove check for strtod, unless supporting old platforms.
12109         * modules/strtod-obsolete: New file.
12110         * m4/strtod-obsolete.m4: New file.
12111         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
12112         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
12113         * modules/strtod (Depends-on): Add strtod-obsolete.
12114         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
12115
12116 2011-04-25  Bruno Haible  <bruno@clisp.org>
12117
12118         strcase: Make module obsolete.
12119         * modules/strcase (Status, Notice): New sections.
12120
12121 2011-04-25  Bruno Haible  <bruno@clisp.org>
12122
12123         dup2: Remove check for dup2, unless supporting old obsolete platforms.
12124         * modules/dup2-obsolete: New file.
12125         * m4/dup2-obsolete.m4: New file.
12126         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
12127         gl_FUNC_DUP2_OBSOLETE is not also defined.
12128         * modules/dup2 (Depends-on): Add dup2-obsolete.
12129         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
12130
12131 2011-04-25  Bruno Haible  <bruno@clisp.org>
12132
12133         strnlen: Avoid memchr related link error on old obsolete platforms.
12134         * modules/memchr-obsolete: New file.
12135         * m4/memchr-obsolete.m4: New file.
12136         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
12137         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
12138         * modules/memchr (Depends-on): Add memchr-obsolete.
12139         * modules/strnlen (Depends-on): Likewise.
12140         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
12141
12142 2011-04-25  Jim Meyering  <meyering@redhat.com>
12143
12144         maint.mk: makefile_at_at_check extend and clean up
12145         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
12146         in addition to */Makefile.am.
12147         Exempt legitimate uses of @VAR@ notation, e.g.,
12148         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
12149         Remove obsolete coreutils-specific comment.
12150         Prompted by discussion here:
12151         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
12152
12153 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
12154
12155         strtoul: remove dependency on strtol
12156         This is so that 'configure' need not check for strtol merely because
12157         the application needs strtoul.
12158         * modules/strtoul (Files): Add lib/strtol.c.
12159         (Depends-on): Remove strtol.
12160
12161         strtoull: remove dependency on strtoul
12162         This is like the strtoll change.
12163         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
12164         (Depends-on): Remove strtoul.
12165
12166         strtoll: remove dependency on strtol
12167         This is so that 'configure' need not check for strtol merely because
12168         the application needs strtoll.
12169         * modules/strtoll (Files): Add lib/strtol.c.
12170         (Depends-on): Remove strtol.
12171
12172 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12173
12174         inttypes: Move some configure check to module 'imaxdiv'.
12175         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
12176         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
12177         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
12178
12179 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12180
12181         inttypes: Move some configure check to module 'imaxabs'.
12182         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
12183         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
12184         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
12185
12186 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12187
12188         inttypes: Remove configure tests that are not needed since 2009-12-31.
12189         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
12190         gl_cv_header_working_inttypes_h.
12191
12192 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12193
12194         * modules/strnlen (Depends-on): Remove memchr.
12195         The strnlen implementation doesn't need the memchr module's fixes; see
12196         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
12197
12198         strtol: remove dependency on wchar
12199         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
12200         * modules/strtol (Depends-on): Remove wchar.
12201
12202 2011-04-21  Eric Blake  <eblake@redhat.com>
12203
12204         passfd: fix test regression on Linux
12205         * modules/passfd-tests (configure.ac): Correct socketpair check.
12206
12207         passfd: speed up configure and drop unused code
12208         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
12209         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
12210         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
12211         Instead of probing at configure for unix_scm_rights_bsd44_way,
12212         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
12213         check to a struct member probe.
12214         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
12215         (sendfd, recvfd): Update preprocessor checks.
12216         * modules/passfd (Files): Reflect rename, and drop unused file.
12217         (Depends-on): Drop unused dependency.
12218
12219         passfd: allow compilation on mingw
12220         * modules/sys_socket (Depends-on): Add sys_uio.
12221         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
12222         iovec and a minimal struct msghdr.
12223         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
12224         * tests/test-sys_socket.c (main): Enhance test.
12225         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
12226         guaranteed to provide what we need.
12227         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
12228         * modules/passfd-tests (Depends-on): Add sys_wait.
12229         * tests/test-passfd.c (main): Skip test on mingw, for now.
12230         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
12231         partial 'struct msghdr' implementation.
12232
12233         sys_uio: new module
12234         * modules/sys_uio: New module.
12235         * modules/sys_uio-tests: Likewise.
12236         * lib/sys_uio.in.h: New file.
12237         * m4/sys_uio_h.m4: Likewise.
12238         * tests/test-sys_uio.c: Likewise.
12239         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
12240         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
12241
12242 2011-04-20  Jim Meyering  <meyering@redhat.com>
12243
12244         useless-if-before-free: avoid false-positive
12245         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
12246         disjunct so that it too requires a terminating ";".  Without that,
12247         this script would identify as useless one statement from gcc that
12248         was not:
12249           if (aligned_ptr)
12250             free (((void **) aligned_ptr) [-1]);
12251
12252 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
12253
12254         doc: update users.txt.
12255         * users.txt: Add barcode.
12256
12257 2011-04-19  Bruno Haible  <bruno@clisp.org>
12258
12259         ioctl: Remove link dependency on native Windows.
12260         * lib/fd-hook.h: Renamed from lib/close-hook.h.
12261         (gl_close_fn, gl_ioctl_fn): New types.
12262         (struct fd_hook): Renamed from struct close_hook. Change type of
12263         private_close_fn field. Add private_ioctl_fn field.
12264         (close_hook_fn): Add parameter for primary close method.
12265         (execute_close_hooks, execute_all_close_hooks): Likewise.
12266         (ioctl_hook_fn): New type.
12267         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
12268         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
12269         argument.
12270         (unregister_fd_hook): Renamed from unregister_close_hook.
12271         * lib/fd-hook.c: Renamed from lib/close-hook.c.
12272         Don't include <unistd.h>.
12273         (close): Remove undef.
12274         (anchor): Update.
12275         (execute_close_hooks): Add argument for primary close method.
12276         (execute_all_close_hooks): Likewise.
12277         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
12278         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
12279         argument. Allow each argument to be NULL.
12280         (unregister_fd_hook): Renamed from unregister_close_hook.
12281         * lib/close.c (rpl_close): Pass 'close' function pointer to
12282         execute_all_close_hooks.
12283         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
12284         (primary_ioctl): New function.
12285         (ioctl): Don't call ioctlsocket here. Instead, call
12286         execute_all_ioctl_hooks.
12287         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
12288         close method.
12289         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
12290         (fd_sockets_hook): Renamed from close_sockets_hook.
12291         (gl_sockets_startup, gl_sockets_cleanup): Update.
12292         * modules/fd-hook: Renamed from modules/close-hook. Update.
12293         * modules/close (Depends-on): Add fd-hook, remove close-hook.
12294         * modules/sockets (Depends-on): Likewise.
12295         * modules/ioctl (Depends-on): Add fd-hook.
12296         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
12297         GNULIB_SOCKET.
12298
12299 2011-04-19  Bruno Haible  <bruno@clisp.org>
12300
12301         Move the support of O_NONBLOCK in open() to the 'open' module.
12302         * modules/nonblocking (Depends-on): Remove 'open'.
12303         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
12304         gl_cv_have_open_O_NONBLOCK.
12305         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
12306         O_NONBLOCK support.
12307         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
12308
12309 2011-04-17  Bruno Haible  <bruno@clisp.org>
12310
12311         pipe2: Simplify code.
12312         * lib/pipe2.c (pipe2): Reduce code duplication.
12313
12314 2011-04-17  Bruno Haible  <bruno@clisp.org>
12315
12316         nonblocking: Add comment.
12317         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
12318
12319 2011-04-17  Bruno Haible  <bruno@clisp.org>
12320
12321         nonblocking: Add tests for sockets.
12322         * tests/test-nonblocking-socket.sh: New file.
12323         * tests/test-nonblocking-socket-main.c: New file.
12324         * tests/test-nonblocking-socket-child.c: New file.
12325         * tests/test-nonblocking-socket.h: New file.
12326         * tests/socket-server.h: New file.
12327         * tests/socket-client.h: New file.
12328         * modules/nonblocking-socket-tests: New file.
12329         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
12330
12331 2011-04-17  Bruno Haible  <bruno@clisp.org>
12332
12333         nonblocking: Add tests for pipes.
12334         * tests/test-nonblocking-pipe.sh: New file.
12335         * tests/test-nonblocking-pipe-main.c: New file.
12336         * tests/test-nonblocking-pipe-child.c: New file.
12337         * tests/test-nonblocking-pipe.h: New file.
12338         * tests/test-nonblocking-writer.h: New file.
12339         * tests/test-nonblocking-reader.h: New file.
12340         * tests/test-nonblocking-misc.h: New file.
12341         * modules/nonblocking-pipe-tests: New file.
12342         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
12343
12344 2011-04-16  Bruno Haible  <bruno@clisp.org>
12345
12346         gettext: Clarify the needed programmer actions.
12347         * modules/gettext (Notice): New field.
12348         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
12349
12350 2011-04-16  Bruno Haible  <bruno@clisp.org>
12351
12352         strchrnul: Tweak last commit.
12353         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
12354         bug.
12355         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
12356         as in _GL_FUNCDECL_SYS.
12357         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
12358         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
12359
12360 2011-04-15  Eric Blake  <eblake@redhat.com>
12361
12362         strchrnul: work around cygwin bug
12363         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
12364         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
12365         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
12366         * modules/string (Makefile.am): Substitute it.
12367         * lib/string.in.h (strchrnul): Use it.
12368
12369 2011-04-15  Bruno Haible  <bruno@clisp.org>
12370
12371         Don't require lib/stdio-write.c when only module 'stdio' is used.
12372         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
12373         invocation.
12374         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
12375
12376 2011-04-14  Bruno Haible  <bruno@clisp.org>
12377
12378         Support non-blocking pipe I/O in read() on native Windows.
12379         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
12380         (read): New declaration.
12381         * lib/read.c: New file.
12382         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
12383         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
12384         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
12385         vscanf): New declarations.
12386         * lib/stdio-read.c: New file.
12387         * m4/read.m4: New file.
12388         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
12389         REPLACE_READ.
12390         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
12391         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12392         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
12393         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
12394         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
12395         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12396         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12397         * modules/read: New file.
12398         * modules/nonblocking (Files): Add lib/stdio-read.c.
12399         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
12400         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
12401         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12402         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12403         * modules/pread (Depends-on): Add read.
12404         * modules/safe-read (Depends-on): Likewise.
12405         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
12406         gets, scanf, vfscanf, vscanf): Verify signatures.
12407         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
12408         problem with non-blocking pipes.
12409         * doc/posix-functions/fgetc.texi: Likewise.
12410         * doc/posix-functions/fgets.texi: Likewise.
12411         * doc/posix-functions/fread.texi: Likewise.
12412         * doc/posix-functions/fscanf.texi: Likewise.
12413         * doc/posix-functions/getc.texi: Likewise.
12414         * doc/posix-functions/getchar.texi: Likewise.
12415         * doc/posix-functions/gets.texi: Likewise.
12416         * doc/posix-functions/scanf.texi: Likewise.
12417         * doc/posix-functions/vfscanf.texi: Likewise.
12418         * doc/posix-functions/vscanf.texi: Likewise.
12419
12420 2011-04-14  Bruno Haible  <bruno@clisp.org>
12421
12422         Support non-blocking pipe I/O in write() on native Windows.
12423         * lib/write.c (rpl_write): Split a write request that failed merely
12424         because the byte count was larger than the pipe buffer's size.
12425         * doc/posix-functions/write.texi: Mention the problem with large byte
12426         counts.
12427
12428 2011-04-14  Bruno Haible  <bruno@clisp.org>
12429
12430         wchar: Ensure that wchar_t gets defined on uClibc.
12431         * lib/wchar.in.h: On uClibc, include <stddef.h>.
12432         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
12433
12434 2011-04-13  Bruno Haible  <bruno@clisp.org>
12435
12436         safe-write, full-read: Avoid unnecessary compilation units.
12437         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
12438         (Depends-on): Remove safe-read. Add ssize_t.
12439         * modules/full-read (Files): Add lib/full-write.c.
12440         (Depends-on): Add full-write.
12441
12442 2011-04-13  Bruno Haible  <bruno@clisp.org>
12443
12444         Support non-blocking pipe I/O and SIGPIPE in pwrite().
12445         * modules/pwrite (Depends-on): Add 'write'.
12446
12447 2011-04-13  Bruno Haible  <bruno@clisp.org>
12448
12449         Support non-blocking pipe I/O in write() on native Windows.
12450         * lib/unistd.in.h (write): Enable replacement also if
12451         GNULIB_UNISTD_H_NONBLOCKING is 1.
12452         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
12453         (rpl_write): When failing to write on a non-blocking pipe, change
12454         errno from ENOSPC to EAGAIN.
12455         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
12456         putchar, puts, vfprintf, vprintf): Enable replacement also if
12457         GNULIB_STDIO_H_NONBLOCKING is 1.
12458         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
12459         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
12460         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
12461         CALL_WITH_SIGPIPE_EMULATION.
12462         (CALL_WITH_SIGPIPE_EMULATION): Use them.
12463         * m4/nonblocking.m4: New file.
12464         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
12465         for non-blocking I/O support.
12466         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12467         GNULIB_UNISTD_H_NONBLOCKING.
12468         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
12469         required for non-blocking I/O support.
12470         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
12471         * modules/nonblocking (Files): Add m4/nonblocking.m4,
12472         lib/stdio-write.c, m4/asm-underscore.m4.
12473         (Depends-on): Add stdio, unistd.
12474         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
12475         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
12476         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
12477         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
12478         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
12479         problem with non-blocking pipes.
12480         * doc/posix-functions/fputc.texi: Likewise.
12481         * doc/posix-functions/fputs.texi: Likewise.
12482         * doc/posix-functions/fwrite.texi: Likewise.
12483         * doc/posix-functions/printf.texi: Likewise.
12484         * doc/posix-functions/putc.texi: Likewise.
12485         * doc/posix-functions/putchar.texi: Likewise.
12486         * doc/posix-functions/puts.texi: Likewise.
12487         * doc/posix-functions/vfprintf.texi: Likewise.
12488         * doc/posix-functions/vprintf.texi: Likewise.
12489         * doc/posix-functions/write.texi: Likewise.
12490
12491 2011-04-10  Jim Meyering  <meyering@redhat.com>
12492
12493         maint.mk: prohibit doubled words
12494         Detect them also when they're separated by a newline.
12495         There are 3 ways to customize it:
12496           - disable the test on a per file basis, as usual with rules using
12497             $(VC_LIST_EXCEPT)
12498           - replace the default doubled-word-selecting regexp (affects all files)
12499           - ignore a particular file-vs-doubled-word match
12500         I nearly used that last one to ignore the "is is" match in
12501         coreutils' NEWS file, since the text was "ls -is is ..."
12502         To do that, I would have added this line to cfg.mk:
12503           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
12504         but it would have ignored any "is is" match in NEWS.
12505         Low probability, but still...
12506         Instead, I changed the text, slightly:
12507           -  ls -is is now consistent with ls -lis in ignoring values returned
12508           +  "ls -is" is now consistent with ls -lis in ignoring values returned
12509         * top/maint.mk (prohibit_double_word_RE_): Provide default.
12510         (prohibit_doubled_word_): Define.
12511         (sc_prohibit_doubled_word): New rule.
12512         (sc_prohibit_the_the): Remove.  Subsumed by the above.
12513
12514 2011-04-10  Jim Meyering  <meyering@redhat.com>
12515
12516         maint: fix doubled-word typo in comment
12517         * m4/gethostname.m4: s/is is/it is/
12518         * m4/getdomainname.m4: Likewise.
12519
12520 2011-04-10  Jim Meyering  <meyering@redhat.com>
12521
12522         maint: remove doubled word: s/it it/it/
12523         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
12524
12525 2011-04-10  Jim Meyering  <meyering@redhat.com>
12526
12527         maint.mk: remove useless semicolon and backslash
12528         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
12529         semicolon and backslash.
12530
12531 2011-04-10  Bruno Haible  <bruno@clisp.org>
12532
12533         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
12534         * modules/stdint-tests (Depends-on): Add wchar.
12535
12536 2011-04-10  Jim Meyering  <meyering@redhat.com>
12537
12538         maint: remove doubled words in comments, e.g., s/a a/a/
12539         * lib/strptime.c (day_of_the_week): s/the the/the/
12540         * tests/test-chown.h (test_chown): s/a a/a/
12541
12542         test-chown.h: correct a cast
12543         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
12544         when the destination is a stat.st_gid.
12545
12546 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
12547
12548         getaddrinfo: Fix test for sa_len member.
12549         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
12550         include <sys/types.h> before <sys/socket.h>.
12551
12552 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
12553
12554         maint: change "can not" to "cannot"
12555         * doc/posix-functions/iconv.texi (iconv): This one crossed line
12556         boundaries.
12557
12558 2011-04-09  Jim Meyering  <meyering@redhat.com>
12559
12560         maint: change "a a" to "a"
12561         * tests/test-lchown.h (test_lchown): s/a a/a/
12562
12563         maint.mk: prohibit \<the the\>
12564         * top/maint.mk (sc_prohibit_the_the): New rule.
12565
12566         maint: fix "the the" in comment
12567         * lib/count-one-bits.h: s/the the/the/
12568
12569         maint: change "can not" to "cannot"
12570         But do not change the occurrences in maintain.texi or in
12571         build-aux/po/Makefile.in.in, which I presume comes from gettext.
12572         * doc/gnulib-tool.texi: s/can not/cannot/
12573         * doc/posix-functions/accept.texi (accept): Likewise.
12574         * doc/posix-functions/socket.texi (socket): Likewise.
12575         * lib/mbrtowc.c: Likewise.
12576
12577         maint.mk: prohibit use of "can not"
12578         * top/maint.mk (sc_prohibit_can_not): New rule.
12579         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
12580
12581 2011-04-09  Bruno Haible  <bruno@clisp.org>
12582
12583         careadlinkat: Guard against misuse of careadlinkatcwd.
12584         * lib/careadlinkat.c: Include <stdlib.h>.
12585         (careadlinkatcwd): Check that the fd argument is as expected.
12586
12587 2011-04-09  Bruno Haible  <bruno@clisp.org>
12588
12589         careadlinkat: Use common coding style.
12590         * lib/careadlinkat.c: Move gnulib includes after system includes.
12591
12592 2011-04-09  Bruno Haible  <bruno@clisp.org>
12593
12594         careadlinkat: Clarify specification.
12595         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
12596         (careadlinkatcwd): Add comment.
12597         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
12598
12599 2011-04-09  Bruno Haible  <bruno@clisp.org>
12600
12601         areadlinkat: Avoid link error on many platforms.
12602         * modules/areadlinkat (Depends-on): Add areadlink.
12603
12604 2011-04-09  Bruno Haible  <bruno@clisp.org>
12605
12606         allocator, careadlinkat: Fix double-inclusion guard.
12607         * lib/allocator.h: Fix double-inclusion guard.
12608         * lib/careadlinkat.h: Likewise.
12609
12610 2011-04-09  Bruno Haible  <bruno@clisp.org>
12611
12612         relocatable-prog-wrapper: Update after module 'areadlink' changed.
12613         * lib/relocwrapper.c: Update dependencies hierarchy.
12614         * build-aux/install-reloc: Update list of files to be compiled.
12615         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
12616         lib/allocator.[hc].
12617
12618 2011-04-08  Eric Blake  <eblake@redhat.com>
12619
12620         strftime: silence gnulib-tool warning
12621         * modules/strftime-tests (Depends-on): Drop automatic dependency.
12622
12623 2011-04-08  Bruno Haible  <bruno@clisp.org>
12624
12625         verify: Fix syntax error with GCC 4.6 in C++ mode.
12626         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
12627         (HAVE_STATIC_ASSERT): New macro.
12628         (verify_true, verify): Use 'static_assert' if it is supported and
12629         '_Static_assert' is not supported.
12630
12631 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
12632
12633         allocator: New module.
12634         * modules/allocator, lib/allocator.c: New files.
12635         * lib/allocator.h (stdlib_allocator): New decl.
12636         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
12637         Remove.  Do not include <stdlib.h>.
12638         (careadlinkat): Use stdlib_allocator instead of rolling our own.
12639         * modules/careadlinkat (Files): Remove lib/allocator.h.
12640         (Depends-on): Add allocator.
12641
12642         stdlib: let modules use system malloc, realloc
12643         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
12644         if !_GL_USE_STDLIB_ALLOC.
12645         (malloc, realloc): Limit this change to a smaller scope.
12646
12647         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
12648         (malloc, realloc): Don't #undef; no longer needed.
12649         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12650         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12651         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12652         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12653         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12654         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12655         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12656         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12657
12658         careadlinkat: rename members to avoid problem
12659         * lib/allocator.h (struct allocator): Rename members from
12660         malloc/realloc to allocate/reallocate, to avoid problems if malloc
12661         and realloc are #define'd.  Reported by Eric Blake in
12662         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
12663         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
12664
12665 2011-04-08  Eric Blake  <eblake@redhat.com>
12666
12667         nonblocking: reduce dependency
12668         * tests/test-nonblocking.c: Only test sockets when in use.
12669         * modules/nonblocking-tests (Depends-on): Drop socket.
12670         (Makefile.am): Link even if sockets are not present.
12671         * modules/pipe2-tests (Makefile.am): Likewise.
12672         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
12673
12674         pipe2: fix O_NONBLOCK support on mingw
12675         * modules/pipe2 (Depends-on): Add nonblocking.
12676         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
12677         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
12678         * tests/test-nonblocking.c (main): Likewise.
12679         * modules/pipe2-tests (Makefile.am): Avoid link failure.
12680
12681         fcntl-h: fix O_ACCMODE on cygwin
12682         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
12683         * lib/fcntl.in.h (O_ACCMODE): Fix it.
12684
12685         pipe-filter: drop O_NONBLOCK workarounds
12686         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
12687         * modules/pipe-filter-ii (Depends-on): Likewise.
12688         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
12689
12690         nonblocking: provide O_NONBLOCK for mingw
12691         * modules/nonblocking (Depends-on): Add open.
12692         (configure.ac): Set new witness macro.
12693         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
12694         * modules/fcntl-h (Makefile.am): Substitute it.
12695         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
12696         nonblocking module is in use.
12697         * lib/nonblocking.c: Adjust portability test.
12698         * lib/open.c (open): Don't let native open see gnulib flag.
12699         * tests/test-fcntl-h.c (main): Enhance test.
12700         * tests/test-open.h (test_open): Likewise.
12701         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
12702
12703         careadlinkat: fix compilation error on mingw
12704         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
12705         within struct allocator.
12706
12707 2011-04-06  Eric Blake  <eblake@redhat.com>
12708
12709         binary-io: relicense under LGPLv2+
12710         * modules/binary-io (License): Relax to LGPLv2+.
12711         Requested for libvirt, and required by pipe2.
12712
12713 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
12714
12715         verify: use _Static_assert if available
12716         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
12717         (verify_true, verify): Use it if available.  This generates better
12718         diagnostics with GCC 4.6.0 and later.
12719
12720 2011-04-05  Bruno Haible  <bruno@clisp.org>
12721
12722         Remove leftover generated .h files after config.status changed.
12723
12724         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
12725         GL_GENERATE_ALLOCA_H.
12726         * modules/alloca-opt (Makefile.am): Remove alloca.h if
12727         GL_GENERATE_ALLOCA_H evaluates to false.
12728
12729         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
12730         GL_GENERATE_ARGZ_H.
12731         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
12732         evaluates to false.
12733
12734         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
12735         GL_GENERATE_BYTESWAP_H.
12736         * modules/byteswap (Makefile.am): Remove byteswap.h if
12737         GL_GENERATE_BYTESWAP_H evaluates to false.
12738
12739         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
12740         GL_GENERATE_ERRNO_H.
12741         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
12742         evaluates to false.
12743
12744         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
12745         GL_GENERATE_FLOAT_H.
12746         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
12747         evaluates to false.
12748
12749         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
12750         GL_GENERATE_FNMATCH_H.
12751         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
12752         GL_GENERATE_FNMATCH_H evaluates to false.
12753
12754         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
12755         GL_GENERATE_GLOB_H.
12756         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
12757         evaluates to false.
12758
12759         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
12760         automake conditional GL_GENERATE_ICONV_H.
12761         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
12762         evaluates to false.
12763
12764         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
12765         GL_GENERATE_NETINET_IN_H.
12766         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
12767         GL_GENERATE_NETINET_IN_H evaluates to false.
12768
12769         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
12770         conditional GL_GENERATE_PTHREAD_H.
12771         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
12772         * modules/pthread (Makefile.am): Remove pthread.h if
12773         GL_GENERATE_PTHREAD_H evaluates to false.
12774
12775         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
12776         GL_GENERATE_SCHED_H.
12777         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
12778         evaluates to false.
12779
12780         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
12781         conditional GL_GENERATE_SELINUX_CONTEXT_H.
12782         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
12783         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
12784
12785         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
12786         GL_GENERATE_STDARG_H.
12787         * modules/stdarg (Makefile.am): Remove stdarg.h if
12788         GL_GENERATE_STDARG_H evaluates to false.
12789
12790         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
12791         GL_GENERATE_STDBOOL_H.
12792         * modules/stdbool (Makefile.am): Remove stdbool.h if
12793         GL_GENERATE_STDBOOL_H evaluates to false.
12794
12795         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
12796         conditional GL_GENERATE_STDDEF_H.
12797         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
12798         * modules/stddef (Makefile.am): Remove stddef.h if
12799         GL_GENERATE_STDDEF_H evaluates to false.
12800
12801         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
12802         GL_GENERATE_STDINT_H.
12803         * modules/stdint (Makefile.am): Remove stdint.h if
12804         GL_GENERATE_STDINT_H evaluates to false.
12805
12806         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
12807         GL_GENERATE_SYSEXITS_H.
12808         * modules/sysexits (Makefile.am): Remove sysexits.h if
12809         GL_GENERATE_SYSEXITS_H evaluates to false.
12810
12811         Reported by Karl Berry and Ralf Wildenhues.
12812
12813 2011-04-05  Bruno Haible  <bruno@clisp.org>
12814
12815         Ensure to rebuild generated .h files when config.status has changed.
12816         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
12817         config.status.
12818         * modules/ctype (Makefile.am): Likewise.
12819         * modules/dirent (Makefile.am): Likewise.
12820         * modules/errno (Makefile.am): Likewise.
12821         * modules/fcntl-h (Makefile.am): Likewise.
12822         * modules/float (Makefile.am): Likewise.
12823         * modules/getopt-posix (Makefile.am): Likewise.
12824         * modules/glob (Makefile.am): Likewise.
12825         * modules/iconv-h (Makefile.am): Likewise.
12826         * modules/inttypes (Makefile.am): Likewise.
12827         * modules/langinfo (Makefile.am): Likewise.
12828         * modules/locale (Makefile.am): Likewise.
12829         * modules/math (Makefile.am): Likewise.
12830         * modules/netdb (Makefile.am): Likewise.
12831         * modules/netinet_in (Makefile.am): Likewise.
12832         * modules/poll-h (Makefile.am): Likewise.
12833         * modules/pthread (Makefile.am): Likewise.
12834         * modules/pty (Makefile.am): Likewise.
12835         * modules/sched (Makefile.am): Likewise.
12836         * modules/search (Makefile.am): Likewise.
12837         * modules/selinux-h (Makefile.am): Likewise.
12838         * modules/signal (Makefile.am): Likewise.
12839         * modules/spawn (Makefile.am): Likewise.
12840         * modules/stdarg (Makefile.am): Likewise.
12841         * modules/stdbool (Makefile.am): Likewise.
12842         * modules/stddef (Makefile.am): Likewise.
12843         * modules/stdint (Makefile.am): Likewise.
12844         * modules/stdio (Makefile.am): Likewise.
12845         * modules/stdlib (Makefile.am): Likewise.
12846         * modules/string (Makefile.am): Likewise.
12847         * modules/strings (Makefile.am): Likewise.
12848         * modules/sys_file (Makefile.am): Likewise.
12849         * modules/sys_ioctl (Makefile.am): Likewise.
12850         * modules/sys_select (Makefile.am): Likewise.
12851         * modules/sys_socket (Makefile.am): Likewise.
12852         * modules/sys_stat (Makefile.am): Likewise.
12853         * modules/sys_time (Makefile.am): Likewise.
12854         * modules/sys_times (Makefile.am): Likewise.
12855         * modules/sys_utsname (Makefile.am): Likewise.
12856         * modules/sys_wait (Makefile.am): Likewise.
12857         * modules/sysexits (Makefile.am): Likewise.
12858         * modules/termios (Makefile.am): Likewise.
12859         * modules/time (Makefile.am): Likewise.
12860         * modules/unistd (Makefile.am): Likewise.
12861         * modules/wchar (Makefile.am): Likewise.
12862         * modules/wctype-h (Makefile.am): Likewise.
12863         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
12864
12865 2011-04-05  Bruno Haible  <bruno@clisp.org>
12866
12867         pipe2: Relicense under LGPLv2+.
12868         * modules/pipe2 (License): Change to LGPLv2+.
12869         Requested by Eric Blake, for libvirt.
12870
12871 2011-04-05  Bruce Korb  <bkorb@gnu.org>
12872
12873         bootstrap: compute gnulib_extra_files after updating build_aux
12874         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
12875         change build_aux or also supply gnulib_extra_files.  Handle correctly.
12876
12877 2011-04-05  Eric Blake  <eblake@redhat.com>
12878
12879         bootstrap: preserve git whitelist item sorting
12880         * build-aux/bootstrap (sort_patterns): New function.
12881         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
12882
12883 2011-04-05  Simon Josefsson  <simon@josefsson.org>
12884
12885         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
12886         sc_space_tab check.
12887
12888 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
12889
12890         areadlink, areadlinkat: rewrite in terms of careadlinkat
12891         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
12892         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
12893         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
12894         (malloc, realloc): Remove #undefs.
12895         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
12896         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
12897         readlink, ssize_t, stdint, unistd.
12898         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
12899         areadlink, stdint.
12900
12901         careadlinkat: new module
12902         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
12903         * modules/careadlinkat: New files, written by me with
12904         a review and feedback from Ben Pfaff in
12905         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
12906
12907 2011-04-01  Bruno Haible  <bruno@clisp.org>
12908
12909         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
12910         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
12911         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
12912         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
12913         Reported by Bruce Korb <bruce.korb@gmail.com>.
12914
12915 2011-04-01  Bruno Haible  <bruno@clisp.org>
12916
12917         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
12918         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
12919         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
12920         * modules/wcpcpy (Depends-on): Add extensions.
12921         * modules/wcpncpy (Depends-on): Likewise.
12922         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
12923         systems.
12924         * doc/posix-functions/wcpncpy.texi: Likewise.
12925         * doc/posix-functions/wcwidth.texi: Likewise.
12926
12927 2011-03-31  Eric Blake  <eblake@redhat.com>
12928
12929         nonblocking: fix mingw test failures
12930         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
12931         non-blocking flag on regular file.
12932         (get_nonblocking_flag): Set errno on invalid fd.
12933         * tests/test-nonblocking.c (main): Avoid test failure on
12934         directories if fchdir is not active.
12935         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
12936
12937 2011-03-31  Bruno Haible  <bruno@clisp.org>
12938
12939         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
12940         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
12941         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
12942         Reported by Simon Josefsson <simon@josefsson.org>.
12943
12944 2011-03-31  Bruno Haible  <bruno@clisp.org>
12945         and Eric Blake  <eblake@redhat.com>
12946
12947         nonblocking: new module
12948         * modules/nonblocking: New module.
12949         * modules/nonblocking-tests: Likewise.
12950         * lib/nonblocking.h: New file.
12951         * lib/nonblocking.c: Likewise.
12952         * tests/test-nonblocking.c: New test.
12953         * lib/ioctl.c (ioctl) [mingw]: Update comment.
12954
12955 2011-03-30  Bruno Haible  <bruno@clisp.org>
12956
12957         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
12958         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
12959         instead of 'printf' format for GCC >= 4.4.
12960         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
12961         (fprintf, printf, vfprintf, vprintf): Declare with
12962         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
12963         the system's vfprintf() function.
12964         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
12965
12966 2011-03-30  Eric Blake  <eblake@redhat.com>
12967
12968         passfd: fix scoping bug
12969         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
12970         before sendmsg/recvmsg.
12971
12972         passfd: standardize coding conventions
12973         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
12974         can be learned at compile time.
12975         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
12976         ifdefs.
12977         (sendfd, recvfd): Follow gnulib code conventions.
12978
12979         passfd: fix incorrect sendmsg arguments
12980         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
12981         incorrect msg_controllen value.
12982         * modules/passfd-tests (Depends-on): Check for alarm.
12983         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
12984         Reported by Bastien ROUCARIES.
12985
12986 2011-03-30  Bruno Haible  <bruno@clisp.org>
12987
12988         c-strcasestr: Relicense under LGPLv2+.
12989         * modules/c-strcasestr (License): Change to LGPLv2+.
12990         Requested by Eric Blake, for libvirt.
12991
12992 2011-03-30  Simon Josefsson  <simon@josefsson.org>
12993
12994         * users.txt: Add libidn2.  Fix libtasn1 link.
12995
12996 2011-03-30  Jim Meyering  <meyering@redhat.com>
12997
12998         tests: readlink* ("",... fails with EINVAL on newer kernels
12999         readlink and readlinkat have typically failed with ENOENT for
13000         the invalid, empty file name,  "".  However, with the advent
13001         of linux-2.6.39, they fail with EINVAL.
13002         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
13003         when operating on the empty file name.
13004         * tests/test-readlink.h (test_readlink): Likewise.
13005
13006 2011-03-29  Bruno Haible  <bruno@clisp.org>
13007
13008         Relicense some modules under LGPLv2+, for libidn2.
13009         * modules/array-mergesort (License): Change to LGPLv2+.
13010         * modules/c-strcaseeq (License): Likewise.
13011         * modules/striconveh (License): Likewise.
13012         * modules/striconveha (License): Likewise.
13013         * modules/uniconv/base (License): Likewise.
13014         * modules/uniconv/u8-conv-from-enc (License): Likewise.
13015         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
13016         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
13017         * modules/unictype/base (License): Likewise.
13018         * modules/unictype/bidiclass-of (License): Likewise.
13019         * modules/unictype/category-M (License): Likewise.
13020         * modules/unictype/category-none (License): Likewise.
13021         * modules/unictype/category-of (License): Likewise.
13022         * modules/unictype/category-test (License): Likewise.
13023         * modules/unictype/category-test-withtable (License): Likewise.
13024         * modules/unictype/combining-class (License): Likewise.
13025         * modules/unictype/joiningtype-of (License): Likewise.
13026         * modules/unictype/scripts (License): Likewise.
13027         * modules/uninorm/base (License): Likewise.
13028         * modules/uninorm/canonical-decomposition (License): Likewise.
13029         * modules/uninorm/composition (License): Likewise.
13030         * modules/uninorm/decompose-internal (License): Likewise.
13031         * modules/uninorm/decomposition-table (License): Likewise.
13032         * modules/uninorm/nfc (License): Likewise.
13033         * modules/uninorm/nfd (License): Likewise.
13034         * modules/uninorm/u32-normalize (License): Likewise.
13035         * modules/unistr/base (License): Likewise.
13036         * modules/unistr/u32-cpy (License): Likewise.
13037         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
13038         * modules/unistr/u32-to-u8 (License): Likewise.
13039         * modules/unistr/u32-uctomb (License): Likewise.
13040         * modules/unistr/u8-check (License): Likewise.
13041         * modules/unistr/u8-mblen (License): Likewise.
13042         * modules/unistr/u8-mbtouc (License): Likewise.
13043         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
13044         * modules/unistr/u8-mbtoucr (License): Likewise.
13045         * modules/unistr/u8-prev (License): Likewise.
13046         * modules/unistr/u8-strlen (License): Likewise.
13047         * modules/unistr/u8-to-u32 (License): Likewise.
13048         * modules/unistr/u8-uctomb (License): Likewise.
13049         * modules/unitypes (License): Likewise.
13050         Requested by Simon Josefsson.
13051
13052 2011-03-29  Simon Josefsson  <simon@josefsson.org>
13053
13054         lib-symbol-visibility: Add a notice.
13055         * modules/lib-symbol-visibility (Notice): New field.
13056
13057 2011-03-29  Bruno Haible  <bruno@clisp.org>
13058
13059         getaddrinfo: Doc fix.
13060         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
13061         section "fixed in Gnulib".
13062
13063 2011-03-28  Simon Josefsson  <simon@josefsson.org>
13064
13065         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
13066         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
13067
13068 2011-03-26  Bruno Haible  <bruno@clisp.org>
13069
13070         unictype/property-byname: Reduce the number of load-time relocations.
13071         * lib/unictype/pr_byname.c: Include <stdlib.h>.
13072         (UC_PROPERTY_INDEX_*): New enumeration values.
13073         (uc_property_byname): Convert an index from the lookup table to an
13074         uc_property_t.
13075         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
13076         values.
13077
13078 2011-03-26  Bruno Haible  <bruno@clisp.org>
13079
13080         unictype/property-byname: Allow omitted word separators and aliases.
13081         * lib/unictype/pr_byname.gperf: Add property names without word
13082         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
13083         for 'space'.
13084
13085 2011-03-26  Bruno Haible  <bruno@clisp.org>
13086
13087         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
13088         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
13089         also hyphens to space.
13090         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
13091         without spaces.
13092         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
13093
13094 2011-03-26  Bruno Haible  <bruno@clisp.org>
13095
13096         unictype/joiningtype-byname: Recognize long names as well.
13097         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
13098         a long name.
13099         * lib/unictype/joiningtype_byname.c: Include <string.h>,
13100         unictype/joiningtype_byname.h.
13101         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
13102         * lib/unictype/joiningtype_byname.gperf: New file.
13103         * modules/unictype/joiningtype-byname (Files): Add
13104         lib/unictype/joiningtype_byname.gperf.
13105         (Depends-on): Add gperf.
13106         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
13107         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
13108         long names.
13109
13110         Tests for module 'unictype/joiningtype-longname'.
13111         * modules/unictype/joiningtype-longname-tests: New file.
13112         * tests/unictype/test-joiningtype_longname.c: New file.
13113
13114         New module 'unictype/joiningtype-longname'.
13115         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
13116         * lib/unictype/joiningtype_longname.c: New file.
13117         * modules/unictype/joiningtype-longname: New file.
13118         * modules/unictype/joiningtype-all (Depends-on): Add
13119         unictype/joiningtype-longname.
13120
13121 2011-03-26  Bruno Haible  <bruno@clisp.org>
13122
13123         unictype/bidiclass-byname: Recognize long names as well.
13124         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
13125         name.
13126         * lib/unictype/bidi_byname.c: Include <string.h>,
13127         unictype/bidi_byname.h.
13128         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
13129         * lib/unictype/bidi_byname.gperf: New file.
13130         * modules/unictype/bidiclass-byname (Files): Add
13131         lib/unictype/bidi_byname.gperf.
13132         (Depends-on): Add gperf.
13133         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
13134         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
13135         long names.
13136
13137         Tests for module 'unictype/bidiclass-longname'.
13138         * modules/unictype/bidiclass-longname-tests: New file.
13139         * tests/unictype/test-bidi_longname.c: New file.
13140
13141         New module 'unictype/bidiclass-longname'.
13142         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
13143         * lib/unictype/bidi_longname.c: New file.
13144         * modules/unictype/bidiclass-longname: New file.
13145         * modules/unictype/bidiclass-all (Depends-on): Add
13146         unictype/bidiclass-longname.
13147
13148 2011-03-26  Bruno Haible  <bruno@clisp.org>
13149
13150         unictype/bidi*: Rename modules.
13151         * modules/unictype/bidiclass-all: Renamed from
13152         modules/unictype/bidicategory-all.
13153         * modules/unictype/bidiclass-name: Renamed from
13154         modules/unictype/bidiclass-name.
13155         (Description): Update.
13156         * modules/unictype/bidiclass-name-tests: Renamed from
13157         modules/unictype/bidicategory-name-tests.
13158         * modules/unictype/bidiclass-byname: Renamed from
13159         modules/unictype/bidicategory-byname.
13160         (Description): Update.
13161         * modules/unictype/bidiclass-byname-tests: Renamed from
13162         modules/unictype/bidicategory-byname-tests.
13163         * modules/unictype/bidiclass-of: Renamed from
13164         modules/unictype/bidicategory-of.
13165         (Description): Update.
13166         * modules/unictype/bidiclass-of-tests: Renamed from
13167         modules/unictype/bidicategory-of-tests.
13168         * modules/unictype/bidiclass-test: Renamed from
13169         modules/unictype/bidicategory-test.
13170         (Description): Update.
13171         * modules/unictype/bidiclass-test-tests: Renamed from
13172         modules/unictype/bidicategory-test-tests.
13173         * modules/unictype/bidicategory-all: New file, a simple redirection.
13174         * modules/unictype/bidicategory-name: Likewise.
13175         * modules/unictype/bidicategory-byname: Likewise.
13176         * modules/unictype/bidicategory-of: Likewise.
13177         * modules/unictype/bidicategory-test: Likewise.
13178         * modules/unictype/property-bidi-* (Dependencies): Update.
13179         * lib/unictype/bidi_*.c: Update comment.
13180
13181 2011-03-26  Bruno Haible  <bruno@clisp.org>
13182
13183         unictype/bidi*: Rename functions, part 2.
13184         * modules/unictype/bidicategory-name (configure.ac): Update required
13185         libunistring version.
13186         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
13187
13188 2011-03-25  Bruno Haible  <bruno@clisp.org>
13189
13190         New module 'unictype/combining-class-all'.
13191         * modules/unictype/combining-class-all: New file.
13192
13193         Tests for module 'unictype/combining-class-byname'.
13194         * modules/unictype/combining-class-byname-tests: New file.
13195         * tests/unictype/test-combiningclass_byname.c: New file.
13196
13197         New module 'unictype/combining-class-byname'.
13198         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
13199         * lib/unictype/combiningclass_byname.c: New file.
13200         * lib/unictype/combiningclass_byname.gperf: New file.
13201         * modules/unictype/combining-class-byname: New file.
13202
13203         Tests for module 'unictype/combining-class-longname'.
13204         * modules/unictype/combining-class-longname-tests: New file.
13205         * tests/unictype/test-combiningclass_longname.c: New file.
13206
13207         New module 'unictype/combining-class-longname'.
13208         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
13209         * lib/unictype/combiningclass_longname.c: New file.
13210         * modules/unictype/combining-class-longname: New file.
13211
13212         Tests for module 'unictype/combining-class-name'.
13213         * modules/unictype/combining-class-name-tests: New file.
13214         * tests/unictype/test-combiningclass_name.c: New file.
13215
13216         New module 'unictype/combining-class-name'.
13217         * lib/unictype.in.h (uc_combining_class_name): New declaration.
13218         * lib/unictype/combiningclass_name.c: New file.
13219         * modules/unictype/combining-class-name: New file.
13220
13221 2011-03-25  Bruno Haible  <bruno@clisp.org>
13222
13223         unictype/combining-class: Rename source files.
13224         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
13225         of unictype/combining.h.
13226         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
13227         Update.
13228         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
13229         * modules/unictype/combining-class (Description): Fix.
13230         (Files, Makefile.am): Update.
13231         * tests/unictype/test-combiningclass.c: Renamed from
13232         tests/unictype/test-combining.c.
13233         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
13234
13235 2011-03-25  Bruno Haible  <bruno@clisp.org>
13236
13237         unictype: Update list of canonical combining classes.
13238         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
13239
13240 2011-03-25  Bruno Haible  <bruno@clisp.org>
13241
13242         unictype/category-byname: Recognize long names as well.
13243         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
13244         a long name.
13245         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
13246         unictype/categ_byname.h.
13247         (UC_CATEGORY_INDEX_*): New enumeration values.
13248         (uc_general_category_byname): Use uc_general_category_lookup and
13249         convert from index to value.
13250         * lib/unictype/categ_byname.gperf: New file.
13251         * modules/unictype/category-byname (Files): Add
13252         lib/unictype/categ_byname.gperf.
13253         (Depends-on): Add gperf.
13254         (Makefile.am): Add rule for generating unictype/categ_byname.h.
13255         * tests/unictype/test-categ_byname.c (main): Test the recognition of
13256         long names.
13257
13258         Tests for module 'unictype/category-longname'.
13259         * modules/unictype/category-longname-tests: New file.
13260         * tests/unictype/test-categ_longname.c: New file.
13261
13262         New module 'unictype/category-longname'.
13263         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
13264         * lib/unictype/categ_longname.c: New file.
13265         * modules/unictype/category-longname: New file.
13266         * modules/unictype/category-all (Depends-on): Add it.
13267
13268 2011-03-25  Bruno Haible  <bruno@clisp.org>
13269
13270         Tests for module 'unictype/category-LC'.
13271         * modules/unictype/category-LC-tests: New file.
13272         * tests/unictype/test-categ_LC.c: New file, automatically generated.
13273
13274         New module 'unictype/category-LC'.
13275         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
13276         (UC_CATEGORY_LC): New declaration.
13277         (UC_CASED_LETTER): New macro.
13278         * lib/gen-uni-tables.c (is_category_LC): New function.
13279         (output_categories): Also handle category LC.
13280         (UC_CATEGORY_MASK_LC): New enumeration value.
13281         (general_category_byname): Also handle category LC.
13282         * lib/unictype/categ_LC.c: New file.
13283         * lib/unictype/categ_LC.h: New file, automatically generated.
13284         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
13285         category LC.
13286         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
13287         * modules/unictype/category-LC: New file.
13288         * modules/unictype/category-byname (Depends-on): Add
13289         unictype/category-LC.
13290         * modules/unictype/category-all (Depends-on): Likewise.
13291
13292 2011-03-25  Eric Blake  <eblake@redhat.com>
13293
13294         xmalloc: revert yesterday's regression
13295         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
13296         realloc's underlying behavior (allowing allocation of zero-size
13297         objects, especially if malloc-gnu is also in use).
13298
13299 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
13300
13301         maint.mk: add missing version to VC-tag
13302         * top/maint.mk: git tag was missing actual tag name; add it.
13303
13304         valgrind: do leak checking, and exit with code 1 on error (not 0)
13305         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
13306         to VALGRIND.
13307
13308 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
13309
13310         posix-modules: say what it does.
13311         * posix-modules: Add a line to the --help output saying what it does.
13312
13313 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
13314
13315         xmalloc: Do not leak if underlying realloc is C99 compatible.
13316         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
13317         This avoids a leak on C99-based systems.  See
13318         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
13319
13320 2011-03-24  Eric Blake  <eblake@redhat.com>
13321
13322         realloc: document portability problem
13323         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
13324         passing 0 size to realloc.
13325
13326 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
13327
13328         doc: update users.txt
13329         * users.txt: Add cvsps, tmpwatch
13330
13331 2011-03-23  Matt Rice  <ratmice@gmail.com>
13332
13333         doc: update users.txt
13334         * users.txt: Add gdb.
13335
13336 2011-03-23  Jim Meyering  <meyering@redhat.com>
13337
13338         doc: update users.txt
13339         Looking through matches up to the following URL (there are still
13340         several more pages), I found several projects that use gnulib:
13341         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
13342         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
13343         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
13344
13345 2011-03-22  Bruno Haible  <bruno@clisp.org>
13346
13347         unictype/bidi*: Rename functions.
13348         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
13349         uc_bidi_class, uc_is_bidi_class): New declarations.
13350         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
13351         uc_bidi_category_byname.
13352         (uc_bidi_category_byname): New function.
13353         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
13354         u_bidi_category_name.
13355         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
13356         (uc_bidi_category_name): New function.
13357         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
13358         uc_bidi_category.
13359         (uc_bidi_category): New function.
13360         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
13361         uc_is_bidi_category. Invoke uc_bidi_class.
13362         (uc_is_bidi_category): New function.
13363         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
13364         instead of uc_bidi_category_byname.
13365         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
13366         instead of uc_bidi_category_name.
13367         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
13368         uc_bidi_category.
13369         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
13370         instead of uc_is_bidi_category.
13371
13372 2011-03-21  Bruno Haible  <bruno@clisp.org>
13373
13374         New module 'unictype/joininggroup-all'.
13375         * modules/unictype/joininggroup-all: New file.
13376
13377         Tests for module 'unictype/joininggroup-of'.
13378         * modules/unictype/joininggroup-of-tests: New file.
13379         * tests/unictype/test-joininggroup_of.c: New file.
13380         * tests/unictype/test-joininggroup_of.h: New file, automatically
13381         generated by gen-uni-tables.
13382
13383         New module 'unictype/joininggroup-of'.
13384         * modules/unictype/joininggroup-of: New file.
13385         * lib/unictype/joininggroup_of.c: New file.
13386         * lib/unictype/joininggroup_of.h: New file, automatically generated by
13387         gen-uni-tables.
13388
13389         Tests for module 'unictype/joininggroup-byname'.
13390         * modules/unictype/joininggroup-byname-tests: New file.
13391         * tests/unictype/test-joininggroup_byname.c: New file.
13392
13393         New module 'unictype/joininggroup-byname'.
13394         * modules/unictype/joininggroup-byname: New file.
13395         * lib/unictype/joininggroup_byname.c: New file.
13396         * lib/unictype/joininggroup_byname.gperf: New file.
13397
13398         Tests for module 'unictype/joininggroup-name'.
13399         * modules/unictype/joininggroup-name-tests: New file.
13400         * tests/unictype/test-joininggroup_name.c: New file.
13401
13402         New module 'unictype/joininggroup-name'.
13403         * modules/unictype/joininggroup-name: New file.
13404         * lib/unictype/joininggroup_name.c: New file.
13405         * lib/unictype/joininggroup_name.h: New file.
13406
13407         New module 'unictype/joiningtype-all'.
13408         * modules/unictype/joiningtype-all: New file.
13409
13410         Tests for module 'unictype/joiningtype-of'.
13411         * modules/unictype/joiningtype-of-tests: New file.
13412         * tests/unictype/test-joiningtype_of.c: New file.
13413         * tests/unictype/test-joiningtype_of.h: New file, automatically
13414         generated by gen-uni-tables.
13415
13416         New module 'unictype/joiningtype-of'.
13417         * modules/unictype/joiningtype-of: New file.
13418         * lib/unictype/joiningtype_of.c: New file.
13419         * lib/unictype/joiningtype_of.h: New file, automatically generated by
13420         gen-uni-tables.
13421
13422         Tests for module 'unictype/joiningtype-byname'.
13423         * modules/unictype/joiningtype-byname-tests: New file.
13424         * tests/unictype/test-joiningtype_byname.c: New file.
13425
13426         New module 'unictype/joiningtype-byname'.
13427         * modules/unictype/joiningtype-byname: New file.
13428         * lib/unictype/joiningtype_byname.c: New file.
13429
13430         Tests for module 'unictype/joiningtype-name'.
13431         * modules/unictype/joiningtype-name-tests: New file.
13432         * tests/unictype/test-joiningtype_name.c: New file.
13433
13434         New module 'unictype/joiningtype-name'.
13435         * modules/unictype/joiningtype-name: New file.
13436         * lib/unictype/joiningtype_name.c: New file.
13437
13438         unictype: Add support for Arabic shaping properties.
13439         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
13440         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
13441         declarations.
13442         (UC_JOINING_GROUP_*): New enumeration values.
13443         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
13444         declarations.
13445         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
13446         (unicode_joining_type): New variable.
13447         (UC_JOINING_GROUP_*): New enumeration values.
13448         (unicode_joining_group): New variable.
13449         (fill_arabicshaping, joining_type_as_c_identifier,
13450         output_joining_type_test, output_joining_type,
13451         joining_group_as_c_identifier, output_joining_group_test,
13452         output_joining_group): New functions.
13453         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
13454         fill_arabicshaping and output_joining_type_test, output_joining_type,
13455         output_joining_group_test, output_joining_group.
13456         Reported by Simon Josefsson.
13457
13458 2011-03-21  Jim Meyering  <meyering@redhat.com>
13459
13460         strftime: fix a bug in yesterday's change
13461         * lib/strftime.c (add): Accommodate width's initial value of -1.
13462         Otherwise, nstrftime would copy uninitialized data into
13463         the result buffer.
13464
13465 2011-03-21  Jim Meyering  <meyering@redhat.com>
13466
13467         tests: add strftime-tests module
13468         * tests/test-strftime.c: New file.
13469         * modules/strftime-tests: New module.
13470
13471 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13472
13473         strftime: don't assume a byte count fits in 'int'
13474         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
13475         found this problem by static analysis, using gcc -Wstrict-overflow
13476         (GCC 4.5.2, x86-64).  This reported an optimization that depended
13477         on an integer overflow having undefined behavior, but it turns out
13478         that the argument is a size, which might not fit in 'int' anyway,
13479
13480 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13481
13482         stdio: don't require ignore_value around fwrite
13483
13484         This patch works around libc bug 11959
13485         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
13486         Without this patch, applications must often write
13487         ignore_value (fwrite (...)) even though the ignore_value is
13488         not helpful here.  It's common to write many objects, using
13489         fwrite/printf/etc., and then use ferror to detect output error.
13490
13491         I considered making this patch optional, but decided against it,
13492         because libc is obviously being inconsistent here: there is no
13493         reason libc should insist that user code must inspect fwrite
13494         return's value without also insisting that it inspect printf's,
13495         putchar's, etc.  If user code wants to have a strict style where
13496         all these functions' values are checked (so that ferror need not
13497         be checked), we could add support for that style in a new gnulib
13498         module, but in the meantime it's better to be consistent and to
13499         support common usage.
13500
13501         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
13502         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
13503         that we are compiling in checking mode, and if not C++, and
13504         if not already wrapping fwrite for some other reason.
13505         (fwrite): #define to rpl_fwrite if the latter is defined.
13506
13507 2011-03-20  Bruno Haible  <bruno@clisp.org>
13508
13509         verror: Fix compilation error introduced on 2011-02-13.
13510         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
13511         instead of __attribute__.
13512         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13513
13514 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13515             Bruno Haible  <bruno@clisp.org>
13516
13517         socklen: do not depend on sys_socket
13518         While trying to modify Emacs to use gnulib's socklen module,
13519         I discovered a circular dependency: socklen depends on sys_socket
13520         and vice versa.  Emacs can use socklen, but it does not need
13521         sys_socket because it has its own substitute for sys/socket.h.
13522         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
13523         gl_TYPE_SOCKLEN_T.
13524         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
13525         gl_PREREQ_SYS_H_SOCKET.
13526         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
13527         gl_PREREQ_SYS_H_SOCKET.
13528         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
13529         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
13530         * modules/socklen (Depends-on): Do not depend on sys_socket.
13531         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
13532
13533 2011-03-20  Jim Meyering  <meyering@redhat.com>
13534
13535         maint.mk: sort file names *after* new transformation
13536         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
13537         prefix would have led to an unwarranted failure in GNU parted.
13538         Sort after that transformation.
13539
13540 2011-03-19  Jim Meyering  <meyering@redhat.com>
13541
13542         maint.mk: fix po-file syntax-check rule
13543         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
13544         Patch by Bruno Haible.
13545
13546 2011-03-19  Bruno Haible  <bruno@clisp.org>
13547
13548         socklen: Update comment.
13549         * m4/socklen.m4: Update comment about platforms.
13550
13551 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13552             Bruno Haible  <bruno@clisp.org>
13553
13554         inet_ntop, inet_pton: Simplify.
13555         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
13556         documented to provide socklen_t and we already depend on sys_socket.
13557         * modules/inet_pton (Depends-on): Likewise.
13558         * lib/arpa_inet.in.h: Adjust comment.
13559
13560 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13561             Bruno Haible  <bruno@clisp.org>
13562
13563         netdb: Simplify.
13564         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
13565         documented to provide socklen_t and we already depend on sys_socket.
13566         * lib/netdb.in.h: Adjust comment.
13567
13568 2011-03-19  Bruno Haible  <bruno@clisp.org>
13569
13570         sys_socket, netdb: Document problem with socklen_t.
13571         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
13572         platforms.
13573         * doc/posix-headers/netdb.texi: Likewise.
13574
13575 2011-03-18  Eric Blake  <eblake@redhat.com>
13576
13577         maint.mk: let po check work in VPATH build
13578         * top/maint.mk (po_file): Allow cfg.mk override.
13579         (sc_po_check): Allow VPATH use.
13580         Reported by Jiri Denemark.
13581
13582 2011-03-16  Jim Meyering  <meyering@redhat.com>
13583
13584         maint.mk: allow fine-grained syntax-check exclusion via Make variables
13585         Before, you would have had to create one .x-sc_ file per rule in order
13586         to exempt offending files.  Now, you may instead use a Make variable --
13587         usually defined in cfg.mk -- whose name identifies the affected rule.
13588         * top/maint.mk (_sc_excl): Define.
13589         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
13590         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
13591
13592 2011-03-13  Bruno Haible  <bruno@clisp.org>
13593
13594         ignore-value tests: Avoid warnings.
13595         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
13596         empty for gcc < 3.4.
13597
13598 2011-03-13  Bruno Haible  <bruno@clisp.org>
13599
13600         passfd: Fix link error on Solaris.
13601         * modules/passfd (Description): Correct.
13602         (Depends-on): Add socketlib.
13603         (Link): New section.
13604         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
13605
13606 2011-03-13  Bruno Haible  <bruno@clisp.org>
13607
13608         passfd: Fix link error on AIX 5.2.
13609         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
13610
13611 2011-03-13  Bruno Haible  <bruno@clisp.org>
13612
13613         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
13614         * lib/sys_socket.in.h: Include <stddef.h>.
13615         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
13616         CMSG_FIRSTHDR. Remove unused variable.
13617
13618 2011-03-13  Bruno Haible  <bruno@clisp.org>
13619
13620         passfd: Fix compilation error on OpenBSD.
13621         * lib/passfd.c: Include <sys/uio.h>.
13622
13623 2011-03-13  Bruno Haible  <bruno@clisp.org>
13624
13625         passfd test: Fix warnings.
13626         * tests/test-passfd.c: Include <sys/wait.h>.
13627         (main): Fix typo.
13628
13629 2011-03-13  Bruno Haible  <bruno@clisp.org>
13630
13631         passfd module, part 4, tweaks.
13632         * tests/test-passfd.c: Reorder includes.
13633         (main): Fix perror and printf calls.
13634
13635 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13636
13637         passfd module, part 4.
13638         * modules/passfd-tests: New file.
13639         * tests/test-passfd.c: New file.
13640
13641 2011-03-13  Jim Meyering  <meyering@redhat.com>
13642
13643         Makefile: rely on GNU make; derive syntax-check rule names
13644         Rather than requiring that each sc_ rule be listed as a dependent
13645         of "check", use features of GNU make to derive the list.
13646         * Makefile (syntax-check-rules): Define.
13647         (check): Depend on the new variable, not the hard-coded list.
13648
13649 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
13650             Bruno Haible  <bruno@clisp.org>
13651
13652         passfd module, part 3.
13653         * lib/passfd.h (recvfd): Add a flags argument.
13654         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
13655         (recvfd): Add a flags argument.
13656         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
13657         exists.
13658         * modules/passfd (Depends-on): Add cloexec.
13659         Suggested by Eric Blake.
13660
13661 2011-03-13  Bruno Haible  <bruno@clisp.org>
13662
13663         passfd module, part 2, tweaks.
13664         * modules/passfd (Files): Reorder.
13665         (Depends-on): Remove errno.
13666         (Include): Remove <sys/socket.h>, <sys/un.h>.
13667         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
13668         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
13669         specification header. Include <sys/socket.h> always. Don't include
13670         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
13671         (sendfd): Clarify that it sets errno when it fails.
13672         (recvfd): Fix specification.
13673
13674 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13675
13676         passfd module, part 2.
13677         * modules/passfd: New file.
13678         * lib/passfd.h: New file.
13679         * lib/passfd.c: New file.
13680
13681 2011-03-12  Bruno Haible  <bruno@clisp.org>
13682
13683         wcswidth, mbswidth: Avoid integer overflow.
13684         * lib/wcswidth.c: Include <limits.h>.
13685         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
13686         * lib/mbswidth.c: Include <limits.h>.
13687         (mbsnwidth): Avoid 'int' overflow.
13688         Reported by Jim Meyering.
13689
13690 2011-03-12  Bruno Haible  <bruno@clisp.org>
13691
13692         futimens, utimensat: Avoid endless recursion on Solaris 10.
13693         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
13694         Solaris.
13695         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
13696         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
13697
13698 2011-03-11  Jim Meyering  <meyering@redhat.com>
13699
13700         maint.mk: relax a regexp to accommodate other formatting styles
13701         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
13702         between "ngettext" and the following "(".
13703
13704 2011-03-11  Pádraig Brady <P@draigBrady.com>
13705
13706         maint.mk: suppress a false positive warning
13707         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
13708         diagnostics are marked with ngettext.
13709
13710 2011-03-10  Eric Blake  <eblake@redhat.com>
13711
13712         wchar: add explicit dependencies, for Tru64
13713         * modules/mbmemcasecoll (Depends-on): Add wchar.
13714         * modules/mbtowc (Depends-on): Likewise.
13715         * modules/vasnprintf (Depends-on): Likewise.
13716         * modules/unistdio/u-printf-args (Depends-on): Likewise.
13717         * modules/wctomb (Depends-on): Likewise.
13718         Reported by Peter O'Gorman.
13719
13720 2011-03-08  Bruno Haible  <bruno@clisp.org>
13721
13722         passfd module, part 1, tweaks.
13723         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
13724         Improve indentation. Improve AC_MSG_CHECKING messages.
13725         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
13726         gl_SOCKET_FAMILIES.
13727
13728 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13729
13730         passfd module, part 1.
13731         * m4/afunix.m4: New file.
13732         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
13733         sockets.
13734
13735 2011-03-08  Bruno Haible  <bruno@clisp.org>
13736
13737         regex-quote: New API.
13738         * lib/regex-quote.h: Include <stdbool.h>.
13739         (struct regex_quote_spec): New type.
13740         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13741         New declarations.
13742         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13743         'const struct regex_quote_spec *' argument.
13744         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
13745         (pcre_special): New constant.
13746         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13747         New functions.
13748         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13749         'const struct regex_quote_spec *' argument.
13750         * modules/regex-quote (Depends-on): Add stdbool.
13751         * tests/test-regex-quote.c (check): Update for new API. Add test for
13752         anchored results.
13753         * NEWS: Mention the API change.
13754         Reported by Reuben Thomas and Eric Blake.
13755
13756 2011-03-06  Bruno Haible  <bruno@clisp.org>
13757
13758         regex-quote: Fix creation of POSIX extended regular expressions.
13759         * lib/regex-quote.c (ere_special): Add grouping and alternation
13760         operators.
13761
13762 2011-03-05  Bruno Haible  <bruno@clisp.org>
13763
13764         doc: Improve doc regarding autopoint vs. gnulib.
13765         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
13766         disable autopoint while running autoreconf.
13767         Suggested by Ralf Wildenhues.
13768
13769 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13770
13771         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
13772         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
13773
13774 2011-03-03  Bruce Korb  <bkorb@gnu.org>
13775
13776         parse-duration: remove xalloc.h dependency
13777         * lib/parse-duration.c (parse_period): handle NULL return from
13778         strdup instead of calling xstrdup().
13779         * modules/parse-duration: remove "xalloc" dependency
13780
13781 2011-03-03  Matthew Booth  <mbooth@redhat.com>
13782
13783         bootstrap: honor m4_base when running aclocal
13784         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
13785
13786 2011-03-02  Jim Meyering  <meyering@redhat.com>
13787
13788         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
13789         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
13790         on request from Matt Booth.
13791
13792 2011-03-01  Eric Blake  <eblake@redhat.com>
13793
13794         test-link: work on Hurd
13795         * tests/test-link.h (test_link): Hurd rejects linking directories
13796         with EISDIR instead of the POSIX-mandated EPERM.
13797
13798 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
13799
13800         stdio: simplify by moving files to printf-posix, sigpipe
13801         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
13802         since this symbol is needed only if printf is replaced.
13803         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
13804         Require gl_ASM_SYMBOL_PREFIX.
13805         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
13806         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
13807         (Depends-on): Add 'raise'.
13808         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
13809         * modules/stdio (Files): Remove lib/stdio-write.c,
13810         m4/asm-underscore.m4.
13811         (Depends-on): Remove 'raise'.
13812
13813         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
13814         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
13815         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
13816         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
13817
13818 2011-02-28  Bruno Haible  <bruno@clisp.org>
13819
13820         localcharset: Assume ANSI C behaviour of free().
13821         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
13822         calling free().
13823         Suggested by Simon Josefsson <simon@josefsson.org>.
13824
13825 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
13826             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
13827             Bruno Haible  <bruno@clisp.org>  (tiny change)
13828
13829         On Cygwin, use /proc file system instead of win32 API.
13830         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
13831         Win32 file names.
13832         (DllMain): Simplify by removing Cygwin specific code.
13833         (find_shared_library_fullname): Use Linux specific implementation also
13834         for Cygwin.
13835         (get_shared_library_fullname): Update accordingly.
13836         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
13837         Win32 file names.
13838         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
13839         Cygwin specific code.
13840
13841 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
13842             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
13843
13844         Fix OpenMP flag detection for various Fortran compilers.
13845         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
13846         OpenMP-conditional compilation construct, to force compile
13847         failure with missing OpenMP flag.
13848         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
13849
13850 2011-02-25  Eric Blake  <eblake@redhat.com>
13851
13852         strstr: expand test coverage
13853         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
13854         compilation.
13855         * tests/test-memmem.c (main): Duplicate tests.
13856         * tests/test-strcasestr.c (main): Likewise.
13857         * tests/test-c-strcasestr.c (main): Likewise.
13858
13859 2011-02-25  Jim Meyering  <meyering@redhat.com>
13860
13861         maint.mk: detect missing-NL-at-EOF, too
13862         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
13863         it also detects when a file lacks a newline at EOF.
13864         (require_exactly_one_NL_at_EOF_): Renamed from
13865         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
13866         since people may well have .x-sc_... file names tied to the
13867         existing name.  Suggested by Eric Blake.
13868
13869 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
13870
13871         dirname: move m4/dos.m4 functionality into lib/dosname.h
13872
13873         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
13874         extracts symbols from it, puts them into config.h; but it's much
13875         easier to use the symbols directly.  filename.h already does this,
13876         but it disagrees with dos.m4 in some respects.  This patch
13877         introduces a different include file dosname.h that packages up
13878         dos.m4, and then later we can work on merging filename.h and
13879         dosname.h.  Applications that need only the easy-to-configure
13880         symbols should consider including dosname.h rather than dirname.h.
13881         * NEWS: Mention incompatible changes.
13882         * m4/dos.m4: Remove.
13883         * lib/dosname.h, modules/dosname: New files.
13884         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
13885         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
13886         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
13887         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
13888         Include dosname.h, not dirname.h.
13889         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
13890         Include dosname.h, for definitions of symbols like ISSLASH
13891         that used to be in config.h.
13892         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
13893         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
13894         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13895         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13896         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
13897         * modules/rmdir (Files): Likewise.
13898         * modules/stat (Files): Likewise.
13899         * modules/unlink (Files): Likewise.
13900         * modules/dirname-lgpl (Depends-on): Add dosname.
13901         * modules/lstat (Depends-on): Likewise.
13902         * modules/openat (Depends-on): Likewise.
13903         * modules/rmdir (Depends-on): Likewise.
13904         * modules/savewd (Depends-on): Likewise.
13905         * modules/stat (Depends-on): Likewise.
13906         * modules/unlink (Depends-on): Likewise.
13907         * modules/openat (Depends-on): Remove dirname-lgpl.
13908         * modules/savewd (Depends-on): Likewise.
13909         * tests/test-dirname.c: Do not use removed symbols like
13910         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
13911         the remaining symbols, e.g., ISSLASH ('\\').
13912
13913 2011-02-25  Eric Blake  <eblake@redhat.com>
13914
13915         strstr: revert patches that introduced bug and pessimization
13916         * lib/str-two-way.h: Add another reference.
13917         (two_way_short_needle, two_way_long_needle): Revert changes from
13918         2011-02-24; they pessimize search speed.
13919         (critical_factorization): Partially revert changes from
13920         2010-06-22; they violate the requirement that the left half of the
13921         needle be smaller than the period of the needle.
13922
13923 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
13924
13925         filenamecat: remove unnecessary dependency on dirname-lgpl
13926         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
13927         is no direct dependency, just an indirect one via filenamecat-lgpl.
13928
13929         remove: remove unnecessary use of m4/dos.m4
13930         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
13931         * modules/remove (FILES): Remove m4/dos.m4.
13932
13933         * lib/openat-proc.c: Don't include dirname.h; not needed.
13934
13935         backupfile: remove unnecessary use of m4/dos.m4
13936         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
13937         of its symbols are used by the backupfile code.  backupfile.c does
13938         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
13939         for the rare case of programs that want all their backup file
13940         names to live within 8+3 limits, and dos.m4 doesn't address that.
13941         * modules/backupfile (Files): Remove m4/dos.m4.
13942
13943 2011-02-24  Jim Meyering  <meyering@redhat.com>
13944
13945         strstr: fix a bug whereby strstr would mistakenly return NULL
13946         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
13947         in period calculation.
13948         (two_way_long_needle): Likewise.
13949         The original problem was reported by Mike Stump in
13950         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
13951         Ralf Wildenhues provided the short needle and haystack.
13952         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
13953         Add a more involved test to trigger the bug in two_way_long_needle.
13954
13955 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
13956
13957         gnulib-tool: remove use of bold display in help screen
13958         * gnulib-tool (func_usage): Do not use bold display anymore in the
13959         help screen.  That was just meant to be a temporary emphasis for a
13960         backward-incompatible change.
13961
13962 2011-02-23  Bruno Haible  <bruno@clisp.org>
13963
13964         Fix misindentation of preprocessor directives.
13965         * lib/argp-namefrob.h: Reindent preprocessor directives.
13966         * lib/getopt_int.h (struct _getopt_data): Likewise.
13967         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
13968         * lib/vasnprintf.c (decode_long_double): Likewise.
13969         * tests/test-argmatch.c: Insert blank lines, for clarity.
13970         * tests/test-exclude.c: Likewise.
13971
13972 2011-02-22  Bruno Haible  <bruno@clisp.org>
13973
13974         ioctl: Fix for MacOS X in 64-bit mode.
13975         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
13976         value.
13977         Suggested by Eric Blake.
13978         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
13979
13980 2011-02-22  Jim Meyering  <meyering@redhat.com>
13981
13982         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
13983         * Makefile (sc_cpp_indent_check): Don't limit the check to files
13984         in lib/.
13985
13986 2011-02-22  Eric Blake  <eblake@redhat.com>
13987
13988         maint: avoid any CDPATH issue
13989         * Makefile (sc_cpp_indent_check): Anchor cd argument.
13990
13991         maint: adjust cpp indentation for my modules, as well
13992         * Makefile (sc_cpp_indent_check): Add my name.
13993         * lib/fbufmode.c: Filter through cppi.
13994         * lib/fpurge.c: Likewise.
13995         * lib/freadable.c: Likewise.
13996         * lib/freading.c: Likewise.
13997         * lib/fwritable.c: Likewise.
13998         * lib/fwriting.c: Likewise.
13999         * lib/sigaction.c: Likewise.
14000
14001 2011-02-22  Jim Meyering  <meyering@redhat.com>
14002
14003         maint: adjust cpp indentation to reflect nesting depth
14004         I.e., in a block of code that begins with an unnested "#if",
14005         put one space between the "#" in column 1 and following token.
14006         For example,
14007         -#include <sys/vfs.h>
14008         +# include <sys/vfs.h>
14009         Do this only in .c files that are part of a module I maintain.
14010         * lib/linkat.c: Filter through cppi.
14011         * lib/nanosleep.c: Likewise.
14012         * lib/openat.c: Likewise.
14013         * lib/openat-die.c: Likewise.
14014         * lib/dup3.c: Likewise.
14015         * lib/fchownat.c: Likewise.
14016         * lib/flock.c: Likewise.
14017         * lib/fsync.c: Likewise.
14018         * lib/fts.c: Likewise.
14019         * lib/getpass.c: Likewise.
14020         * lib/gettimeofday.c: Likewise.
14021         * lib/userspec.c: Likewise.
14022         * Makefile (sc_cpp_indent_check): New rule, to check this.
14023
14024 2011-02-22  Bruno Haible  <bruno@clisp.org>
14025
14026         New module 'wctomb'.
14027         * lib/stdlib.in.h (wctomb): New declaration.
14028         * lib/wctomb.c: New file.
14029         * lib/wctomb-impl.h: New file.
14030         * m4/wctomb.m4: New file.
14031         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
14032         REPLACE_WCTOMB.
14033         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
14034         REPLACE_WCTOMB.
14035         * modules/wctomb: New file.
14036         * tests/test-stdlib-c++.cc: Test signature of wctomb.
14037         * doc/posix-functions/wctomb.texi: Mention the new module.
14038         * modules/wctob (Depends-on): Add wctomb.
14039
14040 2011-02-22  Bruno Haible  <bruno@clisp.org>
14041
14042         New module 'mbtowc'.
14043         * lib/stdlib.in.h (mbtowc): New declaration.
14044         * lib/mbtowc.c: New file.
14045         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
14046         * m4/mbtowc.m4: New file.
14047         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
14048         REPLACE_MBTOWC.
14049         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
14050         REPLACE_MBTOWC.
14051         * modules/mbtowc: New file.
14052         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
14053         * doc/posix-functions/mbtowc.texi: Mention the new module.
14054         * modules/btowc (Depends-on): Add mbtowc.
14055
14056 2011-02-22  Bruno Haible  <bruno@clisp.org>
14057
14058         wcrtomb: Add more tests for native Windows platforms.
14059         * tests/test-wcrtomb-w32-1.sh: New file.
14060         * tests/test-wcrtomb-w32-2.sh: New file.
14061         * tests/test-wcrtomb-w32-3.sh: New file.
14062         * tests/test-wcrtomb-w32-4.sh: New file.
14063         * tests/test-wcrtomb-w32-5.sh: New file.
14064         * tests/test-wcrtomb-w32.c: New file.
14065         * modules/wcrtomb-tests (Files): Add them.
14066         (Makefile.am): Arrange to run these tests.
14067         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
14068         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
14069
14070 2011-02-20  Bruno Haible  <bruno@clisp.org>
14071
14072         wcrtomb: Enhance test.
14073         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
14074
14075 2011-02-20  Bruno Haible  <bruno@clisp.org>
14076
14077         mbrtowc: Tiny optimization.
14078         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
14079
14080 2011-02-20  Jim Meyering  <meyering@redhat.com>
14081
14082         test-exclude.c: remove unmatched #endif
14083         * tests/test-exclude.c: Remove stray #endif, left over from
14084         the change of a week ago.
14085
14086 2011-02-19  Jim Meyering  <meyering@redhat.com>
14087
14088         git-version-gen: skip "-dirty" check when appropriate
14089         * build-aux/git-version-gen: Don't run any git commands when the
14090         version string comes from .tarball-version.  Prior to this, we
14091         would run git update-index --refresh even from a just-unpacked
14092         tarball directory, and that could affect a .git/ directory in a
14093         parent of the build directory.  Reported by Mike Frysinger.
14094
14095 2011-02-19  Bruno Haible  <bruno@clisp.org>
14096
14097         unictype/property-byname: Reduce the size of the 'data' segment.
14098         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
14099
14100 2011-02-19  Bruno Haible  <bruno@clisp.org>
14101
14102         unictype/scripts: Reduce the size of the 'data' segment.
14103         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
14104         '%pic'.
14105         * lib/unictype/scripts_byname.gperf: Regenerated.
14106
14107 2011-02-19  Bruno Haible  <bruno@clisp.org>
14108
14109         stdint: Update documentation.
14110         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
14111
14112 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
14113
14114         stdint: omit redundant check for wchar.h
14115         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
14116         always tests whether wchar.h exists, so remove the now-redundant test.
14117
14118 2011-02-18  Bruno Haible  <bruno@clisp.org>
14119
14120         stdint: Cut dependency to module 'wchar'.
14121         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
14122         include the necessary prerequisites.
14123         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
14124         * modules/stdint (Depends-on): Remove wchar.
14125         (Makefile.am): Substitute HAVE_WCHAR_H.
14126         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
14127
14128 2011-02-18  Eric Blake  <eblake@redhat.com>
14129
14130         longlong: skip, rather than fail, on cross-compilation
14131         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
14132         when cross-compiling; regression from 2011-02-16.
14133
14134 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14135
14136         * NEWS: Mention 2011-02-08 change to stdlib.
14137
14138 2011-02-17  Bruno Haible  <bruno@clisp.org>
14139
14140         getloadavg: Add comments about platforms.
14141         * m4/getloadavg.m4: Add comment.
14142         * lib/getloadavg.c: Likewise.
14143
14144 2011-02-17  Bruno Haible  <bruno@clisp.org>
14145
14146         getloadavg: Fix link error on Solaris 2.6.
14147         * modules/getloadavg (Link): New section.
14148         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
14149         linking test-getloadavg.
14150         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
14151         getloadavg.
14152
14153 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14154
14155         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
14156         It was 'int', but this doesn't match the IRIX 6.5 manual.
14157         Suggested by Bruno Haible in
14158         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
14159
14160 2011-02-17  Bruno Haible  <bruno@clisp.org>
14161
14162         havelib: Fix comments.
14163         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
14164         change.
14165
14166 2011-02-17  Bruno Haible  <bruno@clisp.org>
14167
14168         havelib: Update config.rpath.
14169         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
14170
14171 2011-02-17  Bruno Haible  <bruno@clisp.org>
14172
14173         getloadavg test: Add some plausibility checks.
14174         * tests/test-getloadavg.c (check_avg): Print a warning when the value
14175         is improbable.
14176
14177 2011-02-16  Eric Blake  <eblake@redhat.com>
14178
14179         maintainer-makefile: make syntax-check a no-op from tarballs
14180         * top/maint.mk (no-vc-detected): New rule.
14181         (local-checks-available): Use it to avoid hanging if someone tries
14182         'make syntax-check' from a tarball.  Also append to any non-syntax
14183         checks already defined in cfg.mk.
14184
14185 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
14186
14187         longlong: tune, particularly for common case of c99
14188
14189         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
14190         or running anything if c99, or if unsigned long long int does not
14191         work.  In either case, we know the answer without further tests.
14192         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
14193         it at most once, and use its results for both long long int and
14194         unsigned long long int.  This is more likely to be efficient in
14195         the common case where the program wants to check for both long
14196         long int and unsigned long long int.
14197         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
14198         since the answer is already known.
14199
14200 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
14201
14202         getloadavg: set errno
14203         * lib/getloadavg.c: Set errno when returning -1.  If no other
14204         error number looks appropriate, set it to ENOSYS if the getloadavg
14205         looks like it can't possibly ever work, ENOTSUP otherwise.
14206         Suggested by Bruno Haible in
14207         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
14208
14209         getloadavg: trim unused parts and speed up 'configure'
14210         * NEWS: Document this.
14211         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
14212         always compiled if getloadavg is absent.
14213         Move test code to ...
14214         * tests/test-getloadavg.c: New file, containing previous
14215         contents of test from lib/getloadavg.c.  It also contains
14216         suggestions by Bruno Haible in
14217         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
14218         * modules/getloadavg-tests: New file.
14219         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
14220         Do tests in the same order as they're needed for getloadavg.c.
14221         Omit setgid-related tests that generate symbols KMEM_GROUP,
14222         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
14223         Do only the tests that are needed to see whether the system has
14224         getloadavg, moving the other tests into ...
14225         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
14226         NLIST_NAME_UNION; nobody should be using it.  Do not define
14227         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
14228         relevant, as the user of this module shouldn't care how getloadavg
14229         is implemented.
14230
14231         getloadavg: omit unused var
14232         * lib/getloadavg.c (getloadavg): Omit unused local variable.
14233
14234 2011-02-15  Jim Meyering  <meyering@redhat.com>
14235
14236         doc: update users.txt
14237         * users.txt: Update iwhd's URL.
14238
14239 2011-02-13  Bruno Haible  <bruno@clisp.org>
14240
14241         Consistent macro naming for macros that use GCC __attribute__.
14242         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
14243         _ATTRIBUTE_NONNULL_.
14244         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
14245         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
14246         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
14247         ATTRIBUTE_DEPRECATED.
14248         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
14249         ATTRIBUTE_NORETURN.
14250         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14251         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14252         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14253         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14254         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
14255         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
14256         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
14257         ATTRIBUTE_SENTINEL.
14258         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
14259         ATTRIBUTE_RETURN_CHECK.
14260         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
14261         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
14262         ATTRIBUTE_NORETURN.
14263         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
14264         Reported by Paul Eggert.
14265
14266 2011-02-13  Bruno Haible  <bruno@clisp.org>
14267
14268         Don't interfere with a program's definition of __attribute__.
14269         * lib/argp.h (__attribute__): Remove definition.
14270         (_GL_ATTRIBUTE_FORMAT): New macro.
14271         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
14272         * lib/argp-fmtstream.h (__attribute__): Remove definition.
14273         (_GL_ATTRIBUTE_FORMAT): New macro.
14274         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
14275         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
14276         GCC 3 or newer.
14277         * lib/error.h (__attribute__): Remove definition.
14278         (_GL_ATTRIBUTE_FORMAT): New macro.
14279         (error, error_at_line): Use it.
14280         * lib/hash.h (__attribute__): Remove definition.
14281         (ATTRIBUTE_WUR): Update definition. Define always.
14282         * lib/openat.h (__attribute__): Remove definition.
14283         (ATTRIBUTE_NORETURN): Update definition. Define always.
14284         * lib/sigpipe-die.h (__attribute__): Remove definition.
14285         (ATTRIBUTE_NORETURN): Update definition. Define always.
14286         * lib/vasnprintf.h (__attribute__): Remove definition.
14287         (_GL_ATTRIBUTE_FORMAT): New macro.
14288         (asnprintf, vasnprintf): Use it.
14289         * lib/xalloc.h (__attribute__): Remove definition.
14290         (ATTRIBUTE_NORETURN): Update definition. Define always.
14291         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
14292         * lib/xmemdup0.h (__attribute__): Remove definition.
14293         (ATTRIBUTE_NORETURN): Update definition. Define always.
14294         * lib/xprintf.h (__attribute__): Remove definition.
14295         (_GL_ATTRIBUTE_FORMAT): New macro.
14296         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
14297         * lib/xstrtol.h (__attribute__): Remove definition.
14298         (ATTRIBUTE_NORETURN): Update definition. Define always.
14299         * lib/xvasprintf.h (__attribute__): Remove definition.
14300         (_GL_ATTRIBUTE_FORMAT): New macro.
14301         (xasprintf, xvasprintf): Use it.
14302         * tests/test-argmatch.c (__attribute__): Remove definition.
14303         (ATTRIBUTE_NORETURN): Update definition. Define always.
14304         * tests/test-exclude.c (__attribute__): Remove definition.
14305         (ATTRIBUTE_NORETURN): Update definition. Define always.
14306         Reported by Paul Eggert.
14307
14308 2011-02-13  Bruno Haible  <bruno@clisp.org>
14309
14310         mbrtowc: Add more tests for native Windows platforms.
14311         * tests/test-mbrtowc-w32-1.sh: New file.
14312         * tests/test-mbrtowc-w32-2.sh: New file.
14313         * tests/test-mbrtowc-w32-3.sh: New file.
14314         * tests/test-mbrtowc-w32-4.sh: New file.
14315         * tests/test-mbrtowc-w32-5.sh: New file.
14316         * tests/test-mbrtowc-w32.c: New file.
14317         * modules/mbrtowc-tests (Files): Add them.
14318         (Makefile.am): Arrange to run these tests.
14319         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
14320         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
14321
14322 2011-02-13  Bruno Haible  <bruno@clisp.org>
14323
14324         mbrtowc: Work around native Windows bug.
14325         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
14326         guess when no suitable locale for testing was found.
14327         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
14328
14329 2011-02-13  Bruno Haible  <bruno@clisp.org>
14330
14331         mbsinit: Work around mingw bug.
14332         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
14333         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
14334         Windows.
14335         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
14336
14337 2011-02-13  Bruno Haible  <bruno@clisp.org>
14338
14339         mbsinit: Don't crash for a NULL argument.
14340         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
14341         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
14342
14343 2011-02-13  Bruno Haible  <bruno@clisp.org>
14344
14345         Don't interfere with a program's definition of __attribute__.
14346         * lib/stdio.in.h (__attribute__): Remove definition.
14347         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
14348         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
14349         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
14350         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
14351         * lib/string.in.h (__attribute__): Remove definition.
14352         Reported by Paul Eggert.
14353
14354 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14355
14356         stdlib: don't get in the way of non-GCC __attribute__
14357         See thread starting at
14358         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
14359         Revert previous stdlib change, installing the following instead:
14360         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
14361         to get in the way of a non-GCC compiler that supports __attribute__.
14362         (_GL_ATTRIBUTE_RETURN): New macro.
14363         (_Exit): Use it instead of __attribute__.
14364
14365 2011-02-12  Bruno Haible  <bruno@clisp.org>
14366
14367         quotearg test: Avoid test failure on mingw.
14368         * tests/test-quotearg.sh: Convert the locale identifier from native
14369         Windows syntax to Unix syntax.
14370
14371 2011-02-12  Bruno Haible  <bruno@clisp.org>
14372
14373         setlocale: Prefer gnulib's override over libintl's override.
14374         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
14375         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
14376         GNULIB_defined_setlocale is set.
14377
14378 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14379
14380         stdlib: support non-GCC __attribute__
14381
14382         Fix a serious and tricky problem encountered when attempting to
14383         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
14384         5.5, but it crashed due to memory corruption on Solaris 10 with
14385         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
14386         bits that are otherwise zero.  This tagging is optional inside
14387         Emacs but is preferred and is used when __attribute__ ((__aligned
14388         (8))) works, as it does with both recent-enough GCC and with Sun C
14389         5.11.  However, Sun C 5.11 is not GCC and does not #define
14390         __GNUC__ and __GNUC_MINOR__.
14391
14392         When I added the getloadavg module to Emacs, it brought in
14393         stdlib.in.h, which contained this fragment:
14394
14395            #ifndef __attribute__
14396            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
14397            #  define __attribute__(Spec)   /* empty */
14398            # endif
14399            #endif
14400
14401         When files that include <stdlib.h> were compiled with Sun C 5.11,
14402         the above code disabled __attribute__ ((__aligned (8))), which
14403         caused variables to not be properly aligned, which eventually led
14404         to the pointer corruption mentioned above.  (This was a bit hard
14405         to diagnose, unfortunately.)
14406
14407         Several "#define __attribute__(X) /* empty */" code snippets need
14408         to be eradicated from Gnulib to work with non-GCC compilers that
14409         support __attribute__.  The Autoconf way to do this is to test for
14410         each kind of attribute that we want support for, and selectively
14411         enable that in source code.
14412
14413         Fix this problem just for stdlib.h, by adding a test for the
14414         __noreturn__ attribute, and change stdlib.in.h to use that test
14415         when needed.  This technique can be easily generalized to the
14416         other *.in.h files and attributes, and a similar technique can be
14417         used for *.h and *.c files.  This patch is enough to solve the
14418         problem for Emacs + getloadavg, and I thought I'd publish it for
14419         feedback before undertaking further, similar fixes in other
14420         modules.
14421
14422         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
14423         because it's not needed for stdlib.h.  It merely substitutes the
14424         value directly into stdlib.h.  We may well need to #define it, or
14425         similar symbols, for other modules, but it's nice to also have an
14426         option to not #define it for applications like Emacs that do not
14427         need it.
14428
14429         * lib/stdlib.in.h (__attribute__): Do not #define.
14430         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
14431         be defined only if the _Exit module is also used.
14432         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
14433         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
14434         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
14435         platforms.
14436         * modules/_Exit (Files): Add m4/attribute.m4.
14437         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
14438         * m4/attribute.m4: New file.
14439
14440 2011-02-12  Bruno Haible  <bruno@clisp.org>
14441
14442         wcsrtombs: Work around bug on native Windows.
14443         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
14444         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
14445         instead of len.
14446         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
14447
14448 2011-02-12  Bruno Haible  <bruno@clisp.org>
14449
14450         mbsrtowcs: Work around bug on native Windows.
14451         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
14452         against mingw bug.
14453         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
14454
14455 2011-02-12  Bruno Haible  <bruno@clisp.org>
14456
14457         Avoid setlocale bugs in tests.
14458         * modules/btowc (Dependencies): Add setlocale.
14459         * modules/c-strcase (Dependencies): Likewise.
14460         * modules/mbmemcasecmp (Dependencies): Likewise.
14461         * modules/mbmemcasecoll (Dependencies): Likewise.
14462         * modules/mbrtowc (Dependencies): Likewise.
14463         * modules/mbscasecmp (Dependencies): Likewise.
14464         * modules/mbscasestr (Dependencies): Likewise.
14465         * modules/mbschr (Dependencies): Likewise.
14466         * modules/mbscspn (Dependencies): Likewise.
14467         * modules/mbsinit (Dependencies): Likewise.
14468         * modules/mbsncasecmp (Dependencies): Likewise.
14469         * modules/mbsnrtowcs (Dependencies): Likewise.
14470         * modules/mbspbrk (Dependencies): Likewise.
14471         * modules/mbspcasecmp (Dependencies): Likewise.
14472         * modules/mbsrchr (Dependencies): Likewise.
14473         * modules/mbsrtowcs (Dependencies): Likewise.
14474         * modules/mbsspn (Dependencies): Likewise.
14475         * modules/mbsstr (Dependencies): Likewise.
14476         * modules/nl_langinfo (Dependencies): Likewise.
14477         * modules/quotearg (Dependencies): Likewise.
14478         * modules/unicase/locale-language (Dependencies): Likewise.
14479         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
14480         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
14481         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
14482         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
14483         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
14484         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
14485         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
14486         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
14487         * modules/vasnprintf-posix (Dependencies): Likewise.
14488         * modules/wcrtomb (Dependencies): Likewise.
14489         * modules/wcsnrtombs (Dependencies): Likewise.
14490         * modules/wcsrtombs (Dependencies): Likewise.
14491
14492 2011-02-12  Bruno Haible  <bruno@clisp.org>
14493
14494         setlocale: Workaround native Windows bug.
14495         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
14496         succeeds but sets LC_CTYPE to "C", report a failure.
14497         * tests/test-setlocale2.sh: New file.
14498         * tests/test-setlocale2.c: New file.
14499         * modules/setlocale-tests (Files): Add the new files.
14500         (Makefile.am): Enable test-setlocale2.sh test.
14501         * doc/posix-functions/setlocale.texi: Mention workaround.
14502
14503 2011-02-11  Bruno Haible  <bruno@clisp.org>
14504
14505         Tests for module 'setlocale'.
14506         * modules/setlocale-tests: New file.
14507         * tests/test-setlocale1.sh: New file.
14508         * tests/test-setlocale1.c: New file.
14509
14510         New module 'setlocale'.
14511         * lib/locale.in.h (setlocale): New declaration.
14512         * lib/setlocale.c: New file, based on
14513         gettext/gettext-runtime/intl/setlocale.c.
14514         * m4/setlocale.m4: New file.
14515         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
14516         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
14517         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
14518         REPLACE_SETLOCALE.
14519         * modules/setlocale: New file.
14520         * tests/test-locale-c++.cc: Test the declaration of setlocale.
14521         * doc/posix-functions/setlocale.texi: Mention the new module.
14522
14523 2011-02-11  Bruno Haible  <bruno@clisp.org>
14524
14525         Prepare for locale dependent tests on mingw.
14526         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
14527         because it has the wrong locale encoding.
14528         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
14529         French_France.1252 instead of "fr".
14530         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
14531         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
14532         because it has the wrong locale encoding.
14533         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
14534         native Windows, try Turkish_Turkey.65001.
14535         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
14536         Chinese_China.54936.
14537
14538         Prepare for locale dependent tests on mingw.
14539         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
14540         differently.
14541         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
14542         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
14543         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
14544         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14545
14546 2011-02-11  Eric Blake  <eblake@redhat.com>
14547
14548         strptime: avoid compiler warnings
14549         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
14550         compiler warnings about dead code.
14551         Reported by Daniel P. Berrange.
14552
14553 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
14554
14555         doc: update users.txt
14556         * users.txt: Add rcs.
14557
14558 2011-02-10  John W. Eaton  <jwe@gnu.org>
14559
14560         doc: update users.txt
14561         * users.txt: Add octave.
14562
14563 2011-02-10  Jim Meyering  <meyering@redhat.com>
14564
14565         doc: update users.txt
14566         * users.txt: Add iwhd.
14567
14568 2011-02-09  Bruno Haible  <bruno@clisp.org>
14569
14570         gnulib-tool: Make copyright notice adjustment more robust.
14571         * gnulib-tool (func_import): In sed_transform_main_lib_file,
14572         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
14573         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
14574         License".
14575         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
14576
14577 2011-02-06  Bruno Haible  <bruno@clisp.org>
14578
14579         New module 'towctrans'.
14580         * modules/towctrans: New file.
14581         * lib/wctype.in.h (towctrans): New declaration.
14582         * lib/towctrans.c: New file.
14583         * lib/towctrans-impl.h: New file.
14584         * m4/towctrans.m4: New file.
14585         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
14586         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
14587         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
14588         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
14589         * doc/posix-functions/towctrans.texi: Mention the new module.
14590
14591 2011-02-06  Bruno Haible  <bruno@clisp.org>
14592
14593         New module 'wctrans'.
14594         * modules/wctrans: New file.
14595         * lib/wctype.in.h (wctrans): New declaration.
14596         * lib/wctrans.c: New file.
14597         * lib/wctrans-impl.h: New file.
14598         * m4/wctrans.m4: New file.
14599         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
14600         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
14601         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
14602         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
14603         * doc/posix-functions/wctrans.texi: Mention the new module.
14604
14605 2011-02-06  Bruno Haible  <bruno@clisp.org>
14606
14607         New module 'iswctype'.
14608         * modules/iswctype: New file.
14609         * lib/wctype.in.h (iswctype): New declaration.
14610         * lib/iswctype.c: New file.
14611         * lib/iswctype-impl.h: New file.
14612         * m4/iswctype.m4: New file.
14613         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
14614         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
14615         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
14616         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
14617         * doc/posix-functions/iswctype.texi: Mention the new module and the
14618         HP-UX 11.00 problem.
14619
14620 2011-02-06  Bruno Haible  <bruno@clisp.org>
14621
14622         New module 'wctype'.
14623         * modules/wctype: Change to represent the wctype() substitute.
14624         * lib/wctype.in.h (wctype): New declaration.
14625         * lib/wctype.c: New file.
14626         * lib/wctype-impl.h: New file.
14627         * m4/wctype.m4: New file.
14628         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
14629         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
14630         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
14631         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
14632         * doc/posix-functions/wctype.texi: Mention the new module and the
14633         HP-UX 11.00 problem.
14634
14635 2011-02-06  Bruno Haible  <bruno@clisp.org>
14636
14637         wctype-h: Ensure wctype_t and wctrans_t are defined.
14638         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
14639         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14640         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14641         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
14642         HAVE_WCTRANS_T.
14643         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
14644
14645 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14646
14647         flock: fix license typo
14648
14649         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
14650         omitted.
14651
14652 2011-02-08  Bruno Haible  <bruno@clisp.org>
14653
14654         Split large sed scripts, for HP-UX sed.
14655         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
14656         to avoid HP-UX limit of 99 commands, in the near future.
14657         * modules/stdlib (Makefile.am): Likewise.
14658         * modules/unistd (Makefile.am): Likewise.
14659         * modules/wchar (Makefile.am): Likewise.
14660         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14661         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
14662         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
14663
14664 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14665             Bruno Haible  <bruno@clisp.org>
14666
14667         stdlib: improve random_r modularization
14668         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
14669         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
14670         you also need the random_r module to get this material right.
14671         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
14672         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
14673         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
14674
14675 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14676
14677         stdlib: don't depend on stdint
14678         * lib/stdlib.in.h: Don't include <stdint.h> merely because
14679         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
14680         be independent of whether stdint.h is needed.
14681         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
14682         here, instead of ...
14683         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
14684         struct random_data should be using the random_r module, not just
14685         the stdlib module (which wouldn't make sense: what package needs
14686         just struct random_data without also needing random_r?).
14687         * modules/stdlib (Depends-on): Remove stdint.
14688
14689         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
14690         See the thread rooted at
14691         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
14692         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
14693         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
14694         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
14695         __VMS)); previously it was always included (via fcntl--.h).
14696         (getloadavg): Do not use c_strtod.  Instead, approximate it by
14697         hand; this is good enough for load averages.  Also, do not use
14698         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
14699         flags directly if available and don't bother otherwise.  (Packages
14700         that need the extra reliability should use the modules that define
14701         these flags on older platforms that lack them.)
14702         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
14703         fcntl-safer.
14704
14705 2011-02-08  Jim Meyering  <meyering@redhat.com>
14706
14707         di-set.h, ino-map.h: add multiple-inclusion guard
14708         Technically, the guard is required only for ino-map.h, due to its
14709         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
14710         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
14711         * lib/ino-map.h: Likewise.
14712
14713 2011-02-06  Bruno Haible  <bruno@clisp.org>
14714
14715         iswblank: Ensure declaration on glibc systems.
14716         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
14717         * modules/iswblank (Dependencies): Add 'extensions'.
14718         * doc/posix-functions/iswblank.texi: Document the glibc problem.
14719
14720 2011-02-06  Bruno Haible  <bruno@clisp.org>
14721
14722         New module 'iswblank'.
14723         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
14724         * modules/iswblank: New file.
14725         * modules/wctype-h (Files): Remove lib/iswblank.c.
14726         (Makefile.am): Substitute GNULIB_ISWBLANK.
14727         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
14728         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
14729         (gl_WCTYPE_H_DEFAULTS): New macro.
14730         (gl_WCTYPE_H): Require it. Remove iswblank related code.
14731         * modules/iswblank-tests: New file.
14732         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
14733         * tests/test-wctype-h.c (main): Remove iswblank tests.
14734         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
14735         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
14736         of 'wctype-h'.
14737         * NEWS: Mention the change.
14738         * modules/mbchar (Depends-on): Add iswblank.
14739
14740 2011-02-08  Bruno Haible  <bruno@clisp.org>
14741
14742         di-set tests: Refactor.
14743         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
14744         unnecessary includes.
14745         (ASSERT): Remove macro.
14746         (main): Make C90 compliant by avoiding variable declaration after
14747         statement.
14748         * modules/di-set-tests (Files): Add tests/macros.h.
14749
14750 2011-02-08  Bruno Haible  <bruno@clisp.org>
14751
14752         ino-map tests: Refactor.
14753         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
14754         unnecessary includes.
14755         (ASSERT): Remove macro.
14756         (main): Make C90 compliant by avoiding variable declaration after
14757         statement.
14758         * modules/ino-map-tests (Files): Add tests/macros.h.
14759
14760 2011-02-08  Jim Meyering  <meyering@redhat.com>
14761
14762         di-set: add "const" to a cast
14763         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
14764         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
14765
14766 2011-02-06  Bruno Haible  <bruno@clisp.org>
14767
14768         Rename module 'wctype' to 'wctype-h'.
14769         * modules/wctype-h: Renamed from modules/wctype.
14770         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
14771         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
14772         (Files, Depends-on, Makefile.am): Update.
14773         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
14774         (Files, Makefile.am): Update.
14775         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
14776         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
14777         * doc/posix-headers/wctype.texi: Update.
14778         * doc/posix-functions/iswalnum.texi: Update.
14779         * doc/posix-functions/iswalpha.texi: Update.
14780         * doc/posix-functions/iswblank.texi: Update.
14781         * doc/posix-functions/iswcntrl.texi: Update.
14782         * doc/posix-functions/iswdigit.texi: Update.
14783         * doc/posix-functions/iswgraph.texi: Update.
14784         * doc/posix-functions/iswlower.texi: Update.
14785         * doc/posix-functions/iswprint.texi: Update.
14786         * doc/posix-functions/iswpunct.texi: Update.
14787         * doc/posix-functions/iswspace.texi: Update.
14788         * doc/posix-functions/iswupper.texi: Update.
14789         * doc/posix-functions/iswxdigit.texi: Update.
14790         * doc/posix-functions/towlower.texi: Update.
14791         * doc/posix-functions/towupper.texi: Update.
14792         * NEWS: Mention the change.
14793         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
14794         * modules/mbchar (Dependencies): Likewise.
14795         * modules/mbswidth (Dependencies): Likewise.
14796         * modules/quotearg (Dependencies): Likewise.
14797         * modules/regex (Dependencies): Likewise.
14798         * modules/wcscasecmp (Dependencies): Likewise.
14799         * modules/wcsncasecmp (Dependencies): Likewise.
14800         * modules/wcwidth (Dependencies): Likewise.
14801
14802 2011-02-06  Bruno Haible  <bruno@clisp.org>
14803
14804         New module 'wcswidth'.
14805         * modules/wcswidth: New file.
14806         * lib/wchar.in.h (wcswidth): New declaration.
14807         * lib/wcswidth.c: New file.
14808         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
14809         * m4/wcswidth.m4: New file.
14810         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
14811         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
14812         REPLACE_WCSWIDTH.
14813         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
14814         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
14815         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
14816         * doc/posix-functions/wcswidth.texi: Mention the new module.
14817
14818 2011-02-06  Bruno Haible  <bruno@clisp.org>
14819
14820         New module 'wcstok'.
14821         * modules/wcstok: New file.
14822         * lib/wchar.in.h (wcstok): New declaration.
14823         * lib/wcstok.c: New file.
14824         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
14825         * m4/wcstok.m4: New file.
14826         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
14827         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
14828         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
14829         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
14830         * doc/posix-functions/wcstok.texi: Mention the new module.
14831
14832 2011-02-06  Bruno Haible  <bruno@clisp.org>
14833
14834         New module 'wcsstr'.
14835         * modules/wcsstr: New file.
14836         * lib/wchar.in.h (wcsstr): New declaration.
14837         * lib/wcsstr.c: New file.
14838         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
14839         * m4/wcsstr.m4: New file.
14840         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
14841         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
14842         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
14843         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
14844         * doc/posix-functions/wcsstr.texi: Mention the new module.
14845
14846 2011-02-06  Bruno Haible  <bruno@clisp.org>
14847
14848         New module 'wcspbrk'.
14849         * modules/wcspbrk: New file.
14850         * lib/wchar.in.h (wcspbrk): New declaration.
14851         * lib/wcspbrk.c: New file.
14852         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
14853         * m4/wcspbrk.m4: New file.
14854         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
14855         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
14856         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
14857         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
14858         * doc/posix-functions/wcspbrk.texi: Mention the new module.
14859
14860 2011-02-06  Bruno Haible  <bruno@clisp.org>
14861
14862         New module 'wcsspn'.
14863         * modules/wcsspn: New file.
14864         * lib/wchar.in.h (wcsspn): New declaration.
14865         * lib/wcsspn.c: New file.
14866         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
14867         * m4/wcsspn.m4: New file.
14868         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
14869         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
14870         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
14871         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
14872         * doc/posix-functions/wcsspn.texi: Mention the new module.
14873
14874 2011-02-06  Bruno Haible  <bruno@clisp.org>
14875
14876         New module 'wcscspn'.
14877         * modules/wcscspn: New file.
14878         * lib/wchar.in.h (wcscspn): New declaration.
14879         * lib/wcscspn.c: New file.
14880         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
14881         * m4/wcscspn.m4: New file.
14882         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
14883         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
14884         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
14885         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
14886         * doc/posix-functions/wcscspn.texi: Mention the new module.
14887
14888 2011-02-06  Bruno Haible  <bruno@clisp.org>
14889
14890         New module 'wcsrchr'.
14891         * modules/wcsrchr: New file.
14892         * lib/wchar.in.h (wcsrchr): New declaration.
14893         * lib/wcsrchr.c: New file.
14894         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
14895         * m4/wcsrchr.m4: New file.
14896         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
14897         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
14898         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
14899         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
14900         * doc/posix-functions/wcsrchr.texi: Mention the new module.
14901
14902 2011-02-06  Bruno Haible  <bruno@clisp.org>
14903
14904         New module 'wcschr'.
14905         * modules/wcschr: New file.
14906         * lib/wchar.in.h (wcschr): New declaration.
14907         * lib/wcschr.c: New file.
14908         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
14909         * m4/wcschr.m4: New file.
14910         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
14911         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
14912         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
14913         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
14914         * doc/posix-functions/wcschr.texi: Mention the new module.
14915
14916 2011-02-06  Bruno Haible  <bruno@clisp.org>
14917
14918         New module 'wcsdup'.
14919         * modules/wcsdup: New file.
14920         * lib/wchar.in.h (wcsdup): New declaration.
14921         * lib/wcsdup.c: New file.
14922         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
14923         * m4/wcsdup.m4: New file.
14924         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
14925         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
14926         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
14927         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
14928         * doc/posix-functions/wcsdup.texi: Mention the new module.
14929
14930 2011-02-06  Bruno Haible  <bruno@clisp.org>
14931
14932         New module 'wcsxfrm'.
14933         * modules/wcsxfrm: New file.
14934         * lib/wchar.in.h (wcsxfrm): New declaration.
14935         * lib/wcsxfrm.c: New file.
14936         * lib/wcsxfrm-impl.h: New file.
14937         * m4/wcsxfrm.m4: New file.
14938         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
14939         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
14940         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
14941         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
14942         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
14943
14944 2011-02-06  Bruno Haible  <bruno@clisp.org>
14945
14946         New module 'wcscoll'.
14947         * modules/wcscoll: New file.
14948         * lib/wchar.in.h (wcscoll): New declaration.
14949         * lib/wcscoll.c: New file.
14950         * lib/wcscoll-impl.h: New file.
14951         * m4/wcscoll.m4: New file.
14952         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
14953         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
14954         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
14955         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
14956         * doc/posix-functions/wcscoll.texi: Mention the new module.
14957
14958 2011-02-06  Bruno Haible  <bruno@clisp.org>
14959
14960         New module 'wcsncasecmp'.
14961         * modules/wcsncasecmp: New file.
14962         * lib/wchar.in.h (wcsncasecmp): New declaration.
14963         * lib/wcsncasecmp.c: New file.
14964         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
14965         * m4/wcsncasecmp.m4: New file.
14966         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
14967         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
14968         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
14969         HAVE_WCSNCASECMP.
14970         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
14971         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
14972
14973 2011-02-06  Bruno Haible  <bruno@clisp.org>
14974
14975         New module 'wcscasecmp'.
14976         * modules/wcscasecmp: New file.
14977         * lib/wchar.in.h (wcscasecmp): New declaration.
14978         * lib/wcscasecmp.c: New file.
14979         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
14980         * m4/wcscasecmp.m4: New file.
14981         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
14982         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
14983         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
14984         HAVE_WCSCASECMP.
14985         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
14986         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
14987
14988 2011-02-05  Bruno Haible  <bruno@clisp.org>
14989
14990         New module 'wcsncmp'.
14991         * modules/wcsncmp: New file.
14992         * lib/wchar.in.h (wcsncmp): New declaration.
14993         * lib/wcsncmp.c: New file.
14994         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
14995         * m4/wcsncmp.m4: New file.
14996         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
14997         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
14998         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
14999         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
15000         * doc/posix-functions/wcsncmp.texi: Mention the new module.
15001
15002 2011-02-05  Bruno Haible  <bruno@clisp.org>
15003
15004         New module 'wcscmp'.
15005         * modules/wcscmp: New file.
15006         * lib/wchar.in.h (wcscmp): New declaration.
15007         * lib/wcscmp.c: New file.
15008         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
15009         * m4/wcscmp.m4: New file.
15010         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
15011         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
15012         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
15013         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
15014         * doc/posix-functions/wcscmp.texi: Mention the new module.
15015
15016 2011-02-05  Bruno Haible  <bruno@clisp.org>
15017
15018         New module 'wcsncat'.
15019         * modules/wcsncat: New file.
15020         * lib/wchar.in.h (wcsncat): New declaration.
15021         * lib/wcsncat.c: New file.
15022         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
15023         * m4/wcsncat.m4: New file.
15024         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
15025         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
15026         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
15027         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
15028         * doc/posix-functions/wcsncat.texi: Mention the new module.
15029
15030 2011-02-05  Bruno Haible  <bruno@clisp.org>
15031
15032         New module 'wcscat'.
15033         * modules/wcscat: New file.
15034         * lib/wchar.in.h (wcscat): New declaration.
15035         * lib/wcscat.c: New file.
15036         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
15037         * m4/wcscat.m4: New file.
15038         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
15039         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
15040         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
15041         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
15042         * doc/posix-functions/wcscat.texi: Mention the new module.
15043
15044 2011-02-05  Bruno Haible  <bruno@clisp.org>
15045
15046         New module 'wcpncpy'.
15047         * modules/wcpncpy: New file.
15048         * lib/wchar.in.h (wcpncpy): New declaration.
15049         * lib/wcpncpy.c: New file.
15050         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
15051         * m4/wcpncpy.m4: New file.
15052         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
15053         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
15054         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
15055         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
15056         * doc/posix-functions/wcpncpy.texi: Mention the new module.
15057
15058 2011-02-05  Bruno Haible  <bruno@clisp.org>
15059
15060         New module 'wcsncpy'.
15061         * modules/wcsncpy: New file.
15062         * lib/wchar.in.h (wcsncpy): New declaration.
15063         * lib/wcsncpy.c: New file.
15064         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
15065         * m4/wcsncpy.m4: New file.
15066         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
15067         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
15068         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
15069         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
15070         * doc/posix-functions/wcsncpy.texi: Mention the new module.
15071
15072 2011-02-05  Bruno Haible  <bruno@clisp.org>
15073
15074         New module 'wcpcpy'.
15075         * modules/wcpcpy: New file.
15076         * lib/wchar.in.h (wcpcpy): New declaration.
15077         * lib/wcpcpy.c: New file.
15078         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
15079         * m4/wcpcpy.m4: New file.
15080         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
15081         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
15082         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
15083         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
15084         * doc/posix-functions/wcpcpy.texi: Mention the new module.
15085
15086 2011-02-05  Bruno Haible  <bruno@clisp.org>
15087
15088         New module 'wcscpy'.
15089         * modules/wcscpy: New file.
15090         * lib/wchar.in.h (wcscpy): New declaration.
15091         * lib/wcscpy.c: New file.
15092         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
15093         * m4/wcscpy.m4: New file.
15094         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
15095         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
15096         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
15097         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
15098         * doc/posix-functions/wcscpy.texi: Mention the new module.
15099
15100 2011-02-05  Bruno Haible  <bruno@clisp.org>
15101
15102         New module 'wcsnlen'.
15103         * modules/wcsnlen: New file.
15104         * lib/wchar.in.h (wcsnlen): New declaration.
15105         * lib/wcsnlen.c: New file.
15106         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
15107         * m4/wcsnlen.m4: New file.
15108         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
15109         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
15110         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
15111         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
15112         * doc/posix-functions/wcsnlen.texi: Mention the new module.
15113
15114 2011-02-05  Bruno Haible  <bruno@clisp.org>
15115
15116         New module 'wcslen'.
15117         * modules/wcslen: New file.
15118         * lib/wchar.in.h (wcslen): New declaration.
15119         * lib/wcslen.c: New file.
15120         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
15121         * m4/wcslen.m4: New file.
15122         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
15123         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
15124         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
15125         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
15126         * doc/posix-functions/wcslen.texi: Mention the new module.
15127
15128 2011-02-05  Bruno Haible  <bruno@clisp.org>
15129
15130         New module 'wmemset'.
15131         * modules/wmemset: New file.
15132         * lib/wchar.in.h (wmemset): New declaration.
15133         * lib/wmemset.c: New file.
15134         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
15135         * m4/wmemset.m4: New file.
15136         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
15137         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
15138         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
15139         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
15140         * doc/posix-functions/wmemset.texi: Mention the new module.
15141
15142 2011-02-05  Bruno Haible  <bruno@clisp.org>
15143
15144         New module 'wmemmove'.
15145         * modules/wmemmove: New file.
15146         * lib/wchar.in.h (wmemmove): New declaration.
15147         * lib/wmemmove.c: New file.
15148         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
15149         * m4/wmemmove.m4: New file.
15150         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
15151         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
15152         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
15153         HAVE_WMEMMOVE.
15154         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
15155         * doc/posix-functions/wmemmove.texi: Mention the new module.
15156
15157 2011-02-05  Bruno Haible  <bruno@clisp.org>
15158
15159         New module 'wmemcpy'.
15160         * modules/wmemcpy: New file.
15161         * lib/wchar.in.h (wmemcpy): New declaration.
15162         * lib/wmemcpy.c: New file.
15163         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
15164         * m4/wmemcpy.m4: New file.
15165         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
15166         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
15167         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
15168         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
15169         * doc/posix-functions/wmemcpy.texi: Mention the new module.
15170
15171 2011-02-05  Bruno Haible  <bruno@clisp.org>
15172
15173         New module 'wmemcmp'.
15174         * modules/wmemcmp: New file.
15175         * lib/wchar.in.h (wmemcmp): New declaration.
15176         * lib/wmemcmp.c: New file.
15177         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
15178         * m4/wmemcmp.m4: New file.
15179         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
15180         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
15181         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
15182         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
15183         * doc/posix-functions/wmemcmp.texi: Mention the new module.
15184
15185 2011-02-07  Jim Meyering  <meyering@redhat.com>
15186
15187         di-set, ino-map: new modules, from coreutils
15188         * lib/di-set.c: New file.
15189         * lib/di-set.h: Likewise.
15190         * lib/ino-map.c: Likewise.
15191         * lib/ino-map.h: Likewise.
15192         * modules/di-set: Likewise.
15193         * modules/di-set-tests: Likewise.
15194         * modules/ino-map: Likewise.
15195         * modules/ino-map-tests: Likewise.
15196         * tests/test-di-set.c: Likewise.
15197         * tests/test-ino-map.c: Likewise.
15198
15199 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
15200
15201         getloadavg: merge minor changes from Emacs
15202
15203         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
15204         (getloadavg): Use memset, not bzero.
15205
15206         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
15207         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
15208         clash (bug#86).
15209
15210 2010-11-14  Bruno Haible  <bruno@clisp.org>
15211
15212         Allow multiple gnulib generated replacements to coexist.
15213         * lib/getopt.in.h (struct option): Avoid identical redefinition.
15214         * lib/inttypes.in.h (imaxdiv_t): Likewise.
15215         * lib/langinfo.in.h (nl_item): Likewise.
15216         * lib/math.in.h (_NaN, NAN): Likewise.
15217         * lib/netdb.in.h (struct addrinfo): Likewise.
15218         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
15219         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
15220         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
15221         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
15222         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
15223         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
15224         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
15225         pthread_mutexattr_init, pthread_mutexattr_settype,
15226         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
15227         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
15228         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
15229         pthread_spin_trylock, pthread_spin_unlock): Likewise.
15230         * lib/sched.in.h (struct sched_param): Likewise.
15231         * lib/se-selinux.in.h (security_class_t, security_context_t,
15232         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
15233         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
15234         lsetfilecon, fsetfilecon, security_check_context,
15235         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
15236         Likewise.
15237         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
15238         Likewise.
15239         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
15240         _gl_function_taking_int_returning_void_t, union sigval,
15241         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
15242         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
15243         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15244         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
15245         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
15246         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
15247         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
15248         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
15249         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
15250         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
15251         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
15252         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
15253         socklen_t, rpl_fd_isset): Likewise.
15254         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
15255         * lib/sys_time.in.h (struct timeval): Likewise.
15256         * lib/sys_times.in.h (struct tms): Likewise.
15257         * lib/sys_utsname.in.h (struct utsname):
15258         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
15259         * lib/unistd.in.h (getpagesize): Likewise.
15260         * lib/wchar.in.h (mbstate_t): Likewise.
15261         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
15262         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
15263         towlower, towupper): Likewise.
15264         Reported by Sam Steingold <sds@gnu.org>.
15265
15266 2011-02-05  Eric Blake  <eblake@redhat.com>
15267
15268         unsetenv: work around Haiku issues
15269         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
15270         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
15271
15272 2010-12-30  Bruce Korb  <bkorb@gnu.org>
15273
15274         libposix: avoid calling error() within libposix
15275         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
15276         is defined.
15277
15278 2011-02-05  Eric Blake  <eblake@redhat.com>
15279
15280         strerror_r-posix: port to cygwin
15281         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
15282         implementation.
15283         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
15284         * tests/test-strerror_r.c (main): Fix test.
15285         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15286         issue.
15287
15288 2011-02-05  Bruno Haible  <bruno@clisp.org>
15289
15290         New module 'wmemchr'.
15291         * modules/wmemchr: New file.
15292         * lib/wchar.in.h (wmemchr): New declaration.
15293         * lib/wmemchr.c: New file.
15294         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
15295         * m4/wmemchr.m4: New file.
15296         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
15297         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
15298         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
15299         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
15300         * doc/posix-functions/wmemchr.texi: Mention the new module.
15301
15302 2011-02-04  Eric Blake  <eblake@redhat.com>
15303
15304         fdopendir: detect FreeBSD bug
15305         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
15306         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
15307
15308 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
15309
15310         stdbool: do not define HAVE_STDBOOL_H
15311         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
15312         AC_HEADER_STDBOOL.  All uses changed.  Do not define
15313         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
15314         imported from the latest Autoconf git.  It was motivated by Emacs,
15315         which uses gnulib but does not need HAVE_STDBOOL_H.
15316
15317 2011-02-04  Bruno Haible  <bruno@clisp.org>
15318
15319         wcsnrtombs: Prepare for new module wwcsnrtombs.
15320         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
15321         * lib/wcsnrtombs.c: Include it.
15322         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
15323
15324         wcsrtombs: Prepare for new module wwcsrtombs.
15325         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
15326         * lib/wcsrtombs.c: Include it.
15327         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
15328
15329         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
15330         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
15331         * lib/mbsnrtowcs.c: Include it.
15332         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
15333
15334         mbsrtowcs: Prepare for new module mbsrtowwcs.
15335         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
15336         * lib/mbsrtowcs.c: Include it.
15337         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
15338
15339 2011-02-04  Bruno Haible  <bruno@clisp.org>
15340
15341         vasnprintf: Reduce use of malloc for small format strings.
15342         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
15343         (arguments): Add room for the first 7 arguments.
15344         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
15345         (char_directives, u8_directives, u16_directives, u32_directives): Add
15346         room for the first 7 directives.
15347         * lib/printf-parse.c: Include <string.h>.
15348         (PRINTF_PARSE): Change memory handling code so that it uses the first
15349         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
15350         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
15351         Reported by Pádraig Brady <P@draigbrady.com>.
15352
15353 2011-01-31  Eric Blake  <eblake@redhat.com>
15354
15355         dup2: work around Haiku bug
15356         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
15357         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
15358         * doc/posix-functions/dup2.texi (dup2): Document the bug.
15359         * tests/test-dup2.c (main): Enhance test.
15360
15361 2011-01-31  Simon Josefsson  <simon@josefsson.org>
15362
15363         doc: off_t is not available in eglibc 2.11.2 stdio.h.
15364         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
15365         declared by eglibc 2.11.2.
15366         * lib/stdio.in.h: Likewise.
15367
15368 2011-01-31  Eric Blake  <eblake@redhat.com>
15369
15370         ignore-value: add missing test dependency
15371         * tests/test-ignore-value.c: Revert previous change; stdio.h
15372         provides off_t.
15373         * modules/ignore-value-tests (Depends-on): Add missing dependency.
15374
15375 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
15376
15377         mktime: clarify long_int width checking
15378         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
15379         the top level, to make it clearer that the assumption about
15380         long_int width is being checked.  See
15381         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
15382
15383 2011-01-30  Simon Josefsson  <simon@josefsson.org>
15384
15385         ignore-value: Fix self-test.
15386         * tests/test-ignore-value.c: Include sys/types.h for off_t.
15387
15388 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
15389
15390         TYPE_MAXIMUM: avoid theoretically undefined behavior
15391         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
15392         negative number, which the C Standard says has undefined behavior.
15393         In practice this is not a problem, but might as well do it by the book.
15394         Reported by Rich Felker and Eric Blake; see
15395         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
15396         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
15397         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
15398         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15399         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
15400         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15401         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
15402
15403         mktime: #undef mktime before #defining it
15404         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
15405
15406         mktime: systematically normalize tm_isdst comparisons
15407         * lib/mktime.c (isdst_differ): New function.
15408         (__mktime_internal): Use it systematically for all isdst comparisons.
15409         This completes the fix for libc BZ #6723, and removes the need for
15410         normalizing tm_isdst.  See
15411         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
15412         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
15413
15414         mktime: fix some integer overflow issues and sidestep the rest
15415
15416         This was prompted by a bug report by Benjamin Lindner for MinGW
15417         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
15418         His bug is due to signed integer overflow (0 - INT_MIN), and I
15419         I scanned through mktime.c looking for other integer overflow
15420         problems, fixing all the bugs I found.
15421
15422         Although the C Standard says the resulting code is still not safe
15423         in the presence of integer overflow, in practice it should be good
15424         enough for all real-world two's-complement implementations, except
15425         for debugging environments that deliberately trap on integer
15426         overflow (e.g., gcc -ftrapv).
15427
15428         * lib/mktime.c (WRAPV): New macro.
15429         (SHR): Also check that long_int and time_t shift right in the
15430         usual way, before using the fast-but-unportable method.
15431         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
15432         used.  The code already assumed two's complement, so there's
15433         no need to test for alternatives.  All uses removed.
15434         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
15435         the C standard.  Problem reported by Rich Felker in
15436         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
15437         (twos_complement_arithmetic): Also check long_int and time_t.
15438         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
15439         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
15440         (__mktime_internal): Avoid integer overflow with unary subtraction
15441         in two instances where -1 - X is an adequate replacement for -X,
15442         since the calculations are approximate.
15443
15444 2011-01-29  Eric Blake  <eblake@redhat.com>
15445
15446         mktime: avoid infinite loop
15447         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
15448         type; behavior is still undefined but portable to all known targets.
15449         Reported by Rich Felker.
15450
15451 2011-01-29  Simon Josefsson  <simon@josefsson.org>
15452
15453         rename, unlink, same-inode: Relicense.
15454         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
15455         * modules/unlink (License): Likewise.
15456         * modules/same-inode (License): Likewise.
15457
15458 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
15459
15460         mktime: avoid problems on NetBSD 5 / i386
15461         * lib/mktime.c (long_int): New type.  This works around a problem
15462         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
15463         but time_t is 64 bits, and where I expect the existing code is
15464         wrong in some cases.
15465         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
15466         (ydhms_diff): Bring back the compile-time check for wide-enough
15467         year and yday.
15468
15469         mktime: fix misspelling in comment
15470         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
15471         This merges all recent glibc changes of importance.
15472
15473 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15474
15475         move-if-change: cope with concurrent mv of identical file.
15476         * build-aux/move-if-change (CMPPROG): Accept environment
15477         variable as an override for `cmp'.
15478         (usage): Document CMPPROG.
15479         Adjust comparison to drop stdout.  Cope with failure of mv if
15480         the target file exists and is identical to the source, for
15481         parallel builds.
15482         Report from H.J. Lu against binutils in PR binutils/12283.
15483
15484 2011-01-28  Bruce Korb  <bkorb@gnu.org>
15485
15486         * users.txt: Mention sharutils.
15487
15488 2011-01-28  Simon Josefsson  <simon@josefsson.org>
15489
15490         * users.txt: Mention OATH Toolkit.
15491
15492 2011-01-27  Bruno Haible  <bruno@clisp.org>
15493
15494         Prepare for supporting FreeBSD 10.
15495         * build-aux/config.libpath: Remove handling of freebsd1*.
15496
15497 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
15498
15499         Prepare for supporting FreeBSD 10.
15500         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
15501         match FreeBSD 10.0.
15502
15503 2011-01-27  Bruno Haible  <bruno@clisp.org>
15504
15505         vma-iter, get-rusage-as: Add OpenBSD support.
15506         * modules/vma-iter (configure.ac): Test for mquery.
15507         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
15508         * lib/vma-iter.c: Include <sys/mman.h>.
15509         (vma_iterate): Add an implementation based on mquery().
15510         * lib/resource-ext.h (get_rusage_as): Update comments.
15511         * lib/get-rusage-as.c: Likewise.
15512         * lib/get-rusage-data.c: Likewise.
15513
15514 2011-01-26  Karl Berry  <karl@gnu.org>
15515
15516         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
15517         variables to make it easier to override the makeinfo program used.
15518
15519 2011-01-26  Eric Blake  <eblake@redhat.com>
15520
15521         fcntl: work around Haiku F_DUPFD bugs
15522         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
15523         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
15524         cloexec bit on duplication.
15525         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
15526
15527 2011-01-26  Bruno Haible  <bruno@clisp.org>
15528
15529         Enable memory leak tests on AIX.
15530         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
15531         * tests/test-fprintf-posix3.c (main): Likewise.
15532
15533 2011-01-26  Bruno Haible  <bruno@clisp.org>
15534
15535         Tests for module 'get-rusage-data'.
15536         * modules/get-rusage-data-tests: New file.
15537         * tests/test-get-rusage-data.c: New file.
15538
15539         New module 'get-rusage-data'.
15540         * lib/resource-ext.h (get_rusage_data): New declaration.
15541         * lib/get-rusage-data.c: New file.
15542         * modules/get-rusage-data: New file.
15543
15544 2011-01-25  Bruno Haible  <bruno@clisp.org>
15545
15546         get-rusage-as: Allow for easier testing.
15547         * lib/resource-ext.h (get_rusage_as): Add comment.
15548         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
15549         (main): New function for interactive testing.
15550
15551 2011-01-25  Bruno Haible  <bruno@clisp.org>
15552
15553         vma-iter: Treat Haiku like BeOS.
15554         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
15555         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
15556
15557 2011-01-25  Eric Blake  <eblake@redhat.com>
15558
15559         c-stack: fix regression on cygwin when libsigsegv is present
15560         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
15561
15562 2011-01-24  Bruno Haible  <bruno@clisp.org>
15563
15564         vma-iter: Avoid empty intervals.
15565         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
15566         on an empty interval.
15567
15568 2011-01-24  Jim Meyering  <meyering@redhat.com>
15569
15570         u64: remove unnecessary #include
15571         * lib/u64.h: Don't include <stddef.h>.  It was not used.
15572
15573 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15574
15575         Allow the user to avoid the HAVE_RAW_DECL_* macros.
15576         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
15577
15578 2011-01-23  Bruno Haible  <bruno@clisp.org>
15579
15580         New module 'vma-iter'.
15581         * lib/vma-iter.h: New file.
15582         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
15583         * modules/vma-iter: New file.
15584         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
15585         for get_rusage_as_via_iterator.
15586         (vma_iterate_callback): New function.
15587         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
15588         * modules/get-rusage-as (Depends-on): Add vma-iter.
15589
15590 2011-01-23  Bruno Haible  <bruno@clisp.org>
15591
15592         uninorm: Tweak includes.
15593         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
15594         Reported by Jim Meyering.
15595
15596 2011-01-23  Bruno Haible  <bruno@clisp.org>
15597
15598         get-rusage-as: Improve on NetBSD.
15599         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
15600         /proc, like on FreeBSD.
15601
15602 2011-01-23  Jim Meyering  <meyering@redhat.com>
15603
15604         xreadlink.h: remove unnecessary #include
15605         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
15606
15607         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
15608         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
15609
15610 2011-01-23  Bruno Haible  <bruno@clisp.org>
15611
15612         get-rusage-as: Fix bug.
15613         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
15614         original limit when aborting the first loop.
15615
15616 2011-01-23  Bruno Haible  <bruno@clisp.org>
15617
15618         wctype: Ensure valid C syntax.
15619         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
15620         unconditionally, instead of gl_NEXT_HEADERS conditionally.
15621
15622 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
15623
15624         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
15625         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
15626         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
15627         as they are needed only for configure's test case.
15628         This removes two unnecessary symbols from config.h.
15629
15630         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
15631         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
15632         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
15633         AC_CHECK_HEADERS_ONCE on a header that we also invoke
15634         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
15635         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
15636         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
15637         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
15638         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
15639         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15640         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
15641         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15642         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15643         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15644         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15645         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15646         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
15647         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
15648
15649 2011-01-21  Eric Blake  <eblake@redhat.com>
15650
15651         maintainer-makefile: work with older git for submodule check
15652         * top/maint.mk (public-submodule-commit): Rewrite to avoid
15653         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
15654         Reported by Matthias Bolte.
15655
15656         bootstrap: minor portability fixes
15657         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
15658         (usage): Omit leading capital and trailing . on help phrases, per
15659         GNU Coding Standards.
15660         (check_versions, top level): Prefix messages with script name.
15661
15662 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
15663
15664         bootstrap: support --no-git option
15665         * build-aux/bootstrap: Add --no-git option, to be used when
15666         --gnulib-srcdir points to the exact desired checkout.
15667
15668 2011-01-21  Eric Blake  <eblake@redhat.com>
15669
15670         strerror_r-posix: work with glibc 2.13
15671         * lib/strerror_r.c (strerror_r): Fix return type.
15672
15673 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15674             Bruno Haible  <bruno@clisp.org>
15675
15676         uN_strstr: New unit tests.
15677         * modules/unistr/u8-strstr-tests: New file.
15678         * modules/unistr/u16-strstr-tests: New file.
15679         * modules/unistr/u32-strstr-tests: New file.
15680         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
15681         * tests/unistr/test-u8-strstr.c: New file.
15682         * tests/unistr/test-u16-strstr.c: New file.
15683         * tests/unistr/test-u32-strstr.c: New file.
15684
15685 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15686             Bruno Haible  <bruno@clisp.org>
15687
15688         Make uN_strstr functions O(n) worst-case.
15689         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
15690         16-bit and 32-bit unit cases, use the unibyte algorithm from
15691         lib/mbsstr.c.
15692         * lib/unistr/u8-strstr.c: Include <string.h>.
15693         (UNIT_IS_UINT8_T): New macro.
15694         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
15695         (U_STRLEN, U_STRNLEN): New macros.
15696         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
15697         (U_STRLEN, U_STRNLEN): New macros.
15698         * modules/unistr/u8-strstr (Depends-on): Add strstr.
15699         (configure.ac): Update required libunistring version.
15700         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
15701         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
15702         malloca.
15703         (configure.ac): Update required libunistring version.
15704         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
15705         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
15706         malloca.
15707         (configure.ac): Update required libunistring version.
15708
15709 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15710             Bruno Haible  <bruno@clisp.org>
15711
15712         Prepare for faster uN_strstr functions.
15713         * lib/str-kmp.h: Support definable UNITs.
15714         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
15715         needle_len argument.
15716         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
15717         * lib/mbscasestr.c (mbscasestr): Likewise.
15718
15719 2011-01-21  Pádraig Brady <P@draigBrady.com>
15720
15721         malloca-tests: make faster by unsetting MALLOC_PERTURB_
15722         * tests/test-malloca.c (main): Unset the environment variable
15723         to greatly speed up the test.
15724         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
15725         * modules/malloca-tests: Depend on unsetenv.
15726
15727 2011-01-21  Pádraig Brady <P@draigBrady.com>
15728
15729         ignore-value: remove stdint dependency
15730         * lib/ignore-value.h: Remove <stdint.h>
15731         * modules/ignore-value: Remove stdint dependency.
15732
15733 2011-01-21  Jim Meyering  <meyering@redhat.com>
15734
15735         maint.mk: adjust variable name to be consistent with other gl_ vars
15736         * top/maint.mk (gl_public_submodule_commit): Rename the variable
15737         to be lower case.
15738
15739 2011-01-20  Jim Meyering  <meyering@redhat.com>
15740
15741         maint.mk: make "check" depend on public-submodule-commit by default
15742         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
15743
15744 2011-01-20  Bruno Haible  <bruno@clisp.org>
15745
15746         mbfile, mbiter: Complete change from 2008-12-21.
15747         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
15748         * m4/mbiter.m4 (gl_MBITER): Likewise.
15749
15750 2011-01-20  Jim Meyering  <meyering@redhat.com>
15751
15752         init.sh: insert space between each function name and "()"
15753         * tests/init.sh: Make it a little easier to see that a function's
15754         name is "warn_", and not "warn" when looking at the first part of
15755         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
15756
15757 2011-01-20  Jim Meyering  <meyering@redhat.com>
15758
15759         mountlist: clean up code formatting
15760         * lib/mountlist.c (read_file_system_list): Split a long line,
15761         correct bracing style, use NULL in place of "(struct statfs *)0",
15762         don't parenthesize return value, add spaces around "=" and after
15763         ";-in-for-stmt".
15764
15765 2011-01-14  Markus Duft <mduft@gentoo.org>
15766
15767         mountlist: add support for Interix
15768         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
15769         Apply statvfs to all entries of /dev/fs.
15770         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
15771         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
15772
15773 2011-01-20  Jim Meyering  <meyering@redhat.com>
15774
15775         maint.mk: improve the public-submodule-commit rule
15776         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
15777         to suppress printing of its commands... unless V=1.
15778         Add git submodule's --quiet option to suppress printing of e.g.,
15779         "Entering gnulib" output.
15780         "cd" into $(srcdir) before running git submodule.
15781
15782 2011-01-20  Bruno Haible  <bruno@clisp.org>
15783
15784         include_next: Fix bug introduced on 2011-01-18.
15785         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
15786         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
15787         ac_cv_header_... variable if the second argument is not 'check'.
15788         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
15789         gl_NEXT_HEADERS_INTERNAL.
15790
15791 2011-01-20  Bruno Haible  <bruno@clisp.org>
15792
15793         Allow the user to avoid the GNULIB_TEST_* macros.
15794         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
15795         Suggested by Paul Eggert.
15796
15797 2011-01-14  Jim Meyering  <meyering@redhat.com>
15798
15799         bootstrap: avoid failure when there is no .gitmodules file
15800         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
15801         has been assigned to, even when its value is the empty string.
15802         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
15803         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
15804         Reported by John W. Eaton <jwe@gnu.org>.
15805
15806 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
15807
15808         assume <ctype.h>, ..., <time.h> exist
15809         For years gnulib has been assuming the existence of the headers
15810         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
15811         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
15812         them, since they don't appear to be needed.
15813         * README (Portability guidelines): Document this.
15814         * lib/flock.c: Assume <fcntl.h> exists.
15815         * lib/regex_internal.h: Assume <locale.h> exists.
15816         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
15817         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
15818         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
15819         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
15820         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
15821         * m4/regex.m4 (gl_REGEX): Likewise.
15822         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
15823         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
15824         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
15825         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
15826         * tests/test-argp.c: Likewise.
15827         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
15828
15829         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
15830         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
15831         AA_APPLE_UNIVERSAL_BUILD.  See
15832         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
15833         * NEWS: Document this.
15834
15835 2011-01-19  Eric Blake  <eblake@redhat.com>
15836
15837         c-stack: assume stack overflow if SA_SIGINFO unsupported
15838         * lib/c-stack.c (SIGACTION_WORKS): Rename...
15839         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
15840         sigaction will work.
15841         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
15842         behavior match Linux.
15843         * tests/test-c-stack.c (main): Prefer NULL for pointers.
15844
15845         stdbool-tests: accomodate Haiku
15846         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
15847
15848         binary-io: fix O_TEXT on Haiku
15849         * modules/binary-io (Depends-on): Add fcntl-h.
15850         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
15851         than blindly undefining O_TEXT.
15852         Reported by Scott McCreary.
15853
15854 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15855
15856         include_next: do not check for standard headers like stddef.h
15857
15858         I found this problem when modifying Emacs to use gnulib.
15859         I noticed that it added HAVE_STDDEF_H to config.h, even though
15860         gnulib always assumes <stddef.h> exists as per README and this
15861         symbol is unnecessary.
15862         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
15863         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
15864         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
15865         faster for headers like stddef.h that are known to exist.
15866         (gl_CHECK_NEXT_HEADERS): Use it.
15867         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
15868         rather than gl_CHECK_NEXT_HEADERS.
15869         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
15870         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
15871
15872 2011-01-18  Eric Blake  <eblake@redhat.com>
15873
15874         ansi-c++-opt: skip C++ dependency style if C++ is unused
15875         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
15876         tests when we know C++ compilation is not desired.
15877         Reported by Scott McCreary.
15878
15879 2011-01-18  Bruno Haible  <bruno@clisp.org>
15880
15881         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
15882         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
15883         (main): Perform test also when getrlimit and setrlimit don't exist or
15884         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
15885         limiting the address space size using setrlimit, compare the address
15886         space size before and after the the test.
15887         * tests/test-dprintf-posix2.c: Likewise.
15888         * tests/test-fprintf-posix3.sh: Update skip messages.
15889         * tests/test-dprintf-posix2.sh: Likewise.
15890         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
15891         * modules/dprintf-posix-tests (Depends-on): Likewise.
15892         Reported by Bruce Korb <bkorb@gnu.org> and
15893         Gary V. Vaughan <gary@gnu.org>.
15894
15895 2011-01-18  Bruno Haible  <bruno@clisp.org>
15896
15897         get-rusage-as: Improvement for Cygwin.
15898         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
15899         areas that are merely reserved.
15900
15901 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15902
15903         strftime: remove dependencies on multibyte modules
15904
15905         strftime depended on mbrlen, mbsinit, and wchar, but these modules
15906         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
15907         only if __osf__ is defined, and I suspect OSF doesn't need these
15908         other modules.  If my guess is wrong, we'll need to come up with a
15909         variant of strftime that doesn't need the multibyte modules.
15910
15911         I discovered this problem when attempting modify Emacs to use the
15912         strftime module.  With the previous gnulib, this caused Emacs to
15913         need 31 new files, ranging from lib/config.charset to
15914         m4/wint_t.m4.  This was overkill and I expect would be offputting
15915         to the Emacs maintainers.  After this change, only 6 new files are
15916         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
15917         stdbool.m4, and tm_gmtoff.m4.
15918
15919         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
15920         Suggested by Bruno Haible in
15921         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
15922         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
15923         and do not check for wchar.h.
15924         * modules/strftime (Files): Remove m4/mbstate_t.m4.
15925         (Depends-on): Remove mbrlen, mbsinit, wchar.
15926
15927 2011-01-18  Bruno Haible  <bruno@clisp.org>
15928
15929         Tests for module 'get-rusage-as'.
15930         * modules/get-rusage-as-tests: New file.
15931         * tests/test-get-rusage-as.c: New file.
15932
15933         New module 'get-rusage-as'.
15934         * modules/get-rusage-as: New file.
15935         * lib/resource-ext.h: New file.
15936         * lib/get-rusage-as.c: New file.
15937
15938 2011-01-17  Eric Blake  <eblake@redhat.com>
15939
15940         sigaction: relax license from LGPLv3+ to LGPLv2+
15941         * modules/sigaction (License): Relax to LGPLv2+.
15942
15943 2011-01-14  Bruno Haible  <bruno@clisp.org>
15944
15945         filemode: Make function declarations usable in C++ mode.
15946         * lib/filemode.h: Enclose function declarations in extern "C" block.
15947         Reported by John W. Eaton <jwe@gnu.org>.
15948
15949 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
15950
15951         save-cwd: no longer include "xgetcwd.h"
15952         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
15953         This avoids a compilation failure in projects that use save-cwd
15954         without also using the xgetcwd module.
15955
15956 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15957
15958         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
15959         This is so that a program like Emacs, which needs only dtoastr,
15960         does not have to bother with distributing and compiling ftoastr
15961         and ldtoastr.
15962         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
15963         * modules/dtoastr, modules/ldtoastr: New files.
15964         * modules/ftoastr: Now works just for 'float'.
15965         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
15966         (Makefile.am): Remove ftoastr.h (not needed and no effect),
15967         dtoastr.c, ldtoastr.c.
15968
15969 2011-01-11  Jim Meyering  <meyering@redhat.com>
15970
15971         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
15972         There is no need to work around the lack of the fchdir function,
15973         since gnulib can now provide a replacement when required.
15974         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
15975         * modules/save-cwd (Depends-on): Add fchdir.
15976
15977 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15978
15979         openat, save-cwd: avoid xmalloc
15980
15981         This removes a direct (but undocumented) dependency of openat on
15982         xalloc, along with an indirect dependency via save-cwd.  It also
15983         removes a dependency of save-cwd on xgetcwd, and thereby
15984         indirectly on xalloc.  This change causes the openat substitute
15985         to fall back on save_cwd when memory is tight, and for save_cwd to
15986         fail instead of dying when memory is tight, but that's good enough.
15987         Problem and initial idea for fix reported by Bastien Roucaries in
15988         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
15989
15990         * lib/openat-proc.c: Include stdlib.h (for malloc), not
15991         xalloc.h (for xmalloc).
15992         (openat_proc_name): Use malloc, not xmalloc.
15993         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
15994         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
15995
15996         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
15997         This avoids heap allocation for file names whose lengths are in
15998         the range 512..1023, with the upper bound increasing to at most
15999         4031 depending on the platform's PATH_MAX.  (We do not want
16000         pathmax.h here as it might supply a non-constant PATH_MAX.)
16001         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
16002         Perhaps they should be moved to malloca.h?
16003         (OPENAT_BUFFER_SIZE): Use them.
16004
16005 2011-01-10  Bruno Haible  <bruno@clisp.org>
16006
16007         doc: Update users.txt.
16008         * users.txt: Add recutils.
16009
16010 2011-01-09  Karl Berry  <karl@gnu.org>
16011
16012         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
16013
16014         * doc/configmake.texi: New file.
16015         * doc/gnulib.texi: Include it.
16016         * modules/configmake: Move documentation from here.
16017
16018 2011-01-09  Bruno Haible  <bruno@clisp.org>
16019
16020         Update to Unicode 6.0.0.
16021         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
16022         (get_lbp): Update for Unicode 6.0.0.
16023         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
16024         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
16025         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
16026         U+11001, U+11038..U+11046. Remove U+06DE.
16027         (uc_width): Fix bounds of planes.
16028         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16029         lib/uniwidth/width.c.
16030         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
16031         trailing whitespace removed.
16032         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
16033         without comments, but with the original copyright notice.
16034         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
16035         * lib/unicase/ignorable.h: Likewise.
16036         * lib/unicase/tocasefold.h: Likewise.
16037         * lib/unicase/tolower.h: Likewise.
16038         * lib/unicase/totitle.h: Likewise.
16039         * lib/unicase/toupper.h: Likewise.
16040         * lib/unictype/bidi_of.h: Likewise.
16041         * lib/unictype/blocks.h: Likewise.
16042         * lib/unictype/categ_C.h: Likewise.
16043         * lib/unictype/categ_Cn.h: Likewise.
16044         * lib/unictype/categ_L.h: Likewise.
16045         * lib/unictype/categ_Ll.h: Likewise.
16046         * lib/unictype/categ_Lm.h: Likewise.
16047         * lib/unictype/categ_Lo.h: Likewise.
16048         * lib/unictype/categ_Lu.h: Likewise.
16049         * lib/unictype/categ_M.h: Likewise.
16050         * lib/unictype/categ_Mc.h: Likewise.
16051         * lib/unictype/categ_Me.h: Likewise.
16052         * lib/unictype/categ_Mn.h: Likewise.
16053         * lib/unictype/categ_N.h: Likewise.
16054         * lib/unictype/categ_Nd.h: Likewise.
16055         * lib/unictype/categ_No.h: Likewise.
16056         * lib/unictype/categ_P.h: Likewise.
16057         * lib/unictype/categ_Po.h: Likewise.
16058         * lib/unictype/categ_S.h: Likewise.
16059         * lib/unictype/categ_Sc.h: Likewise.
16060         * lib/unictype/categ_Sk.h: Likewise.
16061         * lib/unictype/categ_Sm.h: Likewise.
16062         * lib/unictype/categ_So.h: Likewise.
16063         * lib/unictype/categ_of.h: Likewise.
16064         * lib/unictype/combining.h: Likewise.
16065         * lib/unictype/ctype_alnum.h: Likewise.
16066         * lib/unictype/ctype_alpha.h: Likewise.
16067         * lib/unictype/ctype_graph.h: Likewise.
16068         * lib/unictype/ctype_lower.h: Likewise.
16069         * lib/unictype/ctype_print.h: Likewise.
16070         * lib/unictype/ctype_punct.h: Likewise.
16071         * lib/unictype/ctype_upper.h: Likewise.
16072         * lib/unictype/decdigit.h: Likewise.
16073         * lib/unictype/digit.h: Likewise.
16074         * lib/unictype/numeric.h: Likewise.
16075         * lib/unictype/pr_alphabetic.h: Likewise.
16076         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16077         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16078         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16079         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16080         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16081         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16082         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16083         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16084         * lib/unictype/pr_case_ignorable.h: Likewise.
16085         * lib/unictype/pr_cased.h: Likewise.
16086         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
16087         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
16088         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
16089         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
16090         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
16091         * lib/unictype/pr_combining.h: Likewise.
16092         * lib/unictype/pr_composite.h: Likewise.
16093         * lib/unictype/pr_currency_symbol.h: Likewise.
16094         * lib/unictype/pr_decimal_digit.h: Likewise.
16095         * lib/unictype/pr_deprecated.h: Likewise.
16096         * lib/unictype/pr_format_control.h: Likewise.
16097         * lib/unictype/pr_grapheme_base.h: Likewise.
16098         * lib/unictype/pr_grapheme_extend.h: Likewise.
16099         * lib/unictype/pr_grapheme_link.h: Likewise.
16100         * lib/unictype/pr_id_continue.h: Likewise.
16101         * lib/unictype/pr_id_start.h: Likewise.
16102         * lib/unictype/pr_ideographic.h: Likewise.
16103         * lib/unictype/pr_lowercase.h: Likewise.
16104         * lib/unictype/pr_math.h: Likewise.
16105         * lib/unictype/pr_numeric.h: Likewise.
16106         * lib/unictype/pr_other_alphabetic.h: Likewise.
16107         * lib/unictype/pr_other_id_continue.h: Likewise.
16108         * lib/unictype/pr_other_math.h: Likewise.
16109         * lib/unictype/pr_punctuation.h: Likewise.
16110         * lib/unictype/pr_sentence_terminal.h: Likewise.
16111         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16112         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16113         * lib/unictype/pr_unified_ideograph.h: Likewise.
16114         * lib/unictype/pr_uppercase.h: Likewise.
16115         * lib/unictype/pr_xid_continue.h: Likewise.
16116         * lib/unictype/pr_xid_start.h: Likewise.
16117         * lib/unictype/scripts.h: Likewise.
16118         * lib/unictype/scripts_byname.gperf: Likewise.
16119         * lib/unictype/sy_java_ident.h: Likewise.
16120         * lib/unigbrk/gbrkprop.h: Likewise.
16121         * lib/unilbrk/lbrkprop1.h: Likewise.
16122         * lib/unilbrk/lbrkprop2.h: Likewise.
16123         * lib/uninorm/decomposition-table2.h: Likewise.
16124         * lib/uniwbrk/wbrkprop.h: Likewise.
16125         * tests/unicase/test-cased.c: Likewise.
16126         * tests/unicase/test-ignorable.c: Likewise.
16127         * tests/unicase/test-uc_tolower.c: Likewise.
16128         * tests/unicase/test-uc_totitle.c: Likewise.
16129         * tests/unicase/test-uc_toupper.c: Likewise.
16130         * tests/unictype/test-categ_C.c: Likewise.
16131         * tests/unictype/test-categ_Cn.c: Likewise.
16132         * tests/unictype/test-categ_L.c: Likewise.
16133         * tests/unictype/test-categ_Ll.c: Likewise.
16134         * tests/unictype/test-categ_Lm.c: Likewise.
16135         * tests/unictype/test-categ_Lo.c: Likewise.
16136         * tests/unictype/test-categ_Lu.c: Likewise.
16137         * tests/unictype/test-categ_M.c: Likewise.
16138         * tests/unictype/test-categ_Mc.c: Likewise.
16139         * tests/unictype/test-categ_Me.c: Likewise.
16140         * tests/unictype/test-categ_Mn.c: Likewise.
16141         * tests/unictype/test-categ_N.c: Likewise.
16142         * tests/unictype/test-categ_Nd.c: Likewise.
16143         * tests/unictype/test-categ_No.c: Likewise.
16144         * tests/unictype/test-categ_P.c: Likewise.
16145         * tests/unictype/test-categ_Po.c: Likewise.
16146         * tests/unictype/test-categ_S.c: Likewise.
16147         * tests/unictype/test-categ_Sc.c: Likewise.
16148         * tests/unictype/test-categ_Sk.c: Likewise.
16149         * tests/unictype/test-categ_Sm.c: Likewise.
16150         * tests/unictype/test-categ_So.c: Likewise.
16151         * tests/unictype/test-ctype_alnum.c: Likewise.
16152         * tests/unictype/test-ctype_alpha.c: Likewise.
16153         * tests/unictype/test-ctype_graph.c: Likewise.
16154         * tests/unictype/test-ctype_lower.c: Likewise.
16155         * tests/unictype/test-ctype_print.c: Likewise.
16156         * tests/unictype/test-ctype_punct.c: Likewise.
16157         * tests/unictype/test-ctype_upper.c: Likewise.
16158         * tests/unictype/test-decdigit.h: Likewise.
16159         * tests/unictype/test-digit.h: Likewise.
16160         * tests/unictype/test-numeric.h: Likewise.
16161         * tests/unictype/test-pr_alphabetic.c: Likewise.
16162         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16163         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
16164         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
16165         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16166         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16167         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16168         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16169         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16170         * tests/unictype/test-pr_case_ignorable.c: Likewise.
16171         * tests/unictype/test-pr_cased.c: Likewise.
16172         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
16173         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
16174         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
16175         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
16176         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
16177         * tests/unictype/test-pr_combining.c: Likewise.
16178         * tests/unictype/test-pr_composite.c: Likewise.
16179         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16180         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16181         * tests/unictype/test-pr_deprecated.c: Likewise.
16182         * tests/unictype/test-pr_format_control.c: Likewise.
16183         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16184         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16185         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16186         * tests/unictype/test-pr_id_continue.c: Likewise.
16187         * tests/unictype/test-pr_id_start.c: Likewise.
16188         * tests/unictype/test-pr_ideographic.c: Likewise.
16189         * tests/unictype/test-pr_lowercase.c: Likewise.
16190         * tests/unictype/test-pr_math.c: Likewise.
16191         * tests/unictype/test-pr_numeric.c: Likewise.
16192         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16193         * tests/unictype/test-pr_other_id_continue.c: Likewise.
16194         * tests/unictype/test-pr_other_math.c: Likewise.
16195         * tests/unictype/test-pr_punctuation.c: Likewise.
16196         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16197         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16198         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16199         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16200         * tests/unictype/test-pr_uppercase.c: Likewise.
16201         * tests/unictype/test-pr_xid_continue.c: Likewise.
16202         * tests/unictype/test-pr_xid_start.c: Likewise.
16203         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16204         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16205         changes.
16206         * lib/unictype/categ_Cc.h: Likewise.
16207         * lib/unictype/categ_Cf.h: Likewise.
16208         * lib/unictype/categ_Co.h: Likewise.
16209         * lib/unictype/categ_Cs.h: Likewise.
16210         * lib/unictype/categ_Lt.h: Likewise.
16211         * lib/unictype/categ_Nl.h: Likewise.
16212         * lib/unictype/categ_Pc.h: Likewise.
16213         * lib/unictype/categ_Pd.h: Likewise.
16214         * lib/unictype/categ_Pe.h: Likewise.
16215         * lib/unictype/categ_Pf.h: Likewise.
16216         * lib/unictype/categ_Pi.h: Likewise.
16217         * lib/unictype/categ_Ps.h: Likewise.
16218         * lib/unictype/categ_Z.h: Likewise.
16219         * lib/unictype/categ_Zl.h: Likewise.
16220         * lib/unictype/categ_Zp.h: Likewise.
16221         * lib/unictype/categ_Zs.h: Likewise.
16222         * lib/unictype/ctype_blank.h: Likewise.
16223         * lib/unictype/ctype_cntrl.h: Likewise.
16224         * lib/unictype/ctype_digit.h: Likewise.
16225         * lib/unictype/ctype_space.h: Likewise.
16226         * lib/unictype/ctype_xdigit.h: Likewise.
16227         * lib/unictype/mirror.h: Likewise.
16228         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16229         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16230         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16231         * lib/unictype/pr_bidi_control.h: Likewise.
16232         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16233         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16234         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16235         * lib/unictype/pr_bidi_pdf.h: Likewise.
16236         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16237         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16238         * lib/unictype/pr_dash.h: Likewise.
16239         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16240         * lib/unictype/pr_diacritic.h: Likewise.
16241         * lib/unictype/pr_extender.h: Likewise.
16242         * lib/unictype/pr_hex_digit.h: Likewise.
16243         * lib/unictype/pr_hyphen.h: Likewise.
16244         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16245         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16246         * lib/unictype/pr_ignorable_control.h: Likewise.
16247         * lib/unictype/pr_iso_control.h: Likewise.
16248         * lib/unictype/pr_join_control.h: Likewise.
16249         * lib/unictype/pr_left_of_pair.h: Likewise.
16250         * lib/unictype/pr_line_separator.h: Likewise.
16251         * lib/unictype/pr_logical_order_exception.h: Likewise.
16252         * lib/unictype/pr_non_break.h: Likewise.
16253         * lib/unictype/pr_not_a_character.h: Likewise.
16254         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16255         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16256         * lib/unictype/pr_other_id_start.h: Likewise.
16257         * lib/unictype/pr_other_lowercase.h: Likewise.
16258         * lib/unictype/pr_other_uppercase.h: Likewise.
16259         * lib/unictype/pr_paired_punctuation.h: Likewise.
16260         * lib/unictype/pr_paragraph_separator.h: Likewise.
16261         * lib/unictype/pr_pattern_syntax.h: Likewise.
16262         * lib/unictype/pr_pattern_white_space.h: Likewise.
16263         * lib/unictype/pr_private_use.h: Likewise.
16264         * lib/unictype/pr_quotation_mark.h: Likewise.
16265         * lib/unictype/pr_radical.h: Likewise.
16266         * lib/unictype/pr_soft_dotted.h: Likewise.
16267         * lib/unictype/pr_space.h: Likewise.
16268         * lib/unictype/pr_titlecase.h: Likewise.
16269         * lib/unictype/pr_variation_selector.h: Likewise.
16270         * lib/unictype/pr_white_space.h: Likewise.
16271         * lib/unictype/pr_zero_width.h: Likewise.
16272         * lib/unictype/sy_c_ident.h: Likewise.
16273         * lib/unictype/sy_c_whitespace.h: Likewise.
16274         * lib/unictype/sy_java_whitespace.h: Likewise.
16275         * lib/uninorm/composition-table.gperf: Likewise.
16276         * lib/uninorm/decomposition-table1.h: Likewise.
16277         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
16278         LB8.
16279         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16280         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16281         * modules/unictype/*: Bump version number of expected libunistring
16282         version.
16283
16284 2011-01-09  Bruno Haible  <bruno@clisp.org>
16285
16286         Update to Unicode 5.2.0.
16287         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
16288         trailing whitespace removed.
16289
16290 2011-01-09  Bruno Haible  <bruno@clisp.org>
16291
16292         New Unicode character properties, from Unicode 5.2.0.
16293         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
16294         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
16295         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
16296         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
16297         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
16298         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
16299         uc_is_property_cased, uc_is_property_case_ignorable,
16300         uc_is_property_changes_when_lowercased,
16301         uc_is_property_changes_when_uppercased,
16302         uc_is_property_changes_when_titlecased,
16303         uc_is_property_changes_when_casefolded,
16304         uc_is_property_changes_when_casemapped): New declarations.
16305         * lib/unictype/pr_byname.gperf: Add the new properties.
16306         * modules/unictype/property-byname (Depends-on): Depend on the new
16307         properties modules.
16308         * modules/unictype/property-all (Depends-on): Likewise.
16309         * MODULES.html.sh (Unicode string functions): Add
16310         unictype/property-case-ignorable, unictype/property-cased,
16311         unictype/property-changes-when-casefolded,
16312         unictype/property-changes-when-casemapped,
16313         unictype/property-changes-when-lowercased,
16314         unictype/property-changes-when-titlecased,
16315         unictype/property-changes-when-uppercased.
16316
16317         New module 'unictype/property-changes-when-casemapped'.
16318         * modules/unictype/property-changes-when-casemapped: New file.
16319         * lib/unictype/pr_changes_when_casemapped.c: New file.
16320         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
16321         generated by gen-uni-tables.
16322         * modules/unictype/property-changes-when-casemapped-tests: New file.
16323         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
16324         automatically generated by gen-uni-tables.
16325
16326         New module 'unictype/property-changes-when-casefolded'.
16327         * modules/unictype/property-changes-when-casefolded: New file.
16328         * lib/unictype/pr_changes_when_casefolded.c: New file.
16329         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
16330         generated by gen-uni-tables.
16331         * modules/unictype/property-changes-when-casefolded-tests: New file.
16332         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
16333         automatically generated by gen-uni-tables.
16334
16335         New module 'unictype/property-changes-when-titlecased'.
16336         * modules/unictype/property-changes-when-titlecased: New file.
16337         * lib/unictype/pr_changes_when_titlecased.c: New file.
16338         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
16339         generated by gen-uni-tables.
16340         * modules/unictype/property-changes-when-titlecased-tests: New file.
16341         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
16342         automatically generated by gen-uni-tables.
16343
16344         New module 'unictype/property-changes-when-uppercased'.
16345         * modules/unictype/property-changes-when-uppercased: New file.
16346         * lib/unictype/pr_changes_when_uppercased.c: New file.
16347         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
16348         generated by gen-uni-tables.
16349         * modules/unictype/property-changes-when-uppercased-tests: New file.
16350         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
16351         automatically generated by gen-uni-tables.
16352
16353         New module 'unictype/property-changes-when-lowercased'.
16354         * modules/unictype/property-changes-when-lowercased: New file.
16355         * lib/unictype/pr_changes_when_lowercased.c: New file.
16356         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
16357         generated by gen-uni-tables.
16358         * modules/unictype/property-changes-when-lowercased-tests: New file.
16359         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
16360         automatically generated by gen-uni-tables.
16361
16362         New module 'unictype/property-case-ignorable'.
16363         * modules/unictype/property-case-ignorable: New file.
16364         * lib/unictype/pr_case_ignorable.c: New file.
16365         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
16366         by gen-uni-tables.
16367         * modules/unictype/property-case-ignorable-tests: New file.
16368         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
16369         generated by gen-uni-tables.
16370
16371         New module 'unictype/property-cased'.
16372         * modules/unictype/property-cased: New file.
16373         * lib/unictype/pr_cased.c: New file.
16374         * lib/unictype/pr_cased.h: New file, automatically generated by
16375         gen-uni-tables.
16376         * modules/unictype/property-cased-tests: New file.
16377         * tests/unictype/test-pr_cased.c: New file, automatically generated by
16378         gen-uni-tables.
16379
16380 2011-01-09  Bruno Haible  <bruno@clisp.org>
16381
16382         Update to Unicode 5.2.0.
16383         * lib/gen-uni-tables.c (output_predicate, output_category,
16384         output_combclass, output_bidi_category, output_decimal_digit_test,
16385         output_decimal_digit, output_digit_test, output_digit,
16386         output_numeric_test, output_numeric, output_mirror, output_scripts,
16387         output_scripts_byname, output_blocks, output_ident_category): Fix
16388         comment header.
16389         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
16390         get_wbp.
16391         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
16392         items.
16393         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
16394         Changes_When_Lowercased, Changes_When_Uppercased,
16395         Changes_When_Titlecased, Changes_When_Casefolded,
16396         Changes_When_Casemapped.
16397         (is_property_alphabetic, is_property_default_ignorable_code_point):
16398         Update for Unicode 5.2.0.
16399         (is_property_cased, is_property_case_ignorable,
16400         is_property_changes_when_lowercased,
16401         is_property_changes_when_uppercased,
16402         is_property_changes_when_titlecased,
16403         is_property_changes_when_casefolded,
16404         is_property_changes_when_casemapped): New functions.
16405         (output_properties): Output also the properties cased, case_ignorable,
16406         changes_when_lowercased, changes_when_uppercased,
16407         changes_when_titlecased, changes_when_casefolded,
16408         changes_when_casemapped.
16409         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
16410         Unicode TR#11 revision 17 -> 19.
16411         (LBP_CP): New enumeration value.
16412         (LBP_*): Adjust values accordingly.
16413         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16414         TR#14 revision 22 -> 24.
16415         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
16416         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
16417         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16418         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
16419         is_WBP_MIDLETTER.
16420         (output_composition_tables): Allow for 24 bits instead of 16 bits in
16421         the code1 and code2 of each composition rule.
16422         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
16423         * lib/unicase/ignorable.h: Likewise.
16424         * lib/unicase/tocasefold.h: Likewise.
16425         * lib/unicase/tolower.h: Likewise.
16426         * lib/unicase/totitle.h: Likewise.
16427         * lib/unicase/toupper.h: Likewise.
16428         * lib/unictype/bidi_of.h: Likewise.
16429         * lib/unictype/blocks.h: Likewise.
16430         * lib/unictype/categ_C.h: Likewise.
16431         * lib/unictype/categ_Cf.h: Likewise.
16432         * lib/unictype/categ_Cn.h: Likewise.
16433         * lib/unictype/categ_L.h: Likewise.
16434         * lib/unictype/categ_Ll.h: Likewise.
16435         * lib/unictype/categ_Lm.h: Likewise.
16436         * lib/unictype/categ_Lo.h: Likewise.
16437         * lib/unictype/categ_Lu.h: Likewise.
16438         * lib/unictype/categ_M.h: Likewise.
16439         * lib/unictype/categ_Mc.h: Likewise.
16440         * lib/unictype/categ_Mn.h: Likewise.
16441         * lib/unictype/categ_N.h: Likewise.
16442         * lib/unictype/categ_Nd.h: Likewise.
16443         * lib/unictype/categ_Nl.h: Likewise.
16444         * lib/unictype/categ_No.h: Likewise.
16445         * lib/unictype/categ_P.h: Likewise.
16446         * lib/unictype/categ_Pd.h: Likewise.
16447         * lib/unictype/categ_Po.h: Likewise.
16448         * lib/unictype/categ_S.h: Likewise.
16449         * lib/unictype/categ_Sc.h: Likewise.
16450         * lib/unictype/categ_So.h: Likewise.
16451         * lib/unictype/categ_of.h: Likewise.
16452         * lib/unictype/combining.h: Likewise.
16453         * lib/unictype/ctype_alnum.h: Likewise.
16454         * lib/unictype/ctype_alpha.h: Likewise.
16455         * lib/unictype/ctype_graph.h: Likewise.
16456         * lib/unictype/ctype_lower.h: Likewise.
16457         * lib/unictype/ctype_print.h: Likewise.
16458         * lib/unictype/ctype_punct.h: Likewise.
16459         * lib/unictype/ctype_upper.h: Likewise.
16460         * lib/unictype/decdigit.h: Likewise.
16461         * lib/unictype/digit.h: Likewise.
16462         * lib/unictype/numeric.h: Likewise.
16463         * lib/unictype/pr_alphabetic.h: Likewise.
16464         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16465         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16466         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16467         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16468         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16469         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16470         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16471         * lib/unictype/pr_combining.h: Likewise.
16472         * lib/unictype/pr_composite.h: Likewise.
16473         * lib/unictype/pr_currency_symbol.h: Likewise.
16474         * lib/unictype/pr_dash.h: Likewise.
16475         * lib/unictype/pr_decimal_digit.h: Likewise.
16476         * lib/unictype/pr_deprecated.h: Likewise.
16477         * lib/unictype/pr_diacritic.h: Likewise.
16478         * lib/unictype/pr_extender.h: Likewise.
16479         * lib/unictype/pr_grapheme_base.h: Likewise.
16480         * lib/unictype/pr_grapheme_extend.h: Likewise.
16481         * lib/unictype/pr_grapheme_link.h: Likewise.
16482         * lib/unictype/pr_id_continue.h: Likewise.
16483         * lib/unictype/pr_id_start.h: Likewise.
16484         * lib/unictype/pr_ideographic.h: Likewise.
16485         * lib/unictype/pr_ignorable_control.h: Likewise.
16486         * lib/unictype/pr_logical_order_exception.h: Likewise.
16487         * lib/unictype/pr_lowercase.h: Likewise.
16488         * lib/unictype/pr_numeric.h: Likewise.
16489         * lib/unictype/pr_other_alphabetic.h: Likewise.
16490         * lib/unictype/pr_punctuation.h: Likewise.
16491         * lib/unictype/pr_sentence_terminal.h: Likewise.
16492         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16493         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16494         * lib/unictype/pr_unified_ideograph.h: Likewise.
16495         * lib/unictype/pr_uppercase.h: Likewise.
16496         * lib/unictype/pr_xid_continue.h: Likewise.
16497         * lib/unictype/pr_xid_start.h: Likewise.
16498         * lib/unictype/pr_zero_width.h: Likewise.
16499         * lib/unictype/scripts.h: Likewise.
16500         * lib/unictype/scripts_byname.gperf: Likewise.
16501         * lib/unictype/sy_java_ident.h: Likewise.
16502         * lib/unigbrk/gbrkprop.h: Likewise.
16503         * lib/unilbrk/lbrkprop1.h: Likewise.
16504         * lib/unilbrk/lbrkprop2.h: Likewise.
16505         * lib/unilbrk/lbrktables.h: Likewise.
16506         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
16507         LBP_CP. Implement rule LB30.
16508         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
16509         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
16510         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
16511         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
16512         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
16513         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
16514         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
16515         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
16516         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
16517         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
16518         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
16519         bits instead of 16 bits in the code1 and code2 of each composition
16520         rule.
16521         (uc_composition): Update for Unicode 5.2.0.
16522         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
16523         * lib/uninorm/decomposition-table2.h: Likewise.
16524         * lib/uniwbrk/wbrkprop.h: Likewise.
16525         * tests/unicase/test-cased.c: Likewise.
16526         * tests/unicase/test-ignorable.c: Likewise.
16527         * tests/unicase/test-uc_tolower.c: Likewise.
16528         * tests/unicase/test-uc_totitle.c: Likewise.
16529         * tests/unicase/test-uc_toupper.c: Likewise.
16530         * tests/unictype/test-categ_C.c: Likewise.
16531         * tests/unictype/test-categ_Cf.c: Likewise.
16532         * tests/unictype/test-categ_Cn.c: Likewise.
16533         * tests/unictype/test-categ_L.c: Likewise.
16534         * tests/unictype/test-categ_Ll.c: Likewise.
16535         * tests/unictype/test-categ_Lm.c: Likewise.
16536         * tests/unictype/test-categ_Lo.c: Likewise.
16537         * tests/unictype/test-categ_Lu.c: Likewise.
16538         * tests/unictype/test-categ_M.c: Likewise.
16539         * tests/unictype/test-categ_Mc.c: Likewise.
16540         * tests/unictype/test-categ_Mn.c: Likewise.
16541         * tests/unictype/test-categ_N.c: Likewise.
16542         * tests/unictype/test-categ_Nd.c: Likewise.
16543         * tests/unictype/test-categ_Nl.c: Likewise.
16544         * tests/unictype/test-categ_No.c: Likewise.
16545         * tests/unictype/test-categ_P.c: Likewise.
16546         * tests/unictype/test-categ_Pd.c: Likewise.
16547         * tests/unictype/test-categ_Po.c: Likewise.
16548         * tests/unictype/test-categ_S.c: Likewise.
16549         * tests/unictype/test-categ_Sc.c: Likewise.
16550         * tests/unictype/test-categ_So.c: Likewise.
16551         * tests/unictype/test-ctype_alnum.c: Likewise.
16552         * tests/unictype/test-ctype_alpha.c: Likewise.
16553         * tests/unictype/test-ctype_graph.c: Likewise.
16554         * tests/unictype/test-ctype_lower.c: Likewise.
16555         * tests/unictype/test-ctype_print.c: Likewise.
16556         * tests/unictype/test-ctype_punct.c: Likewise.
16557         * tests/unictype/test-ctype_upper.c: Likewise.
16558         * tests/unictype/test-decdigit.h: Likewise.
16559         * tests/unictype/test-digit.h: Likewise.
16560         * tests/unictype/test-numeric.h: Likewise.
16561         * tests/unictype/test-pr_alphabetic.c: Likewise.
16562         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16563         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16564         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
16565         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16566         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16567         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16568         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16569         * tests/unictype/test-pr_combining.c: Likewise.
16570         * tests/unictype/test-pr_composite.c: Likewise.
16571         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16572         * tests/unictype/test-pr_dash.c: Likewise.
16573         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16574         * tests/unictype/test-pr_deprecated.c: Likewise.
16575         * tests/unictype/test-pr_diacritic.c: Likewise.
16576         * tests/unictype/test-pr_extender.c: Likewise.
16577         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16578         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16579         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16580         * tests/unictype/test-pr_id_continue.c: Likewise.
16581         * tests/unictype/test-pr_id_start.c: Likewise.
16582         * tests/unictype/test-pr_ideographic.c: Likewise.
16583         * tests/unictype/test-pr_ignorable_control.c: Likewise.
16584         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
16585         * tests/unictype/test-pr_lowercase.c: Likewise.
16586         * tests/unictype/test-pr_numeric.c: Likewise.
16587         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16588         * tests/unictype/test-pr_punctuation.c: Likewise.
16589         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16590         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16591         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16592         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16593         * tests/unictype/test-pr_uppercase.c: Likewise.
16594         * tests/unictype/test-pr_xid_continue.c: Likewise.
16595         * tests/unictype/test-pr_xid_start.c: Likewise.
16596         * tests/unictype/test-pr_zero_width.c: Likewise.
16597         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16598         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
16599         changed behaviour: line breaking is now disallowed between a letter
16600         or '=' and '('.
16601         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16602         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16603         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
16604         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
16605         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16606         lib/uniwidth/width.c.
16607         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
16608         without comments, but with the original copyright notice.
16609         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16610         changes.
16611         * lib/unictype/categ_Cc.h: Likewise.
16612         * lib/unictype/categ_Co.h: Likewise.
16613         * lib/unictype/categ_Cs.h: Likewise.
16614         * lib/unictype/categ_Lt.h: Likewise.
16615         * lib/unictype/categ_Me.h: Likewise.
16616         * lib/unictype/categ_Pc.h: Likewise.
16617         * lib/unictype/categ_Pe.h: Likewise.
16618         * lib/unictype/categ_Pf.h: Likewise.
16619         * lib/unictype/categ_Pi.h: Likewise.
16620         * lib/unictype/categ_Ps.h: Likewise.
16621         * lib/unictype/categ_Sk.h: Likewise.
16622         * lib/unictype/categ_Sm.h: Likewise.
16623         * lib/unictype/categ_Z.h: Likewise.
16624         * lib/unictype/categ_Zl.h: Likewise.
16625         * lib/unictype/categ_Zp.h: Likewise.
16626         * lib/unictype/categ_Zs.h: Likewise.
16627         * lib/unictype/ctype_blank.h: Likewise.
16628         * lib/unictype/ctype_cntrl.h: Likewise.
16629         * lib/unictype/ctype_digit.h: Likewise.
16630         * lib/unictype/ctype_space.h: Likewise.
16631         * lib/unictype/ctype_xdigit.h: Likewise.
16632         * lib/unictype/mirror.h: Likewise.
16633         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16634         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16635         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16636         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16637         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16638         * lib/unictype/pr_bidi_control.h: Likewise.
16639         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16640         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16641         * lib/unictype/pr_bidi_pdf.h: Likewise.
16642         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16643         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16644         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16645         * lib/unictype/pr_format_control.h: Likewise.
16646         * lib/unictype/pr_hex_digit.h: Likewise.
16647         * lib/unictype/pr_hyphen.h: Likewise.
16648         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16649         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16650         * lib/unictype/pr_iso_control.h: Likewise.
16651         * lib/unictype/pr_join_control.h: Likewise.
16652         * lib/unictype/pr_left_of_pair.h: Likewise.
16653         * lib/unictype/pr_line_separator.h: Likewise.
16654         * lib/unictype/pr_math.h: Likewise.
16655         * lib/unictype/pr_non_break.h: Likewise.
16656         * lib/unictype/pr_not_a_character.h: Likewise.
16657         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16658         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16659         * lib/unictype/pr_other_id_continue.h: Likewise.
16660         * lib/unictype/pr_other_id_start.h: Likewise.
16661         * lib/unictype/pr_other_lowercase.h: Likewise.
16662         * lib/unictype/pr_other_math.h: Likewise.
16663         * lib/unictype/pr_other_uppercase.h: Likewise.
16664         * lib/unictype/pr_paired_punctuation.h: Likewise.
16665         * lib/unictype/pr_paragraph_separator.h: Likewise.
16666         * lib/unictype/pr_pattern_syntax.h: Likewise.
16667         * lib/unictype/pr_pattern_white_space.h: Likewise.
16668         * lib/unictype/pr_private_use.h: Likewise.
16669         * lib/unictype/pr_quotation_mark.h: Likewise.
16670         * lib/unictype/pr_radical.h: Likewise.
16671         * lib/unictype/pr_soft_dotted.h: Likewise.
16672         * lib/unictype/pr_space.h: Likewise.
16673         * lib/unictype/pr_titlecase.h: Likewise.
16674         * lib/unictype/pr_variation_selector.h: Likewise.
16675         * lib/unictype/pr_white_space.h: Likewise.
16676         * lib/unictype/sy_c_ident.h: Likewise.
16677         * lib/unictype/sy_c_whitespace.h: Likewise.
16678         * lib/unictype/sy_java_whitespace.h: Likewise.
16679         * modules/uni*/*: Bump version number of expected libunistring version.
16680         Reported by Simon Josefsson.
16681
16682 2011-01-09  Karl Heuer  <kwzh@gnu.org>
16683
16684         useless-if-before-free: fix typo in --help and make the internal,
16685         automatic version date update process work once again.
16686         --help output contained a NUL character instead of the
16687         backslash-zero that was intended.  Also, the "must lie within
16688         the first 8 lines" line is on line 9, and hence not getting
16689         automatically updated.
16690         * build-aux/useless-if-before-free: Fix the former by adding a
16691         backslash, and the latter by condensing the three lines of what-it-does
16692         to a single line, leaving one line of slack for the future.
16693
16694 2011-01-09  Bruno Haible  <bruno@clisp.org>
16695
16696         uniwidth/width: Fix width of U+1D173..U+1D17A.
16697         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
16698         symbolic_width, output_width_property_test): New functions.
16699         (main): Invoke output_nonspacing_property, output_width_property_test.
16700         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
16701         U+1D173..U+1D17A.
16702         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
16703         1.
16704         * modules/uniwidth/*: Bump version number of expected libunistring
16705         version.
16706         * modules/unilbrk/*: Likewise.
16707
16708 2011-01-08  Bruno Haible  <bruno@clisp.org>
16709
16710         uninorm tests: Preserve copyright of Unicode data file.
16711         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
16712         Mention modifications.
16713
16714 2011-01-08  Bruno Haible  <bruno@clisp.org>
16715
16716         gen-uni-tables: Prepare for Unicode 5.2.0.
16717         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
16718         (debug_output_lbp, output_lbp): Update.
16719
16720 2011-01-08  Bruno Haible  <bruno@clisp.org>
16721
16722         unilbrk: Clarify gen-uni-tables.c code.
16723         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
16724         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
16725         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
16726
16727 2011-01-07  Bruno Haible  <bruno@clisp.org>
16728
16729         strtod: Restore errno when successfully parsing Infinity or NaN.
16730         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
16731         restore the original errno.
16732
16733 2011-01-07  Bruno Haible  <bruno@clisp.org>
16734
16735         remove test: Avoid failure on HP-UX 11.
16736         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
16737
16738 2011-01-07  Bruno Haible  <bruno@clisp.org>
16739
16740         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
16741         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
16742         error code.
16743
16744 2011-01-07  Pádraig Brady <P@draigBrady.com>
16745
16746         ignore-value: fixup comments, and add Eric Blake
16747         as an author since he rewrote the macros.
16748         * lib/ignore-value.h (ignore_value):  State that
16749         we now support aggregates.  Also specify exactly
16750         when the GCC warn_unused_result feature was added.
16751
16752 2011-01-06  Eric Blake  <eblake@redhat.com>
16753
16754         ignore-value: support aggregate types
16755         * lib/ignore-value.h (ignore_value): Provide separate gcc
16756         definition.
16757         * modules/ignore-value-tests: New test module.
16758         * tests/test-ignore-value.c: New test.
16759
16760         maint.mk: improve sc_prohibit_strcmp regex
16761         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
16762         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
16763         definition of STRNEQ.
16764
16765         signal: work around Haiku issue with SIGBUS
16766         * lib/siglist.h: Add comment.
16767         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
16768         strsignal's favoring of SIGSEGV.
16769         * tests/test-signal.c (main): Avoid test failure.
16770         * doc/posix-headers/signal.texi (signal.h): Document the issue.
16771         Reported by Scott McCreary.
16772
16773         maint.mk: add pre-release check to ensure submodule commits are public
16774         * top/maint.mk (public-submodule-commit): New rule.
16775         (submodule-checks): New variable.
16776         (alpha beta stable): Depend on the variable.
16777
16778 2011-01-05  Pádraig Brady <P@draigBrady.com>
16779         and Jim Meyering  <meyering@redhat.com>
16780
16781         ignore-value: make ignore_value more generic; deprecate ignore_ptr
16782         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
16783         (ATTRIBUTE_DEPRECATED): Define.
16784         (_ignore_case): New function.
16785         (ignore_value): New macro, to replace the old function.
16786         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
16787         * modules/ignore-value (Depends-on): Add stdint.
16788
16789 2011-01-04  Eric Blake  <eblake@redhat.com>
16790
16791         doc: regenerate INSTALL
16792         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
16793         @firstparagraphindent support, now that autoconf dropped it.
16794         (INSTALL_PRELUDE): Reinstate old macro.
16795         * doc/install.texi: Resync from autoconf.
16796         * doc/INSTALL: Reflect recent autoconf update.
16797         * doc/INSTALL.ISO: Likewise.
16798         * doc/INSTALL.UTF-8: Likewise.
16799         Reported by Karl Berry.
16800
16801 2011-01-04  Bruce Korb  <address@hidden>
16802
16803         git-version-gen: avoid a sub-shell
16804         * build-aux/git-version-gen: Redirect stderr in `...` via
16805         "exec 2>...", rather than via an added sub-shell.
16806
16807 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
16808
16809         git-version-gen: use (...) rather than sh -c '...'
16810         * build-aux/git-version-gen: Rather than hard-coding a shell's name
16811         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
16812
16813 2011-01-03  Jim Meyering  <meyering@redhat.com>
16814
16815         git-version-gen: convert leading TABs to spaces
16816         * build-aux/git-version-gen: Expand leading TABs.
16817
16818         git-version-gen: handle failed "git rev-list"
16819         * build-aux/git-version-gen: Rather than leaking a "fatal" error
16820         from git and proceeding as if it had succeeded but printed no SHA1
16821         checksums, suppress the diagnostic and handle the failure.
16822         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
16823
16824         git-version-gen: include command name in one more diagnostic
16825         * build-aux/git-version-gen: When the required .tarball-version file
16826         was missing or unreadable, you might see the diagnostic from "cat",
16827         but no trace of the name of the invoking script.  Now, you still see
16828         the diagnostic from cat, but also get one from "git-version-gen: ".
16829         Inspired by a patch from Bruce Korb.
16830
16831         update-copyright: adjust test to match changed code
16832         * tests/test-update-copyright.sh: Change test's expected output
16833         to match new actual output.
16834
16835 2011-01-02  Bruno Haible  <bruno@clisp.org>
16836
16837         getlogin_r: Avoid test failure on HP-UX 11.
16838         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
16839         ERANGE when the second argument is zero.
16840         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
16841         portability problem.
16842
16843 2011-01-02  Bruce Korb  <bkorb@gnu.org>
16844
16845         * build-aux/update-copyright: doc Simon's changes
16846
16847 2011-01-02  Simon Josefsson  <simon@josefsson.org>
16848
16849         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
16850         environment variable.
16851
16852 2011-01-02  Bruno Haible  <bruno@clisp.org>
16853
16854         unigbrk: Avoid gcc warnings.
16855         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
16856         unused variable.
16857         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
16858         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
16859         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
16860         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
16861         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
16862         Change type of first argument to 'const char *'.
16863         (main): Remove unused variable.
16864         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
16865         type of first argument to 'const char *'.
16866         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
16867         Likewise.
16868         (main): Change type of variable 's'.
16869         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
16870         to 'int'.
16871
16872 2011-01-02  Bruno Haible  <bruno@clisp.org>
16873
16874         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
16875         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
16876         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
16877         bug.
16878         * lib/pwrite.c: Undo 2010-12-31 patch.
16879         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
16880
16881 2011-01-02  Bruno Haible  <bruno@clisp.org>
16882
16883         pread: Fix test whether it works.
16884         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
16885
16886 2011-01-02  Bruno Haible  <bruno@clisp.org>
16887
16888         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
16889         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
16890         ends in "6". Don't require a specific month name. Try also the locale
16891         names found on HP-UX 11 and Solaris 7.
16892
16893 2011-01-02  Bruno Haible  <bruno@clisp.org>
16894
16895         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
16896         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
16897         C linkage.
16898         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
16899
16900 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16901
16902         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
16903         for consistency, since the "cluster" term is not used elsewhere.
16904         * lib/unigbrk.in.h: Update name.
16905         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
16906         * lib/unigbrk/u16-grapheme-next.c: Update name.
16907         * lib/unigbrk/u16-grapheme-prev.c: Update name.
16908         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
16909         * lib/unigbrk/u32-grapheme-next.c: Update name.
16910         * lib/unigbrk/u32-grapheme-prev.c: Update name.
16911         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
16912         * lib/unigbrk/u8-grapheme-next.c: Update name.
16913         * lib/unigbrk/u8-grapheme-prev.c: Update name.
16914         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
16915         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
16916         Suggested by Bruno Haible.
16917
16918 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16919
16920         Remove module 'u8-grapheme-len' as too redundant with
16921         'u8-grapheme-next'.
16922         * modules/unigbrk/u8-grapheme-len: Delete file.
16923         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
16924         * lib/unigbrk.in.h: Remove prototype for deleted function.
16925         * lib/unigbrk/u8-grapheme-len.c: Delete file.
16926         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
16927
16928         Remove module 'u16-grapheme-len' as too redundant with
16929         'u16-grapheme-next'.
16930         * modules/unigbrk/u16-grapheme-len: Delete file.
16931         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
16932         * lib/unigbrk.in.h: Remove prototype for deleted function.
16933         * lib/unigbrk/u16-grapheme-len.c: Delete file.
16934         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
16935
16936         Remove module 'u32-grapheme-len' as too redundant with
16937         'u32-grapheme-next'.
16938         * modules/unigbrk/u32-grapheme-len: Delete file.
16939         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
16940         * lib/unigbrk.in.h: Remove prototype for deleted function.
16941         * lib/unigbrk/u32-grapheme-len.c: Delete file.
16942         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
16943
16944         Suggested by Bruno Haible.
16945
16946 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16947
16948         * unigbrk.in.h: Fix typo: "ben" => "been".
16949         Reported by Bruno Haible.
16950
16951 2011-01-01  Jim Meyering  <meyering@redhat.com>
16952
16953         maint: update almost all copyright ranges to include 2011
16954         Run the new "make update-copyright" rule.
16955
16956 2011-01-01  Jim Meyering  <meyering@redhat.com>
16957
16958         maint: update-copyright: exempt doc/INSTALL*
16959         * Makefile (update-copyright): Also exclude doc/INSTALL*,
16960         since they are generated.  Suggested by Bruno Haible.
16961
16962 2011-01-01  Jim Meyering  <meyering@redhat.com>
16963
16964         maint: refine the update-copyright rule
16965         * Makefile (update-copyright): Also exclude any file that includes
16966         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
16967         code that merely generates the comment.
16968
16969 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16970
16971         New module 'u8-grapheme-len'.
16972         * modules/unigbrk/u8-grapheme-len: New file.
16973         * modules/unigbrk/u8-grapheme-len-tests: New file.
16974         * lib/unigbrk.in.h: Add prototype for new function.
16975         * lib/unigbrk/u8-grapheme-len.c: New file.
16976         * tests/unigbrk/test-u8-grapheme-len.c: New file.
16977
16978         New module 'u16-grapheme-len'.
16979         * modules/unigbrk/u16-grapheme-len: New file.
16980         * modules/unigbrk/u16-grapheme-len-tests: New file.
16981         * lib/unigbrk.in.h: Add prototype for new function.
16982         * lib/unigbrk/u16-grapheme-len.c: New file.
16983         * tests/unigbrk/test-u16-grapheme-len.c: New file.
16984
16985         New module 'u32-grapheme-len'.
16986         * modules/unigbrk/u32-grapheme-len: New file.
16987         * modules/unigbrk/u32-grapheme-len-tests: New file.
16988         * lib/unigbrk.in.h: Add prototype for new function.
16989         * lib/unigbrk/u32-grapheme-len.c: New file.
16990         * tests/unigbrk/test-u32-grapheme-len.c: New file.
16991
16992         New module 'u8-grapheme-next'.
16993         * modules/unigbrk/u8-grapheme-next: New file.
16994         * modules/unigbrk/u8-grapheme-next-tests: New file.
16995         * lib/unigbrk.in.h: Add prototype for new function.
16996         * lib/unigbrk/u8-grapheme-next.c: New file.
16997         * tests/unigbrk/test-u8-grapheme-next.c: New file.
16998
16999         New module 'u16-grapheme-next'.
17000         * modules/unigbrk/u16-grapheme-next: New file.
17001         * modules/unigbrk/u16-grapheme-next-tests: New file.
17002         * lib/unigbrk.in.h: Add prototype for new function.
17003         * lib/unigbrk/u16-grapheme-next.c: New file.
17004         * tests/unigbrk/test-u16-grapheme-next.c: New file.
17005
17006         New module 'u32-grapheme-next'.
17007         * modules/unigbrk/u32-grapheme-next: New file.
17008         * modules/unigbrk/u32-grapheme-next-tests: New file.
17009         * lib/unigbrk.in.h: Add prototype for new function.
17010         * lib/unigbrk/u32-grapheme-next.c: New file.
17011         * tests/unigbrk/test-u32-grapheme-next.c: New file.
17012
17013         New module 'u8-grapheme-prev'.
17014         * modules/unigbrk/u8-grapheme-prev: New file.
17015         * modules/unigbrk/u8-grapheme-prev-tests: New file.
17016         * lib/unigbrk.in.h: Add prototype for new function.
17017         * lib/unigbrk/u8-grapheme-prev.c: New file.
17018         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
17019
17020         New module 'u16-grapheme-prev'.
17021         * modules/unigbrk/u16-grapheme-prev: New file.
17022         * modules/unigbrk/u16-grapheme-prev-tests: New file.
17023         * lib/unigbrk.in.h: Add prototype for new function.
17024         * lib/unigbrk/u16-grapheme-prev.c: New file.
17025         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
17026
17027         New module 'u32-grapheme-prev'.
17028         * modules/unigbrk/u32-grapheme-prev: New file.
17029         * modules/unigbrk/u32-grapheme-prev-tests: New file.
17030         * lib/unigbrk.in.h: Add prototype for new function.
17031         * lib/unigbrk/u32-grapheme-prev.c: New file.
17032         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
17033
17034         New module 'u8-grapheme-breaks'.
17035         * modules/unigbrk/u8-grapheme-breaks: New file.
17036         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
17037         * lib/unigbrk.in.h: Add prototype for new function.
17038         * lib/unigbrk/u8-grapheme-breaks.c: New file.
17039         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
17040
17041         New module 'u16-grapheme-breaks'.
17042         * modules/unigbrk/u16-grapheme-breaks: New file.
17043         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
17044         * lib/unigbrk.in.h: Add prototype for new function.
17045         * lib/unigbrk/u16-grapheme-breaks.c: New file.
17046         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
17047
17048         New module 'u32-grapheme-breaks'.
17049         * modules/unigbrk/u32-grapheme-breaks: New file.
17050         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
17051         * lib/unigbrk.in.h: Add prototype for new function.
17052         * lib/unigbrk/u32-grapheme-breaks.c: New file.
17053         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
17054
17055         New module 'ulc-grapheme-breaks'.
17056         * modules/unigbrk/ulc-grapheme-breaks: New file.
17057         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
17058         * m4/locale-ar.m4: New file.
17059         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
17060         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
17061         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
17062
17063 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
17064
17065         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
17066         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
17067         modified how this file was generated before I initially submitted
17068         the module, but failed to regenerate it.  This meant that several
17069         of the level2 entries were wrong.
17070         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
17071         Remove the division-by-2 that is folded into the table now that
17072         gbrkprop.h has been regenerated properly.  Now -1 entries are
17073         handled correctly.
17074
17075         New module 'unigbrk/uc-gbrk-prop-tests'.
17076         * modules/unigbrk/uc-gbrk-prop-tests: New file.
17077         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
17078         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
17079         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
17080
17081 2011-01-01  Bruno Haible  <bruno@clisp.org>
17082
17083         Avoid use of hexadecimal escapes.
17084         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
17085         instead of hexadecimal escapes.
17086
17087 2011-01-01  Jim Meyering  <meyering@redhat.com>
17088
17089         maint: new rule to update copyright year ranges
17090         * Makefile (update-copyright): New rule.
17091
17092         maint: indent with TABs in Makefile
17093         * Makefile: Expand leading sequences of spaces to TABs
17094
17095         version-etc: update the copyright year it reports
17096         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
17097
17098 2010-12-31  Bruno Haible  <bruno@clisp.org>
17099
17100         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
17101         * lib/isfinite.c (zerof, zerod, zerol): New variables.
17102         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
17103         zero.
17104
17105 2010-12-31  Bruno Haible  <bruno@clisp.org>
17106
17107         pwrite: Work around HP-UX 11.11 bug.
17108         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
17109         works and set REPLACE_PWRITE if not.
17110         * lib/pwrite.c (pwrite): Add an implementation that uses the system
17111         function.
17112         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
17113
17114 2010-12-31  Bruno Haible  <bruno@clisp.org>
17115
17116         pread: Work around HP-UX 11 bugs.
17117         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
17118         and set REPLACE_PREAD if not.
17119         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
17120
17121 2010-12-31  Eric Blake  <eblake@redhat.com>
17122
17123         nl_langinfo: fix YESEXPR on Irix 6.5
17124         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
17125         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
17126         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
17127         it.
17128
17129 2010-12-31  Bruno Haible  <bruno@clisp.org>
17130
17131         iconv: Document HP-UX 11 bug.
17132         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
17133
17134 2010-12-31  Bruno Haible  <bruno@clisp.org>
17135
17136         ldexpl: Fix link error on HP-UX 11.
17137         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
17138         LDEXPL_LIBM, using $ISNANL_LIBM.
17139
17140 2010-12-31  Eric Blake  <eblake@redhat.com>
17141
17142         ftello: avoid compilation failure with SunStudio c89
17143         * lib/ftello.c (ftello): Use lseek, not llseek.
17144
17145         tests: avoid failing coreutils tests on cygwin
17146         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
17147         (create_exe_shims_): Return 0 when skipping.
17148
17149 2010-12-31  Bruno Haible  <bruno@clisp.org>
17150
17151         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
17152         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
17153
17154 2010-12-31  Bruno Haible  <bruno@clisp.org>
17155
17156         waitpid: Fix link error in C++ mode.
17157         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
17158
17159 2010-12-31  Bruno Haible  <bruno@clisp.org>
17160
17161         isnan: Use GCC built-ins when possible.
17162         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
17163         __builtin_isnan.
17164         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
17165         (isnan): Define using GCC built-ins for GCC >= 4.0.
17166
17167 2010-12-31  Bruno Haible  <bruno@clisp.org>
17168
17169         isnand: Fix mistake.
17170         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
17171         __builtin_isnand.
17172
17173 2010-12-31  Bruno Haible  <bruno@clisp.org>
17174
17175         open: Avoid C++ error on HP-UX 11.
17176         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
17177
17178 2010-12-31  Bruno Haible  <bruno@clisp.org>
17179
17180         time_r: Add missing declarations on HP-UX 11.
17181         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
17182         instead of HAVE_LOCALTIME_R.
17183         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
17184         HAVE_LOCALTIME_R always.
17185         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
17186         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
17187         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
17188         HAVE_LOCALTIME_R.
17189         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
17190         * doc/posix-functions/localtime_r.texi: Likewise.
17191
17192 2010-12-29  Eric Blake  <eblake@redhat.com>
17193
17194         mountlist: tweak previous commit
17195         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
17196         Reported by Paul Eggert.
17197
17198         mountlist: fix local drive detection on cygwin
17199         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
17200         that works for cygwin.
17201
17202 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
17203
17204         ftoastr, snprintf: ftoastr + snprintf module
17205         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
17206         since the snprintf module now should be good enough here.
17207         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
17208         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
17209         and gl_MODULE_INDICATOR([snprintf]), but the former enables
17210         GNULIB_SNPRINTF only for the test directory, and the latter
17211         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
17212         seems to suffice by itself.
17213
17214 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
17215
17216         alloca: one step towards thread-safety
17217         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
17218         need for a static variable.  All callers changed.  This does not
17219         make the alloca replacement thread-safe, but it's one step.
17220
17221         tests: minor indenting change
17222         * tests/init.sh: Sync from coreutils housekeeping patch
17223         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
17224         to keep lines within 80 columns.
17225
17226 2010-12-28  Jim Meyering  <meyering@redhat.com>
17227
17228         regex: don't infloop on persistent failing calloc
17229         * lib/regexec.c (build_trtable): Return failure indication upon
17230         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
17231         In glibc, this was fixed for version 2.13:
17232         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
17233
17234 2010-12-28  Bruno Haible  <bruno@clisp.org>
17235             Paul Eggert <eggert@cs.ucla.edu>
17236
17237         linkat: Make implementation robust against system behaviour variations.
17238         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
17239         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
17240         way, and to -2 if it needs a generic runtime test.
17241         * lib/linkat.c (solaris_optimized_link_immediate,
17242         solaris_optimized_link_follow): New functions.
17243         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
17244         (check_same_link): Use it.
17245
17246 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
17247
17248         New module 'unigbrk/base'.
17249         * modules/unigbrk/base: New file.
17250         * lib/unigbrk.in.h: New file.
17251
17252         New module 'unigbrk/uc-gbrk-prop'.
17253         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
17254         * modules/unigbrk/uc-gbrk-prop: New file.
17255         * lib/unigbrk/gbrkprop.h: New file.
17256         * lib/unigbrk/uc-gbrk-prop.c: New file.
17257
17258         New module 'unigbrk/uc-is-grapheme-break'.
17259         * modules/unigbrk/uc-is-grapheme-break: New file.
17260         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
17261         * lib/unigbrk/uc-is-grapheme-break.c: New file.
17262         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
17263         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
17264         * tests/unigbrk/GraphemeBreakTest.txt: New file.
17265
17266         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
17267
17268 2010-12-27  Bruno Haible  <bruno@clisp.org>
17269
17270         linkat test: Avoid failure on Solaris 11 2010-11.
17271         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
17272
17273 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17274
17275         utimens: work around glibc rounding bug on more platforms
17276         * lib/utimens.c (fdutimens): Work around rounding bug even if
17277         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
17278         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
17279
17280 2010-12-27  Bruno Haible  <bruno@clisp.org>
17281
17282         select tests: Improve comments.
17283         * tests/test-select.c (do_select): Add comments.
17284
17285 2010-12-27  Bruno Haible  <bruno@clisp.org>
17286
17287         select tests: Safer way of handling timeout.
17288         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
17289         at every invocation.
17290
17291 2010-12-27  Bruno Haible  <bruno@clisp.org>
17292
17293         select tests: Use 'bool' where appropriate.
17294         * tests/test-select.c (connect_to_socket): Change argument type to
17295         'bool'.
17296
17297 2010-12-27  Bruno Haible  <bruno@clisp.org>
17298
17299         select tests: Use existing modules.
17300         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
17301         (configure.ac): Don't test for unistd.h.
17302         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
17303         declared in <unistd.h>.
17304
17305 2010-12-27  Bruno Haible  <bruno@clisp.org>
17306
17307         mbrtowc: Work around a Solaris 7 bug.
17308         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
17309         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
17310         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
17311         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
17312         MBRTOWC_NULL_ARG1_BUG.
17313         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
17314         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
17315         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
17316         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
17317
17318 2010-12-27  Jim Meyering  <meyering@redhat.com>
17319
17320         read-file.c: tweak syntax
17321         * lib/read-file.c (fread_file): Remove space after "*" in function
17322         definitions.
17323
17324 2010-12-27  Bruno Haible  <bruno@clisp.org>
17325
17326         times test: Avoid gcc warnings on OSF/1.
17327         * tests/test-times.c (main): Cast printf arguments from clock_t to
17328         'long int'.
17329
17330 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17331
17332         utimens: work around glibc rounding bug on older Linux kernels
17333         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
17334         on Linux with a glibc whose utimes might not work, then work
17335         around a longstanding glibc bug involving rounding rather than
17336         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
17337         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17338
17339 2010-12-26  Bruno Haible  <bruno@clisp.org>
17340
17341         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
17342         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
17343         _GL_CXXALIAS_SYS.
17344         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17345
17346 2010-12-26  Bruno Haible  <bruno@clisp.org>
17347
17348         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
17349         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
17350         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
17351         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
17352         looking for the declaration.
17353         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
17354         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
17355         problem.
17356         * doc/posix-functions/inet_pton.texi: Likewise.
17357
17358 2010-12-26  Bruno Haible  <bruno@clisp.org>
17359
17360         arpa_inet: Use the common idioms with C++ support.
17361         * lib/arpa_inet.in.h: Include c++defs.h.
17362         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
17363         support.
17364         * modules/arpa_inet (Depends-on): Add c++defs.
17365         (Makefile.am): Substitute the contents of c++defs.h.
17366         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
17367         * modules/arpa_inet-c++-tests: New file.
17368         * tests/test-arpa_inet-c++.cc: New file.
17369
17370 2010-12-25  Bruno Haible  <bruno@clisp.org>
17371
17372         Fix more C++ link errors on Solaris 8.
17373         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
17374         $(LIB_EACCESS).
17375         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
17376         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
17377         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
17378         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
17379         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
17380
17381 2010-12-25  Bruno Haible  <bruno@clisp.org>
17382
17383         printf-posix: Fix link error when a non-GCC compiler is used.
17384         * lib/stdio.in.h (printf): When not using GCC, override printf
17385         correctly.
17386         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17387
17388 2010-12-25  Bruno Haible  <bruno@clisp.org>
17389
17390         strerror_r-posix: Update doc.
17391         * doc/posix-functions/strerror_r.texi: Update doc about the return
17392         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
17393
17394 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
17395
17396         utimens: simplify the logic of the previous change
17397         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
17398         This should not affect whether the test succeeds or fails.
17399
17400         utimens: configure better on hosts with NFS clock skew
17401         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
17402         uses the clock of the local host.  It might use the clock of the
17403         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
17404         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17405
17406 2010-12-25  Bruno Haible  <bruno@clisp.org>
17407
17408         ptsname test: Avoid failure on Solaris.
17409         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
17410         open a pseudo-terminal; don't use BSD-style ptys.
17411         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
17412
17413 2010-12-25  Bruno Haible  <bruno@clisp.org>
17414
17415         ptsname: Avoid ERANGE failure on some systems.
17416         * lib/ptsname.c (buffer): Increase size.
17417
17418 2010-12-25  Bruno Haible  <bruno@clisp.org>
17419
17420         rename, renameat: Avoid test failures at NFS mounted locations.
17421         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
17422         so that subsequent mkdir calls succeed.
17423
17424 2010-12-25  Bruno Haible  <bruno@clisp.org>
17425
17426         iswblank: Fix C++ link error on Solaris 8.
17427         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
17428         _GL_FUNCDECL_SYS.
17429
17430 2010-12-25  Bruno Haible  <bruno@clisp.org>
17431
17432         unistd: Fix C++ link error on Solaris 8.
17433         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
17434
17435 2010-12-25  Bruno Haible  <bruno@clisp.org>
17436
17437         readlink doc: Mention an old glibc bug.
17438         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
17439
17440 2010-12-25  Bruno Haible  <bruno@clisp.org>
17441
17442         fcntl-h: Fix for use of C++ on glibc systems.
17443         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
17444         also on glibc systems in C++ mode.
17445         Reported by Gary V. Vaughan <gary@gnu.org>.
17446
17447 2010-12-25  Bruno Haible  <bruno@clisp.org>
17448
17449         roundl-ieee: Make it work on OSF/1 5.1 with cc.
17450         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
17451
17452 2010-12-25  Bruno Haible  <bruno@clisp.org>
17453
17454         truncl-ieee: Make it work on OSF/1 5.1 with cc.
17455         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
17456         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
17457         test whether truncl works according to ISO C 99 with IEC 60559.
17458         * m4/truncl-ieee.m4: New file.
17459         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
17460         m4/signbit.m4.
17461         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
17462
17463 2010-12-25  Bruno Haible  <bruno@clisp.org>
17464
17465         ceill-ieee: Make it work on OSF/1 5.1 with cc.
17466         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
17467         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
17468         test whether ceill works according to ISO C 99 with IEC 60559.
17469         * m4/ceill-ieee.m4: New file.
17470         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
17471         m4/signbit.m4.
17472         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
17473
17474 2010-12-25  Bruno Haible  <bruno@clisp.org>
17475
17476         Ensure all prerequisites of <wchar.h> are included.
17477         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
17478         before <wchar.h>.
17479         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
17480         gl_MBRLEN_NUL_RETVAL): Likewise.
17481         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17482         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
17483         AC_FUNC_MBRTOWC): Likewise.
17484         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17485         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
17486         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17487         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
17488         Likewise.
17489         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17490         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
17491         (gl_WCHAR_H): Improve comments.
17492         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
17493
17494 2010-12-25  Bruno Haible  <bruno@clisp.org>
17495
17496         strtok_r: Fix C syntax error in autoconf macro.
17497         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
17498         characters in test program.
17499
17500 2010-12-24  Bruno Haible  <bruno@clisp.org>
17501
17502         ceil, trunc, round: Fix gcc warnings.
17503         * lib/ceil.c (MIN): Undefine before redefining.
17504         * lib/trunc.c (MIN): Likewise.
17505         * lib/round.c (MIN): Likewise.
17506         Include <math.h> first.
17507
17508 2010-12-24  Bruno Haible  <bruno@clisp.org>
17509
17510         select tests: Avoid failures on OSF/1 5.1.
17511         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
17512         failure of closing the last socket; it may fail with ECONNRESET.
17513
17514 2010-12-24  Eric Blake  <eblake@redhat.com>
17515
17516         stdint: avoid HP-UX 10.20 preprocessor bug
17517         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
17518         than #if.
17519         * tests/test-floor2.c (main): Likewise.
17520         Reported by Peter O'Gorman.
17521
17522         pipe: make obsoletion transition easier
17523         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
17524         * modules/pipe (Files): Include revived file.
17525         (Include): Drop reference, to mirror getdate's behavior.
17526
17527 2010-12-24  Bruno Haible  <bruno@clisp.org>
17528
17529         sys_socket: Hide mismatch of declarations on NonStop Kernel.
17530         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
17531         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
17532         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17533
17534 2010-12-24  Bruno Haible  <bruno@clisp.org>
17535
17536         gethostname: Ensure declaration on NonStop Kernel.
17537         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
17538         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17539
17540 2010-12-24  Bruno Haible  <bruno@clisp.org>
17541
17542         sys_select: Ensure all necessary types on NonStop Kernel.
17543         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
17544         include <sys/time.h>.
17545         * doc/posix-headers/sys_select.texi: Mention that it's missing on
17546         NonStop Kernel.
17547         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17548
17549 2010-12-24  Bruno Haible  <bruno@clisp.org>
17550
17551         sys_select: Remove unneeded include.
17552         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
17553         have <sys/select.h>.
17554
17555 2010-12-24  Bruno Haible  <bruno@clisp.org>
17556
17557         gethostname: Provide a fallback for HOST_NAME_MAX.
17558         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
17559         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
17560         instead.
17561         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17562
17563 2010-12-24  Bruno Haible  <bruno@clisp.org>
17564
17565         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
17566         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
17567         (SA_RESTART): Likewise.
17568         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17569
17570 2010-12-24  Bruno Haible  <bruno@clisp.org>
17571
17572         signal: Define NSIG.
17573         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
17574         * tests/test-signal.c (nsig): New variable.
17575         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17576
17577 2010-12-24  Bruno Haible  <bruno@clisp.org>
17578
17579         rename, renameat: Avoid test failures on OSF/1 5.1.
17580         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
17581         alternative error codes.
17582         * tests/test-renameat.c (main): Likewise.
17583
17584 2010-12-24  Bruno Haible  <bruno@clisp.org>
17585
17586         *printf: Detect large precisions bug on Solaris 10/SPARC.
17587         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
17588         by Paul Eggert.
17589         * tests/test-snprintf-posix.h (test_function): Add this test code here
17590         too.
17591         * tests/test-sprintf-posix.h (test_function): Likewise.
17592         * tests/test-vasnprintf-posix.c (test_function): Likewise.
17593         * tests/test-vasprintf-posix.c (test_function): Likewise.
17594         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
17595         around by gnulib.
17596         * doc/posix-functions/printf.texi: Likewise.
17597         * doc/posix-functions/snprintf.texi: Likewise.
17598         * doc/posix-functions/sprintf.texi: Likewise.
17599         * doc/posix-functions/vfprintf.texi: Likewise.
17600         * doc/posix-functions/vprintf.texi: Likewise.
17601         * doc/posix-functions/vsnprintf.texi: Likewise.
17602         * doc/posix-functions/vsprintf.texi: Likewise.
17603         * doc/posix-functions/dprintf.texi: Undo last commit.
17604         * doc/posix-functions/vdprintf.texi: Likewise.
17605
17606 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
17607
17608         tests: port test-fdutimensat.c to Solaris 8
17609         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
17610         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
17611         On Solaris 8, it fails with errno == ENOSYS, because there is no
17612         futimens (so it can't use the fd), and there is no lutimens (so it
17613         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
17614
17615         vsnprintf: make more consistent with snprintf; doc fixes
17616
17617         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
17618         the byte count return problem was promoted from the snprintf-posix
17619         to the snprintf module.
17620         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17621         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
17622         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
17623         * tests/test-snprintf.c (main): Check the byte count returned.
17624         * tests/test-vsnprintf.c (main): Likewise.
17625
17626 2010-12-23  Eric Blake  <eblake@redhat.com>
17627
17628         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
17629         * modules/sigpipe (License): Relax license.
17630
17631 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17632
17633         doc: document Solaris printf bug with large float precisions
17634         * doc/posix-functions/dprintf.texi (dprintf):
17635         * doc/posix-functions/fprintf.texi (fprintf):
17636         * doc/posix-functions/printf.texi (printf):
17637         * doc/posix-functions/snprintf.texi (snprintf):
17638         * doc/posix-functions/sprintf.texi (sprintf):
17639         * doc/posix-functions/vdprintf.texi (vdprintf):
17640         * doc/posix-functions/vfprintf.texi (vfprintf):
17641         * doc/posix-functions/vprintf.texi (vprintf):
17642         * doc/posix-functions/vsnprintf.texi (vsnprintf):
17643         * doc/posix-functions/vsprintf.texi (vsprintf):
17644         Mention that these functions mishandle large floating point
17645         precisions on Solaris 10.  The same bug is also present in Solaris
17646         8, and I assume earlier.  This causes "cd gnulib-tests; make
17647         check" to fail on Solaris 8 (and I assume, later) when building
17648         the latest coreutils, in test-vasprintf-posix's call to
17649         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
17650         the wide flavors (e.g., wprintf) so this patch just updates the
17651         documentation for the narrow ones.
17652
17653         test-posixtm.c: add two tests
17654         * tests/test-posixtm.c: Add two tests, to highlight the
17655         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
17656         around this bug; this is merely to document it.
17657
17658 2010-12-22  Bruno Haible  <bruno@clisp.org>
17659
17660         getlogin_r: Work around portability problem on OSF/1.
17661         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
17662         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
17663         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
17664         test for a truncated result.
17665         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
17666         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
17667         * modules/getlogin_r (Depends-on): Add memchr.
17668         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
17669
17670 2010-12-22  Bruno Haible  <bruno@clisp.org>
17671
17672         ptsname: Avoid test failure on OSF/1 5.1.
17673         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
17674         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
17675         (same_slave): New function.
17676         (main): Use it to compare ptsname's result with the expected file name.
17677
17678 2010-12-22  Bruno Haible  <bruno@clisp.org>
17679
17680         Port extended stdio modules to HP NonStop Kernel.
17681         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
17682         macros.
17683         * lib/fbufmode.c: Update comments.
17684         * lib/fflush.c: Likewise.
17685         * lib/fpurge.c: Likewise.
17686         * lib/freadable.c: Likewise.
17687         * lib/freadahead.c: Likewise.
17688         * lib/freading.c: Likewise.
17689         * lib/freadptr.c: Likewise.
17690         * lib/freadseek.c: Likewise.
17691         * lib/fseeko.c: Likewise.
17692         * lib/fseterr.c: Likewise.
17693         * lib/fwritable.c: Likewise.
17694         * lib/fwriting.c: Likewise.
17695         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17696
17697 2010-12-22  Bruno Haible  <bruno@clisp.org>
17698
17699         ttyname_r: Work around bug on OSF/1 5.1.
17700         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
17701         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
17702         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
17703         present.
17704         * lib/ttyname_r.c (ttyname_r): Update comments.
17705
17706 2010-12-22  Bruno Haible  <bruno@clisp.org>
17707
17708         round: Implement result sign according to IEEE 754.
17709         * lib/round.c (MIN, MINUS_ZERO): New macros.
17710         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
17711         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
17712         * tests/test-round-ieee.c (main): Likewise.
17713         * tests/test-roundl-ieee.c (main): Likewise.
17714
17715         trunc: Implement result sign according to IEEE 754.
17716         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
17717         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
17718         * tests/test-trunc2.c: Include minus-zero.h.
17719         (MINUS_ZERO): New macro.
17720         (trunc_reference): Keep in sync with lib/trunc.c.
17721         * tests/test-truncf2.c: Include minus-zero.h.
17722         (MINUS_ZERO): New macro.
17723         (truncf_reference): Keep in sync with lib/trunc.c.
17724         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
17725         * tests/test-trunc-ieee.c (main): Likewise.
17726         * tests/test-truncl-ieee.c (main): Likewise.
17727
17728         ceil: Implement result sign according to IEEE 754.
17729         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
17730         (FUNC): Return -0.0 for -1 < x < 0.
17731         * tests/test-ceil2.c: Include minus-zero.h.
17732         (MINUS_ZERO): New macro.
17733         (ceil_reference): Keep in sync with lib/ceil.c.
17734         * tests/test-ceilf2.c: Include minus-zero.h.
17735         (MINUS_ZERO): New macro.
17736         (ceilf_reference): Keep in sync with lib/ceil.c.
17737         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
17738         * tests/test-ceil-ieee.c (main): Likewise.
17739         * tests/test-ceill-ieee.c (main): Likewise.
17740
17741         floor: Implement result sign according to IEEE 754.
17742         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
17743         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
17744         * tests/test-floorf2.c (floorf_reference): Likewise.
17745         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
17746         * tests/test-floor-ieee.c (main): Likewise.
17747         * tests/test-floorl-ieee.c (main): Likewise.
17748
17749 2010-12-22  Bruno Haible  <bruno@clisp.org>
17750
17751         getaddrinfo: Update doc.
17752         * doc/posix-functions/gai_strerror.texi: Return type is also different
17753         on AIX and HP-UX.
17754
17755 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17756
17757         getaddrinfo, inet_ntop: Update doc for Solaris.
17758         * doc/posix-functions/gai_strerror.texi: Return type is also an
17759         issue on Solaris 9 and earlier.
17760         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
17761         on Solaris 10 and earlier.
17762
17763 2010-12-21  Bruno Haible  <bruno@clisp.org>
17764
17765         New module 'roundl-ieee'.
17766         * modules/roundl-ieee: New file.
17767         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
17768         test whether roundl works according to ISO C 99 with IEC 60559.
17769         * m4/roundl-ieee.m4: New file.
17770         * modules/roundl-ieee-tests: New file.
17771         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
17772         * tests/test-roundl.c (main): Remove signbit tests.
17773         * modules/roundl-tests (Depends-on): Remove signbit.
17774         * doc/posix-functions/roundl.texi: Mention the new module.
17775
17776 2010-12-21  Bruno Haible  <bruno@clisp.org>
17777
17778         New module 'truncl-ieee'.
17779         * modules/truncl-ieee: New file.
17780         * modules/truncl-ieee-tests: New file.
17781         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
17782         * tests/test-truncl.c (main): Remove signbit tests.
17783         * modules/truncl-tests (Depends-on): Remove signbit.
17784         * doc/posix-functions/truncl.texi: Mention the new module.
17785
17786 2010-12-21  Bruno Haible  <bruno@clisp.org>
17787
17788         New module 'ceill-ieee'.
17789         * modules/ceill-ieee: New file.
17790         * modules/ceill-ieee-tests: New file.
17791         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
17792         * tests/test-ceill.c (main): Remove signbit tests.
17793         * modules/ceill-tests (Depends-on): Remove signbit.
17794         * doc/posix-functions/ceill.texi: Mention the new module.
17795
17796 2010-12-21  Bruno Haible  <bruno@clisp.org>
17797
17798         New module 'floorl-ieee'.
17799         * modules/floorl-ieee: New file.
17800         * modules/floorl-ieee-tests: New file.
17801         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
17802         * tests/test-floorl.c (main): Remove signbit tests.
17803         * modules/floorl-tests (Depends-on): Remove signbit.
17804         * doc/posix-functions/floorl.texi: Mention the new module.
17805
17806 2010-12-21  Bruno Haible  <bruno@clisp.org>
17807
17808         New module 'round-ieee'.
17809         * modules/round-ieee: New file.
17810         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
17811         whether round works according to ISO C 99 with IEC 60559.
17812         * m4/round-ieee.m4: New file.
17813         * modules/round-ieee-tests: New file.
17814         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
17815         * tests/test-round1.c (main): Remove signbit tests.
17816         * modules/round-tests (Depends-on): Remove 'signbit'.
17817         * doc/posix-functions/round.texi: Mention the new module.
17818
17819 2010-12-21  Bruno Haible  <bruno@clisp.org>
17820
17821         New module 'trunc-ieee'.
17822         * modules/trunc-ieee: New file.
17823         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
17824         whether trunc works according to ISO C 99 with IEC 60559.
17825         * m4/trunc-ieee.m4: New file.
17826         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
17827         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
17828         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
17829         * modules/trunc-ieee-tests: New file.
17830         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
17831         * tests/test-trunc1.c (main): Remove signbit tests.
17832         * modules/trunc-tests (Depends-on): Remove 'signbit'.
17833         * doc/posix-functions/trunc.texi: Mention the new module.
17834
17835 2010-12-21  Bruno Haible  <bruno@clisp.org>
17836
17837         New module 'ceil-ieee'.
17838         * modules/ceil-ieee: New file.
17839         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
17840         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
17841         ISO C 99 with IEC 60559.
17842         * m4/ceil-ieee.m4: New file.
17843         * modules/ceil (Files): Add lib/ceil.c.
17844         (Depends-on): Add 'float'.
17845         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17846         * lib/math.in.h (ceil): New declaration.
17847         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
17848         REPLACE_CEIL.
17849         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
17850         * modules/ceil-ieee-tests: New file.
17851         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
17852         * tests/test-math-c++.cc: Check the signature of 'ceil'.
17853         * doc/posix-functions/ceil.texi: Mention the new module.
17854
17855 2010-12-21  Bruno Haible  <bruno@clisp.org>
17856
17857         New module 'floor-ieee'.
17858         * modules/floor-ieee: New file.
17859         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
17860         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
17861         ISO C 99 with IEC 60559.
17862         * m4/floor-ieee.m4: New file.
17863         * modules/floor (Files): Add lib/floor.c.
17864         (Depends-on): Add 'float'.
17865         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17866         * lib/math.in.h (floor): New declaration.
17867         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
17868         REPLACE_FLOOR.
17869         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
17870         * modules/floor-ieee-tests: New file.
17871         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
17872         * tests/test-math-c++.cc: Check the signature of 'floor'.
17873         * doc/posix-functions/floor.texi: Mention the new module.
17874
17875 2010-12-21  Bruno Haible  <bruno@clisp.org>
17876
17877         New module 'roundf-ieee'.
17878         * modules/roundf-ieee: New file.
17879         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
17880         test whether roundf works according to ISO C 99 with IEC 60559.
17881         * m4/roundf-ieee.m4: New file.
17882         * modules/roundf-ieee-tests: New file.
17883         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
17884         * tests/test-roundf1.c (main): Remove signbit tests.
17885         * modules/roundf-tests (Depends-on): Remove 'signbit'.
17886         * doc/posix-functions/roundf.texi: Mention the new module.
17887
17888 2010-12-21  Bruno Haible  <bruno@clisp.org>
17889
17890         New module 'truncf-ieee'.
17891         * modules/truncf-ieee: New file.
17892         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
17893         test whether truncf works according to ISO C 99 with IEC 60559.
17894         * m4/truncf-ieee.m4: New file.
17895         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
17896         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
17897         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
17898         * modules/truncf-ieee-tests: New file.
17899         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
17900         * tests/test-truncf1.c (main): Remove signbit tests.
17901         * modules/truncf-tests (Depends-on): Remove 'signbit'.
17902         * doc/posix-functions/truncf.texi: Mention the new module.
17903
17904 2010-12-21  Bruno Haible  <bruno@clisp.org>
17905
17906         New module 'ceilf-ieee'.
17907         * modules/ceilf-ieee: New file.
17908         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
17909         test whether ceilf works according to ISO C 99 with IEC 60559.
17910         * m4/ceilf-ieee.m4: New file.
17911         * modules/ceilf-ieee-tests: New file.
17912         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
17913         * tests/test-ceilf1.c (main): Remove signbit tests.
17914         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
17915         * doc/posix-functions/ceilf.texi: Mention the new module.
17916
17917 2010-12-21  Bruno Haible  <bruno@clisp.org>
17918
17919         New module 'floorf-ieee'.
17920         * modules/floorf-ieee: New file.
17921         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
17922         test whether floorf works according to ISO C 99 with IEC 60559.
17923         * m4/floorf-ieee.m4: New file.
17924         * modules/floorf-ieee-tests: New file.
17925         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
17926         * tests/test-floorf1.c (main): Remove signbit tests.
17927         * modules/floorf-tests (Depends-on): Remove 'signbit'.
17928         * doc/posix-functions/floorf.texi: Mention the new module.
17929
17930 2010-12-21  Bruno Haible  <bruno@clisp.org>
17931
17932         Support for minus zero in autoconf macros.
17933         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
17934         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
17935         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
17936         * tests/minus-zero.h: Update comments.
17937
17938 2010-12-21  Bruno Haible  <bruno@clisp.org>
17939
17940         Tests for module 'ceil'.
17941         * modules/ceil-tests: New file.
17942         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
17943         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
17944
17945 2010-12-21  Bruno Haible  <bruno@clisp.org>
17946
17947         Tests for module 'floor'.
17948         * modules/floor-tests: New file.
17949         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
17950         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
17951
17952 2010-12-21  Bruno Haible  <bruno@clisp.org>
17953
17954         math: Fix indentation.
17955         * lib/math.in.h (floorf): Fix indentation.
17956
17957 2010-12-21  Bruno Haible  <bruno@clisp.org>
17958
17959         Fix cross-compilation guesses on Solaris.
17960         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
17961         not match "solaris2.10".
17962         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17963         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
17964         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
17965
17966 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
17967
17968         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
17969         This fixes a problem observed with the latest coreutils snapshot
17970         that caused a test to fail on Solaris 8.  src/csplit.c's call
17971         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
17972         earlier, instead of returning the number of bytes that would have
17973         been generated; this causes csplit to incorrectly report memory
17974         exhaustion.
17975         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
17976         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
17977         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
17978         comments to match.
17979         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
17980         Fix typo in matching older versions of Solaris: "solaris2.10"
17981         is matched by the shell pattern "solaris2.[0-9]*".  This matters
17982         only for guessing while cross-compiling.
17983         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
17984
17985 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
17986
17987         ftoastr: fix comment again
17988         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
17989         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
17990         Also, simplify example a bit by using flags = 0.
17991
17992 2010-12-20  Bruno Haible  <bruno@clisp.org>
17993
17994         round*, trunc*: Update documentation regarding glibc.
17995         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
17996         * doc/posix-functions/round.texi: Likewise.
17997         * doc/posix-functions/roundl.texi: Likewise.
17998         * doc/posix-functions/truncf.texi: Likewise.
17999         * doc/posix-functions/trunc.texi: Likewise.
18000         * doc/posix-functions/truncl.texi: Likewise.
18001
18002 2010-12-20  Bruno Haible  <bruno@clisp.org>
18003
18004         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
18005         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
18006         * doc/posix-functions/round.texi: Likewise.
18007         * doc/posix-functions/roundl.texi: Likewise.
18008
18009 2010-12-20  Bruno Haible  <bruno@clisp.org>
18010
18011         ttyname_r: Add missing declaration on HP-UX 11.
18012         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
18013         HAVE_TTYNAME_R.
18014         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
18015         declared. Set HAVE_TTYNAME_R always.
18016         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18017         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
18018         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
18019         HAVE_TTYNAME_R.
18020         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
18021
18022 2010-12-20  Bruno Haible  <bruno@clisp.org>
18023
18024         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
18025         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
18026         * doc/posix-functions/getlogin_r.texi: Likewise.
18027         * tests/test-getlogin.c: Include <errno.h>.
18028         (main): Avoid test failure on HP-UX 11.11.
18029         * tests/test-getlogin_r.c (main): Likewise.
18030
18031 2010-12-20  Bruno Haible  <bruno@clisp.org>
18032
18033         getlogin_r: Add missing declaration on HP-UX 11.
18034         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
18035         declared also when it exists as a function.
18036         * doc/posix-functions/getlogin_r.texi: Document this workaround.
18037
18038 2010-12-20  Bruno Haible  <bruno@clisp.org>
18039
18040         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
18041         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
18042         through wcrtomb.
18043
18044 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
18045
18046         ftoastr: fix comment
18047         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
18048         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
18049
18050 2010-12-19  Bruno Haible  <bruno@clisp.org>
18051
18052         isnan: Ensure it is a macro.
18053         * lib/math.in.h (isnan): Define as a macro if not already a macro.
18054         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
18055         Solaris.
18056
18057 2010-12-19  Bruno Haible  <bruno@clisp.org>
18058
18059         ldexpl test: Fix link error on OSF/1 5.1.
18060         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
18061
18062 2010-12-19  Bruno Haible  <bruno@clisp.org>
18063
18064         wctype: Make it work in C++ mode on OSF/1 5.1.
18065         * lib/wctype.in.h (iswblank): Declare but not define here.
18066         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
18067         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
18068         * modules/wctype (Files): Add lib/iswblank.c.
18069
18070 2010-12-19  Bruno Haible  <bruno@clisp.org>
18071
18072         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
18073         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
18074         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
18075
18076 2010-12-19  Bruno Haible  <bruno@clisp.org>
18077
18078         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
18079         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
18080         _POSIX_PII_SOCKET.
18081         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
18082         * doc/posix-functions/recvfrom.texi: Likewise.
18083         * doc/posix-functions/send.texi: Likewise.
18084         * doc/posix-functions/sendto.texi: Likewise.
18085
18086 2010-12-19  Bruno Haible  <bruno@clisp.org>
18087
18088         tcgetsid: Add missing declaration on OSF/1 5.1.
18089         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
18090         HAVE_TCGETSID.
18091         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
18092         Don't set HAVE_TCGETSID.
18093         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
18094         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
18095         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
18096         HAVE_TCGETSID.
18097         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
18098
18099 2010-12-19  Bruno Haible  <bruno@clisp.org>
18100
18101         stdio: Fix problem with popen() declaration on OSF/1 5.1.
18102         * lib/stdio.in.h: During the include_next statement, let recursive
18103         includes of this file include only the system header file.
18104
18105 2010-12-19  Bruno Haible  <bruno@clisp.org>
18106
18107         iconv_open: Fix regression from 2010-12-04.
18108         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
18109         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
18110
18111 2010-12-19  Bruno Haible  <bruno@clisp.org>
18112
18113         stdbool test: Avoid a gcc warning.
18114         * tests/test-stdbool.c (main): Fail if e1 is false.
18115         Reported by Jim Meyering.
18116
18117 2010-12-19  Jim Meyering  <meyering@redhat.com>
18118
18119         setenv: restore to working order
18120         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
18121         mistakenly removed.
18122         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
18123         HAVE_SETENV.
18124         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
18125         HAVE_SETENV.
18126
18127 2010-12-19  Bruno Haible  <bruno@clisp.org>
18128
18129         Document some different function declarations on OSF/1 5.1.
18130         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
18131         * doc/posix-functions/inet_ntop.texi: Likewise.
18132         * doc/posix-functions/gethostname.texi: Likewise.
18133         * lib/unistd.in.h (gethostname): Update comment.
18134
18135 2010-12-19  Bruno Haible  <bruno@clisp.org>
18136
18137         doc: Mention vasprintf-posix module.
18138         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
18139         the 'vasprintf-posix' module.
18140         * doc/glibc-functions/vasprintf.texi: Likewise.
18141
18142 2010-12-19  Bruno Haible  <bruno@clisp.org>
18143
18144         unsetenv: Add missing declaration on OSF/1 5.1.
18145         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
18146         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
18147         Don't set HAVE_UNSETENV. In the test program, set _BSD.
18148         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
18149         not HAVE_UNSETENV.
18150         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
18151         HAVE_UNSETENV.
18152         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
18153
18154 2010-12-19  Bruno Haible  <bruno@clisp.org>
18155
18156         setenv: Add missing declaration on OSF/1 5.1.
18157         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
18158         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
18159         declared. Don't set HAVE_SETENV.
18160         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
18161         not HAVE_SETENV.
18162         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
18163         HAVE_SETENV.
18164         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
18165
18166 2010-12-19  Bruno Haible  <bruno@clisp.org>
18167
18168         nl_langinfo tests: Avoid gcc warning.
18169         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
18170
18171 2010-12-19  Bruno Haible  <bruno@clisp.org>
18172
18173         mknod: Avoid error in C++ mode on OSF/1 with GCC.
18174         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
18175         _GL_CXXALIAS_SYS.
18176
18177 2010-12-19  Bruno Haible  <bruno@clisp.org>
18178
18179         stdbool: Relax test.
18180         * tests/test-stdbool.c (e): Don't require that casts from a variable's
18181         address to 'bool' work in static initializer, for compilers other than
18182         GCC.
18183
18184 2010-12-19  Bruno Haible  <bruno@clisp.org>
18185
18186         ftello: Add missing declaration on OSF/1 5.1.
18187         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
18188         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
18189         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
18190         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
18191         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
18192
18193 2010-12-19  Bruno Haible  <bruno@clisp.org>
18194
18195         fseeko: Add missing declaration on OSF/1 5.1.
18196         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
18197         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
18198         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
18199         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
18200         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
18201
18202 2010-12-19  Bruno Haible  <bruno@clisp.org>
18203
18204         fchdir: Add missing declaration on OSF/1 5.1.
18205         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
18206         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
18207         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
18208         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
18209         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
18210
18211 2010-12-19  Bruno Haible  <bruno@clisp.org>
18212
18213         relocatable-prog-wrapper: Separate from relocatable-prog.
18214         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
18215         uninstall-relocwrapper rule here.
18216         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
18217         Reported by Ian Beckwith <ianb@erislabs.net>.
18218
18219 2010-12-19  Bruno Haible  <bruno@clisp.org>
18220
18221         unistr/u8-mbsnlen: Add missing dependency.
18222         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
18223         Reported by Ian Beckwith <ianb@erislabs.net>.
18224
18225 2010-12-19  Bruno Haible  <bruno@clisp.org>
18226
18227         iconv: Make it possible again to use this module without 'iconv-h'.
18228         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
18229         if it is not defined.
18230         Reported by Ian Beckwith <ianb@erislabs.net>.
18231
18232 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18233
18234         acl: port to Solaris 8 when copying from tmpfs to ufs
18235         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
18236         error number.  Problem observed on Solaris 8 with latest
18237         coreutils, with "mv A B", where A is on a tmpfs file system and B
18238         is on a ufs file system.  This caused coreutils' mv/part-symlink
18239         test to fail.
18240
18241         tests: set fail=0 at start
18242         * tests/init.sh (setup_): Move fail=0 initialization here ...
18243         (mktempd_): ... from here, so that tests can rely on fail being
18244         set to 0 initially.  This fixes a problem in coreutils; see:
18245         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
18246
18247 2010-12-18  Bruno Haible  <bruno@clisp.org>
18248
18249         memmem-simple: Stylistic changes.
18250         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
18251         Fix preprocessor directive indentation.
18252
18253 2010-12-15  Pádraig Brady <P@draigBrady.com>
18254
18255         memmem, memmem-simple: reorganize and expand empty needle check
18256         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
18257         functional checks to memmem-simple so that one has a fully functional
18258         memmem by using just this module.
18259         Restrict the performance only check to the memmem module.
18260         Also expand the empty needle check to ensure the correct
18261         pointer is returned, not just a non NULL pointer.
18262         * doc/glibc-functions/memmem.texi: Rearrange the portability
18263         documentation to correlate with the rearranged checks.
18264         Clarify exactly how the memmem and memmem-simple modules
18265         relate to each other.
18266
18267 2010-12-15  Pádraig Brady <P@draigBrady.com>
18268             Bruno Haible  <bruno@clisp.org>
18269
18270         Improve cross-compilation guesses for uClibc.
18271         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
18272         that uClibc does not have the glibc bug.
18273         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
18274         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
18275
18276 2010-12-14  Eric Blake  <eblake@redhat.com>
18277
18278         configmake: provide fallbacks for oldest supported autotools
18279         * m4/configmake.m4: New file.
18280         * modules/configmake (Files): Ship it.
18281         (configure.ac): Use it to guarantee fallbacks.
18282
18283 2010-12-13  Pádraig Brady <P@draigBrady.com>
18284
18285         read-file: Improve handling of large files
18286         * lib/read-file.c (fread_file): Minimize realloc()s
18287         for regular files, and better manage sizes around SIZE_MAX.
18288
18289 2010-12-13  Eric Blake  <eblake@redhat.com>
18290
18291         cloexec, fcntl: relax license
18292         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
18293         consent from all contributors.
18294         * modules/fcntl (License): Likewise.
18295
18296 2010-12-10  Bruno Haible  <bruno@clisp.org>
18297
18298         Tests for module 'pipe-posix'.
18299         * modules/pipe-posix-tests: New file.
18300         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
18301
18302 2010-12-10  Bruno Haible  <bruno@clisp.org>
18303
18304         pipe-posix: Make it work in C++ mode.
18305         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
18306         (pipe): Use common idiom, not a macro definition.
18307         * lib/pipe.c: New file.
18308         * m4/pipe.m4: New file.
18309         * modules/pipe-posix (Description): Enhance.
18310         (Files): Add lib/pipe.c, m4/pipe.m4.
18311         (configure.ac): Invoke gl_FUNC_PIPE.
18312         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
18313         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
18314         * tests/test-unistd-c++.cc: Check the signature of pipe.
18315
18316 2010-12-10  Bruno Haible  <bruno@clisp.org>
18317
18318         Rename module 'pipe' to 'spawn-pipe'.
18319         * modules/spawn-pipe: New file, renamed from modules/pipe.
18320         (Files, configure.ac, Makefile.am): Update.
18321         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
18322         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
18323         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
18324         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
18325         "spawn-pipe.h" instead of "pipe.h".
18326         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
18327         to gl_SPAWN_PIPE.
18328         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
18329         (Files, Makefile.am): Update.
18330         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
18331         Update.
18332         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
18333         Include "spawn-pipe.h" instead of "pipe.h".
18334         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
18335         * lib/javacomp.c: Likewise.
18336         * lib/javaversion.c: Likewise.
18337         * lib/pipe-filter-gi.c: Likewise.
18338         * lib/pipe-filter-ii.c: Likewise.
18339         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
18340         * modules/javacomp (Depends-on): Likewise.
18341         * modules/javaversion (Depends-on): Likewise.
18342         * modules/pipe-filter-gi (Depends-on): Likewise.
18343         * modules/pipe-filter-ii (Depends-on): Likewise.
18344         * MODULES.html.sh (Executing programs): Update.
18345         * NEWS: Mention the change.
18346
18347 2010-12-10  Eric Blake  <eblake@redhat.com>
18348
18349         pipe-posix: new module
18350         * modules/pipe-posix: New file.
18351         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
18352         (gl_UNISTD_H): Check for declaration.
18353         * modules/unistd (Makefile.am): Substitute it.
18354         * lib/unistd.in.h (pipe): Provide it for mingw.
18355         * doc/posix-functions/pipe.texi (pipe): Update documentation.
18356         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
18357
18358 2010-12-07  Bruno Haible  <bruno@clisp.org>
18359
18360         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
18361         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
18362         u8_strcmp_gnu.
18363         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
18364
18365 2010-12-06  Bruno Haible  <bruno@clisp.org>
18366
18367         Update internal documentation.
18368         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
18369
18370 2010-12-04  Bruno Haible  <bruno@clisp.org>
18371
18372         Put more information about failed tests into the test return codes.
18373         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
18374         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
18375         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
18376         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
18377         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
18378         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18379         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18380         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18381         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
18382         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18383         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
18384         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
18385         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
18386         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18387         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
18388         returns a bit mask.
18389         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
18390         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
18391         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
18392         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
18393         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
18394         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
18395         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
18396         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
18397         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
18398         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
18399         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
18400         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
18401         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
18402         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
18403         * m4/link.m4 (gl_FUNC_LINK): Likewise.
18404         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
18405         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
18406         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
18407         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18408         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
18409         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
18410         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
18411         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
18412         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
18413         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18414         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
18415         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
18416         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
18417         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
18418         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
18419         gl_PRINTF_PRECISION): Likewise.
18420         * m4/regex.m4 (gl_REGEX): Likewise.
18421         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18422         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18423         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
18424         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18425         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18426         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18427         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
18428         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
18429         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18430         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18431         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
18432         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
18433         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
18434         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18435         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18436         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18437         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
18438         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18439         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18440         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
18441         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
18442         enumerated value.
18443         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
18444
18445 2010-12-04  Bruno Haible  <bruno@clisp.org>
18446
18447         Update for Solaris 11 2010-11.
18448         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
18449         Express, released in November 2010.
18450
18451 2010-12-04  Bruno Haible  <bruno@clisp.org>
18452
18453         nproc: Relax license.
18454         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
18455         and Paul Eggert.
18456         Requested by Ludovic Courtès <ludo@gnu.org>.
18457
18458 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
18459
18460         utimecmp: fine-grained src to nearby coarse-grained dest
18461
18462         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
18463         and the source is on a file system with higher-resolution time
18464         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
18465         not work, and the time stamps are close together, the algorithm to
18466         determine the exact resolution from the read-back mtime was buggy:
18467         it had a "!=" where it should have had an "==".  This bug has been
18468         in the code ever since it was introduced to gnulib.
18469         Problem reported by Dan Jacobson in
18470         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
18471
18472 2010-11-30  Bruno Haible  <bruno@clisp.org>
18473
18474         strerror_r-posix: Fix autoconf test.
18475         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
18476
18477 2010-11-28  Bruno Haible  <bruno@clisp.org>
18478             Paul Eggert  <eggert@cs.ucla.edu>
18479
18480         Tests for module 'getdomainname'.
18481         * modules/getdomainname-tests: New file.
18482         * tests/test-getdomainname.c: New file, based on
18483         tests/test-gethostname.c.
18484
18485 2010-11-28  Bruno Haible  <bruno@clisp.org>
18486             Paul Eggert  <eggert@cs.ucla.edu>
18487
18488         getdomainname: Use the system function when possible.
18489         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
18490         (getdomainname): Replace if needed. Provide the declaration if it is
18491         missing. Don't use _GL_CXXALIAS_SYS_CAST.
18492         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
18493         (getdomainname): When the system has getdomainname, call the system
18494         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
18495         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
18496         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
18497         found in libnsl. Look for the declaration also in <netdb.h>. Replace
18498         the function if its second argument is of type 'int' or if it is found
18499         in libnsl.
18500         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
18501         <sys/systeminfo.h> and sysinfo().
18502         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
18503         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18504         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
18505         HAVE_GETDOMAINNAME.
18506         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
18507         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
18508         * doc/glibc-functions/getdomainname.texi: Document the problems with
18509         the getdomainname declaration.
18510
18511 2010-11-28  Bruno Haible  <bruno@clisp.org>
18512
18513         sys_socket: Ensure ss_family field on AIX.
18514         * lib/sys_socket.in.h (ss_family): New macro definition.
18515         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
18516         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
18517         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
18518         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18519         * modules/sys_socket (Makefile.am): Substitute
18520         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18521         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
18522
18523 2010-11-27  Bruno Haible  <bruno@clisp.org>
18524
18525         readline: Improve configure output.
18526         * m4/readline.m4 (gl_FUNC_READLINE): Make the
18527         "checking for readline..." result understandable.
18528
18529 2010-11-27  Bruno Haible  <bruno@clisp.org>
18530
18531         *printf-posix: Detect a bug on Solaris 10/x86.
18532         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
18533         for floating-point output.
18534         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
18535         directive.
18536         * tests/test-snprintf-posix.h (test_function): Likewise.
18537         * tests/test-sprintf-posix.h (test_function): Likewise.
18538         * tests/test-vasprintf-posix.c (test_function): Likewise.
18539         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
18540         * doc/posix-functions/printf.texi: Likewise.
18541         * doc/posix-functions/snprintf.texi: Likewise.
18542         * doc/posix-functions/sprintf.texi: Likewise.
18543         * doc/posix-functions/vfprintf.texi: Likewise.
18544         * doc/posix-functions/vprintf.texi: Likewise.
18545         * doc/posix-functions/vsnprintf.texi: Likewise.
18546         * doc/posix-functions/vsprintf.texi: Likewise.
18547         * doc/glibc-functions/obstack_printf.texi: Likewise.
18548         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
18549
18550 2010-11-27  Bruno Haible  <bruno@clisp.org>
18551
18552         Fix link error when module libunistring-optional is in use.
18553         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
18554         * modules/striconveha-tests (Makefile.am): Likewise.
18555
18556 2010-11-27  Bruno Haible  <bruno@clisp.org>
18557
18558         regex: Mention link dependencies.
18559         * modules/regex (Link): New section.
18560         * modules/rpmatch (Link): Likewise.
18561         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
18562
18563 2010-11-27  Bruno Haible  <bruno@clisp.org>
18564
18565         ftoastr: Fix compilation error on Solaris.
18566         * lib/ftoastr.c: Include <config.h>.
18567
18568 2010-11-27  Bruno Haible  <bruno@clisp.org>
18569
18570         getloadavg: Update documentation.
18571         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
18572
18573 2010-11-27  Bruno Haible  <bruno@clisp.org>
18574
18575         sys_socket: Fix test whether the functions are declared.
18576         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
18577         not <sys/select.h>.
18578
18579 2010-11-27  Bruno Haible  <bruno@clisp.org>
18580
18581         getpass: Make sure to get system declaration on some platforms.
18582         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
18583         gl_USE_SYSTEM_EXTENSIONS.
18584         * modules/getpass (Depends-on): Add extensions.
18585
18586 2010-11-26  Bruno Haible  <bruno@clisp.org>
18587
18588         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
18589         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
18590         'iconv' module is present.
18591         (ICONV_CONST): New macro.
18592         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
18593         ICONV_CONST.
18594         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
18595         set ICONV_CONST.
18596         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
18597         here.
18598         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
18599         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
18600         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
18601         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
18602         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
18603         present.
18604
18605 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
18606
18607         ftoastr: comment fix
18608         * lib/ftoastr.c: "little" -> "little or no" in comment
18609
18610 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
18611
18612         stdint: port to GCC 4.3 + OSX + Octave
18613         On this platform, stdint.h is buggy and defines int64_t to long
18614         long int.  The replacement defined it to long int, causing
18615         problems with C++ style name mangling.  Instead, trust the system
18616         definition if INT64_MAX is defined, and likewise for the unsigned
18617         variant.   Problem reported by Jarno Rajahalme in
18618         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
18619         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
18620         and don't mess with int64_t and INT64_MAX in this case.
18621         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
18622
18623 2010-11-24  Bruno Haible  <bruno@clisp.org>
18624
18625         doc: Corrections regarding MacOS X 10.4 and 10.5.
18626         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
18627         MacOS X.
18628         Reported by Simon Josefsson.
18629
18630 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
18631
18632         Uninstall ".bin" files installed by relocwrapper.
18633         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
18634         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
18635         unless it is already there.
18636
18637 2010-11-21  Bruno Haible  <bruno@clisp.org>
18638
18639         Update for NetBSD 5.0.
18640         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18641         NetBSD; the test fails on NetBSD 5.0.
18642         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18643         about NetBSD.
18644
18645 2010-11-21  Bruno Haible  <bruno@clisp.org>
18646
18647         Update for HP-UX 11.23 and HP-UX 11.31.
18648         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
18649         HP-UX.
18650
18651 2010-11-21  Bruno Haible  <bruno@clisp.org>
18652
18653         Update for MacOS X 10.5.
18654         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18655         MacOS X; the test fails on MacOS X 10.5.8.
18656         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18657         about MacOS X.
18658
18659 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
18660
18661         bootstrap: add bootstrap_sync option.
18662         See discussion at
18663         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
18664         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
18665         * build-aux/bootstrap: Accept --bootstrap-sync to update
18666         bootstrap if it is not identical to the local gnulib's
18667         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
18668         enable this by default.  Accept --no-bootstrap-sync to disable
18669         it.
18670
18671 2010-11-20  Bruno Haible  <bruno@clisp.org>
18672
18673         Ensure that <features.h> is included before __GLIBC__ is tested.
18674         * lib/printf-parse.h: Include <features.h>.
18675         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
18676         Reported by Mike Frysinger <vapier@gentoo.org>.
18677
18678         Ensure that <features.h> is included before __GLIBC__ is tested.
18679         * lib/wchar.in.h: Include <features.h>.
18680         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
18681         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
18682         Reported by Mike Frysinger <vapier@gentoo.org>.
18683
18684         Ensure that <features.h> is included before __GLIBC__ is tested.
18685         * lib/arpa_inet.in.h: Include <features.h>.
18686         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
18687         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
18688         Reported by Mike Frysinger <vapier@gentoo.org>.
18689
18690         Ensure that <features.h> is included before __GLIBC__ is tested.
18691         * build-aux/link-warning.h: Include <features.h>.
18692         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
18693         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
18694         Reported by Mike Frysinger <vapier@gentoo.org>.
18695
18696         Ensure that <features.h> is included before __GLIBC__ is tested.
18697         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
18698         Reported by Mike Frysinger <vapier@gentoo.org>.
18699
18700 2010-11-20  Bruno Haible  <bruno@clisp.org>
18701
18702         memmem: Fix autoconf test.
18703         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
18704
18705 2010-11-20  Bruno Haible  <bruno@clisp.org>
18706
18707         Port to uClibc.
18708         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
18709         * lib/fcntl.in.h: Likewise.
18710         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
18711         * lib/mbrtowc.c (mbrtowc): Likewise.
18712         * lib/relocatable.c (find_shared_library_fullname): Likewise.
18713         * lib/strerror_r.c: Likewise.
18714         * lib/unistr/u8-strnlen.c: Likewise.
18715         * lib/vasnprintf.c (decimal_point_char): Likewise.
18716         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18717         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
18718         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
18719         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18720         * tests/test-sigaction.c (handler, main): Likewise.
18721         * lib/freading.h: Treat uClibc like a non-glibc platform.
18722         * lib/freading.c: Likewise.
18723         * lib/gettext.h: Likewise.
18724         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
18725         Likewise.
18726         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
18727         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
18728         * lib/propername.c (proper_name_utf8): Likewise.
18729         * lib/spawn.in.h: Likewise.
18730         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
18731         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
18732         mem_cd_iconveh_internal): Likewise.
18733         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
18734         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18735         strstr, strcasestr): Likewise.
18736         * lib/unicodeio.c (unicode_to_mb): Likewise.
18737         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
18738         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
18739         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
18740         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
18741         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
18742         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
18743         * lib/unistr/u8-stpncpy.c: Likewise.
18744         * lib/vasnprintf.c (VASNPRINTF): Likewise.
18745         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
18746         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18747         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18748         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18749         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
18750         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
18751         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
18752         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18753         Likewise.
18754         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18755         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18756         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18757         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18758         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18759         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18760         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18761         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
18762         * tests/test-getopt.h (OPTIND_MIN): Likewise.
18763         * tests/test-striconveha.c (main): Likewise.
18764         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18765         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
18766         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
18767         * doc/posix-functions/getline.texi: Likewise.
18768         Reported by Mike Frysinger <vapier@gentoo.org>.
18769
18770 2010-11-20  Bruno Haible  <bruno@clisp.org>
18771
18772         nproc: Fix condition.
18773         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
18774         HAVE_PTHREAD_AFFINITY_NP.
18775
18776 2010-11-20  Bruno Haible  <bruno@clisp.org>
18777
18778         Fix a comment.
18779         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
18780
18781 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
18782
18783         ftoastr: don't assume snprintf
18784         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
18785         Implement a subset of snprintf here, by using sprintf safely.
18786         * modules/ftoastr (Depends-on): Remove snprintf.
18787
18788 2010-11-19  Jim Meyering  <meyering@redhat.com>
18789
18790         test-rename.h: fix compilation failure
18791         * tests/test-rename.h (test_rename): Add omitted "}".
18792
18793 2010-11-17  Jim Meyering  <meyering@redhat.com>
18794
18795         maint.mk: add a URL discussing the no-@acronym policy
18796         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
18797
18798 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
18799
18800         ftoastr: depend on snprintf, improve comments
18801         * lib/ftoastr.c: Also mention Loitsch's draft.
18802         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
18803         needed in the current implementation, but it might simplify
18804         speeding up the code later.
18805         * modules/ftoastr: Depend on snprintf; this improves portability.
18806         Suggested by Bruno Haible in the same email.
18807
18808         ftoastr: port to hosts lacking strtof and strtold
18809         Problem reported by Bruno Haible in
18810         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
18811         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
18812         environment and strtold (and presumably strtof) are not available.
18813         * modules/ftoastr (Files): Add m4/c-strtod.m4.
18814         (configure.ac): Require gl_C99_STRTOLD.
18815
18816 2010-11-18  Bruno Haible  <bruno@clisp.org>
18817
18818         c-strtold: Avoid link error on AIX 7.
18819         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
18820         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
18821         (gl_C_STRTOLD): Test whether strtold_l exists.
18822         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18823
18824 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
18825
18826         intprops: new macro INT_BITS_STRLEN_BOUND
18827         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
18828         ftoastr.h.  This exposes an internal of intprops.h that was formerly
18829         not exposed.  Also, it uses a slightly tighter bound than before;
18830         though this makes no practical difference, we might as well be as
18831         tight as we easily can.
18832
18833         ftoastr: new module, for lossless conversion of floats to short strings
18834         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
18835         * modules/ftoastr: New files.
18836
18837 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
18838
18839         bootstrap: port to Solaris sed
18840         * build-aux/bootstrap (get_version): Port to Solaris sed.
18841         See Ralf Wildenhues's note in
18842         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
18843
18844 2010-11-14  Jim Meyering  <meyering@redhat.com>
18845
18846         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
18847         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
18848         and move definition closer to sole use.
18849
18850 2010-11-13  Jim Meyering  <meyering@redhat.com>
18851
18852         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
18853         Now we require at least autoconf-2.59, which means the work-around
18854         is no longer needed.
18855         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
18856         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18857         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
18858         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
18859         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18860
18861 2010-11-13  Bruno Haible  <bruno@clisp.org>
18862
18863         rename, renameat: Avoid test failures at NFS mounted locations.
18864         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
18865         functions.
18866         (test_rename): Use assert_nonexistent.
18867         * tests/test-rename.c: Include <dirent.h>.
18868         * tests/test-renameat.c: Likewise.
18869         Reported by Gary V. Vaughan <gary@gnu.org>.
18870
18871         rename, renameat: Document Linux bug with NFS
18872         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
18873         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
18874         * doc/posix-functions/renameat.texi: Likewise.
18875         Suggested by Eric Blake.
18876
18877 2010-11-13  Bruno Haible  <bruno@clisp.org>
18878
18879         rename test: Add comments.
18880         * tests/test-rename.h (test_rename): Add structure and comments.
18881
18882 2010-11-13  Eric Blake  <eblake@redhat.com>
18883
18884         maintainer-makefile: cover a few more files
18885         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
18886         scripts generated within C files, for libvirt.
18887
18888 2010-11-13  Bruno Haible  <bruno@clisp.org>
18889
18890         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
18891         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
18892         character, return the number of bytes that belong together, not always
18893         1.
18894         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
18895         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
18896         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
18897         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
18898         number of bytes of an invalid character.
18899         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
18900         (main): Invoke it.
18901         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
18902         results.
18903         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
18904         malformed byte sequences.
18905         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
18906         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
18907         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
18908         Reported by Ben Pfaff and Paolo Bonzini.
18909
18910 2010-11-13  Bruno Haible  <bruno@clisp.org>
18911
18912         openat: Work around glibc bug with fchownat() and empty file names.
18913         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
18914         (gl_FUNC_FCHOWNAT): Invoke it.
18915         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
18916         * doc/posix-functions/fchownat.texi: Document the glibc bug.
18917         Reported by Gary V. Vaughan <gary@gnu.org>.
18918
18919 2010-11-13  Bruno Haible  <bruno@clisp.org>
18920
18921         openat: Ensure autoconf macro ordering.
18922         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
18923         gl_USE_SYSTEM_EXTENSIONS.
18924         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
18925
18926 2010-11-13  Bruno Haible  <bruno@clisp.org>
18927
18928         Update comments.
18929         * lib/unistr/u8-check.c: Update file name in comments.
18930         * lib/unistr/u8-mblen.c: Likewise.
18931         * lib/unistr/u8-prev.c: Likewise.
18932         * lib/unistr/u8-strmblen.c: Likewise.
18933         * lib/unistr/u8-strmbtouc.c: Likewise.
18934
18935 2010-11-13  Jim Meyering  <meyering@redhat.com>
18936
18937         tests: avoid test failure on Solaris 10 due to lack of PATH export
18938         * tests/test-update-copyright.sh: Don't forget to export PATH.
18939
18940         init.sh: ensure that IFS is defined, just in case...
18941         * tests/init.sh (setup_): Ensure that IFS is defined,
18942         so that saving and restoring it works as expected.  This
18943         appears to be useful at least for an old version of dash
18944         from a long time ago (RH 6).  See here for details:
18945         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
18946
18947         maint.mk: tighten "test a == b" check
18948         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
18949         test to files that contain something like #!/bin/sh.
18950         Without this, coreutils would get two false positives in
18951         the comments of C source files.
18952
18953 2010-11-12  Eric Blake  <eblake@redhat.com>
18954
18955         bootstrap: fix typo in previous attempt
18956         * build-aux/bootstrap (buildreq): Correct the grouping.
18957         Reported by Paul Eggert.
18958
18959         maintainer-makefile: prohibit test x == x
18960         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
18961         Based on a report by Matthias Bolte.
18962
18963         bootstrap: allow FreeBSD gzip
18964         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
18965         which has no '.' and goes to stderr.
18966         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
18967         Reported by Matthias Bolte.
18968
18969         maintainer-makefile: check for i18n setup
18970         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
18971         will likely work.
18972
18973 2010-11-12  Bruno Haible  <bruno@clisp.org>
18974
18975         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
18976         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
18977         * lib/nanosleep.c (nanosleep): Likewise.
18978
18979 2010-11-11  Bruno Haible  <bruno@clisp.org>
18980
18981         fcntl-h: Fix for use of C++ on glibc systems.
18982         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18983         also on glibc systems in C++ mode.
18984         Reported by Gary V. Vaughan <gary@gnu.org>.
18985
18986 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18987
18988         mknod: avoid false failure with dash
18989         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
18990
18991 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
18992
18993         unlink: Fix "is it should" typo in diagnostic.
18994         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
18995         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
18996
18997 2010-11-11  Bruno Haible  <bruno@clisp.org>
18998
18999         Tests for module 'strerror_r-posix'.
19000         * modules/strerror_r-posix-tests: New file.
19001         * tests/test-strerror_r.c: New file.
19002         * tests/test-string-c++.cc: Check the signature of strerror_r.
19003
19004         New module 'strerror_r-posix'.
19005         * lib/string.in.h (strerror_r): New declaration.
19006         * lib/strerror_r.c: New file.
19007         * m4/strerror_r.m4: New file.
19008         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
19009         of strerror_r.
19010         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
19011         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
19012         * modules/strerror_r-posix: New file.
19013         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
19014         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
19015         * doc/posix-functions/strerror_r.texi: Mention the new module and the
19016         portability problems.
19017
19018 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
19019
19020         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
19021         line is also considered for output. Quoted function name in shell
19022         command, so temporary files for functions like MyClass::operator()
19023         are removed correctly without errors.
19024
19025 2010-11-09  Bruno Haible  <bruno@clisp.org>
19026
19027         * doc/posix-functions/strerror.texi: List more failing platforms.
19028
19029         * doc/posix-functions/strerror.texi: Add a comment.
19030
19031 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
19032
19033         fdopendir: fix bug on MacOS X when low on file descriptors
19034
19035         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
19036         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
19037         All callers changed.
19038         (fdopendir): Invoke save_cwd at the top level, not after using
19039         multiple dup() calls to use up file descriptors.  Then retry
19040         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
19041         less than the maximum number of open file descriptors, because
19042         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
19043         on Mac OS X 10.6.4 for tar 1.24
19044         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
19045         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
19046         and for tar 1.25
19047         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
19048
19049 2010-11-07  Bruno Haible  <bruno@clisp.org>
19050
19051         vasnprintf: Support I flag on glibc systems.
19052         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
19053         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
19054         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
19055         snprintf function.
19056         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
19057         glibc systems.
19058         * tests/test-vasnprintf-posix3.c: New file.
19059         * modules/vasnprintf-posix-tests (Files): Add it.
19060         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
19061
19062 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
19063
19064         [html] Fix copy/paste bug: Use unique name for compiler warnings.
19065         * MODULES.html.sh: For compiler warnings, use name
19066         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
19067
19068 2010-11-05  Eric Blake  <eblake@redhat.com>
19069
19070         ceil, floor: avoid spurious failure with icc
19071         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
19072         [denormals-as-zero] when optimizing without -mieee-fp option.
19073         * tests/test-floorf2.c (floorf_reference): Likewise.
19074         * tests/test-ceilf1.c (dummy): New function.
19075         (main): Use it to outsmart icc's optimization.
19076         * tests/test-floorf1.c (dummy, main): Likewise.
19077
19078         tests: require working signbit
19079         * modules/ceilf-tests (Depends-on): Add signbit.
19080         * modules/ceill-tests (Depends-on): Likewise.
19081         * modules/floorf-tests (Depends-on): Likewise.
19082         * modules/floorl-tests (Depends-on): Likewise.
19083         * modules/round-tests (Depends-on): Likewise.
19084         * modules/roundf-tests (Depends-on): Likewise.
19085         * modules/roundl-tests (Depends-on): Likewise.
19086         * modules/trunc-tests (Depends-on): Likewise.
19087         * modules/truncf-tests (Depends-on): Likewise.
19088         * modules/truncl-tests (Depends-on): Likewise.
19089
19090         strtod: work around icc bug
19091         * lib/strtod.c (minus_zero): Define to working value.
19092         (strtod): Use it to avoid icc bug.
19093
19094         copysign: enhance tests
19095         * modules/copysign-tests (Files): Add minus-zero.h.
19096         * tests/test-copysign.c (main): Also test zeros.
19097
19098 2010-11-04  Eric Blake  <eblake@redhat.com>
19099
19100         ceil, floor, round, trunc: enhance tests of -0
19101         * tests/test-ceilf1.c (main): Ensure correct sign of result.
19102         * tests/test-ceill.c (main): Likewise.
19103         * tests/test-floorf1.c (main): Likewise.
19104         * tests/test-floorl.c (main): Likewise.
19105         * tests/test-round1.c (main): Likewise.
19106         * tests/test-roundf1.c (main): Likewise.
19107         * tests/test-roundl.c (main): Likewise.
19108         * tests/test-trunc1.c (main): Likewise.
19109         * tests/test-truncf1.c (main): Likewise.
19110         * tests/test-truncl.c (main): Likewise.
19111
19112 2010-11-04  Eric Blake  <eblake@redhat.com>
19113
19114         frexp, tests: work around ICC bug with -zero
19115         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
19116         works with more compilers.
19117         * tests/minus-zero.h: New file.
19118         * modules/ceilf-tests (Files): Include it.
19119         * modules/ceill-tests (Files): Likewise.
19120         * modules/floorf-tests (Files): Likewise.
19121         * modules/floorl-tests (Files): Likewise.
19122         * modules/frexp-nolibm-tests (Files): Likewise.
19123         * modules/frexp-tests (Files): Likewise.
19124         * modules/frexpl-nolibm-tests (Files): Likewise.
19125         * modules/frexpl-tests (Files): Likewise.
19126         * modules/isnan-tests (Files): Likewise.
19127         * modules/isnand-nolibm-tests (Files): Likewise.
19128         * modules/isnand-tests (Files): Likewise.
19129         * modules/isnanf-nolibm-tests (Files): Likewise.
19130         * modules/isnanf-tests (Files): Likewise.
19131         * modules/isnanl-nolibm-tests (Files): Likewise.
19132         * modules/isnanl-tests (Files): Likewise.
19133         * modules/round-tests (Files): Likewise.
19134         * modules/roundf-tests (Files): Likewise.
19135         * modules/roundl-tests (Files): Likewise.
19136         * modules/ldexpl-tests (Files): Likewise.
19137         * modules/signbit-tests (Files): Likewise.
19138         * modules/snprintf-posix-tests (Files): Likewise.
19139         * modules/sprintf-posix-tests (Files): Likewise.
19140         * modules/strtod-tests (Files): Likewise.
19141         * modules/trunc-tests (Files): Likewise.
19142         * modules/truncf-tests (Files): Likewise.
19143         * modules/truncl-tests (Files): Likewise.
19144         * modules/vsnprintf-posix-tests (Files): Likewise.
19145         * modules/vsprintf-posix-tests (Files): Likewise.
19146         * modules/vasnprintf-posix-tests (Files): Likewise.
19147         * modules/vasprintf-posix-tests (Files): Likewise.
19148         * tests/test-ceilf1.c (main): Use it.
19149         * tests/test-ceill.c (main): Likewise.
19150         * tests/test-floorf1.c (main): Likewise.
19151         * tests/test-floorl.c (main): Likewise.
19152         * tests/test-frexp.c (main): Likewise.
19153         * tests/test-frexpl.c (main): Likewise.
19154         * tests/test-isnan.c (main): Likewise.
19155         * tests/test-isnand.h (main): Likewise.
19156         * tests/test-isnanf.h (main): Likewise.
19157         * tests/test-isnanl.h (main): Likewise.
19158         * tests/test-ldexpl.c (main): Likewise.
19159         * tests/test-round.c (main): Likewise.
19160         * tests/test-roundf.c (main): Likewise.
19161         * tests/test-roundl.c (main): Likewise.
19162         * tests/test-signbit.c (test_signbitf, test_signbitd)
19163         (test_signbitl): Likewise.
19164         * tests/test-snprintf-posix.h (test_function): Likewise.
19165         * tests/test-sprintf-posix.h (test_function): Likewise.
19166         * tests/test-strtod.c (main): Likewise.
19167         * tests/test-trunc1.c (main): Likewise.
19168         * tests/test-truncf1.c (main): Likewise.
19169         * tests/test-truncl.c (main): Likewise.
19170
19171         isnanl: work around icc bug
19172         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
19173
19174 2010-11-03  Eric Blake  <eblake@redhat.com>
19175
19176         tests: fix compiler warnings
19177         * tests/test-getopt.h (test_getopt): Fix condition.
19178         * tests/test-getopt_long.h (test_getopt_long): Likewise.
19179         * tests/test-pipe2.c (main): Likewise.
19180         * tests/test-quotearg-simple.c (main): Avoid icc warning.
19181
19182         utimens: fix broken m4 test
19183         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
19184
19185 2010-10-28  Bruno Haible  <bruno@clisp.org>
19186
19187         posix_spawn*, getdtablesize: Relax license.
19188         * modules/posix_spawn (License): Change to LGPLv2+.
19189         * modules/posix_spawnp (License): Likewise.
19190         * modules/posix_spawn-internal (License): Likewise.
19191         * modules/posix_spawnattr_init (License): Likewise.
19192         * modules/posix_spawnattr_getflags (License): Likewise.
19193         * modules/posix_spawnattr_setflags (License): Likewise.
19194         * modules/posix_spawnattr_getpgroup (License): Likewise.
19195         * modules/posix_spawnattr_setpgroup (License): Likewise.
19196         * modules/posix_spawnattr_getschedparam (License): Likewise.
19197         * modules/posix_spawnattr_setschedparam (License): Likewise.
19198         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
19199         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
19200         * modules/posix_spawnattr_getsigdefault (License): Likewise.
19201         * modules/posix_spawnattr_setsigdefault (License): Likewise.
19202         * modules/posix_spawnattr_getsigmask (License): Likewise.
19203         * modules/posix_spawnattr_setsigmask (License): Likewise.
19204         * modules/posix_spawnattr_destroy (License): Likewise.
19205         * modules/posix_spawn_file_actions_init (License): Likewise.
19206         * modules/posix_spawn_file_actions_addclose (License): Likewise.
19207         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
19208         * modules/posix_spawn_file_actions_addopen (License): Likewise.
19209         * modules/posix_spawn_file_actions_destroy (License): Likewise.
19210         * modules/getdtablesize (License): Likewise.
19211         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
19212
19213 2010-10-26  Bruno Haible  <bruno@clisp.org>
19214
19215         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
19216         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
19217         Cygwin and mingw.
19218         Suggested by Eric Blake.
19219
19220 2010-10-26  Bruno Haible  <bruno@clisp.org>
19221
19222         stdio: Work around compilation error due to renameat() on Solaris 10.
19223         * lib/stdio.in.h: Include <unistd.h> on Solaris.
19224         * lib/renameat.c: Don't include <unistd.h> here.
19225         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
19226         Reported by Paul Eggert and Eric Blake.
19227
19228 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
19229
19230         renameat: port to Solaris 10, which declares renameat in unistd.h
19231
19232         * lib/renameat.c: Include unistd.h before stdio.h, because
19233         Solaris 10 declares renameat in unistd.h.  Problem encountered
19234         when building GNU tar 1.24 on Solaris 10.
19235
19236 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19237
19238         fdopendir: fix C89 compilation
19239         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
19240         compilers.
19241
19242 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
19243
19244         inttostr: simplify by removing unnecessary redundancy
19245         * lib/anytostr.c: Don't include verify.h.
19246         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
19247         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
19248         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
19249         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
19250         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
19251         Likewise.
19252         * modules/inttostr (Depends-on): Remove 'verify'.
19253
19254 2010-10-23  Bruno Haible  <bruno@clisp.org>
19255
19256         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
19257         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
19258         Reported by Eric Blake.
19259
19260 2010-10-23  Bruno Haible  <bruno@clisp.org>
19261
19262         Tests: Fix LOCALE_JA on MirBSD 10.
19263         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
19264         to an UTF-8 locale.
19265         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
19266         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19267         Reported by Eric Blake.
19268
19269 2010-10-21  Bruno Haible  <bruno@clisp.org>
19270
19271         nl_langinfo test: Avoid test failure on NetBSD 5.
19272         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
19273         Reported by Eric Blake.
19274
19275 2010-10-21  Eric Blake  <eblake@redhat.com>
19276
19277         c-stack: work around libsigsegv 2.8 bug
19278         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
19279         overflow on at least PowerPC64.
19280
19281 2010-10-17  Bruno Haible  <bruno@clisp.org>
19282
19283         userspec: Drop redundant file.
19284         * modules/userspec (Files): Remove lib/inttostr.h.
19285
19286 2010-10-17  Bruno Haible  <bruno@clisp.org>
19287
19288         nl_langinfo tests: Silence some warnings.
19289         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
19290         Reported by Jim Meyering.
19291
19292 2010-10-17  Bruno Haible  <bruno@clisp.org>
19293
19294         Make use of GCC's attribute __alloc_size__.
19295         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
19296         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
19297         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
19298         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
19299         __alloc_size__.
19300         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
19301         Suggested by Jim Meyering.
19302
19303 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
19304
19305         bootstrap: anchor .gitignore entries.
19306         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
19307         with...
19308         (insert_vc_ignore): ... this new function, which prepends `/' to
19309         all .gitignore entries before passing them to
19310         insert_sorted_if_absent.
19311
19312 2010-10-16  Bruno Haible  <bruno@clisp.org>
19313
19314         nextafter: Fix configure check.
19315         * modules/nextafter (configure.ac): Correct expected prototype.
19316
19317 2010-10-16  Bruno Haible  <bruno@clisp.org>
19318
19319         termios: Update documentation.
19320         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
19321
19322 2010-10-16  Bruno Haible  <bruno@clisp.org>
19323
19324         tests: Make them compile with TinyCC.
19325         * tests/test-strstr.c (main): Remove parentheses around array
19326         initializer.
19327
19328 2010-10-15  Eric Blake  <eblake@redhat.com>
19329
19330         ignore-value: make header idempotent
19331         * lib/ignore-value.h: Add double-inclusion guards.
19332         Reported by Stefan Berger.
19333
19334 2010-10-15  Jim Meyering  <meyering@redhat.com>
19335
19336         GNUmakefile: handle "stable" target, not "major"
19337         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
19338         lists in maint.mk and announce-gen.  Without this, "make stable"
19339         would fail to ensure that $(VERSION) is up to date.
19340
19341 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
19342
19343         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
19344         & co.
19345
19346 2010-10-14  Bruno Haible  <bruno@clisp.org>
19347
19348         vasnprintf: Don't set errno to 0.
19349         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
19350         block that sets it to 0.
19351         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
19352
19353 2010-10-14  Bruno Haible  <bruno@clisp.org>
19354
19355         socketlib: Fix.
19356         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
19357         gl_PREREQ_SYS_H_WINSOCK2.
19358         Reported by Ian Beckwith <ianb@erislabs.net>.
19359
19360 2010-10-13  Jim Meyering  <meyering@redhat.com>
19361
19362         test-select-stdin.c: avoid warn_unused_result warnings
19363         * tests/test-select-stdin.c: Include "macros.h".
19364         ASSERT that read and fflush succeed.
19365
19366 2010-10-13  Jim Meyering  <meyering@redhat.com>
19367
19368         git-version-gen: do require git-VC'd files in cwd
19369         * build-aux/git-version-gen: Reject a git version string
19370         if there are no commits associated with the current directory.
19371         This avoids an unlikely false-positive (unrelated dir whose parent
19372         repository also contains a tag matching v*), as pointed out
19373         by Giuseppe Scrivano in
19374         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
19375
19376 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
19377
19378         argv-iter: omit nonconforming declaration
19379         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
19380         enum arg_iter_err declaration, which doesn't conform to C99.
19381         Solaris 10 cc warns about this.
19382
19383 2010-10-13  Eric Blake  <eblake@redhat.com>
19384
19385         termios: fix compilation on mingw
19386         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
19387         (gl_TERMIOS_H): Adjust it on mingw.
19388         * modules/termios (Makefile.am): Substitute new key.
19389         * lib/termios.in.h (includes): Make include_next conditional.
19390         * doc/posix-headers/termios.texi (termios.h): Update
19391         documentation.
19392         Reported by Daniel P. Berrange.
19393
19394 2010-10-13  Jim Meyering  <meyering@redhat.com>
19395
19396         git-version-gen: don't require that .git/ be in the current dir
19397         * build-aux/git-version-gen: Adjust this script so that it works
19398         when run from any working directory beneath the top-level .git/-
19399         containing directory.  Inspired by a patch from Giuseppe Scrivano,
19400         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
19401
19402         test-select: avoid warn_unused_result warnings
19403         * tests/test-select.c: Include "macros.h".
19404         ASSERT that each call to read, write, and pipe succeeds.
19405         While not technically required, also check each "close".
19406         * modules/select-tests (Files): Add tests/macros.h.
19407
19408         test-symlinkat: remove declaration of unused local
19409         * tests/test-symlinkat.c (main): Remove unused local, "buf".
19410
19411         test-inttostr: avoid shadowing warnings
19412         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
19413         and use malloc rather than the stack for the same reason as
19414         mentioned in the comment justifying the other allocation.
19415
19416 2010-10-11  Bruno Haible  <bruno@clisp.org>
19417
19418         stdlib: Allow multiple gnulib generated replacements to coexist.
19419         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
19420         Reported by Sam Steingold <sds@gnu.org>.
19421
19422 2010-10-11  Jim Meyering  <meyering@redhat.com>
19423
19424         fix a documentation typo
19425         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
19426
19427 2010-10-11  Eric Blake  <eblake@redhat.com>
19428
19429         futimens: work around Solaris 11 bug
19430         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
19431         * tests/test-futimens.h (test_futimens): Enhance, rather than
19432         weaken test.
19433         * doc/posix-functions/futimens.texi (futimens): Document the bug.
19434
19435 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
19436
19437         Indentation.
19438         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
19439         higher-level operators more to the left.
19440
19441 2010-10-11  Jim Meyering  <meyering@redhat.com>
19442
19443         test-futimens: avoid unwarranted test failure on Solaris 5.11
19444         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
19445         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
19446         because it tries to dereference the NULL name argument.
19447
19448 2010-10-11  Bruno Haible  <bruno@clisp.org>
19449
19450         Indentation.
19451         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
19452         indentation.
19453
19454 2010-10-11  Jim Meyering  <meyering@redhat.com>
19455
19456         spawn.in.h: make indentation consistent with parentheses
19457         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
19458         Make indentation consistent with parentheses.
19459
19460 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
19461
19462         Fix mismatched parens in previous commit
19463         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
19464         parens.
19465
19466 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
19467
19468         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
19469
19470         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
19471         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
19472         * lib/malloca.c: Include "verify.h".
19473         (verify1): Remove, replacing with a verify call.
19474         * lib/relocwrapper.c (verify1): Likewise.
19475         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
19476         Likewise.
19477         * modules/malloca (Depends-on): Add 'verify'.
19478         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
19479         * modules/vasnprintf (Depends-on): Add 'verify'.
19480         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
19481         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
19482         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
19483         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
19484         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
19485         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
19486         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
19487
19488         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
19489
19490         Formerly the style was sometimes 2*X - 1, because the C standard
19491         was wrongly thought to disallow ?: in integral constant expressions.
19492         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
19493         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
19494         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
19495         * lib/stdint.in.h (_verify_intmax_size): Likewise.
19496         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
19497         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
19498         verify that time_t cannot be floating.
19499
19500 2010-10-08  Eric Blake  <eblake@redhat.com>
19501
19502         time: enforce recent POSIX ruling that time_t is integral
19503         * lib/time.in.h (__time_t_must_be_integral): Detect any
19504         problematic systems, allowing the rest of gnulib to assume POSIX.
19505
19506 2010-10-08  Jim Meyering  <meyering@redhat.com>
19507
19508         fdopendir: fix a bug on systems lacking openat and /proc support
19509         OpenBSD 4.7 is one such system.  The most noticeable effect was
19510         failure of any application making nontrivial use of fts: rm, du,
19511         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
19512           ./rm: traversal failed: `a': Bad file descriptor
19513         Debugging that, you see that even though FD 6 was closed just
19514         prior to the opendir call in fd_clone_opendir, its resulting
19515         dir->dd_fd was 8, rather than the expected value of 6:
19516
19517         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
19518         93                close (fd);
19519         (gdb) n
19520         94                dir = fd_clone_opendir (dupfd);
19521         (gdb) n
19522         95                saved_errno = errno;
19523         (gdb) p dir->dd_fd
19524         $11 = 8
19525
19526         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
19527         The problem is that on OpenBSD, fd_clone_opendir has to resort
19528         to using the old-style save/restore CWD mechanism, due to its
19529         lack of openat/proc support, and *that* would steal the FD (6)
19530         that opendir was supposed to use.
19531
19532         The fix is to squirrel away the desired FD so that save_cwd uses a
19533         different one, and then free the dest FD right before calling opendir.
19534         That guarantees opendir will use the required file descriptor.
19535
19536         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
19537
19538 2010-10-08  Bruno Haible  <bruno@clisp.org>
19539
19540         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
19541         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
19542
19543 2010-10-08  Bruno Haible  <bruno@clisp.org>
19544
19545         nanosleep: Make replacement POSIX compliant.
19546         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
19547         is out of range.
19548         Reported by Jim Meyering.
19549
19550 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
19551
19552         bootstrap: add hook for altering gnulib.mk, for Bison
19553         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
19554         the Bison bootstrapping process can rewrite file names and variables
19555         in this file before later parts of 'bootstrap' use the file.
19556         Bison wants to include lib/gnulib.mk from the top-level makefile,
19557         so it needs the file names in this file to be relative to the top
19558         level, not relative to lib; plus it needs variable names to be
19559         rewritten.
19560         (slurp): Use the new function.
19561
19562         bootstrap: reformat for readability
19563         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
19564
19565 2010-10-08  Eric Blake  <eblake@redhat.com>
19566
19567         docs: update cygwin progress
19568         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
19569         1.7.7.
19570         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
19571         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
19572         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
19573         * doc/posix-functions/carg.texi (carg): Likewise.
19574         * doc/posix-functions/cargf.texi (cargf): Likewise.
19575         * doc/posix-functions/casin.texi (casin): Likewise.
19576         * doc/posix-functions/casinf.texi (casinf): Likewise.
19577         * doc/posix-functions/casinh.texi (casinh): Likewise.
19578         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
19579         * doc/posix-functions/catan.texi (catan): Likewise.
19580         * doc/posix-functions/catanf.texi (catanf): Likewise.
19581         * doc/posix-functions/catanh.texi (catanh): Likewise.
19582         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
19583         * doc/posix-functions/ccos.texi (ccos): Likewise.
19584         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
19585         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
19586         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
19587         * doc/posix-functions/cexp.texi (cexp): Likewise.
19588         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
19589         * doc/posix-functions/cimag.texi (cimag): Likewise.
19590         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
19591         * doc/posix-functions/clog.texi (clog): Likewise.
19592         * doc/posix-functions/clogf.texi (clogf): Likewise.
19593         * doc/posix-functions/conj.texi (conj): Likewise.
19594         * doc/posix-functions/conjf.texi (conjf): Likewise.
19595         * doc/posix-functions/cpow.texi (cpow): Likewise.
19596         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
19597         * doc/posix-functions/cproj.texi (cproj): Likewise.
19598         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
19599         * doc/posix-functions/creal.texi (creal): Likewise.
19600         * doc/posix-functions/crealf.texi (crealf): Likewise.
19601         * doc/posix-functions/csin.texi (csin): Likewise.
19602         * doc/posix-functions/csinf.texi (csinf): Likewise.
19603         * doc/posix-functions/csinh.texi (csinh): Likewise.
19604         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
19605         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
19606         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
19607         * doc/posix-functions/ctan.texi (ctan): Likewise.
19608         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
19609         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
19610         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
19611         * doc/posix-headers/complex.texi (complex.h): Likewise.
19612
19613 2010-10-07  Jim Meyering  <meyering@redhat.com>
19614
19615         parse-datetime: avoid compilation failure on OpenBSD 4.7
19616         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
19617         This works around a compilation failure on OpenBSD 4.7:
19618         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
19619
19620 2010-10-07  Eric Blake  <eblake@redhat.com>
19621
19622         docs: update cygwin progress
19623         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
19624         1.7.6.
19625         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
19626         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
19627         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
19628         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
19629         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
19630         Likewise.
19631         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
19632         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
19633         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
19634         Likewise.
19635         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
19636         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
19637         Likewise.
19638         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
19639         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
19640         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
19641         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
19642         Likewise.
19643         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
19644         Likewise.
19645         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
19646
19647         docs: update parse-datetime history
19648         * doc/parse-datetime.texi (Authors of parse_datetime): Better
19649         documentation of this function's history and alternatives.
19650
19651         cygwin: use more robust version check
19652         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
19653         exclude an eventual cygwin 1.9.1.
19654         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19655         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19656         (gl_FUNC_STRCASESTR): Likewise.
19657         Reported by Bruno Haible.
19658
19659 2010-10-06  Bruno Haible  <bruno@clisp.org>
19660
19661         string, sys_select: Avoid #including large headers unless necessary.
19662         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
19663         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
19664         OSF/1, BeOS, Haiku.
19665         Reported by Jim Meyering.
19666
19667 2010-10-05  Eric Blake  <eblake@redhat.com>
19668
19669         memmem, strstr, strcasestr: fix bug with long periodic needle
19670         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
19671         periodic needle having false positive.
19672         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
19673         and cygwin 1.7.7.
19674         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
19675         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19676         (gl_FUNC_STRCASESTR): Likewise.
19677         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19678         * tests/test-memmem.c (main): Expose the bug.
19679         * tests/test-strcasestr.c (main): Likewise.
19680         * tests/test-strstr.c (main): Likewise.
19681         * tests/test-c-strcasestr.c (main): Likewise.
19682         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
19683         * doc/posix-functions/strstr.texi (strstr): Likewise.
19684         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
19685         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
19686
19687 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19688
19689         parse-datetime: do some more renaming
19690         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
19691         parse_datetime, not get_date.  Mention the renaming.
19692         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
19693         in comments.
19694         * m4/bison.m4: Likewise.
19695
19696 2010-10-05  Eric Blake  <eblake@redhat.com>
19697
19698         parse-datetime: better name than get_date
19699         * NEWS: Reword the deprecation notice.
19700         * modules/get_date: Rename to modules/parse-datetime.
19701         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
19702         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
19703         * lib/get_date.y: Rename to lib/parse-datetime.y.
19704         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
19705         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
19706         * doc/getdate.texi: Provide fallback wrapper.
19707         * lib/getdate.h: Move guts, and wrap...
19708         * lib/parse-datetime.h: ...new file.
19709         * lib/parse-datetime.y (get_date): Rename...
19710         (parse_datetime): ...to this.
19711         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
19712         (gl_PARSE_DATETIME): ...to this.
19713         * doc/posix-functions/getdate.texi (get_date): Provide fallback
19714         documentation.
19715         * modules/getdate (Files): Provide fallback docs and header.
19716         (Notice, Depends-on): Update references.
19717         * tests/test-parse-datetime.c: Likewise.
19718         * DEPENDENCIES: Likewise.
19719         * MODULES.html.sh (Date and time <time.h>): Likewise.
19720         * doc/parse-datetime.texi (Date input formats)
19721         (Authors of parse_datetime): Likewise.
19722         * modules/parse-datetime (Files, configure.ac, Makefile.am)
19723         (Include): Likewise.
19724         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
19725         * gnulib-tool: Likewise.
19726         * m4/bison.m4 (gl_BISON): Likewise.
19727         Suggested by Bruno Haible.
19728
19729 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19730
19731         more ports to Solaris tr, which needs [] around ranges
19732         * gnulib-tool: Solaris tr needs [] around ranges.
19733         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19734         * tests/test-pipe-filter-gi1.c (main): Likewise.
19735         * tests/test-pipe-filter-ii1.c (main): Likewise.
19736
19737 2010-10-05  Eric Blake  <eblake@redhat.com>
19738
19739         bootstrap: fix Solaris regression
19740         * build-aux/bootstrap (check_versions): Solaris tr still needs []
19741         around ranges.
19742         Reported by Pádraig Brady.
19743
19744         bootstrap: work with pkg-config
19745         * build-aux/bootstrap (check_versions): Also transliterate - in
19746         prerequisite name.
19747         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
19748         prerequisites that were already found, to avoid confusion.
19749         Reported by Justin Clift.
19750
19751         faccessat: remove unused wrappers
19752         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
19753         presence of these wrappers dragged in -lgen on Solaris.
19754         Reported by Clemens Brogi; fix suggested by Paul Eggert.
19755
19756 2010-10-05  Jim Meyering  <meyering@redhat.com>
19757
19758         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
19759         * Makefile (sc_pragma_columns): New syntax-check rule.
19760
19761 2010-10-04  Bruno Haible  <bruno@clisp.org>
19762
19763         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
19764         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
19765         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
19766         Reported by Bruce Korb and Eric Blake.
19767
19768 2010-10-04  Bruno Haible  <bruno@clisp.org>
19769
19770         threadlib: Make option --with-libpth-prefix work.
19771         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
19772         use $LIBPTH, not just -lpth.
19773
19774 2010-10-04  Bruno Haible  <bruno@clisp.org>
19775
19776         Avoid line length limitation from HP NonStop system header files.
19777         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
19778         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
19779         * lib/ctype.in.h: Likewise.
19780         * lib/dirent.in.h: Likewise.
19781         * lib/errno.in.h: Likewise.
19782         * lib/fcntl.in.h: Likewise.
19783         * lib/float.in.h: Likewise.
19784         * lib/getopt.in.h: Likewise.
19785         * lib/iconv.in.h: Likewise.
19786         * lib/inttypes.in.h: Likewise.
19787         * lib/langinfo.in.h: Likewise.
19788         * lib/locale.in.h: Likewise.
19789         * lib/math.in.h: Likewise.
19790         * lib/netdb.in.h: Likewise.
19791         * lib/netinet_in.in.h: Likewise.
19792         * lib/poll.in.h: Likewise.
19793         * lib/pthread.in.h: Likewise.
19794         * lib/pty.in.h: Likewise.
19795         * lib/sched.in.h: Likewise.
19796         * lib/se-selinux.in.h: Likewise.
19797         * lib/search.in.h: Likewise.
19798         * lib/signal.in.h: Likewise.
19799         * lib/spawn.in.h: Likewise.
19800         * lib/stdarg.in.h: Likewise.
19801         * lib/stddef.in.h: Likewise.
19802         * lib/stdint.in.h: Likewise.
19803         * lib/stdio.in.h: Likewise.
19804         * lib/stdlib.in.h: Likewise.
19805         * lib/string.in.h: Likewise.
19806         * lib/strings.in.h: Likewise.
19807         * lib/sys_file.in.h: Likewise.
19808         * lib/sys_ioctl.in.h: Likewise.
19809         * lib/sys_select.in.h: Likewise.
19810         * lib/sys_socket.in.h: Likewise.
19811         * lib/sys_stat.in.h: Likewise.
19812         * lib/sys_time.in.h: Likewise.
19813         * lib/sys_times.in.h: Likewise.
19814         * lib/sys_utsname.in.h: Likewise.
19815         * lib/sys_wait.in.h: Likewise.
19816         * lib/sysexits.in.h: Likewise.
19817         * lib/termios.in.h: Likewise.
19818         * lib/time.in.h: Likewise.
19819         * lib/unistd.in.h: Likewise.
19820         * lib/wchar.in.h: Likewise.
19821         * lib/wctype.in.h: Likewise.
19822         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
19823         * modules/ctype (Makefile.am): Likewise.
19824         * modules/dirent (Makefile.am): Likewise.
19825         * modules/errno (Makefile.am): Likewise.
19826         * modules/fcntl-h (Makefile.am): Likewise.
19827         * modules/float (Makefile.am): Likewise.
19828         * modules/getopt-posix (Makefile.am): Likewise.
19829         * modules/iconv-h (Makefile.am): Likewise.
19830         * modules/inttypes (Makefile.am): Likewise.
19831         * modules/langinfo (Makefile.am): Likewise.
19832         * modules/locale (Makefile.am): Likewise.
19833         * modules/math (Makefile.am): Likewise.
19834         * modules/netdb (Makefile.am): Likewise.
19835         * modules/netinet_in (Makefile.am): Likewise.
19836         * modules/poll-h (Makefile.am): Likewise.
19837         * modules/pthread (Makefile.am): Likewise.
19838         * modules/pty (Makefile.am): Likewise.
19839         * modules/sched (Makefile.am): Likewise.
19840         * modules/search (Makefile.am): Likewise.
19841         * modules/selinux-h (Makefile.am): Likewise.
19842         * modules/signal (Makefile.am): Likewise.
19843         * modules/spawn (Makefile.am): Likewise.
19844         * modules/stdarg (Makefile.am): Likewise.
19845         * modules/stddef (Makefile.am): Likewise.
19846         * modules/stdint (Makefile.am): Likewise.
19847         * modules/stdio (Makefile.am): Likewise.
19848         * modules/stdlib (Makefile.am): Likewise.
19849         * modules/string (Makefile.am): Likewise.
19850         * modules/strings (Makefile.am): Likewise.
19851         * modules/sys_file (Makefile.am): Likewise.
19852         * modules/sys_ioctl (Makefile.am): Likewise.
19853         * modules/sys_select (Makefile.am): Likewise.
19854         * modules/sys_socket (Makefile.am): Likewise.
19855         * modules/sys_stat (Makefile.am): Likewise.
19856         * modules/sys_time (Makefile.am): Likewise.
19857         * modules/sys_times (Makefile.am): Likewise.
19858         * modules/sys_utsname (Makefile.am): Likewise.
19859         * modules/sys_wait (Makefile.am): Likewise.
19860         * modules/sysexits (Makefile.am): Likewise.
19861         * modules/termios (Makefile.am): Likewise.
19862         * modules/time (Makefile.am): Likewise.
19863         * modules/unistd (Makefile.am): Likewise.
19864         * modules/wchar (Makefile.am): Likewise.
19865         * modules/wctype (Makefile.am): Likewise.
19866
19867 2010-10-04  Bruno Haible  <bruno@clisp.org>
19868
19869         read-file tests: Avoid a test failure on NonStop Kernel.
19870         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
19871         a regular file.
19872         Reported by Joachim Schmitz <schmitz@hp.com>.
19873
19874 2010-10-03  Bruno Haible  <bruno@clisp.org>
19875
19876         gnulib-tool: Fixes for --create-testdir with --libtool.
19877         * gnulib-tool (func_get_automake_snippet): Don't augment
19878         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
19879         an executable.
19880         (func_create_testdir): Handle module 'alloca' like func_import.
19881         Reported by Bruce Korb <bruce.korb@gmail.com>.
19882
19883 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
19884
19885         Avoid some lines longer than 80 characters.
19886         * lib/stdint.in.h: Break long comment lines.
19887         * lib/math.in.h: Likewise.
19888         (_GL_NUM_UINT_WORDS): New macro, for readability.
19889         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
19890         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
19891         * lib/stdlib.in.h: Likewise.
19892         * lib/spawn.in.h: Likewise.
19893         * lib/sys_socket.in.h: Update an URL.
19894         * lib/sys_stat.in.h: Break long line.
19895
19896 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
19897
19898         Improve pmccabe2html.
19899         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
19900         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
19901         when the sources change. Remove the line in the HTML about "Used
19902         ranges" (which implied that there might be other unused ranges),
19903         rename "Resume" to "Summary" (easier to understand for more users).
19904         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
19905         styles, and some unnecessary blank lines.
19906
19907 2010-10-03  Bruno Haible  <bruno@clisp.org>
19908             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
19909
19910         acl: Add support for ACLs on NonStop Kernel.
19911         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
19912         Check whether the function aclsort() exists.
19913         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
19914         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
19915         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19916         (acl_nontrivial [HAVE_ACLSORT]: New function.
19917         (file_has_acl): Implement for NonStop Kernel.
19918         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19919         (qset_acl): Implement for NonStop Kernel.
19920         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
19921         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19922         (main): Implement for NonStop Kernel.
19923         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
19924         Kernel. Handle this flavor.
19925         * tests/test-set-mode-acl.sh: Likewise.
19926         * tests/test-copy-acl.sh: Likewise.
19927         * tests/test-copy-file.sh: Likewise.
19928
19929 2010-10-03  Bruno Haible  <bruno@clisp.org>
19930
19931         Info about ACLs on NonStop Kernel.
19932         * doc/acl-resources.txt: Add info about NonStop Kernel.
19933         References by Joachim Schmitz <schmitz@hp.com>.
19934
19935 2010-10-02  Bruno Haible  <bruno@clisp.org>
19936
19937         Define missing EDQUOT on NonStop Kernel.
19938         * lib/errno.in.h (EDQUOT): Assign a value if missing.
19939         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
19940         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
19941         missing.
19942         * doc/posix-headers/errno.texi: Mention the NSK bug.
19943         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
19944         Reported by Joachim Schmitz <schmitz@hp.com>.
19945
19946 2010-10-02  Bruno Haible  <bruno@clisp.org>
19947
19948         Update doc for POSIX:2008.
19949         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
19950         Update URL of POSIX specification.
19951
19952 2010-10-02  Bruno Haible  <bruno@clisp.org>
19953
19954         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
19955         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
19956         from gnulib, not from Automake.
19957
19958 2010-10-02  Bruno Haible  <bruno@clisp.org>
19959
19960         New module 'system-posix'.
19961         * modules/system-posix: New file.
19962         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
19963         module is present.
19964         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
19965         GNULIB_SYSTEM_POSIX.
19966         * modules/stdlib (Depends-on): Remove sys_wait.
19967         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
19968         * doc/posix-functions/system.texi: Mention the new module.
19969         * doc/posix-headers/stdlib.texi: Likewise.
19970         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
19971         define test_sys_wait_macros to a no-op.
19972         Reported by Sam Steingold <sds@gnu.org>.
19973
19974 2010-09-30  Bruno Haible  <bruno@clisp.org>
19975
19976         More renaming from 'getdate' to 'get_date'.
19977         * doc/get_date.texi: Renamed from doc/getdate.texi.
19978         * modules/get_date (Files): Update.
19979         * MODULES.html.sh (Date and time <time.h>): Update.
19980         * DEPENDENCIES: Update.
19981         * gnulib-tool: Update comment.
19982         * m4/bison.m4 (gl_BISON): Likewise.
19983         * m4/get_date.m4 (gl_GET_DATE): Likewise.
19984
19985 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
19986
19987         bootstrap: support ACLOCAL_FLAGS during aclocal
19988         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
19989         can add additional -I dir for third-party .m4 files.
19990
19991 2010-09-30  Eric Blake  <eblake@redhat.com>
19992
19993         bootstrap: use glibtoolize on MacOS
19994         * build-aux/bootstrap (check_versions): Convert libtool into
19995         libtoolize.
19996         (tool search): Move libtool check earlier, and look for
19997         glibtoolize for MacOS.
19998         (gnulib_tool_options): Auto-add --libtool when appropriate.
19999         Reported by Justin Clift.
20000
20001         poll: fix typo that broke test on MacOS
20002         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
20003         Reported by Justin Clift.
20004
20005         getdate: rename to get_date
20006         Note: getdate.h is not renamed, to minimize client impact.
20007         * modules/getdate: Mark obsolete.  Move old contents...
20008         * modules/get_date: ...to new module name.
20009         * modules/getdate-tests: Move...
20010         * modules/get_date-tests: ...here.
20011         * m4/getdate.m4: Move...
20012         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
20013         * lib/getdate.y: Move...
20014         * lib/get_date.y: ...here.
20015         * tests/test-getdate.c: Move...
20016         * tests/test-get_date.c: ...here.
20017         * doc/posix-functions/getdate.texi (getdate): Update name.
20018         * NEWS: Mention the change.
20019
20020 2010-09-29  Bruno Haible  <bruno@clisp.org>
20021
20022         Separate the module 'waitpid' from the module 'sys_wait'.
20023         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
20024         present.
20025         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
20026         gl_MODULE_INDICATOR_FOR_TESTS.
20027         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
20028         * modules/sys_wait (Depends-on): Remove waitpid.
20029         (Makefile.am): Substitute GNULIB_WAITPID.
20030         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
20031         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
20032         signature only if the 'waitpid' module is present.
20033         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
20034         * NEWS: Mention the change.
20035         * modules/grantpt (Depends-on): Add waitpid.
20036         * modules/wait-process (Depends-on): Likewise.
20037
20038 2010-09-29  Bruno Haible  <bruno@clisp.org>
20039
20040         More tests for module 'sys_wait'.
20041         * modules/sys_wait-c++-tests: New file.
20042         * tests/test-sys_wait-c++.cc: New file.
20043         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
20044         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
20045
20046 2010-09-29  Bruno Haible  <bruno@clisp.org>
20047
20048         New module 'waitpid'.
20049         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
20050         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
20051         Don't include <process.h>.
20052         (waitpid): Declare only, using modern idiom.
20053         * m4/waitpid.m4: New file.
20054         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
20055         * modules/waitpid: New file.
20056         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
20057         (Makefile.am): Update.
20058         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
20059
20060 2010-09-28  Bruno Haible  <bruno@clisp.org>
20061
20062         poll: Assume ANSI C.
20063         * lib/poll.c (poll): Use an ANSI C declaration.
20064
20065 2010-09-28  Bruno Haible  <bruno@clisp.org>
20066
20067         poll-h: Create poll.h on all platforms.
20068         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
20069         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
20070         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
20071         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
20072         (gl_REPLACE_POLL_H): Don't set POLL_H.
20073         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
20074         * modules/poll-h (Depends-on): Add include_next.
20075         (Makefile.am): Create poll.h unconditionally. Substitute also
20076         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
20077
20078 2010-09-28  Bruno Haible  <bruno@clisp.org>
20079
20080         Tests for module 'poll-h'.
20081         * modules/poll-h-c++-tests: New file.
20082         * tests/test-poll-h-c++.cc: New file.
20083
20084         Tests for module 'poll-h'.
20085         * modules/poll-h-tests: New file.
20086         * tests/test-poll-h.c: New file.
20087
20088 2010-09-28  Bruno Haible  <bruno@clisp.org>
20089
20090         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
20091         * modules/poll-h (Depends-on): Add 'extensions'.
20092
20093 2010-09-28  Bruno Haible  <bruno@clisp.org>
20094
20095         New module 'poll-h'.
20096         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
20097         (poll): Use modern idiom.
20098         * modules/poll-h: New file.
20099         * modules/poll (Files): Remove lib/poll.in.h.
20100         (Depends-on): Add poll-h.
20101         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
20102         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
20103         * m4/poll_h.m4: New file.
20104         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
20105         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
20106         and invoke gl_REPLACE_POLL_H.
20107         * lib/poll.c: Use common idiom.
20108         * tests/test-poll.c: Likewise.
20109         * doc/posix-headers/poll.texi: Mention the poll-h module.
20110         Suggested by Eric Blake.
20111
20112 2010-09-26  Bruno Haible  <bruno@clisp.org>
20113
20114         sys_wait: Implement WSTOPSIG.
20115         * lib/sys_wait.in.h (WSTOPSIG): New macro.
20116         Reported by Simon Josefsson.
20117
20118 2010-09-26  Simon Josefsson  <simon@josefsson.org>
20119
20120         stdlib, sys_wait: Avoid compilation error on mingw.
20121         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
20122
20123 2010-09-26  Bruno Haible  <bruno@clisp.org>
20124
20125         stdlib tests: Avoid code duplication.
20126         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
20127         * modules/sys_wait-tests (Files): Likewise.
20128         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
20129         * tests/test-stdlib.c: Include test-sys_wait.h.
20130         (main): Invoke test_sys_wait_macros.
20131         * tests/test-sys_wait.c: Include test-sys_wait.h.
20132         (main): Invoke test_sys_wait_macros.
20133
20134 2010-09-25  Simon Josefsson  <simon@josefsson.org>
20135
20136         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
20137         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
20138         sure Windows sockets are working before calling getaddrinfo.
20139         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
20140         * doc/gnulib.texi (Windows sockets): Fix typo.
20141
20142 2010-09-25  Bruno Haible  <bruno@clisp.org>
20143
20144         Tests for module 'regex-quote'.
20145         * modules/regex-quote-tests: New file.
20146         * tests/test-regex-quote.c: New file.
20147
20148         New module 'regex-quote'.
20149         * lib/regex-quote.h: New file.
20150         * lib/regex-quote.c: New file.
20151         * modules/regex-quote: New file.
20152         Suggested by Reuben Thomas <rrt@sc3d.org>.
20153
20154 2010-09-24  Bruno Haible  <bruno@clisp.org>
20155
20156         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
20157         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
20158
20159 2010-09-23  Bruno Haible  <bruno@clisp.org>
20160
20161         setenv: Relax license.
20162         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
20163         Blake.
20164         Requested by Eric Blake.
20165
20166 2010-09-22  Bruno Haible  <bruno@clisp.org>
20167
20168         termios: Relax license.
20169         * modules/termios (License): Change to LGPLv2+.
20170         Requested by Eric Blake.
20171
20172 2010-09-22  Bruno Haible  <bruno@clisp.org>
20173
20174         threadlib: Allow the package to change the default to 'no'.
20175         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
20176         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
20177         Reported by Paul Eggert.
20178
20179 2010-09-22  Pádraig Brady  <P@draigbrady.com>
20180             Bruno Haible  <bruno@clisp.org>
20181
20182         Fix endless loop in mbmemcasecoll.
20183         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
20184         byte.
20185         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
20186
20187 2010-09-22  Bruno Haible  <bruno@clisp.org>
20188
20189         Tests for module 'memcoll'.
20190         * modules/memcoll-tests: New file.
20191         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
20192
20193         memcoll, xmemcoll: Clarify size vs. length.
20194         * modules/memcoll.c (memcoll0): Clarify specification.
20195         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
20196         passed to collate_error.
20197
20198 2010-09-22  Bruno Haible  <bruno@clisp.org>
20199
20200         Tests for module 'memcasecmp'.
20201         * modules/memcasecmp-tests: New file.
20202         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
20203
20204 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
20205
20206         * lib/pthread.in.h: Add split double-inclusion guard, and include
20207         system <pthread.h> if there is one.  Use @@-style as in other
20208         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
20209         pthread.h doesn't.
20210         (pthread_mutexattr_destroy, pthread_mutexattr_init):
20211         (pthread_mutexattr_settype, pthread_mutex_trylock):
20212         New static inline functions, if there's no system <pthread.h>.
20213         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
20214         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
20215         Approximate with mutexes if the system lacks spinlocks, as in
20216         MacOS.
20217         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
20218         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
20219         @@-style.  Check for spinlocks separately.
20220         (gl_PTHREAD_DEFAULTS): New macro.
20221         * modules/pthread: Redo to use a more typical style for in.h files.
20222
20223 2010-09-21  Eric Blake  <eblake@redhat.com>
20224
20225         net_if: enhance tests
20226         * tests/test-net_if.c (main): Move signature checks earlier.
20227         Print failures to stderr.
20228         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
20229         Document the bug that we do not yet fix.
20230
20231 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20232
20233         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
20234         about gnulib, not GSS.
20235
20236 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20237
20238         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
20239         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
20240         for Emacs.
20241         * build-aux/pmccabe2html: Make Makefile.am example code more
20242         cut-and-paste friendly.
20243
20244 2010-09-21  Simon Josefsson  <simon@josefsson.org>
20245
20246         * tests/test-net_if.c: New file.
20247         * modules/net_if-tests: New file.
20248
20249 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
20250
20251         pthread: add pthread_spin_destroy
20252         * lib/pthread.in.h (pthread_spin_destroy): New function.
20253
20254 2010-09-19  Bruno Haible  <bruno@clisp.org>
20255
20256         gnulib-tool: Fix --help output.
20257         * gnulib-tool (func_usage): Fix help message.
20258         Reported by Reuben Thomas <rrt@sc3d.org>.
20259
20260 2010-09-18  Jim Meyering  <meyering@redhat.com>
20261
20262         maint.mk: avoid unexpanded \n in two diagnostics
20263         * top/maint.mk (sc_prohibit_always_true_header_tests):
20264         Don't use a literal \n in a halt=... assignment.  It would not be
20265         expanded, and the two \n bytes would appear in the diagnostic output
20266         rather than the desired newline.  Use halt=$$(printf ... instead.
20267         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
20268
20269 2010-09-18  Bruno Haible  <bruno@clisp.org>
20270
20271         netinet_in: Doc tweak.
20272         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
20273         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20274
20275 2010-09-18  Jim Meyering  <meyering@redhat.com>
20276
20277         init.sh: correct an outdated comment
20278         * tests/init.sh (create_exe_shims_):  s/function/alias/
20279
20280         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
20281         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
20282         a file named "*.exe" is removed between the glob expansion and the
20283         processing of that oddly named file.
20284
20285 2010-09-17  Eric Blake  <eblake@redhat.com>
20286
20287         mirbsd: add some more support
20288         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
20289         in BSD family.
20290         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
20291         devices as OpenBSD.
20292         * m4/host-os.m4 (mirbsd): Add MirBSD.
20293
20294         tests: fix unportable assumption on sys/wait.h
20295         * tests/test-sys_wait.c (main): Relax test.
20296         * tests/test-stdlib.c (main): Likewise.
20297
20298         init.sh: accomodate directory with no .exes
20299         * tests/init.sh: Accomodate directory containing only scripts.
20300
20301         tests: avoid compiler warning
20302         * tests/test-stdlib.c (main): Use the variable.
20303
20304         fdutimens, fdutimensat: update signature, again
20305         * lib/utimens.h (gl_futimens): Delete, and move signature...
20306         (fdutimens): ...here.
20307         (fdutimensat): Rearrange signature.
20308         (lutimensat): Rename variable for clarity.
20309         * lib/fdutimensat.c (fdutimensat): Update signature.
20310         * lib/utimens.c (fdutimens): Likewise.
20311         (gl_futimens): Delete.
20312         (utimens, lutimens): Update callers.
20313         * lib/futimens.c (futimens): Likewise.
20314         * tests/test-fdutimensat.c: Likewise.
20315         * tests/test-utimens.c: Likewise.
20316         * tests/test-futimens.h: Update comment.
20317         * NEWS: Mention this.
20318         Suggested by Paul Eggert.
20319
20320 2010-09-17  Bruno Haible  <bruno@clisp.org>
20321
20322         Take over the maintenance of some older macros from Autoconf.
20323         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
20324         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
20325         GNU Autoconf.
20326         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
20327         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
20328
20329 2010-09-17  Eric Blake  <eblake@redhat.com>
20330
20331         fdutimensat: drop atflag validation
20332         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
20333         with valid fd, to close a race scenario where futimens is
20334         unsupported and FILE was replaced by a symlink.
20335         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
20336         accordingly.
20337         Suggested by Paul Eggert.
20338
20339 2010-09-16  Bruno Haible  <bruno@clisp.org>
20340
20341         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
20342         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
20343
20344 2010-09-16  Bruno Haible  <bruno@clisp.org>
20345
20346         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
20347         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
20348         login_tty exists.
20349         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20350
20351 2010-09-16  Bruno Haible  <bruno@clisp.org>
20352
20353         login_tty: Make the replacement code work on BSD systems.
20354         * lib/login_tty.c: Include <sys/ioctl.h>.
20355         (login_tty): Use ioctl TIOCSCTTY when available.
20356         * modules/login_tty (Depends-on): Add sys_ioctl.
20357         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20358
20359 2010-09-16  Bruno Haible  <bruno@clisp.org>
20360
20361         login_tty: Stricter unit test.
20362         * modules/login_tty-tests (Depends-on): Add tcgetsid.
20363         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
20364         and tcgetsid() after login_tty.
20365         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20366
20367 2010-09-16  Bruno Haible  <bruno@clisp.org>
20368
20369         New module 'tcgetsid'.
20370         * lib/tcgetsid.c: New file.
20371         * m4/tcgetsid.m4: New file.
20372         * modules/tcgetsid: New file.
20373         * modules/termios (Depends-on): Add c++defs, warn-on-use.
20374         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
20375         GNULIB_TCGETSID, HAVE_TCGETSID.
20376         * lib/termios.in.h: Include <sys/types.h>.
20377         (tcgetsid): New declaration.
20378         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
20379         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
20380         * doc/posix-functions/tcgetsid.texi: Mention the new module.
20381         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
20382
20383 2010-09-16  Bruno Haible  <bruno@clisp.org>
20384
20385         Tests for module 'termios'.
20386         * modules/termios-c++-tests: New file.
20387         * modules/termios-tests: New file.
20388         * tests/test-termios-c++.cc: New file.
20389         * tests/test-termios.c: New file.
20390
20391         New module 'termios'.
20392         * modules/termios: New file.
20393         * lib/termios.in.h: New file.
20394         * m4/termios_h.m4: New file.
20395         * doc/posix-headers/termios.texi: Mention the new module.
20396
20397 2010-09-16  Eric Blake  <eblake@redhat.com>
20398
20399         fdutimensat: add an atflag parameter
20400         * lib/fdutimensat.c (fdutimensat): Add new parameter.
20401         * lib/utimens.h (fdutimensat): Update prototype.
20402         * tests/test-fdutimensat.c: Adjust test to match.
20403         * NEWS: Document the change.
20404         Suggested by Paul Eggert.
20405
20406 2010-09-16  Bruno Haible  <bruno@clisp.org>
20407
20408         Fix typos in comments.
20409         * lib/striconveh.h: Fix typo in comment.
20410         * lib/login_tty.c (login_tty): Likewise.
20411
20412 2010-09-15  Bruno Haible  <bruno@clisp.org>
20413
20414         stdlib: clarify MirBSD WEXITSTATUS bug
20415         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
20416         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20417
20418 2010-09-15  Eric Blake  <eblake@redhat.com>
20419
20420         stdlib: work around MirBSD WEXITSTATUS bug
20421         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
20422         * modules/stdlib (Depends-on): Add sys_wait.
20423         * tests/test-sys_wait.c (main): Enhance test.
20424         * tests/test-stdlib.c (main): Likewise.
20425         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
20426
20427         docs: mention MacOS issue with WEXITSTATUS(constant)
20428         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
20429         issue.
20430         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20431
20432         strnlen: add tests
20433         * modules/strnlen-tests: New file.
20434         * tests/test-strnlen.c: Likewise.
20435
20436 2010-09-14  Bruno Haible  <bruno@clisp.org>
20437
20438         unistr/base: Avoid link errors when module 'libunistring' is also used.
20439         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
20440         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
20441         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
20442         Declare also when HAVE_LIBUNISTRING is set.
20443         Reported by Pádraig Brady <P@draigbrady.com>.
20444
20445 2010-09-14  Eric Blake  <eblake@redhat.com>
20446
20447         test-rawmemchr: make more robust
20448         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
20449         (Depends-on, configure.ac): Add needed prerequisites to use it.
20450         * modules/memchr-tests (Files, Depends-on, configure.ac):
20451         Likewise, to avoid implicit reliance on memchr module prereqs.
20452         * tests/test-memchr.c (main): Ensure proper masking.
20453         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
20454         reads.
20455
20456         memchr: detect glibc Alpha bug
20457         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
20458         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
20459         Alpha.
20460         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
20461         * tests/test-memchr.c (main): Enhance test.
20462         Reported by Nelson H. F. Beebe.
20463
20464 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20465
20466         fts, getcwd, glob: audit for dirfd returning -1
20467         * lib/fts.c (opendir): Remove #define; no longer used.
20468         (opendirat): New arg PDIR_FD.  All callers changed.
20469         (fts_build, _opendir2): Use new opendirat to avoid the need for
20470         dirfd, or for checking whether dirfd returns a negative value.
20471         Don't use opendir; always use openat followed by fdopendir.
20472         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
20473         it.
20474         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
20475         returns -1 here.
20476         * modules/fts (Depends-on): Remove dirfd.
20477         * modules/getcwd (Depends-on): Likewise.
20478
20479 2010-09-13  Eric Blake  <eblake@redhat.com>
20480
20481         float: fix broken MirBSD header
20482         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
20483         * doc/posix-headers/float.texi (float.h): Document it.
20484
20485 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20486
20487         fts: use O_NOFOLLOW to avoid race condition when opening a directory
20488         * lib/fts.c (opendirat): New arg extra_flags.
20489         (__opendir2): Use it to avoid following symlinks when opening
20490         a directory, if symlinks are not supposed to be followed.  See
20491         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
20492
20493         fdopendir: preserve argument fd before returning
20494         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
20495         (fdopendir_with_dup, fd_clone_opendir): New static functions.
20496         (fdopendir): Use them, arranging for FD to be open to the same
20497         directory that it was when it started.  (It might be temporarily
20498         closed while fdopendir is running, so this not thread- or
20499         signal-safe.)  Be careful to do the right thing even when file
20500         descriptors are scarce and dup fails with errno == EMFILE.  See
20501         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
20502
20503 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
20504
20505         regex: Pass the system regex if its only problem is 32-bit regoff_t.
20506         * NEWS: Document change.
20507         * m4/regex.m4: Disable test for regoff_t size.
20508
20509 2010-09-13  Jim Meyering  <meyering@redhat.com>
20510
20511         fts: don't operate on an invalid file descriptor after failed dup
20512         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
20513         negative file descriptor.
20514
20515 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
20516
20517         savedir: add streamsavedir, deprecate fdsavedir
20518         * NEWS: Mention deprecation of fdsavedir.
20519         * lib/savedir.c (streamsavedir): New extern function, whose name
20520         ends in "savedir" to be consistent with the others.  This differs
20521         from savedirstream in that it doesn't close its argument.  The
20522         next version of GNU tar will use this instead of fdsavedir, to
20523         avoid some race conditions and conserve file descriptors.
20524         (savedirstream): Reimplement as a wrapper around streamsavedir.
20525         (fdsavedir): Add a comment deprecating this function.  As far as
20526         I know, only GNU tar used it, and GNU tar doesn't need it any more.
20527         * lib/savedir.h (streamsavedir): New decl.
20528         (fdsavedir): Add a comment deprecating this.
20529
20530 2010-09-10  Bruno Haible  <bruno@clisp.org>
20531
20532         langinfo: Fix last commit.
20533         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
20534         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
20535         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20536
20537 2010-09-10  Bruno Haible  <bruno@clisp.org>
20538
20539         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
20540         * lib/progreloc.c (O_EXEC): Define fallback.
20541
20542 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
20543
20544         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
20545         * NEWS: Document recent changes to fcntl-h.
20546         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
20547         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
20548         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
20549         Similarly for O_SEARCH; this last was already true, but not documented.
20550         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
20551         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
20552         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
20553         Likewise.
20554         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
20555         is zero, not whether it is defined.
20556         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
20557         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
20558         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
20559
20560 2010-09-10  Bruno Haible  <bruno@clisp.org>
20561
20562         langinfo, nl_langinfo: Fix for IRIX 5.3.
20563         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
20564         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
20565         HAVE_LANGINFO_YESEXPR.
20566         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
20567         HAVE_LANGINFO_YESEXPR.
20568         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
20569         HAVE_LANGINFO_T_FMT_AMPM is 0.
20570         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
20571         HAVE_LANGINFO_YESEXPR is 0.
20572         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
20573         NOEXPR.
20574         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
20575         * doc/posix-functions/nl_langinfo.texi: Likewise.
20576         Reported by Eric Blake.
20577
20578 2010-09-10  Bruno Haible  <bruno@clisp.org>
20579
20580         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
20581         * doc/glibc-functions/login_tty.texi: Mention the include file problem
20582         on FreeBSD 8.0 and OpenBSD 4.6.
20583         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
20584         * m4/pty_h.m4 (gl_PTY_H): Likewise.
20585         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
20586         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
20587         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
20588         ac_includes_default.
20589         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20590
20591 2010-09-09  Eric Blake  <eblake@redhat.com>
20592
20593         strsignal: work around NetBSD bug
20594         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
20595         * lib/string.in.h (includes): Likewise.
20596         * doc/posix-functions/strsignal.texi (strsignal): Document the
20597         bug.
20598         Reported by Nelson H. F. Beebe.
20599
20600         gnulib-tool: work with NetBSD /bin/sh
20601         * gnulib-tool (func_cache_var, func_cache_lookup_module)
20602         (func_get_description, func_get_comment, func_get_status)
20603         (func_get_notice, func_get_applicability, func_get_filelist)
20604         (func_get_dependencies, func_get_autoconf_early_snippet)
20605         (func_get_autoconf_snippet, func_get_automake_snippet)
20606         (func_get_include_directive, func_get_link_directive)
20607         (func_get_license, func_get_maintainer, func_import): Avoid
20608         shell syntax errors from parsing syntax extensions.
20609
20610 2010-09-09  Bruno Haible  <bruno@clisp.org>
20611
20612         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20613         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
20614         a reliable way to determine whether the 'alias' command works.
20615
20616 2010-09-08  Jim Meyering  <meyering@redhat.com>
20617
20618         init.sh: penalize a set-x-impaired shell; don't disqualify it
20619         * tests/init.sh: Too many shells corrupt application stderr when
20620         you set -x, so we can't afford to disqualify them, since at least
20621         on Irix-6.5, that would disqualify all bourne shells.
20622         Instead, use a two-pass approach.
20623         On the first pass, try to find a shell that meets the stricter
20624         condition that set -x does not corrupt stderr.
20625         If no shell meets the stricter condition, retest each candidate
20626         shell, but without that extra condition.  Finally, when
20627         VERBOSE=yes is requested and set -x might cause trouble, simply
20628         issue a warning and refrain from enabling debug output.
20629
20630 2010-09-08  Eric Blake  <eblake@redhat.com>
20631
20632         unsetenv: fix OpenBSD bug
20633         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
20634         * doc/posix-functions/unsetenv.texi (unsetenv): Update
20635         documentation.
20636         Reported by Jim Meyering.
20637
20638         strtod: work around IRIX 6.5 bug
20639         * lib/strtod.c (strtod): Reparse number on shorter string if
20640         exponent parse was invalid.
20641         * tests/test-strtod.c (main): Add check for "0x1p 2".
20642         Reported by Tom G. Christensen.
20643
20644         getopt: optimize previous patch
20645         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
20646         empty variable.  Speed up awk script.
20647         Reported by Paolo Bonzini.
20648
20649 2010-09-08  Jim Meyering  <meyering@redhat.com>
20650
20651         test.sh: disqualify shells for which set -x corrupts stderr
20652         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
20653         and OpenBSD 4.7.  They make it so with "set -x", environment settings
20654         appear in stderr output.  For example, this command:
20655             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
20656         prints "P=1" on those two systems:
20657
20658 2010-09-08  Bruno Haible  <bruno@clisp.org>
20659
20660         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20661         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
20662         commands, because some shells ignore redirections when there is an
20663         error in the command lookup.
20664         Reported by Eric Blake.
20665
20666 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
20667
20668         * lib/regex.h: Fix a mention of `regex_compile' (should be
20669         `re_compile_pattern').
20670         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
20671         (re_set_registers): Correct name of parameter in comment.
20672
20673         * doc/regex.texi: Add documentation for missing syntax flags.
20674         Remove commented-out documentation of defunct syntax option
20675         RE_NO_EMPTY_ALTS.
20676         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
20677         Add documentation of re_set_registers.
20678         Document trick to re-use a pattern buffer by setting fastmap manually.
20679         Update documentation of struct re_pattern_buffer per public members.
20680         Uncomment documentation of equivalence class operators and
20681         collating symbol operators, since they are now implemented,
20682         Explain leftmost-longest matching in relation to alternatives.
20683         Tidy documentation of substring matching.
20684         Remove POSIX documentation, which is done better in
20685         glibc, and refer the reader there. Keep BSD API documentation, as
20686         that is not readily available elsewhere.
20687
20688 2010-09-07  Eric Blake  <eblake@redhat.com>
20689
20690         getopt: handle POSIXLY_CORRECT set but not exported
20691         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
20692         export state of POSIXLY_CORRECT, due to bash set -o posix.
20693         Reported by Dustin J. Mitchell.
20694
20695 2010-09-05  Bruno Haible  <bruno@clisp.org>
20696
20697         gnulib-tool: Highlight the changed options.
20698         * gnulib-tool (func_usage): Display the --import, --add-import,
20699         --remove-import explanations in bold font.
20700
20701 2010-09-06  Karl Berry  <karl@gnu.org>
20702
20703         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
20704
20705 2010-09-05  Bruno Haible  <bruno@clisp.org>
20706
20707         uniwidth/width: Update comment.
20708         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
20709         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
20710
20711 2010-09-05  Bruno Haible  <bruno@clisp.org>
20712
20713         isinf, isnan: Relax license.
20714         * modules/isinf (License): Change from GPL to LGPL, with consent from
20715         Ben Pfaff.
20716         * modules/isnan (License): Likewise.
20717         Requested by Ludovic Courtès.
20718
20719 2010-09-04  Bruno Haible  <bruno@clisp.org>
20720
20721         gnulib-tool: Help migration from --import to --add-import or --update.
20722         * gnulib-tool: Emit a verbose error message when --import is used
20723         without any module name.
20724
20725 2010-09-04  Bruno Haible  <bruno@clisp.org>
20726
20727         Update doc about gnulib-tool.
20728         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
20729         'gnulib-tool --update' in more detail.
20730         Reported by Eric Blake.
20731
20732 2010-09-04  Bruno Haible  <bruno@clisp.org>
20733
20734         gnulib-tool: Change --import. New options --add/remove-import.
20735         * gnulib-tool: New options --add-import, --remove-import.
20736         (func_usage): Document them.
20737         (have_associative): Define always.
20738         (func_import): In import mode, don't merge the specified settings with
20739         the cached settings. Implement remove-import mode.
20740         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
20741         Explain when to use them versus --import.
20742         (Simple update): Use --add-import instead of --import.
20743         * NEWS: Mention the change.
20744
20745 2010-09-04  Bruno Haible  <bruno@clisp.org>
20746
20747         * doc/gnulib-tool.texi (Initial import): Update paragraph about
20748         separate gnulib.mk.
20749
20750 2010-09-04  Bruno Haible  <bruno@clisp.org>
20751
20752         gnulib-tool: Don't talk about CVS any more.
20753         * gnulib-tool (func_usage, func_import): Write "version control"
20754         instead of CVS.
20755
20756 2010-09-04  Jim Meyering  <meyering@redhat.com>
20757
20758         maint.mk: avoid obscure sc_copyright_check failure in coreutils
20759         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
20760         false positives (whose names may be ill-chosen) when searching
20761         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
20762         would cause a false-positive.
20763
20764         avoid coreutils "make distcheck" failure
20765         Coreutils tests with an absolute build directory name that contains
20766         a space.  Not quoting this directory name caused a failure.
20767         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
20768         * tests/test-vc-list-files-cvs.sh: Likewise.
20769
20770 2010-09-04  Bruno Haible  <bruno@clisp.org>
20771
20772         gnulib-tool: Avoid error when run in a package without Makefile.am.
20773         * gnulib-tool: When collecting the m4dirs in a package that does not
20774         have a Makefile.am, eliminate those directories that contain no
20775         gnulib-cache.m4. Fix expression that counts these directories.
20776
20777 2010-09-04  Bruno Haible  <bruno@clisp.org>
20778
20779         update-copyright test: Improve output when perl is missing or too old.
20780         * tests/test-update-copyright.sh: Move test of Perl version down after
20781         the test whether Perl exists. Provide an explanation relating Perl's
20782         error message to Automake's SKIP: message.
20783
20784 2010-09-04  Bruno Haible  <bruno@clisp.org>
20785
20786         Don't augment PATH in TESTS_ENVIRONMENT.
20787         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
20788         set abs_aux_dir instead of augmenting PATH.
20789         * modules/vc-list-files-tests (Makefile.am): Likewise.
20790         * tests/test-update-copyright.sh: Augment PATH here.
20791         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
20792         path_prepend_.
20793         * tests/test-vc-list-files-git.sh: Likewise.
20794
20795 2010-09-04  Jim Meyering  <meyering@redhat.com>
20796
20797         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
20798         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
20799
20800 2010-09-04  Bruno Haible  <bruno@clisp.org>
20801
20802         strdup: Fix compilation error in C++ mode.
20803         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
20804         the macro.
20805
20806 2010-09-04  Bruno Haible  <bruno@clisp.org>
20807
20808         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
20809         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
20810         macro into a function.
20811         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20812
20813 2010-09-04  Bruno Haible  <bruno@clisp.org>
20814
20815         Set PATH_SEPARATOR the same way autoconf does.
20816         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
20817         the value of PATH_SEPARATOR the same way autoconf-generated configure
20818         scripts do.
20819         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
20820         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
20821
20822 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20823
20824         Set PATH_SEPARATOR the same way autoconf does.
20825         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
20826         the same way autoconf-generated configure scripts do.
20827         * posix-modules: Likewise.
20828
20829 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20830
20831         hash: fix safe_hasher const typo
20832         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
20833         const; otherwise, there is a type error later.
20834
20835 2010-09-02  Jim Meyering  <meyering@redhat.com>
20836
20837         test-update-copyright.sh: require perl 5.8.0
20838         * tests/test-update-copyright.sh: Require 5.8.0,
20839         which Tom G. Christensen has confirmed is adequate,
20840         while 5.6.1 is not.
20841
20842 2010-09-02  Eric Blake  <eblake@redhat.com>
20843
20844         tests: init.sh improvements for re-exec'ing with zsh
20845         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
20846         -vx through shell re-exec.
20847         Reported by Tom G. Christensen.
20848
20849         wctype: fix typo in previous commit
20850         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
20851         Reported by Ludovic Courtès.
20852
20853 2010-09-02  Jim Meyering  <meyering@redhat.com>
20854
20855         test-update-copyright.sh: skip test if Perl is too old
20856         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
20857         Reported by Tom G. Christensen.
20858
20859 2010-09-02  Bruno Haible  <bruno@clisp.org>
20860
20861         wctype: Avoid compilation error on IRIX 6.5.30.
20862         * lib/wctype.in.h (iswblank): Declare with a replacement if
20863         REPLACE_ISWBLANK is set.
20864         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
20865         declared. Set REPLACE_ISWBLANK.
20866         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
20867         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
20868         * doc/posix-headers/wctype.texi: Likewise.
20869         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20870
20871 2010-09-01  Bruno Haible  <bruno@clisp.org>
20872
20873         New module 'socketlib'.
20874         * modules/socketlib: New file.
20875         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
20876         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
20877         * modules/sockets (Depends-on): Add socketlib.
20878         Suggested by Sam Steingold <sds@gnu.org>.
20879
20880 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
20881
20882         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
20883
20884         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
20885         when one needs search access to a directory but not read access.
20886         On systems where it is available, it works in some cases where
20887         O_RDONLY does not, namely on directories that are searchable but
20888         not readable, and which need only to be searchable.  If O_SEARCH
20889         is not available, fall back to the traditional method of using
20890         O_RDONLY.
20891
20892         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
20893         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
20894         when opening a directory that needs only to be searchable.
20895         * lib/chdir-safer.c (chdir_no_follow): Likewise.
20896         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
20897         * lib/openat-proc.c (openat_proc_name): Likewise.
20898         * lib/openat.c (openat_needs_fchdir): Likewise.
20899         * lib/save-cwd.c (save_cwd): Likewise.
20900         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
20901
20902 2010-08-28  Bruno Haible  <bruno@clisp.org>
20903
20904         New module 'host-cpu-c-abi'.
20905         * modules/host-cpu-c-abi: New file.
20906         * m4/host-cpu-c-abi.m4: New file, based on part of
20907         clisp/src/m4/general.m4.
20908         Requested by Sam Steingold <sds@gnu.org>.
20909
20910 2010-08-31  Eric Blake  <eblake@redhat.com>
20911         and Jim Meyering  <meyering@redhat.com>
20912
20913         hash: factor, and guard against misbehaving hasher function
20914         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
20915         of table->hasher's return value.  Also protect against a hash value
20916         so large that adding it to table->bucket results in a NULL pointer.
20917         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
20918         Use it in place of open-coded check-and-abort.
20919
20920 2010-08-30  Bruno Haible  <bruno@clisp.org>
20921
20922         hash: silence spurious clang warning
20923         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
20924         Reported by Eric Blake.
20925
20926 2010-08-30  Eric Blake  <eblake@redhat.com>
20927
20928         strstr, memmem, strcasestr: avoid leaked shell message
20929         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
20930         FreeBSD.
20931         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20932         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20933
20934         tests: silence clang warning
20935         * tests/test-malloca.c (do_allocation): Avoid dead store.
20936
20937 2010-08-29  Bruno Haible  <bruno@clisp.org>
20938
20939         gettext: Fix recent mistake.
20940         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
20941
20942 2010-08-29  Bruno Haible  <bruno@clisp.org>
20943
20944         selinux-h: Offer a --without-selinux option.
20945         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
20946         --without-selinux was specified, skip all tests and define
20947         HAVE_SELINUX_SELINUX_H to 0.
20948         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
20949         set LIB_SELINUX to empty.
20950         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
20951         gl_LIBSELINUX. If --without-selinux was specified, replace
20952         selinux/context.h.
20953         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
20954
20955 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20956             Bruno Haible  <bruno@clisp.org>
20957
20958         Make the module 'realloc-gnu' work again on AIX and OSF/1.
20959         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
20960         of HAVE_REALLOC.
20961         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
20962         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
20963         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
20964         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20965
20966 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20967             Bruno Haible  <bruno@clisp.org>
20968
20969         Make the module 'calloc-gnu' work again on AIX and OSF/1.
20970         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
20971         HAVE_CALLOC.
20972         * lib/xmalloc.c: Update accordingly.
20973         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
20974         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
20975         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
20976
20977 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20978             Bruno Haible  <bruno@clisp.org>
20979
20980         Make the module 'malloc-gnu' work again on AIX and OSF/1.
20981         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
20982         HAVE_MALLOC.
20983         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
20984         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
20985         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20986
20987 2010-08-29  Bruno Haible  <bruno@clisp.org>
20988
20989         Update modules list.
20990         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
20991         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
20992         (String handling <string.h>): Add astrxfrm.
20993         (File system functions): Add readlinkat.
20994
20995 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20996
20997         Tests for module 'realloc-gnu'.
20998         * modules/realloc-gnu-tests: New file.
20999         * tests/test-realloc-gnu.c: New file.
21000
21001         Tests for module 'calloc-gnu'.
21002         * modules/calloc-gnu-tests: New file.
21003         * tests/test-calloc-gnu.c: New file.
21004
21005         Tests for module 'malloc-gnu'.
21006         * modules/malloc-gnu-tests: New file.
21007         * tests/test-malloc-gnu.c: New file.
21008
21009 2010-08-28  Bruno Haible  <bruno@clisp.org>
21010
21011         Rename module 'realloc' -> 'realloc-gnu'.
21012         * modules/realloc-gnu: New file, copied from modules/realloc.
21013         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
21014         obsolete.
21015         * modules/mgetgroups (Depends-on): Update.
21016         * doc/posix-functions/realloc.texi: Update.
21017         * NEWS: Mention the change.
21018
21019         Rename module 'calloc' -> 'calloc-gnu'.
21020         * modules/calloc-gnu: New file, copied from modules/calloc.
21021         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
21022         obsolete.
21023         * doc/posix-functions/calloc.texi: Update.
21024         * NEWS: Mention the change.
21025
21026         Rename module 'malloc' -> 'malloc-gnu'.
21027         * modules/malloc-gnu: New file, copied from modules/malloc.
21028         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
21029         obsolete.
21030         * modules/argp (Depends-on): Update.
21031         * modules/regex (Depends-on): Update.
21032         * doc/posix-functions/malloc.texi: Update.
21033         * NEWS: Mention the change.
21034
21035 2010-08-28  Eric Blake  <eblake@redhat.com>
21036
21037         pread, pwrite: add missing dependency
21038         * modules/pread (Depends-on): Add extensions.
21039         * modules/pwrite (Depends-on): Likewise.
21040
21041 2010-08-28  Bruno Haible  <bruno@clisp.org>
21042
21043         unistr/u*-strchr: Fix tests dependencies.
21044         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
21045         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
21046         Reported by Ian Beckwith <ianb@erislabs.net>.
21047
21048 2010-08-28  Bruno Haible  <bruno@clisp.org>
21049
21050         read-file: Don't occupy too much unused memory.
21051         * lib/read-file.c (fread_file): Shrink the buffer at the end.
21052
21053 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
21054             Eric Blake  <eblake@redhat.com>
21055             Bruno Haible  <bruno@clisp.org>
21056
21057         read-file: Avoid memory reallocations with regular files.
21058         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
21059         (fread_file): With regular files, use the remaining length as the
21060         initial buffer size.  Check against overflow.
21061         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
21062         sys_stat.
21063
21064 2010-08-28  Bruno Haible  <bruno@clisp.org>
21065
21066         ftello: Relax license.
21067         * modules/ftello (License): Relax to LGPLv2+.
21068         Reported by Eric Blake.
21069
21070 2010-08-28  Bruno Haible  <bruno@clisp.org>
21071
21072         Avoid relocwrapper link errors due to gnulib replacement functions.
21073         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
21074         function.
21075         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21076
21077 2010-08-28  Bruno Haible  <bruno@clisp.org>
21078
21079         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
21080         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
21081         defined.
21082         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
21083         Suggested by Eric Blake.
21084
21085 2010-08-28  Bruno Haible  <bruno@clisp.org>
21086
21087         sys_socket, netdb: Ensure socklen_t gets defined.
21088         * modules/sys_socket (Depends-on): Add socklen.
21089         * modules/netdb (Depends-on): Likewise.
21090         * modules/getaddrinfo (Depends-on): Remove socklen.
21091         * modules/getsockopt (Depends-on): Likewise.
21092         * modules/setsockopt (Depends-on): Likewise.
21093         * tests/test-sys_socket.c: Check that socklen_t is defined.
21094         * tests/test-netdb.c: Likewise.
21095         * m4/socklen.m4: Update comments.
21096         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21097
21098 2010-08-27  Eric Blake  <eblake@redhat.com>
21099
21100         login_tty: add missing dependency
21101         * modules/login_tty (Depends-on): Add pty.
21102
21103 2010-08-26  Eric Blake  <eblake@redhat.com>
21104
21105         lib-symbol-versions: fix m4 quoting
21106         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
21107         format for AC_LINK_IFELSE.
21108
21109         glob: fix compile test
21110         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
21111
21112         btowc: fix missing file
21113         * modules/btowc (Files): Also ship locale-fr.m4.
21114
21115         lseek: fix link test
21116         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
21117         AC_LINK_IFELSE.
21118
21119         include_next: silence autoconf 2.68 warning
21120         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
21121         AC_COMPILE_IFELSE as special.
21122         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
21123         autoconf < 2.68.
21124
21125         acl: fix compilation test
21126         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
21127         AC_COMPILE_IFELSE.
21128
21129 2010-08-26  Bruno Haible  <bruno@clisp.org>
21130
21131         Modernize AC_TRY_RUN invocations.
21132         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
21133         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
21134         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
21135         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
21136         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
21137         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21138         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
21139         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
21140         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21141         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21142         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
21143         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
21144         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
21145         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
21146         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
21147         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
21148         gl_MBRLEN_NUL_RETVAL): Likewise.
21149         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
21150         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
21151         Likewise.
21152         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
21153         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
21154         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
21155         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
21156         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
21157         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
21158         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
21159         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
21160         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
21161         Likewise.
21162         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
21163         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
21164         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
21165         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21166         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21167         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
21168         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
21169         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
21170         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
21171         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
21172
21173 2010-08-26  Bruno Haible  <bruno@clisp.org>
21174
21175         Modernize AC_TRY_LINK invocations.
21176         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
21177         AC_TRY_LINK.
21178         * m4/argp.m4 (gl_ARGP): Likewise.
21179         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
21180         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
21181         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
21182         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
21183         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
21184         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
21185         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
21186         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
21187         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
21188         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
21189         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
21190         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
21191         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
21192         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21193         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
21194         * m4/hostent.m4 (gl_HOSTENT): Likewise.
21195         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21196         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
21197         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
21198         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
21199         Likewise.
21200         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
21201         Likewise.
21202         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
21203         Likewise.
21204         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
21205         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
21206         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
21207         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
21208         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
21209         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21210         * m4/servent.m4 (gl_SERVENT): Likewise.
21211         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
21212         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
21213         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
21214         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
21215         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21216         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
21217         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
21218         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21219         * modules/tsearch-tests (configure.ac): Likewise.
21220
21221 2010-08-26  Bruno Haible  <bruno@clisp.org>
21222
21223         Modernize AC_TRY_COMPILE invocations.
21224         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
21225         AC_TRY_COMPILE.
21226         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
21227         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
21228         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
21229         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
21230         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
21231         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
21232         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
21233         * m4/lock.m4 (gl_LOCK): Likewise.
21234         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
21235         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
21236         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
21237         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
21238         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
21239         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
21240         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
21241         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
21242         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
21243         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
21244         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
21245         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
21246         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
21247         extraneous semicolon.
21248
21249 2010-08-26  Jim Meyering  <meyering@redhat.com>
21250
21251         stat-time: relax license LGPL
21252         * modules/stat-time (License): Change from GPL to LGPL,
21253         with consent from all contributors, for use in libguile.
21254         Requested by Ludovic Courtès.
21255
21256 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
21257
21258         poll: return immediately on POLLHUP.
21259         * lib/poll.c (poll): Always set timeout before wait_timeout is
21260         computed.
21261
21262 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21263
21264         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
21265         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
21266         rmdir ("dir/.//"), unlinkat.
21267
21268 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21269
21270         stdbool: avoid spurious failure with modern xlc
21271         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
21272
21273 2010-08-24  Bruno Haible  <bruno@clisp.org>
21274
21275         getloadavg: simplify code
21276         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
21277         gl_have_func. Update comments.
21278
21279 2010-08-24  Eric Blake  <eblake@redhat.com>
21280
21281         getloadavg: don't define SVR4 on cygwin
21282         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
21283         only define SVR4 when -lkvm is required.
21284         Reported by Yaakov Selkowitz.
21285
21286 2010-08-24  Bruno Haible  <bruno@clisp.org>
21287
21288         priv-set: fix comment
21289         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
21290
21291 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21292
21293         priv-set: fix comments
21294         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
21295         to match code, as suggested by David Bartley in:
21296         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
21297
21298 2010-08-23  Eric Blake  <eblake@redhat.com>
21299
21300         stdbool: avoid rejecting clang
21301         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
21302         * tests/test-stdbool.c: Enable more tests if using the system
21303         <stdbool.h> instead of the gnulib replacement.
21304         (main): Move xlc bug test to a runtime test for all compilers.
21305         Reported by Anders Kaseorg.
21306
21307         argz: fix shell quoting issue
21308         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
21309         Reported by Charles Wilson.
21310
21311 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
21312             Erik Faye-Lund <kusmabite@gmail.com>
21313
21314         poll, select: handle ERROR_BROKEN_PIPE.
21315         * lib/poll.c (win32_compute_revents): Return POLLHUP when
21316         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21317         * lib/select.c (win32_compute_revents): Do not mark a pipe
21318         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21319
21320 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
21321
21322         fts: allow compilation with C++
21323         * lib/fts_.h: Specify extern "C" linkage with C++.
21324
21325 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21326
21327         Fix gnulib-tool sed script de-commentation for AIX sed.
21328         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
21329         sed.
21330
21331 2010-08-17  Eric Blake  <eblake@redhat.com>
21332
21333         test-stddef: test for (some) offsetof bugs
21334         * tests/test-stddef.c: Enhance test to ensure correct type of
21335         offsetof.
21336         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
21337         that we are not fixing at this time.
21338
21339 2010-08-15  Bruno Haible  <bruno@clisp.org>
21340
21341         stpncpy: Allow stpncpy to be defined as a macro.
21342         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
21343         if it's already correctly declared.
21344         * lib/string.in.h (stpncpy): Undefine before redefining.
21345         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
21346
21347 2010-08-14  Bruno Haible  <bruno@clisp.org>
21348
21349         Rename module 'memxfrm' to 'amemxfrm'.
21350         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
21351         (amemxfrm): Renamed from memxfrm.
21352         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
21353         (amemxfrm): Renamed from memxfrm.
21354         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
21355         * NEWS: Mention the change.
21356         * MODULES.html.sh (String handling <string.h>): Update.
21357         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
21358         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
21359         * lib/unicase/u16-casexfrm.c: Likewise.
21360         * lib/unicase/u32-casexfrm.c: Likewise.
21361         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
21362         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
21363         * lib/uninorm/u16-normxfrm.c: Likewise.
21364         * lib/uninorm/u32-normxfrm.c: Likewise.
21365         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
21366         memxfrm.
21367         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
21368         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
21369         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
21370         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
21371         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
21372         Suggested by Paul Eggert.
21373
21374 2010-08-14  Bruno Haible  <bruno@clisp.org>
21375
21376         Tests for module 'astrxfrm'.
21377         * modules/astrxfrm-tests: New file.
21378         * tests/test-astrxfrm.c: New file.
21379
21380         New module 'astrxfrm'.
21381         * lib/astrxfrm.h: New file.
21382         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
21383         * modules/astrxfrm: New file.
21384
21385 2010-08-14  Reuben Thomas <rrt@sc3d.org>
21386
21387         regex: Tweak doc.
21388         * doc/regex.texi (Overview): Don't mention regex.c.
21389         (GNU Regular Expression Compiling): Likewise.
21390         (Match-end-of-line Operator): Mention 'not_eol'.
21391
21392 2010-08-14  Brian Gough  <bjg@gnu.org>
21393             Bruno Haible  <bruno@clisp.org>
21394
21395         git-merge-changelog: add doc relating to use with bzr and hg.
21396         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
21397
21398 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
21399
21400         pthread: fix pthread.h creation for srcdir != builddir
21401         * modules/pthread (Makefile.am): Fix the rule to work also in a
21402         non-srcdir build.
21403
21404 2010-08-13  Karl Berry  <karl@gnu.org>
21405
21406         * doc/regex.texi (Predefined Syntaxes): @smallexample.
21407         * doc/posix-*/*: force line break before @url of POSIX
21408         specifications.
21409         Suggested by Werner Lemberg.
21410
21411 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
21412
21413         strtod: fix const diagnostic
21414         * lib/strtod.c (strtod): Don't assign const char * to char *,
21415         as this elicits a warning from GCC when warnings are enabled.
21416
21417 2010-08-10  Pádraig Brady <P@draigbrady.com>
21418         and Eric Blake  <eblake@redhat.com>
21419
21420         copy-acl: ignore ENOTSUP on HP-UX
21421         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
21422         so that it is available for HP-UX.
21423         * lib/copy-acl.c (qcopy_acl): Use it.
21424         Reported by Patrick M. Callahan.
21425
21426 2010-08-10  Eric Blake  <eblake@redhat.com>
21427
21428         open, chown: relax license
21429         * modules/open (License): Change to LGPLv2+, with consent by all
21430         authors, for use in augeas.
21431         * modules/chown (License): Likewise.
21432         * modules/lchown (Likewise): Likewise.
21433         Requested by Adam Stokes.
21434
21435 2010-08-09  Karl Berry  <karl@gnu.org>
21436
21437         * build-aux/ar-lib: new file, import from Automake.
21438         * config/srclist.txt: autocheck for updates.
21439
21440 2010-08-09  Eric Blake  <eblake@redhat.com>
21441
21442         readlinkat: adjust client modules
21443         * modules/areadlinkat (Depends-on): Use readlinkat, not
21444         symlinkat.
21445         * modules/areadlinkat-with-size (Depends-on): Likewise.
21446
21447         mknod: be more vocal about danger of running tests as root
21448         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
21449         root, since that is just asking for problems.
21450         Suggested by Bruno Haible, based on a report by Rainer Tammer.
21451
21452         readlinkat: split into its own module
21453         * modules/symlinkat: Split readlinkat...
21454         * modules/readlinkat: ...into separate module.
21455         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
21456         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
21457         * lib/symlinkat.c (readlinkat): Move...
21458         * lib/readlinkat.c: ...into new file.
21459         * modules/symlinkat-tests: Split readlinkat test...
21460         * modules/readlinkat-tests: ...into separate module.
21461         * tests/test-symlinkat.c: Split...
21462         * tests/test-readlinkat.c: ...into new file.
21463         * NEWS: Document the split.
21464         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
21465         * lib/unistd.in.h (readlinkat): Likewise.
21466         Suggested by Bruno Haible.
21467
21468 2010-08-08  Bruno Haible  <bruno@clisp.org>
21469
21470         memxfrm: Speed up.
21471         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
21472         that usually only one call to strxfrm is necessary for each string
21473         part.
21474         Reported by Paul Eggert <eggert@cs.ucla.edu>.
21475
21476 2010-08-07  Karl Berry  <karl@gnu.org>
21477
21478         * doc/posix-headers/limits.texi,
21479         * doc/posix-functions/malloc.texi,
21480         * doc/posix-functions/strsignal.texi: missing @item.
21481         * doc/ld-version-script.texi: spurious leading i.
21482         * doc/regex.texi (Interval Operators): no commas inside @var.
21483
21484 2010-08-01  Bruno Haible  <bruno@clisp.org>
21485
21486         Integrate the regex documentation.
21487         * doc/gnulib.texi: Define 'cn' index.
21488         (Regular expressions): New a chapter that includes regex.texi and
21489         regexprops-generic.texi.
21490         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
21491         syntax.
21492
21493         Whitespace cleanup.
21494         * doc/regex.texi: Remove trailing spaces.
21495
21496         Add regex documentation.
21497         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
21498         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
21499         Written by Kathy A. Hargreaves and Karl Berry.
21500
21501 2010-08-01  Bruno Haible  <bruno@clisp.org>
21502
21503         link: Update documentation.
21504         * doc/posix-functions/link.texi: Update regarding Solaris.
21505
21506 2010-07-31  Bruno Haible  <bruno@clisp.org>
21507
21508         Update modules list.
21509         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
21510         (String handling <string.h>): Add memcmp2, memxfrm.
21511         (Container data structures): Add xlist, xsublist, xoset.
21512         (Core language properties): Add alignof, unused-parameter.
21513         (Process control, Numeric conversion functions <stdlib.h>): Renamed
21514         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
21515         (Unibyte characters <ctype.h>): New section.
21516         (String handling <string.h>): New section.
21517         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
21518         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
21519         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
21520         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
21521         tan, tanh, tanl, y0, y1, yn.
21522         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
21523         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
21524         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
21525         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
21526         unlockpt, vdprintf, vdprintf-posix.
21527         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
21528         (File system functions): Add concat-filename, sys_file, sys_ioctl,
21529         xconcat-filename.
21530         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
21531         getdtablesize, pipe2, pipe2-safer.
21532         (Security): New section.
21533         (Networking functions): Add accept4.
21534         (Signal handling): Add sigpipe.
21535         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
21536         mbmemcasecoll.
21537         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
21538         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
21539         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
21540         pipe-filter-ii.
21541         (Misc): Add argp-version-etc, login_tty, parse-duration.
21542
21543 2010-07-31  Bruno Haible  <bruno@clisp.org>
21544
21545         Improve doc in MODULES.html.
21546         * modules/linkat (Description): Add the word "function".
21547         * modules/mkfifo (Description): Likewise.
21548         * modules/mknod (Description): Likewise.
21549         * modules/remove (Description): Likewise.
21550         * modules/renameat (Description): Likewise.
21551         * modules/stat (Description): Likewise.
21552         * modules/symlink (Description): Likewise.
21553         * modules/unlink (Description): Likewise.
21554
21555 2010-07-31  Bruno Haible  <bruno@clisp.org>
21556
21557         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
21558         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
21559         option --enable/disable-c++ instead of --enable/disable-cxx.
21560         * NEWS: Mention the change.
21561
21562 2010-07-31  Bruno Haible  <bruno@clisp.org>
21563
21564         readlink, areadlink: Relax test a bit.
21565         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
21566         alternative to ENOTDIR.
21567         * tests/test-areadlink.h (test_areadlink): Likewise.
21568         Reported by Rainer Tammer.
21569
21570 2010-07-31  Bruno Haible  <bruno@clisp.org>
21571
21572         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
21573         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
21574         character, perform the search using U_STRCHR.
21575         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
21576         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
21577         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
21578         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
21579         Suggested by Paolo Bonzini.
21580
21581 2010-07-31  Bruno Haible  <bruno@clisp.org>
21582
21583         unistr/u*-strstr: Fix dependencies.
21584         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
21585         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
21586         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
21587
21588 2010-07-31  Bruno Haible  <bruno@clisp.org>
21589
21590         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
21591         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
21592         the beginning of the loop.
21593         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
21594         cases in 'switch' statement.
21595
21596         unistr/u8-strchr: Fix several bugs.
21597         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
21598         the string. When not found, return NULL, not a pointer near the end.
21599
21600         More tests for unistr/u8-strchr.
21601         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
21602         that the function does not read past the first occurrence of the byte
21603         being searched.
21604         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
21605         * tests/unistr/test-u16-strchr.c (main): New function.
21606         * tests/unistr/test-u32-strchr.c (main): New function.
21607
21608 2010-07-31  Bruno Haible  <bruno@clisp.org>
21609
21610         posix-modules: Ignore backup files of documentation files.
21611         * posix-modules: grep only through files named *.texi.
21612
21613 2010-07-31  Bruno Haible  <bruno@clisp.org>
21614
21615         symlinkat: Fix documentation.
21616         * doc/posix-functions/readlinkat.texi: Fix module name.
21617
21618 2010-07-31  Bruno Haible  <bruno@clisp.org>
21619
21620         fchownat: Replace also when chown has the trailing slash bug.
21621         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
21622         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
21623         introduced on 2010-04-10.
21624         Reported by Rainer Tammer.
21625
21626 2010-07-31  Bruno Haible  <bruno@clisp.org>
21627
21628         linkat: Work around AIX 7.1 bug.
21629         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
21630         whether linkat handles trailing slash correctly. If not, replace linkat
21631         and define LINKAT_TRAILING_SLASH_BUG.
21632         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
21633         check whether (fd1,file1) points to a directory if file1 or file2 ends
21634         in a slash. Code taken from lib/link.c.
21635         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
21636         Reported by Rainer Tammer.
21637
21638 2010-07-31  Bruno Haible  <bruno@clisp.org>
21639
21640         Correctly determine whether pow is available in libc on AIX 7 with xlc.
21641         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
21642         This disables an xlc optimization that was causing wrong test results.
21643         Reported by Rainer Tammer.
21644
21645 2010-07-31  Bruno Haible  <bruno@clisp.org>
21646
21647         iconv: Work around AIX 6.1..7.1 bug.
21648         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
21649         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
21650         cross-compiling, guess no on all versions of AIX.
21651         Reported by Rainer Tammer.
21652
21653 2010-07-31  Bruno Haible  <bruno@clisp.org>
21654
21655         readlink: Relax test a bit.
21656         * tests/test-readlink.h (test_readlink): Allow different errno value
21657         when readlink is called with a file name that ends in / and refers to
21658         a file.
21659         Suggested by Eric Blake.
21660         Reported by Rainer Tammer.
21661
21662 2010-07-31  Bruno Haible  <bruno@clisp.org>
21663
21664         copysign: Does not require -lm on glibc systems.
21665         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
21666         gl_COMMON_DOUBLE_MATHFUNC.
21667         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
21668
21669 2010-07-31  Bruno Haible  <bruno@clisp.org>
21670
21671         duplocale: Work around AIX 7.1 bug.
21672         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
21673         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
21674         * lib/duplocale.c (rpl_duplocale): Update comment.
21675         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
21676         Reported by Rainer Tammer.
21677
21678 2010-07-30  Bruno Haible  <bruno@clisp.org>
21679
21680         dirfd: Avoid link error on AIX 7.1.
21681         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
21682         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
21683         exist, set REPLACE_DIRFD.
21684         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
21685         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
21686         * doc/posix-functions/dirfd.texi: Update.
21687         Reported by Rainer Tammer.
21688
21689 2010-07-30  Eric Blake  <eblake@redhat.com>
21690
21691         strtod: next round of AIX fixes
21692         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
21693         exponent.
21694         * tests/test-strtod.c (main): Enhance tests.
21695         * doc/posix-functions/strtod.texi (strtod): Document next bug.
21696         Reported by Rainer Tammer.
21697
21698         futimens: fix configure check
21699         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
21700         Reported by Bruno Haible.
21701
21702 2010-07-30  Bruno Haible  <bruno@clisp.org>
21703
21704         getline: Update regarding AIX.
21705         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
21706         Reported by Rainer Tammer.
21707
21708 2010-07-30  Bruno Haible  <bruno@clisp.org>
21709
21710         wcwidth: Drop replacement on AIX 7.
21711         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
21712         AIX 7.
21713         Reported by Rainer Tammer.
21714
21715 2010-07-30  Bruno Haible  <bruno@clisp.org>
21716
21717         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
21718         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
21719         a 'char *'.
21720         Reported by Rainer Tammer.
21721
21722 2010-07-30  Bruno Haible  <bruno@clisp.org>
21723
21724         unlink: Update regarding AIX.
21725         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
21726         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
21727         Reported by Rainer Tammer.
21728
21729 2010-07-30  Bruno Haible  <bruno@clisp.org>
21730
21731         symlink: Update regarding AIX.
21732         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
21733         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
21734         Reported by Rainer Tammer.
21735
21736 2010-07-30  Bruno Haible  <bruno@clisp.org>
21737
21738         strndup: Update regarding AIX.
21739         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
21740         AIX 7.
21741         Reported by Rainer Tammer.
21742
21743 2010-07-30  Bruno Haible  <bruno@clisp.org>
21744
21745         stat: Update regarding AIX.
21746         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
21747         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
21748         Reported by Rainer Tammer.
21749
21750 2010-07-30  Bruno Haible  <bruno@clisp.org>
21751
21752         truncl: Fix autoconf test.
21753         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
21754         whether truncl works.
21755         Reported by Rainer Tammer.
21756
21757 2010-07-30  Bruno Haible  <bruno@clisp.org>
21758
21759         round: Update regarding AIX.
21760         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
21761         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
21762         Reported by Rainer Tammer.
21763
21764 2010-07-30  Bruno Haible  <bruno@clisp.org>
21765
21766         rename: Update regarding AIX.
21767         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
21768         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
21769         Reported by Rainer Tammer.
21770
21771 2010-07-30  Bruno Haible  <bruno@clisp.org>
21772
21773         printf.m4: Update regarding AIX.
21774         * m4/printf.m4: Update comments regarding AIX.
21775         Reported by Rainer Tammer.
21776
21777 2010-07-30  Bruno Haible  <bruno@clisp.org>
21778
21779         iconv: Update regarding AIX.
21780         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
21781         AIX 7.
21782         Reported by Rainer Tammer.
21783
21784 2010-07-30  Bruno Haible  <bruno@clisp.org>
21785
21786         getopt: Update regarding AIX.
21787         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
21788         no on AIX.
21789         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
21790         Reported by Rainer Tammer.
21791
21792 2010-07-30  Bruno Haible  <bruno@clisp.org>
21793
21794         ldexpl; Update regarding AIX.
21795         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
21796         on AIX 7.
21797         Reported by Rainer Tammer.
21798
21799 2010-07-30  Bruno Haible  <bruno@clisp.org>
21800
21801         frexpl: Update regarding AIX.
21802         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
21803         on AIX 7.
21804         Reported by Rainer Tammer.
21805
21806 2010-07-30  Bruno Haible  <bruno@clisp.org>
21807
21808         open, fopen: Update regarding AIX.
21809         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
21810         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21811         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
21812         * doc/posix-functions/fopen.texi: Likewise.
21813         Reported by Rainer Tammer.
21814
21815 2010-07-30  Bruno Haible  <bruno@clisp.org>
21816
21817         chown: Update doc regarding AIX.
21818         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
21819         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
21820         Reported by Rainer Tammer.
21821
21822 2010-07-30  Eric Blake  <eblake@redhat.com>
21823
21824         strtod: fix bug in replacement function on AIX
21825         * lib/strtod.c (strtod): Special case broken "0x" parse in
21826         underlying strtod.
21827         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
21828         * doc/posix-functions/strtod.texi (strtod): Likewise.
21829         Reported by Rainer Tammer.
21830
21831 2010-07-30  Bruno Haible  <bruno@clisp.org>
21832
21833         mbrlen: Fix cross-compilation guess for AIX.
21834         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
21835         guess. Leftover from 2008-12-22.
21836
21837 2010-07-30  Bruno Haible  <bruno@clisp.org>
21838
21839         mbrtowc: Fix cross-compilation guess for AIX.
21840         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
21841         guess. Leftover from 2008-12-21.
21842
21843 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
21844
21845         init.sh: work around trap limitation of some shells
21846         * tests/init.sh (setup_): Move exit trap outside of shell function.
21847
21848 2010-07-29  Eric Blake  <eblake@redhat.com>
21849
21850         strtod: aid debugging
21851         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
21852         understanding why strtod is rejected.
21853
21854 2010-07-28  Bruno Haible  <bruno@clisp.org>
21855
21856         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
21857         * lib/unistr/u8-chr.c: Include <string.h>.
21858         * tests/unistr/test-u8-chr.c: Likewise.
21859         * tests/unistr/test-u16-chr.c: Likewise.
21860         * tests/unistr/test-u32-chr.c: Likewise.
21861         * tests/unistr/test-u8-strchr.c: Likewise.
21862         * tests/unistr/test-u16-strchr.c: Likewise.
21863         * tests/unistr/test-u32-strchr.c: Likewise.
21864         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
21865         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
21866         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
21867         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
21868
21869 2010-07-28  Bruno Haible  <bruno@clisp.org>
21870
21871         Use spaces for indentation, not tabs.
21872         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21873
21874 2010-07-27  Bruno Haible  <bruno@clisp.org>
21875
21876         mbspcasecmp: Fix function specification.
21877         * lib/string.in.h (mbspcasecmp): Fix specification comment.
21878         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
21879         Reported by Eric Blake <eblake@redhat.com>.
21880
21881 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
21882
21883         timespec: use cast and not conditional, as truncation isn't possible
21884         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
21885         instead of a conditional.  Comment about the situation in more detail.
21886         This undoes most of the 2009-10-29 patch.
21887
21888 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
21889
21890         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
21891         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
21892         * lib/unistr/u8-strchr.c: Likewise.
21893         * modules/unistr/u8-chr: Depend on memchr.
21894
21895         unistr/u*-strchr: add tests
21896         * modules/unistr/u8-strchr-tests: New file.
21897         * modules/unistr/u16-strchr-tests: New file.
21898         * modules/unistr/u32-strchr-tests: New file.
21899         * tests/unistr/test-strchr.h: New file.
21900         * tests/unistr/test-u8-strchr.c: New file.
21901         * tests/unistr/test-u16-strchr.c: New file.
21902         * tests/unistr/test-u32-strchr.c: New file.
21903
21904         unistr/u*-chr: test multibyte sequences more
21905         * tests/unistr/test-chr.h: Do complete testing of the characters in the
21906         test vector.
21907         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
21908         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
21909         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
21910
21911         unistr/u*-chr: test multibyte sequences
21912         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
21913
21914         unistr/u*-chr: prepare for multibyte tests
21915         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
21916         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
21917         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
21918         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
21919         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
21920         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
21921
21922 2010-07-18  Bruno Haible  <bruno@clisp.org>
21923
21924         unistr/u8-strchr: Optimize non-ASCII argument case.
21925         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
21926         because the first byte often matches anyway.
21927         Reported by Pádraig Brady <P@draigbrady.com>.
21928
21929 2010-07-15  Karl Berry  <karl@gnu.org>
21930
21931         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
21932
21933 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
21934
21935         getcwd: on Solaris, work better if ancestors are inaccessible
21936         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
21937         buffer and size, try again with a large buffer.  This works better
21938         on Solaris, since its getcwd succeeds even if the path to the root
21939         is inaccessible, and this is helpful in common cases such as .zfs
21940         hidden directories.  Problem reported by J Chapman Flack in
21941         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
21942         Use system getcwd if it's declared, not merely if it's partly
21943         working; use the partly-working test only to avoid needless effort
21944         if the system getcwd fails.
21945         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
21946         comment that was already obsolete and is now even more obsolete.
21947         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
21948         now might call strdup.
21949
21950 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
21951
21952         pthread: Add enough so that coreutils/src/sort.c compiles.
21953         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
21954         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
21955         gnulib. Include <sched.h> and <time.h>, as per POSIX.
21956         Include <sys/types.h>, in case it defines pthread_t.
21957         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
21958         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
21959         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
21960         (pthread_rwlockattr_t, pthread_spinlock_t):
21961         New typedefs, if HAVE_PTHREAD_T is not defined.
21962         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
21963         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
21964         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
21965         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
21966         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
21967         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
21968         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
21969         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
21970         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
21971         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
21972         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
21973         New macros.
21974         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
21975         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
21976         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
21977         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
21978         (pthread_spin_unlock): New dummy functions.
21979         (pthread_create): Return EAGAIN; don't set errno.
21980         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
21981         require AC_C_INLINE.
21982         * modules/pthread (Depends-on): Add sched, time.
21983         (pthread.h): Use AM_V_GEN.
21984
21985 2010-07-13  Bruno Haible  <bruno@clisp.org>
21986
21987         striconveh: Don't malloc memory if the result buffer is sufficient.
21988         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
21989         buffer if its size is sufficient.
21990         Reported by Ludovic Courtès <ludo@gnu.org>.
21991
21992 2010-07-13  Bruno Haible  <bruno@clisp.org>
21993
21994         strtod: Add safety check.
21995         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
21996
21997 2010-07-12  Bruno Haible  <bruno@clisp.org>
21998
21999         Unify tests that set gl_cv_func_ldexpl_no_libm.
22000         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
22001         gl_FUNC_LDEXPL.
22002         (gl_FUNC_LDEXPL): Invoke it.
22003         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22004
22005 2010-07-12  Bruno Haible  <bruno@clisp.org>
22006
22007         Unify tests that set gl_cv_func_ldexp_no_libm.
22008         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
22009         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
22010         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
22011         (configure.ac): Simply invoke gl_FUNC_LDEXP.
22012         * modules/strtod (Files): Add m4/ldexp.m4.
22013
22014 2010-07-12  Bruno Haible  <bruno@clisp.org>
22015
22016         Unify tests that set gl_cv_func_frexpl_no_libm.
22017         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
22018         gl_FUNC_FREXPL_NO_LIBM.
22019         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
22020         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22021
22022 2010-07-12  Bruno Haible  <bruno@clisp.org>
22023
22024         Unify tests that set gl_cv_func_frexp_no_libm.
22025         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
22026         gl_FUNC_FREXP_NO_LIBM.
22027         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
22028         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
22029
22030 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
22031
22032         memcoll: clarify sizes versus lengths, document better, and tweak perf
22033         * lib/memcoll.c (strcoll_loop, memcoll0):
22034         Improve quality of descriptive comments.  Name variables
22035         consistently as to whether they are lengths (which do not include
22036         terminating null) versus sizes (which do).
22037         * lib/xmemcoll.c (xmemcoll0): Likewise.
22038         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
22039         returned when s1size == 0; this is easier to compile and saves
22040         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
22041
22042 2010-07-12  Bruno Haible  <bruno@clisp.org>
22043
22044         Tests for module '_Exit'.
22045         * modules/_Exit-tests: New file.
22046         * tests/test-_Exit.sh: New file.
22047         * tests/test-_Exit.c: New file.
22048
22049         New module '_Exit'.
22050         * lib/stdlib.in.h (__attribute__): New macro.
22051         (_Exit): New declaration.
22052         * lib/_Exit.c: New file.
22053         * m4/_Exit.m4: New file.
22054         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
22055         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
22056         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
22057         * modules/_Exit: New file.
22058         * tests/test-stdlib-c++.cc (_Exit): Check signature.
22059         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
22060
22061 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
22062
22063         strtod: make it more-accurate typically, and don't require libm
22064         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
22065         Include limits.h.  Don't include string.h.
22066         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
22067         (locale_isspace): New function, so that no casts are needed to
22068         check whether *s is a space.
22069         (ldexp): Provide an unused dummy if not available.
22070         (scale_radix_exp, parse_number, underlying_strtod): New functions.
22071         (strtod): Use them.  This implementation prefers to use the
22072         underlying strtod if available, falling back on our own code
22073         only to fix known bugs.  This is more likely to produce an
22074         accurate result.  Also, it avoids the use of libm functions.
22075         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
22076         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
22077         was absent, but it caused a test failure with coreutils.
22078         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
22079         with libm.
22080         * modules/strtod (Makefile.am, Link): libm is no longer needed.
22081         * modules/strtod-tests (Makefile.am): Likewise.
22082
22083 2010-07-11  Pádraig Brady  <P@draigBrady.com>
22084             Bruno Haible  <bruno@clisp.org>
22085
22086         unistr/u8-strchr: Optimize ASCII argument case.
22087         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
22088
22089 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
22090
22091         (x)memcoll: minor tweaks
22092         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
22093         is after the type that it qualifies.
22094         (memcoll0): Likewise.
22095         * lib/memcoll.h (memcoll0): Likewise.
22096         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
22097         * lib/xmemcoll.h (xmemcoll0): Likewise.
22098         * lib/memcoll.c (memcoll0): Correct the comment.  This function
22099         differs from memcoll in that the NUL byte is part of the argument.
22100         Omit the abort-checks, as performance is a real issue here.  Plus,
22101         the checks were wrong anyway (an off-by-one error).  Omit local
22102         variable 'diff', as it's a bit clearer that way.
22103         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
22104         no longer needed.
22105
22106 2010-07-08  Chen Guo <chenguo4@yahoo.com>
22107
22108         (x)memcoll: speedup when input is known to be NUL delimited
22109         * lib/memcoll.c: Include stdlib.
22110         (memcoll0): New function.
22111         (strcoll_loop): New function, refactored for use in both memcoll
22112         and memcoll0.
22113         * lib/memcoll.h (memcoll0): Add prototype.
22114         * lib/xmemcoll.c (xmemcoll0): New function.
22115         (collate_error): New function, refactored for use in both xmemcoll
22116         and xmemcoll0.
22117         * lib/xmemcoll.h (xmemcoll0): Add prototype.
22118         * m4/memcoll.m4: add inline invocation.
22119
22120 2010-07-06  Pádraig Brady  <P@draigBrady.com>
22121
22122         * build-aux/bootstrap: Remove any local translations
22123         from the translation project synchronization directory,
22124         so that local only translations are not distributed.
22125
22126 2010-07-04  Bruno Haible  <bruno@clisp.org>
22127
22128         fsusage: Clarify which code applies to which platforms.
22129         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
22130         platform.
22131         * lib/fsusage.c (get_fs_usage): Likewise.
22132
22133 2010-07-04  Bruno Haible  <bruno@clisp.org>
22134
22135         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
22136         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
22137         Reported by Martin Lambers <marlam@marlam.de>.
22138
22139 2010-07-04  Jim Meyering  <meyering@redhat.com>
22140
22141         hash: once again explicitly disallow insertion of NULL
22142         * lib/hash.c (hash_insert0): Reinstate just-removed test:
22143         inserting a NULL pointer cannot work with these functions.
22144         Add a comment with details.
22145         This reverts part of the 2010-07-01 commit, 5bef1a35
22146         "hash: extend module to deal with non-pointer keys".
22147
22148 2010-07-01  Bruno Haible  <bruno@clisp.org>
22149
22150         stdbool: Update doc.
22151         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
22152         Info from Christian Weisgerber <naddy@mips.inka.de>.
22153
22154 2010-07-01  Jim Meyering  <meyering@redhat.com>
22155
22156         hash: extend module to deal with non-pointer keys
22157         * lib/hash.c (hash_insert0): New interface, much like hash_insert
22158         but that allows insertion of non-pointer entries.
22159         Do not disallow an ENTRY value of NULL.
22160         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
22161         * lib/hash.h (hash_insert0): Declare.
22162
22163 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
22164
22165         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
22166         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
22167         not present (i.e. with autoconf 2.59 and when using gettextize, not
22168         gnulib), require AC_GNU_SOURCE instead.
22169
22170 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
22171
22172         idpriv-drop: Fix tests.
22173         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
22174         not to the test-idpriv-droptemp program.
22175
22176 2010-06-29  Bruno Haible  <bruno@clisp.org>
22177
22178         string: Fix syntax error with g++ 2.96.
22179         * lib/string.in.h (__pure__): Remove definition.
22180         (_GL_ATTRIBUTE_PURE): New macro.
22181         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
22182         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
22183         Reported by Christian Weisgerber <naddy@mips.inka.de>.
22184
22185 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
22186
22187         unitypes: Fix bug introduced on 2010-05-18.
22188         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
22189
22190 2010-06-22  Eric Blake  <eblake@redhat.com>
22191
22192         memmem: slight optimization
22193         * lib/str-two-way.h (critical_factorization): Update comments.
22194         Reduce work during factorization phase.
22195         Reported by Carlos Bueno <carlos@bueno.org>.
22196
22197 2010-06-21  Bruno Haible  <bruno@clisp.org>
22198
22199         Fix HAVE_CALLOC_POSIX misnomer.
22200         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
22201         !HAVE_CALLOC_POSIX.
22202         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
22203         HAVE_CALLOC_POSIX.
22204         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
22205         instead of HAVE_CALLOC_POSIX.
22206         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
22207         HAVE_CALLOC_POSIX.
22208
22209         Use modern idiom for calloc() replacement.
22210         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
22211         AC_FUNC_CALLOC.
22212         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
22213         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
22214         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22215         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
22216         (gl_REPLACE_CALLOC): New macro.
22217
22218 2010-06-21  Bruno Haible  <bruno@clisp.org>
22219
22220         Fix HAVE_REALLOC_POSIX misnomer.
22221         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
22222         !HAVE_REALLOC_POSIX.
22223         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
22224         HAVE_REALLOC_POSIX.
22225         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
22226         instead of HAVE_REALLOC_POSIX.
22227         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
22228         HAVE_REALLOC_POSIX.
22229
22230         Use modern idiom for realloc() replacement.
22231         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
22232         AC_FUNC_REALLOC.
22233         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
22234         Autoconf's AC_FUNC_REALLOC.
22235         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22236         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
22237         (gl_REPLACE_REALLOC): New macro.
22238         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22239
22240 2010-06-21  Bruno Haible  <bruno@clisp.org>
22241
22242         Fix HAVE_MALLOC_POSIX misnomer.
22243         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
22244         !HAVE_MALLOC_POSIX.
22245         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
22246         HAVE_MALLOC_POSIX.
22247         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
22248         instead of HAVE_MALLOC_POSIX.
22249         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
22250         HAVE_MALLOC_POSIX.
22251
22252         Use modern idiom for malloc() replacement.
22253         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
22254         AC_FUNC_MALLOC.
22255         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
22256         Autoconf's AC_FUNC_MALLOC.
22257         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22258         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
22259         (gl_REPLACE_MALLOC): New macro.
22260         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22261
22262 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
22263
22264         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
22265         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
22266         This macro takes 3 arguments, not 4.
22267
22268 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
22269
22270         ipv6: fix detection under mingw
22271         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
22272         in6_addr.
22273
22274 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
22275
22276         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
22277         that strtod() works when cross-compiling to a glibc version known
22278         to work.
22279
22280 2010-06-15  Bruno Haible  <bruno@clisp.org>
22281
22282         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
22283
22284 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
22285
22286         select: Correct timeout.
22287         * lib/select.c (rpl_select): Compute wait_timeout correctly.
22288
22289 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
22290
22291         git-version-gen: init shell var to avoid env var influence
22292         * build-aux/git-version-gen (v): Init shell var to empty.
22293
22294 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
22295
22296         priv-set: Don't assume that priv.h exists merely because getppriv does.
22297         See Jan Andersen's bug report about AIX 5L in
22298         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
22299         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
22300         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
22301         * lib/priv-set.h: Likewise.
22302         * tests/test-priv-set.c: Likewise.
22303
22304 2010-06-13  Bruno Haible  <bruno@clisp.org>
22305
22306         relocatable: Make it easier to test whether to install wrappers.
22307         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
22308         RELOCATABLE_VIA_WRAPPER.
22309
22310 2010-06-13  Bruno Haible  <bruno@clisp.org>
22311
22312         gnulib-tool: Display specified modules and dependencies differently.
22313         * gnulib-tool (func_show_module_list): New function.
22314         (func_import, func_create_testdir): Invoke it.
22315         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
22316
22317 2010-06-13  Bruno Haible  <bruno@clisp.org>
22318
22319         gnulib-tool: Align code of func_import and func_create_testdir.
22320         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
22321         specified_modules.
22322
22323 2010-06-12  Jim Meyering  <meyering@redhat.com>
22324
22325         test-inttostr: avoid spurious failure on Solaris 9
22326         * tests/test-inttostr.c (main): Skip the test when snprintf fails
22327         to accept "%ju".  Reported by Bruno Haible.
22328
22329 2010-06-11  Jim Meyering  <meyering@redhat.com>
22330
22331         test-sys_socket: mark variables as used more readably
22332         * tests/test-sys_socket.c (main): Mark otherwise unused variables
22333         as "used" explicitly via (void) statement casts.  This is more
22334         readable than using them in an artificial return expression.
22335         Suggestion from Bruno Haible.
22336
22337 2010-06-11  Bruno Haible  <bruno@clisp.org>
22338
22339         Avoid some more warnings from "gcc -Wwrite-strings".
22340         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
22341         to 'const char *'.
22342         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
22343         * tests/test-c-strcasestr.c (main): Likewise.
22344         * tests/test-mbscasestr1.c (main): Likewise.
22345         * tests/test-mbscasestr2.c (main): Likewise.
22346         * tests/test-memmem.c (main): Likewise.
22347         * tests/test-strstr.c (main): Likewise.
22348         * tests/test-strcasestr.c (main): Likewise.
22349
22350 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22351
22352         init.sh: change framework_failure_ to fail with status 99, not 1
22353         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
22354         automake's parallel-tests rule that this is an unexpected failure,
22355         even if the test is listed in XFAIL_TESTS.
22356
22357 2010-06-11  Jim Meyering  <meyering@redhat.com>
22358
22359         test-inttostr: avoid warnings about 4-6KB literal strings
22360         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
22361         Include "macros.h", for its definition of ASSERT.
22362         (CK): s/assert/ASSERT/
22363         * modules/inttostr-tests (Files): Add macros.h.
22364
22365         init.sh: don't use $ME_ or skip_ before they are defined
22366         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
22367         their first uses.  Also hoist their companions: warn_, fail_,
22368         framework_failure_, $stderr_fileno.  Prompted by a patch from
22369         Stefano Lattarini.
22370
22371         test-sys_socket: avoid set-but-not-used warnings from gcc
22372         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
22373         avoid warning about set-but-not-used variables.
22374
22375         test-xvasprintf: avoid 'const' discard warnings
22376         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
22377         "const" when assigning from literal strings.
22378         (test_xasprintf): Add "void" in function argument list to placate
22379         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
22380
22381         tests: avoid compilation warnings in argmatch and exclude tests...
22382         in packages that define ARGMATCH_DIE_DECL, like coreutils.
22383         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
22384         Since it always exits, declare with the "noreturn" attribute.
22385         * tests/test-argmatch.c: Likewise.
22386
22387         tests: avoid 'const' discard warnings in mbsstr tests
22388         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
22389         * tests/test-mbsstr2.c (main): Likewise.
22390
22391         test-verify: avoid warning from gcc's -Wmissing-declarations
22392         * tests/test-verify.c (function): Declare to be static.
22393
22394         test-inttostr.c: include <string.h> for use of strcmp
22395         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
22396
22397         test-linkat: avoid failed assertion on "other" architectures
22398         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
22399         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
22400         sparc: https://bugs.launchpad.net/bugs/591968
22401
22402 2010-06-11  Jim Meyering  <meyering@redhat.com>
22403
22404         printf.m4: avoid autoconf's "Expanded Before Required" warning
22405         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
22406         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
22407         autoconf warning.
22408
22409 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
22410
22411         Replacement header templates are now named with ".in", not "_".
22412         * doc/gnulib-intro.texi: Correct.
22413
22414 2010-06-10  Jim Meyering  <meyering@redhat.com>
22415
22416         inttostr-tests: depend on snprintf, not snprintf-posix
22417         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
22418         snprintf-posix, to avoid this aclocal failure:
22419           missing file gnulib-tests/vasnprintf.c
22420           configure.ac:45: error: expected source file, required through \
22421           AC_LIBSOURCES, not found
22422
22423 2010-06-10  Jim Meyering  <meyering@redhat.com>
22424
22425         inttostr: add a new function, inttostr, and tests
22426         The namesake function was not available.  The existence of the
22427         template file, inttostr.c makes its addition nontrivial.
22428         * lib/anytostr.c: Rename from inttostr.c.
22429         (anytostr): Rename from inttostr.
22430         * lib/inttostr.c: New file.
22431         * modules/inttostr (Files): Add anytostr.c.
22432         (Makefile.am): Set lib_SOURCES instead of ...
22433         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
22434         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
22435         * lib/offtostr.c: Likewise.
22436         * lib/uinttostr.c: Likewise.
22437         * lib/umaxtostr.c: Likewise.
22438         * modules/inttostr-tests: New file.
22439         * tests/test-inttostr.c: New file.  Test these functions.
22440
22441 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
22442             Bruno Haible  <bruno@clisp.org>
22443
22444         Add "Extending Gnulib" chapter to manual.
22445         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
22446         chapter.
22447         (Extending Gnulib): New chapter.
22448         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
22449         chapter.
22450
22451 2010-06-09  Bruno Haible  <bruno@clisp.org>
22452
22453         Avoid relocwrapper link errors due to gnulib replacement functions.
22454         * lib/areadlink.c: Use the system's malloc, realloc functions.
22455         (areadlink): Set errno to ENOMEM explicitly.
22456         * modules/areadlink (Depends-on): Remove malloc-posix.
22457         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22458
22459 2010-06-09  Bruno Haible  <bruno@clisp.org>
22460
22461         Avoid relocwrapper link errors due to gnulib replacement functions.
22462         * lib/canonicalize-lgpl.c: Use the system's malloc function.
22463         * lib/malloca.c: Likewise.
22464         * lib/relocatable.c: Likewise.
22465         * lib/progreloc.c: Use the system's malloc, sprintf functions.
22466         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
22467         * lib/setenv.c: Use the system's malloc, realloc functions.
22468         * lib/strerror.c: Use the system's sprintf function.
22469         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22470
22471 2010-06-04  Bruno Haible  <bruno@clisp.org>
22472
22473         Prefer documented low-level autoconf macro names.
22474         * m4/lib-link.m4: Use m4_translit instead of translit.
22475         * m4/environ.m4: Likewise.
22476         * m4/mathfunc.m4: Likewise.
22477         * m4/onceonly.m4: Likewise.
22478         * m4/stdint.m4: Likewise.
22479         Suggested by Eric Blake.
22480
22481 2010-06-04  Martin Lambers  <marlam@marlam.de>
22482             Bruno Haible  <bruno@clisp.org>
22483
22484         havelib: Allow library names with '+' characters.
22485         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
22486         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
22487
22488 2010-06-09  Bruno Haible  <bruno@clisp.org>
22489
22490         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
22491         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
22492         realloc failed.
22493
22494 2010-06-08  Peter Simons  <simons@cryp.to>
22495
22496         maint.mk: make the news-check rule more configurable
22497         * top/maint.mk (news-check-lines-spec): New variable.
22498         (news-check): Use "sed -n 1,10p" in place of "head".
22499
22500 2010-06-07  Jim Meyering  <meyering@redhat.com>
22501
22502         do-release-commit-and-tag: fix typo in --help
22503         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
22504
22505         regex: avoid new dead-code warning with gcc-4.6.0
22506         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
22507         if-block containing a while-loop.  It's been unused for at least
22508         5 years.
22509
22510 2010-06-05  Bruno Haible  <bruno@clisp.org>
22511
22512         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
22513         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
22514
22515 2010-06-04  Bruno Haible  <bruno@clisp.org>
22516
22517         Update to GNU gettext 0.18.1.
22518         * modules/gettext (configure.ac): Require gettext infrastructure from
22519         version 0.18.1.
22520
22521 2010-06-03  Bruno Haible  <bruno@clisp.org>
22522
22523         Don't use AC_LIBOBJ with file names in subdirectories.
22524         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
22525         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
22526         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
22527         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
22528         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
22529         gl_LIBUNISTRING_LIBSOURCE.
22530         (Makefile.am): Augment lib_SOURCES here, conditionally.
22531         * NEWS: Drop requirement for Automake option 'subdir-objects'.
22532
22533 2010-06-03  Bruno Haible  <bruno@clisp.org>
22534
22535         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
22536         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
22537         expansion does not end with a newline.
22538         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
22539         unnecessary newline.
22540
22541 2010-06-03  Bruno Haible  <bruno@clisp.org>
22542
22543         Reduce dependencies.
22544         * tests/test-quotearg.h: New file, extracted from
22545         tests/test-quotearg.c.
22546         * tests/test-quotearg-simple.c: New file, extracted from
22547         tests/test-quotearg.c.
22548         * tests/test-quotearg.c: Don't include <ctype.h>.
22549         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
22550         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
22551         use_quote_double_quotes, use_quotearg_colon): Moved to
22552         tests/test-quotearg.h.
22553         (results_g, flag_results, custom_quotes, custom_results): Moved
22554         to tests/test-quotearg-simple.c.
22555         (main): Moved the part that does not depend on gettext to
22556         tests/test-quotearg-simple.c. Return 77 if the test cannot be
22557         performed.
22558         * modules/quotearg-simple: New file.
22559         * modules/quotearg-simple-tests: New file.
22560         * modules/quotearg (Depends-on): Add quotearg-simple.
22561         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
22562         (Files): Add tests/test-quotearg.h.
22563         Reported by Paolo Bonzini.
22564
22565 2010-06-03  Bruno Haible  <bruno@clisp.org>
22566
22567         Reduce dependencies.
22568         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
22569
22570 2010-06-03  Bruno Haible  <bruno@clisp.org>
22571
22572         time: Undefine more broken macros.
22573         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
22574         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
22575         Reported by Eric Blake.
22576
22577 2010-06-03  Bruno Haible  <bruno@clisp.org>
22578
22579         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
22580         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
22581         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
22582         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
22583         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
22584         Reported by Ludovic Courtès <ludo@gnu.org>.
22585
22586 2010-06-02  Eric Blake  <eblake@redhat.com>
22587
22588         time: work with mingw + pthreads-win32 library
22589         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
22590         if timespec is defined only in pthread.h.
22591         * modules/time (Makefile.am): Substitute it.
22592         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
22593         <pthread.h>, when needed.
22594         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
22595         from the library.
22596
22597 2010-05-31  Bruno Haible  <bruno@clisp.org>
22598
22599         Avoid expanding two macros in the wrong order.
22600         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
22601         gl_LIBUNISTRING if it is defined.
22602         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
22603         autoconf >= 2.64.
22604         Reported by Ludovic Courtès <ludo@gnu.org>.
22605
22606 2010-05-27  Jim Meyering  <meyering@redhat.com>
22607
22608         maint.mk: also prohibit "#undef" of always-defined symbols
22609         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
22610         Allow more than one space before the symbol name.
22611         (sc_prohibit_always-defined_macros): Use grep's -E, now that
22612         the regexp uses alternation.
22613
22614 2010-05-26  Eric Blake  <eblake@redhat.com>
22615
22616         maint.mk: avoid echo -e
22617         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
22618         Convert all uses of echo -* to printf.
22619         Reported by Matthias Bolte.
22620
22621 2010-05-25  Bruno Haible  <bruno@clisp.org>
22622
22623         Update to GNU gettext 0.18, part 2.
22624         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
22625         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
22626
22627 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22628
22629         Add missing include in test-pwrite.c.
22630         * tests/test-pwrite.c: Include string.h, for strcmp.
22631
22632 2010-05-24  Bruno Haible  <bruno@clisp.org>
22633
22634         * NEWS: Mention requirement for Automake option 'subdir-objects'.
22635
22636 2010-05-24  Bruno Haible  <bruno@clisp.org>
22637
22638         Don't use conversion with transliteration in u{8,16,32}_strcoll.
22639         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
22640         iconveh_error argument.
22641         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
22642         U_STRCONV_TO_LOCALE.
22643         * lib/unistr/u16-strcoll.c: Likewise.
22644         * lib/unistr/u32-strcoll.c: Likewise.
22645         * modules/unistr/u8-strcoll (Depends-on): Add
22646         uniconv/u8-strconv-to-enc, localcharset. Remove
22647         uniconv/u8-strconv-to-locale.
22648         (configure.ac): Bump version number.
22649         * modules/unistr/u16-strcoll (Depends-on): Add
22650         uniconv/u16-strconv-to-enc, localcharset. Remove
22651         uniconv/u16-strconv-to-locale.
22652         (configure.ac): Bump version number.
22653         * modules/unistr/u32-strcoll (Depends-on): Add
22654         uniconv/u32-strconv-to-enc, localcharset. Remove
22655         uniconv/u32-strconv-to-locale.
22656         (configure.ac): Bump version number.
22657
22658 2010-05-24  Bruno Haible  <bruno@clisp.org>
22659
22660         Avoid a test failure on NetBSD 5.0.
22661         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
22662         an iconv() bug.
22663
22664 2010-05-24  Bruno Haible  <bruno@clisp.org>
22665
22666         Adjust #include directive style.
22667         * modules/regex (Includes): Recommend to write <regex.h>.
22668
22669 2010-05-24  Bruno Haible  <bruno@clisp.org>
22670
22671         regex: Don't require alloca.
22672         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
22673         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
22674         only inside if (0).
22675
22676 2010-05-23  Jim Meyering  <meyering@redhat.com>
22677
22678         test-renameat.c: include <sys/stat.h>
22679         * tests/test-renameat.c: Include <sys/stat.h>; required for
22680         definition of S_IS* macros.
22681
22682 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
22683
22684         Update maintainer documentation for 'relocatable-prog' module.
22685         * doc/relocatable-maint.texi: Update.
22686         Comments by Bruno Haible.
22687
22688 2010-05-23  Bruno Haible  <bruno@clisp.org>
22689
22690         git-merge-changelog: Enable --split-merged-entry by default.
22691         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
22692         (usage): Don't mention this option any more.
22693         Reported by Ralf Wildenhues.
22694
22695 2010-05-23  Jim Meyering  <meyering@redhat.com>
22696
22697         test-pwrite: do not leave behind a test file named "out"
22698         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
22699         The trivial-looking use of init.sh is really necessary.
22700         It ensures that the temporary file, "out", is created in
22701         a temporary directory, and removed upon termination.
22702         * tests/test-pwrite.sh: Re-add file.
22703         * modules/pwrite-tests: Reference it.
22704
22705 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22706
22707         Fix output redirection buglet in init.sh.
22708         * tests/init.sh: Fix redirection of stderr.
22709
22710 2010-05-20  Simon Josefsson  <simon@josefsson.org>
22711
22712         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
22713
22714 2010-05-17  Simon Josefsson  <simon@josefsson.org>
22715
22716         * modules/valgrind-tests: New file.
22717         * m4/valgrind-tests.m4: New file.
22718         * doc/valgrind-tests.texi: New file.
22719         * doc/gnulib.texi (Running self-tests under valgrind): New
22720         section.
22721
22722 2010-05-19  Bruno Haible  <bruno@clisp.org>
22723
22724         Clean up dead code in recent commit.
22725         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
22726         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
22727         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
22728         Suggested by Paolo Bonzini.
22729
22730 2010-05-19  Bruno Haible  <bruno@clisp.org>
22731
22732         Avoid valgrind error reports from libunistring.
22733         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
22734         * modules/libunistring (Files): Add it.
22735         * modules/libunistring-optional (Files): Likewise.
22736
22737 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
22738             Bruno Haible  <bruno@clisp.org>
22739
22740         New module 'libunistring-optional'.
22741         * modules/libunistring-optional: New file.
22742         * m4/libunistring-base.m4: New file.
22743         * m4/libunistring-optional.m4: New file.
22744         * lib/unicase.in.h: Renamed from lib/unicase.h.
22745         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
22746         * lib/unictype.in.h: Renamed from lib/unictype.h.
22747         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
22748         * lib/uniname.in.h: Renamed from lib/uniname.h.
22749         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
22750         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
22751         * lib/unistr.in.h: Renamed from lib/unistr.h.
22752         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
22753         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
22754         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
22755         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
22756         gl_LIBUNISTRING. If the library was found, determine the installed
22757         version and set LIBUNISTRING_VERSION.
22758         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
22759         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
22760         handle a configuration option --with-included-libunistring.
22761         * modules/libunistring (Files): Add m4/absolute-header.m4.
22762         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
22763         Add m4/libunistring-base.m4.
22764         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22765         (Makefile.am): Build unicase.h from unicase.in.h.
22766         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
22767         Add m4/libunistring-base.m4.
22768         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22769         (Makefile.am): Build uniconv.h from uniconv.in.h.
22770         * modules/unictype/base (Files): Use unictype.in.h instead of
22771         unictype.h. Add m4/libunistring-base.m4.
22772         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22773         (Makefile.am): Build unictype.h from unictype.in.h.
22774         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
22775         Add m4/libunistring-base.m4.
22776         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22777         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
22778         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
22779         Add m4/libunistring-base.m4.
22780         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22781         (Makefile.am): Build uniname.h from uniname.in.h.
22782         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
22783         Add m4/libunistring-base.m4.
22784         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22785         (Makefile.am): Build uninorm.h from uninorm.in.h.
22786         * modules/unistdio/base (Files): Use unistdio.in.h instead of
22787         unistdio.h. Add m4/libunistring-base.m4.
22788         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22789         (Makefile.am): Build unistdio.h from unistdio.in.h.
22790         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
22791         Add m4/libunistring-base.m4.
22792         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22793         (Makefile.am): Build unistr.h from unistr.in.h.
22794         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
22795         Add m4/libunistring-base.m4.
22796         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22797         (Makefile.am): Build unitypes.h from unitypes.in.h.
22798         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
22799         Add m4/libunistring-base.m4.
22800         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22801         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
22802         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
22803         uniwidth.h. Add m4/libunistring-base.m4.
22804         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22805         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
22806         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
22807         instead of augmenting lib_SOURCES.
22808         * modules/unicase/empty-suffix-context: Likewise.
22809         * modules/unicase/locale-language: Likewise.
22810         * modules/unicase/tolower: Likewise.
22811         * modules/unicase/totitle: Likewise.
22812         * modules/unicase/toupper: Likewise.
22813         * modules/unicase/u8-casecmp: Likewise.
22814         * modules/unicase/u8-casecoll: Likewise.
22815         * modules/unicase/u8-casefold: Likewise.
22816         * modules/unicase/u8-casexfrm: Likewise.
22817         * modules/unicase/u8-ct-casefold: Likewise.
22818         * modules/unicase/u8-ct-tolower: Likewise.
22819         * modules/unicase/u8-ct-totitle: Likewise.
22820         * modules/unicase/u8-ct-toupper: Likewise.
22821         * modules/unicase/u8-is-cased: Likewise.
22822         * modules/unicase/u8-is-casefolded: Likewise.
22823         * modules/unicase/u8-is-lowercase: Likewise.
22824         * modules/unicase/u8-is-titlecase: Likewise.
22825         * modules/unicase/u8-is-uppercase: Likewise.
22826         * modules/unicase/u8-prefix-context: Likewise.
22827         * modules/unicase/u8-suffix-context: Likewise.
22828         * modules/unicase/u8-tolower: Likewise.
22829         * modules/unicase/u8-totitle: Likewise.
22830         * modules/unicase/u8-toupper: Likewise.
22831         * modules/unicase/u16-casecmp: Likewise.
22832         * modules/unicase/u16-casecoll: Likewise.
22833         * modules/unicase/u16-casefold: Likewise.
22834         * modules/unicase/u16-casexfrm: Likewise.
22835         * modules/unicase/u16-ct-casefold: Likewise.
22836         * modules/unicase/u16-ct-tolower: Likewise.
22837         * modules/unicase/u16-ct-totitle: Likewise.
22838         * modules/unicase/u16-ct-toupper: Likewise.
22839         * modules/unicase/u16-is-cased: Likewise.
22840         * modules/unicase/u16-is-casefolded: Likewise.
22841         * modules/unicase/u16-is-lowercase: Likewise.
22842         * modules/unicase/u16-is-titlecase: Likewise.
22843         * modules/unicase/u16-is-uppercase: Likewise.
22844         * modules/unicase/u16-prefix-context: Likewise.
22845         * modules/unicase/u16-suffix-context: Likewise.
22846         * modules/unicase/u16-tolower: Likewise.
22847         * modules/unicase/u16-totitle: Likewise.
22848         * modules/unicase/u16-toupper: Likewise.
22849         * modules/unicase/u32-casecmp: Likewise.
22850         * modules/unicase/u32-casecoll: Likewise.
22851         * modules/unicase/u32-casefold: Likewise.
22852         * modules/unicase/u32-casexfrm: Likewise.
22853         * modules/unicase/u32-ct-casefold: Likewise.
22854         * modules/unicase/u32-ct-tolower: Likewise.
22855         * modules/unicase/u32-ct-totitle: Likewise.
22856         * modules/unicase/u32-ct-toupper: Likewise.
22857         * modules/unicase/u32-is-cased: Likewise.
22858         * modules/unicase/u32-is-casefolded: Likewise.
22859         * modules/unicase/u32-is-lowercase: Likewise.
22860         * modules/unicase/u32-is-titlecase: Likewise.
22861         * modules/unicase/u32-is-uppercase: Likewise.
22862         * modules/unicase/u32-prefix-context: Likewise.
22863         * modules/unicase/u32-suffix-context: Likewise.
22864         * modules/unicase/u32-tolower: Likewise.
22865         * modules/unicase/u32-totitle: Likewise.
22866         * modules/unicase/u32-toupper: Likewise.
22867         * modules/unicase/ulc-casecmp: Likewise.
22868         * modules/unicase/ulc-casecoll: Likewise.
22869         * modules/unicase/ulc-casexfrm: Likewise.
22870         * modules/uniconv/u8-conv-from-enc: Likewise.
22871         * modules/uniconv/u8-conv-to-enc: Likewise.
22872         * modules/uniconv/u8-strconv-from-enc: Likewise.
22873         * modules/uniconv/u8-strconv-from-locale: Likewise.
22874         * modules/uniconv/u8-strconv-to-enc: Likewise.
22875         * modules/uniconv/u8-strconv-to-locale: Likewise.
22876         * modules/uniconv/u16-conv-from-enc: Likewise.
22877         * modules/uniconv/u16-conv-to-enc: Likewise.
22878         * modules/uniconv/u16-strconv-from-enc: Likewise.
22879         * modules/uniconv/u16-strconv-from-locale: Likewise.
22880         * modules/uniconv/u16-strconv-to-enc: Likewise.
22881         * modules/uniconv/u16-strconv-to-locale: Likewise.
22882         * modules/uniconv/u32-conv-from-enc: Likewise.
22883         * modules/uniconv/u32-conv-to-enc: Likewise.
22884         * modules/uniconv/u32-strconv-from-enc: Likewise.
22885         * modules/uniconv/u32-strconv-from-locale: Likewise.
22886         * modules/uniconv/u32-strconv-to-enc: Likewise.
22887         * modules/uniconv/u32-strconv-to-locale: Likewise.
22888         * modules/unictype/bidicategory-byname: Likewise.
22889         * modules/unictype/bidicategory-name: Likewise.
22890         * modules/unictype/bidicategory-of: Likewise.
22891         * modules/unictype/bidicategory-test: Likewise.
22892         * modules/unictype/block-list: Likewise.
22893         * modules/unictype/block-test: Likewise.
22894         * modules/unictype/category-C: Likewise.
22895         * modules/unictype/category-Cc: Likewise.
22896         * modules/unictype/category-Cf: Likewise.
22897         * modules/unictype/category-Cn: Likewise.
22898         * modules/unictype/category-Co: Likewise.
22899         * modules/unictype/category-Cs: Likewise.
22900         * modules/unictype/category-L: Likewise.
22901         * modules/unictype/category-Ll: Likewise.
22902         * modules/unictype/category-Lm: Likewise.
22903         * modules/unictype/category-Lo: Likewise.
22904         * modules/unictype/category-Lt: Likewise.
22905         * modules/unictype/category-Lu: Likewise.
22906         * modules/unictype/category-M: Likewise.
22907         * modules/unictype/category-Mc: Likewise.
22908         * modules/unictype/category-Me: Likewise.
22909         * modules/unictype/category-Mn: Likewise.
22910         * modules/unictype/category-N: Likewise.
22911         * modules/unictype/category-Nd: Likewise.
22912         * modules/unictype/category-Nl: Likewise.
22913         * modules/unictype/category-No: Likewise.
22914         * modules/unictype/category-P: Likewise.
22915         * modules/unictype/category-Pc: Likewise.
22916         * modules/unictype/category-Pd: Likewise.
22917         * modules/unictype/category-Pe: Likewise.
22918         * modules/unictype/category-Pf: Likewise.
22919         * modules/unictype/category-Pi: Likewise.
22920         * modules/unictype/category-Po: Likewise.
22921         * modules/unictype/category-Ps: Likewise.
22922         * modules/unictype/category-S: Likewise.
22923         * modules/unictype/category-Sc: Likewise.
22924         * modules/unictype/category-Sk: Likewise.
22925         * modules/unictype/category-Sm: Likewise.
22926         * modules/unictype/category-So: Likewise.
22927         * modules/unictype/category-Z: Likewise.
22928         * modules/unictype/category-Zl: Likewise.
22929         * modules/unictype/category-Zp: Likewise.
22930         * modules/unictype/category-Zs: Likewise.
22931         * modules/unictype/category-and: Likewise.
22932         * modules/unictype/category-and-not: Likewise.
22933         * modules/unictype/category-byname: Likewise.
22934         * modules/unictype/category-name: Likewise.
22935         * modules/unictype/category-none: Likewise.
22936         * modules/unictype/category-of: Likewise.
22937         * modules/unictype/category-or: Likewise.
22938         * modules/unictype/category-test: Likewise.
22939         * modules/unictype/combining-class: Likewise.
22940         * modules/unictype/ctype-alnum: Likewise.
22941         * modules/unictype/ctype-alpha: Likewise.
22942         * modules/unictype/ctype-blank: Likewise.
22943         * modules/unictype/ctype-cntrl: Likewise.
22944         * modules/unictype/ctype-digit: Likewise.
22945         * modules/unictype/ctype-graph: Likewise.
22946         * modules/unictype/ctype-lower: Likewise.
22947         * modules/unictype/ctype-print: Likewise.
22948         * modules/unictype/ctype-punct: Likewise.
22949         * modules/unictype/ctype-space: Likewise.
22950         * modules/unictype/ctype-upper: Likewise.
22951         * modules/unictype/ctype-xdigit: Likewise.
22952         * modules/unictype/decimal-digit: Likewise.
22953         * modules/unictype/digit: Likewise.
22954         * modules/unictype/mirror: Likewise.
22955         * modules/unictype/numeric: Likewise.
22956         * modules/unictype/property-alphabetic: Likewise.
22957         * modules/unictype/property-ascii-hex-digit: Likewise.
22958         * modules/unictype/property-bidi-arabic-digit: Likewise.
22959         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
22960         * modules/unictype/property-bidi-block-separator: Likewise.
22961         * modules/unictype/property-bidi-boundary-neutral: Likewise.
22962         * modules/unictype/property-bidi-common-separator: Likewise.
22963         * modules/unictype/property-bidi-control: Likewise.
22964         * modules/unictype/property-bidi-embedding-or-override: Likewise.
22965         * modules/unictype/property-bidi-eur-num-separator: Likewise.
22966         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
22967         * modules/unictype/property-bidi-european-digit: Likewise.
22968         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
22969         * modules/unictype/property-bidi-left-to-right: Likewise.
22970         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
22971         * modules/unictype/property-bidi-other-neutral: Likewise.
22972         * modules/unictype/property-bidi-pdf: Likewise.
22973         * modules/unictype/property-bidi-segment-separator: Likewise.
22974         * modules/unictype/property-bidi-whitespace: Likewise.
22975         * modules/unictype/property-byname: Likewise.
22976         * modules/unictype/property-combining: Likewise.
22977         * modules/unictype/property-composite: Likewise.
22978         * modules/unictype/property-currency-symbol: Likewise.
22979         * modules/unictype/property-dash: Likewise.
22980         * modules/unictype/property-decimal-digit: Likewise.
22981         * modules/unictype/property-default-ignorable-code-point: Likewise.
22982         * modules/unictype/property-deprecated: Likewise.
22983         * modules/unictype/property-diacritic: Likewise.
22984         * modules/unictype/property-extender: Likewise.
22985         * modules/unictype/property-format-control: Likewise.
22986         * modules/unictype/property-grapheme-base: Likewise.
22987         * modules/unictype/property-grapheme-extend: Likewise.
22988         * modules/unictype/property-grapheme-link: Likewise.
22989         * modules/unictype/property-hex-digit: Likewise.
22990         * modules/unictype/property-hyphen: Likewise.
22991         * modules/unictype/property-id-continue: Likewise.
22992         * modules/unictype/property-id-start: Likewise.
22993         * modules/unictype/property-ideographic: Likewise.
22994         * modules/unictype/property-ids-binary-operator: Likewise.
22995         * modules/unictype/property-ids-trinary-operator: Likewise.
22996         * modules/unictype/property-ignorable-control: Likewise.
22997         * modules/unictype/property-iso-control: Likewise.
22998         * modules/unictype/property-join-control: Likewise.
22999         * modules/unictype/property-left-of-pair: Likewise.
23000         * modules/unictype/property-line-separator: Likewise.
23001         * modules/unictype/property-logical-order-exception: Likewise.
23002         * modules/unictype/property-lowercase: Likewise.
23003         * modules/unictype/property-math: Likewise.
23004         * modules/unictype/property-non-break: Likewise.
23005         * modules/unictype/property-not-a-character: Likewise.
23006         * modules/unictype/property-numeric: Likewise.
23007         * modules/unictype/property-other-alphabetic: Likewise.
23008         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
23009         * modules/unictype/property-other-grapheme-extend: Likewise.
23010         * modules/unictype/property-other-id-continue: Likewise.
23011         * modules/unictype/property-other-id-start: Likewise.
23012         * modules/unictype/property-other-lowercase: Likewise.
23013         * modules/unictype/property-other-math: Likewise.
23014         * modules/unictype/property-other-uppercase: Likewise.
23015         * modules/unictype/property-paired-punctuation: Likewise.
23016         * modules/unictype/property-paragraph-separator: Likewise.
23017         * modules/unictype/property-pattern-syntax: Likewise.
23018         * modules/unictype/property-pattern-white-space: Likewise.
23019         * modules/unictype/property-private-use: Likewise.
23020         * modules/unictype/property-punctuation: Likewise.
23021         * modules/unictype/property-quotation-mark: Likewise.
23022         * modules/unictype/property-radical: Likewise.
23023         * modules/unictype/property-sentence-terminal: Likewise.
23024         * modules/unictype/property-soft-dotted: Likewise.
23025         * modules/unictype/property-space: Likewise.
23026         * modules/unictype/property-terminal-punctuation: Likewise.
23027         * modules/unictype/property-test: Likewise.
23028         * modules/unictype/property-titlecase: Likewise.
23029         * modules/unictype/property-unassigned-code-value: Likewise.
23030         * modules/unictype/property-unified-ideograph: Likewise.
23031         * modules/unictype/property-uppercase: Likewise.
23032         * modules/unictype/property-variation-selector: Likewise.
23033         * modules/unictype/property-white-space: Likewise.
23034         * modules/unictype/property-xid-continue: Likewise.
23035         * modules/unictype/property-xid-start: Likewise.
23036         * modules/unictype/property-zero-width: Likewise.
23037         * modules/unictype/scripts: Likewise.
23038         * modules/unictype/syntax-c-ident: Likewise.
23039         * modules/unictype/syntax-c-whitespace: Likewise.
23040         * modules/unictype/syntax-java-ident: Likewise.
23041         * modules/unictype/syntax-java-whitespace: Likewise.
23042         * modules/unilbrk/u8-possible-linebreaks: Likewise.
23043         * modules/unilbrk/u8-width-linebreaks: Likewise.
23044         * modules/unilbrk/u16-possible-linebreaks: Likewise.
23045         * modules/unilbrk/u16-width-linebreaks: Likewise.
23046         * modules/unilbrk/u32-possible-linebreaks: Likewise.
23047         * modules/unilbrk/u32-width-linebreaks: Likewise.
23048         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
23049         * modules/unilbrk/ulc-width-linebreaks: Likewise.
23050         * modules/uniname/uniname: Likewise.
23051         * modules/uninorm/canonical-decomposition: Likewise.
23052         * modules/uninorm/composition: Likewise.
23053         * modules/uninorm/decomposing-form: Likewise.
23054         * modules/uninorm/decomposition: Likewise.
23055         * modules/uninorm/filter: Likewise.
23056         * modules/uninorm/nfc: Likewise.
23057         * modules/uninorm/nfd: Likewise.
23058         * modules/uninorm/nfkc: Likewise.
23059         * modules/uninorm/nfkd: Likewise.
23060         * modules/uninorm/u8-normalize: Likewise.
23061         * modules/uninorm/u8-normcmp: Likewise.
23062         * modules/uninorm/u8-normcoll: Likewise.
23063         * modules/uninorm/u8-normxfrm: Likewise.
23064         * modules/uninorm/u16-normalize: Likewise.
23065         * modules/uninorm/u16-normcmp: Likewise.
23066         * modules/uninorm/u16-normcoll: Likewise.
23067         * modules/uninorm/u16-normxfrm: Likewise.
23068         * modules/uninorm/u32-normalize: Likewise.
23069         * modules/uninorm/u32-normcmp: Likewise.
23070         * modules/uninorm/u32-normcoll: Likewise.
23071         * modules/uninorm/u32-normxfrm: Likewise.
23072         * modules/unistdio/u8-asnprintf: Likewise.
23073         * modules/unistdio/u8-asprintf: Likewise.
23074         * modules/unistdio/u8-snprintf: Likewise.
23075         * modules/unistdio/u8-sprintf: Likewise.
23076         * modules/unistdio/u8-u8-asnprintf: Likewise.
23077         * modules/unistdio/u8-u8-asprintf: Likewise.
23078         * modules/unistdio/u8-u8-snprintf: Likewise.
23079         * modules/unistdio/u8-u8-sprintf: Likewise.
23080         * modules/unistdio/u8-u8-vasnprintf: Likewise.
23081         * modules/unistdio/u8-u8-vasprintf: Likewise.
23082         * modules/unistdio/u8-u8-vsnprintf: Likewise.
23083         * modules/unistdio/u8-u8-vsprintf: Likewise.
23084         * modules/unistdio/u8-vasnprintf: Likewise.
23085         * modules/unistdio/u8-vasprintf: Likewise.
23086         * modules/unistdio/u8-vsnprintf: Likewise.
23087         * modules/unistdio/u8-vsprintf: Likewise.
23088         * modules/unistdio/u16-asnprintf: Likewise.
23089         * modules/unistdio/u16-asprintf: Likewise.
23090         * modules/unistdio/u16-snprintf: Likewise.
23091         * modules/unistdio/u16-sprintf: Likewise.
23092         * modules/unistdio/u16-u16-asnprintf: Likewise.
23093         * modules/unistdio/u16-u16-asprintf: Likewise.
23094         * modules/unistdio/u16-u16-snprintf: Likewise.
23095         * modules/unistdio/u16-u16-sprintf: Likewise.
23096         * modules/unistdio/u16-u16-vasnprintf: Likewise.
23097         * modules/unistdio/u16-u16-vasprintf: Likewise.
23098         * modules/unistdio/u16-u16-vsnprintf: Likewise.
23099         * modules/unistdio/u16-u16-vsprintf: Likewise.
23100         * modules/unistdio/u16-vasnprintf: Likewise.
23101         * modules/unistdio/u16-vasprintf: Likewise.
23102         * modules/unistdio/u16-vsnprintf: Likewise.
23103         * modules/unistdio/u16-vsprintf: Likewise.
23104         * modules/unistdio/u32-asnprintf: Likewise.
23105         * modules/unistdio/u32-asprintf: Likewise.
23106         * modules/unistdio/u32-snprintf: Likewise.
23107         * modules/unistdio/u32-sprintf: Likewise.
23108         * modules/unistdio/u32-u32-asnprintf: Likewise.
23109         * modules/unistdio/u32-u32-asprintf: Likewise.
23110         * modules/unistdio/u32-u32-snprintf: Likewise.
23111         * modules/unistdio/u32-u32-sprintf: Likewise.
23112         * modules/unistdio/u32-u32-vasnprintf: Likewise.
23113         * modules/unistdio/u32-u32-vasprintf: Likewise.
23114         * modules/unistdio/u32-u32-vsnprintf: Likewise.
23115         * modules/unistdio/u32-u32-vsprintf: Likewise.
23116         * modules/unistdio/u32-vasnprintf: Likewise.
23117         * modules/unistdio/u32-vasprintf: Likewise.
23118         * modules/unistdio/u32-vsnprintf: Likewise.
23119         * modules/unistdio/u32-vsprintf: Likewise.
23120         * modules/unistdio/ulc-asnprintf: Likewise.
23121         * modules/unistdio/ulc-asprintf: Likewise.
23122         * modules/unistdio/ulc-fprintf: Likewise.
23123         * modules/unistdio/ulc-snprintf: Likewise.
23124         * modules/unistdio/ulc-sprintf: Likewise.
23125         * modules/unistdio/ulc-vasnprintf: Likewise.
23126         * modules/unistdio/ulc-vasprintf: Likewise.
23127         * modules/unistdio/ulc-vfprintf: Likewise.
23128         * modules/unistdio/ulc-vsnprintf: Likewise.
23129         * modules/unistdio/ulc-vsprintf: Likewise.
23130         * modules/unistr/u8-check: Likewise.
23131         * modules/unistr/u8-chr: Likewise.
23132         * modules/unistr/u8-cmp: Likewise.
23133         * modules/unistr/u8-cmp2: Likewise.
23134         * modules/unistr/u8-cpy: Likewise.
23135         * modules/unistr/u8-cpy-alloc: Likewise.
23136         * modules/unistr/u8-endswith: Likewise.
23137         * modules/unistr/u8-mblen: Likewise.
23138         * modules/unistr/u8-mbsnlen: Likewise.
23139         * modules/unistr/u8-mbtouc: Likewise.
23140         * modules/unistr/u8-mbtouc-unsafe: Likewise.
23141         * modules/unistr/u8-mbtoucr: Likewise.
23142         * modules/unistr/u8-move: Likewise.
23143         * modules/unistr/u8-next: Likewise.
23144         * modules/unistr/u8-prev: Likewise.
23145         * modules/unistr/u8-set: Likewise.
23146         * modules/unistr/u8-startswith: Likewise.
23147         * modules/unistr/u8-stpcpy: Likewise.
23148         * modules/unistr/u8-stpncpy: Likewise.
23149         * modules/unistr/u8-strcat: Likewise.
23150         * modules/unistr/u8-strchr: Likewise.
23151         * modules/unistr/u8-strcmp: Likewise.
23152         * modules/unistr/u8-strcoll: Likewise.
23153         * modules/unistr/u8-strcpy: Likewise.
23154         * modules/unistr/u8-strcspn: Likewise.
23155         * modules/unistr/u8-strdup: Likewise.
23156         * modules/unistr/u8-strlen: Likewise.
23157         * modules/unistr/u8-strmblen: Likewise.
23158         * modules/unistr/u8-strmbtouc: Likewise.
23159         * modules/unistr/u8-strncat: Likewise.
23160         * modules/unistr/u8-strncmp: Likewise.
23161         * modules/unistr/u8-strncpy: Likewise.
23162         * modules/unistr/u8-strnlen: Likewise.
23163         * modules/unistr/u8-strpbrk: Likewise.
23164         * modules/unistr/u8-strrchr: Likewise.
23165         * modules/unistr/u8-strspn: Likewise.
23166         * modules/unistr/u8-strstr: Likewise.
23167         * modules/unistr/u8-strtok: Likewise.
23168         * modules/unistr/u8-to-u16: Likewise.
23169         * modules/unistr/u8-to-u32: Likewise.
23170         * modules/unistr/u8-uctomb: Likewise.
23171         * modules/unistr/u16-check: Likewise.
23172         * modules/unistr/u16-chr: Likewise.
23173         * modules/unistr/u16-cmp: Likewise.
23174         * modules/unistr/u16-cmp2: Likewise.
23175         * modules/unistr/u16-cpy: Likewise.
23176         * modules/unistr/u16-cpy-alloc: Likewise.
23177         * modules/unistr/u16-endswith: Likewise.
23178         * modules/unistr/u16-mblen: Likewise.
23179         * modules/unistr/u16-mbsnlen: Likewise.
23180         * modules/unistr/u16-mbtouc: Likewise.
23181         * modules/unistr/u16-mbtouc-unsafe: Likewise.
23182         * modules/unistr/u16-mbtoucr: Likewise.
23183         * modules/unistr/u16-move: Likewise.
23184         * modules/unistr/u16-next: Likewise.
23185         * modules/unistr/u16-prev: Likewise.
23186         * modules/unistr/u16-set: Likewise.
23187         * modules/unistr/u16-startswith: Likewise.
23188         * modules/unistr/u16-stpcpy: Likewise.
23189         * modules/unistr/u16-stpncpy: Likewise.
23190         * modules/unistr/u16-strcat: Likewise.
23191         * modules/unistr/u16-strchr: Likewise.
23192         * modules/unistr/u16-strcmp: Likewise.
23193         * modules/unistr/u16-strcoll: Likewise.
23194         * modules/unistr/u16-strcpy: Likewise.
23195         * modules/unistr/u16-strcspn: Likewise.
23196         * modules/unistr/u16-strdup: Likewise.
23197         * modules/unistr/u16-strlen: Likewise.
23198         * modules/unistr/u16-strmblen: Likewise.
23199         * modules/unistr/u16-strmbtouc: Likewise.
23200         * modules/unistr/u16-strncat: Likewise.
23201         * modules/unistr/u16-strncmp: Likewise.
23202         * modules/unistr/u16-strncpy: Likewise.
23203         * modules/unistr/u16-strnlen: Likewise.
23204         * modules/unistr/u16-strpbrk: Likewise.
23205         * modules/unistr/u16-strrchr: Likewise.
23206         * modules/unistr/u16-strspn: Likewise.
23207         * modules/unistr/u16-strstr: Likewise.
23208         * modules/unistr/u16-strtok: Likewise.
23209         * modules/unistr/u16-to-u32: Likewise.
23210         * modules/unistr/u16-to-u8: Likewise.
23211         * modules/unistr/u16-uctomb: Likewise.
23212         * modules/unistr/u32-check: Likewise.
23213         * modules/unistr/u32-chr: Likewise.
23214         * modules/unistr/u32-cmp: Likewise.
23215         * modules/unistr/u32-cmp2: Likewise.
23216         * modules/unistr/u32-cpy: Likewise.
23217         * modules/unistr/u32-cpy-alloc: Likewise.
23218         * modules/unistr/u32-endswith: Likewise.
23219         * modules/unistr/u32-mblen: Likewise.
23220         * modules/unistr/u32-mbsnlen: Likewise.
23221         * modules/unistr/u32-mbtouc: Likewise.
23222         * modules/unistr/u32-mbtouc-unsafe: Likewise.
23223         * modules/unistr/u32-mbtoucr: Likewise.
23224         * modules/unistr/u32-move: Likewise.
23225         * modules/unistr/u32-next: Likewise.
23226         * modules/unistr/u32-prev: Likewise.
23227         * modules/unistr/u32-set: Likewise.
23228         * modules/unistr/u32-startswith: Likewise.
23229         * modules/unistr/u32-stpcpy: Likewise.
23230         * modules/unistr/u32-stpncpy: Likewise.
23231         * modules/unistr/u32-strcat: Likewise.
23232         * modules/unistr/u32-strchr: Likewise.
23233         * modules/unistr/u32-strcmp: Likewise.
23234         * modules/unistr/u32-strcoll: Likewise.
23235         * modules/unistr/u32-strcpy: Likewise.
23236         * modules/unistr/u32-strcspn: Likewise.
23237         * modules/unistr/u32-strdup: Likewise.
23238         * modules/unistr/u32-strlen: Likewise.
23239         * modules/unistr/u32-strmblen: Likewise.
23240         * modules/unistr/u32-strmbtouc: Likewise.
23241         * modules/unistr/u32-strncat: Likewise.
23242         * modules/unistr/u32-strncmp: Likewise.
23243         * modules/unistr/u32-strncpy: Likewise.
23244         * modules/unistr/u32-strnlen: Likewise.
23245         * modules/unistr/u32-strpbrk: Likewise.
23246         * modules/unistr/u32-strrchr: Likewise.
23247         * modules/unistr/u32-strspn: Likewise.
23248         * modules/unistr/u32-strstr: Likewise.
23249         * modules/unistr/u32-strtok: Likewise.
23250         * modules/unistr/u32-to-u16: Likewise.
23251         * modules/unistr/u32-to-u8: Likewise.
23252         * modules/unistr/u32-uctomb: Likewise.
23253         * modules/uniwbrk/u8-wordbreaks: Likewise.
23254         * modules/uniwbrk/u16-wordbreaks: Likewise.
23255         * modules/uniwbrk/u32-wordbreaks: Likewise.
23256         * modules/uniwbrk/ulc-wordbreaks: Likewise.
23257         * modules/uniwbrk/wordbreak-property: Likewise.
23258         * modules/uniwidth/u8-strwidth: Likewise.
23259         * modules/uniwidth/u8-width: Likewise.
23260         * modules/uniwidth/u16-strwidth: Likewise.
23261         * modules/uniwidth/u16-width: Likewise.
23262         * modules/uniwidth/u32-strwidth: Likewise.
23263         * modules/uniwidth/u32-width: Likewise.
23264         * modules/uniwidth/width: Likewise.
23265         * modules/unicase/cased-tests (Makefile.am): Link all test programs
23266         with $(LIBUNISTRING).
23267         * modules/unicase/ignorable-tests: Likewise.
23268         * modules/unicase/locale-language-tests: Likewise.
23269         * modules/unicase/tolower-tests: Likewise.
23270         * modules/unicase/totitle-tests: Likewise.
23271         * modules/unicase/toupper-tests: Likewise.
23272         * modules/unicase/u8-casecmp-tests: Likewise.
23273         * modules/unicase/u8-casecoll-tests: Likewise.
23274         * modules/unicase/u8-casefold-tests: Likewise.
23275         * modules/unicase/u8-is-cased-tests: Likewise.
23276         * modules/unicase/u8-is-casefolded-tests: Likewise.
23277         * modules/unicase/u8-is-lowercase-tests: Likewise.
23278         * modules/unicase/u8-is-titlecase-tests: Likewise.
23279         * modules/unicase/u8-is-uppercase-tests: Likewise.
23280         * modules/unicase/u8-tolower-tests: Likewise.
23281         * modules/unicase/u8-totitle-tests: Likewise.
23282         * modules/unicase/u8-toupper-tests: Likewise.
23283         * modules/unicase/u16-casecmp-tests: Likewise.
23284         * modules/unicase/u16-casecoll-tests: Likewise.
23285         * modules/unicase/u16-casefold-tests: Likewise.
23286         * modules/unicase/u16-is-cased-tests: Likewise.
23287         * modules/unicase/u16-is-casefolded-tests: Likewise.
23288         * modules/unicase/u16-is-lowercase-tests: Likewise.
23289         * modules/unicase/u16-is-titlecase-tests: Likewise.
23290         * modules/unicase/u16-is-uppercase-tests: Likewise.
23291         * modules/unicase/u16-tolower-tests: Likewise.
23292         * modules/unicase/u16-totitle-tests: Likewise.
23293         * modules/unicase/u16-toupper-tests: Likewise.
23294         * modules/unicase/u32-casecmp-tests: Likewise.
23295         * modules/unicase/u32-casecoll-tests: Likewise.
23296         * modules/unicase/u32-casefold-tests: Likewise.
23297         * modules/unicase/u32-is-cased-tests: Likewise.
23298         * modules/unicase/u32-is-casefolded-tests: Likewise.
23299         * modules/unicase/u32-is-lowercase-tests: Likewise.
23300         * modules/unicase/u32-is-titlecase-tests: Likewise.
23301         * modules/unicase/u32-is-uppercase-tests: Likewise.
23302         * modules/unicase/u32-tolower-tests: Likewise.
23303         * modules/unicase/u32-totitle-tests: Likewise.
23304         * modules/unicase/u32-toupper-tests: Likewise.
23305         * modules/unicase/ulc-casecmp-tests: Likewise.
23306         * modules/unicase/ulc-casecoll-tests: Likewise.
23307         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
23308         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
23309         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
23310         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
23311         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
23312         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
23313         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
23314         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
23315         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
23316         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
23317         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
23318         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
23319         * modules/unictype/bidicategory-byname-tests: Likewise.
23320         * modules/unictype/bidicategory-name-tests: Likewise.
23321         * modules/unictype/bidicategory-of-tests: Likewise.
23322         * modules/unictype/bidicategory-test-tests: Likewise.
23323         * modules/unictype/block-list-tests: Likewise.
23324         * modules/unictype/block-of-tests: Likewise.
23325         * modules/unictype/block-test-tests: Likewise.
23326         * modules/unictype/category-C-tests: Likewise.
23327         * modules/unictype/category-Cc-tests: Likewise.
23328         * modules/unictype/category-Cf-tests: Likewise.
23329         * modules/unictype/category-Cn-tests: Likewise.
23330         * modules/unictype/category-Co-tests: Likewise.
23331         * modules/unictype/category-Cs-tests: Likewise.
23332         * modules/unictype/category-L-tests: Likewise.
23333         * modules/unictype/category-Ll-tests: Likewise.
23334         * modules/unictype/category-Lm-tests: Likewise.
23335         * modules/unictype/category-Lo-tests: Likewise.
23336         * modules/unictype/category-Lt-tests: Likewise.
23337         * modules/unictype/category-Lu-tests: Likewise.
23338         * modules/unictype/category-M-tests: Likewise.
23339         * modules/unictype/category-Mc-tests: Likewise.
23340         * modules/unictype/category-Me-tests: Likewise.
23341         * modules/unictype/category-Mn-tests: Likewise.
23342         * modules/unictype/category-N-tests: Likewise.
23343         * modules/unictype/category-Nd-tests: Likewise.
23344         * modules/unictype/category-Nl-tests: Likewise.
23345         * modules/unictype/category-No-tests: Likewise.
23346         * modules/unictype/category-P-tests: Likewise.
23347         * modules/unictype/category-Pc-tests: Likewise.
23348         * modules/unictype/category-Pd-tests: Likewise.
23349         * modules/unictype/category-Pe-tests: Likewise.
23350         * modules/unictype/category-Pf-tests: Likewise.
23351         * modules/unictype/category-Pi-tests: Likewise.
23352         * modules/unictype/category-Po-tests: Likewise.
23353         * modules/unictype/category-Ps-tests: Likewise.
23354         * modules/unictype/category-S-tests: Likewise.
23355         * modules/unictype/category-Sc-tests: Likewise.
23356         * modules/unictype/category-Sk-tests: Likewise.
23357         * modules/unictype/category-Sm-tests: Likewise.
23358         * modules/unictype/category-So-tests: Likewise.
23359         * modules/unictype/category-Z-tests: Likewise.
23360         * modules/unictype/category-Zl-tests: Likewise.
23361         * modules/unictype/category-Zp-tests: Likewise.
23362         * modules/unictype/category-Zs-tests: Likewise.
23363         * modules/unictype/category-and-not-tests: Likewise.
23364         * modules/unictype/category-and-tests: Likewise.
23365         * modules/unictype/category-byname-tests: Likewise.
23366         * modules/unictype/category-name-tests: Likewise.
23367         * modules/unictype/category-none-tests: Likewise.
23368         * modules/unictype/category-of-tests: Likewise.
23369         * modules/unictype/category-or-tests: Likewise.
23370         * modules/unictype/category-test-withtable-tests: Likewise.
23371         * modules/unictype/combining-class-tests: Likewise.
23372         * modules/unictype/ctype-alnum-tests: Likewise.
23373         * modules/unictype/ctype-alpha-tests: Likewise.
23374         * modules/unictype/ctype-blank-tests: Likewise.
23375         * modules/unictype/ctype-cntrl-tests: Likewise.
23376         * modules/unictype/ctype-digit-tests: Likewise.
23377         * modules/unictype/ctype-graph-tests: Likewise.
23378         * modules/unictype/ctype-lower-tests: Likewise.
23379         * modules/unictype/ctype-print-tests: Likewise.
23380         * modules/unictype/ctype-punct-tests: Likewise.
23381         * modules/unictype/ctype-space-tests: Likewise.
23382         * modules/unictype/ctype-upper-tests: Likewise.
23383         * modules/unictype/ctype-xdigit-tests: Likewise.
23384         * modules/unictype/decimal-digit-tests: Likewise.
23385         * modules/unictype/digit-tests: Likewise.
23386         * modules/unictype/mirror-tests: Likewise.
23387         * modules/unictype/numeric-tests: Likewise.
23388         * modules/unictype/property-alphabetic-tests: Likewise.
23389         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
23390         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
23391         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
23392         * modules/unictype/property-bidi-block-separator-tests: Likewise.
23393         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
23394         * modules/unictype/property-bidi-common-separator-tests: Likewise.
23395         * modules/unictype/property-bidi-control-tests: Likewise.
23396         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
23397         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
23398         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
23399         * modules/unictype/property-bidi-european-digit-tests: Likewise.
23400         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
23401         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
23402         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
23403         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
23404         * modules/unictype/property-bidi-pdf-tests: Likewise.
23405         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
23406         * modules/unictype/property-bidi-whitespace-tests: Likewise.
23407         * modules/unictype/property-byname-tests: Likewise.
23408         * modules/unictype/property-combining-tests: Likewise.
23409         * modules/unictype/property-composite-tests: Likewise.
23410         * modules/unictype/property-currency-symbol-tests: Likewise.
23411         * modules/unictype/property-dash-tests: Likewise.
23412         * modules/unictype/property-decimal-digit-tests: Likewise.
23413         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
23414         * modules/unictype/property-deprecated-tests: Likewise.
23415         * modules/unictype/property-diacritic-tests: Likewise.
23416         * modules/unictype/property-extender-tests: Likewise.
23417         * modules/unictype/property-format-control-tests: Likewise.
23418         * modules/unictype/property-grapheme-base-tests: Likewise.
23419         * modules/unictype/property-grapheme-extend-tests: Likewise.
23420         * modules/unictype/property-grapheme-link-tests: Likewise.
23421         * modules/unictype/property-hex-digit-tests: Likewise.
23422         * modules/unictype/property-hyphen-tests: Likewise.
23423         * modules/unictype/property-id-continue-tests: Likewise.
23424         * modules/unictype/property-id-start-tests: Likewise.
23425         * modules/unictype/property-ideographic-tests: Likewise.
23426         * modules/unictype/property-ids-binary-operator-tests: Likewise.
23427         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
23428         * modules/unictype/property-ignorable-control-tests: Likewise.
23429         * modules/unictype/property-iso-control-tests: Likewise.
23430         * modules/unictype/property-join-control-tests: Likewise.
23431         * modules/unictype/property-left-of-pair-tests: Likewise.
23432         * modules/unictype/property-line-separator-tests: Likewise.
23433         * modules/unictype/property-logical-order-exception-tests: Likewise.
23434         * modules/unictype/property-lowercase-tests: Likewise.
23435         * modules/unictype/property-math-tests: Likewise.
23436         * modules/unictype/property-non-break-tests: Likewise.
23437         * modules/unictype/property-not-a-character-tests: Likewise.
23438         * modules/unictype/property-numeric-tests: Likewise.
23439         * modules/unictype/property-other-alphabetic-tests: Likewise.
23440         * modules/unictype/property-other-default-ignorable-code-point-tests:
23441         Likewise.
23442         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
23443         * modules/unictype/property-other-id-continue-tests: Likewise.
23444         * modules/unictype/property-other-id-start-tests: Likewise.
23445         * modules/unictype/property-other-lowercase-tests: Likewise.
23446         * modules/unictype/property-other-math-tests: Likewise.
23447         * modules/unictype/property-other-uppercase-tests: Likewise.
23448         * modules/unictype/property-paired-punctuation-tests: Likewise.
23449         * modules/unictype/property-paragraph-separator-tests: Likewise.
23450         * modules/unictype/property-pattern-syntax-tests: Likewise.
23451         * modules/unictype/property-pattern-white-space-tests: Likewise.
23452         * modules/unictype/property-private-use-tests: Likewise.
23453         * modules/unictype/property-punctuation-tests: Likewise.
23454         * modules/unictype/property-quotation-mark-tests: Likewise.
23455         * modules/unictype/property-radical-tests: Likewise.
23456         * modules/unictype/property-sentence-terminal-tests: Likewise.
23457         * modules/unictype/property-soft-dotted-tests: Likewise.
23458         * modules/unictype/property-space-tests: Likewise.
23459         * modules/unictype/property-terminal-punctuation-tests: Likewise.
23460         * modules/unictype/property-test-tests: Likewise.
23461         * modules/unictype/property-titlecase-tests: Likewise.
23462         * modules/unictype/property-unassigned-code-value-tests: Likewise.
23463         * modules/unictype/property-unified-ideograph-tests: Likewise.
23464         * modules/unictype/property-uppercase-tests: Likewise.
23465         * modules/unictype/property-variation-selector-tests: Likewise.
23466         * modules/unictype/property-white-space-tests: Likewise.
23467         * modules/unictype/property-xid-continue-tests: Likewise.
23468         * modules/unictype/property-xid-start-tests: Likewise.
23469         * modules/unictype/property-zero-width-tests: Likewise.
23470         * modules/unictype/scripts-tests: Likewise.
23471         * modules/unictype/syntax-c-ident-tests: Likewise.
23472         * modules/unictype/syntax-c-whitespace-tests: Likewise.
23473         * modules/unictype/syntax-java-ident-tests: Likewise.
23474         * modules/unictype/syntax-java-whitespace-tests: Likewise.
23475         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
23476         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
23477         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
23478         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
23479         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
23480         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
23481         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
23482         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
23483         * modules/uniname/uniname-tests: Likewise.
23484         * modules/uninorm/canonical-decomposition-tests: Likewise.
23485         * modules/uninorm/compat-decomposition-tests: Likewise.
23486         * modules/uninorm/composition-tests: Likewise.
23487         * modules/uninorm/decomposing-form-tests: Likewise.
23488         * modules/uninorm/decomposition-tests: Likewise.
23489         * modules/uninorm/filter-tests: Likewise.
23490         * modules/uninorm/nfc-tests: Likewise.
23491         * modules/uninorm/nfd-tests: Likewise.
23492         * modules/uninorm/nfkc-tests: Likewise.
23493         * modules/uninorm/nfkd-tests: Likewise.
23494         * modules/uninorm/u8-normcmp-tests: Likewise.
23495         * modules/uninorm/u8-normcoll-tests: Likewise.
23496         * modules/uninorm/u16-normcmp-tests: Likewise.
23497         * modules/uninorm/u16-normcoll-tests: Likewise.
23498         * modules/uninorm/u32-normcmp-tests: Likewise.
23499         * modules/uninorm/u32-normcoll-tests: Likewise.
23500         * modules/unistdio/u8-asnprintf-tests: Likewise.
23501         * modules/unistdio/u8-vasnprintf-tests: Likewise.
23502         * modules/unistdio/u8-vasprintf-tests: Likewise.
23503         * modules/unistdio/u8-vsnprintf-tests: Likewise.
23504         * modules/unistdio/u8-vsprintf-tests: Likewise.
23505         * modules/unistdio/u16-asnprintf-tests: Likewise.
23506         * modules/unistdio/u16-vasnprintf-tests: Likewise.
23507         * modules/unistdio/u16-vasprintf-tests: Likewise.
23508         * modules/unistdio/u16-vsnprintf-tests: Likewise.
23509         * modules/unistdio/u16-vsprintf-tests: Likewise.
23510         * modules/unistdio/u32-asnprintf-tests: Likewise.
23511         * modules/unistdio/u32-vasnprintf-tests: Likewise.
23512         * modules/unistdio/u32-vasprintf-tests: Likewise.
23513         * modules/unistdio/u32-vsnprintf-tests: Likewise.
23514         * modules/unistdio/u32-vsprintf-tests: Likewise.
23515         * modules/unistdio/ulc-asnprintf-tests: Likewise.
23516         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
23517         * modules/unistdio/ulc-vasprintf-tests: Likewise.
23518         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
23519         * modules/unistdio/ulc-vsprintf-tests: Likewise.
23520         * modules/unistr/u8-check-tests: Likewise.
23521         * modules/unistr/u8-chr-tests: Likewise.
23522         * modules/unistr/u8-cmp-tests: Likewise.
23523         * modules/unistr/u8-cmp2-tests: Likewise.
23524         * modules/unistr/u8-cpy-alloc-tests: Likewise.
23525         * modules/unistr/u8-cpy-tests: Likewise.
23526         * modules/unistr/u8-mblen-tests: Likewise.
23527         * modules/unistr/u8-mbsnlen-tests: Likewise.
23528         * modules/unistr/u8-mbtouc-tests: Likewise.
23529         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
23530         * modules/unistr/u8-mbtoucr-tests: Likewise.
23531         * modules/unistr/u8-move-tests: Likewise.
23532         * modules/unistr/u8-next-tests: Likewise.
23533         * modules/unistr/u8-prev-tests: Likewise.
23534         * modules/unistr/u8-set-tests: Likewise.
23535         * modules/unistr/u8-stpcpy-tests: Likewise.
23536         * modules/unistr/u8-stpncpy-tests: Likewise.
23537         * modules/unistr/u8-strcat-tests: Likewise.
23538         * modules/unistr/u8-strcmp-tests: Likewise.
23539         * modules/unistr/u8-strcoll-tests: Likewise.
23540         * modules/unistr/u8-strcpy-tests: Likewise.
23541         * modules/unistr/u8-strdup-tests: Likewise.
23542         * modules/unistr/u8-strlen-tests: Likewise.
23543         * modules/unistr/u8-strmblen-tests: Likewise.
23544         * modules/unistr/u8-strmbtouc-tests: Likewise.
23545         * modules/unistr/u8-strncat-tests: Likewise.
23546         * modules/unistr/u8-strncmp-tests: Likewise.
23547         * modules/unistr/u8-strncpy-tests: Likewise.
23548         * modules/unistr/u8-strnlen-tests: Likewise.
23549         * modules/unistr/u8-to-u16-tests: Likewise.
23550         * modules/unistr/u8-to-u32-tests: Likewise.
23551         * modules/unistr/u8-uctomb-tests: Likewise.
23552         * modules/unistr/u16-check-tests: Likewise.
23553         * modules/unistr/u16-chr-tests: Likewise.
23554         * modules/unistr/u16-cmp-tests: Likewise.
23555         * modules/unistr/u16-cmp2-tests: Likewise.
23556         * modules/unistr/u16-cpy-alloc-tests: Likewise.
23557         * modules/unistr/u16-cpy-tests: Likewise.
23558         * modules/unistr/u16-mblen-tests: Likewise.
23559         * modules/unistr/u16-mbsnlen-tests: Likewise.
23560         * modules/unistr/u16-mbtouc-tests: Likewise.
23561         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
23562         * modules/unistr/u16-mbtoucr-tests: Likewise.
23563         * modules/unistr/u16-move-tests: Likewise.
23564         * modules/unistr/u16-next-tests: Likewise.
23565         * modules/unistr/u16-prev-tests: Likewise.
23566         * modules/unistr/u16-set-tests: Likewise.
23567         * modules/unistr/u16-stpcpy-tests: Likewise.
23568         * modules/unistr/u16-stpncpy-tests: Likewise.
23569         * modules/unistr/u16-strcat-tests: Likewise.
23570         * modules/unistr/u16-strcmp-tests: Likewise.
23571         * modules/unistr/u16-strcoll-tests: Likewise.
23572         * modules/unistr/u16-strcpy-tests: Likewise.
23573         * modules/unistr/u16-strdup-tests: Likewise.
23574         * modules/unistr/u16-strlen-tests: Likewise.
23575         * modules/unistr/u16-strmblen-tests: Likewise.
23576         * modules/unistr/u16-strmbtouc-tests: Likewise.
23577         * modules/unistr/u16-strncat-tests: Likewise.
23578         * modules/unistr/u16-strncmp-tests: Likewise.
23579         * modules/unistr/u16-strncpy-tests: Likewise.
23580         * modules/unistr/u16-strnlen-tests: Likewise.
23581         * modules/unistr/u16-to-u32-tests: Likewise.
23582         * modules/unistr/u16-to-u8-tests: Likewise.
23583         * modules/unistr/u16-uctomb-tests: Likewise.
23584         * modules/unistr/u32-check-tests: Likewise.
23585         * modules/unistr/u32-chr-tests: Likewise.
23586         * modules/unistr/u32-cmp-tests: Likewise.
23587         * modules/unistr/u32-cmp2-tests: Likewise.
23588         * modules/unistr/u32-cpy-alloc-tests: Likewise.
23589         * modules/unistr/u32-cpy-tests: Likewise.
23590         * modules/unistr/u32-mblen-tests: Likewise.
23591         * modules/unistr/u32-mbsnlen-tests: Likewise.
23592         * modules/unistr/u32-mbtouc-tests: Likewise.
23593         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
23594         * modules/unistr/u32-mbtoucr-tests: Likewise.
23595         * modules/unistr/u32-move-tests: Likewise.
23596         * modules/unistr/u32-next-tests: Likewise.
23597         * modules/unistr/u32-prev-tests: Likewise.
23598         * modules/unistr/u32-set-tests: Likewise.
23599         * modules/unistr/u32-stpcpy-tests: Likewise.
23600         * modules/unistr/u32-stpncpy-tests: Likewise.
23601         * modules/unistr/u32-strcat-tests: Likewise.
23602         * modules/unistr/u32-strcmp-tests: Likewise.
23603         * modules/unistr/u32-strcoll-tests: Likewise.
23604         * modules/unistr/u32-strcpy-tests: Likewise.
23605         * modules/unistr/u32-strdup-tests: Likewise.
23606         * modules/unistr/u32-strlen-tests: Likewise.
23607         * modules/unistr/u32-strmblen-tests: Likewise.
23608         * modules/unistr/u32-strmbtouc-tests: Likewise.
23609         * modules/unistr/u32-strncat-tests: Likewise.
23610         * modules/unistr/u32-strncmp-tests: Likewise.
23611         * modules/unistr/u32-strncpy-tests: Likewise.
23612         * modules/unistr/u32-strnlen-tests: Likewise.
23613         * modules/unistr/u32-to-u16-tests: Likewise.
23614         * modules/unistr/u32-to-u8-tests: Likewise.
23615         * modules/unistr/u32-uctomb-tests: Likewise.
23616         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
23617         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
23618         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
23619         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
23620         * modules/uniwidth/u8-strwidth-tests: Likewise.
23621         * modules/uniwidth/u8-width-tests: Likewise.
23622         * modules/uniwidth/u16-strwidth-tests: Likewise.
23623         * modules/uniwidth/u16-width-tests: Likewise.
23624         * modules/uniwidth/u32-strwidth-tests: Likewise.
23625         * modules/uniwidth/u32-width-tests: Likewise.
23626         * modules/uniwidth/width-tests: Likewise.
23627
23628 2010-05-18  Richard Jones  <rjones@redhat.com>
23629
23630         doc: users.txt: list hivex
23631         * users.txt: Add hivex.
23632
23633 2010-05-18  Richard Jones  <rjones@redhat.com>
23634
23635         doc: users.txt: list febootstrap
23636         * users.txt: Add febootstrap.
23637
23638 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
23639
23640         bootstrap: fix an error when gnulib is not used as a git submodule
23641         * build-aux/bootstrap (gnulib_path): If its length is zero then
23642         assign "gnulib" to it.
23643         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
23644
23645 2010-05-16  Bruno Haible  <bruno@clisp.org>
23646
23647         Avoid autoconf warnings about AM_ICONV.
23648         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
23649         2.64.
23650
23651 2010-05-16  Bruno Haible  <bruno@clisp.org>
23652
23653         absolute-header: Make the macro usable in more situations.
23654         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
23655         from gl_ABSOLUTE_HEADER.
23656         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
23657
23658 2010-05-16  James Youngman  <jay@gnu.org>
23659
23660         doc: update users.txt
23661         * users.txt: Add CSSC.
23662
23663 2010-05-16  Jim Meyering  <meyering@redhat.com>
23664
23665         init.sh: fix an error in the previous change; add more comments
23666         * tests/init.sh: Compare exit code in loop against 9, not 2.
23667         Patch by Bruno Haible.
23668         Make the two tests more similar by adding an empty "then" clause.
23669         Add comments.
23670
23671         init.sh: avoid unnecessary shell re-exec
23672         * tests/init.sh: Improve the re-exec-required check to first test the
23673         current shell.  If it passes the test, do not search for a shell that
23674         does pass, and do not re-exec.  This test is particularly contorted to
23675         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
23676         of $(...) evokes a syntax error and causes immediate shell exit with
23677         status 2.  Bruno Haible reported that the re-exec made it impossible
23678         to single-step through any init.sh-using script.
23679
23680 2010-05-16  Bruno Haible  <bruno@clisp.org>
23681
23682         Fix collision between gnulib's and libintl's printf replacements.
23683         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
23684         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
23685         (printf): When using GNU C, map the __printf__ function to rpl_printf
23686         via __asm__. When not using GNU C, define rpl_printf instead of
23687         __printf__.
23688         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
23689         commit.
23690         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
23691         commit.
23692         * m4/asm-underscore.m4: New file.
23693         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
23694         * modules/stdio (Files): Add m4/asm-underscore.m4.
23695         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
23696         Reported by Ben Pfaff.
23697
23698 2010-05-16  Bruno Haible  <bruno@clisp.org>
23699
23700         verify: Avoid skipping the test on openSUSE 11.0.
23701         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
23702
23703 2010-05-13  Bruno Haible  <bruno@clisp.org>
23704
23705         Avoid useless warnings from G++.
23706         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
23707         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
23708         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23709
23710 2010-05-11  Jim Meyering  <meyering@redhat.com>
23711
23712         maint.mk: tweak preceding change
23713         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
23714         regexps tighter by anchoring at EOL, and make the new group "shy"
23715         for slightly decreased overhead.
23716
23717 2010-05-11  Eric Blake  <eblake@redhat.com>
23718
23719         maint.mk: gnulib doesn't guarantee NSIG
23720         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
23721
23722 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23723
23724         test-pwrite.c: Remove unused variable declaration.
23725         * tests/test-pwrite.c (main): Remove read_buf declaration.
23726
23727         Remove useless test-pwrite.sh file.
23728         * tests/test-pwrite.sh: Delete file.
23729         * modules/pwrite-tests: Remove references.
23730         Reported by Bruno Haible.
23731
23732 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23733
23734         init.sh: fix a typo
23735         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
23736
23737 2010-05-10  Jim Meyering  <meyering@redhat.com>
23738
23739         maint.mk: avoid using a temporary file in the always-defined-macros check
23740         * top/maint.mk (.re-defmac): Remove rule.
23741         (gl_trap_): Remove definition.
23742         (sc_prohibit_always-defined_macros): Rewrite not to create and
23743         depend on a temporary file.  Instead, depend on GNU grep's ability
23744         to read a list of regular expressions from stdin when given "-f -".
23745
23746 2010-05-09  Bruno Haible  <bruno@clisp.org>
23747
23748         Update to GNU gettext 0.18, part 1.
23749         * m4/gettext.m4: Update to GNU gettext 0.18.
23750         * m4/intl.m4: Likewise.
23751         * m4/po.m4: Likewise.
23752         * modules/gettext (Files): Add m4/fcntl-o.m4.
23753         (configure.ac): Require gettext infrastructure from version 0.18.
23754
23755 2010-05-09  Jim Meyering  <meyering@redhat.com>
23756
23757         init.sh: enable MALLOC_PERTURB_
23758         * tests/init.sh: Enable glibc's malloc-perturbing option.
23759
23760         maint.mk: improve sc_cross_check_PATH_usage_in_tests
23761         With my recent change in init.sh from the two-line form:
23762             -#   : ${srcdir=.}
23763             -#   . "$srcdir/init.sh"; path_prepend_ .
23764             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
23765         I noticed that using the one-line form would cause this test
23766         to fail with a false-positive, or to stop working altogether,
23767         depending on whether help-version changed or all the tests did.
23768         * top/maint.mk (_hv_regex): Remove this definition.
23769         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
23770         (_hv_regex_strong): Use a stronger regex to check for conformance.
23771         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
23772         Give a separate diagnostic for lack of conforming use.
23773
23774         maint.mk: prohibit definition of symbols defined by gnulib
23775         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
23776         definition of symbols defined by gnulib.
23777
23778 2010-05-09  Bruno Haible  <bruno@clisp.org>
23779
23780         acl: Avoid test failure on Cygwin-hosted mingw.
23781         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
23782
23783 2010-05-09  Bruno Haible  <bruno@clisp.org>
23784
23785         error: Use system's fcntl function.
23786         * lib/error.c (fcntl): Undefine.
23787
23788 2010-05-09  Jim Meyering  <meyering@redhat.com>
23789
23790         verify: adjust formatting to be more consistent
23791         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
23792         argument-list '('s, and after one comma.
23793
23794 2010-05-09  Bruno Haible  <bruno@clisp.org>
23795
23796         error: More reliable output on mingw.
23797         * lib/error.c: Include <windows.h>.
23798         (is_open): New function.
23799         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
23800         defined.
23801
23802 2010-05-09  Bruno Haible  <bruno@clisp.org>
23803
23804         vasnprintf: Fix syntax errors in libintl build on mingw.
23805         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
23806         pad_ourselves and prec_ourselves after use.
23807
23808 2010-05-08  Bruno Haible  <bruno@clisp.org>
23809
23810         * lib/config.charset: Update comments for Cygwin 1.7.
23811         * lib/localcharset.c: Likewise.
23812
23813 2010-05-07  Jim Meyering  <meyering@redhat.com>
23814
23815         init.sh: improve comments
23816         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
23817         . "${srcdir=.}/init.sh"; path_prepend_ .
23818         Add a note about path_prepend_ and the alternative of using
23819         TESTS_ENVIRONMENT.
23820
23821 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
23822
23823         exclude: Unescape hashed patterns in wildcard mode.
23824         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
23825         to the hash list.
23826         * tests/test-exclude8.sh: New test case.
23827         * modules/exclude-tests: Add new test.
23828
23829 2010-05-05  Eric Blake  <eblake@redhat.com>
23830
23831         verify: automate tests
23832         * modules/verify-tests: New module.
23833         * tests/test-verify.sh: New file.
23834         * tests/test-verify.c: Guard each negative test with a unique id.
23835         Also avoid warning about unused left hand of comma expressions.
23836
23837 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
23838
23839         Further improvements to verify.h, suggested by Eric Blake.
23840         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
23841         the GL_* versions, to avoid collision with OpenGL.
23842         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
23843         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
23844         than testing merely whether it's defined.
23845
23846         Modify verify.h to pacify gcc -Wredundant_decls.
23847         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
23848         These use the prefix "GL_" since they're likely to be useful elsewhere.
23849         We may need to break them out into a different .h file.
23850         (__COUNTER__): Define to 0 if the compiler doesn't support it.
23851         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
23852         of verify_function__.
23853
23854 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23855
23856         Tests for module pwrite.
23857         * modules/pwrite-tests: New file.
23858         * tests/test-pwrite.sh: New file.
23859         * tests/test-pwrite.c: New file.
23860
23861         New module pwrite.
23862         * lib/unistd.in.h (pwrite): New declaration.
23863         * lib/pwrite.c: New file, from glibc with modifications.
23864         * m4/pwrite.m4: New file.
23865         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
23866         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
23867         REPLACE_PWRITE.
23868         * modules/pwrite: New file.
23869         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
23870         REPLACE_PWRITE.
23871         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
23872         * doc/posix-functions/pwrite.texi: Mention the new module.
23873
23874 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23875
23876         pread: Update documentation.
23877         * doc/posix-functions/pread.texi: Mention the 'pread' module.
23878
23879 2010-05-04  Eric Blake  <eblake@redhat.com>
23880
23881         docs: update cygwin progress
23882         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
23883         this bug.
23884         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
23885         Added in cygwin 1.7.2.
23886         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
23887         Likewise.
23888         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
23889         Likewise.
23890         * doc/glibc-functions/dup3.texi (dup3): Likewise.
23891         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
23892         * doc/glibc-functions/accept4.texi (accept4): Likewise.
23893         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
23894         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
23895         Mention nproc module.
23896         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
23897         bug in cygwin 1.7.5 addition.
23898         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
23899         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
23900         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
23901         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
23902         1.7.5.
23903         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
23904         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
23905         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
23906         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
23907         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
23908         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
23909         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
23910         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
23911         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
23912         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
23913         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
23914         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
23915         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
23916         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
23917         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
23918         Likewise.
23919         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
23920         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
23921         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
23922         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
23923         Likewise.
23924         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
23925         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
23926         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
23927         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
23928         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
23929         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
23930         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
23931         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
23932         Likewise.
23933         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
23934         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
23935         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
23936         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
23937         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
23938         Likewise.
23939         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
23940         Likewise.
23941         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
23942         Likewise.
23943         * doc/glibc-functions/xdrrec_endofrecord.texi
23944         (xdrrec_endofrecord): Likewise.
23945         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
23946         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
23947         Likewise.
23948         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
23949         Likewise.
23950
23951 2010-05-04  Jim Meyering  <meyering@redhat.com>
23952
23953         gendocs.sh: make its "-s FILE" option more useful
23954         * build-aux/gendocs.sh: When honoring the -s FILE option, update
23955         $PACKAGE to reflect the probably-different basename of "FILE".
23956
23957 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
23958
23959         bootstrap: don't ignore download_po_files failure
23960         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
23961         failure.
23962
23963 2010-05-03  Jim Meyering  <meyering@redhat.com>
23964
23965         maint.mk: allow to pass options to gendocs.sh
23966         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
23967         (gendocs_options_): New overridable variable.
23968
23969         gnu-web-doc-update: don't ignore configure or build failure
23970         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
23971
23972         announce-gen: backslash-escape '@'s in --help output
23973         * build-aux/announce-gen: Fix syntax errors.
23974
23975         maint.mk, announce-gen: allow project-specific announcement mail headers
23976         * top/maint.mk (translation_project_): Define default.
23977         (announcement_Cc_, announcement_mail_headers_): Likewise.
23978         (announcement): Invoke announce-gen with new --mail-headers option.
23979         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
23980
23981         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
23982         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
23983         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
23984         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
23985         line in the "err2" output file when running "make check" in verbose
23986         mode (i.e., with set -x enabled).
23987
23988 2010-05-03  Bruno Haible  <bruno@clisp.org>
23989
23990         wctob: Fix for weird platforms.
23991         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
23992         argument value.
23993
23994 2010-05-03  Jim Meyering  <meyering@redhat.com>
23995
23996         maint.mk: prohibit unwarranted use of <strings.h>
23997         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
23998         strings.h in a file that does not also use strcasecmp, strncasecmp,
23999         ffs or ffsll.
24000
24001         maint.mk: remove obsolete comments
24002         * top/maint.mk: Remove stale, commented-out rules.
24003
24004 2010-05-02  Bruno Haible  <bruno@clisp.org>
24005
24006         wcwidth: Declare also when it's aliased.
24007         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
24008         macro.
24009
24010 2010-05-02  Bruno Haible  <bruno@clisp.org>
24011
24012         Fix regression from 2010-04-25.
24013         * gnulib-tool (func_modules_transitive_closure): Check the status of
24014         all modules, not only of the tests that are of the form foo-tests where
24015         foo is a module.
24016
24017 2010-05-02  Bruno Haible  <bruno@clisp.org>
24018
24019         wctob: Work around nasty Cygwin 1.7.2 bug.
24020         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
24021         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
24022
24023 2010-05-01  Bruno Haible  <bruno@clisp.org>
24024
24025         fpurge: Sharper test.
24026         * tests/test-fpurge.c (main): Add one more ftell check.
24027         * modules/fpurge-tests (Depends-on): Add ftell.
24028         Suggested by Eric Blake.
24029
24030 2010-05-01  Bruno Haible  <bruno@clisp.org>
24031
24032         ftello: Another test.
24033         * tests/test-ftello3.c: New file.
24034         * modules/ftello-tests (Files): Add it.
24035         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
24036         MOSTLYCLEANFILES.
24037
24038         ftell: Another test.
24039         * tests/test-ftell3.c: New file.
24040         * modules/ftell-tests (Files): Add it.
24041         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
24042         MOSTLYCLEANFILES.
24043
24044 2010-05-01  Bruno Haible  <bruno@clisp.org>
24045
24046         ftell, ftello: Work around Solaris bug.
24047         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
24048         * lib/ftello.c: Include stdio-impl.h.
24049         (ftello): On Solaris, when _IOWRT is set, compute the result without
24050         looking at _IOREAD.
24051         * modules/ftello (Files): Add lib/stdio-impl.h.
24052         * doc/posix-functions/ftell.texi: Mention Solaris bug.
24053         * doc/posix-functions/ftello.texi: Likewise.
24054         Reported by Eric Blake.
24055
24056 2010-05-01  Bruno Haible  <bruno@clisp.org>
24057
24058         freading: Adapt to special meaning of _IOREAD flag on Solaris.
24059         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
24060         the _IOWRT flag is also set.
24061
24062 2010-05-01  Bruno Haible  <bruno@clisp.org>
24063
24064         Fix doc about a HP-UX stdio bug.
24065         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
24066         * doc/posix-functions/ftello.texi: Likewise.
24067
24068 2010-05-01  Bruno Haible  <bruno@clisp.org>
24069
24070         lseek test: Fix failure on Solaris.
24071         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
24072         output.
24073
24074 2010-04-30  Jim Meyering  <meyering@redhat.com>
24075
24076         bootstrap: don't ignore failure to generate po*/Makevars
24077         * build-aux/bootstrap (with_gettext): Don't ignore failure
24078         to create po/Makevars or runtime-po/Makevars.
24079
24080 2010-04-29  Eric Blake  <eblake@redhat.com>
24081
24082         headers: relax license to LGPLv2+
24083         * modules/fcntl-h (License): Relax license.
24084         * modules/getopt-posix (License): Likewise.
24085         * modules/locale (License): Likewise.
24086         * modules/math (License): Likewise.
24087         * modules/pty (License): Likewise.
24088         * modules/sched (License): Likewise.
24089         * modules/search (License): Likewise.
24090         * modules/spawn (License): Likewise.
24091         * modules/stdarg (License): Likewise.
24092         * modules/sysexits (License): Likewise.
24093
24094 2010-04-29  Jim Meyering  <meyering@redhat.com>
24095
24096         inttypes: relax license to LGPLv2+
24097         * modules/inttypes (License): Relax license.
24098
24099 2010-04-29  Simon Josefsson  <simon@josefsson.org>
24100
24101         * top/maint.mk (indent): Run twice to produce idempotent results.
24102
24103 2010-04-28  Bruno Haible  <bruno@clisp.org>
24104
24105         getdate: Generate getdate.c in the source directory.
24106         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
24107         MOSTLYCLEANFILES.
24108         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
24109
24110 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
24111
24112         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
24113         is not declared as a const *; avoid warnings in that case.
24114
24115 2010-04-28  Eric Blake  <eblake@redhat.com>
24116
24117         canonicalize-lgpl: avoid compiler warning
24118         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
24119         declaration' / 'extraneous semicolon' warning with some compilers.
24120         Reported by Andreas Gruenbacher.
24121
24122 2010-04-28  Jim Meyering  <meyering@redhat.com>
24123
24124         init.sh: ensure a more reliable exit status when exiting via trap
24125         * tests/init.sh (setup_): Don't rely on $? in signal handler.
24126         Inspired by patches from Dmitry V. Levin.
24127         Also trap on signal 3 (SIGQUIT).
24128
24129 2010-04-27  Bruno Haible  <bruno@clisp.org>
24130
24131         Update doc about utimes().
24132         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
24133         'utimens' module.
24134         Reported by Andreas Gruenbacher <agruen@suse.de>.
24135
24136 2010-04-27  Eric Blake  <eblake@redhat.com>
24137
24138         full-read, full-write: relax license
24139         * modules/full-read (License): Drop to LGPLv2+.
24140         * modules/full-write (License): Likewise.
24141         * modules/safe-read (License): Likewise.
24142         * modules/safe-write (License): Likewise.
24143
24144         pthread: mention library for linking
24145         * modules/pthread (Link): Mention $(LIB_PTHREAD).
24146
24147 2010-04-27  Jim Meyering  <meyering@redhat.com>
24148
24149         maint.mk: fix a bug introduced in last change
24150         * top/maint.mk (gl_assured_headers_): Now that all names are on
24151         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
24152         is not anchored to end of word, it should be adequate.
24153
24154         maint.mk: avoid side-effect in latest syntax-check
24155         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
24156         to run commands via $(shell...), and hence to incur cost only when
24157         the new rule is actually run.
24158
24159         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
24160         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
24161         and use that to create a regexp used to detect all #if HAVE_..._H uses.
24162         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
24163         (gl_assured_headers_, az_, AZ_): Define.
24164         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
24165
24166 2010-04-26  Jim Meyering  <jim@meyering.net>
24167             Bruno Haible  <bruno@clisp.org>
24168
24169         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
24170         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
24171         Prompted by an exchange with Gilles Espinasse.
24172
24173 2010-04-26  Jim Meyering  <meyering@redhat.com>
24174
24175         git-version-gen: aesthetic tweak
24176         * build-aux/git-version-gen: Use "$nl" rather than a literal,
24177         so that the command remains on a single line.
24178
24179 2010-04-26  Eric Blake  <eblake@redhat.com>
24180
24181         git-version-gen: allow use on EBCDIC hosts
24182         * build-aux/git-version-gen (dirty): Use literal rather than tying
24183         ourselves to ascii.
24184         Reported by Steve Goetze.
24185
24186 2010-04-25  Bruno Haible  <bruno@clisp.org>
24187
24188         netdb: Add support for GNULIB_POSIXCHECK.
24189         * lib/netdb.in.h: Include warn-on-use.h.
24190         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
24191         functions are used when GNULIB_POSIXCHECK is defined and the
24192         getaddrinfo module is not in use.
24193         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
24194         freeaddrinfo, gai_strerror, getnameinfo are declared.
24195         * modules/netdb (Depends-on): Add warn-on-use.
24196         (Makefile.am): Include warn-on-use.h in netdb.h.
24197
24198 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
24199
24200         build: avoid "make check" failure without .git/ directory
24201         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
24202         there is no .git/ directory.
24203
24204 2010-04-25  Bruno Haible  <bruno@clisp.org>
24205
24206         ptsname: Fix misuse of ttyname_r.
24207         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
24208         of errno.
24209
24210 2010-04-25  Bruno Haible  <bruno@clisp.org>
24211
24212         ttyname_r: Make it work on Solaris 10.
24213         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
24214         if the system function has the POSIX declaration. Test whether the
24215         function fails if the buffer is less than 128 bytes large.
24216         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
24217         system's ttyname_r function. Provide a reasonably large buffer.
24218         * modules/ttyname_r (Depends-on): Add extensions.
24219         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
24220
24221 2010-04-25  Bruno Haible  <bruno@clisp.org>
24222
24223         Use the 'extensions' module for some more functions on Solaris.
24224         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
24225         module.
24226         * doc/posix-functions/ctime_r.texi: Likewise.
24227         * doc/posix-functions/getgrgid_r.texi: Likewise.
24228         * doc/posix-functions/getgrnam_r.texi: Likewise.
24229         * doc/posix-functions/getpwnam_r.texi: Likewise.
24230         * doc/posix-functions/getpwuid_r.texi: Likewise.
24231         * doc/posix-functions/readdir_r.texi: Likewise.
24232         * doc/posix-functions/sigwait.texi: Likewise.
24233         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
24234         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
24235
24236 2010-04-25  Bruno Haible  <bruno@clisp.org>
24237
24238         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
24239         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
24240         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
24241         * lib/ttyname_r.c: Include <limits.h>.
24242         (ttyname_r): Define using the system's ttyname_r function, if it exists
24243         and not on Solaris.
24244         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
24245         set.
24246         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
24247         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
24248         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
24249         Reported by Simon Josefsson.
24250
24251 2010-04-25  Bruno Haible  <bruno@clisp.org>
24252
24253         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
24254         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
24255         * doc/posix-functions/ctime_r.texi: Likewise.
24256         * doc/posix-functions/getgrgid_r.texi: Likewise.
24257         * doc/posix-functions/getgrnam_r.texi: Likewise.
24258         * doc/posix-functions/getlogin_r.texi: Likewise.
24259         * doc/posix-functions/getpwnam_r.texi: Likewise.
24260         * doc/posix-functions/getpwuid_r.texi: Likewise.
24261         * doc/posix-functions/readdir_r.texi: Likewise.
24262         * doc/posix-functions/sigwait.texi: Likewise.
24263         * doc/posix-functions/ttyname_r.texi: Likewise.
24264         Reported by Simon Josefsson.
24265
24266 2010-04-25  Bruno Haible  <bruno@clisp.org>
24267
24268         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
24269         * gnulib-tool (func_usage): Document that --with-*-tests options apply
24270         also to --create-testdir.
24271         (func_acceptable): Don't consider the status of *-tests modules here.
24272         (func_modules_transitive_closure): Consider it here, before including a
24273         test module.
24274         (func_import, func_create_testdir): Set inc_all_direct_tests,
24275         inc_all_indirect_tests.
24276         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
24277         --create-testdir and --create-megatestdir.
24278
24279 2010-04-25  Bruno Haible  <bruno@clisp.org>
24280
24281         gnulib-tool: Add --without-*-tests options.
24282         * gnulib-tool (func_usage): Document the --without-*-tests options.
24283         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
24284         excl_unportable_tests): New variables.
24285         Fail if they are specified with --import or --update.
24286         (func_acceptable): Respect the excl_*_tests variables.
24287         (func_import): Set the excl_*_tests variables to empty.
24288
24289 2010-04-25  Simon Josefsson  <simon@josefsson.org>
24290             Bruno Haible  <bruno@clisp.org>
24291
24292         Work around a MacOS X 10.4 bug with openpty.
24293         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
24294         * tests/test-openpty.c (main): Close the master side explicitly.
24295
24296 2010-04-25  Bruno Haible  <bruno@clisp.org>
24297
24298         strnlen: Fix a C++ test error on MacOS X and Solaris.
24299         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
24300         the function is not declared.
24301         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
24302         Simon Josefsson.
24303
24304 2010-04-24  Bruno Haible  <bruno@clisp.org>
24305
24306         Avoid a gcc warning.
24307         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
24308         of correct type for %08lx directive.
24309         Reported by Eric Blake.
24310
24311 2010-04-24  Bruno Haible  <bruno@clisp.org>
24312
24313         vasnprintf: Correct errno value in case of out-of-memory.
24314         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
24315         or sprintf. Use the errno value from SNPRINTF or sprintf.
24316         Reported by Ian Beckwith <ianb@erislabs.net>.
24317
24318 2010-04-24  Bruno Haible  <bruno@clisp.org>
24319
24320         ansi-c++-opt: Find correct compiler when cross-compiling.
24321         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
24322         AC_CHECK_PROGS.
24323         Reported by Simon Josefsson.
24324
24325 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
24326
24327         vc-list-files: Add support for subversion
24328         * build-aux/vc-list-files: Use "svn list" to generate the list of
24329         files controlled by subversion.
24330
24331 2010-04-23  Jim Meyering  <meyering@redhat.com>
24332
24333         vc-list-files tests: convert to use init.sh
24334         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
24335         path_prepend_.
24336         Use Exit, not exit.
24337         Use skip_ rather than open coding it.
24338         Remove trap set-up and compare definitions.
24339         * tests/test-vc-list-files-git.sh: Likewise.
24340         * modules/vc-list-files-tests (Files): Add tests/init.sh.
24341
24342 2010-04-22  Simon Josefsson  <simon@josefsson.org>
24343
24344         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
24345         backup files.
24346
24347 2010-04-21  Simon Josefsson  <simon@josefsson.org>
24348
24349         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
24350
24351 2010-04-20  Eric Blake  <eblake@redhat.com>
24352
24353         tests: be robust to ignored SIGPIPE
24354         * tests/test-select-in.sh: Consume all output.
24355         * tests/test-lseek.sh: Check correct exit status, while avoiding
24356         EPIPE.
24357
24358 2010-04-20  Simon Josefsson  <simon@josefsson.org>
24359             Bruno Haible  <bruno@clisp.org>
24360
24361         visibility: Don't use -fvisibility if it leads to a warning.
24362         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
24363         yes, don't pretend that visibility works if it leads to a warning.
24364         Reported by Mike Gran <spk121@yahoo.com>.
24365
24366 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
24367
24368         * build-aux/bootstrap: Use "git -h" for testing for supported options
24369         instead of "git --help".  The short-form option only shows a summary,
24370         and doesn't layout the full man page.  Grep for the full option name
24371         in the summary, too.
24372
24373 2010-04-19  Bruno Haible  <bruno@clisp.org>
24374
24375         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
24376         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
24377         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
24378         mention of RELOCATABLE_STRIP.
24379         Reported by Sylvain Beucler <beuc@beuc.net>.
24380
24381 2010-04-19  Bruno Haible  <bruno@clisp.org>
24382
24383         * lib/diffseq.h: Fix typo in comment.
24384         Reported by Eric Blake.
24385
24386 2010-04-19  Bruno Haible  <bruno@clisp.org>
24387
24388         ioctl: Move autoconf macro to a .m4 file.
24389         * m4/ioctl.m4: New file, extracted from modules/ioctl.
24390         * modules/ioctl (Files): Add it.
24391         (configure.ac): Simply invoke gl_FUNC_IOCTL.
24392         Reported by Ian Beckwith <ianb@erislabs.net>.
24393
24394 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
24395             Bruno Haible  <bruno@clisp.org>
24396
24397         diffseq: Accommodate use-case with abstract arrays.
24398         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
24399         is not defined.
24400         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
24401         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
24402
24403 2010-04-18  Bruno Haible  <bruno@clisp.org>
24404
24405         * doc/posix-headers/stdbool.texi: More precise wording.
24406
24407 2010-04-17  Jim Meyering  <meyering@redhat.com>
24408
24409         maint.mk: use gnu-style indentation in an embedded perl script
24410         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
24411         Rename variable: s/two/last_two_bytes/
24412
24413 2010-04-16  Eric Blake  <eblake@redhat.com>
24414
24415         test-stdbool: skip test that fails with Solaris CC
24416         * tests/test-stdbool.c (f): Skip test that causes compilation
24417         error under buggy C++ compiler.
24418         * lib/stdbool.in.h: Document the limitation.
24419         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
24420
24421         setenv: allow compilation with C++
24422         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
24423         register keyword.
24424
24425         stdint: allow test to pass with C++
24426         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
24427
24428         getopt: allow compilation with C++
24429         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
24430         struct.
24431         * lib/getopt.c (_getopt_internal_r): Use correct type.
24432         Reported by Dagobert Michelson, via Joel E. Denny.
24433
24434 2010-04-16  Bruno Haible  <bruno@clisp.org>
24435
24436         Override netdb.h always.
24437         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
24438         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
24439         Reported by Ludovic Courtès <ludo@gnu.org>.
24440
24441 2010-04-15  Bruno Haible  <bruno@clisp.org>
24442
24443         openpty: Fix mistake from 2010-03-21.
24444         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
24445         Reported by Simon Josefsson.
24446
24447 2010-04-15  Eric Blake  <eblake@redhat.com>
24448
24449         test-forkpty: fix expected signature
24450         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
24451         Reported by Simon Josefsson.
24452
24453 2010-04-15  Jim Meyering  <meyering@redhat.com>
24454
24455         maint.mk: texinfo_suffix_re_: correct the default regexp
24456         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
24457
24458         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
24459         make it configurable via texinfo_suffix_re_.
24460
24461 2010-04-14  Eric Blake  <eblake@redhat.com>
24462
24463         strtok_r: relax license to LGPLv2+
24464         * modules/strtok_r (License): Relax license.
24465         Reported by Matthias Bolte.
24466
24467 2010-04-14  Simon Josefsson  <simon@josefsson.org>
24468
24469         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
24470         version 1.4.4 by default instead of requiring the libgcrypt
24471         version used during build.  This makes it possible to use the
24472         application with older but still binary compatible libgcrypt
24473         versions.
24474
24475 2010-04-13  Eric Blake  <eblake@redhat.com>
24476
24477         getopt-gnu: match recent glibc fixes and posix ruling
24478         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
24479         '+' handling, when requesting extensions.
24480         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
24481         'W;' handling.
24482         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
24483         * doc/posix-functions/getopt.texi (getopt): Document this.
24484         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24485         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24486         Likewise.
24487
24488         getopt: merge bug fixes from glibc
24489         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
24490         diagnostics.  Honor '+:' correctly.  Reject ';'.
24491
24492         getopt-posix: detect MacOS bug
24493         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
24494         optind when missing a required argument.
24495         * doc/posix-functions/getopt.texi (getopt): Document the bug.
24496         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24497         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24498         Likewise.
24499
24500         getopt-posix: avoid spurious failure on Solaris
24501         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
24502         an indicator that setting optind=1 is sufficient for reset.
24503
24504         getopt-posix: avoid spurious failure on FreeBSD
24505         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
24506         in POSIX mode, since the m4 test uses it.
24507
24508         gnulib-tool: silence warning on BSD sh
24509         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
24510
24511 2010-04-13  Jim Meyering  <meyering@redhat.com>
24512
24513         doc: users.txt: GNU patch now uses gnulib
24514         * users.txt: Add patch.
24515
24516 2010-04-12  Jim Meyering  <meyering@redhat.com>
24517
24518         maint.mk: generate more concise timing data for syntax-check rules
24519         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
24520         " done" from each line that reports a syntax-check test duration.
24521
24522 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
24523
24524         git-version-gen: use "git update-index..." rather than "git status"
24525         * build-aux/git-version-gen: Use git update-index --refresh, not
24526         "git status".  With some versions of git, "git status" would fail
24527         to update the index and result in an unwarranted "-dirty" suffix.
24528
24529 2010-04-11  Jim Meyering  <meyering@redhat.com>
24530
24531         openat: correct formatting (no semantic change)
24532         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
24533         Suggested by Bruno Haible.
24534
24535 2010-04-11  Bruno Haible  <bruno@clisp.org>
24536
24537         Stricter declaration checking in testdirs.
24538         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24539         If for_tests is true, augment AM_CPPFLAGS to define
24540         GNULIB_STRICT_CHECKING.
24541         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
24542         GNULIB_STRICT_CHECKING is defined, verify that the function is
24543         declared.
24544
24545 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
24546             Bruno Haible  <bruno@clisp.org>
24547
24548         libunistring: Improve configure output.
24549         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
24550         Don't say "consider installing GNU libunistring" when checking again
24551         with libiconv.
24552
24553 2010-04-11  Bruno Haible  <bruno@clisp.org>
24554
24555         libunistring: Correct value of $LTLIBUNISTRING.
24556         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
24557         correct the value of $LTLIBUNISTRING.
24558
24559 2010-04-11  Bruno Haible  <bruno@clisp.org>
24560
24561         havelib: Add static libraries to LIBS in the right order.
24562         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
24563         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
24564
24565 2010-04-11  Bruno Haible  <bruno@clisp.org>
24566
24567         libunistring: Detect libunistring also when it depends on libiconv.
24568         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
24569         the second AC_LIB_HAVE_LINKFLAGS invocation.
24570
24571 2010-04-11  James Youngman  <jay@gnu.org>
24572
24573         close-stream: declare local scalars to be "const"
24574         * lib/close-stream.c (close_stream): Make boolean variables const
24575         to document the fact that we set but do not change them.
24576
24577 2010-04-11  Bruno Haible  <bruno@clisp.org>
24578
24579         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
24580
24581 2010-04-11  Jim Meyering  <meyering@redhat.com>
24582
24583         maint.mk: don't include dist-check.mk
24584         * top/maint.mk: Remove bogus include directive.
24585
24586         maint.mk: improve empty-line-at-EOF check
24587         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
24588         solution, rather than tail+Perl-based one.  The latter would read
24589         a few kilobytes from the end of each file, and did not handle empty
24590         files properly.
24591
24592         maint.mk: print the elapsed time for each syntax-check rule
24593         * top/maint.mk (sc_m_rules_): Save start time in a file.
24594         (sc_z_rules_): New rules: remove temp file and print elapsed time.
24595         (local-check): Interpose the .z rules
24596
24597 2010-04-11  Jim Meyering  <meyering@redhat.com>
24598
24599         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
24600         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
24601         empty file with one that ends in an empty line.
24602
24603 2010-04-10  Bruno Haible  <bruno@clisp.org>
24604
24605         mkdir: Make it work on mingw64.
24606         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
24607         * lib/mkdir.c: Update comment.
24608         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
24609
24610 2010-04-10  Bruno Haible  <bruno@clisp.org>
24611
24612         Don't override improved macro from newer autoconf.
24613         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
24614         autoconf >= 2.62.
24615         Reported by Joel E. Denny <jdenny@clemson.edu>.
24616
24617 2010-04-10  Jim Meyering  <meyering@redhat.com>
24618
24619         maint.mk: new syntax-check rule: prohibit empty lines at end of file
24620         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
24621
24622         maint.mk: correct a diagnostic
24623         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
24624         in diagnostic; now use $prohibit.
24625
24626 2010-04-10  Bruno Haible  <address@hidden>
24627
24628         fchownat: Fix a C++ test error on Solaris 8.
24629         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
24630         the function does not exist.
24631
24632 2010-04-10  Bruno Haible  <bruno@clisp.org>
24633
24634         vasnprintf: Add more tests.
24635         * tests/test-vasnprintf-posix.c: Include <errno.h>.
24636         (test_function): Test converting an invalid wide string.
24637
24638         vasnprintf: Correct handling of unconvertible wide string arguments.
24639         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
24640         VASNPRINTF.
24641         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
24642         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
24643         smaller than the expected maximum need for the directive. Set errno to
24644         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
24645         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
24646         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
24647         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
24648         * modules/vasnprintf (Files): Add m4/printf.m4.
24649         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24650
24651 2010-04-10  Bruno Haible  <bruno@clisp.org>
24652
24653         vasnprintf: Fix crash in %ls directive.
24654         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
24655         string is passed as argument to %ls, with no precision and no width.
24656         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24657
24658 2010-04-10  Bruno Haible  <bruno@clisp.org>
24659
24660         vasnprintf: Fix multiple test failures on mingw.
24661         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
24662         _snprintf, or snwprintf, not _snwprintf.
24663
24664 2010-04-10  Bruno Haible  <bruno@clisp.org>
24665
24666         write: Fix a C++ test error on mingw.
24667         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
24668
24669 2010-04-10  Bruno Haible  <bruno@clisp.org>
24670
24671         vasnprintf test: Reduce code duplication.
24672         * tests/test-vasnprintf.c (test_function): New function, extracted from
24673         test_vasnprintf.
24674         (test_vasnprintf, test_asnprintf): Invoke it.
24675
24676 2010-04-10  Bruno Haible  <bruno@clisp.org>
24677
24678         strnlen: Fix warning in C++ mode on MacOS X.
24679         * lib/string.in.h (strnlen): Use the modern idiom.
24680         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
24681         defining strnlen as a macro already in <config.h>.
24682         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24683         REPLACE_STRNLEN.
24684         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
24685         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24686
24687 2010-04-08  James Youngman  <jay@gnu.org>
24688
24689         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
24690         the example.
24691
24692 2010-04-09  Jim Meyering  <meyering@redhat.com>
24693
24694         maint.mk: print better diagnostic when there is no $(_hv_file)
24695         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
24696         announce that when $(_hv_file) (aka help-version) does not exist.
24697
24698         init.sh: run tr in the "C" locale to avoid multibyte interpretation
24699         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
24700         not try to interpret its random input bytes.  Jarno Rajahalme reported
24701         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
24702         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
24703         (mktempd_): Likewise, just in case.
24704
24705         ftruncate: add two years to projected module removal date: 2012
24706         * m4/ftruncate.m4: Adjust comments.
24707
24708         ftruncate: mark module as obsolete; even MinGW provides it, now
24709         * modules/ftruncate (Status): Obsolete.
24710         (Notice): Say that.
24711         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
24712         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
24713
24714 2010-04-08  Bruno Haible  <bruno@clisp.org>
24715
24716         Fix side effects from tests-related modules.
24717         * modules/dprintf-posix (Comment): New section.
24718         * modules/fprintf-posix (Comment): Likewise.
24719         * modules/obstack-printf-posix (Comment): Likewise.
24720         * modules/printf-posix (Comment): Likewise.
24721         * modules/snprintf-posix (Comment): Likewise.
24722         * modules/sprintf-posix (Comment): Likewise.
24723         * modules/vasnprintf-posix (Comment): Likewise.
24724         * modules/vasprintf-posix (Comment): Likewise.
24725         * modules/vdprintf-posix (Comment): Likewise.
24726         * modules/vfprintf-posix (Comment): Likewise.
24727         * modules/vprintf-posix (Comment): Likewise.
24728         * modules/vsnprintf-posix (Comment): Likewise.
24729         * modules/vsprintf-posix (Comment): Likewise.
24730         * modules/xprintf-posix (Comment): Likewise.
24731         * modules/xvasprintf-posix (Comment): Likewise.
24732         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
24733         * modules/floorf-tests (Depends-on): Likewise.
24734         * modules/round-tests (Depends-on): Likewise.
24735         * modules/roundf-tests (Depends-on): Likewise.
24736         * modules/trunc-tests (Depends-on): Likewise.
24737         * modules/truncf-tests (Depends-on): Likewise.
24738         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
24739         'fprintf-posix' module is not present.
24740         * tests/test-floorf2.c (check): Likewise.
24741         * tests/test-trunc2.c (check): Likewise.
24742         * tests/test-truncf2.c (check): Likewise.
24743         * tests/test-round2.c (equal): Likewise.
24744         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24745
24746 2010-04-07  Karl Berry  <karl@gnu.org>
24747
24748         * config/srclist.txt,
24749         * config/srclistvars.sh,
24750         * config/srclist-update: doc fixes.
24751
24752 2010-04-07  Jim Meyering  <meyering@redhat.com>
24753
24754         maint.mk: add a PATH crosschecking syntax-check rule
24755         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
24756         Useful if you use a test like the one in help-version (coreutils,
24757         diffutils, grep, gzip) that ensures $(VERSION) matches what is
24758         printed by prog --version.
24759
24760 2010-04-06  Bruno Haible  <bruno@clisp.org>
24761
24762         Fix link error on mingw.
24763         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
24764         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
24765
24766 2010-04-06  Bruno Haible  <bruno@clisp.org>
24767
24768         Assume rmdir exists.
24769         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
24770
24771 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
24772
24773         doc: update users.txt
24774         * users.txt: Add gcal.
24775
24776 2010-04-06  Jim Meyering  <meyering@redhat.com>
24777
24778         init.sh: simply unset TMPDIR rather than risking env -i
24779         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
24780         although it probably works fine on all Unix-based systems, some
24781         systems (Cygwin?) cannot tolerate a totally cleared environment.
24782         Suggestion from Eric Blake.
24783
24784 2010-04-06  Jim Meyering  <meyering@redhat.com>
24785
24786         init.sh: portability fix: use env's POSIX-specified -i option not -u
24787         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
24788         than unportable env -u.  Solaris 5.11's env lacks support for -u.
24789
24790 2010-04-05  Bruno Haible  <bruno@clisp.org>
24791
24792         btowc: Work around Cygwin 1.7.2 bug.
24793         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
24794         does not map NUL to 0.
24795         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
24796
24797 2010-04-05  Bruno Haible  <bruno@clisp.org>
24798
24799         Make the multithread modules work on Cygwin 1.7.2.
24800         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
24801         imported symbols can be declared weak, so that it returns "no" on
24802         Cygwin 1.7.2.
24803
24804 2010-04-05  Bruno Haible  <bruno@clisp.org>
24805
24806         Use the module 'strncat'.
24807         * modules/unistr/u8-strncat (Depends-on): Add strncat.
24808
24809         Tests for module 'strncat'.
24810         * modules/strncat-tests: New file.
24811         * tests/test-strncat.c: New file.
24812
24813         New module 'strncat'.
24814         * lib/string.in.h (strncat): New declaration.
24815         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
24816         * m4/strncat.m4: New file, based on m4/memchr.m4.
24817         * modules/strncat: New file.
24818         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
24819         is declared.
24820         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
24821         REPLACE_STRNCAT.
24822         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
24823         REPLACE_STRNCAT.
24824         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
24825         module.
24826         * tests/test-string-c++.cc: Check signature of strncat.
24827
24828 2010-04-05  Jim Meyering  <meyering@redhat.com>
24829
24830         xstrtoumax-tests: convert to use init.sh
24831         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
24832         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24833         Use Exit, not exit.
24834         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24835
24836         xstrtoimax-tests: convert to use init.sh
24837         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
24838         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24839         Use Exit, not exit.
24840         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24841
24842 2010-04-05  Bruno Haible  <bruno@clisp.org>
24843
24844         sys_socket: Avoid #define replacements in C++ mode.
24845         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
24846         warning to the function if possible, rather than #defining the symbol
24847         to a dysfunctional alias.
24848
24849 2010-04-05  Bruno Haible  <bruno@clisp.org>
24850
24851         fseeko: Fix C++ test error on mingw.
24852         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
24853         gl_FUNC_FSEEKO.
24854         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
24855         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
24856         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
24857         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
24858
24859 2010-04-05  Bruno Haible  <bruno@clisp.org>
24860
24861         duplocale: Improve test output.
24862         * tests/test-duplocale.c (main): Print reason for skipped test.
24863
24864 2010-04-05  Bruno Haible  <bruno@clisp.org>
24865
24866         Assume rmdir exists.
24867         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
24868         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
24869
24870 2010-04-05  Bruno Haible  <bruno@clisp.org>
24871
24872         Fix link error on Solaris 8 with cc.
24873         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
24874
24875 2010-04-05  Bruno Haible  <bruno@clisp.org>
24876
24877         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24878         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
24879
24880 2010-04-05  Bruno Haible  <bruno@clisp.org>
24881
24882         vasprintf: Update documentation.
24883         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
24884
24885 2010-04-05  Bruno Haible  <bruno@clisp.org>
24886
24887         ptsname: Improve test.
24888         * tests/test-ptsname.c (main): Also try the various master names of BSD
24889         systems.
24890
24891 2010-04-05  Bruno Haible  <bruno@clisp.org>
24892
24893         memchr: Avoid a possible C++ test error.
24894         * lib/string.in.h (memchr): Provide declaration if function is missing.
24895         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
24896         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
24897         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
24898         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
24899
24900 2010-04-05  Bruno Haible  <bruno@clisp.org>
24901
24902         strtok_r: Improve idiom.
24903         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
24904         AC_LIBOBJ is used.
24905
24906 2010-04-05  Bruno Haible  <bruno@clisp.org>
24907
24908         strdup: Improve idiom.
24909         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
24910         AC_LIBOBJ is used.
24911         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
24912         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
24913         when AC_LIBOBJ is used.
24914
24915 2010-04-05  Bruno Haible  <bruno@clisp.org>
24916
24917         mbsinit, mbrtowc, wcrtomb: Improve idioms.
24918         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
24919         don't set REPLACE_MBSINIT to 1.
24920         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
24921         don't set REPLACE_MBRTOWC to 1.
24922         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
24923         exist, don't set REPLACE_MBSRTOWCS to 1.
24924         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
24925         exist, don't set REPLACE_MBSNRTOWCS to 1.
24926         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
24927         don't set REPLACE_WCRTOMB to 1.
24928         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
24929         exist, don't set REPLACE_WCSRTOMBS to 1.
24930         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
24931         exist, don't set REPLACE_WCSNRTOMBS to 1.
24932
24933 2010-04-05  Bruno Haible  <bruno@clisp.org>
24934
24935         ldexpl: Improve idiom.
24936         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
24937         make sure to set HAVE_DECL_LDEXPL to 0.
24938
24939 2010-04-05  Jim Meyering  <meyering@redhat.com>
24940
24941         xstrtol-tests: convert to use init.sh
24942         * modules/xstrtol-tests (Files): Add tests/init.sh.
24943         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24944         Use Exit, not exit.
24945         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24946
24947         atexit-tests: convert to use init.sh
24948         * modules/atexit-tests (Files): Add tests/init.sh.
24949         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24950         Use Exit, not exit.
24951         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24952
24953         init.sh: fix typo
24954         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
24955
24956         init.sh: make it easier for a test script to write to the tty, ...
24957         when using automake's parallel-tests mode.
24958         * tests/init.sh (stderr_fileno_): Define overridable variable.
24959         (warn_): New function, to use it.
24960         (fail_, skip_, framework_failure_): Use warn_.
24961
24962 2010-04-04  Bruno Haible  <bruno@clisp.org>
24963
24964         btowc: Avoid warning.
24965         * lib/btowc.c: Include <stdlib.h>.
24966         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
24967
24968 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24969             Bruno Haible  <bruno@clisp.org>
24970
24971         wchar: Port to NetBSD 1.5.
24972         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
24973         * lib/wctype.in.h (WEOF): Likewise.
24974
24975 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24976             Bruno Haible  <bruno@clisp.org>
24977
24978         Port extended stdio to NetBSD 1.5.
24979         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
24980         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
24981         older.
24982
24983 2010-04-04  Bruno Haible  <bruno@clisp.org>
24984
24985         string: Remove unused substitution.
24986         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
24987         HAVE_DECL_STRERROR.
24988         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
24989
24990 2010-04-04  Bruno Haible  <bruno@clisp.org>
24991
24992         strtod: Avoid a possible C++ test error.
24993         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
24994         set REPLACE_STRTOD.
24995
24996 2010-04-04  Bruno Haible  <bruno@clisp.org>
24997
24998         strerror: Update documentation.
24999         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
25000
25001 2010-04-04  Bruno Haible  <bruno@clisp.org>
25002
25003         stdio: Fix some C++ test errors on Solaris 8 with GCC.
25004         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
25005         _GL_CXXALIAS_SYS_CAST.
25006
25007 2010-04-04  Bruno Haible  <bruno@clisp.org>
25008
25009         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
25010         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
25011         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
25012         REPLACE_FREXPL to 1.
25013         * doc/posix-functions/frexpl.texi: Update documentation.
25014
25015 2010-04-04  Bruno Haible  <bruno@clisp.org>
25016
25017         math: Fix some C++ test errors on Solaris 8 and Cygwin.
25018         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
25019
25020 2010-04-04  Bruno Haible  <bruno@clisp.org>
25021
25022         Implement nanosleep for native Windows.
25023         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
25024
25025 2010-04-04  Bruno Haible  <bruno@clisp.org>
25026
25027         math: Fix some C++ test errors on Solaris 8.
25028         * lib/math.in.h (truncf, trunc): Use simpler idiom.
25029
25030 2010-04-04  Bruno Haible  <bruno@clisp.org>
25031
25032         math: Fix some C++ test errors on Cygwin.
25033         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
25034         truncl): Provide declaration if the system does not have it.
25035         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
25036         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
25037         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
25038         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
25039         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
25040         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
25041         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
25042         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
25043         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
25044         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
25045         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
25046         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
25047         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
25048         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
25049         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
25050         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
25051         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
25052         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
25053         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
25054         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
25055         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
25056         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
25057
25058 2010-04-04  Bruno Haible  <bruno@clisp.org>
25059
25060         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
25061         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
25062         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
25063         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
25064         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
25065         * m4/isinf.m4 (gl_ISINF): Likewise.
25066         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25067
25068 2010-04-04  Bruno Haible  <bruno@clisp.org>
25069
25070         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
25071         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
25072
25073 2010-04-04  Bruno Haible  <bruno@clisp.org>
25074
25075         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
25076         * modules/tmpfile (configure.ac): Update.
25077
25078         tmpfile: Fix C++ test error on mingw.
25079         * lib/stdio.in.h (tmpfile): New declaration.
25080         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
25081         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
25082         * modules/tmpfile (Depends-on): Add stdio.
25083         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
25084         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
25085         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
25086         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
25087         REPLACE_TMPFILE.
25088         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
25089
25090 2010-04-04  Bruno Haible  <bruno@clisp.org>
25091
25092         ioctl: Fix C++ test error on mingw.
25093         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
25094         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
25095         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
25096
25097 2010-04-03  Bruno Haible  <bruno@clisp.org>
25098
25099         wcwidth: Fix C++ test error on mingw.
25100         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
25101         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
25102         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
25103
25104 2010-04-03  Bruno Haible  <bruno@clisp.org>
25105
25106         nanosleep: Fix C++ test error on mingw.
25107         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
25108         * lib/time.in.h (nanosleep): Use modern idiom.
25109         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
25110         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
25111         REPLACE_NANOSLEEP to 1.
25112         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
25113         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
25114
25115 2010-04-03  Bruno Haible  <bruno@clisp.org>
25116
25117         strptime: Fix C++ test error on mingw.
25118         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
25119         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
25120         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
25121         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
25122         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
25123         not REPLACE_STRPTIME.
25124         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
25125         REPLACE_STRPTIME.
25126
25127 2010-04-03  Bruno Haible  <bruno@clisp.org>
25128
25129         timegm: Fix C++ test error on mingw.
25130         * lib/time.in.h (timegm): Use modern idiom.
25131         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
25132         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
25133         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
25134         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
25135
25136 2010-04-03  Bruno Haible  <bruno@clisp.org>
25137
25138         timegm: Assume declaration if function exists.
25139         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
25140         if it exists. Don't clobber ac_cv_func_timegm.
25141
25142 2010-04-03  Bruno Haible  <bruno@clisp.org>
25143
25144         time_r: Fix C++ test error on mingw.
25145         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
25146         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
25147         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
25148         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
25149         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
25150
25151 2010-04-03  Bruno Haible  <bruno@clisp.org>
25152
25153         time_r: Minor updates.
25154         * modules/time_r (Description): Mention the provided functions.
25155         * lib/time_r.c: Don't include <string.h>.
25156         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
25157         * doc/posix-functions/localtime_r.texi: Likewise.
25158
25159 2010-04-03  Bruno Haible  <bruno@clisp.org>
25160
25161         time: Fix regression introduced on 2010-03-08.
25162         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
25163         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
25164
25165 2010-04-03  Jim Meyering  <meyering@redhat.com>
25166
25167         maint.mk: don't silently disable project-specific syntax-check rules
25168         * top/maint.mk (_prohibit_regexp): Define, to help people realize
25169         that they need to convert their project-specific syntax-check rules
25170         to use the new _sc_search_regexp.
25171
25172 2010-04-03  Bruno Haible  <bruno@clisp.org>
25173
25174         fchdir: Fix regression introduced on 2010-03-08.
25175         * lib/unistd.in.h (fchdir): Fix declaration.
25176         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
25177         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
25178         REPLACE_FCHDIR.
25179         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
25180         REPLACE_FCHDIR.
25181
25182 2010-04-03  Bruno Haible  <bruno@clisp.org>
25183
25184         getpagesize: Fix C++ test error on mingw.
25185         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
25186         system does not declare the function.
25187         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
25188         declared.
25189         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25190         HAVE_DECL_GETPAGESIZE.
25191         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
25192
25193 2010-04-03  Bruno Haible  <bruno@clisp.org>
25194
25195         stdio: Make C++ tests work on mingw.
25196         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
25197         does not declare the function.
25198
25199 2010-04-03  Bruno Haible  <bruno@clisp.org>
25200
25201         ftello: Fix C++ test error on mingw.
25202         * lib/stdio.in.h (ftello): Use modern idiom.
25203         * lib/ftello.c (ftello): Renamed from rpl_ftello.
25204         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
25205         is missing and that it needs to be replaced.
25206         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
25207         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
25208         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
25209
25210 2010-04-03  Bruno Haible  <bruno@clisp.org>
25211
25212         fseeko: Fix C++ test error on mingw.
25213         * lib/stdio.in.h (fseeko): Use modern idiom.
25214         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
25215         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
25216         is missing and that it needs to be replaced.
25217         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
25218         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
25219         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
25220
25221 2010-04-03  Bruno Haible  <bruno@clisp.org>
25222
25223         mkstemp: Fix C++ test error on mingw.
25224         * lib/stdlib.in.h (mkstemp): Use modern idiom.
25225         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
25226         function is missing and that it needs to be replaced.
25227         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
25228         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
25229
25230 2010-04-03  Bruno Haible  <bruno@clisp.org>
25231
25232         stpncpy: Fix C++ test error on mingw.
25233         * lib/string.in.h (stpncpy): Use modern idiom.
25234         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
25235         function is missing and that it needs to be replaced.
25236         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25237         REPLACE_STPNCPY.
25238         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
25239
25240 2010-04-03  Bruno Haible  <bruno@clisp.org>
25241
25242         sys_stat: Fix C++ test error on mingw.
25243         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
25244         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
25245
25246 2010-04-03  Bruno Haible  <bruno@clisp.org>
25247
25248         pty: Update doc.
25249         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
25250
25251 2010-04-03  Bruno Haible  <bruno@clisp.org>
25252
25253         unistd: Fix C++ test error on mingw.
25254         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
25255
25256 2010-04-03  Bruno Haible  <bruno@clisp.org>
25257
25258         Update doc regarding mingw.
25259         * doc/glibc-functions/openpty.texi: Update regarding mingw.
25260         * doc/glibc-functions/login_tty.texi: Likewise.
25261         * doc/glibc-functions/forkpty.texi: Likewise.
25262
25263 2010-04-03  Bruno Haible  <bruno@clisp.org>
25264
25265         stdlib: Avoid compilation failure of c-strtold on mingw.
25266         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
25267
25268 2010-04-03  Bruno Haible  <bruno@clisp.org>
25269
25270         locale: Make C++ tests work on Cygwin and mingw.
25271         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
25272         cannot provide the function.
25273         Reported by Simon Josefsson.
25274
25275 2010-04-03  Bruno Haible  <bruno@clisp.org>
25276
25277         localename: Port to MacOS X 10.6.
25278         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
25279         memory layout of the locales in MacOS X 10.6 as well.
25280         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
25281
25282 2010-04-02  Bruno Haible  <bruno@clisp.org>
25283
25284         gnulib-tool: Ensure that long-running tests are executed last.
25285         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
25286         running tests after the one for the other tests.
25287
25288 2010-04-02  Bruno Haible  <bruno@clisp.org>
25289
25290         gnulib-tool: Ensure the tests in the main directory are executed first.
25291         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
25292         start with the current directory.
25293
25294 2010-04-02  Bruno Haible  <bruno@clisp.org>
25295
25296         Tests for module 'havelib', moved here from GNU gettext.
25297         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
25298         modifications.
25299         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
25300         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
25301         with modifications.
25302         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
25303         modifications.
25304         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
25305         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
25306         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
25307         with modifications.
25308         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
25309         with modifications.
25310         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
25311         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
25312         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
25313         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
25314         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
25315         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
25316         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
25317         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
25318         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
25319         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
25320         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
25321         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
25322         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
25323         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
25324         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
25325         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
25326         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
25327         with modifications.
25328         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
25329         with modifications.
25330         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
25331         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
25332         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
25333         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
25334         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
25335         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
25336         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
25337         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
25338         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
25339         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
25340         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
25341         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
25342         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
25343         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
25344         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
25345         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
25346         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
25347         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
25348         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
25349         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
25350         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
25351         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
25352         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
25353         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
25354         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
25355         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
25356         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
25357         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
25358         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
25359         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
25360         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
25361         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
25362         * tests/havelib/rpathx/rpathx.c: New file, from
25363         gettext/autoconf-lib-link.
25364         * tests/havelib/rpathx/Makefile.am: New file, from
25365         gettext/autoconf-lib-link.
25366         * tests/havelib/rpathx/configure.ac: New file, from
25367         gettext/autoconf-lib-link with modifications.
25368         * tests/havelib/rpathy/rpathy.c: New file, from
25369         gettext/autoconf-lib-link.
25370         * tests/havelib/rpathy/Makefile.am: New file, from
25371         gettext/autoconf-lib-link.
25372         * tests/havelib/rpathy/configure.ac: New file, from
25373         gettext/autoconf-lib-link with modifications.
25374         * tests/havelib/rpathz/rpathz.c: New file, from
25375         gettext/autoconf-lib-link.
25376         * tests/havelib/rpathz/Makefile.am: New file, from
25377         gettext/autoconf-lib-link.
25378         * tests/havelib/rpathz/configure.ac: New file, from
25379         gettext/autoconf-lib-link with modifications.
25380         * tests/havelib/rpathlx/usex.c: New file, from
25381         gettext/autoconf-lib-link.
25382         * tests/havelib/rpathlx/Makefile.am: New file, from
25383         gettext/autoconf-lib-link.
25384         * tests/havelib/rpathlx/configure.ac: New file, from
25385         gettext/autoconf-lib-link with modifications.
25386         * tests/havelib/rpathly/usey.c: New file, from
25387         gettext/autoconf-lib-link.
25388         * tests/havelib/rpathly/Makefile.am: New file, from
25389         gettext/autoconf-lib-link.
25390         * tests/havelib/rpathly/configure.ac: New file, from
25391         gettext/autoconf-lib-link with modifications.
25392         * tests/havelib/rpathlz/usez.c: New file, from
25393         gettext/autoconf-lib-link.
25394         * tests/havelib/rpathlz/Makefile.am: New file, from
25395         gettext/autoconf-lib-link.
25396         * tests/havelib/rpathlz/configure.ac: New file, from
25397         gettext/autoconf-lib-link with modifications.
25398         * tests/havelib/rpathlyx/usey.c: New file, from
25399         gettext/autoconf-lib-link.
25400         * tests/havelib/rpathlyx/Makefile.am: New file, from
25401         gettext/autoconf-lib-link.
25402         * tests/havelib/rpathlyx/configure.ac: New file, from
25403         gettext/autoconf-lib-link with modifications.
25404         * tests/havelib/rpathlzyx/usez.c: New file, from
25405         gettext/autoconf-lib-link.
25406         * tests/havelib/rpathlzyx/Makefile.am: New file, from
25407         gettext/autoconf-lib-link.
25408         * tests/havelib/rpathlzyx/configure.ac: New file, from
25409         gettext/autoconf-lib-link with modifications.
25410         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
25411         with modifications.
25412
25413 2010-04-02  Bruno Haible  <bruno@clisp.org>
25414
25415         gnulib-tool: Create distributed built sources also for the tests.
25416         * gnulib-tool (func_create_testdir): Also generate distributed built
25417         sources in the tests directory.
25418
25419 2010-04-02  Bruno Haible  <bruno@clisp.org>
25420
25421         gnulib-tool: Obey user's environment variables.
25422         * gnulib-tool (func_create_testdir): When creating built sources,
25423         respect the environment variables for autoconf, automake, etc. given by
25424         the user.
25425
25426 2010-04-02  Bruno Haible  <bruno@clisp.org>
25427
25428         gnulib-tool: Provide the value of --m4-base to modules.
25429         * gnulib-tool (func_import, func_create_testdir): Emit a definition
25430         of gl_m4_base.
25431
25432 2010-04-02  Eric Blake  <eblake@redhat.com>
25433
25434         maint.mk: fix some fallout
25435         * NEWS: Document the incompatible change, and its effect on cfg.mk.
25436         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
25437
25438 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25439
25440         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
25441         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
25442         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
25443         (sc_cast_of_x_alloc_return_value): Likewise.
25444         (sc_cast_of_alloca_return_value): Likewise.
25445         (sc_space_tab): Likewise.
25446         (sc_prohibit_atoi_atof): Likewise.
25447         (sc_prohibit_magic_number_exit): Likewise.
25448         (sc_error_exit_success): Likewise.
25449         (sc_file_system): Likewise.
25450         (sc_prohibit_have_config_h): Likewise.
25451         (sc_require_config_h): Likewise.
25452         (sc_prohibit_HAVE_MBRTOWC): Likewise.
25453         (sc_obsolete_symbols): Likewise.
25454         (sc_changelog): Likewise.
25455         (sc_program_name): Likewise.
25456         (sc_the_the): Likewise.
25457         (sc_trailing_blank): Likewise.
25458         (sc_two_space_separator_in_usage): Likewise.
25459         (sc_useless_cpp_parens): Likewise.
25460         (sc_GPL_version): Likewise.
25461         (sc_GFDL_version): Likewise.
25462         (sc_texinfo_acronym): Likewise.
25463         (sc_prohibit_cvs_keyword): Likewise.
25464         (sc_prohibit_stat_st_blocks): Likewise.
25465         (sc_prohibit_S_IS_definition): Likewise.
25466         (sc_redundant_const): Likewise.
25467         (sc_makefile_TAB_only_indentation): Likewise.
25468         (sc_m4_quote_check): Likewise.
25469         (sc_makefile_path_separator_check): Likewise.
25470         (sc_copyright_check): Likewise.
25471         (sc_Wundef_boolean): Likewise.
25472         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25473
25474         maint.mk: match 0 or more whitespace-before-function-call '('
25475         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
25476         that have zero or two-and-more spaces between the function name
25477         and the open parenthesis.
25478         (sc_error_message_warn_fatal): Likewise.
25479         (sc_error_message_uppercase): Likewise.
25480         (sc_error_message_period): Likewise.
25481
25482 2010-03-31  Eric Blake  <eblake@redhat.com>
25483
25484         maint.mk: check for [ as well as test
25485         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
25486         Based on a libvirt report by Matthias Bolte.
25487
25488         gnumakefile: don't squelch _version output
25489         * top/GNUmakefile (_version): Create one-shot dependency rather
25490         than using $(shell) when version must be regenerated.
25491         (_autoreconf): Run verbosely, by default.
25492
25493         sys_time: avoid compiler warnings
25494         * lib/sys_time.in.h (includes): Ensure gcc pragma is
25495         unconditional, fixing regression from 2010-03-29.
25496         Reported by Simon Josefsson.
25497
25498 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25499
25500         maint.mk: s/_header_without_use/_sc_header_without_use/
25501         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
25502         (sc_prohibit_assert_without_use): Use the new name.
25503         (sc_prohibit_close_stream_without_use): Likewise.
25504         (sc_prohibit_getopt_without_use): Likewise.
25505         (sc_prohibit_quotearg_without_use): Likewise.
25506         (sc_prohibit_quote_without_use): Likewise.
25507         (sc_prohibit_long_options_without_use): Likewise.
25508         (sc_prohibit_inttostr_without_use): Likewise.
25509         (sc_prohibit_ignore_value_without_use): Likewise.
25510         (sc_prohibit_error_without_use): Likewise.
25511         (sc_prohibit_xalloc_without_use): Likewise.
25512         (sc_prohibit_hash_without_use): Likewise.
25513         (sc_prohibit_hash_pjw_without_use): Likewise.
25514         (sc_prohibit_safe_read_without_use): Likewise.
25515         (sc_prohibit_argmatch_without_use): Likewise.
25516         (sc_prohibit_canonicalize_without_use): Likewise.
25517         (sc_prohibit_root_dev_ino_without_use): Likewise.
25518         (sc_prohibit_openat_without_use): Likewise.
25519         (sc_prohibit_c_ctype_without_use): Likewise.
25520         (sc_prohibit_signal_without_use): Likewise.
25521         (sc_prohibit_intprops_without_use): Likewise.
25522
25523 2010-03-30  Eric Blake  <eblake@redhat.com>
25524
25525         maint: improve module indicators
25526         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
25527         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
25528         columns, and avoid extra macro expansion.
25529
25530         fdopendir: work around FreeBSD bug
25531         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
25532         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
25533         * modules/dirent (Makefile.am): Substitute it.
25534         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
25535         declaration.
25536         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
25537         fix.
25538         Reported by Christian Weisgerber <naddy@mips.inka.de>.
25539
25540 2010-03-29  Bruno Haible  <bruno@clisp.org>
25541
25542         Emit #pragma system_header after the inclusion guard, not before.
25543         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
25544         guard that spans the entire file, not before. This enables an
25545         optimization in GCC's preprocessor.
25546         * lib/ctype.in.h: Likewise.
25547         * lib/dirent.in.h: Likewise.
25548         * lib/errno.in.h: Likewise.
25549         * lib/float.in.h: Likewise.
25550         * lib/getopt.in.h: Likewise.
25551         * lib/iconv.in.h: Likewise.
25552         * lib/langinfo.in.h: Likewise.
25553         * lib/locale.in.h: Likewise.
25554         * lib/math.in.h: Likewise.
25555         * lib/netdb.in.h: Likewise.
25556         * lib/netinet_in.in.h: Likewise.
25557         * lib/pty.in.h: Likewise.
25558         * lib/sched.in.h: Likewise.
25559         * lib/se-selinux.in.h: Likewise.
25560         * lib/search.in.h: Likewise.
25561         * lib/spawn.in.h: Likewise.
25562         * lib/stdarg.in.h: Likewise.
25563         * lib/stdint.in.h: Likewise.
25564         * lib/string.in.h: Likewise.
25565         * lib/strings.in.h: Likewise.
25566         * lib/sys_file.in.h: Likewise.
25567         * lib/sys_ioctl.in.h: Likewise.
25568         * lib/sys_time.in.h: Likewise.
25569         * lib/sys_times.in.h: Likewise.
25570         * lib/sys_utsname.in.h: Likewise.
25571         * lib/sys_wait.in.h: Likewise.
25572         * lib/sysexits.in.h: Likewise.
25573         * lib/wctype.in.h: Likewise.
25574
25575 2010-03-28  James Youngman  <jay@gnu.org>
25576
25577         save-cwd: don't leak a file descriptor when the caller execs.
25578         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
25579         saved file descriptor.
25580         * modules/save-cwd (Depends-on): Depend on cloexec.
25581
25582 2010-03-29  Bruno Haible  <bruno@clisp.org>
25583
25584         Remove vestiges of fts-lgpl module.
25585         * lib/fts_.h: Assume GNULIB_FTS is 1.
25586         * lib/fts.c: Likewise.
25587         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25588
25589 2010-03-28  Bruno Haible  <bruno@clisp.org>
25590
25591         Fix definition of tests witness macro.
25592         * gnulib-tool (func_import): Fix definition of witness macro.
25593
25594 2010-03-28  Bruno Haible  <bruno@clisp.org>
25595
25596         Fix ioctl's protoype on glibc systems.
25597         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
25598         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
25599         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
25600         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
25601         signature. If not, arrange to replace the ioctl function.
25602         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
25603         REPLACE_IOCTL.
25604         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
25605         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
25606         Reported by Ludovic Courtès <ludo@gnu.org>.
25607
25608 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
25609
25610         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
25611         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
25612         made it so grep -r --include=GLOB* ... did not work.
25613
25614 2010-03-26  Jim Meyering  <meyering@redhat.com>
25615             Eric Blake  <eblake@redhat.com>
25616
25617         maint.mk: prohibit use of test's -o and -a operators
25618         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
25619
25620 2010-03-28  Bruno Haible  <bruno@clisp.org>
25621
25622         Remove unused GNULIB_XYZ macro definitions.
25623         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
25624         invocation.
25625
25626 2010-03-28  Bruno Haible  <bruno@clisp.org>
25627
25628         Mark privileged tests modules.
25629         * modules/idpriv-drop-tests (Status): New section.
25630         * modules/idpriv-droptemp-tests (Status): New section.
25631
25632 2010-03-28  Bruno Haible  <bruno@clisp.org>
25633
25634         Split C++ tests into separate tests modules.
25635         * modules/dirent-c++-tests: New file, extracted from
25636         modules/dirent-tests.
25637         * modules/dirent-tests: Depend on it.
25638         * modules/fcntl-h-c++-tests: New file, extracted from
25639         modules/fcntl-h-tests.
25640         * modules/fcntl-h-tests: Depend on it.
25641         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
25642         * modules/glob-tests: Depend on it.
25643         * modules/iconv-h-c++-tests: New file, extracted from
25644         modules/iconv-h-tests.
25645         * modules/iconv-h-tests: Depend on it.
25646         * modules/langinfo-c++-tests: New file, extracted from
25647         modules/langinfo-tests.
25648         * modules/langinfo-tests: Depend on it.
25649         * modules/locale-c++-tests: New file, extracted from
25650         modules/locale-tests.
25651         * modules/locale-tests: Depend on it.
25652         * modules/math-c++-tests: New file, extracted from modules/math-tests.
25653         * modules/math-tests: Depend on it.
25654         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
25655         * modules/pty-tests: Depend on it.
25656         * modules/search-c++-tests: New file, extracted from
25657         modules/search-tests.
25658         * modules/search-tests: Depend on it.
25659         * modules/signal-c++-tests: New file, extracted from
25660         modules/signal-tests.
25661         * modules/signal-tests: Depend on it.
25662         * modules/spawn-c++-tests: New file, extracted from
25663         modules/spawn-tests.
25664         * modules/spawn-tests: Depend on it.
25665         * modules/stdio-c++-tests: New file, extracted from
25666         modules/stdio-tests.
25667         * modules/stdio-tests: Depend on it.
25668         * modules/stdlib-c++-tests: New file, extracted from
25669         modules/stdlib-tests.
25670         * modules/stdlib-tests: Depend on it.
25671         * modules/string-c++-tests: New file, extracted from
25672         modules/string-tests.
25673         * modules/string-tests: Depend on it.
25674         * modules/sys_ioctl-c++-tests: New file, extracted from
25675         modules/sys_ioctl-tests.
25676         * modules/sys_ioctl-tests: Depend on it.
25677         * modules/sys_select-c++-tests: New file, extracted from
25678         modules/sys_select-tests.
25679         * modules/sys_select-tests: Depend on it.
25680         * modules/sys_socket-c++-tests: New file, extracted from
25681         modules/sys_socket-tests.
25682         * modules/sys_socket-tests: Depend on it.
25683         * modules/sys_stat-c++-tests: New file, extracted from
25684         modules/sys_stat-tests.
25685         * modules/sys_stat-tests: Depend on it.
25686         * modules/sys_time-c++-tests: New file, extracted from
25687         modules/sys_time-tests.
25688         * modules/sys_time-tests: Depend on it.
25689         * modules/time-c++-tests: New file, extracted from modules/time-tests.
25690         * modules/time-tests: Depend on it.
25691         * modules/unistd-c++-tests: New file, extracted from
25692         modules/unistd-tests.
25693         * modules/unistd-tests: Depend on it.
25694         * modules/wchar-c++-tests: New file, extracted from
25695         modules/wchar-tests.
25696         * modules/wchar-tests: Depend on it.
25697         * modules/wctype-c++-tests: New file, extracted from
25698         modules/wctype-tests.
25699         * modules/wctype-tests: Depend on it.
25700         Reported by Simon Josefsson.
25701
25702 2010-03-28  Bruno Haible  <bruno@clisp.org>
25703
25704         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
25705         * gnulib-tool (func_exists_module): New function, extracted from
25706         func_verify_module.
25707         (func_verify_module): Use it.
25708         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
25709         'foo' only if 'foo' exists.
25710         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
25711         module.
25712
25713 2010-03-28  Bruno Haible  <bruno@clisp.org>
25714
25715         gnulib-tool: Add support for special categories of tests.
25716         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
25717         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
25718         (func_usage): Document them.
25719         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
25720         inc_unportable_tests, inc_all_tests): New variables.
25721         (func_acceptable): Consider these variables.
25722         (func_modules_transitive_closure): Make it work when the 'Status' field
25723         consists of multiple words.
25724         (func_import): Store and restore the values of inc_cxx_tests,
25725         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
25726         inc_all_tests in gnulib-comp.m4.
25727         (func_create_testdir): Set inc_all_tests to true.
25728         * doc/gnulib.texi (Extra tests modules): New section.
25729         Suggested by Jim Meyering.
25730
25731 2010-03-28  Bruno Haible  <bruno@clisp.org>
25732
25733         ansi-c++-opt: Allow turning off the C++ build by default.
25734         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
25735         gl_CXX_CHOICE_DEFAULT_NO is defined.
25736         Requested by Eric Blake.
25737
25738 2010-03-28  Bruno Haible  <bruno@clisp.org>
25739
25740         unistd: Avoid #define replacements in C++ mode.
25741         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
25742         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
25743         setsockopt, shutdown, select): In C++, attach a warning to the function
25744         if possible, rather than #defining the symbol to a dysfunctional alias.
25745         Reported by John W. Eaton <jwe@gnu.org>.
25746
25747 2010-03-28  Bruno Haible  <bruno@clisp.org>
25748
25749         Fix link errors on mingw.
25750         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
25751         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
25752         $(LIBSOCKET).
25753         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
25754         $(LIBSOCKET).
25755
25756 2010-03-28  Bruno Haible  <bruno@clisp.org>
25757             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25758
25759         lib-ignore: Determine different options for different compilers.
25760         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
25761         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
25762         Add comments.
25763         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
25764         * NEWS: Mention the change.
25765
25766 2010-03-27  Bruno Haible  <bruno@clisp.org>
25767
25768         Remove unused GNULIB_XYZ macro definitions.
25769         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25770         * modules/fseek (configure.ac): Likewise.
25771         * modules/ioctl (configure.ac): Likewise.
25772         * modules/open (configure.ac): Likewise.
25773         * modules/stdlib-safer (configure.ac): Likewise.
25774
25775 2010-03-27  Bruno Haible  <bruno@clisp.org>
25776
25777         Add a remark about certain modules.
25778         * modules/malloc (Comment): New section.
25779         * modules/realloc (Comment): Likewise.
25780         * modules/sigpipe (Comment): Likewise.
25781
25782 2010-03-27  Bruno Haible  <bruno@clisp.org>
25783
25784         Resolve conflict between the two kinds of module indicators.
25785         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
25786         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
25787         * modules/canonicalize (configure.ac): Invoke
25788         gl_MODULE_INDICATOR_FOR_TESTS.
25789         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
25790         GNULIB_XYZ.
25791         * tests/test-dirent-c++.cc: Likewise.
25792         * tests/test-dirent-safer.c: Likewise.
25793         * tests/test-dup2.c: Likewise.
25794         * tests/test-fchdir.c: Likewise.
25795         * tests/test-fcntl-h-c++.cc: Likewise.
25796         * tests/test-getopt.c: Likewise.
25797         * tests/test-getopt.h: Likewise.
25798         * tests/test-langinfo-c++.cc: Likewise.
25799         * tests/test-locale-c++.cc: Likewise.
25800         * tests/test-math-c++.cc: Likewise.
25801         * tests/test-pty-c++.cc: Likewise.
25802         * tests/test-search-c++.cc: Likewise.
25803         * tests/test-signal-c++.cc: Likewise.
25804         * tests/test-spawn-c++.cc: Likewise.
25805         * tests/test-stdio-c++.cc: Likewise.
25806         * tests/test-stdlib-c++.cc: Likewise.
25807         * tests/test-string-c++.cc: Likewise.
25808         * tests/test-sys_ioctl-c++.cc: Likewise.
25809         * tests/test-sys_select-c++.cc: Likewise.
25810         * tests/test-sys_socket-c++.cc: Likewise.
25811         * tests/test-sys_stat-c++.cc: Likewise.
25812         * tests/test-sys_time-c++.cc: Likewise.
25813         * tests/test-time-c++.cc: Likewise.
25814         * tests/test-unistd-c++.cc: Likewise.
25815         * tests/test-wchar-c++.cc: Likewise.
25816         * tests/uninorm/test-u8-nfc.c: Likewise.
25817         * tests/uninorm/test-u8-nfd.c: Likewise.
25818         * tests/uninorm/test-u8-nfkc.c: Likewise.
25819         * tests/uninorm/test-u8-nfkd.c: Likewise.
25820         * tests/uninorm/test-u16-nfc.c: Likewise.
25821         * tests/uninorm/test-u16-nfd.c: Likewise.
25822         * tests/uninorm/test-u16-nfkc.c: Likewise.
25823         * tests/uninorm/test-u16-nfkd.c: Likewise.
25824         * tests/uninorm/test-u32-nfc.c: Likewise.
25825         * tests/uninorm/test-u32-nfc-big.c: Likewise.
25826         * tests/uninorm/test-u32-nfd.c: Likewise.
25827         * tests/uninorm/test-u32-nfd-big.c: Likewise.
25828         * tests/uninorm/test-u32-nfkc.c: Likewise.
25829         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
25830         * tests/uninorm/test-u32-nfkd.c: Likewise.
25831         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
25832         * tests/uninorm/test-u32-normalize-big.c: Likewise.
25833
25834 2010-03-27  Bruno Haible  <bruno@clisp.org>
25835
25836         Distinguish two kinds of module indicators.
25837         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
25838         gl_MODULE_INDICATOR.
25839         (gl_MODULE_INDICATOR): New macro.
25840         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25841         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
25842         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25843         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25844         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25845         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25846         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25847         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25848         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25849         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25850         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25851         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25852         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25853         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25854         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25855         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25856         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25857         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25858         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25859         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25860         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25861         * modules/cloexec (configure.ac): Likewise.
25862         * modules/getopt-gnu (configure.ac): Likewise.
25863         * modules/uninorm/u8-normalize (configure.ac): Likewise.
25864         * modules/uninorm/u16-normalize (configure.ac): Likewise.
25865         * modules/uninorm/u32-normalize (configure.ac): Likewise.
25866         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
25867
25868 2010-03-27  Bruno Haible  <bruno@clisp.org>
25869
25870         New module description field 'Comment'.
25871         * gnulib-tool: New option --extract-comment.
25872         (func_usage): Document it.
25873         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
25874         (func_get_comment): New function.
25875         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
25876
25877 2010-03-27  Bruno Haible  <bruno@clisp.org>
25878
25879         Addendum to 2010-02-07 commit.
25880         * gnulib-tool (func_usage): Document --extract-applicability option.
25881
25882 2010-03-27  Bruno Haible  <bruno@clisp.org>
25883
25884         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
25885         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
25886         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
25887         rather than link errors.
25888
25889 2010-03-27  Bruno Haible  <bruno@clisp.org>
25890
25891         Avoid side effects from tests-related modules on the compilation of lib.
25892         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
25893         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
25894         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
25895         parameter. Emit into AM_CPPFLAGS a definition of the designated C
25896         macro.
25897         (func_import): Define a witness macro. Assign it a value that depends
25898         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
25899         tests-related modules.
25900         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
25901         Reported by Jim Meyering.
25902
25903 2010-03-27  Bruno Haible  <bruno@clisp.org>
25904
25905         Factorize common .m4 code.
25906         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
25907         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
25908         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
25909         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
25910         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25911         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
25912         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
25913         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25914         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25915         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25916         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
25917         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25918         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25919         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25920         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25921         * m4/stddef_h.m4 (gl_STDDEF_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/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
25926         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
25927         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25928         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25929         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25930         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25931         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25932         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
25933         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
25934         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
25935         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25936         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25937         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25938
25939 2010-03-27  Bruno Haible  <bruno@clisp.org>
25940
25941         Fix a compilation error on Cygwin with g++ >= 4.3.
25942         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
25943         if it is undefined or if we alias it to chmod.
25944         (lstat): Don't warn about the use of this function if it is undefined
25945         or if we alias it to stat.
25946         Reported by Simon Josefsson.
25947
25948 2010-03-27  Bruno Haible  <bruno@clisp.org>
25949
25950         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
25951         * modules/getlogin (configure.ac): Update.
25952
25953         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
25954         * modules/getlogin_r (configure.ac): Update.
25955
25956         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
25957         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
25958         * modules/inet_ntop (configure.ac): Update.
25959
25960         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
25961         * modules/inet_pton (configure.ac): Update.
25962
25963         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
25964         * modules/mbslen (configure.ac): Update.
25965
25966         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
25967         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
25968         * modules/forkpty (configure.ac): Update.
25969         * modules/openpty (configure.ac): Update.
25970
25971 2010-03-26  Simon Josefsson  <simon@josefsson.org>
25972
25973         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
25974         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
25975
25976 2010-03-25  Eric Blake  <eblake@redhat.com>
25977
25978         maint: use pragma consistently across replacement headers
25979         * lib/ctype.in.h (system_header): Hoist for consistent placement.
25980         * lib/dirent.in.h (system_header): Likewise.
25981         * lib/errno.in.h (system_header): Likewise.
25982         * lib/float.in.h (system_header): Likewise.
25983         * lib/getopt.in.h (system_header): Likewise.
25984         * lib/iconv.in.h (system_header): Likewise.
25985         * lib/inttypes.in.h (system_header): Likewise.
25986         * lib/langinfo.in.h (system_header): Likewise.
25987         * lib/locale.in.h (system_header): Likewise.
25988         * lib/math.in.h (system_header): Likewise.
25989         * lib/netdb.in.h (system_header): Likewise.
25990         * lib/netinet_in.in.h (system_header): Likewise.
25991         * lib/pty.in.h (system_header): Likewise.
25992         * lib/sched.in.h (system_header): Likewise.
25993         * lib/se-selinux.in.h (system_header): Likewise.
25994         * lib/search.in.h (system_header): Likewise.
25995         * lib/spawn.in.h (system_header): Likewise.
25996         * lib/stdarg.in.h (system_header): Likewise.
25997         * lib/stdint.in.h (system_header): Likewise.
25998         * lib/string.in.h (system_header): Likewise.
25999         * lib/strings.in.h (system_header): Likewise.
26000         * lib/sys_file.in.h (system_header): Likewise.
26001         * lib/sys_ioctl.in.h (system_header): Likewise.
26002         * lib/sys_socket.in.h (system_header): Likewise.
26003         * lib/sys_times.in.h (system_header): Likewise.
26004         * lib/sys_utsname.in.h (system_header): Likewise.
26005         * lib/sys_wait.in.h (system_header): Likewise.
26006         * lib/sysexits.in.h (system_header): Likewise.
26007         * lib/unistd.in.h (system_header): Likewise.
26008         * lib/wctype.in.h (system_header): Likewise.
26009
26010         arpa/inet: fix mingw compilation warning
26011         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
26012         Reported by Matthew Bolte.
26013
26014 2010-03-25  Bruno Haible  <bruno@clisp.org>
26015
26016         Avoid collision between gnulib wrapper and libintl wrapper.
26017         * lib/printf.c (printf): Don't define if a printf wrapper is already
26018         defined in intl/printf.c.
26019         Reported by Michel Boaventura <michel@michelboaventura.com>.
26020
26021 2010-03-25  Bruno Haible  <bruno@clisp.org>
26022
26023         Use ANSI C.
26024         * lib/readutmp.h (getutent): Provide ANSI C prototype.
26025
26026 2010-03-25  Bruno Haible  <bruno@clisp.org>
26027
26028         Minor formatting changes.
26029         * lib/acosl.c: Insert space before function argument list.
26030         * lib/argz.c: Likewise.
26031         * lib/asinl.c: Likewise.
26032         * lib/expl.c: Likewise.
26033         * lib/gen-uni-tables.c: Likewise.
26034         * lib/gettext.h: Likewise.
26035         * lib/glthread/lock.h: Likewise.
26036         * lib/tanl.c: Likewise.
26037         * lib/uniname/uniname.c: Likewise.
26038         * tests/test-idpriv-drop.c: Likewise.
26039         * tests/test-idpriv-droptemp.c: Likewise.
26040         * tests/test-lock.c: Likewise.
26041         * tests/test-tls.c: Likewise.
26042         * lib/argp-help.c: Insert space before function-like macro argument
26043         list.
26044         * lib/memcmp.c: Likewise.
26045         * tests/test-base64.c: Likewise.
26046         * lib/localename.c: Insert space before sizeof's argument list.
26047         * lib/safe-alloc.h: Likewise.
26048         * lib/file-set.h: Insert space before macro argument list.
26049         * tests/test-argp.c: Likewise.
26050         * lib/argp-namefrob.h: Insert space before function parameter list.
26051         * lib/getaddrinfo.c: Likewise.
26052         * lib/netdb.in.h: Likewise.
26053         * lib/parse-duration.h: Likewise.
26054         * lib/parse-duration.c: Likewise.
26055         * lib/poll.c: Likewise.
26056         * lib/select.c: Likewise.
26057         * lib/trim.h: Likewise.
26058         * tests/test-usleep.c: Likewise.
26059         * lib/ldexpl.c: Insert space before function parameter list and before
26060         function argument list.
26061         * lib/logl.c: Likewise.
26062         * lib/sqrtl.c: Likewise.
26063         * lib/trim.c: Likewise.
26064         * lib/cosl.c: Use GNU style indentation. Insert space before function
26065         argument list.
26066         * lib/sinl.c: Likewise.
26067         * lib/tsearch.c: Insert space after 'for'.
26068         Reported by Jim Meyering.
26069
26070 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
26071
26072         * maint.mk (sc_Wundef_boolean): Check for the presence of the
26073         config header before grepping, as it's not present before
26074         autoreconf/configure are run.  Reported by Simon Josefsson.
26075
26076 2010-03-23  Bruno Haible  <bruno@clisp.org>
26077
26078         pt_chown: Make it work with automake < 1.11.
26079         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
26080         Reported by Simon Josefsson.
26081
26082 2010-03-23  Bruno Haible  <bruno@clisp.org>
26083
26084         pt_chown: Don't depend on GPLed modules.
26085         * lib/pt_chown.c: Don't include idpriv.h.
26086         (main): Don't drop privileges.
26087         * modules/pt_chown (Depends-on): Remove idpriv-drop.
26088         Reported by Simon Josefsson.
26089
26090 2010-03-24  Simon Josefsson  <simon@josefsson.org>
26091
26092         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
26093         suggestions from karl@freefriends.org (Karl Berry).
26094
26095 2010-03-22  Eric Blake  <eblake@redhat.com>
26096
26097         gethostname: further tweaks
26098         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
26099         are overriding gethostname.
26100         Suggested by Bruno Haible.
26101
26102 2010-03-21  Bruno Haible  <bruno@clisp.org>
26103
26104         Fix comments.
26105         * lib/forkpty.c (rpl_forkpty): Fix comment.
26106         * lib/openpty.c (rpl_openpty): Likewise.
26107         Reported by Eric Blake.
26108
26109 2010-03-22  Eric Blake  <eblake@redhat.com>
26110
26111         gethostname: fix build on mingw
26112         * lib/unistd.in.h (includes): Work around fact that mingw
26113         <winsock2.h> re-includes <unistd.h>, by avoiding any
26114         redeclarations if we are being included by <winsock2.h>.
26115         Reported by Matthias Bolte.
26116
26117 2010-03-21  Bruno Haible  <bruno@clisp.org>
26118
26119         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
26120         * lib/forkpty.c (forkpty): New replacement function, from glibc with
26121         modifications.
26122         * lib/pty.in.h (forkpty): Update declaration. Add comments.
26123         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
26124         provide the replacement.
26125         * modules/forkpty (Depends-on): Add openpty, login_tty.
26126         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
26127         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
26128         * doc/glibc-functions/forkpty.texi: More supported platforms.
26129         * config/srclist.txt: Add forkpty.c (commented).
26130
26131 2010-03-21  Bruno Haible  <bruno@clisp.org>
26132
26133         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
26134         (Makefile.am): Verify that PTY_LIB is defined.
26135
26136         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
26137
26138 2010-03-21  Bruno Haible  <bruno@clisp.org>
26139
26140         Tests for module 'login_tty'.
26141         * modules/login_tty-tests: New file.
26142         * tests/test-login_tty.c: New file.
26143
26144         New module 'login_tty'.
26145         * lib/login_tty.c: New file.
26146         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
26147         * modules/login_tty: New file.
26148         * doc/glibc-functions/login_tty.texi: Mention the new module.
26149
26150 2010-03-21  Bruno Haible  <bruno@clisp.org>
26151
26152         login_tty: Documentation.
26153         * doc/glibc-functions/login_tty.texi: New file.
26154         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
26155
26156 2010-03-21  Bruno Haible  <bruno@clisp.org>
26157
26158         pty: Consistent macro naming.
26159         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
26160         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
26161         * modules/pty (configure.ac): Update.
26162
26163 2010-03-21  Bruno Haible  <bruno@clisp.org>
26164
26165         Tests for openpty: Make stricter.
26166         * tests/test-openpty.c (main): Add test of canonical processing and
26167         erase.
26168         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
26169
26170         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
26171         * lib/openpty.c (openpty): New replacement function.
26172         * lib/pty.in.h: Include <termios.h>.
26173         (openpty): Update declaration. Add comments.
26174         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
26175         is not declared, arrange to provide the replacement. Check for _getpty
26176         and posix_openpt.
26177         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
26178         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
26179         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
26180         * modules/pty-tests (test_pty_c___LDADD): New variable.
26181         * doc/glibc-functions/openpty.texi: More supported platforms.
26182
26183 2010-03-21  Bruno Haible  <bruno@clisp.org>
26184
26185         setenv: Tweaks.
26186         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
26187         the test program.
26188         * doc/posix-functions/setenv.texi: Update platforms list.
26189
26190 2010-03-21  Bruno Haible  <bruno@clisp.org>
26191
26192         New module 'unlockpt'.
26193         * lib/unlockpt.c: New file, from glibc with modifications.
26194         * m4/unlockpt.m4: New file.
26195         * modules/unlockpt: New file.
26196         * lib/stdlib.in.h (unlockpt): New declaration.
26197         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
26198         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
26199         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
26200         HAVE_UNLOCKPT.
26201         * doc/posix-functions/unlockpt.texi: Mention the new module.
26202         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
26203         * config/srclist.txt: Add unlockpt.c (commented).
26204
26205 2010-03-21  Jim Meyering  <meyering@redhat.com>
26206
26207         maint.mk: prohibit inclusion of "intprops.h" without use
26208         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
26209
26210 2010-03-21  Bruno Haible  <bruno@clisp.org>
26211
26212         New module 'grantpt'.
26213         * lib/grantpt.c: New file, from glibc with modifications.
26214         * m4/grantpt.m4: New file.
26215         * modules/grantpt: New file.
26216         * lib/stdlib.in.h (grantpt): New declaration.
26217         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
26218         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
26219         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
26220         HAVE_GRANTPT.
26221         * doc/posix-functions/grantpt.texi: Mention the new module.
26222         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
26223         * config/srclist.txt: Add grantpt.c (commented).
26224
26225 2010-03-21  Bruno Haible  <bruno@clisp.org>
26226
26227         New module 'pt_chown'.
26228         * lib/pt_chown.c: New file, from glibc with modifications.
26229         * lib/pty-private.h: New file, from glibc with modifications.
26230         * modules/pt_chown: New file.
26231         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
26232
26233 2010-03-21  Bruno Haible  <bruno@clisp.org>
26234
26235         Tests for module 'ptsname'.
26236         * modules/ptsname-tests: New file.
26237         * tests/test-ptsname.c: New file.
26238
26239         New module 'ptsname'.
26240         * lib/ptsname.c: New file, from glibc with modifications.
26241         * m4/ptsname.m4: New file.
26242         * modules/ptsname: New file.
26243         * lib/stdlib.in.h (ptsname): New declaration.
26244         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
26245         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
26246         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
26247         HAVE_PTSNAME.
26248         * doc/posix-functions/ptsname.texi: Mention the new module.
26249         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
26250         * config/srclist.txt: Add ptsname.c (commented).
26251
26252 2010-03-21  Bruno Haible  <bruno@clisp.org>
26253
26254         Tests for module 'ttyname_r'.
26255         * modules/ttyname_r-tests: New file.
26256         * tests/test-ttyname_r.c: New file.
26257
26258         New module 'ttyname_r'.
26259         * lib/ttyname_r.c: New file.
26260         * m4/ttyname_r.m4: New file.
26261         * modules/ttyname_r: New file.
26262         * lib/unistd.in.h (ttyname_r): New declaration.
26263         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
26264         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
26265         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
26266         HAVE_TTYNAME_R.
26267         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
26268         * doc/posix-functions/ttyname_r.texi: Mention the new module.
26269
26270 2010-03-20  Bruno Haible  <bruno@clisp.org>
26271
26272         signal: Undefine macro definitions in C++ mode.
26273         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
26274         sigfillset): Undefine macro definitions from the system header in C++
26275         mode.
26276         Reported by John W. Eaton <jwe@gnu.org>.
26277
26278 2010-03-20  Bruno Haible  <bruno@clisp.org>
26279
26280         Ensure no #include statements inside extern "C" { ... }.
26281         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
26282         contain #include statements.
26283         * lib/time.in.h: Likewise.
26284
26285 2010-03-20  Bruno Haible  <bruno@clisp.org>
26286
26287         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
26288         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
26289         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
26290         Reported by John W. Eaton <jwe@gnu.org>.
26291
26292 2010-03-20  Bruno Haible  <bruno@clisp.org>
26293
26294         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
26295         Reported by Jim Meyering.
26296
26297 2010-03-20  Bruno Haible  <bruno@clisp.org>
26298
26299         pipe: Set errno upon failure.
26300         * lib/pipe.h: Specify that when -1 is returned, errno is set.
26301         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
26302         errno value in error message.
26303
26304 2010-03-20  Bruno Haible  <bruno@clisp.org>
26305             Jim Meyering  <meyering@redhat.com>
26306
26307         lchown: Avoid "unused variable" warning.
26308         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
26309
26310 2010-03-20  Bruno Haible  <bruno@clisp.org>
26311
26312         Work around unlink() bug on MacOS X 10.5.6.
26313         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
26314         attempting to unlink a parent directory.
26315         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
26316         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
26317         activate for the replacement function.
26318         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
26319
26320 2010-03-20  Bruno Haible  <bruno@clisp.org>
26321
26322         Fix link errors on Solaris 8.
26323         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
26324         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
26325
26326 2010-03-19  Jim Meyering  <meyering@redhat.com>
26327
26328         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
26329         The _LIBC implementation of build_range_exp correctly honors the
26330         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
26331         However, the non-_LIBC implementation would ignore that syntax-bit
26332         flag and return REG_ERANGE unconditionally.
26333         This change makes it honor that flag.
26334         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
26335         Make two pointer parameters "const".
26336         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
26337         (parse_bracket_exp): Update caller.
26338
26339         regex.m4: correct the reversed range endpoint ([b-a]) test
26340         * m4/regex.m4: When requiring that [b-a] evoke failure,
26341         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
26342         test pass once again for x86-based systems.
26343
26344 2010-03-19  Bruno Haible  <bruno@clisp.org>
26345
26346         scandir: Fix link error on Solaris 8.
26347         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
26348         macros.
26349
26350 2010-03-19  Bruno Haible  <bruno@clisp.org>
26351
26352         getusershell: Fix documentation.
26353         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
26354         module.
26355         * doc/glibc-functions/setusershell.texi: Likewise.
26356
26357         getusershell: Provide declaration, missing on Solaris 9.
26358         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
26359         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
26360         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
26361         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
26362         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26363         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
26364         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
26365         HAVE_GETUSERSHELL.
26366         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
26367
26368 2010-03-19  Bruno Haible  <bruno@clisp.org>
26369
26370         wctype: Provide iswblank function.
26371         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
26372         exists and is fine.
26373         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
26374         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
26375         * tests/test-wctype.c (main): Re-enable the iswblank tests.
26376         * doc/posix-functions/iswblank.texi: Update.
26377
26378 2010-03-19  Bruno Haible  <bruno@clisp.org>
26379
26380         Tests of module 'pty' in C++ mode.
26381         * modules/pty-tests: New file.
26382         * tests/test-pty-c++.cc: New file.
26383         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26384
26385 2010-03-19  Eric Blake  <eblake@redhat.com>
26386
26387         logb: fix documentation
26388         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
26389         1.5 declaration bug.
26390
26391         forkpty, openpty: prefer glibc's const-safe prototype
26392         * lib/forkpty.c (rpl_forkpty): New file.
26393         * lib/openpty.c (rpl_openpty): Likewise.
26394         * modules/forkpty (Files): Distribute it.
26395         * modules/openpty (Files): Likewise.
26396         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
26397         check...
26398         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
26399         replacement for for non-const BSD signature.
26400         * modules/pty (Makefile.am): Substitute witnesses.
26401         * lib/pty.in.h (forkpty, openpty): Declare replacements.
26402         * tests/test-forkpty.c: Update signature check.
26403         * tests/test-openpty.c: Likewise.
26404         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
26405         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26406
26407         forkpty, openpty: split functions into new modules
26408         * modules/pty (Makefile.am): Substitute new witnesses.
26409         (Libraries): Move library detection...
26410         * modules/forkpty: ...into new module.
26411         * modules/openpty: Another new module.
26412         * modules/pty-tests: Rename and split...
26413         * modules/forkpty-tests: ...to this...
26414         * modules/openpty-tests: ...and this.
26415         * tests/test-pty.c: Rename and split...
26416         * tests/test-forkpty.c: ...to this...
26417         * tests/test-openpty.c: ...and this.
26418         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
26419         (gl_PTY): Split library searching...
26420         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
26421         (gl_FORKPTY, gl_OPENPTY): New macros.
26422         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
26423         * NEWS: Mention the split.
26424         * MODULES.html.sh (Misc): Document the modules.
26425         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
26426         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26427
26428         pty: improve replacement header
26429         * lib/pty.in.h: New file.
26430         * modules/pty (Files): Ship it.
26431         (Makefile.am): Always build replacement.
26432         * m4/pty.m4: Rename...
26433         * m4/pty_h.m4: ...to this.
26434         (gl_PTY): Modernize setting of witness macros; update check of
26435         forkpty to take proper advantage of cache.
26436         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
26437
26438         getopt: avoid compiler warning
26439         * lib/getopt.c (attribute_hidden): Remove unused macro.
26440
26441 2010-03-18  Bruno Haible  <bruno@clisp.org>
26442
26443         Fix link errors on Solaris 8.
26444         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
26445         * modules/search-tests (test_search_c___LDADD): Likewise.
26446         * modules/signal-tests (test_signal_c___LDADD): Likewise.
26447         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
26448         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
26449         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
26450         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
26451         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
26452         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
26453
26454 2010-03-18  Bruno Haible  <bruno@clisp.org>
26455
26456         Fix bug introduced on 2010-03-14.
26457         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
26458         (gl_SPAWN_H): Require it.
26459         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
26460         Reported by Simon Josefsson.
26461
26462 2010-03-18  Bruno Haible  <bruno@clisp.org>
26463
26464         Fix typo introduced on 2009-12-31.
26465         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
26466         posix_spawn_file_actions_adddup2.
26467
26468 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
26469         and Eric Blake  <eblake@redhat.com>
26470
26471         test-vc-list-files-git: make more robust
26472         * tests/test-vc-list-files-git.sh: Unset problematic environment
26473         variables.  Chain commands together.
26474
26475 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
26476
26477         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
26478         `AC_CHECK_DECL' invocation.
26479
26480 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
26481
26482         * lib/inttostr.c (inttostr): Make sure the invocation of verify
26483         appears before executable statements. Suggested by Petr Sumbera
26484         <Petr.Sumbera@Sun.COM>.
26485
26486 2010-03-14  Bruno Haible  <bruno@clisp.org>
26487
26488         * tests/test-flock.c (test_exclusive): Comment out a test that causes
26489         portability problems. Instead use a simpler test.
26490         (main): Check that invalid arguments are rejected only on Linux.
26491
26492 2010-03-14  Bruno Haible  <bruno@clisp.org>
26493
26494         Fix bug introduced on 2009-12-31.
26495         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
26496         gl_PREREQ_SYS_H_WINSOCK2 always.
26497         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
26498         SYS_SOCKET_H variable.
26499         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
26500         Update comments.
26501         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
26502         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26503         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26504         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26505         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
26506
26507 2010-03-14  Bruno Haible  <bruno@clisp.org>
26508
26509         Fix values returned by sinl, cosl.
26510         * lib/trigl.h: Add specification comments.
26511         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
26512         that combines the values from the precomputed table with the values of
26513         the Chebyshev polynomials.
26514
26515 2010-03-14  Bruno Haible  <bruno@clisp.org>
26516
26517         Fix compilation error when modules 'posix_spawn[p]' are not used.
26518         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
26519         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
26520
26521 2010-03-14  Bruno Haible  <bruno@clisp.org>
26522
26523         Fix compilation error on mingw when module 'time_r' is not used.
26524         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
26525         is 1.
26526         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
26527         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26528         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
26529         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
26530
26531 2010-03-14  Bruno Haible  <bruno@clisp.org>
26532
26533         Fix compilation error with Sun C.
26534         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
26535         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
26536         instead of GCC specific ULONG_LONG_MAX.
26537         * lib/xstrtoll.c: Likewise.
26538         * lib/xstrtoull.c: Likewise.
26539
26540 2010-03-13  Bruno Haible  <bruno@clisp.org>
26541
26542         Allow the user to disable C++ code and tests.
26543         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
26544         (gl_PROG_ANSI_CXX): Require it.
26545
26546 2010-03-13  Bruno Haible  <bruno@clisp.org>
26547
26548         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
26549         cases.
26550
26551 2010-03-13  Bruno Haible  <bruno@clisp.org>
26552
26553         Test that gnulib does not break the standard C++ headers.
26554         * tests/test-locale-c++2.cc: New file.
26555         * modules/locale-tests (Files): Add it.
26556         (Makefile.am): Compile it for test-locale-c++.
26557         * tests/test-math-c++2.cc: New file.
26558         * modules/math-tests (Files): Add it.
26559         (Makefile.am): Compile it for test-math-c++.
26560         * tests/test-signal-c++2.cc: New file.
26561         * modules/signal-tests (Files): Add it.
26562         (Makefile.am): Compile it for test-signal-c++.
26563         * tests/test-stdio-c++2.cc: New file.
26564         * modules/stdio-tests (Files): Add it.
26565         (Makefile.am): Compile it for test-stdio-c++.
26566         * tests/test-stdlib-c++2.cc: New file.
26567         * modules/stdlib-tests (Files): Add it.
26568         (Makefile.am): Compile it for test-stdlib-c++.
26569         * tests/test-string-c++2.cc: New file.
26570         * modules/string-tests (Files): Add it.
26571         (Makefile.am): Compile it for test-string-c++.
26572         * tests/test-time-c++2.cc: New file.
26573         * modules/time-tests (Files): Add it.
26574         (Makefile.am): Compile it for test-time-c++.
26575         Reported by John W. Eaton <jwe@gnu.org>.
26576
26577 2010-03-13  Bruno Haible  <bruno@clisp.org>
26578
26579         * gnulib-tool (func_usage): Clarify which options are available for
26580         --create-testdir and --create-megatestdir.
26581
26582 2010-03-13  Bruno Haible  <bruno@clisp.org>
26583
26584         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
26585         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
26586         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
26587         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
26588         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
26589         when appropriate.
26590         Reported by Jim Meyering.
26591
26592 2010-03-12  Simon Josefsson  <simon@josefsson.org>
26593
26594         * gnulib-tool (func_import): Explain origin of code.
26595
26596 2010-03-12  Bruno Haible  <bruno@clisp.org>
26597
26598         Fix problem with automake's definition of CXXLINK.
26599         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
26600         Reported by Simon Josefsson and Ludovic Courtès.
26601
26602 2010-03-12  Bruno Haible  <bruno@clisp.org>
26603
26604         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
26605         stable releases.
26606
26607 2010-03-11  Bruno Haible  <bruno@clisp.org>
26608
26609         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
26610         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
26611         whether the system provides one variant or multiple variants of the
26612         function.
26613         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
26614         C++ compilers.
26615         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
26616         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
26617         Reported by Jim Meyering.
26618
26619 2010-03-09  Simon Josefsson  <simon@josefsson.org>
26620
26621         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
26622
26623 2010-03-08  Bruno Haible  <bruno@clisp.org>
26624
26625         gnulib-tool: Add support for --libtool in --create-testdir.
26626         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
26627         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
26628
26629 2010-03-08  Eric Blake  <eblake@redhat.com>
26630
26631         gnulib-tool.texi: mention possibility of git submodule
26632         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
26633         submodules.
26634         * doc/.gitignore: Ignore another generated file.
26635
26636 2010-03-08  Karl Berry  <karl@gnu.org>
26637
26638         * doc/gnulib-tool.texi (VCS Issues): Mention third option
26639         of committing gnulib files while skipping others.
26640
26641 2010-03-07  Bruno Haible  <bruno@clisp.org>
26642
26643         Tests of module 'wctype' in C++ mode.
26644         * tests/test-wctype-c++.cc: New file.
26645         * modules/wctype-tests (Files): Add it and tests/signature.h.
26646         (Depends-on): Add ansi-c++-opt.
26647         (Makefile.am): Arrange to compile and run test-wctype-c++.
26648
26649         Tests of module 'wchar' in C++ mode.
26650         * tests/test-wchar-c++.cc: New file.
26651         * modules/wchar-tests (Files): Add it and tests/signature.h.
26652         (Depends-on): Add ansi-c++-opt.
26653         (Makefile.am): Arrange to compile and run test-wchar-c++.
26654         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
26655         gl_MODULE_INDICATOR.
26656
26657         Tests of module 'unistd' in C++ mode.
26658         * tests/test-unistd-c++.cc: New file.
26659         * modules/unistd-tests (Files): Add it and tests/signature.h.
26660         (Depends-on): Add ansi-c++-opt.
26661         (Makefile.am): Arrange to compile and run test-unistd-c++.
26662         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
26663         gl_MODULE_INDICATOR.
26664
26665         Tests of module 'time' in C++ mode.
26666         * tests/test-time-c++.cc: New file.
26667         * modules/time-tests (Files): Add it and tests/signature.h.
26668         (Depends-on): Add ansi-c++-opt.
26669         (Makefile.am): Arrange to compile and run test-time-c++.
26670         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26671
26672         Tests of module 'sys_time' in C++ mode.
26673         * tests/test-sys_time-c++.cc: New file.
26674         * modules/sys_time-tests (Files): Add it and tests/signature.h.
26675         (Depends-on): Add ansi-c++-opt.
26676         (Makefile.am): Arrange to compile and run test-sys_time-c++.
26677         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
26678         gl_MODULE_INDICATOR.
26679
26680         Tests of module 'sys_stat' in C++ mode.
26681         * tests/test-sys_stat-c++.cc: New file.
26682         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
26683         (Depends-on): Add ansi-c++-opt.
26684         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
26685         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
26686         gl_MODULE_INDICATOR.
26687
26688         Tests of module 'sys_socket' in C++ mode.
26689         * tests/test-sys_socket-c++.cc: New file.
26690         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
26691         (Depends-on): Add ansi-c++-opt.
26692         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
26693         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
26694         gl_MODULE_INDICATOR.
26695
26696         Tests of module 'sys_select' in C++ mode.
26697         * tests/test-sys_select-c++.cc: New file.
26698         * modules/sys_select-tests (Files): Add it and tests/signature.h.
26699         (Depends-on): Add ansi-c++-opt.
26700         (Makefile.am): Arrange to compile and run test-sys_select-c++.
26701         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
26702         gl_MODULE_INDICATOR.
26703
26704         Tests of module 'sys_ioctl' in C++ mode.
26705         * tests/test-sys_ioctl-c++.cc: New file.
26706         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
26707         (Depends-on): Add ansi-c++-opt.
26708         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
26709         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
26710         gl_MODULE_INDICATOR.
26711
26712         Tests of module 'string' in C++ mode.
26713         * tests/test-string-c++.cc: New file.
26714         * modules/string-tests (Files): Add it and tests/signature.h.
26715         (Depends-on): Add ansi-c++-opt.
26716         (Makefile.am): Arrange to compile and run test-string-c++.
26717         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
26718         gl_MODULE_INDICATOR.
26719
26720         Tests of module 'stdlib' in C++ mode.
26721         * tests/test-stdlib-c++.cc: New file.
26722         * modules/stdlib-tests (Files): Add it and tests/signature.h.
26723         (Depends-on): Add ansi-c++-opt.
26724         (Makefile.am): Arrange to compile and run test-stdlib-c++.
26725         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
26726         gl_MODULE_INDICATOR.
26727
26728         Tests of module 'stdio' in C++ mode.
26729         * tests/test-stdio-c++.cc: New file.
26730         * modules/stdio-tests (Files): Add it and tests/signature.h.
26731         (Depends-on): Add ansi-c++-opt.
26732         (Makefile.am): Arrange to compile and run test-stdio-c++.
26733         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
26734         gl_MODULE_INDICATOR.
26735
26736         Tests of module 'spawn' in C++ mode.
26737         * tests/test-spawn-c++.cc: New file.
26738         * modules/spawn-tests (Files): Add it and tests/signature.h.
26739         (Depends-on): Add ansi-c++-opt.
26740         (Makefile.am): Arrange to compile and run test-spawn-c++.
26741         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
26742         gl_MODULE_INDICATOR.
26743
26744         Tests of module 'signal' in C++ mode.
26745         * tests/test-signal-c++.cc: New file.
26746         * modules/signal-tests (Files): Add it and tests/signature.h.
26747         (Depends-on): Add ansi-c++-opt.
26748         (Makefile.am): Arrange to compile and run test-signal-c++.
26749         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
26750         gl_MODULE_INDICATOR.
26751
26752         Tests of module 'search' in C++ mode.
26753         * tests/test-search-c++.cc: New file.
26754         * modules/search-tests (Files): Add it and tests/signature.h.
26755         (Depends-on): Add ansi-c++-opt.
26756         (Makefile.am): Arrange to compile and run test-search-c++.
26757         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
26758         gl_MODULE_INDICATOR.
26759
26760         Tests of module 'math' in C++ mode.
26761         * tests/test-math-c++.cc: New file.
26762         * modules/math-tests (Files): Add it and tests/signature.h.
26763         (Depends-on): Add ansi-c++-opt.
26764         (Makefile.am): Arrange to compile and run test-math-c++.
26765         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26766
26767         Tests of module 'locale' in C++ mode.
26768         * tests/test-locale-c++.cc: New file.
26769         * modules/locale-tests (Files): Add it and tests/signature.h.
26770         (Depends-on): Add ansi-c++-opt.
26771         (Makefile.am): Arrange to compile and run test-locale-c++.
26772         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
26773         gl_MODULE_INDICATOR.
26774
26775         Tests of module 'langinfo' in C++ mode.
26776         * tests/test-langinfo-c++.cc: New file.
26777         * modules/langinfo-tests (Files): Add it and tests/signature.h.
26778         (Depends-on): Add ansi-c++-opt.
26779         (Makefile.am): Arrange to compile and run test-langinfo-c++.
26780         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
26781         gl_MODULE_INDICATOR.
26782
26783         Tests of module 'iconv-h' in C++ mode.
26784         * tests/test-iconv-h-c++.cc: New file.
26785         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
26786         (Depends-on): Add ansi-c++-opt.
26787         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
26788
26789         Tests of module 'glob' in C++ mode.
26790         * tests/test-glob-c++.cc: New file.
26791         * modules/glob-tests (Files): Add it.
26792         (Depends-on): Add ansi-c++-opt.
26793         (Makefile.am): Arrange to compile and run test-glob-c++.
26794
26795         Tests of module 'fcntl-h' in C++ mode.
26796         * tests/test-fcntl-h-c++.cc: New file.
26797         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
26798         (Depends-on): Add ansi-c++-opt.
26799         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
26800         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
26801         gl_MODULE_INDICATOR.
26802
26803         Tests of module 'dirent' in C++ mode.
26804         * tests/test-dirent-c++.cc: New file.
26805         * modules/dirent-tests (Files): Add it and tests/signature.h.
26806         (Depends-on): Add ansi-c++-opt.
26807         (Makefile.am): Arrange to compile and run test-dirent-c++.
26808         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26809         gl_MODULE_INDICATOR.
26810
26811         New module 'ansi-c++-opt'.
26812         * modules/ansi-c++-opt: New file.
26813         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
26814
26815         Document C++ namespace mode.
26816         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
26817
26818         wctype: Avoid #define replacements in C++ mode.
26819         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
26820         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
26821         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
26822         In C++, define a namespaced alias symbol.
26823         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
26824         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
26825         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
26826         rule.
26827
26828         wchar: Avoid #define replacements in C++ mode.
26829         * lib/wchar.in.h: Include c++defs.h.
26830         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
26831         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
26832         symbol.
26833         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
26834         * modules/wchar (Depends-on): Add c++defs.
26835         (Makefile.am): Update wchar.h rule.
26836
26837         unistd: Avoid #define replacements in C++ mode.
26838         * lib/unistd.in.h: Include c++defs.h.
26839         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
26840         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
26841         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
26842         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
26843         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
26844         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
26845         symbol.
26846         (environ): Update.
26847         * modules/unistd (Depends-on): Add c++defs.
26848         (Makefile.am): Update unistd.h rule.
26849
26850         time: Avoid #define replacements in C++ mode.
26851         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
26852         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
26853         define a namespaced alias symbol.
26854         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
26855         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
26856         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
26857         * modules/time (Depends-on): Add c++defs, warn-on-use.
26858         (Makefile.am): Update time.h rule.
26859         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26860         * modules/nanosleep (configure.ac): Likewise.
26861         * modules/strptime (configure.ac): Likewise.
26862         * modules/timegm (configure.ac): Likewise.
26863
26864         sys_time: Avoid #define replacements in C++ mode.
26865         * lib/sys_time.in.h: Include c++defs.h.
26866         (gettimeofday): In C++, define a namespaced alias symbol.
26867         * modules/sys_time (Depends-on): Add c++defs.
26868         (Makefile.am): Update sys/time.h rule.
26869
26870         sys_stat: Avoid #define replacements in C++ mode.
26871         * lib/sys_stat.in.h: Include c++defs.h.
26872         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
26873         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
26874         namespaced alias symbol.
26875         In C++, define a namespaced alias symbol.
26876         * modules/sys_stat (Depends-on): Add c++defs.
26877         (Makefile.am): Update sys/stat.h rule.
26878
26879         sys_socket: Avoid #define replacements in C++ mode.
26880         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
26881         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
26882         definitions also when the system has a <sys/socket.h>.
26883         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26884         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
26885         In C++, define a namespaced alias symbol.
26886         * modules/sys_socket (Depends-on): Add c++defs.
26887         (Makefile.am): Update sys/socket.h rule.
26888
26889         sys_select: Avoid #define replacements in C++ mode.
26890         * lib/sys_select.in.h: Include c++defs.h. Enable the function
26891         definitions also when the system has a <sys/select.h>.
26892         (select): In C++, define a namespaced alias symbol.
26893         * modules/sys_select (Depends-on): Add c++defs.
26894         (Makefile.am): Update sys/select.h rule.
26895
26896         sys_ioctl: Avoid #define replacements in C++ mode.
26897         * lib/sys_ioctl.in.h: Include c++defs.h.
26898         (ioctl): In C++, define a namespaced alias symbol.
26899         * modules/sys_ioctl (Depends-on): Add c++defs.
26900         (Makefile.am): Update sys/ioctl.h rule.
26901
26902         string: Avoid #define replacements in C++ mode.
26903         * lib/string.in.h: Include c++defs.h.
26904         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
26905         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26906         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26907         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
26908         strsignal, strverscmp): In C++, define a namespaced alias symbol.
26909         * modules/string (Depends-on): Add c++defs.
26910         (Makefile.am): Update string.h rule.
26911
26912         stdlib: Avoid #define replacements in C++ mode.
26913         * lib/stdlib.in.h: Include c++defs.h.
26914         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
26915         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
26916         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
26917         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
26918         symbol.
26919         * modules/stdlib (Depends-on): Add c++defs.
26920         (Makefile.am): Update stdlib.h rule.
26921
26922         stdio: Avoid #define replacements in C++ mode.
26923         * lib/stdio.in.h: Include c++defs.h.
26924         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
26925         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
26926         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
26927         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
26928         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
26929         namespaced alias symbol.
26930         * modules/stdio (Depends-on): Add c++defs.
26931         (Makefile.am): Update stdio.h rule.
26932
26933         spawn: Avoid #define replacements in C++ mode.
26934         * lib/spawn.in.h: Include c++defs.h.
26935         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26936         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26937         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26938         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26939         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26940         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26941         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26942         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26943         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26944         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26945         In C++, define a namespaced alias symbol.
26946         * modules/spawn (Depends-on): Add c++defs.
26947         (Makefile.am): Update spawn.h rule.
26948
26949         signal: Avoid #define replacements in C++ mode.
26950         * lib/signal.in.h: Include c++defs.h.
26951         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26952         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
26953         namespaced alias symbol.
26954         * modules/signal (Depends-on): Add c++defs.
26955         (Makefile.am): Update signal.h rule.
26956
26957         search: Avoid #define replacements in C++ mode.
26958         * lib/search.in.h: Include c++defs.h.
26959         (_gl_search_compar_fn, _gl_search_action_fn): New types.
26960         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
26961         symbol.
26962         * modules/search (Depends-on): Add c++defs.
26963         (Makefile.am): Update search.h rule.
26964
26965         math: Avoid #define replacements in C++ mode.
26966         * lib/math.in.h: Include c++defs.h.
26967         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
26968         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
26969         trunc, truncl): In C++, define a namespaced alias symbol.
26970         * modules/math (Depends-on): Add c++defs.
26971         (Makefile.am): Update math.h rule.
26972
26973         locale: Avoid #define replacements in C++ mode.
26974         * lib/locale.in.h: Include c++defs.h.
26975         (duplocale): In C++, define a namespaced alias symbol.
26976         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
26977         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
26978         * modules/locale (Depends-on): Add c++defs.
26979         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
26980
26981         langinfo: Avoid #define replacements in C++ mode.
26982         * lib/langinfo.in.h: Include c++defs.h.
26983         (nl_langinfo): In C++, define a namespaced alias symbol.
26984         * modules/langinfo (Depends-on): Add c++defs.
26985         (Makefile.am): Update langinfo.h rule.
26986
26987         iconv-h: Avoid #define replacements in C++ mode.
26988         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
26989         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
26990         symbol.
26991         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
26992         whenever iconv is present.
26993         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
26994         (Makefile.am): Update iconv.h rule.
26995
26996         glob: Avoid #define replacements in C++ mode.
26997         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
26998         (_gl_glob_errfunc_fn): New type.
26999         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
27000         symbol.
27001         * modules/glob (Depends-on): Add c++defs, warn-on-use.
27002         (Makefile.am): Update glob.h rule.
27003
27004         fcntl-h: Avoid #define replacements in C++ mode.
27005         * lib/fcntl.in.h: Include c++defs.h.
27006         (fcntl, open, openat): In C++, define a namespaced alias symbol.
27007         * modules/fcntl-h (Depends-on): Add c++defs.
27008         (Makefile.am): Update fcntl.h rule.
27009
27010         dirent: Avoid #define replacements in C++ mode.
27011         * lib/dirent.in.h: Include c++defs.h.
27012         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
27013         namespaced alias symbol.
27014         (dirfd): Update declaration.
27015         * modules/dirent (Depends-on): Add c++defs.
27016         (Makefile.am): Update dirent.h rule.
27017
27018         ctype: Make it usable in C++ code.
27019         * lib/ctype.in.h: Include c++defs.h.
27020         (isblank): Declare as extern "C".
27021         * modules/ctype (Depends-on): Add c++defs.
27022         (Makefile.am): Update ctype.h rule.
27023
27024         New module 'c++defs'.
27025         * modules/c++defs: New file.
27026         * build-aux/c++defs.h: New file.
27027         Reported by John W. Eaton <jwe@gnu.org>.
27028
27029 2010-03-07  Bruno Haible  <bruno@clisp.org>
27030
27031         logb: Provide missing declaration for Cygwin.
27032         * lib/math.in.h (logb): New declaration.
27033         * m4/logb.m4: New file.
27034         * modules/logb (Files): Add m4/logb.m4.
27035         (Depends-on): Add math.
27036         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
27037         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
27038         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
27039         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
27040         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
27041
27042 2010-03-07  Bruno Haible  <bruno@clisp.org>
27043
27044         Fix test-cond link error.
27045         * tests/test-cond.c: Include <stdio.h>.
27046
27047 2010-03-07  Bruno Haible  <bruno@clisp.org>
27048
27049         Fix test-dirent-safer link error.
27050         * modules/dirent-safer-tests (Makefile.am): Define
27051         test_dirent_safer_LDADD.
27052
27053 2010-03-07  Bruno Haible  <bruno@clisp.org>
27054
27055         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
27056         among default module list.
27057
27058 2010-03-07  Bruno Haible  <bruno@clisp.org>
27059
27060         Fix link error on platforms with GNU libiconv.
27061         * modules/unistr/u8-strcoll-tests (Makefile): Define
27062         test_u8_strcoll_LDADD.
27063         * modules/unistr/u16-strcoll-tests (Makefile): Define
27064         test_u16_strcoll_LDADD.
27065         * modules/unistr/u32-strcoll-tests (Makefile): Define
27066         test_u32_strcoll_LDADD.
27067
27068 2010-03-07  Bruno Haible  <bruno@clisp.org>
27069
27070         Use POSIX declarations for socket functions.
27071         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
27072         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
27073         rpl_sendto): Change declaration to match POSIX.
27074         * lib/connect.c (rpl_connect): Likewise.
27075         * lib/accept.c (rpl_accept): Likewise.
27076         * lib/bind.c (rpl_bind): Likewise.
27077         * lib/getpeername.c (rpl_getpeername): Likewise.
27078         * lib/getsockname.c (rpl_getsockname): Likewise.
27079         * lib/recv.c (rpl_recv): Likewise.
27080         * lib/send.c (rpl_send): Likewise.
27081         * lib/recvfrom.c (rpl_recvfrom): Likewise.
27082         * lib/sendto.c (rpl_sendto): Likewise.
27083
27084 2010-03-06  Bruno Haible  <bruno@clisp.org>
27085
27086         Clarify access, euidaccess, faccessat.
27087         * doc/posix-functions/faccessat.texi: Mention security problem under
27088         "Other problems", not "Portability problems".
27089         * doc/posix-functions/access.texi: Likewise. Mention a related security
27090         problem.
27091         * doc/glibc-functions/euidaccess.texi: Mention security problems.
27092         * lib/euidaccess.c: Add comments about platforms.
27093         * lib/unistd.in.h (access, euidaccess): Add warnings.
27094
27095 2010-03-07  Bruno Haible  <bruno@clisp.org>
27096
27097         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
27098         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
27099         (POSIX_SPAWN_SETSCHEDULER): Likewise.
27100         (POSIX_SPAWN_USEVFORK): Define in a way that works when
27101         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
27102         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
27103         declare when POSIX_SPAWN_SETSCHEDULER is zero.
27104         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
27105         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
27106         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
27107         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
27108         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
27109         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
27110         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
27111         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
27112         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
27113         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
27114         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
27115         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
27116         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
27117         Likewise.
27118         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
27119         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
27120         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
27121         Likewise.
27122         * tests/test-spawn.c (main): Make it work when
27123         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
27124
27125 2010-03-07  Bruno Haible  <bruno@clisp.org>
27126
27127         Fix incorrect Makefile.am generation in German locale.
27128         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27129         Execute sed command with character range in C locale.
27130
27131 2010-03-06  Bruno Haible  <bruno@clisp.org>
27132
27133         Tests for module 'iconv-h'.
27134         * modules/iconv-h-tests: New file.
27135         * tests/test-iconv-h.c: New file.
27136
27137         New module 'iconv-h'.
27138         * modules/iconv-h: New file.
27139         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
27140         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
27141         (configure.ac): Remove gl_ICONV_H.
27142         (Makefile.am): Remove rule for iconv.h.
27143
27144 2010-03-06  Bruno Haible  <bruno@clisp.org>
27145
27146         More consistent naming of *.m4 files.
27147         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
27148         * modules/wctype (Files): Update.
27149
27150         More consistent naming of *.m4 files.
27151         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
27152         * modules/wchar (Files): Update.
27153
27154 2010-03-06  Jim Meyering  <meyering@redhat.com>
27155
27156         euidaccess: relax license to LGPLv2+
27157         * modules/euidaccess (License): Relax to LGPLv2+.
27158
27159 2010-03-06  Bruno Haible  <bruno@clisp.org>
27160
27161         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
27162         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
27163         (Makefile.am): Augment lib_SOURCES instead.
27164
27165 2010-03-04  Jim Meyering  <meyering@redhat.com>
27166
27167         utime: remove obsolete module
27168         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
27169         unnecessary for years, and has been marked as obsolete for 10 months.
27170         * modules/utime: Remove file.
27171         * lib/utime.c: Remove file.
27172         * m4/utime.m4: Remove file.
27173         * m4/utimes-null.m4: Remove file.
27174         * doc/posix-functions/utime.texi (utime): Remove reference to
27175         the module.  Move the sole "fixed by gnulib" item into the
27176         "problems not fixed by Gnulib" list.
27177         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
27178
27179 2010-03-05  Simon Josefsson  <simon@josefsson.org>
27180
27181         * modules/exit (License): Relax license to LGPLv2+.
27182         (Status): Mark as obsolete.
27183         * NEWS: Mention deprecated 'exit' module.
27184         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
27185         of now obsolete 'exit'.
27186
27187 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27188
27189         fts-lgpl: remove unused module
27190         * modules/fts-lgpl: Remove.
27191         * MODULES.html.sh (func_all_modules): Adjust.
27192         * check-module (find_included_lib_files): Adjust.
27193         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
27194
27195 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
27196
27197         copy-acl: enhance Solaris ACL error handling
27198         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
27199         * lib/set-mode-acl.c (qset_acl): Likewise.
27200
27201 2010-03-02  Bruno Haible  <bruno@clisp.org>
27202
27203         spawn: Don't override the system defined values on FreeBSD 8.
27204         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
27205         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
27206         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
27207         if HAVE_POSIX_SPAWN is 1.
27208         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
27209
27210 2010-03-01  Bruno Haible  <bruno@clisp.org>
27211
27212         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
27213         regarding Automake.
27214
27215 2010-02-25  Bruno Haible  <bruno@clisp.org>
27216
27217         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
27218         * gnulib-tool: Define 'echo' as a function only before the ksh alias
27219         setting, not afterwards.
27220         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
27221
27222 2010-02-24  Eric Blake  <eblake@redhat.com>
27223
27224         bootstrap, git-version-gen: use timestamp
27225         * build-aux/git-version-gen (scriptversion): Force UTC.
27226         * build-aux/bootstrap (scriptversion): New variable.
27227
27228         bootstrap: allow older git
27229         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
27230         older than 1.6.4.  Requested by the libvirt project.
27231
27232 2010-02-23  Eric Blake  <eblake@redhat.com>
27233
27234         warn-on-use: work with old autoconf
27235         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
27236         AS_VAR semantics of autoconf 2.60.
27237         Reported by Bruno Haible.
27238
27239         bootstrap: improve some comments
27240         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
27241         clarification comments.
27242
27243         gettimeofday: provide correct function
27244         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
27245         when replacement is declared, otherwise provide gettimeofday.
27246         Reported by Michael Goffioul.
27247
27248 2010-02-23  Jim Meyering  <meyering@redhat.com>
27249
27250         lib-ignore: relax license to "unlimited", not LGPLv2+
27251         * modules/lib-ignore (License): Relax to "unlimited".
27252
27253 2010-02-23  Jim Meyering  <meyering@redhat.com>
27254
27255         lib-ignore: relax license to LGPLv2+
27256         * modules/lib-ignore (License): Relax to LGPLv2+.
27257
27258 2010-02-22  Eric Blake  <eblake@redhat.com>
27259
27260         lseek: avoid bash 3.2 broken pipe bug
27261         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
27262         warning from bash 3.2.
27263         Reported by Ben Pfaff, with analysis from Bruno Haible.
27264
27265         bootstrap: support non-FSF copyright holder
27266         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
27267         bootstrap.conf override of COPYRIGHT_HOLDER.
27268         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
27269
27270         bootstrap: interoperate with gettext 0.14.1
27271         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
27272
27273         bootstrap: allow for alternate submodule location
27274         * build-aux/bootstrap (gnulib_path): New variable; use instead of
27275         hardcoding submodule location.
27276         (gnulib_mk): Allow direct use of Makefile.am.
27277
27278         bootstrap: use GNULIB_SRCDIR to reduce disk usage
27279         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
27280         rather than reconfiguring where the submodule points.
27281
27282         gettimeofday: restore support for platforms that lack function
27283         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
27284         replacement if function is missing.
27285         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
27286         * modules/sys_time (Makefile.am): Substitute it.
27287         * lib/sys_time.in.h (gettimeofday): Check it.
27288         Reported by Michael Goffioul.
27289
27290 2010-02-21  Bruno Haible  <bruno@clisp.org>
27291
27292         * lib/stdio.in.h (obstack_printf): Fix typo.
27293
27294 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
27295
27296         vc-list-files: use bzr ls's -R option
27297         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
27298         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
27299
27300 2010-02-21  Jim Meyering  <meyering@redhat.com>
27301
27302         init.sh: fix EXEEXT shims to work also for names like test-prog
27303         * tests/init.sh: Re-exec a better shell, when needed.
27304         If the current shell lacks support for posix $(...), an init.sh-using
27305         test will now try to find a shell that supports that.  If EXEEXT is
27306         nonempty, we also require support for hyphen-in-alias-name and shell
27307         substitutions like ${var#glob}.  Failure to find such a shell results
27308         in a skipped test.
27309
27310 2010-02-21  Bruno Haible  <bruno@clisp.org>
27311
27312         Really work around around "broken pipe" error message from bash 3.2.
27313         * gnulib-tool (func_reset_sigpipe): Remove function.
27314         (echo): In bash 3.2, define to a function that uses printf.
27315         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
27316
27317 2010-02-20  Bruno Haible  <bruno@clisp.org>
27318
27319         Restore support for automake 1.9.6 with autoconf 2.61.
27320         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
27321         Reported by James Youngman <jay@gnu.org>.
27322
27323 2010-02-20  Bruno Haible  <bruno@clisp.org>
27324
27325         Improve *printf warning condition.
27326         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
27327         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
27328         and the function is overridden due to SIGPIPE emulation.
27329
27330 2010-02-20  Bruno Haible  <bruno@clisp.org>
27331
27332         * lib/stdio.in.h: Tweak comments.
27333
27334 2010-02-19  Bruno Haible  <bruno@clisp.org>
27335
27336         Make it easier to find modules. New gnulib-tool option '--find'.
27337         * gnulib-tool: New option --find.
27338         (func_usage): Document it.
27339         (func_sanitize_modulelist): New function, extracted from
27340         func_all_modules.
27341         (func_all_modules): Invoke it.
27342         * doc/gnulib-tool.texi (Which modules?): New node.
27343
27344 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
27345
27346         * lib/sys_select.in.h: Provide select replacement even if
27347         sys/select.h exists on a system, for Interix.
27348
27349 2010-02-18  Jim Meyering  <meyering@redhat.com>
27350
27351         init.sh: don't use $(...) just yet
27352         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
27353         to accommodate e.g., Solaris' /bin/sh.
27354
27355 2010-02-17  Bruno Haible  <bruno@clisp.org>
27356
27357         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
27358         Reported by Ludovic Courtès <ludo@gnu.org>.
27359
27360 2010-02-16  Simon Josefsson  <simon@josefsson.org>
27361
27362         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
27363         linking with -lintl.
27364
27365 2010-02-17  Simon Josefsson  <simon@josefsson.org>
27366
27367         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
27368         if not provided by the system's netdb.h.  Reported by
27369         ludo@gnu.org (Ludovic Courtès).
27370
27371 2010-02-15  Jim Meyering  <meyering@redhat.com>
27372
27373         init.sh: improve portability and efficiency
27374         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
27375         "dummy" in a for loop.
27376         Use '!', not '^' to select the complement of a character set used
27377         in a "case" statement.
27378         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
27379         Suggestions from Eric Blake.
27380
27381         init.sh: automatically accommodate programs with the .exe suffix
27382         Automatically arrange for an invocation of "prog" to execute the
27383         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
27384         may use the simpler "prog", yet still work when built on a system
27385         that requires specifying the added suffix.
27386         Do this by constructing a function named "prog" that invokes
27387         "prog.exe" for each .exe file in selected directories.
27388         * tests/init.sh (find_exe_basenames_): New function.
27389         (create_exe_shim_functions_): New function.
27390         (path_prepend_): Use it.
27391
27392         maint.mk: mark syntax-check sc_*.m rules as .PHONY
27393         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
27394         "make -t syntax-check" doesn't create a ton of sc_*.m files.
27395
27396 2010-02-14  Jim Meyering  <meyering@redhat.com>
27397
27398         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
27399         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
27400         (sc_prohibit_hash_pjw_without_use): New rule.
27401
27402         maint.mk: allow the default upload destination dir to be overridden
27403         * top/maint.mk (upload_dest_dir_): Define with a default that
27404         preserves the status quo.
27405         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
27406         Reported by Peter Simons.
27407
27408         maint.mk: prohibit inclusion of "hash.h" without_use
27409         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
27410
27411 2010-02-10  Jim Meyering  <meyering@redhat.com>
27412
27413         maint.mk: prohibit inclusion of "ignore-value.h" without_use
27414         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
27415
27416 2010-02-09  Eric Blake  <ebb9@byu.net>
27417         and Bruno Haible  <bruno@clisp.org>
27418
27419         obstack-printf-posix: ensure declaration
27420         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
27421         extracted from gl_FUNC_OBSTACK_PRINTF.
27422         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
27423         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
27424         Likewise.
27425         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
27426         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
27427         0.
27428
27429 2010-02-08  Bruno Haible  <bruno@clisp.org>
27430
27431         gnulib-tool: Fix typo in 2010-02-07 commit.
27432         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
27433         Reported by Eric Blake.
27434
27435 2010-02-07  Bruno Haible  <bruno@clisp.org>
27436
27437         gnulib-tool: Fix up caching patches.
27438         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
27439         option --no-cache. Use associative arrays when supported by the shell.
27440         (sed_comments): New variable.
27441         (modcache): Renamed from do_cache.
27442         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
27443         abbreviate unnecessarily.
27444         (have_associative): New variable.
27445         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
27446         way also for ksh and zsh.
27447         (func_init_sed_convert_to_cache_statements): New function, extracted
27448         from func_cache_lookup_module. Add support for associative arrays.
27449         Don't set the c_MODULE_cached variable here. Ignore all lines before
27450         the first field header. Remove only the final newline, not all trailing
27451         newlines. Support empty fields correctly. Limit the use of 'eval' to
27452         assignments.
27453         (func_get_description, func_get_status, func_get_notice,
27454         func_get_applicability, func_get_filelist, func_get_dependencies,
27455         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
27456         func_get_automake_snippet, func_get_include_directive,
27457         func_get_link_directive, func_get_license, func_get_maintainer):
27458         Update documentation. List the unoptimized code first. Add support for
27459         associative arrays. Limit the use of 'eval' to assignments.
27460         (func_get_applicability): Undo stylistic pessimisations.
27461         (func_get_automake_snippet, func_get_include_directive): Reduce code
27462         duplication.
27463         (func_modules_transitive_closure, func_modules_add_dummy,
27464         func_modules_notice, func_modules_to_filelist, func_add_file,
27465         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
27466         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
27467         func_create_testdir, func_create_megatestdir): Update documentation.
27468
27469 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27470
27471         * gnulib-tool (func_cache_lookup_module): Store the module name
27472         belonging to the cache variable; error out if two different
27473         module names map to the same cache variable name.
27474
27475 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27476
27477         gnulib-tool: Make caching optional.
27478         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
27479         Update matching short versions of --no-changelog.
27480         (func_usage): Update.
27481         (sed_extract_cache_prog): Renamed from ...
27482         (sed_extract_prog): ... this; revert to old extraction script.
27483         (func_get_description, func_get_status)
27484         (func_get_notice, func_get_applicability, func_get_filelist)
27485         (func_get_dependencies, func_get_autoconf_early_snippet)
27486         (func_get_autoconf_snippet, func_get_automake_snippet)
27487         (func_get_include_directive, func_get_link_directive)
27488         (func_get_license, func_get_maintainer): If $do_cache is false,
27489         use old, non-caching extraction scripts.
27490         Suggestion by Bruno Haible.
27491
27492 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27493
27494         gnulib-tool: cache module metainformation.
27495         * gnulib-tool (sed_extract_prog): Match newline before each
27496         header, and rewrite header to a shell variable suffix.
27497         (func_cache_var, func_cache_lookup_module): New functions,
27498         to turn a module name into a cache variable prefix, and to
27499         look up and cache module metainformation.
27500         (func_get_description, func_get_status)
27501         (func_get_notice, func_get_applicability, func_get_filelist)
27502         (func_get_dependencies, func_get_autoconf_early_snippet)
27503         (func_get_autoconf_snippet, func_get_automake_snippet)
27504         (func_get_include_directive, func_get_link_directive)
27505         (func_get_license, func_get_maintainer): Use
27506         func_cache_lookup_module.
27507
27508 2010-02-07  Bruno Haible  <bruno@clisp.org>
27509
27510         fnctl: Fix missing dependency.
27511         * modules/fcntl (Depends-on): Add getdtablesize.
27512         Reported by John W. Eaton <jwe@gnu.org>.
27513
27514 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27515
27516         Argp: fix recognition of short alias options.
27517
27518         * lib/argp-parse.c (convert_options): Fix improper use of
27519         `|' between character values.
27520         * tests/test-argp.c (group1_option): New alias option
27521         --read (-r).
27522         (group1_parser): Special handling for 'r'.
27523         (test15): New test case.
27524         (test_fun): Add test15.
27525         * tests/test-argp-2.sh: Update expected --help and --usage
27526         outputs.
27527
27528 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27529
27530         * tests/test-argp.c: Fix indentation.
27531
27532 2010-02-04  Eric Blake  <ebb9@byu.net>
27533
27534         gettimeofday: expose type of second argument
27535         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
27536         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
27537         * tests/test-gettimeofday.c: Use it to silence warning.
27538         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
27539         the issue.
27540
27541 2010-02-03  Jim Meyering  <meyering@redhat.com>
27542
27543         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
27544         * lib/regcomp.c (TYPE_SIGNED): Define.
27545         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
27546
27547         regcomp.c: avoid a new -Wshadow warning
27548         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
27549
27550 2010-02-01  Jim Meyering  <meyering@redhat.com>
27551
27552         removing useless parentheses in cpp #define directives
27553         For motivation, see commit c0221df4, "define STREQ(a,b)
27554         consistently, removing useless parentheses"
27555         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
27556         * lib/mountlist.c (MNT_IGNORE): Likewise.
27557         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
27558
27559 2010-02-01  Eric Blake  <ebb9@byu.net>
27560
27561         sys_time: use link-warning
27562         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
27563         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
27564         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
27565         * modules/sys_time (Depends-on): Add warn-on-use.
27566         (Makefile.am): Always build replacement.
27567         (configure.ac): Update substitutions.
27568         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
27569         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
27570         bother with SYS_TIME_H.
27571         * modules/gettimeofday (configure.ac): Declare indicator.
27572         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
27573         in use.
27574
27575         closein-tests: silence compiler warning
27576         * tests/test-closein.c (main): Ignore fread result.
27577         * modules/closein-tests (Depends-on): Add ignore-value.
27578
27579         tests: silence warning about system return
27580         * tests/test-areadlink-with-size.c (main): Ignore system result.
27581         * tests/test-areadlink.c (main): Likewise.
27582         * tests/test-areadlinkat-with-size.c (main): Likewise.
27583         * tests/test-areadlinkat.c (main): Likewise.
27584         * tests/test-canonicalize-lgpl.c (main): Likewise.
27585         * tests/test-canonicalize.c (main): Likewise.
27586         * tests/test-chown.c (main): Likewise.
27587         * tests/test-fchownat.c (main): Likewise.
27588         * tests/test-fdutimensat.c (main): Likewise.
27589         * tests/test-fstatat.c (main): Likewise.
27590         * tests/test-futimens.c (main): Likewise.
27591         * tests/test-lchown.c (main): Likewise.
27592         * tests/test-link.c (main): Likewise.
27593         * tests/test-linkat.c (main): Likewise.
27594         * tests/test-lstat.c (main): Likewise.
27595         * tests/test-mkdir.c (main): Likewise.
27596         * tests/test-mkdirat.c (main): Likewise.
27597         * tests/test-mkfifo.c (main): Likewise.
27598         * tests/test-mkfifoat.c (main): Likewise.
27599         * tests/test-mknod.c (main): Likewise.
27600         * tests/test-readlink.c (main): Likewise.
27601         * tests/test-remove.c (main): Likewise.
27602         * tests/test-rename.c (main): Likewise.
27603         * tests/test-renameat.c (main): Likewise.
27604         * tests/test-rmdir.c (main): Likewise.
27605         * tests/test-symlink.c (main): Likewise.
27606         * tests/test-symlinkat.c (main): Likewise.
27607         * tests/test-unlink.c (main): Likewise.
27608         * tests/test-unlinkat.c (main): Likewise.
27609         * tests/test-utimens.c (main): Likewise.
27610         * tests/test-utimensat.c (main): Likewise.
27611         * modules/areadlink-tests (Depends-on): Add ignore-value.
27612         * modules/areadlink-with-size-tests (Depends-on): Likewise.
27613         * modules/areadlinkat-tests (Depends-on): Likewise.
27614         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
27615         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27616         * modules/canonicalize-tests (Depends-on): Likewise.
27617         * modules/chown-tests (Depends-on): Likewise.
27618         * modules/fdutimensat-tests (Depends-on): Likewise.
27619         * modules/futimens-tests (Depends-on): Likewise.
27620         * modules/lchown-tests (Depends-on): Likewise.
27621         * modules/link-tests (Depends-on): Likewise.
27622         * modules/linkat-tests (Depends-on): Likewise.
27623         * modules/lstat-tests (Depends-on): Likewise.
27624         * modules/mkdir-tests (Depends-on): Likewise.
27625         * modules/mkfifo-tests (Depends-on): Likewise.
27626         * modules/mkfifoat-tests (Depends-on): Likewise.
27627         * modules/mknod-tests (Depends-on): Likewise.
27628         * modules/openat-tests (Depends-on): Likewise.
27629         * modules/readlink-tests (Depends-on): Likewise.
27630         * modules/remove-tests (Depends-on): Likewise.
27631         * modules/rename-tests (Depends-on): Likewise.
27632         * modules/renameat-tests (Depends-on): Likewise.
27633         * modules/rmdir-tests (Depends-on): Likewise.
27634         * modules/symlink-tests (Depends-on): Likewise.
27635         * modules/symlinkat-tests (Depends-on): Likewise.
27636         * modules/unlink-tests (Depends-on): Likewise.
27637         * modules/utimens-tests (Depends-on): Likewise.
27638         * modules/utimensat-tests (Depends-on): Likewise.
27639
27640 2010-01-31  Bruno Haible  <bruno@clisp.org>
27641
27642         Perform the same test for many <math.h> functions.
27643         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
27644         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
27645         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
27646         of gl_MATHFUNC.
27647         * modules/acos (configure.ac): Likewise.
27648         * modules/asin (configure.ac): Likewise.
27649         * modules/atan (configure.ac): Likewise.
27650         * modules/atan2 (configure.ac): Likewise.
27651         * modules/cbrt (configure.ac): Likewise.
27652         * modules/copysign (configure.ac): Likewise.
27653         * modules/cos (configure.ac): Likewise.
27654         * modules/cosh (configure.ac): Likewise.
27655         * modules/erf (configure.ac): Likewise.
27656         * modules/erfc (configure.ac): Likewise.
27657         * modules/exp (configure.ac): Likewise.
27658         * modules/fmod (configure.ac): Likewise.
27659         * modules/hypot (configure.ac): Likewise.
27660         * modules/j0 (configure.ac): Likewise.
27661         * modules/j1 (configure.ac): Likewise.
27662         * modules/jn (configure.ac): Likewise.
27663         * modules/lgamma (configure.ac): Likewise.
27664         * modules/log (configure.ac): Likewise.
27665         * modules/log10 (configure.ac): Likewise.
27666         * modules/log1p (configure.ac): Likewise.
27667         * modules/pow (configure.ac): Likewise.
27668         * modules/remainder (configure.ac): Likewise.
27669         * modules/sin (configure.ac): Likewise.
27670         * modules/sinh (configure.ac): Likewise.
27671         * modules/tan (configure.ac): Likewise.
27672         * modules/tanh (configure.ac): Likewise.
27673         * modules/y0 (configure.ac): Likewise.
27674         * modules/y1 (configure.ac): Likewise.
27675         * modules/yn (configure.ac): Likewise.
27676         Suggested by Paolo Bonzini.
27677
27678 2010-01-31  Bruno Haible  <bruno@clisp.org>
27679
27680         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
27681
27682 2010-01-31  Bruno Haible  <bruno@clisp.org>
27683
27684         Work around getdelim() bug on FreeBSD 8.0.
27685         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
27686         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
27687         not work.
27688         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
27689         is 1.
27690         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
27691         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
27692         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
27693         a non-zero size.
27694         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
27695
27696 2010-01-31  Bruno Haible  <bruno@clisp.org>
27697
27698         Work around getline() bug on FreeBSD 8.0.
27699         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
27700         and a non-zero size.
27701         * tests/test-getline.c (main): Likewise.
27702         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
27703         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
27704
27705 2010-01-28  Eric Blake  <ebb9@byu.net>
27706
27707         regex: fix build failure
27708         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
27709         platforms.
27710
27711 2010-01-28  Jim Meyering  <meyering@redhat.com>
27712
27713         regex: do not ignore memory allocation failure
27714         * lib/regex_internal.c (create_cd_newstate): Detect
27715         re_node_set_init_copy failure.   Extracted from glibc commit
27716         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27717
27718         regex: sync more white-space changes from libc
27719         * lib/regex_internal.c: White-space only changes.
27720         * lib/regexec.c: Likewise.
27721
27722         regex: add many uses of __attribute_warn_unused_result__
27723         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
27724         * lib/regexec.c: Likewise.
27725         Extracted from a messy glibc commit.
27726
27727         regcomp.c: spelling and merge-artifact from glibc
27728         * lib/regcomp.c: Merge remainder of glibc's
27729         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27730
27731         regcomp.c: sync white-space changes from glibc
27732         * lib/regcomp.c: Merge to accommodate white space
27733         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27734
27735         regcomp.c: do not ignore internal return values
27736         * lib/regcomp.c: Do not ignore internal return values.
27737         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
27738         but without its white-space changes and spelling fixes.
27739
27740         regex_internal.h: define __attribute_warn_unused_result__
27741         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
27742
27743         maint: add a syntax-check rule to check for vulnerable Makefile.in
27744         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
27745
27746 2010-01-27  Jim Meyering  <meyering@redhat.com>
27747
27748         ncftpput-ftp: clean up spaces
27749         * build-aux/ncftpput-ftp: Make Copyright line consistent.
27750         Remove trailing blanks.
27751
27752 2010-01-27  Simon Josefsson  <simon@josefsson.org>
27753
27754         * build-aux/git-version-gen: Fix copyright statement.
27755         * build-aux/gnupload: Likewise.
27756         * tests/test-arcfour.c: Likewise.
27757         * tests/test-arctwo.c: Likewise.
27758         * tests/test-count-one-bits.c: Likewise.
27759         * tests/test-crc.c: Likewise.
27760         * tests/test-des.c: Likewise.
27761         * tests/test-gc-arcfour.c: Likewise.
27762         * tests/test-gc-arctwo.c: Likewise.
27763         * tests/test-gc-des.c: Likewise.
27764         * tests/test-gc-hmac-md5.c: Likewise.
27765         * tests/test-gc-hmac-sha1.c: Likewise.
27766         * tests/test-gc-md2.c: Likewise.
27767         * tests/test-gc-md4.c: Likewise.
27768         * tests/test-gc-md5.c: Likewise.
27769         * tests/test-gc-pbkdf2-sha1.c: Likewise.
27770         * tests/test-gc-rijndael.c: Likewise.
27771         * tests/test-gc-sha1.c: Likewise.
27772         * tests/test-gc.c: Likewise.
27773         * tests/test-gethostname.c: Likewise.
27774         * tests/test-gettimeofday.c: Likewise.
27775         * tests/test-hash.c: Likewise.
27776         * tests/test-hmac-md5.c: Likewise.
27777         * tests/test-hmac-sha1.c: Likewise.
27778         * tests/test-md2.c: Likewise.
27779         * tests/test-md4.c: Likewise.
27780         * tests/test-md5.c: Likewise.
27781         * tests/test-memchr.c: Likewise.
27782         * tests/test-memchr2.c: Likewise.
27783         * tests/test-memcmp.c: Likewise.
27784         * tests/test-memmem.c: Likewise.
27785         * tests/test-memrchr.c: Likewise.
27786         * tests/test-rawmemchr.c: Likewise.
27787         * tests/test-read-file.c: Likewise.
27788         * tests/test-rijndael.c: Likewise.
27789         * tests/test-sockets.c: Likewise.
27790         * tests/test-strchrnul.c: Likewise.
27791         * tests/test-strstr.c: Likewise.
27792         * tests/test-strtod.c: Likewise.
27793         * build-aux/ncftpput-ftp: Likewise.
27794
27795 2010-01-26  Eric Blake  <ebb9@byu.net>
27796
27797         ignore-value: update recommended header name
27798         * modules/ignore-value (Include): Only use <> for headers that
27799         exist in glibc.
27800
27801 2010-01-26  Jim Meyering  <meyering@redhat.com>
27802
27803         test-userspec.c: avoid compiler warnings
27804         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
27805         and "initialization discards qualifiers..." warnings.
27806         Put the first "uid" in its own scope, and make char* members "const".
27807
27808 2010-01-25  Bruno Haible  <bruno@clisp.org>
27809
27810         gnulib-tool: Make warning diagnostics consistent.
27811         * gnulib-tool (func_warning): New function.
27812         Use it everywhere where gnulib-tool produces output to stderr and it is
27813         not a fatal error.
27814
27815 2010-01-25  Bruno Haible  <bruno@clisp.org>
27816
27817         Fix test dependencies.
27818         * modules/xstrtol-tests (Depends-on): Add inttypes.
27819         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
27820
27821 2010-01-25 Pádraig Brady <P@draigBrady.com>
27822
27823         syntax-check: detect incorrect boolean macro values in config.h
27824         * modules/maintainer-makefile (configure.ac): Parameterize the location
27825         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
27826         The logic is from Eric Blake and the location indicated by Jim Meyering.
27827         Note the more natural CONFIG_HEADER name is prohibited by automake
27828         for backwards compatibility reasons.
27829         * top/maint.mk (sc_Wundef_boolean): New rule.
27830
27831 2010-01-25  Jim Meyering  <meyering@redhat.com>
27832
27833         bootstrap: detect MacOS 10.6's shasum, too
27834         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
27835         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
27836
27837 2010-01-23  Jim Meyering  <meyering@redhat.com>
27838
27839         xstrtoll: new module
27840         * modules/xstrtoll: New file.
27841         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
27842         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
27843         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
27844         ./configure fails if you use this module and lack "long long".
27845         * modules/xstrtoll-tests: New module.
27846         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
27847         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
27848         new init.sh-based test framework.
27849
27850 2010-01-24  Bruno Haible  <bruno@clisp.org>
27851
27852         Tests for module 'yn'.
27853         * modules/yn-tests: New file.
27854         * tests/test-yn.c: New file.
27855
27856         Tests for module 'y1'.
27857         * modules/y1-tests: New file.
27858         * tests/test-y1.c: New file.
27859
27860         Tests for module 'y0'.
27861         * modules/y0-tests: New file.
27862         * tests/test-y0.c: New file.
27863
27864         Tests for module 'tanh'.
27865         * modules/tanh-tests: New file.
27866         * tests/test-tanh.c: New file.
27867
27868         Tests for module 'tan'.
27869         * modules/tan-tests: New file.
27870         * tests/test-tan.c: New file.
27871
27872         Tests for module 'sqrt'.
27873         * modules/sqrt-tests: New file.
27874         * tests/test-sqrt.c: New file.
27875
27876         Tests for module 'sinh'.
27877         * modules/sinh-tests: New file.
27878         * tests/test-sinh.c: New file.
27879
27880         Tests for module 'sin'.
27881         * modules/sin-tests: New file.
27882         * tests/test-sin.c: New file.
27883
27884         Tests for module 'rint'.
27885         * modules/rint-tests: New file.
27886         * tests/test-rint.c: New file.
27887
27888         Tests for module 'remainder'.
27889         * modules/remainder-tests: New file.
27890         * tests/test-remainder.c: New file.
27891
27892         Tests for module 'pow'.
27893         * modules/pow-tests: New file.
27894         * tests/test-pow.c: New file.
27895
27896         Tests for module 'nextafter'.
27897         * modules/nextafter-tests: New file.
27898         * tests/test-nextafter.c: New file.
27899
27900         Tests for module 'modf'.
27901         * modules/modf-tests: New file.
27902         * tests/test-modf.c: New file.
27903
27904         Tests for module 'logb'.
27905         * modules/logb-tests: New file.
27906         * tests/test-logb.c: New file.
27907
27908         Tests for module 'log1p'.
27909         * modules/log1p-tests: New file.
27910         * tests/test-log1p.c: New file.
27911
27912         Tests for module 'log10'.
27913         * modules/log10-tests: New file.
27914         * tests/test-log10.c: New file.
27915
27916         Tests for module 'log'.
27917         * modules/log-tests: New file.
27918         * tests/test-log.c: New file.
27919
27920         Tests for module 'lgamma'.
27921         * modules/lgamma-tests: New file.
27922         * tests/test-lgamma.c: New file.
27923
27924         Tests for module 'ldexp'.
27925         * modules/ldexp-tests: New file.
27926         * tests/test-ldexp.c: New file.
27927
27928         Tests for module 'jn'.
27929         * modules/jn-tests: New file.
27930         * tests/test-jn.c: New file.
27931
27932         Tests for module 'j1'.
27933         * modules/j1-tests: New file.
27934         * tests/test-j1.c: New file.
27935
27936         Tests for module 'j0'.
27937         * modules/j0-tests: New file.
27938         * tests/test-j0.c: New file.
27939
27940         Tests for module 'hypot'.
27941         * modules/hypot-tests: New file.
27942         * tests/test-hypot.c: New file.
27943
27944         Tests for module 'fmod'.
27945         * modules/fmod-tests: New file.
27946         * tests/test-fmod.c: New file.
27947
27948         Tests for module 'fabs'.
27949         * modules/fabs-tests: New file.
27950         * tests/test-fabs.c: New file.
27951
27952         Tests for module 'exp'.
27953         * modules/exp-tests: New file.
27954         * tests/test-exp.c: New file.
27955
27956         Tests for module 'erfc'.
27957         * modules/erfc-tests: New file.
27958         * tests/test-erfc.c: New file.
27959
27960         Tests for module 'erf'.
27961         * modules/erf-tests: New file.
27962         * tests/test-erf.c: New file.
27963
27964         Tests for module 'cosh'.
27965         * modules/cosh-tests: New file.
27966         * tests/test-cosh.c: New file.
27967
27968         Tests for module 'cos'.
27969         * modules/cos-tests: New file.
27970         * tests/test-cos.c: New file.
27971
27972         Tests for module 'copysign'.
27973         * modules/copysign-tests: New file.
27974         * tests/test-copysign.c: New file.
27975
27976         Tests for module 'cbrt'.
27977         * modules/cbrt-tests: New file.
27978         * tests/test-cbrt.c: New file.
27979
27980         Tests for module 'atan2'.
27981         * modules/atan2-tests: New file.
27982         * tests/test-atan2.c: New file.
27983
27984         Tests for module 'atan'.
27985         * modules/atan-tests: New file.
27986         * tests/test-atan.c: New file.
27987
27988         Tests for module 'asin'.
27989         * modules/asin-tests: New file.
27990         * tests/test-asin.c: New file.
27991
27992         Tests for module 'acos'.
27993         * modules/acos-tests: New file.
27994         * tests/test-acos.c: New file.
27995
27996 2010-01-24  Bruno Haible  <bruno@clisp.org>
27997
27998         Fix tests for common <math.h> functions.
27999         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
28000         code snippet that references the function pointer, rather than merely
28001         calling the function. Substitute the FUNC_LIBM variable.
28002         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
28003         * modules/acos (configure.ac): Likewise.
28004         * modules/asin (configure.ac): Likewise.
28005         * modules/atan (configure.ac): Likewise.
28006         * modules/atan2 (configure.ac): Likewise.
28007         * modules/cbrt (configure.ac): Likewise.
28008         * modules/copysign (configure.ac): Likewise.
28009         * modules/cos (configure.ac): Likewise.
28010         * modules/cosh (configure.ac): Likewise.
28011         * modules/erf (configure.ac): Likewise.
28012         * modules/erfc (configure.ac): Likewise.
28013         * modules/exp (configure.ac): Likewise.
28014         * modules/fabs (configure.ac): Likewise.
28015         * modules/fmod (configure.ac): Likewise.
28016         * modules/hypot (configure.ac): Likewise.
28017         * modules/j0 (configure.ac): Likewise.
28018         * modules/j1 (configure.ac): Likewise.
28019         * modules/jn (configure.ac): Likewise.
28020         * modules/ldexp (configure.ac): Likewise.
28021         * modules/lgamma (configure.ac): Likewise.
28022         * modules/log (configure.ac): Likewise.
28023         * modules/log10 (configure.ac): Likewise.
28024         * modules/log1p (configure.ac): Likewise.
28025         * modules/logb (configure.ac): Likewise.
28026         * modules/modf (configure.ac): Likewise.
28027         * modules/nextafter (configure.ac): Likewise.
28028         * modules/pow (configure.ac): Likewise.
28029         * modules/remainder (configure.ac): Likewise.
28030         * modules/rint (configure.ac): Likewise.
28031         * modules/sin (configure.ac): Likewise.
28032         * modules/sinh (configure.ac): Likewise.
28033         * modules/tan (configure.ac): Likewise.
28034         * modules/tanh (configure.ac): Likewise.
28035         * modules/y0 (configure.ac): Likewise.
28036         * modules/y1 (configure.ac): Likewise.
28037         * modules/yn (configure.ac): Likewise.
28038
28039 2010-01-24  Bruno Haible  <bruno@clisp.org>
28040
28041         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
28042         * tests/test-acosl.c (x): New variable.
28043         (main): Store argument in x and fetch it from x.
28044         * tests/test-asinl.c (x): New variable.
28045         (main): Store argument in x and fetch it from x.
28046         * tests/test-atanl.c (x): New variable.
28047         (main): Store argument in x and fetch it from x.
28048         * tests/test-cosl.c (x): New variable.
28049         (main): Store argument in x and fetch it from x.
28050         * tests/test-expl.c (x): New variable.
28051         (main): Store argument in x and fetch it from x.
28052         * tests/test-logl.c (x): New variable.
28053         (main): Store argument in x and fetch it from x.
28054         * tests/test-sinl.c (x): New variable.
28055         (main): Store argument in x and fetch it from x.
28056         * tests/test-sqrtl.c (x): New variable.
28057         (main): Store argument in x and fetch it from x.
28058         * tests/test-tanl.c (x): New variable.
28059         (main): Store argument in x and fetch it from x.
28060
28061 2010-01-24  Bruno Haible  <bruno@clisp.org>
28062
28063         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
28064         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
28065         assignments to the initial TESTS_ENVIRONMENT.
28066         * doc/gnulib.texi (Unit test modules): Document it.
28067         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
28068         TESTS_ENVIRONMENT.
28069         * modules/btowc-tests (Makefile.am): Likewise.
28070         * modules/c-stack-tests (Makefile.am): Likewise.
28071         * modules/c-strcase-tests (Makefile.am): Likewise.
28072         * modules/copy-file-tests (Makefile.am): Likewise.
28073         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
28074         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
28075         * modules/mbrtowc-tests (Makefile.am): Likewise.
28076         * modules/mbscasecmp-tests (Makefile.am): Likewise.
28077         * modules/mbscasestr-tests (Makefile.am): Likewise.
28078         * modules/mbschr-tests (Makefile.am): Likewise.
28079         * modules/mbscspn-tests (Makefile.am): Likewise.
28080         * modules/mbsinit-tests (Makefile.am): Likewise.
28081         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
28082         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
28083         * modules/mbspbrk-tests (Makefile.am): Likewise.
28084         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
28085         * modules/mbsrchr-tests (Makefile.am): Likewise.
28086         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
28087         * modules/mbsspn-tests (Makefile.am): Likewise.
28088         * modules/mbsstr-tests (Makefile.am): Likewise.
28089         * modules/nl_langinfo-tests (Makefile.am): Likewise.
28090         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
28091         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
28092         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
28093         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
28094         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
28095         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
28096         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
28097         * modules/wcrtomb-tests (Makefile.am): Likewise.
28098         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
28099         * modules/wcsrtombs-tests (Makefile.am): Likewise.
28100         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
28101         assignments from TESTS_ENVIRONMENT.
28102         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
28103         augmentation.
28104         * modules/argp-version-etc-tests (Makefile.am): Likewise.
28105         * modules/atexit-tests (Makefile.am): Likewise.
28106         * modules/binary-io-tests (Makefile.am): Likewise.
28107         * modules/closein-tests (Makefile.am): Likewise.
28108         * modules/dprintf-posix-tests (Makefile.am): Likewise.
28109         * modules/exclude-tests (Makefile.am): Likewise.
28110         * modules/fflush-tests (Makefile.am): Likewise.
28111         * modules/fpending-tests (Makefile.am): Likewise.
28112         * modules/fprintf-posix-tests (Makefile.am): Likewise.
28113         * modules/freadahead-tests (Makefile.am): Likewise.
28114         * modules/freadptr-tests (Makefile.am): Likewise.
28115         * modules/freadseek-tests (Makefile.am): Likewise.
28116         * modules/fseek-tests (Makefile.am): Likewise.
28117         * modules/fseeko-tests (Makefile.am): Likewise.
28118         * modules/ftell-tests (Makefile.am): Likewise.
28119         * modules/ftello-tests (Makefile.am): Likewise.
28120         * modules/idpriv-drop-tests (Makefile.am): Likewise.
28121         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
28122         * modules/lseek-tests (Makefile.am): Likewise.
28123         * modules/parse-duration-tests (Makefile.am): Likewise.
28124         * modules/perror-tests (Makefile.am): Likewise.
28125         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
28126         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
28127         * modules/pipe-tests (Makefile.am): Likewise.
28128         * modules/pread-tests (Makefile.am): Likewise.
28129         * modules/printf-posix-tests (Makefile.am): Likewise.
28130         * modules/select-tests (Makefile.am): Likewise.
28131         * modules/sigpipe-tests (Makefile.am): Likewise.
28132         * modules/tsearch-tests (Makefile.am): Likewise.
28133         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
28134         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
28135         * modules/uniname/uniname-tests (Makefile.am): Likewise.
28136         * modules/uniwidth/width-tests (Makefile.am): Likewise.
28137         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
28138         * modules/version-etc-tests (Makefile.am): Likewise.
28139         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
28140         * modules/vprintf-posix-tests (Makefile.am): Likewise.
28141         * modules/xalloc-die-tests (Makefile.am): Likewise.
28142         * modules/xprintf-posix-tests (Makefile.am): Likewise.
28143         * modules/xstrtoimax-tests (Makefile.am): Likewise.
28144         * modules/xstrtol-tests (Makefile.am): Likewise.
28145         * modules/xstrtoumax-tests (Makefile.am): Likewise.
28146         * modules/yesno-tests (Makefile.am): Likewise.
28147         Suggested by Jim Meyering.
28148
28149 2010-01-24  Bruno Haible  <bruno@clisp.org>
28150
28151         More documentation.
28152         * doc/gnulib.texi (Writing modules): New chapter.
28153         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
28154         the new chapter.
28155
28156 2010-01-24  Jim Meyering  <meyering@redhat.com>
28157
28158         maint.mk: do not prepend "./" after filtering
28159         * top/maint.mk (_prepend_srcdir_prefix): New variable
28160         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
28161         "./" when $(srcdir) is ".".
28162
28163         define STREQ(a,b) consistently, removing useless parentheses
28164         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
28165         since the only risk is that "a" or "b" contains an unparenthesized
28166         comma, but if either did that, STREQ would have 3 or more arguments.
28167         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
28168         * lib/fts.c (STREQ): Remove unnecessary parentheses.
28169         * lib/hash-triple.c (STREQ): Likewise.
28170         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
28171         * lib/getugroups.c (STREQ): Likewise.
28172
28173 2010-01-23  Jim Meyering  <meyering@redhat.com>
28174
28175         maint.mk: fix syntax-check in a non-srcdir build directory
28176         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
28177         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
28178
28179 2010-01-22  Jim Meyering  <meyering@redhat.com>
28180
28181         userspec: add unit tests
28182         * tests/test-userspec.c: New file.
28183         * modules/userspec-tests: Likewise.
28184
28185 2010-01-21  Jim Meyering  <meyering@redhat.com>
28186
28187         maint.mk: handle source file names containing "." robustly
28188         * top/maint.mk (_dot_escaped_srcdir): Define.
28189         (VC_LIST): Use it in LHS of sed substitution.
28190
28191 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
28192
28193         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
28194         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
28195         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
28196         from a non-srcdir build.
28197
28198 2010-01-20  Eric Blake  <ebb9@byu.net>
28199
28200         warn-on-use: use instead of link-warning
28201         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
28202         * modules/unistd (Depends-on, Makefile.am): Likewise.
28203         * modules/arpa_inet (Depends-on): Replace link-warning with
28204         warn-on-use.
28205         (Makefile.am): Update rules accordingly.
28206         * modules/ctype (Depends-on, Makefile.am): Likewise.
28207         * modules/dirent (Depends-on, Makefile.am): Likewise.
28208         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
28209         * modules/inttypes (Depends-on, Makefile.am): Likewise.
28210         * modules/langinfo (Depends-on, Makefile.am): Likewise.
28211         * modules/locale (Depends-on, Makefile.am): Likewise.
28212         * modules/math (Depends-on, Makefile.am): Likewise.
28213         * modules/search (Depends-on, Makefile.am): Likewise.
28214         * modules/signal (Depends-on, Makefile.am): Likewise.
28215         * modules/spawn (Depends-on, Makefile.am): Likewise.
28216         * modules/stdlib (Depends-on, Makefile.am): Likewise.
28217         * modules/string (Depends-on, Makefile.am): Likewise.
28218         * modules/strings (Depends-on, Makefile.am): Likewise.
28219         * modules/sys_file (Depends-on, Makefile.am): Likewise.
28220         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
28221         * modules/sys_select (Depends-on, Makefile.am): Likewise.
28222         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
28223         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
28224         * modules/sys_times (Depends-on, Makefile.am): Likewise.
28225         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
28226         * modules/wchar (Depends-on, Makefile.am): Likewise.
28227         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
28228         should be poisoned.
28229         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
28230         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
28231         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
28232         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28233         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28234         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
28235         * m4/math_h.m4 (gl_MATH_H): Likewise.
28236         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
28237         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
28238         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28239         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
28240         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
28241         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
28242         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
28243         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
28244         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
28245         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28246         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28247         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
28248         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28249         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
28250         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
28251         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28252         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
28253         GL_LINK_WARNING.
28254         * lib/ctype.in.h: Likewise.
28255         * lib/dirent.in.h: Likewise.
28256         * lib/fcntl.in.h: Likewise.
28257         * lib/inttypes.in.h: Likewise.
28258         * lib/langinfo.in.h: Likewise.
28259         * lib/locale.in.h: Likewise.
28260         * lib/math.in.h: Likewise.
28261         * lib/search.in.h: Likewise.
28262         * lib/signal.in.h: Likewise.
28263         * lib/spawn.in.h: Likewise.
28264         * lib/stdio.in.h: Likewise.
28265         * lib/stdlib.in.h: Likewise.
28266         * lib/string.in.h: Likewise.
28267         * lib/strings.in.h: Likewise.
28268         * lib/sys_file.in.h: Likewise.
28269         * lib/sys_ioctl.in.h: Likewise.
28270         * lib/sys_select.in.h: Likewise.
28271         * lib/sys_socket.in.h: Likewise.
28272         * lib/sys_stat.in.h: Likewise.
28273         * lib/sys_times.in.h: Likewise.
28274         * lib/sys_utsname.in.h: Likewise.
28275         * lib/unistd.in.h: Likewise.
28276         * lib/wchar.in.h: Likewise.
28277
28278 2010-01-20  Bruno Haible  <bruno@clisp.org>
28279
28280         Avoid duplicate -lm.
28281         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
28282         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
28283         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
28284         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
28285         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
28286         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
28287         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
28288         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
28289         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
28290         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
28291         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
28292         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
28293         Reported by Paolo Bonzini.
28294
28295 2010-01-19  Bruno Haible  <bruno@clisp.org>
28296
28297         langinfo, nl_langinfo: Relicense under LGPLv2+.
28298         * modules/langinfo (License): Change to LGPLv2+.
28299         * modules/nl_langinfo (License): Likewise.
28300         Patch by David Lutterkort <lutter@redhat.com>.
28301
28302 2010-01-19  Bruno Haible  <bruno@clisp.org>
28303
28304         Avoid compilation error with cc on OSF/1 5.1.
28305         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
28306         statement, not before.
28307         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28308
28309 2010-01-18  Bruno Haible  <bruno@clisp.org>
28310
28311         Avoid a link error due to the __printf__ symbol.
28312         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
28313         and 2.6.x.
28314         (__format__, __printf__): Remove definitions.
28315         * lib/argp-fmtstream.h: Likewise.
28316         * lib/argp.h: Likewise.
28317         * lib/error.h: Likewise.
28318         * lib/vasnprintf.h: Likewise.
28319         * lib/xprintf.h: Likewise.
28320         * lib/xvasprintf.h: Likewise.
28321         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28322
28323 2010-01-18  Bruno Haible  <bruno@clisp.org>
28324
28325         Tests for module 'tanl'.
28326         * modules/tanl-tests: New file.
28327         * tests/test-tanl.c: New file.
28328
28329         Tests for module 'sqrtl'.
28330         * modules/sqrtl-tests: New file.
28331         * tests/test-sqrtl.c: New file.
28332
28333         Tests for module 'sinl'.
28334         * modules/sinl-tests: New file.
28335         * tests/test-sinl.c: New file.
28336
28337         Tests for module 'logl'.
28338         * modules/logl-tests: New file.
28339         * tests/test-logl.c: New file.
28340
28341         Tests for module 'expl'.
28342         * modules/expl-tests: New file.
28343         * tests/test-expl.c: New file.
28344
28345         Tests for module 'cosl'.
28346         * modules/cosl-tests: New file.
28347         * tests/test-cosl.c: New file.
28348
28349         Tests for module 'atanl'.
28350         * modules/atanl-tests: New file.
28351         * tests/test-atanl.c: New file.
28352
28353         Tests for module 'asinl'.
28354         * modules/asinl-tests: New file.
28355         * tests/test-asinl.c: New file.
28356
28357         Tests for module 'acosl'.
28358         * modules/acosl-tests: New file.
28359         * tests/test-acosl.c: New file.
28360
28361         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28362         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
28363         tanl): Use the standard gnulib idiom.
28364         * lib/cosl.c: Don't include trigl.c and sincosl.c.
28365         * lib/sinl.c: Likewise.
28366         * lib/tanl.c: Don't include trigl.c.
28367         (kernel_tanl): Make static.
28368         * lib/sincosl.c: Include trigl.h first.
28369         * lib/trigl.c: Likewise.
28370         * m4/acosl.m4: New file.
28371         * m4/asinl.m4: New file.
28372         * m4/atanl.m4: New file.
28373         * m4/cosl.m4: New file.
28374         * m4/expl.m4: New file.
28375         * m4/logl.m4: New file.
28376         * m4/sinl.m4: New file.
28377         * m4/sqrtl.m4: New file.
28378         * m4/tanl.m4: New file.
28379         * m4/mathl.m4: Remove file.
28380         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
28381         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28382         Don't initialize GNULIB_MATHL.
28383         * modules/acosl: New file.
28384         * modules/asinl: New file.
28385         * modules/atanl: New file.
28386         * modules/cosl: New file.
28387         * modules/expl: New file.
28388         * modules/logl: New file.
28389         * modules/sinl: New file.
28390         * modules/sqrtl: New file.
28391         * modules/tanl: New file.
28392         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
28393         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
28394         substitute GNULIB_MATHL.
28395         * modules/mathl: Rewritten.
28396         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
28397         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
28398         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
28399         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
28400         * doc/posix-functions/expl.texi: Mention the 'expl' module.
28401         * doc/posix-functions/logl.texi: Mention the 'logl' module.
28402         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
28403         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
28404         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
28405
28406 2010-01-18  Bruno Haible  <bruno@clisp.org>
28407
28408         sqrt: Make gl_FUNC_SQRT requirable.
28409         * m4/sqrt.m4: New file.
28410         * modules/sqrt (Files): Add it.
28411         (configure.ac): Invoke gl_FUNC_SQRT.
28412
28413 2010-01-18  Bruno Haible  <bruno@clisp.org>
28414
28415         New modules for common <math.h> functions.
28416         * m4/mathfunc.m4: New file.
28417         * modules/acos: New file.
28418         * modules/asin: New file.
28419         * modules/atan: New file.
28420         * modules/atan2: New file.
28421         * modules/cbrt: New file.
28422         * modules/copysign: New file.
28423         * modules/cos: New file.
28424         * modules/cosh: New file.
28425         * modules/erf: New file.
28426         * modules/erfc: New file.
28427         * modules/exp: New file.
28428         * modules/fabs: New file.
28429         * modules/fmod: New file.
28430         * modules/hypot: New file.
28431         * modules/j0: New file.
28432         * modules/j1: New file.
28433         * modules/jn: New file.
28434         * modules/ldexp: New file.
28435         * modules/lgamma: New file.
28436         * modules/log: New file.
28437         * modules/log10: New file.
28438         * modules/log1p: New file.
28439         * modules/logb: New file.
28440         * modules/modf: New file.
28441         * modules/nextafter: New file.
28442         * modules/pow: New file.
28443         * modules/remainder: New file.
28444         * modules/rint: New file.
28445         * modules/sin: New file.
28446         * modules/sinh: New file.
28447         * modules/sqrt: New file.
28448         * modules/tan: New file.
28449         * modules/tanh: New file.
28450         * modules/y0: New file.
28451         * modules/y1: New file.
28452         * modules/yn: New file.
28453         * doc/posix-functions/acos.texi: Mention the 'acos' module.
28454         * doc/posix-functions/asin.texi: Mention the 'asin' module.
28455         * doc/posix-functions/atan.texi: Mention the 'atan' module.
28456         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
28457         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
28458         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
28459         * doc/posix-functions/cos.texi: Mention the 'cos' module.
28460         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
28461         * doc/posix-functions/erf.texi: Mention the 'erf' module.
28462         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
28463         * doc/posix-functions/exp.texi: Mention the 'exp' module.
28464         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
28465         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
28466         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
28467         * doc/posix-functions/j0.texi: Mention the 'j0' module.
28468         * doc/posix-functions/j1.texi: Mention the 'j1' module.
28469         * doc/posix-functions/jn.texi: Mention the 'jn' module.
28470         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
28471         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
28472         * doc/posix-functions/log.texi: Mention the 'log' module.
28473         * doc/posix-functions/log10.texi: Mention the 'log10' module.
28474         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
28475         * doc/posix-functions/logb.texi: Mention the 'logb' module.
28476         * doc/posix-functions/modf.texi: Mention the 'modf' module.
28477         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
28478         * doc/posix-functions/pow.texi: Mention the 'pow' module.
28479         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
28480         * doc/posix-functions/rint.texi: Mention the 'rint' module.
28481         * doc/posix-functions/sin.texi: Mention the 'sin' module.
28482         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
28483         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
28484         * doc/posix-functions/tan.texi: Mention the 'tan' module.
28485         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
28486         * doc/posix-functions/y0.texi: Mention the 'y0' module.
28487         * doc/posix-functions/y1.texi: Mention the 'y1' module.
28488         * doc/posix-functions/yn.texi: Mention the 'yn' module.
28489
28490 2010-01-18  Jim Meyering  <meyering@redhat.com>
28491
28492         ignore-value: relax license to LGPLv2+
28493         * modules/ignore-value (License): Relax to LGPLv2+.
28494
28495         getdate: don't leak when TZ contains two or more '"'s
28496         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
28497         double quote in TZ after the first one.
28498
28499         readtokens: do not leak internal token_lengths buffer
28500         * lib/readtokens.c (readtokens): Free the local, lengths,
28501         when the supplied "token_lengths" parameter is NULL.
28502
28503 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28504
28505         Fix a couple of missing LIBTHREAD link failures on AIX.
28506         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
28507         $(LIBTHREAD).
28508         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
28509
28510         Link test-poll against INET_PTON_LIB.
28511         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
28512         for inet_pton on Solaris 10.
28513
28514 2010-01-17  Bruno Haible  <bruno@clisp.org>
28515
28516         unistdio/*-sprintf: Fix typo in module description.
28517         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
28518         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
28519         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
28520         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
28521         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
28522         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
28523         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
28524         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28525
28526 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28527
28528         gnulib-tool: fix filelist for AIX, HP-UX ksh.
28529         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
28530         variables in shell case patterns, for AIX and HP-UX ksh.
28531
28532         Split large sed scripts, for HP-UX sed.
28533         * modules/stdio: Split sed scripts around 50 sed commands,
28534         to avoid HP-UX limit of 99 commands, in the near future.
28535         * modules/string: Likewise.
28536         * modules/unistd: Likewise.
28537
28538         gnulib-tool: avoid writing in the current directory.
28539         * gnulib-tool (func_emit_lib_Makefile_am)
28540         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
28541         not in the current directory, so concurrent gnulib-tool
28542         instances do not interfere.
28543
28544 2010-01-16  Jim Meyering  <meyering@redhat.com>
28545
28546         doc: update users.txt
28547         * users.txt: Add grep.
28548         (diffutils, gzip): Update URLs.
28549
28550 2010-01-12  Bruno Haible  <bruno@clisp.org>
28551
28552         posix_spawn: Avoid test failure on Cygwin.
28553         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
28554         characters.
28555         Reported by Simon Josefsson.
28556
28557 2010-01-12  Bruno Haible  <bruno@clisp.org>
28558
28559         * tests/test-cond.c (main): When skipping the test, show the reason.
28560
28561 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28562
28563         * lib/striconv.c (str_cd_iconv): Avoid if before free.
28564
28565 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28566
28567         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
28568         VC_LIST_ALWAYS_EXCLUDE_REGEX.
28569
28570 2010-01-12  Eric Blake  <ebb9@byu.net>
28571
28572         build: guarantee AS_VAR_IF
28573         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
28574         (gl_AS_VAR_IF): Move...
28575         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
28576         Reported by Simon Josefsson.
28577
28578 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28579
28580         * lib/stdio.in.h: Fix typo.
28581
28582 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28583
28584         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
28585         libgpg-error.
28586
28587 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28588
28589         * tests/test-xalloc-die.sh: Use $EXEEXT.
28590
28591 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28592             Bruno Haible  <bruno@clisp.org>
28593
28594         getlogin, getlogin_r: Avoid test failure.
28595         * tests/test-getlogin.c: Include <stdio.h>.
28596         (main): Skip the test when the function fails because stdin is not a
28597         tty.
28598         * tests/test-getlogin_r.c: Include <stdio.h>.
28599         (main): Skip the test when the function fails because stdin is not a
28600         tty.
28601
28602 2010-01-11  Eric Blake  <ebb9@byu.net>
28603
28604         tests: avoid more large file warnings
28605         * tests/test-fflush.c: Avoid warning about ftell use.
28606         * tests/test-fseek.c: Avoid warning about fseek use.
28607
28608 2010-01-10  Bruno Haible  <bruno@clisp.org>
28609
28610         nproc: Work better on Linux when /proc and /sys are not mounted.
28611         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
28612         as lower bound when, on glibc/Linux systems,
28613         sysconf (_SC_NPROCESSORS_CONF) returns 1.
28614         Suggested by Pádraig Brady <P@draigbrady.com>.
28615         Reported by Dmitry V. Levin <ldv@altlinux.org>.
28616
28617         nproc: Refactor.
28618         * lib/nproc.c (num_processors_via_affinity_mask): New function,
28619         extracted from num_processors.
28620         (num_processors): Call it.
28621
28622 2010-01-11  Jim Meyering  <meyering@redhat.com>
28623
28624         utimecmp: avoid new warning from upcoming gcc-4.5.0
28625         * lib/utimecmp.c (BILLION): Define using #define rather than an
28626         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
28627
28628 2010-01-11  Eric Blake  <ebb9@byu.net>
28629
28630         math: add portability warnings for classification macros
28631         * modules/math (Depends-on): Add warn-on-use.
28632         (Makefile.am): Provide new substitutions.
28633         * m4/math_h.m4 (gl_MATH_H): Require inline.
28634         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
28635         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
28636         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
28637         implement warnings.
28638
28639         unistd: warn on use of environ without module
28640         * modules/unistd (Depends-on): Add warn-on-use.
28641         (Makefile.am): Provide new substitutions.
28642         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
28643         * lib/unistd.in.h (environ): Wrap with a warning helper function.
28644
28645         stdio: warn on suspicious uses
28646         * modules/stdio (Depends-on): Add warn-on-use.
28647         (Makefile.am): Provide new substitutions.
28648         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
28649         fseeko.
28650         * lib/stdio.in.h (gets): Always warn on use.
28651         (fseek, ftell): Adjust when warnings are issued, and honor
28652         _GL_NO_LARGE_FILES as a way to silence the warning.
28653         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
28654         any warning about large file offsets.
28655         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
28656         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
28657         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
28658         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
28659         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
28660         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
28661         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
28662         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
28663
28664         warn-on-use: new module
28665         * modules/warn-on-use: New file.
28666         * build-aux/warn-on-use.h: Likewise.
28667         * m4/warn-on-use.m4: Likewise.
28668         * MODULES.html.sh (Support for building): Mention it.
28669
28670 2010-01-10  Bruno Haible  <bruno@clisp.org>
28671
28672         Tests for module 'unistr/u32-strdup'.
28673         * modules/unistr/u32-strdup-tests: New file.
28674         * tests/unistr/test-u32-strdup.c: New file.
28675
28676         Tests for module 'unistr/u16-strdup'.
28677         * modules/unistr/u16-strdup-tests: New file.
28678         * tests/unistr/test-u16-strdup.c: New file.
28679
28680         Tests for module 'unistr/u8-strdup'.
28681         * modules/unistr/u8-strdup-tests: New file.
28682         * tests/unistr/test-u8-strdup.c: New file.
28683         * tests/unistr/test-strdup.h: New file.
28684
28685         Tests for module 'unistr/u32-strncmp'.
28686         * modules/unistr/u32-strncmp-tests: New file.
28687         * tests/unistr/test-u32-strncmp.c: New file.
28688
28689         Tests for module 'unistr/u16-strncmp'.
28690         * modules/unistr/u16-strncmp-tests: New file.
28691         * tests/unistr/test-u16-strncmp.c: New file.
28692
28693         Tests for module 'unistr/u8-strncmp'.
28694         * modules/unistr/u8-strncmp-tests: New file.
28695         * tests/unistr/test-u8-strncmp.c: New file.
28696         * tests/unistr/test-strncmp.h: New file.
28697
28698         Tests for module 'unistr/u32-strcoll'.
28699         * modules/unistr/u32-strcoll-tests: New file.
28700         * tests/unistr/test-u32-strcoll.c: New file.
28701
28702         Tests for module 'unistr/u16-strcoll'.
28703         * modules/unistr/u16-strcoll-tests: New file.
28704         * tests/unistr/test-u16-strcoll.c: New file.
28705
28706         Tests for module 'unistr/u8-strcoll'.
28707         * modules/unistr/u8-strcoll-tests: New file.
28708         * tests/unistr/test-u8-strcoll.c: New file.
28709
28710         Tests for module 'unistr/u32-strcmp'.
28711         * modules/unistr/u32-strcmp-tests: New file.
28712         * tests/unistr/test-u32-strcmp.c: New file.
28713         * tests/unistr/test-u32-strcmp.h: New file.
28714
28715         Tests for module 'unistr/u16-strcmp'.
28716         * modules/unistr/u16-strcmp-tests: New file.
28717         * tests/unistr/test-u16-strcmp.c: New file.
28718         * tests/unistr/test-u16-strcmp.h: New file.
28719
28720         Tests for module 'unistr/u8-strcmp'.
28721         * modules/unistr/u8-strcmp-tests: New file.
28722         * tests/unistr/test-u8-strcmp.c: New file.
28723         * tests/unistr/test-u8-strcmp.h: New file.
28724         * tests/unistr/test-strcmp.h: New file.
28725
28726         Tests for module 'unistr/u32-strncat'.
28727         * modules/unistr/u32-strncat-tests: New file.
28728         * tests/unistr/test-u32-strncat.c: New file.
28729
28730         Tests for module 'unistr/u16-strncat'.
28731         * modules/unistr/u16-strncat-tests: New file.
28732         * tests/unistr/test-u16-strncat.c: New file.
28733
28734         Tests for module 'unistr/u8-strncat'.
28735         * modules/unistr/u8-strncat-tests: New file.
28736         * tests/unistr/test-u8-strncat.c: New file.
28737         * tests/unistr/test-strncat.h: New file.
28738
28739         Tests for module 'unistr/u32-strcat'.
28740         * modules/unistr/u32-strcat-tests: New file.
28741         * tests/unistr/test-u32-strcat.c: New file.
28742
28743         Tests for module 'unistr/u16-strcat'.
28744         * modules/unistr/u16-strcat-tests: New file.
28745         * tests/unistr/test-u16-strcat.c: New file.
28746
28747         Tests for module 'unistr/u8-strcat'.
28748         * modules/unistr/u8-strcat-tests: New file.
28749         * tests/unistr/test-u8-strcat.c: New file.
28750         * tests/unistr/test-strcat.h: New file.
28751
28752         Tests for module 'unistr/u32-stpncpy'.
28753         * modules/unistr/u32-stpncpy-tests: New file.
28754         * tests/unistr/test-u32-stpncpy.c: New file.
28755
28756         Tests for module 'unistr/u16-stpncpy'.
28757         * modules/unistr/u16-stpncpy-tests: New file.
28758         * tests/unistr/test-u16-stpncpy.c: New file.
28759
28760         Tests for module 'unistr/u8-stpncpy'.
28761         * modules/unistr/u8-stpncpy-tests: New file.
28762         * tests/unistr/test-u8-stpncpy.c: New file.
28763         * tests/unistr/test-stpncpy.h: New file.
28764
28765         Tests for module 'unistr/u32-strncpy'.
28766         * modules/unistr/u32-strncpy-tests: New file.
28767         * tests/unistr/test-u32-strncpy.c: New file.
28768
28769         Tests for module 'unistr/u16-strncpy'.
28770         * modules/unistr/u16-strncpy-tests: New file.
28771         * tests/unistr/test-u16-strncpy.c: New file.
28772
28773         Tests for module 'unistr/u8-strncpy'.
28774         * modules/unistr/u8-strncpy-tests: New file.
28775         * tests/unistr/test-u8-strncpy.c: New file.
28776         * tests/unistr/test-strncpy.h: New file.
28777
28778         Tests for module 'unistr/u32-stpcpy'.
28779         * modules/unistr/u32-stpcpy-tests: New file.
28780         * tests/unistr/test-u32-stpcpy.c: New file.
28781
28782         Tests for module 'unistr/u16-stpcpy'.
28783         * modules/unistr/u16-stpcpy-tests: New file.
28784         * tests/unistr/test-u16-stpcpy.c: New file.
28785
28786         Tests for module 'unistr/u8-stpcpy'.
28787         * modules/unistr/u8-stpcpy-tests: New file.
28788         * tests/unistr/test-u8-stpcpy.c: New file.
28789         * tests/unistr/test-stpcpy.h: New file.
28790
28791         Tests for module 'unistr/u32-strcpy'.
28792         * modules/unistr/u32-strcpy-tests: New file.
28793         * tests/unistr/test-u32-strcpy.c: New file.
28794
28795         Tests for module 'unistr/u16-strcpy'.
28796         * modules/unistr/u16-strcpy-tests: New file.
28797         * tests/unistr/test-u16-strcpy.c: New file.
28798
28799         Tests for module 'unistr/u8-strcpy'.
28800         * modules/unistr/u8-strcpy-tests: New file.
28801         * tests/unistr/test-u8-strcpy.c: New file.
28802         * tests/unistr/test-strcpy.h: New file.
28803
28804         Tests for module 'unistr/u32-strnlen'.
28805         * modules/unistr/u32-strnlen-tests: New file.
28806         * tests/unistr/test-u32-strnlen.c: New file.
28807
28808         Tests for module 'unistr/u16-strnlen'.
28809         * modules/unistr/u16-strnlen-tests: New file.
28810         * tests/unistr/test-u16-strnlen.c: New file.
28811
28812         Tests for module 'unistr/u8-strnlen'.
28813         * modules/unistr/u8-strnlen-tests: New file.
28814         * tests/unistr/test-u8-strnlen.c: New file.
28815         * tests/unistr/test-strnlen.h: New file.
28816
28817         Tests for module 'unistr/u32-strlen'.
28818         * modules/unistr/u32-strlen-tests: New file.
28819         * tests/unistr/test-u32-strlen.c: New file.
28820
28821         Tests for module 'unistr/u16-strlen'.
28822         * modules/unistr/u16-strlen-tests: New file.
28823         * tests/unistr/test-u16-strlen.c: New file.
28824
28825         Tests for module 'unistr/u8-strlen'.
28826         * modules/unistr/u8-strlen-tests: New file.
28827         * tests/unistr/test-u8-strlen.c: New file.
28828
28829         Tests for module 'unistr/u32-prev'.
28830         * modules/unistr/u32-prev-tests: New file.
28831         * tests/unistr/test-u32-prev.c: New file.
28832
28833         Tests for module 'unistr/u16-prev'.
28834         * modules/unistr/u16-prev-tests: New file.
28835         * tests/unistr/test-u16-prev.c: New file.
28836
28837         Tests for module 'unistr/u8-prev'.
28838         * modules/unistr/u8-prev-tests: New file.
28839         * tests/unistr/test-u8-prev.c: New file.
28840
28841         Tests for module 'unistr/u32-next'.
28842         * modules/unistr/u32-next-tests: New file.
28843         * tests/unistr/test-u32-next.c: New file.
28844
28845         Tests for module 'unistr/u16-next'.
28846         * modules/unistr/u16-next-tests: New file.
28847         * tests/unistr/test-u16-next.c: New file.
28848
28849         Tests for module 'unistr/u8-next'.
28850         * modules/unistr/u8-next-tests: New file.
28851         * tests/unistr/test-u8-next.c: New file.
28852
28853         Tests for module 'unistr/u32-strmbtouc'.
28854         * modules/unistr/u32-strmbtouc-tests: New file.
28855         * tests/unistr/test-u32-strmbtouc.c: New file.
28856
28857         Tests for module 'unistr/u16-strmbtouc'.
28858         * modules/unistr/u16-strmbtouc-tests: New file.
28859         * tests/unistr/test-u16-strmbtouc.c: New file.
28860
28861         Tests for module 'unistr/u8-strmbtouc'.
28862         * modules/unistr/u8-strmbtouc-tests: New file.
28863         * tests/unistr/test-u8-strmbtouc.c: New file.
28864
28865         Tests for module 'unistr/u32-strmblen'.
28866         * modules/unistr/u32-strmblen-tests: New file.
28867         * tests/unistr/test-u32-strmblen.c: New file.
28868
28869         Tests for module 'unistr/u16-strmblen'.
28870         * modules/unistr/u16-strmblen-tests: New file.
28871         * tests/unistr/test-u16-strmblen.c: New file.
28872
28873         Tests for module 'unistr/u8-strmblen'.
28874         * modules/unistr/u8-strmblen-tests: New file.
28875         * tests/unistr/test-u8-strmblen.c: New file.
28876
28877         Tests for module 'unistr/u32-cpy-alloc'.
28878         * modules/unistr/u32-cpy-alloc-tests: New file.
28879         * tests/unistr/test-u32-cpy-alloc.c: New file.
28880
28881         Tests for module 'unistr/u16-cpy-alloc'.
28882         * modules/unistr/u16-cpy-alloc-tests: New file.
28883         * tests/unistr/test-u16-cpy-alloc.c: New file.
28884
28885         Tests for module 'unistr/u8-cpy-alloc'.
28886         * modules/unistr/u8-cpy-alloc-tests: New file.
28887         * tests/unistr/test-u8-cpy-alloc.c: New file.
28888         * tests/unistr/test-cpy-alloc.h: New file.
28889
28890         Tests for module 'unistr/u32-mbsnlen'.
28891         * modules/unistr/u32-mbsnlen-tests: New file.
28892         * tests/unistr/test-u32-mbsnlen.c: New file.
28893
28894         Tests for module 'unistr/u16-mbsnlen'.
28895         * modules/unistr/u16-mbsnlen-tests: New file.
28896         * tests/unistr/test-u16-mbsnlen.c: New file.
28897
28898         Tests for module 'unistr/u8-mbsnlen'.
28899         * modules/unistr/u8-mbsnlen-tests: New file.
28900         * tests/unistr/test-u8-mbsnlen.c: New file.
28901
28902         Tests for module 'unistr/u32-chr'.
28903         * modules/unistr/u32-chr-tests: New file.
28904         * tests/unistr/test-u32-chr.c: New file.
28905
28906         Tests for module 'unistr/u16-chr'.
28907         * modules/unistr/u16-chr-tests: New file.
28908         * tests/unistr/test-u16-chr.c: New file.
28909
28910         Tests for module 'unistr/u8-chr'.
28911         * modules/unistr/u8-chr-tests: New file.
28912         * tests/unistr/test-u8-chr.c: New file.
28913         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
28914
28915         Tests for module 'unistr/u32-cmp2'.
28916         * modules/unistr/u32-cmp2-tests: New file.
28917         * tests/unistr/test-u32-cmp2.c: New file.
28918
28919         Tests for module 'unistr/u16-cmp2'.
28920         * modules/unistr/u16-cmp2-tests: New file.
28921         * tests/unistr/test-u16-cmp2.c: New file.
28922
28923         Tests for module 'unistr/u8-cmp2'.
28924         * modules/unistr/u8-cmp2-tests: New file.
28925         * tests/unistr/test-u8-cmp2.c: New file.
28926         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
28927
28928         Tests for module 'unistr/u32-cmp'.
28929         * modules/unistr/u32-cmp-tests: New file.
28930         * tests/unistr/test-u32-cmp.c: New file.
28931
28932         Tests for module 'unistr/u16-cmp'.
28933         * modules/unistr/u16-cmp-tests: New file.
28934         * tests/unistr/test-u16-cmp.c: New file.
28935
28936         Tests for module 'unistr/u8-cmp'.
28937         * modules/unistr/u8-cmp-tests: New file.
28938         * tests/unistr/test-u8-cmp.c: New file.
28939         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
28940
28941         Tests for module 'unistr/u32-set'.
28942         * modules/unistr/u32-set-tests: New file.
28943         * tests/unistr/test-u32-set.c: New file.
28944
28945         Tests for module 'unistr/u16-set'.
28946         * modules/unistr/u16-set-tests: New file.
28947         * tests/unistr/test-u16-set.c: New file.
28948
28949         Tests for module 'unistr/u8-set'.
28950         * modules/unistr/u8-set-tests: New file.
28951         * tests/unistr/test-u8-set.c: New file.
28952         * tests/unistr/test-set.h: New file.
28953
28954         Tests for module 'unistr/u32-move'.
28955         * modules/unistr/u32-move-tests: New file.
28956         * tests/unistr/test-u32-move.c: New file.
28957
28958         Tests for module 'unistr/u16-move'.
28959         * modules/unistr/u16-move-tests: New file.
28960         * tests/unistr/test-u16-move.c: New file.
28961
28962         Tests for module 'unistr/u8-move'.
28963         * modules/unistr/u8-move-tests: New file.
28964         * tests/unistr/test-u8-move.c: New file.
28965         * tests/unistr/test-move.h: New file.
28966
28967         Tests for module 'unistr/u32-cpy'.
28968         * modules/unistr/u32-cpy-tests: New file.
28969         * tests/unistr/test-u32-cpy.c: New file.
28970
28971         Tests for module 'unistr/u16-cpy'.
28972         * modules/unistr/u16-cpy-tests: New file.
28973         * tests/unistr/test-u16-cpy.c: New file.
28974
28975         Tests for module 'unistr/u8-cpy'.
28976         * modules/unistr/u8-cpy-tests: New file.
28977         * tests/unistr/test-u8-cpy.c: New file.
28978         * tests/unistr/test-cpy.h: New file.
28979
28980 2010-01-09  Bruno Haible  <bruno@clisp.org>
28981
28982         Tests for module 'unistr/u32-uctomb'.
28983         * modules/unistr/u32-uctomb-tests: New file.
28984         * tests/unistr/test-u32-uctomb.c: New file.
28985
28986         Tests for module 'unistr/u16-uctomb'.
28987         * modules/unistr/u16-uctomb-tests: New file.
28988         * tests/unistr/test-u16-uctomb.c: New file.
28989
28990         Tests for module 'unistr/u8-uctomb'.
28991         * modules/unistr/u8-uctomb-tests: New file.
28992         * tests/unistr/test-u8-uctomb.c: New file.
28993
28994         Tests for module 'unistr/u32-mbtoucr'.
28995         * modules/unistr/u32-mbtoucr-tests: New file.
28996         * tests/unistr/test-u32-mbtoucr.c: New file.
28997
28998         Tests for module 'unistr/u16-mbtoucr'.
28999         * modules/unistr/u16-mbtoucr-tests: New file.
29000         * tests/unistr/test-u16-mbtoucr.c: New file.
29001
29002         Tests for module 'unistr/u8-mbtoucr'.
29003         * modules/unistr/u8-mbtoucr-tests: New file.
29004         * tests/unistr/test-u8-mbtoucr.c: New file.
29005
29006         Tests for module 'unistr/u32-mbtouc'.
29007         * modules/unistr/u32-mbtouc-tests: New file.
29008         * tests/unistr/test-u32-mbtouc.c: New file.
29009
29010         Tests for module 'unistr/u16-mbtouc'.
29011         * modules/unistr/u16-mbtouc-tests: New file.
29012         * tests/unistr/test-u16-mbtouc.c: New file.
29013
29014         Tests for module 'unistr/u8-mbtouc'.
29015         * modules/unistr/u8-mbtouc-tests: New file.
29016         * tests/unistr/test-u8-mbtouc.c: New file.
29017
29018         Tests for module 'unistr/u32-mbtouc-unsafe'.
29019         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
29020         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
29021         * tests/unistr/test-u32-mbtouc.h: New file.
29022
29023         Tests for module 'unistr/u16-mbtouc-unsafe'.
29024         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
29025         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
29026         * tests/unistr/test-u16-mbtouc.h: New file.
29027
29028         Tests for module 'unistr/u8-mbtouc-unsafe'.
29029         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
29030         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
29031         * tests/unistr/test-u8-mbtouc.h: New file.
29032
29033         Tests for module 'unistr/u32-mblen'.
29034         * modules/unistr/u32-mblen-tests: New file.
29035         * tests/unistr/test-u32-mblen.c: New file.
29036
29037         Tests for module 'unistr/u16-mblen'.
29038         * modules/unistr/u16-mblen-tests: New file.
29039         * tests/unistr/test-u16-mblen.c: New file.
29040
29041         Tests for module 'unistr/u8-mblen'.
29042         * modules/unistr/u8-mblen-tests: New file.
29043         * tests/unistr/test-u8-mblen.c: New file.
29044
29045         Tests for module 'unistr/u32-to-u16'.
29046         * modules/unistr/u32-to-u16-tests: New file.
29047         * tests/unistr/test-u32-to-u16.c: New file.
29048
29049         Tests for module 'unistr/u32-to-u8'.
29050         * modules/unistr/u32-to-u8-tests: New file.
29051         * tests/unistr/test-u32-to-u8.c: New file.
29052
29053         Tests for module 'unistr/u16-to-u32'.
29054         * modules/unistr/u16-to-u32-tests: New file.
29055         * tests/unistr/test-u16-to-u32.c: New file.
29056
29057         Tests for module 'unistr/u16-to-u8'.
29058         * modules/unistr/u16-to-u8-tests: New file.
29059         * tests/unistr/test-u16-to-u8.c: New file.
29060
29061         Tests for module 'unistr/u8-to-u32'.
29062         * modules/unistr/u8-to-u32-tests: New file.
29063         * tests/unistr/test-u8-to-u32.c: New file.
29064
29065         Tests for module 'unistr/u8-to-u16'.
29066         * modules/unistr/u8-to-u16-tests: New file.
29067         * tests/unistr/test-u8-to-u16.c: New file.
29068
29069         Tests for module 'unistr/u32-check'.
29070         * modules/unistr/u32-check-tests: New file.
29071         * tests/unistr/test-u32-check.c: New file.
29072
29073         Tests for module 'unistr/u16-check'.
29074         * modules/unistr/u16-check-tests: New file.
29075         * tests/unistr/test-u16-check.c: New file.
29076
29077         Tests for module 'unistr/u8-check'.
29078         * modules/unistr/u8-check-tests: New file.
29079         * tests/unistr/test-u8-check.c: New file.
29080
29081         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
29082         (category_equals): New function.
29083         (main): Add more tests.
29084         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
29085
29086         * tests/unictype/test-bidi_byname.c (main): Add more tests.
29087
29088 2010-01-10  Bruno Haible  <bruno@clisp.org>
29089
29090         unistr/u*-strcoll: Try harder to distinguish different strings.
29091         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
29092         compare s1 and s2 to see if they are different.
29093
29094 2010-01-10  Bruno Haible  <bruno@clisp.org>
29095
29096         unistr/u*-stpncpy: Fix the return value.
29097         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
29098         description of the return value consistent with stpncpy in glibc.
29099         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
29100         written non-NUL unit.
29101
29102 2010-01-10  Bruno Haible  <bruno@clisp.org>
29103
29104         unistr/u*-next: Add missing dependencies.
29105         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
29106         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
29107         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
29108
29109 2010-01-10  Bruno Haible  <bruno@clisp.org>
29110
29111         unistr/u8-mbsnlen: Fix return value for incomplete character.
29112         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
29113         u8_mblen.
29114         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
29115         Remove unistr/u8-mblen.
29116         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
29117         u16_mblen.
29118         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
29119         Remove unistr/u16-mblen.
29120
29121 2010-01-10  Bruno Haible  <bruno@clisp.org>
29122
29123         wchar: Fix compilation error when <wchar.h> is used from coreutils.
29124         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
29125         Reported by Brian Gough <bjg@gnu.org> and
29126         Chris Clayton <chris2553@googlemail.com> via
29127         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
29128
29129 2010-01-09  Bruno Haible  <bruno@clisp.org>
29130
29131         unistr/u16-to-u32: Reject invalid input.
29132         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
29133         u16_mbtouc.
29134         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
29135         Remove unistr/u16-mbtouc.
29136
29137         unistr/u16-to-u8: Reject invalid input.
29138         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
29139         u16_mbtouc.
29140         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
29141         Remove unistr/u16-mbtouc.
29142
29143         unistr/u8-to-u32: Reject invalid input.
29144         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
29145         u8_mbtouc.
29146         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
29147         Remove unistr/u8-mbtouc.
29148
29149         unistr/u8-to-u16: Reject invalid input.
29150         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
29151         u8_mbtouc.
29152         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
29153         Remove unistr/u8-mbtouc.
29154
29155 2010-01-09  Bruno Haible  <bruno@clisp.org>
29156
29157         Tests for module 'getlogin'.
29158         * modules/getlogin-tests: New file.
29159         * tests/test-getlogin.c: New file.
29160
29161         New module 'getlogin'.
29162         * lib/unistd.in.h (getlogin): New declaration.
29163         * lib/getlogin.c: New file.
29164         * m4/getlogin.m4: New file.
29165         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
29166         HAVE_GETLOGIN.
29167         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
29168         HAVE_GETLOGIN.
29169         * modules/getlogin: New file.
29170         * doc/posix-functions/getlogin.texi: Mention the new module.
29171         Reported by John W. Eaton <jwe@gnu.org>.
29172
29173 2010-01-09  Bruno Haible  <bruno@clisp.org>
29174
29175         getlogin_r: Support for native Windows.
29176         * lib/getlogin_r.c: Include <windows.h>
29177         (getlogin_r): Implement for native Windows.
29178         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
29179         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
29180         via John W. Eaton <jwe@gnu.org>.
29181
29182 2010-01-09  Bruno Haible  <bruno@clisp.org>
29183
29184         getlogin_r: Small fixes.
29185         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
29186         succeeds.
29187         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
29188         before testing whether getlogin_r is declared. No need to set
29189         HAVE_DECL_GETLOGIN_R to 1.
29190         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
29191
29192 2010-01-09  Bruno Haible  <bruno@clisp.org>
29193
29194         * lib/unistd.in.h (getlogin_r): Add comment.
29195
29196 2010-01-09  Bruno Haible  <bruno@clisp.org>
29197
29198         Tests for module 'getlogin_r'.
29199         * modules/getlogin_r-tests: New file.
29200         * tests/test-getlogin_r.c: New file.
29201
29202 2010-01-09  Jim Meyering  <meyering@redhat.com>
29203
29204         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
29205         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
29206         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
29207
29208 2010-01-08  Simon Josefsson  <simon@josefsson.org>
29209
29210         * lib/dup2.c (rpl_dup2): Improve comment.
29211
29212 2010-01-08  Eric Blake  <ebb9@byu.net>
29213
29214         maint.mk: allow packages to add makefile @@ exceptions
29215         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
29216         (sc_makefile_check): Rename...
29217         (sc_makefile_at_at_check): ...to this, and use hook.
29218
29219         dup2: work around mingw bug
29220         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
29221         Reported by Simon Josefsson.
29222
29223 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
29224
29225         glob: Fix C++ compilation.
29226         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
29227         C++.
29228
29229 2010-01-07  Bruno Haible  <bruno@clisp.org>
29230
29231         Fix indentation of wctype.in.h, broken since 2007-01-06.
29232         * lib/wctype.in.h: Fix indentation of preprocessor directives.
29233
29234 2010-01-07  Bruno Haible  <bruno@clisp.org>
29235
29236         mbslen: Avoid collision with system function.
29237         * lib/string.in.h [MirBSD]: Include <wchar.h>.
29238         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
29239         * m4/mbslen.m4: New file.
29240         * modules/mbslen (Files): Add it.
29241         (configure.ac): Invoke gl_MBSLEN.
29242         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
29243         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
29244         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
29245         via Ian Beckwith <ianb@erislabs.net>.
29246
29247 2010-01-07  Bruno Haible  <bruno@clisp.org>
29248
29249         dirent: Document the last fix.
29250         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
29251
29252 2010-01-07  Bruno Haible  <bruno@clisp.org>
29253
29254         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
29255         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
29256         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
29257         va_list are defined.
29258         * doc/posix-headers/stdio.texi: Document the bug of missing types.
29259         Reported by Eric Blake.
29260
29261 2010-01-07  Bruno Haible  <bruno@clisp.org>
29262
29263         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
29264         * modules/xlist (Depends-on): Add 'list',
29265         * modules/xoset (Depends-on): Add 'oset'.
29266         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29267
29268 2010-01-07  Bruno Haible  <bruno@clisp.org>
29269
29270         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
29271         * doc/posix-functions/strncasecmp.texi: Likewise.
29272
29273 2010-01-07  Bruno Haible  <bruno@clisp.org>
29274
29275         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
29276
29277 2010-01-07  John W. Eaton  <jwe@octave.org>
29278
29279         wctype: allow C++ use
29280         * lib/wctype.in.h: Add extern "C" block for C++.
29281
29282 2010-01-06  Eric Blake  <ebb9@byu.net>
29283
29284         maint.mk: detect incorrect GFDL usage
29285         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
29286
29287 2010-01-06  Jim Meyering  <meyering@redhat.com>
29288         and Eric Blake  <ebb9@byu.net>
29289
29290         maint.mk: ignore multi-line copyright in NEWS
29291         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
29292
29293 2010-01-06  Eric Blake  <ebb9@byu.net>
29294
29295         select: add missing dependency
29296         * modules/select-tests (Depends-on): Move sockets dependency...
29297         * modules/select (Depends-on): ...here.
29298         Reported by Ian Beckwith.
29299
29300         doc: regenerate INSTALL
29301         * doc/INSTALL: Reflect recent autoconf update.
29302         * doc/INSTALL.ISO: Likewise.
29303         * doc/INSTALL.UTF-8: Likewise.
29304
29305         pread: fix compilation on glibc
29306         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
29307         Reported by Ralf Wildenhues.
29308
29309         dirent: fix test failure
29310         * lib/dirent.in.h (includes): Guarantee ino_t.
29311         Reported by Ralf Wildenhues.
29312
29313 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
29314
29315         linkat, renameat: avoid bad free
29316         * lib/at-func2.c (at_func2): Fix typo.
29317         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
29318
29319 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29320
29321         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
29322         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
29323         to avoid failure of symlink test later.
29324
29325 2010-01-06  Eric Blake  <ebb9@byu.net>
29326
29327         stdio, unistd: guarantee ssize_t
29328         * lib/unistd.in.h (includes): Ensure that types required by POSIX
29329         2008 are exposed when needed.
29330         * lib/stdio.in.h (includes): Likewise.
29331         Reported by Ralf Wildenhues.
29332
29333 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
29334
29335         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
29336         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
29337         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
29338
29339 2010-01-06  Jim Meyering  <meyering@redhat.com>
29340
29341         readtokens: this module *does* require xalloc.h
29342         It uses only functions that were omitted by the old syntax-check rule.
29343         * lib/readtokens.c: Include "xalloc.h" once again.
29344         * modules/readtokens (Depends-on): Add xalloc.
29345         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
29346
29347 2010-01-05  Eric Blake  <ebb9@byu.net>
29348
29349         maint: support 'make announcement' from a VPATH build
29350         * top/maint.mk (announcement): Look for correct NEWS file.
29351
29352 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
29353
29354         utimens (fdutimens): ignore a negative FD, per contract
29355         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
29356         when we have a valid file descriptor.  Otherwise, using a brand
29357         new glibc (with just-patched futimens that now fails with EBADF)
29358         would cause this function to fail with ENOSYS.
29359         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
29360         See also http://bugzilla.redhat.com/552320.
29361
29362 2010-01-05  Eric Blake  <ebb9@byu.net>
29363
29364         strcase: document what it provides
29365         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
29366         gnulib module.
29367         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
29368         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
29369
29370 2010-01-05  Jim Meyering  <meyering@redhat.com>
29371
29372         maint: remove useless inclusions of "xalloc.h"
29373         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
29374         * lib/readtokens.c: Likewise.
29375         * lib/same.c: Likewise.
29376         * modules/getloadavg (Depends-on): Remove xalloc.
29377         * modules/readtokens: Likewise.
29378         * modules/same: Likewise.
29379
29380         maint.mk: include 4 more function names in alloca.h-checking regexp
29381         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
29382         regexp.  Before, we would give a false-positive (saying alloca.h
29383         is included unnecessarily) when the only uses involved omitted symbols.
29384
29385         xalloc.h: use consistent formatting
29386         * lib/xalloc.h: Move declarations to start in the first column.
29387
29388 2010-01-05  Eric Blake  <ebb9@byu.net>
29389
29390         mkdir: avoid xalloc
29391         * lib/mkdir.c (includes): Drop unused header.
29392         Reported by John W. Eaton.
29393
29394 2010-01-04  Jim Meyering  <meyering@redhat.com>
29395
29396         nl_langinfo: avoid configure-time syntax error
29397         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
29398         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
29399         the empty string.  Don't let that provoke a shell syntax error.
29400
29401         regcomp, regexec, fnmatch: avoid array bounds read error
29402         * lib/regcomp.c (build_equiv_class): From glibc:
29403         Use only the low 24 bits of a findidx return value as an index
29404         into the weights array.  Patch by Ulrich Drepper:
29405         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
29406         * lib/regexec.c (check_node_accept_bytes): Likewise.
29407         * lib/fnmatch_loop.c (FCT): Likewise.
29408
29409         regcomp: skip collseq lookup when there are no rules
29410         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
29411         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
29412
29413         regcomp: recognize ill-formed { } expressions
29414         * lib/regcomp.c (parse_dup_op): From glibc:
29415         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
29416
29417         regcomp: fix typo in comment
29418         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
29419         s/satisfy/satisfies/.
29420
29421         regcomp: sync from glibc: remove dead store
29422         * lib/regcomp.c (duplicate_node_closure): Remove useless
29423         search_duplicated_node call and dead store.
29424
29425         regcomp: sync from glibc; always use nl_langinfo
29426         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
29427         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
29428         * modules/regex (Depends-on): Add nl_langinfo.
29429
29430 2010-01-04  Eric Blake  <ebb9@byu.net>
29431
29432         fdopendir: fix configure test
29433         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
29434
29435 2010-01-01  Bruno Haible  <bruno@clisp.org>
29436
29437         wchar: Remove unused configure check.
29438         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
29439
29440 2010-01-01  Eric Blake  <ebb9@byu.net>
29441
29442         headers: make check of system header explicit
29443         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
29444         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
29445         ourselves.
29446         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
29447         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29448         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
29449         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
29450         internals.
29451         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
29452         missing.
29453         Suggested by Bruno Haible.
29454
29455 2010-01-01  Jim Meyering  <meyering@redhat.com>
29456
29457         ChangeLog: tweak to eliminate unnecessary copyright line
29458         * ChangeLog: Remove a copyright line that was mistakenly updated
29459         by today's update-copyright run.  Reported by Eric Blake.
29460
29461         test-update-copyright: don't let envvar setting cause test failure
29462         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29463
29464 2010-01-01  Bruno Haible  <bruno@clisp.org>
29465
29466         localename: Avoid gcc warning.
29467         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
29468         function if it is not used.
29469
29470 2010-01-01  Jim Meyering  <meyering@redhat.com>
29471
29472         update nearly all FSF copyright year lists to include 2010
29473         Use the same procedure as for 2009, outlined in
29474         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
29475
29476         version-etc: set COPYRIGHT_YEAR to 2010
29477         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
29478
29479 2009-12-31  Eric Blake  <ebb9@byu.net>
29480
29481         doc: correct availability of cygwin 1.5.x getopt
29482         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
29483         variables.
29484         * doc/posix-functions/opterr.texi (opterr): Likewise.
29485         * doc/posix-functions/optind.texi (optind): Likewise.
29486         * doc/posix-functions/optopt.texi (optopt): Likewise.
29487         * doc/posix-functions/tzname.texi (tzname): Likewise.
29488
29489         openat: update maintainer
29490         * modules/openat (Maintainer): Add myself.
29491
29492         utimens: avoid shadowing warning
29493         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
29494         buffers into one, to avoid shadowing, as well as avoiding a
29495         redundant stat.
29496         Reported by Jim Meyering.
29497
29498         test-dup2: avoid compiler warning
29499         * tests/test-dup2.c (is_inheritable): Only define if used.
29500
29501 2010-01-01  Bruno Haible  <bruno@clisp.org>
29502
29503         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
29504         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
29505         defined, use wctomb instead of wcrtomb.
29506
29507 2010-01-01  Bruno Haible  <bruno@clisp.org>
29508
29509         iconv: Reject native Solaris iconv.
29510         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
29511         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
29512
29513 2009-12-31  Bruno Haible  <bruno@clisp.org>
29514
29515         * tests/test-signal.c (main): Remove test of 'SIG'.
29516
29517 2009-12-31  Bruno Haible  <bruno@clisp.org>
29518
29519         spawn: Fix incomplete fix.
29520         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29521         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29522         warnings for GNULIB_POSIXCHECK again.
29523         Reported by Eric Blake.
29524
29525 2009-12-31  Bruno Haible  <bruno@clisp.org>
29526
29527         Avoid namespace pollution on glibc systems.
29528         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
29529         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
29530         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
29531         glibc systems.
29532
29533 2009-12-31  Bruno Haible  <bruno@clisp.org>
29534
29535         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
29536         (gl_REPLACE_WCHAR_H): Turn into a no-op.
29537         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
29538         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
29539         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
29540         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
29541         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
29542
29543 2009-12-31  Bruno Haible  <bruno@clisp.org>
29544
29545         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
29546         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
29547         afterwards.
29548
29549 2009-12-31  Bruno Haible  <bruno@clisp.org>
29550
29551         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
29552         SYS_UTSNAME_H.
29553
29554 2009-12-31  Bruno Haible  <bruno@clisp.org>
29555
29556         spawn: Fix misapplied patch.
29557         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29558         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29559         warnings for GNULIB_POSIXCHECK.
29560
29561 2009-12-31  Bruno Haible  <bruno@clisp.org>
29562
29563         times: Update after sys_times changed.
29564         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
29565         * modules/times (Files): Add it.
29566         (configure.ac): Invoke gl_FUNC_TIMES.
29567
29568 2009-12-31  Bruno Haible  <bruno@clisp.org>
29569
29570         Use AC_C_INLINE where necessary.
29571         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
29572         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
29573         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
29574         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
29575         * m4/mbfile.m4 (gl_MBFILE): Likewise.
29576         * m4/mbiter.m4 (gl_MBITER): Likewise.
29577         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
29578         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29579         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
29580         * modules/u64 (configure.ac): Likewise.
29581
29582 2009-12-31  Bruno Haible  <bruno@clisp.org>
29583
29584         Use AC_C_INLINE instead of module 'inline' where possible.
29585         * modules/inline (Description): Clarify purpose.
29586         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
29587         * modules/count-one-bits (Depends-on): Remove inline.
29588         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
29589         * modules/openat (Depends-on): Remove inline.
29590         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
29591         instead of depending on module 'inline'.
29592         * modules/filevercmp (Depends-on, configure.ac): Likewise.
29593         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
29594         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
29595         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
29596         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
29597         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
29598         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
29599         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
29600         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
29601         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
29602         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
29603         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
29604         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
29605         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
29606         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
29607         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
29608         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
29609         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
29610         Likewise.
29611         * modules/unictype/property-ascii-hex-digit (Depends-on,
29612         configure.ac): Likewise.
29613         * modules/unictype/property-bidi-arabic-digit (Depends-on,
29614         configure.ac): Likewise.
29615         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
29616         configure.ac): Likewise.
29617         * modules/unictype/property-bidi-block-separator (Depends-on,
29618         configure.ac): Likewise.
29619         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
29620         configure.ac): Likewise.
29621         * modules/unictype/property-bidi-common-separator (Depends-on,
29622         configure.ac): Likewise.
29623         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
29624         Likewise.
29625         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
29626         configure.ac): Likewise.
29627         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
29628         configure.ac): Likewise.
29629         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
29630         configure.ac): Likewise.
29631         * modules/unictype/property-bidi-european-digit (Depends-on,
29632         configure.ac): Likewise.
29633         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
29634         configure.ac): Likewise.
29635         * modules/unictype/property-bidi-left-to-right (Depends-on,
29636         configure.ac): Likewise.
29637         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
29638         configure.ac): Likewise.
29639         * modules/unictype/property-bidi-other-neutral (Depends-on,
29640         configure.ac): Likewise.
29641         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
29642         Likewise.
29643         * modules/unictype/property-bidi-segment-separator (Depends-on,
29644         configure.ac): Likewise.
29645         * modules/unictype/property-bidi-whitespace (Depends-on,
29646         configure.ac): Likewise.
29647         * modules/unictype/property-combining (Depends-on, configure.ac):
29648         Likewise.
29649         * modules/unictype/property-composite (Depends-on, configure.ac):
29650         Likewise.
29651         * modules/unictype/property-currency-symbol (Depends-on,
29652         configure.ac): Likewise.
29653         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
29654         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
29655         Likewise.
29656         * modules/unictype/property-default-ignorable-code-point (Depends-on,
29657         configure.ac): Likewise.
29658         * modules/unictype/property-deprecated (Depends-on, configure.ac):
29659         Likewise.
29660         * modules/unictype/property-diacritic (Depends-on, configure.ac):
29661         Likewise.
29662         * modules/unictype/property-extender (Depends-on, configure.ac):
29663         Likewise.
29664         * modules/unictype/property-format-control (Depends-on, configure.ac):
29665         Likewise.
29666         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
29667         Likewise.
29668         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
29669         Likewise.
29670         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
29671         Likewise.
29672         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
29673         Likewise.
29674         * modules/unictype/property-hyphen (Depends-on, configure.ac):
29675         Likewise.
29676         * modules/unictype/property-id-continue (Depends-on, configure.ac):
29677         Likewise.
29678         * modules/unictype/property-id-start (Depends-on, configure.ac):
29679         Likewise.
29680         * modules/unictype/property-ideographic (Depends-on, configure.ac):
29681         Likewise.
29682         * modules/unictype/property-ids-binary-operator (Depends-on,
29683         configure.ac): Likewise.
29684         * modules/unictype/property-ids-trinary-operator (Depends-on,
29685         configure.ac): Likewise.
29686         * modules/unictype/property-ignorable-control (Depends-on,
29687         configure.ac): Likewise.
29688         * modules/unictype/property-iso-control (Depends-on, configure.ac):
29689         Likewise.
29690         * modules/unictype/property-join-control (Depends-on, configure.ac):
29691         Likewise.
29692         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
29693         Likewise.
29694         * modules/unictype/property-line-separator (Depends-on, configure.ac):
29695         Likewise.
29696         * modules/unictype/property-logical-order-exception (Depends-on,
29697         configure.ac): Likewise.
29698         * modules/unictype/property-lowercase (Depends-on, configure.ac):
29699         Likewise.
29700         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
29701         * modules/unictype/property-non-break (Depends-on, configure.ac):
29702         Likewise.
29703         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
29704         Likewise.
29705         * modules/unictype/property-numeric (Depends-on, configure.ac):
29706         Likewise.
29707         * modules/unictype/property-other-alphabetic (Depends-on,
29708         configure.ac): Likewise.
29709         * modules/unictype/property-other-default-ignorable-code-point
29710         (Depends-on, configure.ac): Likewise.
29711         * modules/unictype/property-other-grapheme-extend (Depends-on,
29712         configure.ac): Likewise.
29713         * modules/unictype/property-other-id-continue (Depends-on,
29714         configure.ac): Likewise.
29715         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
29716         Likewise.
29717         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
29718         Likewise.
29719         * modules/unictype/property-other-math (Depends-on, configure.ac):
29720         Likewise.
29721         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
29722         Likewise.
29723         * modules/unictype/property-paired-punctuation (Depends-on,
29724         configure.ac): Likewise.
29725         * modules/unictype/property-paragraph-separator (Depends-on,
29726         configure.ac): Likewise.
29727         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
29728         Likewise.
29729         * modules/unictype/property-pattern-white-space (Depends-on,
29730         configure.ac): Likewise.
29731         * modules/unictype/property-private-use (Depends-on, configure.ac):
29732         Likewise.
29733         * modules/unictype/property-punctuation (Depends-on, configure.ac):
29734         Likewise.
29735         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
29736         Likewise.
29737         * modules/unictype/property-radical (Depends-on, configure.ac):
29738         Likewise.
29739         * modules/unictype/property-sentence-terminal (Depends-on,
29740         configure.ac): Likewise.
29741         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
29742         Likewise.
29743         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
29744         * modules/unictype/property-terminal-punctuation (Depends-on,
29745         configure.ac): Likewise.
29746         * modules/unictype/property-titlecase (Depends-on, configure.ac):
29747         Likewise.
29748         * modules/unictype/property-unassigned-code-value (Depends-on,
29749         configure.ac): Likewise.
29750         * modules/unictype/property-unified-ideograph (Depends-on,
29751         configure.ac): Likewise.
29752         * modules/unictype/property-uppercase (Depends-on, configure.ac):
29753         Likewise.
29754         * modules/unictype/property-variation-selector (Depends-on,
29755         configure.ac): Likewise.
29756         * modules/unictype/property-white-space (Depends-on, configure.ac):
29757         Likewise.
29758         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
29759         Likewise.
29760         * modules/unictype/property-xid-start (Depends-on, configure.ac):
29761         Likewise.
29762         * modules/unictype/property-zero-width (Depends-on, configure.ac):
29763         Likewise.
29764         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
29765         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
29766         Likewise.
29767
29768 2009-12-31  Bruno Haible  <bruno@clisp.org>
29769
29770         Remove unnecessary AC_C_INLINE invocation.
29771         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
29772         since 2009-08-21.
29773
29774 2009-12-31  Jim Meyering  <meyering@redhat.com>
29775
29776         maint.mk: don't require explicit gpg_key_ID in cfg.mk
29777         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
29778         With this change, we can all remove the gpg_key_ID = ... definition
29779         from our respective cfg.mk files.
29780
29781         maint.mk: create announcement template in ~/, not in /tmp
29782         * top/maint.mk (emit_upload_commands): Adjust.
29783         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
29784         Remove temporary file, .ci-msg.
29785
29786 2009-12-31  Eric Blake  <ebb9@byu.net>
29787
29788         link-warning: always build headers with link warnings
29789         * modules/arpa_inet (Makefile.am): Always build replacement
29790         header.
29791         * modules/ctype (Makefile.am): Likewise.
29792         * modules/dirent (Makefile.am): Likewise.
29793         * modules/inttypes (Makefile.am): Likewise.
29794         * modules/langinfo (Makefile.am): Likewise.
29795         * modules/locale (Makefile.am): Likewise.
29796         * modules/spawn (Makefile.am): Likewise.
29797         * modules/sys_file (Makefile.am): Likewise.
29798         * modules/sys_ioctl (Makefile.am): Likewise.
29799         * modules/sys_select (Makefile.am): Likewise.
29800         * modules/sys_socket (Makefile.am): Likewise.
29801         * modules/sys_times (Makefile.am): Likewise.
29802         * modules/sys_utsname (Makefile.am): Likewise.
29803         * modules/sys_wait (Makefile.am): Likewise.
29804         * modules/wchar (Makefile.am): Likewise.
29805         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
29806         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
29807         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
29808         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
29809         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
29810         Likewise.
29811         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29812         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29813         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
29814         Likewise.
29815         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
29816         Likewise.
29817         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
29818         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
29819         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
29820         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29821         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29822         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29823         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29824         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
29825         (gl_WCHAR_H_DEFAULTS): Likewise.
29826
29827 2009-12-31  Eric Blake  <ebb9@byu.net>
29828
29829         signal, spawn: use link warnings
29830         * lib/signal.in.h (sigset_t): Make unconditional.
29831         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
29832         (sigpending, sigprocmask, sigaction): Add link warnings.
29833         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
29834         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
29835         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
29836         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
29837         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
29838         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
29839         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
29840         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
29841         (posix_spawn_file_actions_destroy)
29842         (posix_spawn_file_actions_addopen)
29843         (posix_spawn_file_actions_addclose)
29844         (posix_spawn_file_actions_adddup2): Likewise.
29845         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
29846         * tests/test-signal.c (main): Enhance test.
29847
29848         spawn: improve wrapper support
29849         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
29850         (gl_SPAWN_H_DEFAULTS): New defaults.
29851         * modules/spawn (Makefile.am): Substitute them.
29852         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
29853         Only declare if missing or broken.
29854
29855         sys_times, sys_utsname: use include_next
29856         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
29857         header.
29858         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
29859         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29860         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29861         * modules/sys_times (Depends-on): Add include_next.
29862         (Makefile.am): Substitute additional values.
29863         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29864         * lib/sys_times.in.h (includes): Include native header, if
29865         available.
29866         * lib/sys_utsname.in.h (includes): Likewise.
29867         * tests/test-sys_times.c (main): Enhance test.
29868
29869         fdutimensat: revert prior patch
29870         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
29871         utimens.h.
29872         Reported by Bruno Haible.
29873
29874 2009-12-30  Eric Blake  <ebb9@byu.net>
29875
29876         sys_wait: drop link-warning dependency
29877         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
29878         link-warning efforts.
29879         * lib/sys_wait.in.h: Likewise.
29880
29881         fdutimensat: remove bogus dependency
29882         * modules/fdutimensat (Depends-on): Drop inline.
29883
29884         unistd: fix typo
29885         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
29886
29887 2009-12-30  Bruno Haible  <bruno@clisp.org>
29888
29889         Fix compilation error with Solaris cc.
29890         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
29891         * lib/unicase/u16-is-invariant.c: Likewise.
29892         * lib/unicase/u32-is-invariant.c: Likewise.
29893         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
29894
29895 2009-12-30  Bruno Haible  <bruno@clisp.org>
29896
29897         Fix test crash.
29898         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
29899         locales.
29900         Reported by Simon Josefsson <simon@josefsson.org>.
29901
29902 2009-12-30  Bruno Haible  <bruno@clisp.org>
29903
29904         Fix compilation error on most platforms.
29905         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
29906         Reported by Simon Josefsson <simon@josefsson.org>
29907         and Nelson H. F. Beebe <beebe@math.utah.edu>.
29908
29909 2009-12-30  Eric Blake  <ebb9@byu.net>
29910
29911         futimens, utimensat: work around ntfs-3g bug
29912         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
29913         a ctime bug is present, and expand workaround to cover ntfs-3g.
29914         * lib/utimens.c (fdutimens, lutimens): Likewise.
29915         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
29916         (validate_timespec): Adjust return value.
29917         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
29918         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29919         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
29920
29921 2009-12-29  Eric Blake  <ebb9@byu.net>
29922
29923         link-warning: make usage consistent
29924         * modules/ctype (Depends-on): Add link-warning.
29925         (Makefile.am): Update rules accordingly.
29926         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29927         * modules/locale (Depends-on, Makefile.am): Likewise.
29928         * modules/sys_file (Makefile.am): Likewise.
29929         * modules/getopt-posix (Makefile.am): Delete unused link warning
29930         efforts.
29931         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
29932         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
29933         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
29934         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
29935
29936         stdio: remove unused variables
29937         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
29938         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
29939         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29940
29941         tests: test more substitute headers
29942         * modules/ctype-tests: New file.
29943         * modules/dirent-tests: Likewise.
29944         * modules/spawn-tests: Likewise.
29945         * modules/sys_file-tests: Likewise.
29946         * modules/sys_ioctl-tests: Likewise.
29947         * modules/sys_wait-tests: Likewise.
29948         * tests/test-ctype.c: Likewise.
29949         * tests/test-dirent.c: Likewise.
29950         * tests/test-spawn.c: Likewise.
29951         * tests/test-sys_file.c: Likewise.
29952         * tests/test-sys_ioctl.c: Likewise.
29953         * tests/test-sys_wait.c: Likewise.
29954         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
29955         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
29956         whether or not flock is in use.
29957
29958         tests: remove License section from module
29959         * modules/arpa_inet-tests: Remove unneeded section.
29960         * modules/byteswap-tests: Likewise.
29961         * modules/ceilf-tests: Likewise.
29962         * modules/ceill-tests: Likewise.
29963         * modules/crypto/des-tests: Likewise.
29964         * modules/crypto/gc-arcfour-tests: Likewise.
29965         * modules/crypto/gc-arctwo-tests: Likewise.
29966         * modules/crypto/gc-des-tests: Likewise.
29967         * modules/crypto/gc-hmac-md5-tests: Likewise.
29968         * modules/crypto/gc-hmac-sha1-tests: Likewise.
29969         * modules/crypto/gc-md2-tests: Likewise.
29970         * modules/crypto/gc-md4-tests: Likewise.
29971         * modules/crypto/gc-md5-tests: Likewise.
29972         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
29973         * modules/crypto/gc-rijndael-tests: Likewise.
29974         * modules/crypto/gc-sha1-tests: Likewise.
29975         * modules/crypto/gc-tests: Likewise.
29976         * modules/crypto/md2-tests: Likewise.
29977         * modules/crypto/md4-tests: Likewise.
29978         * modules/fcntl-h-tests: Likewise.
29979         * modules/floorf-tests: Likewise.
29980         * modules/floorl-tests: Likewise.
29981         * modules/frexp-nolibm-tests: Likewise.
29982         * modules/frexp-tests: Likewise.
29983         * modules/frexpl-nolibm-tests: Likewise.
29984         * modules/frexpl-tests: Likewise.
29985         * modules/getaddrinfo-tests: Likewise.
29986         * modules/inttypes-tests: Likewise.
29987         * modules/isfinite-tests: Likewise.
29988         * modules/isinf-tests: Likewise.
29989         * modules/ldexpl-tests: Likewise.
29990         * modules/locale-tests: Likewise.
29991         * modules/math-tests: Likewise.
29992         * modules/netdb-tests: Likewise.
29993         * modules/netinet_in-tests: Likewise.
29994         * modules/printf-frexp-tests: Likewise.
29995         * modules/printf-frexpl-tests: Likewise.
29996         * modules/priv-set-tests: Likewise.
29997         * modules/random_r-tests: Likewise.
29998         * modules/round-tests: Likewise.
29999         * modules/roundf-tests: Likewise.
30000         * modules/roundl-tests: Likewise.
30001         * modules/search-tests: Likewise.
30002         * modules/select-tests: Likewise.
30003         * modules/signal-tests: Likewise.
30004         * modules/stdbool-tests: Likewise.
30005         * modules/stddef-tests: Likewise.
30006         * modules/stdint-tests: Likewise.
30007         * modules/stdio-tests: Likewise.
30008         * modules/stdlib-tests: Likewise.
30009         * modules/string-tests: Likewise.
30010         * modules/strings-tests: Likewise.
30011         * modules/sys_select-tests: Likewise.
30012         * modules/sys_socket-tests: Likewise.
30013         * modules/sys_stat-tests: Likewise.
30014         * modules/sys_time-tests: Likewise.
30015         * modules/sys_utsname-tests: Likewise.
30016         * modules/sysexits-tests: Likewise.
30017         * modules/time-tests: Likewise.
30018         * modules/trunc-tests: Likewise.
30019         * modules/truncf-tests: Likewise.
30020         * modules/truncl-tests: Likewise.
30021         * modules/tsearch-tests: Likewise.
30022         * modules/unistd-tests: Likewise.
30023         * modules/wchar-tests: Likewise.
30024         * modules/wctype-tests: Likewise.
30025
30026         tests: fix license on several tests
30027         * tests/test-des.c: Update to GPLv3+.
30028         * tests/test-flock.c: Likewise.
30029         * tests/test-fsync.c: Likewise.
30030         * tests/test-futimens.h: Likewise.
30031         * tests/test-gc-arcfour.c: Likewise.
30032         * tests/test-gc-arctwo.c: Likewise.
30033         * tests/test-gc-des.c: Likewise.
30034         * tests/test-gc-hmac-md5.c: Likewise.
30035         * tests/test-gc-hmac-sha1.c: Likewise.
30036         * tests/test-gc-md2.c: Likewise.
30037         * tests/test-gc-md4.c: Likewise.
30038         * tests/test-gc-md5.c: Likewise.
30039         * tests/test-gc-pbkdf2-sha1.c: Likewise.
30040         * tests/test-gc-rijndael.c: Likewise.
30041         * tests/test-gc-sha1.c: Likewise.
30042         * tests/test-gc.c: Likewise.
30043         * tests/test-getcwd.c: Likewise.
30044         * tests/test-link.c: Likewise.
30045         * tests/test-link.h: Likewise.
30046         * tests/test-lutimens.h: Likewise.
30047         * tests/test-md2.c: Likewise.
30048         * tests/test-md4.c: Likewise.
30049         * tests/test-mkdir.h: Likewise.
30050         * tests/test-rename.c: Likewise.
30051         * tests/test-rename.h: Likewise.
30052         * tests/test-safe-alloc.c: Likewise.
30053         * tests/test-utimens-common.h: Likewise.
30054         * tests/test-utimens.h: Likewise.
30055
30056         maint: sync license texts
30057         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
30058         * doc/gpl-3.0.texi: Revert copyright year update.
30059         * doc/lgpl-3.0.texi: Likewise.
30060
30061 2009-12-29  Jim Meyering  <meyering@redhat.com>
30062
30063         update nearly all FSF copyright year lists to include 2009
30064         The files named by the following are exempted:
30065             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
30066               test -f "$dst" && { echo "$dst"; continue; }
30067               test -d "$dst" || continue
30068               echo "$dst"/$(basename "$src")
30069             done > exempt
30070             git ls-files tests/unictype >> exempt
30071         In the remaining files, convert to all-interval notation if
30072         - there is already at least one year interval like 2000-2003
30073         - the file is maintained by me
30074         - the file is in lib/uni*/, where that style already prevails
30075         Otherwise, use update-copyright's default.
30076
30077 2009-12-29  Simon Josefsson  <simon@josefsson.org>
30078         and Eric Blake  <ebb9@byu.net>
30079
30080         tests: don't require debug system() to pass
30081         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
30082         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30083         * tests/test-unlink.h (test_unlink_func): Likewise.
30084         * tests/test-fstatat.c (main): ...into callers.
30085         * tests/test-lstat.c (main): Likewise.
30086         * tests/test-rmdir.c (main): Likewise.
30087         * tests/test-unlink.c (main): Likewise.
30088         * tests/test-unlinkat.c (main): Likewise.
30089         * tests/test-areadlink-with-size.c (main): Don't require a
30090         debug-only system call to pass, aiding cross-testing to mingw.
30091         * tests/test-areadlink.c (main): Likewise.
30092         * tests/test-areadlinkat-with-size.c (main): Likewise.
30093         * tests/test-areadlinkat.c (main): Likewise.
30094         * tests/test-canonicalize-lgpl.c (main): Likewise.
30095         * tests/test-canonicalize.c (main): Likewise.
30096         * tests/test-chown.c (main): Likewise.
30097         * tests/test-fchownat.c (main): Likewise.
30098         * tests/test-lchown.c (main): Likewise.
30099         * tests/test-fdutimensat.c (main): Likewise.
30100         * tests/test-futimens.c (main): Likewise.
30101         * tests/test-link.c (main): Likewise.
30102         * tests/test-linkat.c (main): Likewise.
30103         * tests/test-mkdir.c (main): Likewise.
30104         * tests/test-mkdirat.c (main): Likewise.
30105         * tests/test-mkfifo.c (main): Likewise.
30106         * tests/test-mkfifoat.c (main): Likewise.
30107         * tests/test-mknod.c (main): Likewise.
30108         * tests/test-readlink.c (main): Likewise.
30109         * tests/test-remove.c (main): Likewise.
30110         * tests/test-rename.c (main): Likewise.
30111         * tests/test-renameat.c (main): Likewise.
30112         * tests/test-symlink.c (main): Likewise.
30113         * tests/test-symlinkat.c (main): Likewise.
30114         * tests/test-utimens.c (main): Likewise.
30115         * tests/test-utimensat.c (main): Likewise.
30116
30117 2009-12-29  Simon Josefsson  <simon@josefsson.org>
30118
30119         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
30120         on $(UNUSED_PARAMETER_H) to avoid build failure.
30121
30122 2009-12-28  Jim Meyering  <meyering@redhat.com>
30123
30124         update-copyright: you may specify a max. line length other than 72
30125         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
30126
30127         maint: use consistent FSF copyright line syntax
30128         * lib/posixtm.c: Add missing comma in FSF copyright line.
30129         * lib/posixtm.h: Likewise.
30130         * lib/getugroups.c: Add missing ", Inc.".
30131
30132         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
30133         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
30134         FSF copyright line.  Remove trailing blanks.
30135
30136 2009-12-28  Eric Blake  <ebb9@byu.net>
30137
30138         test-dup2: reduce dependencies
30139         * modules/cloexec (Configure.ac): Set witness.
30140         * modules/dup2-tests (Depends-on): Drop cloexec.
30141         * tests/test-dup2.c (main): Skip portion of test if cloexec module
30142         not present.
30143         Suggested by Bruno Haible.
30144
30145 2009-12-26  Bruno Haible  <bruno@clisp.org>
30146
30147         Remove an unneeded dependency.
30148         * modules/fseterr (Depends-on): Remove dup2.
30149
30150 2009-12-26  Eric Blake  <ebb9@byu.net>
30151
30152         tests: use macros.h in more places
30153         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
30154         (ASSERT_STREAM): Provide default of stderr.
30155         * tests/test-dirent-safer.c: Include macros.h, using alternate
30156         stream for assertions.
30157         * tests/test-dup-safer.c: Likewise.
30158         * tests/test-freopen-safer.c: Likewise.
30159         * tests/test-getopt.c: Likewise.
30160         * tests/test-openat-safer.c: Likewise.
30161         * tests/test-pipe.c: Likewise.
30162         * tests/test-popen-safer.c: Likewise.
30163         * modules/dirent-safer-tests (Files): Include macros.h.
30164         * modules/unistd-safer-tests (Files): Likewise.
30165         * modules/freopen-safer-tests (Files): Likewise.
30166         * modules/getopt-posix-tests (Files): Likewise.
30167         * modules/openat-safer-tests (Files): Likewise.
30168         * modules/pipe-tests (Files): Likewise.
30169
30170 2009-12-26  Bruno Haible  <bruno@clisp.org>
30171
30172         javacomp: Portability fix.
30173         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
30174         that it also works on Solaris.
30175
30176 2009-12-26  Bruno Haible  <bruno@clisp.org>
30177
30178         localename: Fix storage allocation of gl_locale_name_thread's result.
30179         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
30180         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
30181         all platforms that have 'uselocale'.
30182         (gl_locale_name_thread_unsafe): New function, extracted from
30183         gl_locale_name_thread.
30184         (gl_locale_name_thread): Call struniq on all platforms that have
30185         'uselocale'.
30186         * tests/test-localename.c (test_locale_name_thread): Check that the
30187         resulting strings are permanently allocated.
30188         * modules/localename-tests (Depends-on): Add strdup.
30189
30190 2009-12-26  Bruno Haible  <bruno@clisp.org>
30191
30192         * tests/test-localename.c (categories): Fill in the strings.
30193
30194 2009-12-26  Jim Meyering  <meyering@redhat.com>
30195
30196         isdir: complete the removal of m4/isdir.m4
30197         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
30198
30199         isdir: clean up, since at least grep still uses it
30200         * lib/isdir.c: Include "isdir.h".
30201         (S_ISDIR): Remove now-unneeded definition.
30202         * modules/isdir (Files): Add lib/isdir.h.
30203         * lib/isdir.h: New file, with declaration.
30204         * m4/isdir.m4: Remove file -- unneeded.
30205
30206 2009-12-25  Bruno Haible  <bruno@clisp.org>
30207
30208         selinux-h: Make generated .h files standalone.
30209         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
30210         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
30211         * lib/se-selinux.in.h: Likewise.
30212         * modules/selinux-h (Depends-on): Add unused-parameter.
30213         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
30214         selinux/selinux.h and selinux/context.h.
30215         Suggested by Eric Blake.
30216
30217 2009-12-25  Bruno Haible  <bruno@clisp.org>
30218
30219         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
30220         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
30221         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
30222         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
30223         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
30224
30225 2009-12-24  Bruno Haible  <bruno@clisp.org>
30226
30227         openat: Fix warning.
30228         * lib/openat-proc.c: Include <unistd.h>.
30229
30230 2009-12-24  Bruno Haible  <bruno@clisp.org>
30231
30232         New module 'unused-parameter'.
30233         * build-aux/unused-parameter.h: New file, extracted from earlier
30234         gnulib-common.m4.
30235         * modules/unused-parameter: New file.
30236         * lib/unistr.h: Include unused-parameter.h.
30237         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
30238         _GL_UNUSED.
30239         * modules/unistr/base (Depends-on): Add unused-parameter.
30240
30241 2009-12-24  Bruno Haible  <bruno@clisp.org>
30242
30243         Add missing dependencies to 'extensions' module.
30244         * m4/extensions.m4: Add comment.
30245         * modules/accept4 (Depends-on): Add extensions.
30246         * modules/dup3 (Depends-on): Likewise.
30247         * modules/fcntl (Depends-on): Likewise.
30248         * modules/futimens (Depends-on): Likewise.
30249         * modules/mknod (Depends-on): Likewise.
30250         * modules/pipe2 (Depends-on): Likewise.
30251         * modules/stat-time (Depends-on): Likewise.
30252         * modules/strcasestr-simple (Depends-on): Likewise.
30253         * modules/strsignal (Depends-on): Likewise.
30254         * modules/utimensat (Depends-on): Likewise.
30255         * modules/localcharset (Depends-on): Likewise. Needed because of
30256         gl_FCNTL_O_FLAGS.
30257         * modules/wcrtomb (Depends-on): Likewise. Needed because of
30258         AC_TYPE_MBSTATE_T.
30259         * modules/wcsnrtombs (Depends-on): Likewise.
30260         * modules/wcsrtombs (Depends-on): Likewise.
30261
30262 2009-12-24  Bruno Haible  <bruno@clisp.org>
30263
30264         binary-io: Avoid gcc warning due to SET_BINARY.
30265         * lib/binary-io.h (SET_BINARY): Cast the result to void.
30266         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
30267
30268 2009-12-24  Bruno Haible  <bruno@clisp.org>
30269
30270         Avoid future namespace pollution on glibc systems.
30271         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
30272         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
30273         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
30274         glibc systems.
30275
30276 2009-12-24  Bruno Haible  <bruno@clisp.org>
30277
30278         Refactor common macros used in tests.
30279         * tests/macros.h: New file.
30280         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
30281         and/or <stdlib.h>, if appropriate.
30282         (ASSERT, SIZEOF): Remove macros.
30283         * tests/test-areadlink-with-size.c: Likewise.
30284         * tests/test-areadlinkat.c: Likewise.
30285         * tests/test-areadlinkat-with-size.c: Likewise.
30286         * tests/test-argmatch.c: Likewise.
30287         * tests/test-argv-iter.c: Likewise.
30288         * tests/test-array-mergesort.c: Likewise.
30289         * tests/test-array_list.c: Likewise.
30290         * tests/test-array_oset.c: Likewise.
30291         * tests/test-avltree_list.c: Likewise.
30292         * tests/test-avltree_oset.c: Likewise.
30293         * tests/test-avltreehash_list.c: Likewise.
30294         * tests/test-base64.c: Likewise.
30295         * tests/test-binary-io.c: Likewise.
30296         * tests/test-bitrotate.c: Likewise.
30297         * tests/test-btowc.c: Likewise.
30298         * tests/test-byteswap.c: Likewise.
30299         * tests/test-c-ctype.c: Likewise.
30300         * tests/test-c-stack.c: Likewise.
30301         * tests/test-c-strcasecmp.c: Likewise.
30302         * tests/test-c-strcasestr.c: Likewise.
30303         * tests/test-c-strncasecmp.c: Likewise.
30304         * tests/test-c-strstr.c: Likewise.
30305         * tests/test-canonicalize-lgpl.c: Likewise.
30306         * tests/test-canonicalize.c: Likewise.
30307         * tests/test-carray_list.c: Likewise.
30308         * tests/test-ceilf1.c: Likewise.
30309         * tests/test-ceilf2.c: Likewise.
30310         * tests/test-ceill.c: Likewise.
30311         * tests/test-chown.c: Likewise.
30312         * tests/test-cloexec.c: Likewise.
30313         * tests/test-copy-acl.c: Likewise.
30314         * tests/test-copy-file.c: Likewise.
30315         * tests/test-count-one-bits.c: Likewise.
30316         * tests/test-dprintf-posix.c: Likewise.
30317         * tests/test-dup2.c: Likewise.
30318         * tests/test-dup3.c: Likewise.
30319         * tests/test-duplocale.c: Likewise.
30320         * tests/test-fbufmode.c: Likewise.
30321         * tests/test-fchdir.c: Likewise.
30322         * tests/test-fchownat.c: Likewise.
30323         * tests/test-fcntl-safer.c: Likewise.
30324         * tests/test-fcntl.c: Likewise.
30325         * tests/test-fdopendir.c: Likewise.
30326         * tests/test-fdutimensat.c: Likewise.
30327         * tests/test-fflush2.c: Likewise.
30328         * tests/test-file-has-acl.c: Likewise.
30329         * tests/test-filevercmp.c: Likewise.
30330         * tests/test-flock.c: Likewise.
30331         * tests/test-floorf1.c: Likewise.
30332         * tests/test-floorf2.c: Likewise.
30333         * tests/test-floorl.c: Likewise.
30334         * tests/test-fnmatch.c: Likewise.
30335         * tests/test-fopen.h: Likewise.
30336         * tests/test-fpending.c: Likewise.
30337         * tests/test-fprintf-posix.c: Likewise.
30338         * tests/test-fpurge.c: Likewise.
30339         * tests/test-freadable.c: Likewise.
30340         * tests/test-freadahead.c: Likewise.
30341         * tests/test-freading.c: Likewise.
30342         * tests/test-freadptr.c: Likewise.
30343         * tests/test-freadptr2.c: Likewise.
30344         * tests/test-freadseek.c: Likewise.
30345         * tests/test-freopen.c: Likewise.
30346         * tests/test-frexp.c: Likewise.
30347         * tests/test-frexpl.c: Likewise.
30348         * tests/test-fseek.c: Likewise.
30349         * tests/test-fseeko.c: Likewise.
30350         * tests/test-fstatat.c: Likewise.
30351         * tests/test-fstrcmp.c: Likewise.
30352         * tests/test-fsync.c: Likewise.
30353         * tests/test-ftell.c: Likewise.
30354         * tests/test-ftello.c: Likewise.
30355         * tests/test-func.c: Likewise.
30356         * tests/test-futimens.c: Likewise.
30357         * tests/test-fwritable.c: Likewise.
30358         * tests/test-fwriting.c: Likewise.
30359         * tests/test-getcwd.c: Likewise.
30360         * tests/test-getdate.c: Likewise.
30361         * tests/test-getdelim.c: Likewise.
30362         * tests/test-getdtablesize.c: Likewise.
30363         * tests/test-getgroups.c: Likewise.
30364         * tests/test-getline.c: Likewise.
30365         * tests/test-getndelim2.c: Likewise.
30366         * tests/test-glob.c: Likewise.
30367         * tests/test-hash.c: Likewise.
30368         * tests/test-i-ring.c: Likewise.
30369         * tests/test-iconv-utf.c: Likewise.
30370         * tests/test-iconv.c: Likewise.
30371         * tests/test-idpriv-drop.c: Likewise.
30372         * tests/test-idpriv-droptemp.c: Likewise.
30373         * tests/test-inet_ntop.c: Likewise.
30374         * tests/test-inet_pton.c: Likewise.
30375         * tests/test-isblank.c: Likewise.
30376         * tests/test-isfinite.c: Likewise.
30377         * tests/test-isinf.c: Likewise.
30378         * tests/test-isnan.c: Likewise.
30379         * tests/test-isnand.h: Likewise.
30380         * tests/test-isnanf.h: Likewise.
30381         * tests/test-isnanl.h: Likewise.
30382         * tests/test-lchown.c: Likewise.
30383         * tests/test-ldexpl.c: Likewise.
30384         * tests/test-link.c: Likewise.
30385         * tests/test-linkat.c: Likewise.
30386         * tests/test-linked_list.c: Likewise.
30387         * tests/test-linkedhash_list.c: Likewise.
30388         * tests/test-localename.c: Likewise.
30389         * tests/test-lseek.c: Likewise.
30390         * tests/test-lstat.c: Likewise.
30391         * tests/test-mbmemcasecmp.c: Likewise.
30392         * tests/test-mbmemcasecoll.c: Likewise.
30393         * tests/test-mbrtowc.c: Likewise.
30394         * tests/test-mbscasecmp.c: Likewise.
30395         * tests/test-mbscasestr1.c: Likewise.
30396         * tests/test-mbscasestr2.c: Likewise.
30397         * tests/test-mbscasestr3.c: Likewise.
30398         * tests/test-mbscasestr4.c: Likewise.
30399         * tests/test-mbschr.c: Likewise.
30400         * tests/test-mbscspn.c: Likewise.
30401         * tests/test-mbsinit.c: Likewise.
30402         * tests/test-mbsncasecmp.c: Likewise.
30403         * tests/test-mbsnrtowcs.c: Likewise.
30404         * tests/test-mbspbrk.c: Likewise.
30405         * tests/test-mbspcasecmp.c: Likewise.
30406         * tests/test-mbsrchr.c: Likewise.
30407         * tests/test-mbsrtowcs.c: Likewise.
30408         * tests/test-mbsspn.c: Likewise.
30409         * tests/test-mbsstr1.c: Likewise.
30410         * tests/test-mbsstr2.c: Likewise.
30411         * tests/test-mbsstr3.c: Likewise.
30412         * tests/test-memchr.c: Likewise.
30413         * tests/test-memchr2.c: Likewise.
30414         * tests/test-memcmp.c: Likewise.
30415         * tests/test-memmem.c: Likewise.
30416         * tests/test-memrchr.c: Likewise.
30417         * tests/test-mkdir.c: Likewise.
30418         * tests/test-mkdirat.c: Likewise.
30419         * tests/test-mkfifo.c: Likewise.
30420         * tests/test-mkfifoat.c: Likewise.
30421         * tests/test-mknod.c: Likewise.
30422         * tests/test-nanosleep.c: Likewise.
30423         * tests/test-nl_langinfo.c: Likewise.
30424         * tests/test-obstack-printf.c: Likewise.
30425         * tests/test-open.c: Likewise.
30426         * tests/test-openat.c: Likewise.
30427         * tests/test-pipe-filter-gi1.c: Likewise.
30428         * tests/test-pipe-filter-gi2-main.c: Likewise.
30429         * tests/test-pipe-filter-ii1.c: Likewise.
30430         * tests/test-pipe-filter-ii2-main.c: Likewise.
30431         * tests/test-pipe2.c: Likewise.
30432         * tests/test-popen.h: Likewise.
30433         * tests/test-posixtm.c: Likewise.
30434         * tests/test-pread.c: Likewise.
30435         * tests/test-printf-frexp.c: Likewise.
30436         * tests/test-printf-frexpl.c: Likewise.
30437         * tests/test-printf-posix.c: Likewise.
30438         * tests/test-priv-set.c: Likewise.
30439         * tests/test-quotearg.c: Likewise.
30440         * tests/test-random_r.c: Likewise.
30441         * tests/test-rawmemchr.c: Likewise.
30442         * tests/test-rbtree_list.c: Likewise.
30443         * tests/test-rbtree_oset.c: Likewise.
30444         * tests/test-rbtreehash_list.c: Likewise.
30445         * tests/test-readlink.c: Likewise.
30446         * tests/test-remove.c: Likewise.
30447         * tests/test-rename.c: Likewise.
30448         * tests/test-renameat.c: Likewise.
30449         * tests/test-rmdir.c: Likewise.
30450         * tests/test-round1.c: Likewise.
30451         * tests/test-roundf1.c: Likewise.
30452         * tests/test-roundl.c: Likewise.
30453         * tests/test-safe-alloc.c: Likewise.
30454         * tests/test-sameacls.c: Likewise.
30455         * tests/test-set-mode-acl.c: Likewise.
30456         * tests/test-setenv.c: Likewise.
30457         * tests/test-sigaction.c: Likewise.
30458         * tests/test-signbit.c: Likewise.
30459         * tests/test-sleep.c: Likewise.
30460         * tests/test-snprintf-posix.c: Likewise.
30461         * tests/test-snprintf.c: Likewise.
30462         * tests/test-sprintf-posix.c: Likewise.
30463         * tests/test-stat-time.c: Likewise.
30464         * tests/test-stat.c: Likewise.
30465         * tests/test-strcasestr.c: Likewise.
30466         * tests/test-strchrnul.c: Likewise.
30467         * tests/test-strerror.c: Likewise.
30468         * tests/test-striconv.c: Likewise.
30469         * tests/test-striconveh.c: Likewise.
30470         * tests/test-striconveha.c: Likewise.
30471         * tests/test-strsignal.c: Likewise.
30472         * tests/test-strstr.c: Likewise.
30473         * tests/test-strtod.c: Likewise.
30474         * tests/test-strverscmp.c: Likewise.
30475         * tests/test-symlink.c: Likewise.
30476         * tests/test-symlinkat.c: Likewise.
30477         * tests/test-trunc1.c: Likewise.
30478         * tests/test-trunc2.c: Likewise.
30479         * tests/test-truncf1.c: Likewise.
30480         * tests/test-truncf2.c: Likewise.
30481         * tests/test-truncl.c: Likewise.
30482         * tests/test-uname.c: Likewise.
30483         * tests/test-unlink.c: Likewise.
30484         * tests/test-unlinkat.c: Likewise.
30485         * tests/test-unsetenv.c: Likewise.
30486         * tests/test-usleep.c: Likewise.
30487         * tests/test-utimens.c: Likewise.
30488         * tests/test-utimensat.c: Likewise.
30489         * tests/test-vasnprintf-posix.c: Likewise.
30490         * tests/test-vasnprintf-posix2.c: Likewise.
30491         * tests/test-vasnprintf.c: Likewise.
30492         * tests/test-vasprintf-posix.c: Likewise.
30493         * tests/test-vasprintf.c: Likewise.
30494         * tests/test-vdprintf-posix.c: Likewise.
30495         * tests/test-vfprintf-posix.c: Likewise.
30496         * tests/test-vprintf-posix.c: Likewise.
30497         * tests/test-vsnprintf-posix.c: Likewise.
30498         * tests/test-vsnprintf.c: Likewise.
30499         * tests/test-vsprintf-posix.c: Likewise.
30500         * tests/test-wcrtomb.c: Likewise.
30501         * tests/test-wcsnrtombs.c: Likewise.
30502         * tests/test-wcsrtombs.c: Likewise.
30503         * tests/test-wctype.c: Likewise.
30504         * tests/test-wcwidth.c: Likewise.
30505         * tests/test-xfprintf-posix.c: Likewise.
30506         * tests/test-xmemdup0.c: Likewise.
30507         * tests/test-xprintf-posix.c: Likewise.
30508         * tests/test-xvasprintf.c: Likewise.
30509         * tests/unicase/test-locale-language.c: Likewise.
30510         * tests/unicase/test-mapping-part1.h: Likewise.
30511         * tests/unicase/test-predicate-part1.h: Likewise.
30512         * tests/unicase/test-u8-casecmp.c: Likewise.
30513         * tests/unicase/test-u8-casecoll.c: Likewise.
30514         * tests/unicase/test-u8-casefold.c: Likewise.
30515         * tests/unicase/test-u8-is-cased.c: Likewise.
30516         * tests/unicase/test-u8-is-casefolded.c: Likewise.
30517         * tests/unicase/test-u8-is-lowercase.c: Likewise.
30518         * tests/unicase/test-u8-is-titlecase.c: Likewise.
30519         * tests/unicase/test-u8-is-uppercase.c: Likewise.
30520         * tests/unicase/test-u8-tolower.c: Likewise.
30521         * tests/unicase/test-u8-totitle.c: Likewise.
30522         * tests/unicase/test-u8-toupper.c: Likewise.
30523         * tests/unicase/test-u16-casecmp.c: Likewise.
30524         * tests/unicase/test-u16-casecoll.c: Likewise.
30525         * tests/unicase/test-u16-casefold.c: Likewise.
30526         * tests/unicase/test-u16-is-cased.c: Likewise.
30527         * tests/unicase/test-u16-is-casefolded.c: Likewise.
30528         * tests/unicase/test-u16-is-lowercase.c: Likewise.
30529         * tests/unicase/test-u16-is-titlecase.c: Likewise.
30530         * tests/unicase/test-u16-is-uppercase.c: Likewise.
30531         * tests/unicase/test-u16-tolower.c: Likewise.
30532         * tests/unicase/test-u16-totitle.c: Likewise.
30533         * tests/unicase/test-u16-toupper.c: Likewise.
30534         * tests/unicase/test-u32-casecmp.c: Likewise.
30535         * tests/unicase/test-u32-casecoll.c: Likewise.
30536         * tests/unicase/test-u32-casefold.c: Likewise.
30537         * tests/unicase/test-u32-is-cased.c: Likewise.
30538         * tests/unicase/test-u32-is-casefolded.c: Likewise.
30539         * tests/unicase/test-u32-is-lowercase.c: Likewise.
30540         * tests/unicase/test-u32-is-titlecase.c: Likewise.
30541         * tests/unicase/test-u32-is-uppercase.c: Likewise.
30542         * tests/unicase/test-u32-tolower.c: Likewise.
30543         * tests/unicase/test-u32-totitle.c: Likewise.
30544         * tests/unicase/test-u32-toupper.c: Likewise.
30545         * tests/unicase/test-ulc-casecmp.c: Likewise.
30546         * tests/unicase/test-ulc-casecoll.c: Likewise.
30547         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30548         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30549         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30550         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30551         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30552         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30553         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30554         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30555         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30556         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30557         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30558         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30559         * tests/unictype/test-bidi_byname.c: Likewise.
30560         * tests/unictype/test-bidi_name.c: Likewise.
30561         * tests/unictype/test-bidi_of.c: Likewise.
30562         * tests/unictype/test-bidi_test.c: Likewise.
30563         * tests/unictype/test-block_list.c: Likewise.
30564         * tests/unictype/test-block_of.c: Likewise.
30565         * tests/unictype/test-block_test.c: Likewise.
30566         * tests/unictype/test-categ_and.c: Likewise.
30567         * tests/unictype/test-categ_and_not.c: Likewise.
30568         * tests/unictype/test-categ_byname.c: Likewise.
30569         * tests/unictype/test-categ_name.c: Likewise.
30570         * tests/unictype/test-categ_none.c: Likewise.
30571         * tests/unictype/test-categ_of.c: Likewise.
30572         * tests/unictype/test-categ_or.c: Likewise.
30573         * tests/unictype/test-categ_test_withtable.c: Likewise.
30574         * tests/unictype/test-combining.c: Likewise.
30575         * tests/unictype/test-decdigit.c: Likewise.
30576         * tests/unictype/test-digit.c: Likewise.
30577         * tests/unictype/test-mirror.c: Likewise.
30578         * tests/unictype/test-numeric.c: Likewise.
30579         * tests/unictype/test-pr_byname.c: Likewise.
30580         * tests/unictype/test-pr_test.c: Likewise.
30581         * tests/unictype/test-predicate-part1.h: Likewise.
30582         * tests/unictype/test-scripts.c: Likewise.
30583         * tests/unictype/test-sy_c_ident.c: Likewise.
30584         * tests/unictype/test-sy_java_ident.c: Likewise.
30585         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
30586         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
30587         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
30588         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
30589         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
30590         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
30591         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
30592         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
30593         * tests/uninorm/test-canonical-decomposition.c: Likewise.
30594         * tests/uninorm/test-compat-decomposition.c: Likewise.
30595         * tests/uninorm/test-composition.c: Likewise.
30596         * tests/uninorm/test-decomposing-form.c: Likewise.
30597         * tests/uninorm/test-decomposition.c: Likewise.
30598         * tests/uninorm/test-u8-nfc.c: Likewise.
30599         * tests/uninorm/test-u8-nfd.c: Likewise.
30600         * tests/uninorm/test-u8-nfkc.c: Likewise.
30601         * tests/uninorm/test-u8-nfkd.c: Likewise.
30602         * tests/uninorm/test-u8-normcmp.c: Likewise.
30603         * tests/uninorm/test-u8-normcoll.c: Likewise.
30604         * tests/uninorm/test-u16-nfc.c: Likewise.
30605         * tests/uninorm/test-u16-nfd.c: Likewise.
30606         * tests/uninorm/test-u16-nfkc.c: Likewise.
30607         * tests/uninorm/test-u16-nfkd.c: Likewise.
30608         * tests/uninorm/test-u16-normcmp.c: Likewise.
30609         * tests/uninorm/test-u16-normcoll.c: Likewise.
30610         * tests/uninorm/test-u32-nfc.c: Likewise.
30611         * tests/uninorm/test-u32-nfd.c: Likewise.
30612         * tests/uninorm/test-u32-nfkc.c: Likewise.
30613         * tests/uninorm/test-u32-nfkd.c: Likewise.
30614         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30615         * tests/uninorm/test-u32-normcmp.c: Likewise.
30616         * tests/uninorm/test-u32-normcoll.c: Likewise.
30617         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
30618         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30619         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30620         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30621         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30622         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30623         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30624         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30625         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30626         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30627         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30628         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30629         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30630         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30631         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30632         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30633         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30634         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30635         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30636         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30637         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30638         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30639         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30640         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30641         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30642         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30643         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30644         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30645         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30646         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
30647         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
30648         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
30649         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
30650         * tests/uniwidth/test-u8-strwidth.c: Likewise.
30651         * tests/uniwidth/test-u8-width.c: Likewise.
30652         * tests/uniwidth/test-u16-strwidth.c: Likewise.
30653         * tests/uniwidth/test-u16-width.c: Likewise.
30654         * tests/uniwidth/test-u32-strwidth.c: Likewise.
30655         * tests/uniwidth/test-u32-width.c: Likewise.
30656         * tests/uniwidth/test-uc_width.c: Likewise.
30657         * tests/uniwidth/test-uc_width2.c: Likewise.
30658         * modules/acl-tests (Files): Add tests/macros.h.
30659         * modules/areadlink-tests (Files): Likewise.
30660         * modules/areadlink-with-size-tests (Files): Likewise.
30661         * modules/areadlinkat-tests (Files): Likewise.
30662         * modules/areadlinkat-with-size-tests (Files): Likewise.
30663         * modules/argmatch-tests (Files): Likewise.
30664         * modules/argv-iter-tests (Files): Likewise.
30665         * modules/array-list-tests (Files): Likewise.
30666         * modules/array-mergesort-tests (Files): Likewise.
30667         * modules/array-oset-tests (Files): Likewise.
30668         * modules/avltree-list-tests (Files): Likewise.
30669         * modules/avltree-oset-tests (Files): Likewise.
30670         * modules/avltreehash-list-tests (Files): Likewise.
30671         * modules/base64-tests (Files): Likewise.
30672         * modules/binary-io-tests (Files): Likewise.
30673         * modules/bitrotate-tests (Files): Likewise.
30674         * modules/btowc-tests (Files): Likewise.
30675         * modules/byteswap-tests (Files): Likewise.
30676         * modules/c-ctype-tests (Files): Likewise.
30677         * modules/c-stack-tests (Files): Likewise.
30678         * modules/c-strcase-tests (Files): Likewise.
30679         * modules/c-strcasestr-tests (Files): Likewise.
30680         * modules/c-strstr-tests (Files): Likewise.
30681         * modules/canonicalize-lgpl-tests (Files): Likewise.
30682         * modules/canonicalize-tests (Files): Likewise.
30683         * modules/carray-list-tests (Files): Likewise.
30684         * modules/ceilf-tests (Files): Likewise.
30685         * modules/ceill-tests (Files): Likewise.
30686         * modules/chown-tests (Files): Likewise.
30687         * modules/cloexec-tests (Files): Likewise.
30688         * modules/copy-file-tests (Files): Likewise.
30689         * modules/count-one-bits-tests (Files): Likewise.
30690         * modules/dprintf-posix-tests (Files): Likewise.
30691         * modules/dup2-tests (Files): Likewise.
30692         * modules/dup3-tests (Files): Likewise.
30693         * modules/duplocale-tests (Files): Likewise.
30694         * modules/fbufmode-tests (Files): Likewise.
30695         * modules/fchdir-tests (Files): Likewise.
30696         * modules/fcntl-safer-tests (Files): Likewise.
30697         * modules/fcntl-tests (Files): Likewise.
30698         * modules/fdopendir-tests (Files): Likewise.
30699         * modules/fdutimensat-tests (Files): Likewise.
30700         * modules/fflush-tests (Files): Likewise.
30701         * modules/filevercmp-tests (Files): Likewise.
30702         * modules/flock-tests (Files): Likewise.
30703         * modules/floorf-tests (Files): Likewise.
30704         * modules/floorl-tests (Files): Likewise.
30705         * modules/fnmatch-tests (Files): Likewise.
30706         * modules/fopen-safer-tests (Files): Likewise.
30707         * modules/fopen-tests (Files): Likewise.
30708         * modules/fpending-tests (Files): Likewise.
30709         * modules/fprintf-posix-tests (Files): Likewise.
30710         * modules/fpurge-tests (Files): Likewise.
30711         * modules/freadable-tests (Files): Likewise.
30712         * modules/freadahead-tests (Files): Likewise.
30713         * modules/freading-tests (Files): Likewise.
30714         * modules/freadptr-tests (Files): Likewise.
30715         * modules/freadseek-tests (Files): Likewise.
30716         * modules/freopen-tests (Files): Likewise.
30717         * modules/frexp-nolibm-tests (Files): Likewise.
30718         * modules/frexp-tests (Files): Likewise.
30719         * modules/frexpl-nolibm-tests (Files): Likewise.
30720         * modules/frexpl-tests (Files): Likewise.
30721         * modules/fseek-tests (Files): Likewise.
30722         * modules/fseeko-tests (Files): Likewise.
30723         * modules/fstrcmp-tests (Files): Likewise.
30724         * modules/fsync-tests (Files): Likewise.
30725         * modules/ftell-tests (Files): Likewise.
30726         * modules/ftello-tests (Files): Likewise.
30727         * modules/func-tests (Files): Likewise.
30728         * modules/futimens-tests (Files): Likewise.
30729         * modules/fwritable-tests (Files): Likewise.
30730         * modules/fwriting-tests (Files): Likewise.
30731         * modules/getcwd-tests (Files): Likewise.
30732         * modules/getdate-tests (Files): Likewise.
30733         * modules/getdelim-tests (Files): Likewise.
30734         * modules/getdtablesize-tests (Files): Likewise.
30735         * modules/getgroups-tests (Files): Likewise.
30736         * modules/getline-tests (Files): Likewise.
30737         * modules/getndelim2-tests (Files): Likewise.
30738         * modules/glob-tests (Files): Likewise.
30739         * modules/hash-tests (Files): Likewise.
30740         * modules/i-ring-tests (Files): Likewise.
30741         * modules/iconv-tests (Files): Likewise.
30742         * modules/iconv_open-utf-tests (Files): Likewise.
30743         * modules/idpriv-drop-tests (Files): Likewise.
30744         * modules/idpriv-droptemp-tests (Files): Likewise.
30745         * modules/inet_ntop-tests (Files): Likewise.
30746         * modules/inet_pton-tests (Files): Likewise.
30747         * modules/isblank-tests (Files): Likewise.
30748         * modules/isfinite-tests (Files): Likewise.
30749         * modules/isinf-tests (Files): Likewise.
30750         * modules/isnan-tests (Files): Likewise.
30751         * modules/isnand-nolibm-tests (Files): Likewise.
30752         * modules/isnand-tests (Files): Likewise.
30753         * modules/isnanf-nolibm-tests (Files): Likewise.
30754         * modules/isnanf-tests (Files): Likewise.
30755         * modules/isnanl-nolibm-tests (Files): Likewise.
30756         * modules/isnanl-tests (Files): Likewise.
30757         * modules/lchown-tests (Files): Likewise.
30758         * modules/ldexpl-tests (Files): Likewise.
30759         * modules/link-tests (Files): Likewise.
30760         * modules/linkat-tests (Files): Likewise.
30761         * modules/linked-list-tests (Files): Likewise.
30762         * modules/linkedhash-list-tests (Files): Likewise.
30763         * modules/localename-tests (Files): Likewise.
30764         * modules/lseek-tests (Files): Likewise.
30765         * modules/lstat-tests (Files): Likewise.
30766         * modules/mbmemcasecmp-tests (Files): Likewise.
30767         * modules/mbmemcasecoll-tests (Files): Likewise.
30768         * modules/mbrtowc-tests (Files): Likewise.
30769         * modules/mbscasecmp-tests (Files): Likewise.
30770         * modules/mbscasestr-tests (Files): Likewise.
30771         * modules/mbschr-tests (Files): Likewise.
30772         * modules/mbscspn-tests (Files): Likewise.
30773         * modules/mbsinit-tests (Files): Likewise.
30774         * modules/mbsncasecmp-tests (Files): Likewise.
30775         * modules/mbsnrtowcs-tests (Files): Likewise.
30776         * modules/mbspbrk-tests (Files): Likewise.
30777         * modules/mbspcasecmp-tests (Files): Likewise.
30778         * modules/mbsrchr-tests (Files): Likewise.
30779         * modules/mbsrtowcs-tests (Files): Likewise.
30780         * modules/mbsspn-tests (Files): Likewise.
30781         * modules/mbsstr-tests (Files): Likewise.
30782         * modules/memchr-tests (Files): Likewise.
30783         * modules/memchr2-tests (Files): Likewise.
30784         * modules/memcmp-tests (Files): Likewise.
30785         * modules/memmem-tests (Files): Likewise.
30786         * modules/memrchr-tests (Files): Likewise.
30787         * modules/mkdir-tests (Files): Likewise.
30788         * modules/mkfifo-tests (Files): Likewise.
30789         * modules/mkfifoat-tests (Files): Likewise.
30790         * modules/mknod-tests (Files): Likewise.
30791         * modules/nanosleep-tests (Files): Likewise.
30792         * modules/nl_langinfo-tests (Files): Likewise.
30793         * modules/obstack-printf-tests (Files): Likewise.
30794         * modules/open-tests (Files): Likewise.
30795         * modules/openat-tests (Files): Likewise.
30796         * modules/pipe-filter-gi-tests (Files): Likewise.
30797         * modules/pipe-filter-ii-tests (Files): Likewise.
30798         * modules/pipe2-tests (Files): Likewise.
30799         * modules/popen-safer-tests (Files): Likewise.
30800         * modules/popen-tests (Files): Likewise.
30801         * modules/posixtm-tests (Files): Likewise.
30802         * modules/pread-tests (Files): Likewise.
30803         * modules/printf-frexp-tests (Files): Likewise.
30804         * modules/printf-frexpl-tests (Files): Likewise.
30805         * modules/printf-posix-tests (Files): Likewise.
30806         * modules/priv-set-tests (Files): Likewise.
30807         * modules/quotearg-tests (Files): Likewise.
30808         * modules/random_r-tests (Files): Likewise.
30809         * modules/rawmemchr-tests (Files): Likewise.
30810         * modules/rbtree-list-tests (Files): Likewise.
30811         * modules/rbtree-oset-tests (Files): Likewise.
30812         * modules/rbtreehash-list-tests (Files): Likewise.
30813         * modules/readlink-tests (Files): Likewise.
30814         * modules/remove-tests (Files): Likewise.
30815         * modules/rename-tests (Files): Likewise.
30816         * modules/renameat-tests (Files): Likewise.
30817         * modules/rmdir-tests (Files): Likewise.
30818         * modules/round-tests (Files): Likewise.
30819         * modules/roundf-tests (Files): Likewise.
30820         * modules/roundl-tests (Files): Likewise.
30821         * modules/safe-alloc-tests (Files): Likewise.
30822         * modules/setenv-tests (Files): Likewise.
30823         * modules/sigaction-tests (Files): Likewise.
30824         * modules/signbit-tests (Files): Likewise.
30825         * modules/sleep-tests (Files): Likewise.
30826         * modules/snprintf-posix-tests (Files): Likewise.
30827         * modules/snprintf-tests (Files): Likewise.
30828         * modules/sprintf-posix-tests (Files): Likewise.
30829         * modules/stat-tests (Files): Likewise.
30830         * modules/stat-time-tests (Files): Likewise.
30831         * modules/strcasestr-tests (Files): Likewise.
30832         * modules/strchrnul-tests (Files): Likewise.
30833         * modules/strerror-tests (Files): Likewise.
30834         * modules/striconv-tests (Files): Likewise.
30835         * modules/striconveh-tests (Files): Likewise.
30836         * modules/striconveha-tests (Files): Likewise.
30837         * modules/strsignal-tests (Files): Likewise.
30838         * modules/strstr-tests (Files): Likewise.
30839         * modules/strtod-tests (Files): Likewise.
30840         * modules/strverscmp-tests (Files): Likewise.
30841         * modules/symlink-tests (Files): Likewise.
30842         * modules/symlinkat-tests (Files): Likewise.
30843         * modules/trunc-tests (Files): Likewise.
30844         * modules/truncf-tests (Files): Likewise.
30845         * modules/truncl-tests (Files): Likewise.
30846         * modules/uname-tests (Files): Likewise.
30847         * modules/unicase/cased-tests (Files): Likewise.
30848         * modules/unicase/ignorable-tests (Files): Likewise.
30849         * modules/unicase/locale-language-tests (Files): Likewise.
30850         * modules/unicase/tolower-tests (Files): Likewise.
30851         * modules/unicase/totitle-tests (Files): Likewise.
30852         * modules/unicase/toupper-tests (Files): Likewise.
30853         * modules/unicase/u8-casecmp-tests (Files): Likewise.
30854         * modules/unicase/u8-casecoll-tests (Files): Likewise.
30855         * modules/unicase/u8-casefold-tests (Files): Likewise.
30856         * modules/unicase/u8-is-cased-tests (Files): Likewise.
30857         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
30858         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
30859         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
30860         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
30861         * modules/unicase/u8-tolower-tests (Files): Likewise.
30862         * modules/unicase/u8-totitle-tests (Files): Likewise.
30863         * modules/unicase/u8-toupper-tests (Files): Likewise.
30864         * modules/unicase/u16-casecmp-tests (Files): Likewise.
30865         * modules/unicase/u16-casecoll-tests (Files): Likewise.
30866         * modules/unicase/u16-casefold-tests (Files): Likewise.
30867         * modules/unicase/u16-is-cased-tests (Files): Likewise.
30868         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
30869         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
30870         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
30871         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
30872         * modules/unicase/u16-tolower-tests (Files): Likewise.
30873         * modules/unicase/u16-totitle-tests (Files): Likewise.
30874         * modules/unicase/u16-toupper-tests (Files): Likewise.
30875         * modules/unicase/u32-casecmp-tests (Files): Likewise.
30876         * modules/unicase/u32-casecoll-tests (Files): Likewise.
30877         * modules/unicase/u32-casefold-tests (Files): Likewise.
30878         * modules/unicase/u32-is-cased-tests (Files): Likewise.
30879         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
30880         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
30881         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
30882         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
30883         * modules/unicase/u32-tolower-tests (Files): Likewise.
30884         * modules/unicase/u32-totitle-tests (Files): Likewise.
30885         * modules/unicase/u32-toupper-tests (Files): Likewise.
30886         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
30887         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
30888         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
30889         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
30890         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
30891         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
30892         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
30893         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
30894         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
30895         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
30896         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
30897         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
30898         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
30899         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
30900         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
30901         * modules/unictype/bidicategory-name-tests (Files): Likewise.
30902         * modules/unictype/bidicategory-of-tests (Files): Likewise.
30903         * modules/unictype/bidicategory-test-tests (Files): Likewise.
30904         * modules/unictype/block-list-tests (Files): Likewise.
30905         * modules/unictype/block-of-tests (Files): Likewise.
30906         * modules/unictype/block-test-tests (Files): Likewise.
30907         * modules/unictype/category-C-tests (Files): Likewise.
30908         * modules/unictype/category-Cc-tests (Files): Likewise.
30909         * modules/unictype/category-Cf-tests (Files): Likewise.
30910         * modules/unictype/category-Cn-tests (Files): Likewise.
30911         * modules/unictype/category-Co-tests (Files): Likewise.
30912         * modules/unictype/category-Cs-tests (Files): Likewise.
30913         * modules/unictype/category-L-tests (Files): Likewise.
30914         * modules/unictype/category-Ll-tests (Files): Likewise.
30915         * modules/unictype/category-Lm-tests (Files): Likewise.
30916         * modules/unictype/category-Lo-tests (Files): Likewise.
30917         * modules/unictype/category-Lt-tests (Files): Likewise.
30918         * modules/unictype/category-Lu-tests (Files): Likewise.
30919         * modules/unictype/category-M-tests (Files): Likewise.
30920         * modules/unictype/category-Mc-tests (Files): Likewise.
30921         * modules/unictype/category-Me-tests (Files): Likewise.
30922         * modules/unictype/category-Mn-tests (Files): Likewise.
30923         * modules/unictype/category-N-tests (Files): Likewise.
30924         * modules/unictype/category-Nd-tests (Files): Likewise.
30925         * modules/unictype/category-Nl-tests (Files): Likewise.
30926         * modules/unictype/category-No-tests (Files): Likewise.
30927         * modules/unictype/category-P-tests (Files): Likewise.
30928         * modules/unictype/category-Pc-tests (Files): Likewise.
30929         * modules/unictype/category-Pd-tests (Files): Likewise.
30930         * modules/unictype/category-Pe-tests (Files): Likewise.
30931         * modules/unictype/category-Pf-tests (Files): Likewise.
30932         * modules/unictype/category-Pi-tests (Files): Likewise.
30933         * modules/unictype/category-Po-tests (Files): Likewise.
30934         * modules/unictype/category-Ps-tests (Files): Likewise.
30935         * modules/unictype/category-S-tests (Files): Likewise.
30936         * modules/unictype/category-Sc-tests (Files): Likewise.
30937         * modules/unictype/category-Sk-tests (Files): Likewise.
30938         * modules/unictype/category-Sm-tests (Files): Likewise.
30939         * modules/unictype/category-So-tests (Files): Likewise.
30940         * modules/unictype/category-Z-tests (Files): Likewise.
30941         * modules/unictype/category-Zl-tests (Files): Likewise.
30942         * modules/unictype/category-Zp-tests (Files): Likewise.
30943         * modules/unictype/category-Zs-tests (Files): Likewise.
30944         * modules/unictype/category-and-not-tests (Files): Likewise.
30945         * modules/unictype/category-and-tests (Files): Likewise.
30946         * modules/unictype/category-byname-tests (Files): Likewise.
30947         * modules/unictype/category-name-tests (Files): Likewise.
30948         * modules/unictype/category-none-tests (Files): Likewise.
30949         * modules/unictype/category-of-tests (Files): Likewise.
30950         * modules/unictype/category-or-tests (Files): Likewise.
30951         * modules/unictype/category-test-withtable-tests (Files): Likewise.
30952         * modules/unictype/combining-class-tests (Files): Likewise.
30953         * modules/unictype/ctype-alnum-tests (Files): Likewise.
30954         * modules/unictype/ctype-alpha-tests (Files): Likewise.
30955         * modules/unictype/ctype-blank-tests (Files): Likewise.
30956         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
30957         * modules/unictype/ctype-digit-tests (Files): Likewise.
30958         * modules/unictype/ctype-graph-tests (Files): Likewise.
30959         * modules/unictype/ctype-lower-tests (Files): Likewise.
30960         * modules/unictype/ctype-print-tests (Files): Likewise.
30961         * modules/unictype/ctype-punct-tests (Files): Likewise.
30962         * modules/unictype/ctype-space-tests (Files): Likewise.
30963         * modules/unictype/ctype-upper-tests (Files): Likewise.
30964         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
30965         * modules/unictype/decimal-digit-tests (Files): Likewise.
30966         * modules/unictype/digit-tests (Files): Likewise.
30967         * modules/unictype/mirror-tests (Files): Likewise.
30968         * modules/unictype/numeric-tests (Files): Likewise.
30969         * modules/unictype/property-alphabetic-tests (Files): Likewise.
30970         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
30971         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
30972         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
30973         Likewise.
30974         * modules/unictype/property-bidi-block-separator-tests (Files):
30975         Likewise.
30976         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
30977         Likewise.
30978         * modules/unictype/property-bidi-common-separator-tests (Files):
30979         Likewise.
30980         * modules/unictype/property-bidi-control-tests (Files): Likewise.
30981         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
30982         Likewise.
30983         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
30984         Likewise.
30985         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
30986         Likewise.
30987         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
30988         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
30989         Likewise.
30990         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
30991         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
30992         Likewise.
30993         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
30994         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
30995         * modules/unictype/property-bidi-segment-separator-tests (Files):
30996         Likewise.
30997         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
30998         * modules/unictype/property-byname-tests (Files): Likewise.
30999         * modules/unictype/property-combining-tests (Files): Likewise.
31000         * modules/unictype/property-composite-tests (Files): Likewise.
31001         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
31002         * modules/unictype/property-dash-tests (Files): Likewise.
31003         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
31004         * modules/unictype/property-default-ignorable-code-point-tests (Files):
31005         Likewise.
31006         * modules/unictype/property-deprecated-tests (Files): Likewise.
31007         * modules/unictype/property-diacritic-tests (Files): Likewise.
31008         * modules/unictype/property-extender-tests (Files): Likewise.
31009         * modules/unictype/property-format-control-tests (Files): Likewise.
31010         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
31011         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
31012         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
31013         * modules/unictype/property-hex-digit-tests (Files): Likewise.
31014         * modules/unictype/property-hyphen-tests (Files): Likewise.
31015         * modules/unictype/property-id-continue-tests (Files): Likewise.
31016         * modules/unictype/property-id-start-tests (Files): Likewise.
31017         * modules/unictype/property-ideographic-tests (Files): Likewise.
31018         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
31019         * modules/unictype/property-ids-trinary-operator-tests (Files):
31020         Likewise.
31021         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
31022         * modules/unictype/property-iso-control-tests (Files): Likewise.
31023         * modules/unictype/property-join-control-tests (Files): Likewise.
31024         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
31025         * modules/unictype/property-line-separator-tests (Files): Likewise.
31026         * modules/unictype/property-logical-order-exception-tests (Files):
31027         Likewise.
31028         * modules/unictype/property-lowercase-tests (Files): Likewise.
31029         * modules/unictype/property-math-tests (Files): Likewise.
31030         * modules/unictype/property-non-break-tests (Files): Likewise.
31031         * modules/unictype/property-not-a-character-tests (Files): Likewise.
31032         * modules/unictype/property-numeric-tests (Files): Likewise.
31033         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
31034         * modules/unictype/property-other-default-ignorable-code-point-tests
31035         (Files): Likewise.
31036         * modules/unictype/property-other-grapheme-extend-tests (Files):
31037         Likewise.
31038         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
31039         * modules/unictype/property-other-id-start-tests (Files): Likewise.
31040         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
31041         * modules/unictype/property-other-math-tests (Files): Likewise.
31042         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
31043         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
31044         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
31045         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
31046         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
31047         * modules/unictype/property-private-use-tests (Files): Likewise.
31048         * modules/unictype/property-punctuation-tests (Files): Likewise.
31049         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
31050         * modules/unictype/property-radical-tests (Files): Likewise.
31051         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
31052         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
31053         * modules/unictype/property-space-tests (Files): Likewise.
31054         * modules/unictype/property-terminal-punctuation-tests (Files):
31055         Likewise.
31056         * modules/unictype/property-test-tests (Files): Likewise.
31057         * modules/unictype/property-titlecase-tests (Files): Likewise.
31058         * modules/unictype/property-unassigned-code-value-tests (Files):
31059         Likewise.
31060         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
31061         * modules/unictype/property-uppercase-tests (Files): Likewise.
31062         * modules/unictype/property-variation-selector-tests (Files): Likewise.
31063         * modules/unictype/property-white-space-tests (Files): Likewise.
31064         * modules/unictype/property-xid-continue-tests (Files): Likewise.
31065         * modules/unictype/property-xid-start-tests (Files): Likewise.
31066         * modules/unictype/property-zero-width-tests (Files): Likewise.
31067         * modules/unictype/scripts-tests (Files): Likewise.
31068         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
31069         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
31070         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
31071         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
31072         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
31073         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
31074         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
31075         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
31076         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
31077         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
31078         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
31079         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
31080         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
31081         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
31082         * modules/uninorm/composition-tests (Files): Likewise.
31083         * modules/uninorm/decomposing-form-tests (Files): Likewise.
31084         * modules/uninorm/decomposition-tests (Files): Likewise.
31085         * modules/uninorm/filter-tests (Files): Likewise.
31086         * modules/uninorm/nfc-tests (Files): Likewise.
31087         * modules/uninorm/nfd-tests (Files): Likewise.
31088         * modules/uninorm/nfkc-tests (Files): Likewise.
31089         * modules/uninorm/nfkd-tests (Files): Likewise.
31090         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
31091         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
31092         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
31093         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
31094         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
31095         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
31096         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
31097         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
31098         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
31099         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
31100         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
31101         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
31102         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
31103         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
31104         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
31105         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
31106         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
31107         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
31108         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
31109         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
31110         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
31111         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
31112         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
31113         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
31114         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
31115         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
31116         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
31117         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
31118         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
31119         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
31120         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
31121         * modules/uniwidth/u8-width-tests (Files): Likewise.
31122         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
31123         * modules/uniwidth/u16-width-tests (Files): Likewise.
31124         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
31125         * modules/uniwidth/u32-width-tests (Files): Likewise.
31126         * modules/uniwidth/width-tests (Files): Likewise.
31127         * modules/unlink-tests (Files): Likewise.
31128         * modules/unsetenv-tests (Files): Likewise.
31129         * modules/usleep-tests (Files): Likewise.
31130         * modules/utimens-tests (Files): Likewise.
31131         * modules/utimensat-tests (Files): Likewise.
31132         * modules/vasnprintf-posix-tests (Files): Likewise.
31133         * modules/vasnprintf-tests (Files): Likewise.
31134         * modules/vasprintf-posix-tests (Files): Likewise.
31135         * modules/vasprintf-tests (Files): Likewise.
31136         * modules/vdprintf-posix-tests (Files): Likewise.
31137         * modules/vfprintf-posix-tests (Files): Likewise.
31138         * modules/vprintf-posix-tests (Files): Likewise.
31139         * modules/vsnprintf-posix-tests (Files): Likewise.
31140         * modules/vsnprintf-tests (Files): Likewise.
31141         * modules/vsprintf-posix-tests (Files): Likewise.
31142         * modules/wcrtomb-tests (Files): Likewise.
31143         * modules/wcsnrtombs-tests (Files): Likewise.
31144         * modules/wcsrtombs-tests (Files): Likewise.
31145         * modules/wctype-tests (Files): Likewise.
31146         * modules/wcwidth-tests (Files): Likewise.
31147         * modules/xmemdup0-tests (Files): Likewise.
31148         * modules/xprintf-posix-tests (Files): Likewise.
31149         * modules/xvasprintf-tests (Files): Likewise.
31150
31151 2009-12-24  Eric Blake  <ebb9@byu.net>
31152
31153         test-nanosleep: fix typo
31154         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
31155         patch.
31156         Reported by Bruno Haible.
31157
31158 2009-12-24  Bruno Haible  <bruno@clisp.org>
31159
31160         Reduce namespace pollution on glibc systems.
31161         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
31162         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
31163         systems.
31164         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
31165         <getopt.h> on glibc systems.
31166         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
31167         systems.
31168         * lib/fcntl.c: Include <unistd.h> here instead.
31169
31170 2009-12-24  Bruno Haible  <bruno@clisp.org>
31171
31172         * lib/stdlib.in.h (includes): Fix typo in today's commit.
31173
31174 2009-12-24  Eric Blake  <ebb9@byu.net>
31175
31176         tests: add signature checks
31177         * tests/signature.h (SIGNATURE_CHECK): New file.
31178         * modules/atexit-tests (Files): Use it.
31179         * modules/btowc-tests (Files): Likewise.
31180         * modules/canonicalize-lgpl-tests (Files): Likewise.
31181         * modules/ceilf-tests (Files): Likewise.
31182         * modules/ceill-tests (Files): Likewise.
31183         * modules/chown-tests (Files): Likewise.
31184         * modules/dprintf-posix-tests (Files): Likewise.
31185         * modules/dup2-tests (Files): Likewise.
31186         * modules/dup3-tests (Files): Likewise.
31187         * modules/duplocale-tests (Files): Likewise.
31188         * modules/fchdir-tests (Files): Likewise.
31189         * modules/fcntl-tests (Files): Likewise.
31190         * modules/fdopendir-tests (Files): Likewise.
31191         * modules/fflush-tests (Files): Likewise.
31192         * modules/flock-tests (Files): Likewise.
31193         * modules/floorf-tests (Files): Likewise.
31194         * modules/floorl-tests (Files): Likewise.
31195         * modules/fnmatch-tests (Files): Likewise.
31196         * modules/fopen-tests (Files): Likewise.
31197         * modules/fprintf-posix-tests (Files): Likewise.
31198         * modules/freopen-tests (Files): Likewise.
31199         * modules/frexp-nolibm-tests (Files): Likewise.
31200         * modules/frexp-tests (Files): Likewise.
31201         * modules/frexpl-nolibm-tests (Files): Likewise.
31202         * modules/frexpl-tests (Files): Likewise.
31203         * modules/fseek-tests (Files): Likewise.
31204         * modules/fseeko-tests (Files): Likewise.
31205         * modules/fsync-tests (Files): Likewise.
31206         * modules/ftell-tests (Files): Likewise.
31207         * modules/ftello-tests (Files): Likewise.
31208         * modules/futimens-tests (Files): Likewise.
31209         * modules/getaddrinfo-tests (Files): Likewise.
31210         * modules/getcwd-tests (Files): Likewise.
31211         * modules/getdelim-tests (Files): Likewise.
31212         * modules/getdtablesize-tests (Files): Likewise.
31213         * modules/getgroups-tests (Files): Likewise.
31214         * modules/gethostname-tests (Files): Likewise.
31215         * modules/getline-tests (Files): Likewise.
31216         * modules/getopt-posix-tests (Files): Likewise.
31217         * modules/gettimeofday-tests (Files): Likewise.
31218         * modules/glob-tests (Files): Likewise.
31219         * modules/iconv-tests (Files): Likewise.
31220         * modules/inet_ntop-tests (Files): Likewise.
31221         * modules/inet_pton-tests (Files): Likewise.
31222         * modules/isblank-tests (Files): Likewise.
31223         * modules/lchown-tests (Files): Likewise.
31224         * modules/ldexpl-tests (Files): Likewise.
31225         * modules/link-tests (Files): Likewise.
31226         * modules/linkat-tests (Files): Likewise.
31227         * modules/lseek-tests (Files): Likewise.
31228         * modules/lstat-tests (Files): Likewise.
31229         * modules/mbrtowc-tests (Files): Likewise.
31230         * modules/mbsinit-tests (Files): Likewise.
31231         * modules/mbsnrtowcs-tests (Files): Likewise.
31232         * modules/mbsrtowcs-tests (Files): Likewise.
31233         * modules/memchr-tests (Files): Likewise.
31234         * modules/memcmp-tests (Files): Likewise.
31235         * modules/memmem-tests (Files): Likewise.
31236         * modules/memrchr-tests (Files): Likewise.
31237         * modules/mkdir-tests (Files): Likewise.
31238         * modules/mkfifo-tests (Files): Likewise.
31239         * modules/mkfifoat-tests (Files): Likewise.
31240         * modules/mknod-tests (Files): Likewise.
31241         * modules/nanosleep-tests (Files): Likewise.
31242         * modules/nl_langinfo-tests (Files): Likewise.
31243         * modules/obstack-printf-tests (Files): Likewise.
31244         * modules/open-tests (Files): Likewise.
31245         * modules/openat-tests (Files): Likewise.
31246         * modules/perror-tests (Files): Likewise.
31247         * modules/pipe2-tests (Files): Likewise.
31248         * modules/poll-tests (Files): Likewise.
31249         * modules/popen-tests (Files): Likewise.
31250         * modules/posix_spawn-tests (Files): Likewise.
31251         * modules/posix_spawnp-tests (Files): Likewise.
31252         * modules/pread-tests (Files): Likewise.
31253         * modules/printf-posix-tests (Files): Likewise.
31254         * modules/pty-tests (Files): Likewise.
31255         * modules/random_r-tests (Files): Likewise.
31256         * modules/rawmemchr-tests (Files): Likewise.
31257         * modules/readlink-tests (Files): Likewise.
31258         * modules/remove-tests (Files): Likewise.
31259         * modules/rename-tests (Files): Likewise.
31260         * modules/renameat-tests (Files): Likewise.
31261         * modules/rmdir-tests (Files): Likewise.
31262         * modules/round-tests (Files): Likewise.
31263         * modules/roundf-tests (Files): Likewise.
31264         * modules/roundl-tests (Files): Likewise.
31265         * modules/select-tests (Files): Likewise.
31266         * modules/setenv-tests (Files): Likewise.
31267         * modules/sigaction-tests (Files): Likewise.
31268         * modules/sleep-tests (Files): Likewise.
31269         * modules/snprintf-posix-tests (Files): Likewise.
31270         * modules/snprintf-tests (Files): Likewise.
31271         * modules/sprintf-posix-tests (Files): Likewise.
31272         * modules/stat-tests (Files): Likewise.
31273         * modules/strcasestr-tests (Files): Likewise.
31274         * modules/strchrnul-tests (Files): Likewise.
31275         * modules/strerror-tests (Files): Likewise.
31276         * modules/strsignal-tests (Files): Likewise.
31277         * modules/strstr-tests (Files): Likewise.
31278         * modules/strtod-tests (Files): Likewise.
31279         * modules/strverscmp-tests (Files): Likewise.
31280         * modules/symlink-tests (Files): Likewise.
31281         * modules/symlinkat-tests (Files): Likewise.
31282         * modules/times-tests (Files): Likewise.
31283         * modules/trunc-tests (Files): Likewise.
31284         * modules/truncf-tests (Files): Likewise.
31285         * modules/truncl-tests (Files): Likewise.
31286         * modules/tsearch-tests (Files): Likewise.
31287         * modules/uname-tests (Files): Likewise.
31288         * modules/unlink-tests (Files): Likewise.
31289         * modules/unsetenv-tests (Files): Likewise.
31290         * modules/usleep-tests (Files): Likewise.
31291         * modules/utimensat-tests (Files): Likewise.
31292         * modules/vasprintf-tests (Files): Likewise.
31293         * modules/vdprintf-posix-tests (Files): Likewise.
31294         * modules/vfprintf-posix-tests (Files): Likewise.
31295         * modules/vprintf-posix-tests (Files): Likewise.
31296         * modules/vsnprintf-posix-tests (Files): Likewise.
31297         * modules/vsnprintf-tests (Files): Likewise.
31298         * modules/vsprintf-posix-tests (Files): Likewise.
31299         * modules/wcrtomb-tests (Files): Likewise.
31300         * modules/wcsnrtombs-tests (Files): Likewise.
31301         * modules/wcsrtombs-tests (Files): Likewise.
31302         * modules/wcwidth-tests (Files): Likewise.
31303         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
31304         * tests/test-isinf.c (isinf): Likewise.
31305         * tests/test-isnan.c (isnan): Likewise.
31306         * tests/test-signbit.c (signbit): Likewise.
31307         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
31308         declaration, either as macro or with correct signature.
31309         (select): Ensure function under test is declared with correct
31310         signature in correct header.
31311         * tests/test-atexit.c (atexit): Likewise.
31312         * tests/test-btowc.c (btowc): Likewise.
31313         * tests/test-canonicalize-lgpl.c (realpath)
31314         (canonicalize_file_name): Likewise.
31315         * tests/test-ceilf1.c (ceilf): Likewise.
31316         * tests/test-ceill.c (ceill): Likewise.
31317         * tests/test-chown.c (chown): Likewise.
31318         * tests/test-dprintf-posix.c (dprintf): Likewise.
31319         * tests/test-dup2.c (dup2): Likewise.
31320         * tests/test-dup3.c (dup3): Likewise.
31321         * tests/test-duplocale.c (duplocale): Likewise.
31322         * tests/test-fchdir.c (fchdir): Likewise.
31323         * tests/test-fchownat.c (fchownat): Likewise.
31324         * tests/test-fcntl.c (fcntl): Likewise.
31325         * tests/test-fdopendir.c (fdopendir): Likewise.
31326         * tests/test-fflush.c (fflush): Likewise.
31327         * tests/test-flock.c (flock): Likewise.
31328         * tests/test-floorf1.c (floorf): Likewise.
31329         * tests/test-floorl.c (floorl): Likewise.
31330         * tests/test-fnmatch.c (fnmatch): Likewise.
31331         * tests/test-fopen.c (fopen): Likewise.
31332         * tests/test-fprintf-posix.c (fprintf): Likewise.
31333         * tests/test-freopen.c (freopen): Likewise.
31334         * tests/test-frexp.c (frexp): Likewise.
31335         * tests/test-frexpl.c (frexpl): Likewise.
31336         * tests/test-fseek.c (fseek): Likewise.
31337         * tests/test-fseeko.c (fseeko): Likewise.
31338         * tests/test-fstatat.c (fstatat): Likewise.
31339         * tests/test-fsync.c (fsync): Likewise.
31340         * tests/test-ftell.c (ftell): Likewise.
31341         * tests/test-ftello.c (ftello): Likewise.
31342         * tests/test-futimens.c (futimens): Likewise.
31343         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
31344         (gai_strerror): Likewise.
31345         * tests/test-getcwd.c (getcwd): Likewise.
31346         * tests/test-getdelim.c (getdelim): Likewise.
31347         * tests/test-getdtablesize.c (getdtablesize): Likewise.
31348         * tests/test-getgroups.c (getgroups): Likewise.
31349         * tests/test-gethostname.c (gethostname): Likewise.
31350         * tests/test-getline.c (getline): Likewise.
31351         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
31352         Likewise.
31353         * tests/test-gettimeofday.c (gettimeofday): Likewise.
31354         * tests/test-glob.c (glob, globfree): Likewise.
31355         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
31356         * tests/test-inet_ntop.c (inet_ntop): Likewise.
31357         * tests/test-inet_pton.c (inet_pton): Likewise.
31358         * tests/test-isblank.c (isblank): Likewise.
31359         * tests/test-lchown.c (lchown): Likewise.
31360         * tests/test-ldexpl.c (ldexpl): Likewise.
31361         * tests/test-link.c (link): Likewise.
31362         * tests/test-linkat.c (linkat): Likewise.
31363         * tests/test-lseek.c (lseek): Likewise.
31364         * tests/test-lstat.c (lstat): Likewise.
31365         * tests/test-mbrtowc.c (mbrtowc): Likewise.
31366         * tests/test-mbsinit.c (mbsinit): Likewise.
31367         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
31368         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
31369         * tests/test-memchr.c (memchr): Likewise.
31370         * tests/test-memcmp.c (memcmp): Likewise.
31371         * tests/test-memmem.c (memmem): Likewise.
31372         * tests/test-memrchr.c (memrchr): Likewise.
31373         * tests/test-mkdir.c (mkdir): Likewise.
31374         * tests/test-mkdirat.c (mkdirat): Likewise.
31375         * tests/test-mkfifo.c (mkfifo): Likewise.
31376         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
31377         * tests/test-mknod.c (mknod): Likewise.
31378         * tests/test-nanosleep.c (nanosleep): Likewise.
31379         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
31380         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
31381         Likewise.
31382         * tests/test-open.c (open): Likewise.
31383         * tests/test-openat.c (openat): Likewise.
31384         * tests/test-perror.c (perror): Likewise.
31385         * tests/test-pipe2.c (pipe2): Likewise.
31386         * tests/test-poll.c (poll): Likewise.
31387         * tests/test-popen.c (popen, pclose): Likewise.
31388         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
31389         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
31390         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
31391         (posix_spawn_file_actions_destroy)
31392         (posix_spawn_file_actions_addclose)
31393         (posix_spawn_file_actions_addopen)
31394         (posix_spawn_file_actions_adddup2): Likewise.
31395         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
31396         * tests/test-pread.c (pread): Likewise.
31397         * tests/test-printf-posix.c (printf): Likewise.
31398         * tests/test-pty.c (openpty, forkpty): Likewise.
31399         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
31400         (random_r): Likewise.
31401         * tests/test-rawmemchr.c (rawmemchr): Likewise.
31402         * tests/test-readlink.c (readlink): Likewise.
31403         * tests/test-remove.c (remove): Likewise.
31404         * tests/test-rename.c (rename): Likewise.
31405         * tests/test-renameat.c (renameat): Likewise.
31406         * tests/test-rmdir.c (rmdir): Likewise.
31407         * tests/test-round1.c (round): Likewise.
31408         * tests/test-roundf1.c (roundf): Likewise.
31409         * tests/test-roundl.c (roundl): Likewise.
31410         * tests/test-setenv.c (setenv): Likewise.
31411         * tests/test-sigaction.c (sigaction): Likewise.
31412         * tests/test-sleep.c (sleep): Likewise.
31413         * tests/test-snprintf.c (snprintf): Likewise.
31414         * tests/test-sprintf-posix.c (sprintf): Likewise.
31415         * tests/test-stat.c (stat): Likewise.
31416         * tests/test-stpncpy.c (stpncpy): Likewise.
31417         * tests/test-strcasestr.c (strcasestr): Likewise.
31418         * tests/test-strchrnul.c (strchrnul): Likewise.
31419         * tests/test-strerror.c (strerror): Likewise.
31420         * tests/test-strsignal.c (strsignal): Likewise.
31421         * tests/test-strstr.c (strstr): Likewise.
31422         * tests/test-strtod.c (strtod): Likewise.
31423         * tests/test-strverscmp.c (strverscmp): Likewise.
31424         * tests/test-symlink.c (symlink): Likewise.
31425         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
31426         * tests/test-times.c (times): Likewise.
31427         * tests/test-trunc1.c (trunc): Likewise.
31428         * tests/test-truncf1.c (truncf): Likewise.
31429         * tests/test-truncl.c (truncl): Likewise.
31430         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
31431         Likewise.
31432         * tests/test-uname.c (uname): Likewise.
31433         * tests/test-unlink.c (unlink): Likewise.
31434         * tests/test-unlinkat.c (unlinkat): Likewise.
31435         * tests/test-unsetenv.c (unsetenv): Likewise.
31436         * tests/test-usleep.c (usleep): Likewise.
31437         * tests/test-utimensat.c (utimensat): Likewise.
31438         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
31439         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
31440         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
31441         * tests/test-vprintf-posix.c (vprintf): Likewise.
31442         * tests/test-vsnprintf.c (vsnprintf): Likewise.
31443         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
31444         * tests/test-wcrtomb.c (wcrtomb): Likewise.
31445         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
31446         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
31447         * tests/test-wcwidth.c (wcwidth): Likewise.
31448
31449         build: pull in conditional headers during GNULIB_POSIXCHECK
31450         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
31451         definitions from any conditionally-included headers.
31452         * lib/stdlib.in.h (includes): Likewise.
31453         * lib/unistd.in.h (includes): Likewise.
31454
31455 2009-12-24  Bruno Haible  <bruno@clisp.org>
31456
31457         * tests/test-argv-iter.c: Include header file being tested immediately
31458         after config.h.
31459         * tests/test-base64.c: Likewise.
31460         * tests/test-flock.c: Likewise.
31461         * tests/test-fsync.c: Likewise.
31462         * tests/test-getdate.c: Likewise.
31463         * tests/test-getndelim2.c: Likewise.
31464         * tests/test-isfinite.c: Likewise.
31465         * tests/test-isinf.c: Likewise.
31466         * tests/test-strerror.c: Likewise.
31467         * tests/test-strsignal.c: Likewise.
31468
31469 2009-12-23  Eric Blake  <ebb9@byu.net>
31470
31471         unistd: work around cygwin bug
31472         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
31473         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
31474         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31475
31476 2009-12-23  Bruno Haible  <bruno@clisp.org>
31477
31478         localename: More tests.
31479         * tests/test-localename.c (SIZEOF): New macro.
31480         (categories): New variable.
31481         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
31482         test_locale_name_default): Add test w.r.t. thread locale.
31483         (test_locale_name_thread): New function.
31484         (main): Invoke it.
31485
31486         localename: Make aware of thread locale.
31487         * lib/localename.h (gl_locale_name_thread): New declaration.
31488         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
31489         behaviour with respect to thread locale.
31490         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
31491         <langinfo.h>, glthread/lock.h.
31492         (SIZE_BITS): New macro.
31493         (string_hash): New function.
31494         (struct hash_node): New type.
31495         (HASH_TABLE_SIZE): New macro.
31496         (struniq_hash_table, struniq_lock): New variables.
31497         (struniq): New function.
31498         (gl_locale_name_thread): New function.
31499         (gl_locale_name): Invoke it.
31500         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
31501         * modules/localename (Depends-on): Add lock.
31502         Reported by Mike Gran <spk121@yahoo.com>.
31503
31504 2009-12-23  Eric Blake  <ebb9@byu.net>
31505
31506         va-args: new module
31507         * modules/va-args: New file.
31508         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
31509         * MODULES.html.sh (Core language properties): Mention it.
31510
31511         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
31512         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
31513         named alias for __attribute__((__unused__)).
31514         * lib/chown.c: Update client.
31515         * lib/fchmodat.c: Likewise.
31516         * lib/fts.c: Likewise.
31517         * lib/getdate.y: Likewise.
31518         * lib/getgroups.c: Likewise.
31519         * lib/getopt.c: Likewise.
31520         * lib/getugroups.c: Likewise.
31521         * lib/mkdir.c: Likewise.
31522         * lib/mkfifo.c: Likewise.
31523         * lib/mkfifoat.c: Likewise.
31524         * lib/mknod.c: Likewise.
31525         * lib/mknodat.c: Likewise.
31526         * lib/readlink.c: Likewise.
31527         * lib/se-context.in.h: Likewise.
31528         * lib/se-selinux.in.h: Likewise.
31529         * lib/sockets.c: Likewise.
31530         * lib/symlink.c: Likewise.
31531         * lib/symlinkat.c: Likewise.
31532         * lib/unicodeio.c: Likewise.
31533         * lib/unistr.h: Likewise.
31534         * tests/test-areadlink.c: Likewise.
31535         * tests/test-areadlinkat.c: Likewise.
31536         * tests/test-filenamecat.c: Likewise.
31537         * tests/test-fseeko.c: Likewise.
31538         * tests/test-ftello.c: Likewise.
31539         * tests/test-getdate.c: Likewise.
31540         * tests/test-getgroups.c: Likewise.
31541         * tests/test-gethostname.c: Likewise.
31542         * tests/test-quotearg.c: Likewise.
31543         * tests/test-version-etc.c: Likewise.
31544         * tests/test-xalloc-die.c: Likewise.
31545         * tests/test-xfprintf-posix.c: Likewise.
31546         * tests/test-xprintf-posix.c: Likewise.
31547         * tests/test-xvasprintf.c: Likewise.
31548
31549         tests: avoid compiler warnings
31550         * tests/test-fcntl.c (main): Delete unused parameters.
31551         * tests/test-freopen-safer.c (main): Likewise.
31552         * tests/test-xalloc-die.c (main): Mark unused parameters.
31553         * tests/test-fseeko.c (main): Likewise.
31554         * tests/test-ftello.c (main): Likewise.
31555         * tests/test-nanosleep.c (main): Avoid declaration warning.
31556         * tests/test-sleep.c (main): Likewise.
31557         * tests/test-unsetenv.c (main): Silence warning about string
31558         literal.
31559         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31560
31561 2009-12-23  Bruno Haible  <bruno@clisp.org>
31562
31563         * tests/test-localename.c (test_locale_name): New function, extracted
31564         from main. Also test mixed situations.
31565         (test_locale_name_posix, test_locale_name_environ,
31566         test_locale_name_default): New functions.
31567         (main): Invoke them all.
31568         * modules/localename-tests (configure.ac): Test for newlocale.
31569
31570 2009-12-23  Bruno Haible  <bruno@clisp.org>
31571
31572         unistd: Ensure getcwd gets declared before being overridden.
31573         * lib/unistd.in.h: Conditionally include <io.h>.
31574
31575 2009-12-22  Bruno Haible  <bruno@clisp.org>
31576
31577         wchar: Diagnose broken combination of glibc and gcc versions and flags.
31578         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
31579         (gl_WCHAR_H): Invoke it.
31580         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
31581         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
31582         Reported by Karl Berry <karl@freefriends.org>.
31583
31584 2009-12-22  Eric Blake  <ebb9@byu.net>
31585
31586         math, unistd: avoid redundant includes
31587         * lib/math.in.h (isnan): No need to re-include <math.h>.
31588         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
31589
31590         getsubopt: work around cygwin bug
31591         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
31592         avoid conflicting with system getsubopt.
31593         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
31594         bug.
31595
31596         getopt: synchronize from glibc
31597         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
31598         parameter order.  Adjust all callers.
31599         (_getopt_internal_r, main): Adjust quoting in error messages.
31600         Drop considerations for outdated POSIX 1003.2 error message.
31601         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
31602         callers.
31603         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
31604
31605         test-getopt: test stderr behavior
31606         * modules/getopt-posix-tests (Depends-on): Add dup2.
31607         * tests/test-getopt.c (ASSERT): Avoid stderr.
31608         (main): Move stderr to a temporary file.
31609         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
31610         Instead, add parameter to inform caller if output occurred.
31611         (test_getopt): Adjust all existing tests to expect silence, and
31612         add new tests of leading ":".
31613         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31614         glibc shortcomings with leading "-:" or "+:" in optstring.
31615         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31616         Likewise.
31617         * doc/posix-functions/getopt.texi (getopt): Likewise.
31618
31619         test-getopt: enhance test
31620         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
31621         supports optind=0.
31622         * tests/test-getopt.c (OPTIND_MIN): Move...
31623         * tests/test-getopt.h (OPTIND_MIN): ...here.
31624         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
31625         Require that optind=0 works, since modern BSD supports it in
31626         addition to optreset, and since coreutils expects it.
31627         (test_getopt_long_only): New test.
31628         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31629         glibc shortcomings with 'W;', and enforcement of optind=0.
31630         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31631         Likewise.
31632
31633 2009-12-21  Bruno Haible  <bruno@clisp.org>
31634
31635         localename: Improvements for MacOS X and Cygwin.
31636         * lib/localename.h (gl_locale_name_environ): New declaration.
31637         * lib/localename.c (gl_locale_name_environ): New function, extracted from
31638         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
31639         (gl_locale_name_posix): Invoke it.
31640         (gl_locale_name_default): Add comments. Use Windows native API also on
31641         Cygwin.
31642
31643 2009-12-21  Bruno Haible  <bruno@clisp.org>
31644
31645         Update list of Win32 locale ids.
31646         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
31647         (LANG_SAMI): Renamed from LANG_SAAMI.
31648         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
31649         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
31650         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
31651         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
31652         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
31653         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
31654         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
31655         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
31656         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
31657         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
31658         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
31659         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
31660         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
31661         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
31662         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
31663         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
31664         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
31665         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
31666         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
31667         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
31668         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
31669         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
31670         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
31671         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
31672         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
31673         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
31674         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
31675         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
31676         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
31677         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
31678         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
31679         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
31680         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
31681         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
31682         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
31683         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
31684         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
31685         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
31686         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
31687         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
31688         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
31689         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
31690         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
31691         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
31692         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
31693         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
31694         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
31695         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
31696         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
31697         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
31698         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
31699         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
31700         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
31701         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
31702         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
31703         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
31704         Add more languages and countries for Sami, Sorbian. Add more countries
31705         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
31706         for Pashto. Change country for Syriac, Tswana.
31707
31708 2009-12-21  Eric Blake  <ebb9@byu.net>
31709
31710         test-utimens: avoid spurious failure
31711         * tests/test-chown.h (nap): Factor...
31712         * tests/nap.h: ...into new file.
31713         * tests/test-lchown.h (nap): Avoid duplication.
31714         * tests/test-utimens-common.h (nap): Use shared implementation,
31715         necessary on file systems with 1-second resolution.
31716         * modules/chown-tests (Files): Include new file.
31717         * modules/fdutimensat-tests (Files): Likewise.
31718         * modules/futimens-tests (Files): Likewise.
31719         * modules/lchown-tests (Files): Likewise.
31720         * modules/openat-tests (Files): Likewise.
31721         * modules/utimens-tests (Files): Likewise.
31722         * modules/utimensat-tests (Files): Likewise.
31723
31724 2009-12-19  Eric Blake  <ebb9@byu.net>
31725
31726         futimens, utimensat: work around Linux bug
31727         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
31728         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31729         * lib/utimensat.c (rpl_utimensat): Work around it.
31730         * lib/futimens.c (rpl_futimens): Adjust comment.
31731
31732         utimens: work around Linux ctime bug
31733         * lib/utimens.c (detect_ctime_bug): New helper function.
31734         (update_timespec): Differentiate between workaround needed for
31735         this bug vs. what is needed for systems that lack utimensat.
31736         (fdutimens, lutimens): Work around bug.
31737
31738         utimens: check for ctime update
31739         * tests/test-utimens-common.h (check_ctime): Define.
31740         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
31741         * tests/test-futimens.h (test_futimens): Likewise.
31742         * tests/test-lutimens.h (test_lutimens): Likewise.
31743         * doc/posix-functions/futimens.texi (futimens): Document the bug.
31744         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31745
31746 2009-12-19  Bruno Haible  <bruno@clisp.org>
31747
31748         dprintf-posix: Check against memory leak fixed on 2009-12-15.
31749         * tests/test-dprintf-posix2.sh: New file.
31750         * tests/test-dprintf-posix2.c: New file.
31751         * modules/dprintf-posix-tests (Files): Add them.
31752         (configure.ac): Check for getrlimit and setrlimit.
31753         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31754
31755 2009-12-19  Bruno Haible  <bruno@clisp.org>
31756
31757         fprintf-posix: Check against memory leak fixed on 2009-12-15.
31758         * tests/test-fprintf-posix3.sh: New file.
31759         * tests/test-fprintf-posix3.c: New file.
31760         * modules/fprintf-posix-tests (Files): Add them.
31761         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31762
31763 2009-12-19  Eric Blake  <ebb9@byu.net>
31764
31765         dirfd: fix prototype
31766         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
31767         * lib/dirfd.c (dirfd): Likewise.
31768
31769         canonicalize: reduce memory usage
31770         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
31771         allocation to size.
31772         Reported by Solar Designer <solar@openwall.com>.
31773
31774 2009-12-19  Bruno Haible  <bruno@clisp.org>
31775
31776         New module attribute 'Applicability'.
31777         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
31778         * gnulib-tool: New option --extract-applicability.
31779         (func_usage): Document it.
31780         (sed_extract_prog): Recognize it.
31781         (func_get_applicability): New function.
31782         (func_import): Generalize handling of 'link-warning' module.
31783         * modules/link-warning (Applicability): New section.
31784         * modules/arg-nonnull (Applicability): New section.
31785         Repoted by Simon Josefsson <simon@josefsson.org>.
31786
31787 2009-12-19  Bruno Haible  <bruno@clisp.org>
31788
31789         fflush: tweak
31790         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
31791         * lib/fseeko.c (rpl_fseeko): Likewise.
31792
31793 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
31794
31795         * lib/gl_list.h: Fix typo in comment.
31796
31797 2009-12-16  Eric Blake  <ebb9@byu.net>
31798
31799         fcntl: use to simplify other modules
31800         * modules/cloexec (Depends-on): Add fcntl.
31801         * modules/fchdir (Depends-on): Likewise.
31802         * modules/fd-safer-flag (Depends-on): Likewise.
31803         * modules/unistd-safer (Depends-on): Likewise.
31804         * modules/dup3 (configure.ac): Set module indicator.
31805         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
31806         missing.
31807         * lib/fchdir.c (_gl_register_dup): Fix comment.
31808         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
31809         * lib/dup-safer.c (dup_safer): Likewise.
31810         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
31811         * lib/dup3.c (dup3): Likewise.
31812         * tests/test-fchdir.c (main): Enhance test.
31813         Fixes a dup_cloexec bug reported by Ondřej Vašík.
31814
31815         fcntl: port portions of fcntl to mingw
31816         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
31817         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
31818         replacement for mingw.
31819         * modules/fcntl (Description): Update.
31820         (Depends-on): Add dup2.
31821         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
31822         * modules/fcntl-h (Makefile.am): Substitute it.
31823         * lib/fcntl.in.h (fcntl): Update declaration.
31824         (F_DUPFD, F_GETFD): New macros, when needed.
31825         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31826         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
31827         * tests/test-fcntl.c (check_flags, main): Enhance test for items
31828         we now guarantee.
31829
31830         fcntl: work around cygwin bug in F_DUPFD
31831         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
31832         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
31833         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
31834         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
31835         * doc/posix-functions/fcntl.texi (fcntl): Document it.
31836
31837         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
31838         * modules/fcntl (Files): List new files.
31839         (configure.ac): Run a test.
31840         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
31841         * lib/fcntl.c (rpl_fcntl): Likewise.
31842         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
31843         (gl_FCNTL_H): Always replace fcntl.h.
31844         * modules/fcntl-h (Makefile.am): Substitute witnesses.
31845         * lib/fcntl.in.h (fcntl): Declare replacement.
31846         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
31847         needed, plus a witness.
31848         * doc/posix-functions/fcntl.texi (fcntl): Document this.
31849         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
31850         * tests/test-fcntl.c: New file.
31851         * modules/fcntl-tests: Likewise.
31852
31853         binary-io: avoid potential compilation warning
31854         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
31855         directives.
31856
31857         fflush: avoid compilation error on NetBSD
31858         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
31859         between off_t and fpos_t, since the latter is sometimes a struct.
31860         * lib/fseeko.c (rpl_fseeko): Likewise.
31861         Reported by Alexander Nasonov <alnsn@yandex.ru>.
31862
31863 2009-12-15  Eric Blake  <ebb9@byu.net>
31864
31865         fcntl-h, stdio, sys_ioctl: fix declarations
31866         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
31867         function must not take arguments.
31868         * lib/sys_ioctl.in.h (ioctl): Likewise.
31869         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
31870         (open): Add a link warning.
31871
31872 2009-12-15  Jim Meyering  <meyering@redhat.com>
31873
31874         areadlink, areadlink-with-size: relax license to LGPLv2+
31875         * modules/areadlink (License): Relax to LGPLv2+.
31876         * modules/areadlink-with-size (License): Likewise.
31877
31878 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
31879             Bruno Haible  <bruno@clisp.org>
31880
31881         *printf: Fix memory leak.
31882         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
31883         * lib/vfprintf.c (vfprintf): Likewise.
31884         * lib/dprintf.c (dprintf): Likewise.
31885         * lib/vdprintf.c (vdprintf): Likewise.
31886
31887 2009-12-14  Eric Blake  <ebb9@byu.net>
31888
31889         accept4: adjust module dependencies
31890         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
31891
31892         utimens: one more try at avoiding compiler warning
31893         * lib/utimens.c (lutimens): Lower scope of result.
31894
31895 2009-12-13  Bruno Haible  <bruno@clisp.org>
31896
31897         Move the malloc checking from module 'list' to new module 'xlist'.
31898         * modules/xlist: New file.
31899         * lib/gl_xlist.h: New file.
31900         * lib/gl_xlist.c: New file.
31901         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
31902         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
31903         gl_list_add_last, gl_list_add_before, gl_list_add_after,
31904         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
31905         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
31906         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
31907         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
31908         gl_sortedlist_nx_add): New declarations.
31909         (struct gl_list_implementation): Rename and change methods accordingly.
31910         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
31911         (gl_list_nx_create): Renamed from gl_list_create.
31912         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31913         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31914         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31915         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31916         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31917         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31918         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31919         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31920         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
31921         gl_list_create_empty.
31922         (gl_list_nx_create): Renamed from gl_list_create.
31923         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31924         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31925         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31926         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31927         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31928         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31929         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31930         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31931         * lib/gl_array_list.c: Don't include xalloc.h.
31932         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
31933         NULL upon out-of-memory.
31934         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
31935         out-of-memory.
31936         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
31937         Change return type to 'int'.
31938         (gl_array_nx_set_at): Renamed from gl_array_set_at.
31939         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31940         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
31941         upon out-of-memory.
31942         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
31943         upon out-of-memory.
31944         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
31945         upon out-of-memory.
31946         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
31947         upon out-of-memory.
31948         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
31949         out-of-memory.
31950         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
31951         Update.
31952         (gl_array_list_implementation): Update.
31953         * lib/gl_carray_list.c: Don't include xalloc.h.
31954         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
31955         Return NULL upon out-of-memory.
31956         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
31957         out-of-memory.
31958         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
31959         Change return type to 'int'.
31960         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
31961         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31962         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
31963         upon out-of-memory.
31964         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
31965         upon out-of-memory.
31966         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
31967         out-of-memory.
31968         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
31969         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
31970         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
31971         Update.
31972         (gl_carray_list_implementation): Update.
31973         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
31974         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
31975         gl_linked_create_empty. Return NULL upon out-of-memory.
31976         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
31977         out-of-memory.
31978         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
31979         Change return type to 'int'. Return -1 upon out-of-memory.
31980         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
31981         out-of-memory.
31982         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
31983         upon out-of-memory.
31984         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
31985         upon out-of-memory.
31986         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
31987         NULL upon out-of-memory.
31988         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
31989         upon out-of-memory.
31990         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
31991         out-of-memory.
31992         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
31993         Update.
31994         * lib/gl_linked_list.c: Don't include xalloc.h.
31995         (gl_linked_list_implementation): Update.
31996         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
31997         (add_to_bucket): Change return type to 'int'.
31998         (gl_linkedhash_list_implementation): Update.
31999         * lib/gl_anytree_list1.h (free_subtree): New function.
32000         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
32001         gl_tree_create_empty. Return NULL upon out-of-memory.
32002         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
32003         Change return type to 'int'. Return -1 upon out-of-memory.
32004         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
32005         out-of-memory.
32006         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
32007         (gl_tree_remove_node): New function, moved here from
32008         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
32009         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
32010         Update.
32011         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
32012         malloc, not xmalloc. Return NULL upon out-of-memory.
32013         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
32014         out-of-memory.
32015         (gl_tree_remove_node_from_tree): New function, extracted from
32016         gl_tree_remove_node.
32017         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
32018         upon out-of-memory.
32019         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
32020         out-of-memory.
32021         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
32022         upon out-of-memory.
32023         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
32024         upon out-of-memory.
32025         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
32026         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
32027         not xmalloc. Return NULL upon out-of-memory.
32028         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
32029         out-of-memory.
32030         (gl_tree_remove_node_from_tree): New function, extracted from
32031         gl_tree_remove_node.
32032         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
32033         upon out-of-memory.
32034         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
32035         out-of-memory.
32036         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
32037         upon out-of-memory.
32038         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
32039         upon out-of-memory.
32040         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
32041         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
32042         gl_anytree_list1.h before gl_anyavltree_list2.h.
32043         (gl_avltree_list_implementation): Update.
32044         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
32045         gl_anytree_list1.h before gl_anyavltree_list2.h.
32046         (gl_rbtree_list_implementation): Update.
32047         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
32048         Change return type to 'int'. Return -1 upon out-of-memory. Use
32049         __builtin_expect.
32050         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
32051         (gl_avltreehash_list_implementation): Update.
32052         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
32053         (gl_rbtreehash_list_implementation): Update.
32054         * modules/array-list (Depends-on): Remove xalloc.
32055         * modules/carray-list (Depends-on): Likewise.
32056         * modules/linked-list (Depends-on): Likewise.
32057         * modules/linkedhash-list (Depends-on): Likewise.
32058         * modules/avltree-list (Depends-on): Likewise.
32059         * modules/rbtree-list (Depends-on): Likewise.
32060         * modules/avltreehash-list (Depends-on): Likewise.
32061         * modules/rbtreehash-list (Depends-on): Likewise.
32062
32063         * modules/xsublist: New file.
32064         * lib/gl_xsublist.h: New file.
32065         * lib/gl_xsublist.c: New file.
32066         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
32067         (gl_sublist_nx_create): New declaration.
32068         * lib/gl_sublist.c: Don't include xalloc.h.
32069         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
32070         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
32071         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
32072         Change return type to 'int'. Return -1 upon out-of-memory.
32073         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
32074         upon out-of-memory.
32075         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
32076         NULL upon out-of-memory.
32077         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
32078         upon out-of-memory.
32079         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
32080         NULL upon out-of-memory.
32081         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
32082         NULL upon out-of-memory.
32083         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
32084         upon out-of-memory.
32085         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
32086         (gl_sublist_list_implementation): Update.
32087         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
32088         upon out-of-memory.
32089         * modules/sublist (Depends-on): Remove xalloc.
32090
32091         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
32092         * tests/test-carray_list.c: Likewise.
32093         * tests/test-linked_list.c: Likewise.
32094         * tests/test-linkedhash_list.c: Likewise.
32095         * tests/test-avltree_list.c: Likewise.
32096         * tests/test-rbtree_list.c: Likewise.
32097         * tests/test-avltreehash_list.c: Likewise.
32098         * tests/test-rbtreehash_list.c: Likewise.
32099         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
32100         * modules/carray-list-tests (Makefile.am): Likewise.
32101         * modules/linked-list-tests (Makefile.am): Likewise.
32102         * modules/linkedhash-list-tests (Makefile.am): Likewise.
32103         * modules/avltree-list-tests (Makefile.am): Likewise.
32104         * modules/rbtree-list-tests (Makefile.am): Likewise.
32105         * modules/avltreehash-list-tests (Makefile.am): Likewise.
32106         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
32107
32108         * NEWS: Mention the changes.
32109
32110         * lib/clean-temp.c: Include gl_xlist.h.
32111         * modules/clean-temp (Depends-on): Add xlist.
32112
32113         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
32114         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
32115
32116         * tests/test-array_oset.c: Include gl_xlist.h.
32117         * modules/array-oset-tests (Depends-on): Add xlist.
32118
32119         Reported by José E. Marchesi <jemarch@gnu.org>.
32120
32121 2009-12-13  Bruno Haible  <bruno@clisp.org>
32122
32123         Move the malloc checking from module 'oset' to new module 'xoset'.
32124         * modules/xoset: New file.
32125         * lib/gl_xoset.h: New file.
32126         * lib/gl_xoset.c: New file.
32127         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
32128         declarations.
32129         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
32130         (struct gl_oset_implementation): Rename and change methods accordingly.
32131         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
32132         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
32133         'int'. Mark as __warn_unused_result__.
32134         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
32135         gl_oset_create_empty.
32136         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
32137         'int'.
32138         * lib/gl_array_oset.c: Don't include xalloc.h.
32139         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
32140         malloc, not xmalloc.
32141         (grow): Change return type to 'int'. Don't call xalloc_die.
32142         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
32143         to 'int'.
32144         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
32145         'int'.
32146         (gl_array_oset_implementation): Update.
32147         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
32148         gl_tree_create_empty.
32149         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
32150         'int'.
32151         * lib/gl_avltree_oset.c: Don't include xalloc.h.
32152         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
32153         xmalloc.
32154         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
32155         not xmalloc.
32156         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
32157         xmalloc.
32158         (gl_avltree_oset_implementation): Update.
32159         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
32160         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
32161         xmalloc.
32162         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
32163         not xmalloc.
32164         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
32165         xmalloc.
32166         (gl_rbtree_oset_implementation): Update.
32167         * modules/array-oset (Depends-on): Remove xalloc.
32168         * modules/avltree-oset (Depends-on): Likewise.
32169         * modules/rbtree-oset (Depends-on): Likewise.
32170         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
32171         * tests/test-avltree_oset.c: Likewise.
32172         * tests/test-rbtree_oset.c: Likewise.
32173         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
32174         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
32175         * modules/rbtree-oset-tests (Makefile.am): Likewise.
32176         * NEWS: Mention the change.
32177
32178 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
32179
32180         maint.mk: allow a project to override release-prep commands
32181         * top/maint.mk (alpha, beta, stable): Move release-preparatory
32182         commands into a new rule.
32183         (release-prep): New rule.
32184         (release-prep-hook): New overridable variable.
32185
32186 2009-12-13  Bruno Haible  <bruno@clisp.org>
32187
32188         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
32189
32190 2009-12-13  Jim Meyering  <meyering@redhat.com>
32191
32192         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
32193         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
32194
32195 2009-12-12  Bruno Haible  <bruno@clisp.org>
32196
32197         duplocale: Tweak.
32198         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
32199
32200 2009-12-12  Karl Berry  <karl@gnu.org>
32201
32202         * config/srclist.txt (strtoll.c): tab changes, no more sync.
32203
32204 2009-12-12  Bruno Haible  <bruno@clisp.org>
32205
32206         * m4/po.m4: Undo incorrect untabification.
32207
32208 2009-12-12  Bruno Haible  <bruno@clisp.org>
32209
32210         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
32211         * modules/c-strtod (Depends-on): Add locale.
32212         * modules/c-strtold (Depends-on): Likewise.
32213
32214 2009-12-12  Bruno Haible  <bruno@clisp.org>
32215
32216         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
32217
32218 2009-12-11  Eric Blake  <ebb9@byu.net>
32219
32220         setenv: relax requirement in light of POSIX ruling
32221         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
32222         not NULL.
32223         * tests/test-setenv.c (main): Relax test.
32224         * tests/test-unsetenv.c (main): Likewise.
32225         * doc/posix-functions/setenv.texi (setenv): Document this.
32226         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
32227
32228 2009-12-11  Bruno Haible  <bruno@clisp.org>
32229
32230         New module 'fd-safer-flag'.
32231         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
32232         * lib/dup-safer.c (dup_safer_flag): Remove function.
32233         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
32234         * lib/fd-safer.c (fd_safer_flag): Remove function.
32235         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
32236         * modules/cloexec (configure.ac): Drop indicator macro.
32237         * modules/fd-safer-flag: New file.
32238         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
32239         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
32240         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
32241
32242 2009-12-11  Bruno Haible  <bruno@clisp.org>
32243
32244         Tests for module 'nl_langinfo'.
32245         * modules/nl_langinfo-tests: New file.
32246         * tests/test-nl_langinfo.sh: New file.
32247         * tests/test-nl_langinfo.c: New file.
32248
32249         New module 'nl_langinfo'.
32250         * lib/nl_langinfo.c: New file.
32251         * m4/nl_langinfo.m4: New file.
32252         * modules/nl_langinfo: New file.
32253         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
32254
32255 2009-12-11  Bruno Haible  <bruno@clisp.org>
32256
32257         Tests for module 'langinfo'.
32258         * modules/langinfo-tests: New file.
32259         * tests/test-langinfo.c: New file.
32260
32261         New module 'langinfo'.
32262         * lib/langinfo.in.h: New file.
32263         * m4/langinfo_h.m4: New file.
32264         * modules/langinfo: New file.
32265         * doc/posix-headers/langinfo.texi: Mention the new module.
32266
32267 2009-12-11  Bruno Haible  <bruno@clisp.org>
32268
32269         * lib/config.charset: Untabify.
32270
32271 2009-12-11  Bruno Haible  <bruno@clisp.org>
32272
32273         * modules/unistd-safer (configure.ac): Drop indicator macro.
32274
32275 2009-12-11  Bruno Haible  <bruno@clisp.org>
32276
32277         Move pipe2-safer code to its own file.
32278         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
32279         * lib/pipe-safer.c (pipe2_safer): Remove function.
32280         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
32281         (Makefile.am): Add it to lib_SOURCES.
32282
32283 2009-12-10  Bruno Haible  <bruno@clisp.org>
32284
32285         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
32286
32287 2009-12-10  Bruno Haible  <bruno@clisp.org>
32288
32289         Declare which arguments expect non-NULL values, for GCC and clang.
32290         * build-aux/arg-nonnull.h: New file.
32291         * modules/arg-nonnull: New file.
32292         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
32293         (inet_ntop, inet_pton): Use it.
32294         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
32295         (closedir, dirfd, opendir, scandir, alphasort): Use it.
32296         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
32297         (open, openat): Use it.
32298         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
32299         (fnmatch): Use it.
32300         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
32301         (getopt, getopt_long, getopt_long_only): Use it.
32302         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
32303         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
32304         Use it.
32305         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
32306         (iconv_open): Use it.
32307         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
32308         (strtoimax, strtoumax): Use it.
32309         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
32310         (duplocale): Use it.
32311         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
32312         (frexp, frexpl): Use it.
32313         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
32314         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
32315         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
32316         (tsearch, tfind, tdelete, twalk): Use it.
32317         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
32318         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32319         sigpending): Use it.
32320         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
32321         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32322         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32323         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32324         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32325         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32326         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32327         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32328         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32329         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32330         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32331         Use it.
32332         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
32333         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
32334         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
32335         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
32336         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
32337         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
32338         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
32339         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
32340         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
32341         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
32342         strtoull, unsetenv): Use it.
32343         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
32344         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32345         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32346         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
32347         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
32348         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
32349         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
32350         (strcasecmp, strncasecmp): Use it.
32351         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
32352         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
32353         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
32354         rpl_setsockopt): Use it.
32355         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
32356         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
32357         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
32358         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
32359         (gettimeofday): Use it.
32360         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
32361         (times): Use it.
32362         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
32363         (uname): Use it.
32364         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
32365         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
32366         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
32367         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
32368         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
32369         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
32370         unlinkat, write): Use it.
32371         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
32372         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
32373         * lib/argv-iter.h: Include arg-nonnull.h.
32374         (_ATTRIBUTE_NONNULL_): Remove macro.
32375         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
32376         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
32377         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
32378         optimization.
32379         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
32380         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
32381         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
32382         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
32383         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
32384         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
32385         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
32386         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
32387         * modules/arpa_inet (Depends-on): Add arg-nonnull.
32388         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
32389         * modules/dirent (Depends-on): Add arg-nonnull.
32390         (Makefile.am): Insert arg-nonnull.h into dirent.h.
32391         * modules/fcntl-h (Depends-on): Add arg-nonnull.
32392         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
32393         * modules/fnmatch (Depends-on): Add arg-nonnull.
32394         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
32395         * modules/getopt-posix (Depends-on): Add arg-nonnull.
32396         (Makefile.am): Insert arg-nonnull.h into getopt.h.
32397         * modules/glob (Depends-on): Add arg-nonnull.
32398         (Makefile.am): Insert arg-nonnull.h into glob.h.
32399         * modules/iconv_open (Depends-on): Add arg-nonnull.
32400         (Makefile.am): Insert arg-nonnull.h into iconv.h.
32401         * modules/inttypes (Depends-on): Add arg-nonnull.
32402         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
32403         * modules/locale (Depends-on): Add arg-nonnull.
32404         (Makefile.am): Insert arg-nonnull.h into locale.h.
32405         * modules/math (Depends-on): Add arg-nonnull.
32406         (Makefile.am): Insert arg-nonnull.h into math.h.
32407         * modules/netdb (Depends-on): Add arg-nonnull.
32408         (Makefile.am): Insert arg-nonnull.h into netdb.h.
32409         * modules/search (Depends-on): Add arg-nonnull.
32410         (Makefile.am): Insert arg-nonnull.h into search.h.
32411         * modules/signal (Depends-on): Add arg-nonnull.
32412         (Makefile.am): Insert arg-nonnull.h into signal.h.
32413         * modules/spawn (Depends-on): Add arg-nonnull.
32414         (Makefile.am): Insert arg-nonnull.h into spawn.h.
32415         * modules/stdio (Depends-on): Add arg-nonnull.
32416         (Makefile.am): Insert arg-nonnull.h into stdio.h.
32417         * modules/stdlib (Depends-on): Add arg-nonnull.
32418         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
32419         * modules/string (Depends-on): Add arg-nonnull.
32420         (Makefile.am): Insert arg-nonnull.h into string.h.
32421         * modules/strings (Depends-on): Add arg-nonnull.
32422         (Makefile.am): Insert arg-nonnull.h into strings.h.
32423         * modules/sys_socket (Depends-on): Add arg-nonnull.
32424         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
32425         * modules/sys_stat (Depends-on): Add arg-nonnull.
32426         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
32427         * modules/sys_time (Depends-on): Add arg-nonnull.
32428         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
32429         * modules/sys_times (Depends-on): Add arg-nonnull.
32430         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
32431         * modules/sys_utsname (Depends-on): Add arg-nonnull.
32432         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
32433         * modules/time (Depends-on): Add arg-nonnull.
32434         (Makefile.am): Insert arg-nonnull.h into time.h.
32435         * modules/unistd (Depends-on): Add arg-nonnull.
32436         (Makefile.am): Insert arg-nonnull.h into unistd.h.
32437         * modules/wchar (Depends-on): Add arg-nonnull.
32438         (Makefile.am): Insert arg-nonnull.h into wchar.h.
32439         * modules/argv-iter (Depends-on): Add arg-nonnull.
32440         * tests/test-canonicalize.c (null_ptr): New function.
32441         (main): Use it.
32442         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
32443         (main): Use it.
32444         * tests/test-memmem.c (null_ptr): New function.
32445         (main): Use it.
32446         Reported by Jim Meyering.
32447
32448 2009-12-10  Bruno Haible  <bruno@clisp.org>
32449
32450         Use spaces for indentation, not tabs.
32451         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
32452         * m4/*.m4: Untabify.
32453         * build-aux/*.h: Untabify.
32454         * tests/**/*.[hc]: Untabify.
32455         * README: New section "Indent with spaces, not TABs", based on
32456         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
32457         * NEWS: Mention the change.
32458
32459 2009-12-10  Bruno Haible  <bruno@clisp.org>
32460
32461         pty test: Fix link error.
32462         * modules/pty-tests (Makefile.am): Add the default LDADD value to
32463         test_pty_LDADD.
32464
32465 2009-12-07  Simon Josefsson  <simon@josefsson.org>
32466
32467         * modules/pty: New file.
32468         * modules/pty-tests: New file.
32469         * m4/pty.m4: New file.
32470         * tests/test-pty.c: New file.
32471         * doc/glibc-headers/pty.texi: Modified.
32472         * doc/glibc-functions/forkpty.texi: Modified.
32473         * doc/glibc-functions/openpty.texi: Modified.
32474
32475 2009-12-10  Bruno Haible  <bruno@clisp.org>
32476
32477         Avoid syntax error in C++ mode.
32478         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
32479
32480 2009-12-10  Bruno Haible  <bruno@clisp.org>
32481
32482         Use sed with option -e.
32483         * gnulib-tool (func_version, func_emit_copyright_notice,
32484         func_emit_initmacro_end, func_import, func_create_testdir): Pass
32485         option -e to sed.
32486         * modules/link-warning (Makefile.am): Likewise.
32487
32488 2009-12-10  Jim Meyering  <meyering@redhat.com>
32489
32490         mgetgroups: do not write bytes beyond end of malloc'd buffer
32491         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
32492         username, we call getgroups with a one-element-shorter buffer,
32493         but still told it the length was original, max_n_groups.
32494
32495 2009-12-09  Eric Blake  <ebb9@byu.net>
32496
32497         cloexec: relax license
32498         * modules/cloexec (Maintainer): Add myself.
32499         (License): Use LGPL, not GPL.
32500
32501         link-warning: optimize generation
32502         * modules/link-warning (Makefile.am): Reduce process usage.
32503
32504 2009-12-09  Bruno Haible  <bruno@clisp.org>
32505
32506         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
32507         workaround was added on 2009-11-17.
32508
32509 2009-12-09  Jim Meyering  <meyering@redhat.com>
32510             Bruno Haible  <bruno@clisp.org>
32511
32512         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
32513         * modules/link-warning (Makefile.am): Make the comment-removing sed
32514         command more robust in the face of bootstrap-prepended comment lines.
32515
32516 2009-12-09  Bruno Haible  <bruno@clisp.org>
32517
32518         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
32519         most one group.
32520
32521 2009-12-09  Simon Josefsson <simon@josefsson.org>
32522             Bruno Haible  <bruno@clisp.org>
32523
32524         * build-aux/link-warning.h: Add copyright notice.
32525         * modules/link-warning (Makefile.am): Generate link-warning.h from
32526         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
32527         * NEWS: Mention change in link-warning module.
32528         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
32529         * modules/dirent (Makefile.am): Add dependency to dirent.h.
32530         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
32531         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
32532         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
32533         * modules/math (Makefile.am): Add dependency to math.h.
32534         * modules/search (Makefile.am): Add dependency to search.h.
32535         * modules/signal (Makefile.am): Add dependency to signal.h.
32536         * modules/spawn (Makefile.am): Add dependency to spawn.h.
32537         * modules/stdio (Makefile.am): Add dependency to stdio.h.
32538         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
32539         * modules/string (Makefile.am): Add dependency to string.h.
32540         * modules/strings (Makefile.am): Add dependency to strings.h.
32541         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
32542         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
32543         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
32544         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
32545         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
32546         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
32547         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
32548         * modules/unistd (Makefile.am): Add dependency to unistd.h.
32549         * modules/wchar (Makefile.am): Add dependency to wchar.h.
32550
32551 2009-12-09  Bruno Haible  <bruno@clisp.org>
32552
32553         fchdir: Optimize away rpl_fstat when possible.
32554         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
32555         REPLACE_OPEN_DIRECTORY.
32556         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
32557
32558 2009-12-09  Bruno Haible  <bruno@clisp.org>
32559
32560         * lib/fchdir.c: Update comment.
32561
32562 2009-12-09  Bruno Haible  <bruno@clisp.org>
32563
32564         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
32565
32566 2009-12-08  Eric Blake  <ebb9@byu.net>
32567
32568         fchdir: avoid memory leak on re-registration.
32569         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
32570
32571 2009-12-08  Jim Meyering  <meyering@redhat.com>
32572
32573         init.sh: avoid Solaris 10 /bin/sh portability problem
32574         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
32575         sourced script:
32576           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
32577           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
32578           bar
32579         tests/init.sh relied on that, accepting a --set-path=DIR argument,
32580         and two tests used that idiom.
32581         * tests/init.sh: Update suggested usage comments.
32582         (path_prepend_): New function, to be used in place
32583         of the --src-path=DIR option.
32584         (setup_): Move PATH-prepending code into path_prepend_.
32585         * tests/test-pread.sh: Adapt to new usage.
32586         * tests/test-xalloc-die.sh: Likewise.
32587
32588 2009-12-08  Simon Josefsson  <simon@josefsson.org>
32589
32590         * doc/gnulib.texi (Glibc pty.h): Add.
32591         * doc/glibc-functions/forkpty.texi: Add.
32592         * doc/glibc-functions/openpty.texi: Add.
32593         Suggested by Bruno Haible.
32594
32595 2009-12-08  Eric Blake  <ebb9@byu.net>
32596
32597         fchdir: fix logic bugs
32598         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
32599         * tests/test-fchdir.c (main): Enhance test.
32600         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
32601         is in use.
32602
32603         dup2: fix logic bugs
32604         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
32605         REPLACE_DUP2 to decide when rpl_dup2 is needed.
32606         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
32607         exists.
32608         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
32609
32610 2009-12-07  Eric Blake  <ebb9@byu.net>
32611
32612         unlink: fix m4 detection
32613         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
32614
32615         unistd-safer: add unit test
32616         * modules/unistd-safer-tests: New file.
32617         * tests/test-dup-safer.c: Likewise.
32618         * tests/test-cloexec.c (setmode): Avoid compiler warning.
32619         * tests/test-dup2.c (setmode): Likewise.
32620         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
32621
32622         cloexec: preserve text vs. binary across dup_cloexec
32623         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
32624         mode.
32625         * modules/dup2-tests (Depends-on): Add binary-io.
32626         * modules/cloexec-tests (Depends-on): Likewise.
32627         * tests/test-dup2.c (setmode, is_mode): New helpers.
32628         (main): Add tests that translation mode is preserved.
32629         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
32630         Reported by Bruno Haible.
32631
32632         mgetgroups: reduce duplicate listings
32633         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
32634         resulting array.
32635         * tests/test-chown.h (test_chown): Simplify client.
32636         * tests/test-lchown.h (test_lchown): Likewise.
32637
32638 2009-12-06  Bruno Haible  <bruno@clisp.org>
32639
32640         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
32641         value.
32642
32643 2009-12-06  Bruno Haible  <bruno@clisp.org>
32644
32645         * lib/progname.c: Include stdio.h, stdlib.h.
32646         (set_program_name): Reject a NULL argument.
32647
32648 2009-12-05  Eric Blake  <ebb9@byu.net>
32649
32650         pipe2-safer: new module
32651         * modules/pipe2-safer: New file.
32652         * lib/unistd-safer.h (pipe2_safer): New prototype.
32653         * lib/unistd--.h (pipe2): New wrapper.
32654         * lib/pipe-safer.c (pipe2_safer): New function.
32655         * modules/pipe (Depends-on): Add pipe2-safer.
32656         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
32657
32658         stdlib-safer: preserve cloexec flag for mkostemp[s]
32659         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
32660         fd_safer_flag.
32661
32662         unistd-safer: allow preservation of cloexec status via flag
32663         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
32664         prototypes.
32665         * lib/dup-safer.c (dup_safer_flag): New function.
32666         * lib/fd-safer.c (fd_safer_flag): Likewise.
32667         * modules/cloexec (configure.ac): Set witness.
32668
32669         test-dup2: enhance test
32670         * modules/dup2-tests (Depends-on): Add cloexec.
32671         * tests/test-dup2.c (main): Enhance test.
32672
32673         cloexec: add dup_cloexec
32674         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
32675         header and comments.
32676         * lib/cloexec.c (set_cloexec_flag): Add comments.
32677         (dup_cloexec): New function, with mingw implementation borrowed
32678         from...
32679         * lib/w32spawn.h (dup_noinherit): ...here.
32680         * modules/execute (Depends-on): Add cloexec.
32681         * modules/pipe (Depends-on): Likewise.
32682         * modules/cloexec (Depends-on): Add dup2.
32683         * modules/cloexec-tests (Files): New file.
32684         * tests/test-cloexec.c: Likewise.
32685
32686         test-xalloc-die: fix test for mingw
32687         * modules/xalloc-die-tests (Files): Add tests/init.sh.
32688         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
32689         directory and .exe suffix off argv[0] output.
32690
32691         test-fseeko: fix test for mingw
32692         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
32693         than undefining fseek, so test will pass on mingw.
32694
32695 2009-12-05  Bruno Haible  <bruno@clisp.org>
32696
32697         * lib/progname.h (set_program_name): Clarify specification.
32698         * lib/progname.c (set_program_name): Likewise.
32699         Reported by Jim Meyering.
32700
32701 2009-12-05  Jim Meyering  <meyering@redhat.com>
32702
32703         maint.mk: backslash-escape parens in default regexp
32704         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
32705         backslash-escape the literal parentheses.
32706
32707         maint.mk: news-date-check: use grep -E
32708         * top/maint.mk (today): Define a Make variable, not a...
32709         (news-date-check): ...shell variable.
32710         (news-date-regexp): Use the Make variable.
32711         Use grep's -E option.  Change the failing diagnostic to mention
32712         the variable, $(news-date-regexp).
32713
32714 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
32715
32716         maintainer-makefile: allow customization of NEWS entry format
32717         * top/maint.mk (news-date-regexp): New overridable variable.
32718         (news-date-check): Use it.
32719
32720 2009-12-04  Eric Blake  <ebb9@byu.net>
32721
32722         mgetgroups: add xgetgroups, and avoid ENOSYS failures
32723         * lib/mgetgroups.h (xgetgroups): New prototype.
32724         * lib/mgetgroups.c (xgetgroups): New wrapper.
32725         (mgetgroups): Handle ENOSYS.
32726         * modules/mgetgroups (Depends-on): Add realloc.
32727         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
32728
32729         mgetgroups: avoid argument promotion issues with -1
32730         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
32731         for invalid gid_t.
32732         * tests/test-chown.h (getegid, test_chown): Likewise.
32733         * tests/test-lchown.h (getegid, test_lchown): Likewise.
32734
32735 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
32736
32737         exclude: Fix header file problems.
32738         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
32739
32740 2009-12-01  Jim Meyering  <meyering@redhat.com>
32741
32742         fts: fts_open: do not let an empty string cause immediate failure
32743         This is required in support of GNU rm, for which the command
32744         "rm A '' B" must process and remove both A and B, in spite of
32745         the empty string argument.
32746         * lib/fts.c (fts_open): Do not let the presence of an empty string
32747         cause fts_open to fail immediately.  Most fts-using tools must be
32748         able to process all arguments, in order, and can be expected to
32749         diagnose such arguments themselves.
32750
32751 2009-11-30  Eric Blake  <ebb9@byu.net>
32752
32753         utimens: fix compilation error
32754         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
32755         Declare variable at right scope.
32756
32757 2009-11-29  Jim Meyering  <meyering@redhat.com>
32758
32759         bootstrap: handle perl-5.11's changed --version output
32760         * build-aux/bootstrap (get_version): Handle perl separately,
32761         since perl-5.11's --version output is different.
32762
32763 2009-11-28  Jim Meyering  <meyering@redhat.com>
32764
32765         userspec: depend on the inttostr module, too
32766         * modules/userspec (Depends-on): Add inttostr.
32767
32768         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
32769         * lib/userspec.c (parse_with_separator): Do not accept a user ID
32770         number of MAXUID when it evaluates to (uid_t) -1.
32771         Likewise for group ID.  Reported by Matt McCutchen in
32772         <http://savannah.gnu.org/bugs/?28113>
32773
32774         userspec: reformat to use spaces, not TABs
32775         * lib/userspec.c: Expand TABs to spaces.
32776         Add Emacs' "indent-tabs-mode: nil" hint.
32777
32778 2009-11-27  Eric Blake  <ebb9@byu.net>
32779
32780         getopt-gnu: flush out another BSD bug
32781         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
32782         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
32783         flush out BSD bug.
32784         * tests/test-getopt.h (test_getopt): End lists with NULL.
32785         * tests/test-getopt_long.h (test_getopt_long): Likewise.
32786         (test_getopt_long_posix): Enhance test.
32787         * modules/getopt-posix-tests (Depends-on): Add stdbool.
32788         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
32789         getopt-gnu.
32790         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32791         Likewise.
32792
32793 2009-11-27  Simon Josefsson  <simon@josefsson.org>
32794
32795         * modules/idpriv-droptemp-tests (Notice): Fix text.
32796
32797 2009-11-27  Jim Meyering  <meyering@redhat.com>
32798
32799         test-xalloc-die: avoid spurious failure due to libtool argv difference
32800         In a libtool-enabled project, this test would fail due to a difference
32801         in the emitted program name, e.g.,
32802         -test-xalloc-die: memory exhausted
32803         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
32804         Use program to avoid that.
32805         * modules/xalloc-die-tests (Depends-on): Add progname.
32806         * tests/test-xalloc-die.c: Include progname.h".
32807         (program_name): Remove decl.
32808         (main): Call set_program_name.
32809         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
32810
32811 2009-11-26  Richard Jones  <rjones@redhat.com>
32812
32813         w32sock: leave win32 error in place.
32814         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
32815
32816 2009-11-26  Eric Blake  <ebb9@byu.net>
32817
32818         init.sh: suggest to use skip_ and fail_ functions in comments
32819         * tests/init.sh: Add a sentence.
32820
32821 2009-11-25  Bruno Haible  <bruno@clisp.org>
32822
32823         init.sh: add documentation in comments
32824         * tests/init.sh: Add some developer and user documentation.
32825
32826 2009-11-26  Jim Meyering  <meyering@redhat.com>
32827
32828         init.sh: accommodate even those who specify bogus srcdir manually
32829         * tests/init.sh: Normally, srcdir is guaranteed by automake and
32830         configure-time tests to be sanitized, so that there is no need to
32831         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
32832         (with no double quotes) suffices.  However, since tests may be
32833         invoked manually, and since you may explicitly set srcdir to the
32834         name of a directory containing spaces, do quote its uses here.
32835         * tests/test-pread.sh: Likewise.
32836         Suggested by Bruno Haible.
32837
32838         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
32839         * tests/test-pread.sh: Write no data into the pipe, because
32840         test-pread actually reads none.  This avoids a diagnostic,
32841         "bash: echo: write error: Broken pipe", that arises in the unusual
32842         event something is ignoring SIGPIPE, and might be interpreted
32843         as some sort of failure.  Reported by Bruno Haible.
32844
32845 2009-11-25  Jim Meyering  <meyering@redhat.com>
32846
32847         test-pread: cover failure with ESPIPE and EINVAL
32848         * tests/test-pread.c (main): Test for failure, too.
32849         * tests/test-pread.sh: Invoke with stdin on a pipe.
32850         Suggested by Eric Blake.
32851
32852         pread: improvement and fix
32853         * modules/pread (Depends-on): Depend on lseek, for portability to
32854         e.g., mingw.  Suggested by Eric Blake.
32855         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
32856
32857         unistd.in.h: correct declaration of pread
32858         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
32859         Reported by Richard W.M. Jones.
32860
32861         test-pread.sh: distribute the test script
32862         * modules/pread-tests (Files): Include test-pread.sh.
32863
32864         test-pread.sh: clean up
32865         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
32866         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
32867         That is unnecessary, since it's always ".".
32868         Suggestion from Eric Blake.
32869
32870         test-pread.sh: make executable
32871         * tests/test-pread.sh: Set executable bit.
32872         Reported by Eric Blake.
32873
32874         correct typo in test-pread.sh
32875         * tests/test-pread.sh: Add #! line.
32876
32877         test pread
32878         * tests/test-pread.c: New file.
32879         * tests/test-pread.sh: Likewise.
32880         * modules/pread-tests: Likewise.
32881
32882         pread: new module
32883         * modules/pread: New file.
32884         * lib/unistd.in.h (pread): Define/declare.
32885         * lib/pread.c (pread): New file.
32886         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
32887         * modules/unistd (Makefile.am): Substitute witnesses.
32888         * doc/posix-functions/pread.texi (pread): Update.
32889         * MODULES.html.sh: Add pread.
32890
32891 2009-11-25  Jim Meyering  <meyering@redhat.com>
32892
32893         tests/init.sh: new file to be used via most *.sh tests
32894         * tests/init.sh: New file.
32895
32896 2009-11-25  Eric Blake  <ebb9@byu.net>
32897
32898         utimens: work around older Linux failure with symlinks
32899         * lib/utimens.c (lutimensat_works_really): New variable.
32900         (fdutimens, lutimens): Use it to manage kernels that support
32901         nanosecond times on files, but not on symlinks.
32902         Reported by Ondřej Vašík.
32903
32904         utimes: fix configure grammar
32905         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
32906
32907 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
32908
32909         regex: Fix fastmap for multibyte character ranges.
32910         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
32911         characters when a multibyte character range is included.
32912
32913 2009-11-22  Andy Wingo  <wingo@pobox.com>
32914
32915         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
32916         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
32917
32918 2009-11-24  Bruno Haible  <bruno@clisp.org>
32919
32920         doc: Most *_l functions exist in MacOS X 10.5.
32921         * doc/posix-functions/duplocale.texi: Update platforms list.
32922         * doc/posix-functions/freelocale.texi: Likewise.
32923         * doc/posix-functions/newlocale.texi: Likewise.
32924         * doc/posix-functions/uselocale.texi: Likewise.
32925         * doc/posix-functions/isalnum_l.texi: Likewise.
32926         * doc/posix-functions/isalpha_l.texi: Likewise.
32927         * doc/posix-functions/isblank_l.texi: Likewise.
32928         * doc/posix-functions/iscntrl_l.texi: Likewise.
32929         * doc/posix-functions/isdigit_l.texi: Likewise.
32930         * doc/posix-functions/isgraph_l.texi: Likewise.
32931         * doc/posix-functions/islower_l.texi: Likewise.
32932         * doc/posix-functions/isprint_l.texi: Likewise.
32933         * doc/posix-functions/ispunct_l.texi: Likewise.
32934         * doc/posix-functions/isspace_l.texi: Likewise.
32935         * doc/posix-functions/isupper_l.texi: Likewise.
32936         * doc/posix-functions/iswalnum_l.texi: Likewise.
32937         * doc/posix-functions/iswalpha_l.texi: Likewise.
32938         * doc/posix-functions/iswblank_l.texi: Likewise.
32939         * doc/posix-functions/iswcntrl_l.texi: Likewise.
32940         * doc/posix-functions/iswctype_l.texi: Likewise.
32941         * doc/posix-functions/iswdigit_l.texi: Likewise.
32942         * doc/posix-functions/iswgraph_l.texi: Likewise.
32943         * doc/posix-functions/iswlower_l.texi: Likewise.
32944         * doc/posix-functions/iswprint_l.texi: Likewise.
32945         * doc/posix-functions/iswpunct_l.texi: Likewise.
32946         * doc/posix-functions/iswspace_l.texi: Likewise.
32947         * doc/posix-functions/iswupper_l.texi: Likewise.
32948         * doc/posix-functions/iswxdigit_l.texi: Likewise.
32949         * doc/posix-functions/isxdigit_l.texi: Likewise.
32950         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
32951         * doc/posix-functions/strcasecmp_l.texi: Likewise.
32952         * doc/posix-functions/strcoll_l.texi: Likewise.
32953         * doc/posix-functions/strfmon_l.texi: Likewise.
32954         * doc/posix-functions/strftime_l.texi: Likewise.
32955         * doc/posix-functions/strncasecmp_l.texi: Likewise.
32956         * doc/posix-functions/strxfrm_l.texi: Likewise.
32957         * doc/posix-functions/tolower_l.texi: Likewise.
32958         * doc/posix-functions/toupper_l.texi: Likewise.
32959         * doc/posix-functions/towctrans_l.texi: Likewise.
32960         * doc/posix-functions/towlower_l.texi: Likewise.
32961         * doc/posix-functions/towupper_l.texi: Likewise.
32962         * doc/posix-functions/wcscoll_l.texi: Likewise.
32963         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32964         * doc/posix-functions/wctrans_l.texi: Likewise.
32965         * doc/posix-functions/wctype_l.texi: Likewise.
32966         * doc/glibc-functions/strptime_l.texi: Likewise.
32967         * doc/glibc-functions/strtod_l.texi: Likewise.
32968         * doc/glibc-functions/strtof_l.texi: Likewise.
32969         * doc/glibc-functions/strtol_l.texi: Likewise.
32970         * doc/glibc-functions/strtold_l.texi: Likewise.
32971         * doc/glibc-functions/strtoll_l.texi: Likewise.
32972         * doc/glibc-functions/strtoul_l.texi: Likewise.
32973         * doc/glibc-functions/strtoull_l.texi: Likewise.
32974         * doc/glibc-functions/wcsftime_l.texi: Likewise.
32975         * doc/glibc-functions/wcstod_l.texi: Likewise.
32976         * doc/glibc-functions/wcstof_l.texi: Likewise.
32977         * doc/glibc-functions/wcstol_l.texi: Likewise.
32978         * doc/glibc-functions/wcstold_l.texi: Likewise.
32979         * doc/glibc-functions/wcstoll_l.texi: Likewise.
32980         * doc/glibc-functions/wcstoul_l.texi: Likewise.
32981         * doc/glibc-functions/wcstoull_l.texi: Likewise.
32982
32983 2009-11-24  Bruno Haible  <bruno@clisp.org>
32984
32985         duplocale: Fix logic bug.
32986         * lib/duplocale.c: Don't include <langinfo.h>.
32987         (_NL_LOCALE_NAME): Remove macro.
32988         (rpl_duplocale): Use setlocale instead of nl_langinfo.
32989         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
32990
32991 2009-11-23  Jim Meyering  <meyering@redhat.com>
32992
32993         test-update-copyright: don't hard-code /usr/bin/perl
32994         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
32995         perl to print the current year.  Gilles Espinasse reported that
32996         the replaced use of perl was hard-coded as /usr/bin/perl.
32997
32998 2009-11-23  Bruno Haible  <bruno@clisp.org>
32999
33000         duplocale: Add support for glibc 2.3.x.
33001         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
33002
33003 2009-11-22  Bruno Haible  <bruno@clisp.org>
33004
33005         vasnprintf: Tiny optimization.
33006         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
33007         MacOS X.
33008
33009 2009-11-22  Bruno Haible  <bruno@clisp.org>
33010
33011         Tests for module 'duplocale'.
33012         * modules/duplocale-tests: New file.
33013         * tests/test-duplocale.c: New file.
33014
33015         New module 'duplocale'.
33016         * m4/duplocale.m4: New file.
33017         * lib/locale.in.h (duplocale): New declaration.
33018         * lib/duplocale.c: New file.
33019         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
33020         gl_LOCALE_H_DEFAULTS): New macros.
33021         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
33022         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
33023         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
33024         REPLACE_DUPLOCALE.
33025         * modules/duplocale: New file.
33026         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
33027
33028 2009-11-22  Bruno Haible  <bruno@clisp.org>
33029
33030         * modules/locale-tests (configure.ac): Test for newlocale function.
33031         * tests/test-locale.c: When the system has extended locale functions,
33032         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
33033
33034         locale: Make locale_t available when possible.
33035         * lib/locale.in.h: Include <xlocale.h> when it exists.
33036         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
33037         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
33038         * modules/locale (Depends-on): Add extensions.
33039         (Makefile.am): Also substitute HAVE_XLOCALE_H.
33040         * doc/posix-headers/locale.texi: Document the problem with locale_t.
33041
33042 2009-11-22  Bruno Haible  <bruno@clisp.org>
33043
33044         Add comments.
33045         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
33046         invocation.
33047         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
33048         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33049         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33050
33051 2009-11-22  Bruno Haible  <bruno@clisp.org>
33052
33053         error: account for the possibility of freopen (stdout).
33054         * lib/error.c: Include <unistd.h>.
33055         (flush_stdout): New function, extracted from error and error_at_line.
33056         Determine stdout's fd dynamically.
33057         (error, error_at_line): Invoke flush_stdout.
33058         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
33059         * modules/error (Depends-on): Add unistd.
33060
33061 2009-11-22  Bruno Haible  <bruno@clisp.org>
33062
33063         diffseq: Add comment.
33064         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
33065
33066 2009-11-22  Jim Meyering  <meyering@redhat.com>
33067
33068         c-stack: avoid defining an unused static function
33069         * lib/c-stack.c (find_stack_direction): Do not define this function
33070         when it will not be used.
33071
33072         diffseq: avoid spurious gcc warnings
33073         * lib/diffseq.h (IF_LINT2): Define.
33074         (compareseq): Use it to initialize two members of "part".
33075         This avoids two used-uninitialized warnings.
33076
33077 2009-11-21  Jim Meyering  <meyering@redhat.com>
33078
33079         c-stack: avoid "ignoring return value of `write'" warning
33080         * lib/c-stack.c: Include "ignore-value.h".
33081         (die): Explicitly ignore each write return value.
33082         * modules/c-stack (Depends-on): Add ignore-value.
33083
33084 2009-11-21  Bruno Haible  <bruno@clisp.org>
33085
33086         diffseq: reduce scope of variable 'best'.
33087         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
33088         variable, earlier used for two different purposes.
33089
33090 2009-11-21  Jim Meyering  <meyering@redhat.com>
33091
33092         diffseq: remove useless assignment to "best"
33093         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
33094         assignment.  At that point "best" is already guaranteed to be zero.
33095
33096 2009-11-20  Eric Blake  <ebb9@byu.net>
33097
33098         build: mention ftp redirector in release announcements
33099         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
33100         values that used to come from cfg.mk; mention FTP redirect URL.
33101         * build-aux/announce-gen: Mention the mirror list.
33102         Suggested by Karl Berry.
33103
33104         nanosleep: improve port to mingw
33105         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
33106         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
33107         LIB_NANOSLEEP, but only when needed.
33108         * modules/select (Link): Document LIBSOCKET.
33109         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
33110         enough.
33111
33112         nanosleep: work around cygwin bug
33113         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
33114         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
33115         bug.
33116         (getnow): Delete, not needed.
33117         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
33118         LIB_CLOCK_GETTIME.
33119         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
33120         clock-time, gettime.
33121         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
33122         bug.
33123         * modules/nanosleep-tests: New test.
33124         * tests/test-nanosleep.c: New file.
33125
33126         sleep: work around cygwin bug
33127         * lib/sleep.c (rpl_sleep): Work around the bug.
33128         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
33129         (gl_PREREQ_SLEEP): Delete unused macro.
33130         * modules/sleep (Depends-on): Add verify.
33131         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33132         * modules/unistd (Makefile.am): Substitute witness.
33133         * lib/unistd.in.h (sleep): Update prototype.
33134         * doc/posix-functions/sleep.texi (sleep): Document the bug.
33135         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
33136         * modules/sleep-tests (Depends-on): Check for alarm.
33137
33138 2009-11-20  Jim Meyering  <meyering@redhat.com>
33139
33140         maint.mk: improve sc_prohibit_magic_number_exit
33141         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
33142         so it does not match uses like System.exit(1).
33143         Add comments showing how to correct all offenders.
33144
33145 2009-11-19  Eric Blake  <ebb9@byu.net>
33146
33147         xalloc-die-tests: add missing library
33148         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
33149
33150         test-xvasprintf: silence compiler warnings
33151         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
33152         empty string from gcc.
33153
33154 2009-11-19  Jim Meyering  <meyering@redhat.com>
33155
33156         xfreopen: new module, from coreutils
33157         * modules/xfreopen: New module.
33158         * lib/xfreopen.c: New file.
33159         * lib/xfreopen.h: New file.
33160         * MODULES.html.sh (File stream based Input/Output"): Add it.
33161
33162 2009-11-19  Eric Blake  <ebb9@byu.net>
33163
33164         manywarnings: depend on warnings
33165         * modules/manywarnings (Depends-on): Add warnings.
33166
33167         build: avoid compiler warnings
33168         * lib/select.c (rpl_select): Delete unused variable.
33169         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
33170
33171 2009-11-18  Eric Blake  <ebb9@byu.net>
33172
33173         tests: avoid false negative with --with-packager
33174         * tests/test-version-etc.sh: Discard packager information.
33175         * tests/test-argp-version-etc-1.sh: Likewise.
33176         Reported by Mike Frysinger.
33177
33178         utimens: fix regression on Solaris
33179         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
33180         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
33181         can only change fd timestamps via futimesat.  Instead, use an
33182         additional witness macro to avoid BSD bug.
33183         Reported by Jim Meyering.
33184
33185 2009-11-17  Eric Blake  <ebb9@byu.net>
33186
33187         usleep: use it to simplify tests
33188         * modules/stat-time-tests (Depends-on): Add usleep.
33189         (configure.ac): Drop usleep check.
33190         * modules/chown-tests (Depends-on, configure.ac): Likewise.
33191         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
33192         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
33193         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
33194         * modules/openat-tests (Depends-on, configure.ac): Likewise.
33195         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
33196         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
33197         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
33198         Likewise.
33199         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
33200         * tests/test-lchown.h (nap): Likewise.
33201         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
33202         * tests/test-stat-time.c (nap): Likewise.
33203         * tests/test-utimens-common.h (nap): Update comments.
33204
33205         usleep: new module
33206         * modules/usleep: New file.
33207         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
33208         * lib/usleep.c (usleep): Likewise.
33209         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
33210         * modules/unistd (Makefile.am): Substitute witnesses.
33211         * lib/unistd.in.h (usleep): Add declaration.
33212         * doc/pastposix-functions/usleep.texi (usleep): Document this.
33213         * MODULES.html.sh (Date and time): Likewise.
33214         * modules/usleep-tests (Depends-on): New test.
33215         * tests/test-usleep.c: New file.
33216
33217         chown: work around OpenBSD bug
33218         * lib/chown.c (rpl_chown): Work around the bug.
33219         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
33220         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
33221         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
33222         * modules/chown (Depends-on): Add stdbool.
33223         * modules/lchown (Depends-on): Likewise.
33224         * doc/posix-functions/chown.texi (chown): Document the bug.
33225         * doc/posix-functions/lchown.texi (lchown): Likewise.
33226         * tests/test-lchown.h (test_chown): Relax test.
33227
33228         mkstemp: avoid conflict with C++ keyword template
33229         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
33230         * lib/mkostemp.c (mkostemp): Likewise.
33231         * lib/mkostemps.c (mkostemps): Likewise.
33232         * lib/mkstemp.c (mkstemp): Likewise.
33233         * lib/mkstemps.c (mkstemps): Likewise.
33234
33235         xalloc-die-tests: optimize
33236         * tests/test-xalloc-die.sh: Reduce number of processes.
33237
33238 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33239
33240         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
33241         patch from ludo@gnu.org (Ludovic Courtès).
33242
33243 2009-11-17  Jim Meyering  <meyering@redhat.com>
33244
33245         version-etc: use proper license string
33246         * modules/version-etc (License): Use LGPL, not LGPLv3+.
33247         * modules/version-etc-fsf: Likewise.
33248
33249 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33250
33251         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
33252         printed to stdout.  Deal with EOL differences.
33253
33254 2009-11-17  Eric Blake  <ebb9@byu.net>
33255
33256         unsetenv: work around Solaris bug
33257         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
33258         * lib/unsetenv.c (rpl_unsetenv): Work around it.
33259         Reported by Jim Meyering.
33260
33261         vasnprintf: avoid compiler warnings
33262         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
33263         variables.
33264         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
33265
33266 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33267
33268         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
33269         settings since xalloc-die is no longer the self test,
33270         xalloc-die.sh is.
33271
33272 2009-11-17  Jim Meyering  <meyering@redhat.com>
33273
33274         test-xalloc-die.sh: make the code agree with the commit log
33275         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
33276         at the end, just in case you happen to have a test-xalloc-die
33277         program in some other PATH directory.
33278
33279         test-xalloc-die.sh: fix a portability bug
33280         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
33281         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
33282         Otherwise, argv[0] (as often seen in diagnostics) would be too
33283         system-dependent, sometimes with, and sometimes without the leading "./".
33284
33285         version-etc-fsf: relax license to LGPLv3+
33286         * modules/version-etc-fsf (License): Relax license.
33287
33288 2009-11-16  Eric Blake  <ebb9@byu.net>
33289
33290         xalloc-die-tests: avoid printing null pointer
33291         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
33292         shell script.
33293         * tests/test-xalloc-die.c (program_name): Declare.
33294         * tests/test-xalloc-die.sh (tmpfiles): New file.
33295
33296         setenv, unsetenv: work around various bugs
33297         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
33298         (setenv) [HAVE_SETENV]: Work around bugs.
33299         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
33300         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
33301         for bugs.
33302         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
33303         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
33304         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
33305         * modules/stdlib (Makefile.am): Update substitutions.
33306         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
33307         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
33308         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
33309         * modules/setenv-tests: New test.
33310         * modules/unsetenv-tests: Likewise.
33311         * tests/test-setenv.c: New file.
33312         * tests/test-unsetenv.c: Likewise.
33313
33314 2009-11-16  Jim Meyering  <meyering@redhat.com>
33315
33316         version-etc: relax license to LGPLv3+
33317         * modules/version-etc (License): Relax license.
33318
33319         better AC_REQUIRE expanded-before-required-warning avoidance
33320         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
33321         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
33322         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
33323         which is no longer needed.
33324
33325 2009-11-16  Eric Blake  <ebb9@byu.net>
33326
33327         test-freading: clean up temporary file
33328         * tests/test-freading.c (main): Remove file on success, and use
33329         ASSERT more liberally.
33330         Reported by Jim Meyering.
33331
33332 2009-11-16  Jim Meyering  <meyering@redhat.com>
33333
33334         avoid new AC_REQUIRE expanded-before-required warnings
33335         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
33336         merely using it.
33337         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
33338         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
33339
33340 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33341
33342         * tests/test-xalloc-die.c: New file.
33343         * modules/xalloc-die-tests: New file.
33344         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
33345         XFAIL_TESTS so it can be appended by modules.
33346
33347 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33348
33349         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
33350         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
33351
33352 2009-11-14  Eric Blake  <ebb9@byu.net>
33353
33354         fnmatch: avoid compiler warning
33355         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
33356         to silence compiler warning about mismatch signedness in ?:.
33357         Reported by Robert Millan.
33358
33359         intprops: add double-inclusion guard
33360         * lib/intprops.h: Allow idempotent includes.
33361         Suggested by Bruce Korb.
33362
33363         openat: detect Solaris fchownat bug
33364         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
33365         penalizing glibc chownat when only lchownat is broken.
33366         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
33367         trailing slash bugs.
33368         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
33369         * modules/openat-tests (Files): Include more files.
33370         (Depends-on): Add mgetgroups, sleep, stat-time.
33371         (configure.ac): Add additional checks.
33372         (Makefile.am): Build new test.
33373         * tests/test-fchownat.c: New file.
33374
33375         lchown: detect Solaris and FreeBSD bug
33376         * lib/lchown.c (rpl_lchown): Work around bug.
33377         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
33378         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33379         * modules/unistd (Makefile.am): Populate it.
33380         * lib/unistd.in.h (lchown): Update declaration.
33381         * doc/posix-functions/lchown.texi (lchown): Document the bug.
33382         * modules/lchown-tests: New file.
33383         * tests/test-lchown.h (test_lchown): Likewise.
33384         * tests/test-lchown.c (main): Likewise.
33385
33386         chown: detect Solaris and FreeBSD bug
33387         * lib/chown.c (rpl_chown): Work around bug.
33388         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
33389         (gl_PREREQ_CHOWN): Delete.
33390         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33391         * modules/unistd (Makefile.am): Populate it.
33392         * lib/unistd.in.h (chown): Update declaration.
33393         * lib/lchown.c (chown): Update client.
33394         * modules/lchown (Depends-on): Add lstat.
33395         * doc/posix-functions/chown.texi (chown): Document the bug.
33396         * doc/posix-functions/getgroups.texi (getgroups): Document
33397         getgroups pitfall.
33398         * modules/chown-tests: New file.
33399         * tests/test-chown.h (test_chown): Likewise.
33400         * tests/test-chown.c (main): Likewise.
33401
33402 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
33403
33404         gnulib-tool: correctly detect absence of m4 directories
33405         * gnulib-tool: Avoid extra newline on data passed to wc -l.
33406
33407 2009-11-14  Jim Meyering  <meyering@redhat.com>
33408
33409         maint.mk: Prohibit inclusion of "xalloc.h" without use.
33410         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33411
33412 2009-11-14  John W. Eaton  <jwe@gnu.org>
33413
33414         strftime.h: wrap funtion declaration in extern "C" block
33415         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
33416
33417 2009-11-13  Eric Blake  <ebb9@byu.net>
33418
33419         getgroups: avoid compiler warning
33420         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
33421
33422         getgroups: work around FreeBSD bug
33423         * lib/getgroups.c (rpl_getgroups): Work around the bug.
33424         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
33425         * doc/posix-functions/getgroups.texi (getgroups): Document it.
33426         * tests/test-getgroups.c (main): Fix buffer overrun.
33427
33428         getgroups: avoid compilation failure
33429         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
33430         * modules/getgroups (Depends-on): Add stdint.
33431
33432 2009-11-13  Jim Meyering  <meyering@redhat.com>
33433
33434         test-getgroups: avoid compilation failure
33435         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
33436
33437 2009-11-13  Eric Blake  <ebb9@byu.net>
33438
33439         mgetgroups: new module, taken from coreutils
33440         * modules/mgetgroups: New file.
33441         * lib/mgetgroups.h: Likewise.
33442         * lib/mgetgroups.c (mgetgroups): Likewise.
33443         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
33444         * MODULES.html.sh (Users and groups): Mention it.
33445
33446         getgroups: don't expose GETGROUPS_T to user
33447         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
33448         an element at a time if GETGROUPS_T is wrong size.
33449         * lib/getugroups.h (getugroups): Change signature.
33450         * lib/unistd.in.h (getgroups): Likewise.
33451         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
33452         signature needs fixing.
33453         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
33454         AC_TYPE_GETGROUPS.
33455         * modules/group-member (Depends-on): Add getgroups.
33456         * lib/group-member.c (group_info, get_group_info): Use gid_t.
33457         (group_member): Rely on getgroups replacement.
33458         * lib/getugroups.c (getugroups): Use gid_t.
33459         * tests/test-getgroups.c (main): Likewise.
33460         * NEWS: Mention the signature change.
33461         * doc/posix-functions/getgroups.texi (getgroups): Mention the
33462         problem with signature.
33463         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
33464         GETGROUPS_T is still useful for setgroups.
33465
33466         getgroups, getugroups: provide stubs for mingw
33467         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
33468         * lib/getugroups.c (getugroups): Likewise.
33469         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
33470         function.  Modernize replacement scheme.
33471         (gl_PREREQ_GETGROUPS): Delete.
33472         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
33473         * modules/getgroups (configure.ac): Declare witness.
33474         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33475         * modules/unistd (Depends-on): Substitute witness.
33476         * lib/unistd.in.h (getgroups): Declare replacement.
33477
33478         getgroups: avoid calling exit
33479         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
33480         drop xalloc.
33481         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
33482         dependencies.
33483         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
33484         exiting, in the rare case of malloc failure.
33485
33486         getgroups: fix logic error
33487         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
33488         has more than 20 groups.
33489         * modules/getgroups-tests: New test.
33490         * tests/test-getgroups.c: New file.
33491
33492 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33493
33494         * tests/test-base64.c: Improve.
33495
33496 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33497
33498         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
33499         Blake <ebb9@byu.net>.
33500
33501 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33502
33503         * tests/test-xvasprintf.c: Add %s%s related checks.
33504
33505 2009-11-12  Eric Blake  <ebb9@byu.net>
33506
33507         version-etc: match standards.texi style
33508         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
33509         and use <> only for URLs.
33510
33511 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
33512
33513         fts: do not fail on a submount during traversal
33514         * lib/fts.c (fts_build): Read the stat info again after opening
33515         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
33516         Original report at http://bugzilla.redhat.com/501848.
33517
33518 2009-11-12  Jim Meyering  <meyering@redhat.com>
33519
33520         bootstrap: sync from coreutils
33521         * build-aux/bootstrap (bootstrap_epilogue): New function.
33522         Use git_modules_config in one more place.  This make bootstrap's
33523         --gnulib-srcdir option more useful for testing.
33524
33525         bootstrap: generalize autoheader check
33526         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
33527         AC_CONFIG_HEADERS.
33528
33529 2009-11-11  Eric Blake  <ebb9@byu.net>
33530
33531         mkfifoat: use new modules for Solaris and BSD bugs
33532         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
33533         * lib/mkfifoat.c (mknodat): Split...
33534         * lib/mknodat.c (mknodat): ...into new file.
33535         * modules/mkfifoat (Files): Ship new file.
33536         (Depends-on): Add mkfifo, mknod.
33537         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
33538         (Depends-on): Add symlink.
33539         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
33540         redundant with test_mkfifo.h.
33541         (do_mkfifoat, do_mknodat): New helpers.
33542
33543         mknod: new module
33544         * modules/mknod: New file.
33545         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
33546         * lib/mknod.c (mknod): Likewise.
33547         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33548         defaults.
33549         * modules/sys_stat (Makefile.am): Substitute them.
33550         * lib/sys_stat.in.h (mknod): Declare replacement.
33551         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33552         Document it.
33553         * doc/posix-functions/mknod.texi (mknod): Likewise.
33554         * modules/mknod-tests: New test.
33555         * tests/test-mknod.c: Likewise.
33556
33557         mkfifo: new module
33558         * modules/mkfifo: New file.
33559         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
33560         * lib/mkfifo.c (mkfifo): Likewise.
33561         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33562         defaults.
33563         * modules/sys_stat (Makefile.am): Substitute them.
33564         * lib/sys_stat.in.h (mkfifo): Declare replacement.
33565         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33566         Document it.
33567         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
33568         * modules/mkfifo-tests: New test.
33569         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
33570         from test-mkfifoat.c.
33571         * tests/test-mkfifo.c: New file.
33572
33573         readlink: detect FreeBSD bug
33574         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
33575         slash on symlink.
33576         * doc/posix-functions/readlink.texi (readlink): Document the bug.
33577         * tests/test-readlink.h (test_readlink): Enhance test.
33578
33579         symlink: detect FreeBSD bug
33580         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
33581         slash on symlink.
33582         * doc/posix-functions/symlink.texi (symlink): Document the bug.
33583         * tests/test-symlink.h (test_symlink): Enhance test.
33584
33585 2009-11-10  Eric Blake  <ebb9@byu.net>
33586
33587         link: detect FreeBSD bug
33588         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
33589         symlink.
33590         * doc/posix-functions/link.texi (link): Document the bug.
33591         * tests/test-link.h (test_link): Enhance test.
33592         * tests/test-linkat.c (main): Update caller.
33593
33594         unlink, remove: detect FreeBSD bug
33595         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
33596         slash on symlink.
33597         * doc/posix-functions/unlink.texi (unlink): Document the bug.
33598         * doc/posix-functions/remove.texi (remove): Likewise.
33599         * tests/test-unlink.h (test_unlink): Enhance test.
33600         * tests/test-remove.c (main): Likewise.
33601
33602 2009-11-09  Eric Blake  <ebb9@byu.net>
33603
33604         rename: detect FreeBSD bug
33605         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
33606         slash on symlink.
33607         * modules/renameat-tests (Depends-on): Add filenamecat.
33608         * tests/test-rename.h (test_rename): Allow one more errno.
33609         * tests/test-renameat.c (main): Likewise.
33610         * doc/posix-functions/rename.texi (rename): Document the bug.
33611
33612         open: detect FreeBSD bug
33613         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
33614         symlink.
33615         * doc/posix-functions/open.texi (open): Document the bug.
33616         * doc/posix-functions/utimes.texi (utimes): Likewise.
33617         * tests/test-open.h (test_open): Add parameters, and test symlink
33618         handling.
33619         * tests/test-open.c (main): Adjust caller.
33620         * tests/test-fcntl-safer.c (main): Likewise.
33621         * modules/open-tests (Depends-on): Add stdbool, symlink.
33622         * modules/fcntl-safer-tests (Depends-on): Likewise.
33623         * tests/test-openat.c (main): Add test-open tests.
33624
33625         stat: detect FreeBSD bug
33626         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
33627         symlink.
33628         * doc/posix-functions/stat.texi (stat): Document the bug.
33629         * tests/test-stat.h (test_stat_func): Add argument.
33630         * tests/test-stat.c (main): Adjust caller.
33631         * tests/test-fstatat.c (main): Likewise.
33632         * modules/stat-tests (Depends-on): Add stdbool, symlink.
33633         Reported by Jim Meyering.
33634
33635 2009-11-09  James Youngman  <jay@gnu.org>
33636
33637         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
33638         * lib/strftime.c: Correct placement of #include "ignore-value.h".
33639
33640 2009-11-08  Jim Meyering  <meyering@redhat.com>
33641
33642         utimens: remove invalid futimesat call
33643         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
33644         It used the file descriptor of the target file as the DIR_FD
33645         parameter and NULL as the file name.  That caused failure with
33646         errno == EFAULT on FreeBSD-8.0-rc2
33647
33648 2009-11-07  Eric Blake  <ebb9@byu.net>
33649
33650         fflush, freadseek: use fseeko, not fseek
33651         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
33652         (clear_ungetc_buffer): Avoid potential problems on large files.
33653         * lib/freadseek.c (freadseek): Likewise.
33654         * modules/freadseek (Depends-on): Add fseeko.
33655         * modules/fseek (configure.ac): Set a witness.
33656         * tests/test-fflush.c (main): Use fseeko.
33657         * tests/test-fpurge.c (fseek): Disable link warning.
33658         * tests/test-freadable.c (fseek): Likewise.
33659         * tests/test-freading.c (fseek): Likewise.
33660         * tests/test-fseeko.c (fseek): Likewise.
33661         * tests/test-ftell.c (fseek): Likewise.
33662         * tests/test-ftello.c (fseek): Likewise.
33663         * tests/test-fwritable.c (fseek): Likewise.
33664         * tests/test-fwriting.c (fseek): Likewise.
33665
33666 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33667
33668         * modules/memchr (Depends-on): Drop getpagesize dependency.
33669
33670 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33671
33672         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
33673         Reported by Ludovic Courtès.
33674         * build-aux/pmccabe2html: Improve example usage.
33675         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
33676
33677 2009-11-06  Jim Meyering  <meyering@redhat.com>
33678
33679         do-release-commit-and-tag: New module.
33680         Automate the release-commit and tag process.
33681         * build-aux/do-release-commit-and-tag: New script, from coreutils.
33682         * modules/do-release-commit-and-tag: New file.
33683         * MODULES.html.sh (Support for maintaining and releasing): Add it.
33684
33685 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33686
33687         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
33688         because test-select.c uses inet_pton.
33689
33690 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33691
33692         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
33693         GETADDRINFO_LIB.  Bump serial number.
33694         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
33695         Suggested by Eric Blake <ebb9@byu.net>.
33696
33697 2009-11-05  Eric Blake  <ebb9@byu.net>
33698
33699         strtod: detect darwin bug
33700         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
33701         Reported by Leo Davis.
33702
33703         freopen-safer: new module
33704         * modules/freopen-safer: New module.
33705         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
33706         * lib/freopen-safer.c (freopen_safer): New file.
33707         * lib/stdio-safer.h (freopen_safer): New declaration.
33708         * lib/stdio--.h (freopen): New override.
33709         * MODULES.html.sh (File stream based Input/Output): Mention it.
33710         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
33711         freopen-safer module.
33712         * doc/posix-functions/stderr.texi (stderr): Likewise.
33713         * doc/posix-functions/stdin.texi (stdin): Likewise.
33714         * doc/posix-functions/stdout.texi (stdout): Likewise.
33715         * modules/freopen-safer-tests: New test.
33716         * tests/test-reopen-safer.c: New file.
33717
33718 2009-11-05  Jim Meyering  <meyering@redhat.com>
33719
33720         maint.mk: Prohibit inclusion of "close-stream.h" without use.
33721         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33722
33723 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33724
33725         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
33726
33727 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33728
33729         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
33730
33731 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33732
33733         Fix link error.
33734         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33735         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33736
33737 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33738
33739         * tests/test-func.c: Also test value of __func__.
33740
33741 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33742
33743         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
33744         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
33745
33746 2009-11-05  Bruno Haible  <bruno@clisp.org>
33747
33748         Fix link error.
33749         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33750         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33751         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
33752
33753 2009-11-05  Bruno Haible  <bruno@clisp.org>
33754
33755         Tests for module 'inet_pton'.
33756         * modules/inet_pton-tests: New file.
33757         * tests/test-inet_pton.c: New file.
33758
33759 2009-11-05  Bruno Haible  <bruno@clisp.org>
33760
33761         Tests for module 'inet_ntop'.
33762         * modules/inet_ntop-tests: New file.
33763         * tests/test-inet_ntop.c: New file.
33764
33765 2009-11-04  Eric Blake  <ebb9@byu.net>
33766
33767         stdlib-safer: wrap all mkstemp variants
33768         * modules/mkostemp (configure.ac): Set witness.
33769         * modules/mkostemps (configure.ac): Likewise.
33770         * modules/mkstemps (configure.ac): Likewise.
33771         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
33772         (mkstemps_safer): Wrap more functions.
33773         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
33774         wrapping.
33775         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
33776         (mkstemps_safer): Implement the wrappers.
33777
33778         mkstemps, mkostemps: new modules
33779         * modules/mkostemps: New module.
33780         * modules/mkstemps: Likewise.
33781         * lib/mkostemps.c (mkostemps): New file.
33782         * lib/mkstemps.c (mkstemps): Likewise.
33783         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
33784         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
33785         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
33786         * modules/stdlib (Makefile.am): Substitute them.
33787         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
33788         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
33789         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
33790         * doc/gnulib.texi (Glibc stdlib.h): Include them.
33791         * MODULES.html.sh (File system functions): Mention them.
33792
33793         tempname: resync from glibc
33794         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
33795         same values for __GT_FILE as glibc.  Abort even when assertions
33796         are disabled.
33797         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
33798         match its value otherwise.  Allow idempotent inclusion.
33799         * lib/mkdtemp.c (mkdtemp): Adjust caller.
33800         * lib/mkostemp.c (mkostemp): Likewise.
33801         * lib/mkstemp.c (mkstemp): Likewise.
33802         * lib/tmpfile.c (tmpfile): Likewise.
33803         * NEWS: Document this.
33804
33805         utimens: fix use of futimens on older Linux
33806         * lib/utimens.c (fdutimens): Use updated, rather than original,
33807         timespec to avoid bug in older Linux kernel.
33808         Reported by Simon Josefsson.
33809
33810 2009-11-04  Bruno Haible  <bruno@clisp.org>
33811
33812         Make num_processors more flexible and consistent.
33813         * lib/nproc.h (enum nproc_query): New type.
33814         (num_processors): Add a 'query' argument.
33815         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
33816         (num_processors): Add a 'query' argument. Test the value of the
33817         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
33818         mingw, count the number of CPUs available for the current process.
33819         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
33820         Check for sched_getaffinity and sched_getaffinity_np.
33821         * modules/nproc (Depends-on): Add c-ctype, extensions.
33822         * NEWS: Mention the change.
33823
33824 2009-11-03  Bruno Haible  <bruno@clisp.org>
33825
33826         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
33827
33828 2009-11-03  Jim Meyering  <meyering@redhat.com>
33829
33830         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
33831         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
33832         if it is defined.
33833
33834 2009-11-02  Eric Blake  <ebb9@byu.net>
33835
33836         mktime, timegm: share common declaration
33837         * lib/mktime-internal.h: New file.
33838         * lib/mktime.c: Use it rather than open-coding a declaration.
33839         * lib/timegm.c: Likewise.
33840         * modules/mktime (Files): Ship it.
33841         * modules/timegm (Files): Likewise.
33842         Suggested by Bruno Haible.
33843
33844         test-update-copyright: update test to match script changes
33845         * tests/test-update-copyright.sh: Avoid hard-coding perl
33846         location.  Don't update *.bak created by earlier runs.
33847
33848 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
33849             Simon Josefsson  <simon@josefsson.org>
33850             Bruno Haible  <bruno@clisp.org>
33851
33852         Fix link error on Solaris 8.
33853         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
33854         also in libnsl. Define also INET_PTON_LIB.
33855         * modules/inet_pton (Link): New section.
33856
33857 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33858             Bruno Haible  <bruno@clisp.org>
33859
33860         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
33861         * modules/inet_ntop (Link): New section.
33862         Reported by Boyan Kasarov <bkasarov@gmail.com>.
33863
33864 2009-11-02  Eric Blake  <ebb9@byu.net>
33865
33866         maint: avoid compiler warnings in m4 macros
33867         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
33868         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
33869
33870 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33871
33872         * m4/pmccabe2html.m4: Remove file.
33873         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
33874         function.  Change maintainer.
33875         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
33876         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
33877         Courtès).
33878
33879 2009-10-31  Eric Blake  <ebb9@byu.net>
33880
33881         fseeko: fix m4 regression
33882         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
33883         regression from 2009-10-27.
33884         Reported by Ralf Wildenhues.
33885
33886 2009-10-31  Jim Meyering  <meyering@redhat.com>
33887
33888         inttostr: aesthetics and improved (compile-time) safety
33889         Define inttype_is_signed rather than inttype_is_unsigned,
33890         since the sole use is via "#if inttype_is_signed".
33891         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
33892         inttype_is_unsigned.
33893         * lib/offtostr.c (inttype_is_signed): Likewise.
33894         * lib/uinttostr.c (inttype_is_signed): Likewise.
33895         * lib/umaxtostr.c (inttype_is_signed): Likewise.
33896         * lib/inttostr.c (inttostr): Use verify to cross-check the
33897         inttype_is_signed value and the signedness of the actual type.
33898         * modules/inttostr (Depends-on): Add verify.
33899
33900 2009-10-30  Eric Blake  <ebb9@byu.net>
33901
33902         build: avoid compiler warnings
33903         * lib/fchmodat.c (lchmod): Mark unused variables.
33904         * lib/getopt.c (_getopt_initialize): Likewise.
33905         * lib/mktime.c (__mktime_internal): Provide prototype.
33906         * lib/inttostr.c (inttostr): Avoid compiler warning even with
33907         older gcc that do not understand #pragma GCC diagnostic.
33908         * lib/uinttostr.c (inttype_is_unsigned): Define.
33909         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
33910
33911 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33912
33913         stat: fix compilation on AIX
33914         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
33915         only see struct stat64.
33916
33917 2009-10-30  Eric Blake  <ebb9@byu.net>
33918
33919         exclude: make more robust
33920         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
33921         rather than masking a coding bug.
33922         Suggested by Bruno Haible.
33923
33924 2009-10-30  Jim Meyering  <meyering@redhat.com>
33925
33926         perl scripts: remove #!/usr/bin/perl in favor of more portable...
33927         Rather than putting #!/usr/bin/perl on the first line,
33928         start with a variant of what's recommended by "man perlrun" that
33929         invokes the first "perl" program from your shell's search path.
33930         * build-aux/gitlog-to-changelog: Replace #!... as above.
33931         Add a "Local Variables" perl mode setting.
33932         Prompted by a patch from Ludovic Courtès.
33933         Improved by Eric Blake.
33934         * build-aux/useless-if-before-free: Likewise.
33935         * build-aux/announce-gen: Likewise.
33936         * build-aux/update-copyright: Likewise.
33937
33938 2009-10-29  Eric Blake  <ebb9@byu.net>
33939
33940         filenamecat-lgpl: adjust clients
33941         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
33942         filenamecat.
33943         * modules/renameat (Depends-on): Likewise.
33944
33945         filenamecat: split into filenamecat-lgpl
33946         * modules/filenamecat-lgpl: New module.
33947         * modules/filenamecat (Files): Move library-safe files into
33948         filenamecat-lgpl.
33949         (Depends-on): Add filenamecat-lgpl.
33950         (configure.ac): Declare witness.
33951         * lib/filenamecat.h (file_name_concat): Only declare when using
33952         GPL module.
33953         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
33954         Move...
33955         * lib/filenamecat-lgpl.c: ...into new file.
33956         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
33957         (gl_FILE_NAME_CONCAT): Use it.
33958         * MODULES.html.sh (File system functions): Mention new module.
33959
33960         argp: avoid memory leak
33961         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
33962         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
33963         base_name, since the latter malloc()s and can call exit().
33964         Leak introduced 2006-07-03.
33965
33966         dirname-lgpl: adjust clients that don't need full dirname
33967         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
33968         * modules/filenamecat (Depends-on): Likewise.
33969         * modules/linkat (Depends-on): Likewise.
33970         * modules/mkancesdirs (Depends-on): Likewise.
33971         * modules/mkdir (Depends-on): Likewise.
33972         * modules/openat (Depends-on): Likewise.
33973         * modules/savewd (Depends-on): Likewise.
33974         * modules/rename (Depends-on): Likewise.
33975         (License): Relax license.
33976         * modules/mkdir-tests (Depends-on): Drop progname.
33977         (Makefile.am): Delete unneeded LDADD.
33978         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
33979
33980         dirname: split into dirname-lgpl
33981         * modules/dirname-lgpl: New module.
33982         * modules/dirname (Files): Move library-safe files into
33983         dirname-lgpl.
33984         (Depends-on): Add dirname-lgpl.
33985         (configure.ac): Declare witness.
33986         * modules/double-slash-root (License): Relax license.
33987         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
33988         module.
33989         * lib/dirname.c (dir_len, mdir_name): Move...
33990         * lib/dirname-lgpl.c: ...into new file.
33991         * lib/basename.c (last_component, base_len): Move...
33992         * lib/basename-lgpl.c: ...into new file.
33993         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
33994         (gl_DIRNAME): Use it.
33995         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
33996         Mention new module.
33997         * modules/dirname-tests (Depends-on): Add progname.
33998         * tests/test-dirname.c (program_name): Delete.
33999
34000         mkdir: make safe for libraries
34001         * modules/mkdir (Depends-on): Drop xalloc.
34002         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
34003         exit.
34004
34005         tests: avoid some compiler warnings
34006         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
34007         literals.
34008         * tests/test-memchr.c (main): Avoid type mismatch.
34009         * tests/test-arpa_inet.c (main): Avoid unused parameters.
34010         * tests/test-base64.c (main): Likewise.
34011         * tests/test-getdelim.c (main): Likewise.
34012         * tests/test-gethostname.c (main): Likewise.
34013         * tests/test-getline.c (main): Likewise.
34014         * tests/test-netinet_in.c (main): Likewise.
34015         * tests/test-select.c (open_server_socket, main): Likewise.
34016         * tests/test-select-stdin.c (main): Likewise.
34017         * tests/test-sockets.c (main): Likewise.
34018         * tests/test-strsignal.c (main): Likewise.
34019         * tests/test-sys_select.c (main): Likewise.
34020         * tests/test-sys_socket.c (main): Likewise.
34021         * tests/test-u64.c (main): Likewise.
34022         * tests/test-xfprintf-posix.c (main): Likewise.
34023         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
34024
34025         sockets: avoid compiler warning
34026         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
34027
34028         maint: detect usage(1) and other suspicious exits
34029         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
34030
34031 2009-10-29  Jim Meyering  <meyering@redhat.com>
34032
34033         timespec: long-to-int truncation could make timespec_cmp malfunction
34034         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
34035         a multiple of 2^32 nanoseconds as no difference.
34036
34037 2009-10-28  Jim Meyering  <meyering@redhat.com>
34038
34039         fprintftime: wrap macro code argument in "do {...} while(0)"
34040         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
34041         cpy macro must be a statement that can be followed by a semicolon.
34042         Now that the else clause contains a comment and is hence longer
34043         than one line, I require curly braces.  That in turn requires
34044         that we wrap this code block in the standard do...while(0).
34045
34046         fprintftime: remove stray semicolon from previous change
34047         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
34048
34049         fprintftime: avoid a warning about ignored fwrite return value
34050         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
34051         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
34052         that is unsafe.
34053         * modules/fprintftime (Depends-on): Add ignore-value.
34054
34055         exclude: avoid an unwarranted warning
34056         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
34057
34058 2009-10-27  Eric Blake  <ebb9@byu.net>
34059
34060         fseek: avoid compilation failure when fflush is replaced
34061         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
34062         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
34063         module is in use.
34064         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
34065         module is not in use; since REPLACE_FSEEK worked otherwise.
34066         (GNULIB_FTELLO): Likewise for ftell.
34067         Reported by Ian Beckwith and others.
34068
34069 2009-10-27  Bruno Haible  <bruno@clisp.org>
34070
34071         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
34072         Reported by Jim Meyering.
34073
34074 2009-10-27  Jim Meyering  <jim@meyering.net>
34075             Bruno Haible  <bruno@clisp.org>
34076
34077         Avoid warning despite dropping the return value of fwrite.
34078         * lib/unicodeio.c: Include ignore-value.h.
34079         (fwrite_success_callback): Explicitly ignore fwrite's return value.
34080         * modules/unicodeio (Depends-on): Add ignore-value.
34081
34082 2009-10-26  Eric Blake  <ebb9@byu.net>
34083
34084         areadlinkat: fix fallback path
34085         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
34086         pointer and zero.
34087
34088 2009-10-22  Pádraig Brady  <P@draigBrady.com>
34089
34090         Use a better IO block size for modern systems
34091         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
34092         * lib/md2.c: Likewise.
34093         * lib/md4.c: Likewise.
34094         * lib/md5.c: Likewise.
34095         * lib/sha1.c: Likewise.
34096         * lib/sha256.c: Likewise.
34097         * lib/sha512.c: Likewise.
34098
34099 2009-10-22  Eric Blake  <ebb9@byu.net>
34100
34101         tests: avoid several compiler warnings
34102         * tests/test-getcwd.c (main): Avoid buffer underflow.
34103         * tests/test-getdate.c (main): String literals are not safe with
34104         putenv, so use setenv.  Declare unused argument.
34105         * modules/getdate-tests (Depends-on): Add setenv.
34106         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
34107         problems with string literals in char *.
34108         * tests/test-hash.c (main): Avoid shadowing declaration.
34109         (insert_new): Treat string literals as char const *.
34110         * tests/test-getopt.h (test_getopt): Likewise.
34111         (getopt_loop): Alter types to minimize casting elsewhere.
34112         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
34113         (test_getopt_long_posix): Likewise.
34114         (do_getopt_long): Add wrapper to minimize casting.
34115         * tests/test-atexit.c (clear_temp_file): Use void.
34116         * tests/test-areadlink-with-size.c (main): Declare unused
34117         arguments.
34118         * tests/test-areadlink.c (main): Likewise.
34119         * tests/test-areadlinkat-with-size.c (main): Likewise.
34120         * tests/test-areadlinkat.c (main): Likewise.
34121         * tests/test-canonicalize-lgpl.c (main): Likewise.
34122         * tests/test-canonicalize.c (main): Likewise.
34123         * tests/test-dirent-safer.c (main): Likewise.
34124         * tests/test-dirname.c (main): Likewise.
34125         * tests/test-dup2.c (main): Likewise.
34126         * tests/test-fchdir.c (main): Likewise.
34127         * tests/test-fcntl-h.c (main): Likewise.
34128         * tests/test-fcntl-safer.c (main): Likewise.
34129         * tests/test-fdopendir.c (main): Likewise.
34130         * tests/test-fdutimensat.c (main): Likewise.
34131         * tests/test-fflush.c (main): Likewise.
34132         * tests/test-filenamecat.c (main): Likewise.
34133         * tests/test-filevercmp.c (main): Likewise.
34134         * tests/test-fopen-safer.c (main): Likewise.
34135         * tests/test-fopen.c (main): Likewise.
34136         * tests/test-fpending.c (main): Likewise.
34137         * tests/test-fpurge.c (main): Likewise.
34138         * tests/test-freading.c (main): Likewise.
34139         * tests/test-fstatat.c (main): Likewise.
34140         * tests/test-fsync.c (main): Likewise.
34141         * tests/test-futimens.c (main): Likewise.
34142         * tests/test-getndelim2.c (main): Likewise.
34143         * tests/test-gettimeofday.c (main): Likewise.
34144         * tests/test-getopt.c (main): Likewise.
34145         * tests/test-i-ring.c (main): Likewise.
34146         * tests/test-inttypes.c (main): Likewise.
34147         * tests/test-link.c (main): Likewise.
34148         * tests/test-lstat.c (main): Likewise.
34149         * tests/test-math.c (main): Likewise.
34150         * tests/test-md5.c (main): Likewise.
34151         * tests/test-memchr2.c (main): Likewise.
34152         * tests/test-memrchr.c (main): Likewise.
34153         * tests/test-mkdir.c (main): Likewise.
34154         * tests/test-mkdirat.c (main): Likewise.
34155         * tests/test-mkfifoat.c (main): Likewise.
34156         * tests/test-open.c (main): Likewise.
34157         * tests/test-openat-safer.c (main): Likewise.
34158         * tests/test-openat.c (main): Likewise.
34159         * tests/test-quotearg.c (main): Likewise.
34160         * tests/test-rawmemchr.c (main): Likewise.
34161         * tests/test-readlink.c (main): Likewise.
34162         * tests/test-remove.c (main): Likewise.
34163         * tests/test-rename.c (main): Likewise.
34164         * tests/test-renameat.c (main): Likewise.
34165         * tests/test-rmdir.c (main): Likewise.
34166         * tests/test-sha1.c (main): Likewise.
34167         * tests/test-signal.c (main): Likewise.
34168         * tests/test-sigaction.c (main): Likewise.
34169         * tests/test-stat.c (main): Likewise.
34170         * tests/test-stat-time.c (main): Likewise.
34171         * tests/test-stddef.c (main): Likewise.
34172         * tests/test-stdint.c (main): Likewise.
34173         * tests/test-stdio.c (main): Likewise.
34174         * tests/test-stdlib.c (main): Likewise.
34175         * tests/test-strchrnul.c (main): Likewise.
34176         * tests/test-strerror.c (main): Likewise.
34177         * tests/test-string.c (main): Likewise.
34178         * tests/test-strtod.c (main): Likewise.
34179         * tests/test-strverscmp.c (main): Likewise.
34180         * tests/test-symlink.c (main): Likewise.
34181         * tests/test-symlinkat.c (main): Likewise.
34182         * tests/test-sys_stat.c (main): Likewise.
34183         * tests/test-sys_time.c (main): Likewise.
34184         * tests/test-time.c (main): Likewise.
34185         * tests/test-unistd.c (main): Likewise.
34186         * tests/test-unlink.c (main): Likewise.
34187         * tests/test-unlinkat.c (main): Likewise.
34188         * tests/test-utimens.c (main): Likewise.
34189         * tests/test-utimensat.c (main): Likewise.
34190         * tests/test-version-etc.c (main): Likewise.
34191         * tests/test-wchar.c (main): Likewise.
34192         * tests/test-wctype.c (main): Likewise.
34193         * tests/test-xprintf-posix.c (main): Likewise.
34194         * tests/test-posixtm.c (main): Likewise.
34195         (STREQ): Delete unused macro.
34196         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
34197         shadowed variables.
34198         * tests/test-memchr.c (main): Likewise.
34199
34200 2009-10-21  Eric Blake  <ebb9@byu.net>
34201
34202         areadlinkat: avoid failure on older glibc
34203         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
34204         rather than mis-comparing 0 against FUNC_RESULT of char*.
34205
34206 2009-10-21  Bruno Haible  <bruno@clisp.org>
34207
34208         * modules/stpncpy (License): Relicense under LGPLv2+.
34209         Reported by David Lutterkort <lutter@redhat.com>.
34210
34211 2009-10-20  Eric Blake  <ebb9@byu.net>
34212
34213         utimensat: work around Solaris 9 bug
34214         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
34215         has trailing slash bugs.
34216         * tests/test-lutimens.h (test_lutimens): Enhance test.
34217         * tests/test-utimens.h (test_utimens): Likewise.
34218         * doc/posix-functions/utime.texi (utime): Enhance documentation.
34219         * doc/posix-functions/utimes.texi (utimes): Likewise.
34220         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34221         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
34222         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
34223         * doc/posix-functions/futimens.texi (futimens): Likewise.
34224
34225         fdutimensat: new module
34226         * modules/fdutimensat: New file.
34227         * lib/fdutimensat.c (fdutimensat): Likewise.
34228         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
34229         * MODULES.html.sh (File system functions): Mention module.
34230         * modules/fdutimensat-tests: New test.
34231         * tests/test-fdutimensat.c: Likewise.
34232
34233         doc: regenerate INSTALL
34234         * doc/INSTALL: Reflect recent autoconf update.
34235         * doc/INSTALL.ISO: Likewise.
34236         * doc/INSTALL.UTF-8: Likewise.
34237
34238 2009-10-20  Pádraig Brady  <P@draigBrady.com>
34239
34240         acl: warn if ACL support is not detected
34241         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
34242
34243 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
34244
34245         * lib/nproc.h: Add extern "C" block for C++.
34246
34247 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
34248             Bruno Haible  <bruno@clisp.org>
34249
34250         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
34251         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
34252         * doc/posix-functions/isalpha.texi: Likewise.
34253         * doc/posix-functions/isblank.texi: Likewise.
34254         * doc/posix-functions/iscntrl.texi: Likewise.
34255         * doc/posix-functions/isdigit.texi: Likewise.
34256         * doc/posix-functions/isgraph.texi: Likewise.
34257         * doc/posix-functions/islower.texi: Likewise.
34258         * doc/posix-functions/isprint.texi: Likewise.
34259         * doc/posix-functions/ispunct.texi: Likewise.
34260         * doc/posix-functions/isspace.texi: Likewise.
34261         * doc/posix-functions/isupper.texi: Likewise.
34262         * doc/posix-functions/isxdigit.texi: Likewise.
34263
34264 2009-10-18  Bruno Haible  <bruno@clisp.org>
34265
34266         Tests for module 'isblank'.
34267         * modules/isblank-tests: New file.
34268         * tests/test-isblank.c: New file.
34269
34270         New module 'isblank'.
34271         * lib/isblank.c: New file.
34272         * m4/isblank.m4: New file.
34273         * modules/isblank: New file.
34274         * doc/posix-functions/isblank.texi: Mention the new module.
34275
34276 2009-10-18  Bruno Haible  <bruno@clisp.org>
34277
34278         New module 'ctype'.
34279         * lib/ctype.in.h: New file.
34280         * m4/ctype.m4: New file.
34281         * modules/ctype: New file.
34282         * doc/posix-headers/ctype.texi: Mention the new module.
34283
34284 2009-10-18  Jim Meyering  <meyering@redhat.com>
34285
34286         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
34287         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
34288         right after its initialization, rather than farther down.
34289         Keeping these in close proximity makes it easier to ensure
34290         that each such variable is initialized.  E.g.,
34291
34292             LIB_CLOCK_GETTIME=
34293             AC_SUBST([LIB_CLOCK_GETTIME])
34294
34295         This change also increments these serial numbers.
34296         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
34297         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34298         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34299
34300 2009-10-18  Bruno Haible  <bruno@clisp.org>
34301
34302         Don't let environment variables perturb build.
34303         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
34304         (gl_PREREQ_GETHRXTIME): ... not here.
34305
34306 2009-10-18  Bruno Haible  <bruno@clisp.org>
34307
34308         Avoid symlink attack in localcharset module.
34309         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
34310         (O_NOFOLLOW): Define fallback.
34311         (get_charset_aliases): Don't open the file if it is a symbolic link.
34312         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
34313         gl_FCNTL_H.
34314         (gl_FCNTL_H): Require it.
34315         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
34316         * modules/localcharset (Files): Add m4/fcntl_h.m4.
34317         Reported by Fergal Glynn <fglynn@veracode.com>.
34318
34319 2009-10-18  Bruno Haible  <bruno@clisp.org>
34320
34321         Implement nproc for mingw.
34322         * lib/nproc.c: Include <windows.h>
34323         (num_processors): On native Windows platforms, try GetSystemInfo.
34324
34325 2009-10-18  Bruno Haible  <bruno@clisp.org>
34326
34327         Implement nproc for IRIX.
34328         * lib/nproc.c: Include <sys/sysmp.h>.
34329         (num_processors): On IRIX systems, try sysmp.
34330         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
34331
34332 2009-10-18  Bruno Haible  <bruno@clisp.org>
34333
34334         Implement nproc for HP-UX.
34335         * lib/nproc.c: Include <sys/pstat.h>
34336         (num_processors): On HP-UX systems, try pstat_getdynamic.
34337         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
34338         pstat_getdynamic.
34339
34340 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
34341             Bruno Haible  <bruno@clisp.org>
34342
34343         Implement nproc for NetBSD, OpenBSD.
34344         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
34345         (ARRAY_SIZE): New macro.
34346         (num_processors): On BSD systems, try sysctl of HW_NCPU.
34347         * m4/nproc.m4: New file.
34348         * modules/nproc (Files): Add m4/nproc.m4.
34349         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
34350         (Makefile.am): Instead, augment lib_SOURCES.
34351
34352 2009-10-18  Bruno Haible  <bruno@clisp.org>
34353
34354         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
34355         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
34356         sys/param.h.
34357
34358 2009-10-16  Eric Blake  <ebb9@byu.net>
34359
34360         utimensat: new module
34361         * modules/utimensat: New file.
34362         * lib/utimensat.c (utimensat): Likewise.
34363         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34364         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
34365         so we can work around Linux bugs.
34366         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34367         * modules/sys_stat (Makefile.am): Substitute them.
34368         * lib/sys_stat.in.h (utimensat): Declare it.
34369         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34370         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34371         * modules/utimensat-tests: New test.
34372         * tests/test-utimensat.c: Likewise.
34373
34374         utimens: let lutimens work on non-symlinks
34375         * lib/utimens.c (lutimens): Fall back to utimens rather than
34376         failing with ENOSYS, when file is not a symlink.
34377         (utimens): Reduce redirection.
34378         * tests/test-lutimens.h (test_lutimens): Update test to cover
34379         non-symlinks.
34380         * tests/test-utimens.h (test_utimens): Update test to cover
34381         symlinks.
34382         * tests/test-utimens.c (main): Update caller.
34383
34384         utimens: cache whether utimensat syscall works
34385         * lib/utimens.c (utimensat_works_really): New cache variable.
34386         (fdutimens, lutimens): Use it to avoid failing syscall.
34387
34388         test-stat-time, test-utimens: improve portability
34389         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
34390         ext4 on alpha, and for cygwin.
34391         * tests/test-utimens-common.h: New file.
34392         (nap): Factor delays into single function.
34393         * tests/test-lutimens.h (test_lutimens): Use new header.
34394         * tests/test-futimens.h (test_futimens): Likewise.
34395         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
34396         timestamps to occur from same machine, as was done previously for
34397         test_utimens.
34398         * modules/utimens-tests (Files): Ship new file.
34399         * modules/futimens-tests (Files): Likewise.
34400         Reported in part by Jim Meyering.
34401
34402         sys_stat: sort replacement declarations
34403         * lib/sys_stat.in.h: Sort declarations.
34404         * lib/futimens.c (futimens): Fix typo.
34405
34406 2009-10-15  Jim Meyering  <meyering@redhat.com>
34407
34408         don't let environment settings perturb build
34409         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
34410         could cause a configure-time and/or build-time malfunction.
34411         Typically, a configure-time function-in-library test is performed
34412         via code like this:
34413
34414           LIB_VAR=
34415           AC_SUBST([LIB_VAR])
34416           prefix_saved_LIBS=$LIBS
34417             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
34418                        [test "$ac_cv_search_FUNC" = "none required" ||
34419                         LIB_VAR=$ac_cv_search_FUNC])
34420           LIBS=$prefix_saved_LIBS
34421
34422         However, in each of the files affected by this change, the LIB_VAR=
34423         initialization was omitted.  Thus, when set in the environment, its
34424         value would propagate into generated Makefiles when FUNC is not found
34425         in LIB_NAME.
34426         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
34427         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34428         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34429
34430 2009-10-14  Eric Blake  <ebb9@byu.net>
34431
34432         fchdir: avoid infinite recursion in mingw
34433         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
34434         recursing.
34435
34436         test-stat-time: port to mingw
34437         * tests/test-stat-time.c (force_unlink): Return a value.
34438         (test_ctime) [W32]: Fix compilation error.
34439         (nap): Don't call usleep with too large an argument.  Use
34440         force_unlink.
34441         * doc/pastposix-functions/usleep.texi (usleep): Document the
34442         portability issue.
34443
34444 2009-10-13  Jim Meyering  <meyering@redhat.com>
34445
34446         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
34447         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
34448         * modules/pipe-filter-ii: Likewise.
34449         * modules/sys_socket-tests: Likewise.
34450         * modules/tsearch-tests: Likewise.
34451         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
34452         (check): Depend on it.
34453
34454 2009-10-12  Eric Blake  <ebb9@byu.net>
34455
34456         utimens-tests: port to NFS file systems
34457         * tests/test-utimens.h (test_utimens): Refactor utimecmp
34458         comparisons to avoid spurious failures from timestamp drift
34459         between NFS machines.
34460
34461 2009-10-12  Eric Blake  <ebb9@byu.net>
34462
34463         stat-time-tests: minor cleanups
34464         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
34465         * tests/test-stat-time.c (nap): Separate assignment from call.
34466         Suggested by Paolo Bonzini and Bruno Haible.
34467
34468         sys_stat: guarantee struct timespec
34469         * lib/sys_stat.in.h (includes): Always include <time.h>
34470         * modules/sys_stat (Depends-on): Add time.
34471         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
34472         mode_t permission values.
34473         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
34474         get at subsecond timestamps.
34475
34476 2009-10-10  Eric Blake  <ebb9@byu.net>
34477
34478         futimens: new module
34479         * modules/futimens: New file.
34480         * lib/futimens.c (futimens): Likewise.
34481         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
34482         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
34483         we can work around Linux bugs.
34484         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34485         * modules/sys_stat (Makefile.am): Substitute them.
34486         * lib/sys_stat.in.h (futimens): Declare it.
34487         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34488         * doc/posix-functions/futimens.texi (futimens): Likewise.
34489         * modules/futimens-tests: New test.
34490         * tests/test-futimens.c: Likewise.
34491
34492         utimens: introduce fdutimens
34493         * lib/utimens.h (fdutimens): New prototype.
34494         * lib/utimens.c (gl_futimens): Move guts...
34495         (fdutimens): ...to new interface.
34496         * tests/test-utimens.c (do_fdutimens): Use it.
34497
34498         utimens: add UTIME_NOW and UTIME_OMIT support
34499         * lib/utimens.c (validate_timespec, update_timespec): New helper
34500         functions.
34501         (gl_futimens, lutimens): Use them.
34502         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
34503         stdbool, sys_stat.
34504         (Link): Mention resulting library dependency.
34505         * modules/utimecmp (Link): Likewise.
34506         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
34507         (Makefile.am): Pick up library dependency.
34508         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
34509         definition.
34510         * tests/test-sys_stat.c: Test the definitions.
34511         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
34512         * NEWS: Document library dependency.
34513
34514         utimecmp: support symlink timestamps
34515         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
34516         hashing when possible.  Use pathconf when available.
34517         (SYSCALL_RESOLUTION): Recognize tighter resolution.
34518         * modules/utimecmp (Depends-on): Add lstat.
34519
34520         utimens: add lutimens interface
34521         * lib/utimens.c (lutimens): New function.
34522         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
34523         * lib/utimens.h (lutimens): Declare new interface.
34524         * tests/test-utimens.c (main): Enhance test.
34525         * tests/test-lutimens.h (test_lutimens): New file.
34526         * modules/utimens-tests (Files): Distribute it.
34527         (Depends-on): Add symlink.
34528         (configure.ac): Check for usleep.
34529
34530         utimens: validate futimens usage
34531         * lib/utimens.c (gl_futimens): Require valid fd up front, using
34532         fewer syscalls on failure later on.  Avoid compiler warning on
34533         mingw.
34534         * modules/utimens (Depends-on): Add dup2.
34535
34536         utimens: add test
34537         * modules/utimens-tests: New test.
34538         * tests/test-utimens.h: New file.
34539         * tests/test-futimens.h: Likewise.
34540         * tests/test-utimens.c: Likewise.
34541
34542         doc: mention timestamp portability issues
34543         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
34544         instead.
34545         * doc/posix-functions/utime.texi (utime): Likewise.
34546         * doc/posix-functions/utimes.texi (utimes): Likewise.
34547         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
34548         instead.
34549         * doc/posix-functions/futimens.texi (futimens): Mention utimens
34550         module.
34551         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34552         Mention weakness with symlink timestamps.
34553         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
34554         to utimensat/futimens instead.
34555         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
34556
34557         test-dup2: enhance test
34558         * tests/test-dup2.c (main): Also check AT_FDCWD.
34559
34560         test-stat-time: avoid more spurious failures
34561         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
34562         xfs; and avoid race if the two timestamps cross quantization edge.
34563
34564         relocatable: prefer 'file system' over 'filesystem'
34565         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
34566         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
34567         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
34568         * doc/relocatable.texi (Enabling Relocatability): Likewise.
34569         * lib/relocatable.c (compute_curr_prefix): Likewise.
34570
34571 2009-10-10  Jim Meyering  <meyering@redhat.com>
34572
34573         stat-time-tests: check for the usleep function
34574         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
34575
34576 2009-10-10  Bruno Haible  <bruno@clisp.org>
34577
34578         * modules/xnanosleep: Put the Link section after the Include section.
34579
34580 2009-10-09  Eric Blake  <ebb9@byu.net>
34581
34582         dup2: work around FreeBSD 6.1 bug
34583         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
34584         * doc/posix-functions/dup2.texi (dup2): Document it.
34585         Reported by Nelson H. F. Beebe and Jim Meyering.
34586
34587         test-stat-time: port to buggy NFS clients
34588         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
34589         (test_ctime): Also skip test if mtime and ctime are skewed.
34590
34591         maint: prefer 'file system' over 'filesystem'
34592         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34593         * doc/posix-functions/lstat.texi (lstat): Likewise.
34594         * lib/file-has-acl.c (file_has_acl): Likewise.
34595         * lib/fwriteerror.c [TEST]: Likewise.
34596         * tests/test-areadlink.h (test_areadlink): Likewise.
34597         * tests/test-areadlinkat-with-size.c (main): Likewise.
34598         * tests/test-areadlinkat.c (main): Likewise.
34599         * tests/test-canonicalize-lgpl.c (main): Likewise.
34600         * tests/test-canonicalize.c (main): Likewise.
34601         * tests/test-fstatat.c (main): Likewise.
34602         * tests/test-linkat.c (main): Likewise.
34603         * tests/test-lstat.h (test_lstat_func): Likewise.
34604         * tests/test-mkdir.h (test_mkdir): Likewise.
34605         * tests/test-readlink.h (test_readlink): Likewise.
34606         * tests/test-remove.c (main): Likewise.
34607         * tests/test-rename.h (test_rename): Likewise.
34608         * tests/test-renameat.c (main): Likewise.
34609         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34610         * tests/test-symlink.h (test_symlink): Likewise.
34611         * tests/test-symlinkat.c (main): Likewise.
34612         * tests/test-unlink.h (test_unlink_func): Likewise.
34613         * tests/test-unlinkat.c (main): Likewise.
34614
34615         maint: make realtime library usage explicit
34616         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
34617         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
34618         * modules/settime (Link): Likewise.
34619         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
34620
34621         test-stat-time: speed up execution
34622         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
34623         warning on mingw.
34624         (nap): New helper function.
34625         (prepare_test): Use it to reduce sleep time.
34626         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
34627         execution.
34628         * modules/stat-time-tests (configure.ac): Check for usleep.
34629
34630 2009-10-09  Jim Meyering  <meyering@redhat.com>
34631
34632         selinux-h: always use getfilecon wrappers
34633         * lib/getfilecon.c: New file.
34634         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
34635         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
34636         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
34637         (fgetfilecon): Provide a stub.
34638         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
34639         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
34640         file unconditionally.
34641         When <selinux/selinux.h> is found, arrange to use wrappers.
34642         * modules/selinux-h (Files): Add getfilecon.c.
34643         (Makefile.am): Substitute include-next-related bits
34644         into the now-always-generated selinux/selinux.h file.
34645         * doc/glibc-functions/lgetfilecon.texi: New file.
34646         * doc/glibc-functions/fgetfilecon.texi: New file.
34647         * doc/glibc-functions/getfilecon.texi: New file.
34648         * doc/glibc-functions/getfilecon-desc.texi: New file.
34649         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
34650         which to pull in the new files.
34651         * MODULES.html.sh (Misc): Add selinux-h.
34652
34653 2009-10-08  Jim Meyering  <meyering@redhat.com>
34654
34655         unistd: fix comment typo
34656         * lib/unistd.in.h (euidaccess): Fix a comment typo.
34657
34658 2009-10-08  Eric Blake  <ebb9@byu.net>
34659
34660         areadlink: use SIZE_MAX consistently
34661         * modules/areadlink (Depends-on): Add stdint.
34662         * modules/areadlink-with-size (Depends-on): Likewise.
34663         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
34664         gives NULL; drop sys/types, since unistd gives size_t; and add
34665         stdint for SIZE_MAX.
34666         (SIZE_MAX): Rely on headers.
34667         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
34668         and add stdint.
34669         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
34670         (SIZE_MAX): Likewise.
34671         (INITIAL_BUF_SIZE): Turn into enum.
34672         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
34673
34674 2009-10-08  Jim Meyering  <meyering@redhat.com>
34675
34676         areadlinkat: avoid compilation failure
34677         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
34678         Fix typo in comment.
34679
34680 2009-10-07  Eric Blake  <ebb9@byu.net>
34681
34682         areadlinkat-with-size: new module
34683         * modules/areadlinkat-with-size: New module.
34684         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
34685         * lib/areadlink.h (areadlinkat): Declare it.
34686         * MODULES.html.sh (File system functions): Mention it.
34687         * modules/areadlinkat-with-size-tests: New test.
34688         * tests/test-areadlinkat-with-size.c: New file.
34689
34690         xreadlinkat: new module
34691         * modules/xreadlinkat: New module.
34692         * lib/xreadlinkat.c (xreadlinkat): New file.
34693         * lib/xreadlink.h (xreadlinkat): Declare it.
34694         * MODULES.html.sh (File system functions): Mention it.
34695
34696         areadlinkat: new module
34697         * lib/at-func.c (FUNC_FAIL): New define.
34698         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
34699         * modules/areadlinkat: New module.
34700         * lib/linkat.c (areadlinkat): Move...
34701         * lib/areadlinkat.c (areadlinkat): ...to new file.
34702         * lib/areadlink.h (areadlinkat): Declare it.
34703         * modules/linkat (Depends-on): Add areadlinkat.
34704         * MODULES.html.sh (File system functions): Mention it.
34705         * modules/areadlinkat-tests: New test.
34706         * tests/test-areadlinkat.c: New file.
34707
34708         areadlink, areadlink-with-size: add tests
34709         * modules/areadlink-tests: New test.
34710         * modules/areadlink-with-size-tests: Likewise.
34711         * tests/test-areadlink.h: New file.
34712         * tests/test-areadlink.c: Likewise.
34713         * tests/test-areadlink-with-size.c: Likewise.
34714
34715         maint: minor cleanups
34716         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
34717         _UNUSED_PARAMETER_ instead.
34718         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
34719         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
34720         * modules/linkat-tests (Files): Distribute test-link.h.
34721
34722         openat, utimens: whitespace cleanup
34723         * lib/openat.c: Prefer space throughout, rather than mix of 8
34724         spaces vs. tabs.
34725         * lib/at-func.c: Likewise.
34726         * lib/utimens.c: Likewise.
34727
34728         openat: avoid using wrong fd
34729         * lib/openat.c (openat_permissive): Reject user's fd if saving the
34730         working directory chooses same fd.
34731         * lib/at-func.c (AT_FUNC_NAME): Likewise.
34732
34733         mkdir, mkdirat: fix cygwin 1.5.x bug
34734         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
34735         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
34736         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
34737         bug.
34738         (gl_PREREQ_MKDIR): Delete unused macro.
34739         * modules/mkdir (Files): Track file rename.
34740         (configure.ac): Update macro name.
34741         * modules/openat (Depends-on): Add mkdir.
34742         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
34743
34744         mkdir, mkdirat: add tests
34745         * modules/mkdir-tests: New test.
34746         * tests/test-mkdir.h: New file.
34747         * tests/test-mkdir.c: Likewise.
34748         * tests/test-mkdirat.c: Likewise.
34749         * modules/openat-tests (Files): Add new files.
34750         (Makefile.am): Run new test.
34751
34752 2009-10-06  Eric Blake  <ebb9@byu.net>
34753
34754         doc: tweak *at function documentation
34755         * doc/posix-functions/faccessat.texi (faccessat): Mention
34756         known issue with replacement.
34757         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
34758         * doc/posix-functions/linkat.texi (linkat): Likewise.
34759         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34760         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34761         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34762         * doc/posix-functions/renameat.texi (renameat): Likewise.
34763         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34764
34765         openat: fix GNU/Hurd bug in unlinkat
34766         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
34767         broken.
34768         * doc/posix-functions/unlink.texi (unlink): Document this.
34769         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
34770
34771         fdopendir: fix GNU/Hurd bug
34772         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
34773         allowing non-directory fds.
34774         * lib/fdopendir.c (rpl_fdopendir): Work around it.
34775         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34776         * modules/dirent (Makefile.am): Substitute it.
34777         * lib/dirent.in.h (fdopendir): Declare replacement.
34778         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
34779         * tests/test-fdopendir.c (main): Test something other than
34780         /dev/null, since on Hurd that behaves like a directory.
34781
34782         test-symlink: port to GNU/Hurd
34783         * tests/test-symlink.h (test_symlink): Relax expected errno.
34784
34785         doc: tweak more cygwin information
34786         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
34787         now compatible with glibc.
34788         * doc/posix-functions/getopt.texi (getopt): Likewise.
34789
34790         getopt-gnu: add another test
34791         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
34792         guarantee behavior relied on by m4.
34793         * tests/test-getopt.c (main): Use it.
34794         * modules/getopt-posix-tests (Depends-on): Add setenv.
34795         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
34796
34797         getopt: fix compilation on darwin
34798         * lib/getopt.in.h (includes): Leave breadcrumbs during system
34799         include.
34800         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
34801         Reported by Ludovic Courtès.
34802
34803 2009-10-06  Bruno Haible  <bruno@clisp.org>
34804
34805         * modules/size_max (Description): Discourage its use.
34806         Reported by Simon Josefsson.
34807
34808 2009-10-06  Jim Meyering  <meyering@redhat.com>
34809
34810         linkat: avoid compilation failure
34811         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
34812
34813 2009-10-05  Eric Blake  <ebb9@byu.net>
34814
34815         linkat: support Linux 2.6.17
34816         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
34817         linkat on Linux, but allow cache variable override.
34818         * lib/linkat.c (rpl_linkat): Define override.
34819         * modules/linkat (Depends-on): Add symlinkat.
34820         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
34821         * modules/unistd (Makefile.am): Substitute it.
34822         * lib/unistd.in.h (linkat): Declare replacement.
34823         Reported by Pádraig Brady.
34824
34825         quotearg: port test to systems with C.UTF-8 locale
34826         * tests/test-quotearg.c (struct result_strings): Add another
34827         member, differentiating between C.ASCII and C.UTF-8 handling.
34828         (compare_strings): Add parameter.
34829         (main): Adjust all callers.
34830
34831         getopt: avoid clash with FreeBSD _getopt_internal
34832         * lib/getopt.in.h (_getopt_internal): Override the name.
34833         * lib/getopt_int.h (includes): Pick up any overrides.
34834         Reported by Reuben Thomas.
34835
34836         hash: allow C89 compilation
34837         * lib/hash.c (check_tuning): Move declaration before statement.
34838         Reported by Reuben Thomas.
34839
34840 2009-10-05  Karl Berry  <karl@gnu.org>
34841
34842         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
34843
34844 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
34845             Bruno Haible  <bruno@clisp.org>
34846
34847         * lib/uname.c (uname): Use a table-driven algorithm to compute
34848         Windows NT versions.
34849
34850 2009-10-04  Bruno Haible  <bruno@clisp.org>
34851
34852         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
34853         program_invocation_short_name.
34854         * modules/progname (configure.ac): Test for presence of
34855         program_invocation_short_name.
34856         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
34857
34858 2009-10-04  Bruno Haible  <bruno@clisp.org>
34859
34860         * lib/progname.c (set_program_name): Fix comment.
34861         Reported by Jim Meyering.
34862
34863 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34864             Bruno Haible  <bruno@clisp.org>
34865
34866         * lib/uname.c: Include <string.h>.
34867         (uname): Do only one call to GetVersionEx in the common case.
34868
34869 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34870             Bruno Haible  <bruno@clisp.org>
34871
34872         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
34873         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
34874         (uname): Add support for Windows CE and various non-x86 CPU types.
34875
34876 2009-10-03  Bruno Haible  <bruno@clisp.org>
34877
34878         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
34879         invocation to tests/configure.ac.
34880         Reported by Ian Beckwith <ianb@erislabs.net>.
34881
34882 2009-10-02  Eric Blake  <ebb9@byu.net>
34883
34884         fchdir: avoid compiler warning
34885         * lib/fchdir.c (canonicalize_file_name)
34886         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
34887
34888         test-open: support mingw errno values
34889         * tests/test-open.h (test_open): Relax test.
34890         * tests/test-fopen.h (test_fopen): Likewise.
34891         * tests/test-openat-safer.c (main): Likewise.
34892
34893         open: fix opening directory on mingw
34894         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
34895
34896         test-open: on GNU/Hurd, /dev/null is a directory
34897         * tests/test-fopen.h (main): Rename...
34898         (test_fopen): ...to this.  Use a guaranteed non-directory when
34899         confirming open behavior on trailing slash.
34900         * tests/test-openat-safer.c (main): Likewise.
34901         * tests/test-open.h (main): Likewise....
34902         (test_open): ...to this.
34903         * tests/test-fopen.c (main): Adjust caller.
34904         * tests/test-fopen-safer.c (main): Likewise.
34905         * tests/test-open.c (main): Likewise.
34906         * tests/test-fcntl-safer.c (main): Likewise.
34907         Reported by Samuel Thibault.
34908
34909         rename, fchdir: don't ignore chdir failure
34910         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
34911         * lib/rename.c (rpl_rename) [W32]: Likewise.
34912         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
34913         an empty destination directory if source cannot be renamed,
34914         although there is still possibility for failure.
34915         * doc/posix-functions/rename.texi (rename): Document the race.
34916         Reported by Jim Meyering.
34917
34918         maint: cleanup whitespace in recent commits
34919         * lib/rename.c (rpl_rename): Remove tabs.
34920         * tests/test-link.h (test_link): Likewise.
34921         * lib/fchdir.c (get_name): Likewise.
34922         Reported by Jim Meyering.
34923
34924 2009-10-02  Ben Pfaff  <blp@gnu.org>
34925
34926         relocatable-prog-wrapper: Add missing dependency on
34927         double-slash-root.
34928         * modules/relocatable-prog-wrapper: Add dependency.
34929         Reported by Ian Beckwith <ianb@erislabs.net>.
34930
34931 2009-10-02  Eric Blake  <ebb9@byu.net>
34932
34933         renameat: fix Solaris bugs
34934         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
34935         needed fixing.
34936         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
34937         * modules/stdio (Makefile.am): Substitute it.
34938         * lib/stdio.in.h (renameat): Declare replacement.
34939         * lib/renameat.c (rpl_renameat): Implement fix.
34940
34941         renameat: new module
34942         * modules/renameat: New file.
34943         * lib/renameat.c (renameat): Likewise.
34944         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
34945         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34946         * modules/stdio (Makefile.am): Substitute them.
34947         * lib/stdio.in.h (renameat): Declare it.
34948         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34949         * doc/posix-functions/renameat.texi (renameat): Likewise.
34950         * modules/renameat-tests: New test.
34951         * tests/test-renameat.c: Likewise.
34952
34953         rename: fix mingw bugs
34954         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
34955         directory overwrite bugs.
34956
34957         rename: fix another cygwin 1.5 bug
34958         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
34959         checks.
34960         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
34961         unnecessary cygwin workarounds.  Also work around bug with moving
34962         full directory onto an empty one.
34963         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
34964
34965         rename-dest-slash: merge into rename module
34966         * modules/rename-dest-slash (Status): Mark obsolete.
34967         (Depends-on): Add rename.
34968         (Files): Let rename do it all.
34969         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
34970         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
34971         * m4/rename-dest-slash.m4: ...so this file can be deleted.
34972         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
34973         * lib/rename.c (rpl_rename): Update comments.
34974
34975         rename: fix cygwin 1.5.x bugs
34976         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
34977         * lib/rename.c (rpl_rename): Work around them.
34978         * modules/rename (Depends-on): Add same-inode.
34979
34980         rename: fix Solaris 10 bug
34981         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34982         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
34983         was the only bug.
34984
34985         rename: fix Solaris 9 bug
34986         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
34987         on non-directory.  Avoid calling exit.
34988         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
34989         strdup.
34990         * modules/rename-tests (Depends-on): Drop lstat.
34991         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
34992         (gl_PREREQ_RENAME): Delete unused macro.
34993
34994         rename-dest-slash: fix NetBSD bug
34995         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
34996         links.
34997         * modules/rename-dest-slash (Depends-on): Add same-inode.
34998
34999         rename-tests: new test, exposes several platform bugs
35000         * modules/rename-tests: New file.
35001         * tests/test-rename.h: Likewise.
35002         * tests/test-rename.c: Likewise.
35003         * doc/posix-functions/rename.texi (rename): Improve documentation,
35004         including bugs that will eventually be fixed in gnulib.
35005
35006 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
35007
35008         * lib/uname.c: Include <stdlib.h>
35009         (uname): Assume version info is available.
35010
35011 2009-10-02  Jim Meyering  <meyering@redhat.com>
35012
35013         gnu-web-doc-update: correct --help output
35014         * build-aux/gnu-web-doc-update: Make --help output relevant.
35015
35016         gnu-web-doc-update: add standard options
35017         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
35018
35019         gnu-web-doc-update: New module.
35020         Use this script to automatically update the on-line web documentation
35021         for your GNU project at http://www.gnu.org/software/$pkg/manual/
35022         * modules/gnu-web-doc-update: New file, from coreutils.
35023         * build-aux/gnu-web-doc-update: New script.
35024
35025 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
35026
35027         link: LoadLibrary is not needed.
35028         * lib/link.c: Use GetModuleHandle.
35029
35030 2009-10-01  Eric Blake  <ebb9@byu.net>
35031
35032         getopt: bump serial number
35033         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
35034         change.
35035
35036         tests: tighten link, rmdir, and remove tests
35037         * tests/test-link.h (includes): No need to use <config.h> here.
35038         Clean up if directory hard link was created, otherwise test for
35039         trailing '.'.
35040         * tests/test-linkat.c (main): Simplify.
35041         * tests/test-remove.c (main): Enhance test for trailing '.'.
35042         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35043
35044 2009-10-01  Jim Meyering  <meyering@redhat.com>
35045
35046         maint.mk: requiring "make major" was annoying, for a "minor" release.
35047         What is intended is "stable", to contrast with alpha and beta,
35048         so require "make stable", not "make major".
35049         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
35050         (get_tool_versions): Likewise.
35051         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
35052
35053 2009-09-30  Ben Pfaff  <blp@gnu.org>
35054
35055         Fix broken build of replacement for Windows tmpfile().
35056         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
35057         flags argument added along with the 'mkostemp' module.
35058
35059 2009-09-28  Bruno Haible  <bruno@clisp.org>
35060
35061         Avoid identifier clash with POSIX function 'remove' defined as a macro.
35062         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
35063         to 'remove_elt'.
35064         (gl_list_remove): Update.
35065         * lib/gl_list.c (gl_list_remove): Update.
35066         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
35067         to 'remove_elt'.
35068         (gl_oset_remove): Update.
35069         * lib/gl_list.c (gl_oset_remove): Update.
35070         Reported by Eric Blake.
35071
35072 2009-09-28  Eric Blake  <ebb9@byu.net>
35073
35074         doc: mention yet more cygwin 1.7 status
35075         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
35076         cygwin.
35077         * doc/glibc-functions/execvpe.texi (execvpe): New file.
35078         * doc/gnulib.texi (Glibc unistd.h): Mention it.
35079
35080         argp: fix test failure
35081         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
35082         that are not upper-case.  Pass correct range to tolower.
35083
35084 2009-09-27  Jim Meyering  <meyering@redhat.com>
35085
35086         test-yesno: work around sparc-dash here-document infelicity
35087         Without this change, the literal \177 byte in a here document
35088         would make dash 0.5.5.1-3 access uninitialized memory.
35089         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
35090         Instead, use a marker, "@", and filter through tr to create the desired
35091         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
35092
35093 2009-09-27  Bruno Haible  <bruno@clisp.org>
35094
35095         Disable untested support for new flavours of ACLs on AIX.
35096         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
35097         progress.
35098         * lib/set-mode-acl.c (qset_acl): Likewise.
35099
35100 2008-12-07  Bruno Haible  <bruno@clisp.org>
35101
35102         Add support for new flavours of ACLs on AIX. (Untested.)
35103         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
35104         (file_has_acl): Add support for newer AIX.
35105         * lib/set-mode-acl.c (qset_acl): Likewise.
35106         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
35107         Rainer Tammer <tammer@tammer.net>.
35108
35109 2009-09-26  Eric Blake  <ebb9@byu.net>
35110
35111         argp: fix compilation of getopt
35112         * lib/getopt.in.h (includes): Use different guard than glibc.
35113         Reported by Sergey Poznyakoff.
35114
35115         doc: mention more cygwin 1.7 status
35116         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
35117         bug.
35118         * doc/posix-functions/execl.texi (execl): Likewise.
35119         * doc/posix-functions/execle.texi (execle): Likewise.
35120         * doc/posix-functions/execlp.texi (execlp): Likewise.
35121         * doc/posix-functions/execv.texi (execv): Likewise.
35122         * doc/posix-functions/execve.texi (execve): Likewise.
35123         * doc/posix-functions/execvp.texi (execvp): Likewise.
35124         * doc/glibc-functions/canonicalize_file_name.texi
35125         (canonicalize_file_name): Cygwin 1.7 now provides this.
35126         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
35127         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
35128         on AT_SYMLINK_NOFOLLOW.
35129
35130 2009-09-24  Eric Blake  <ebb9@byu.net>
35131
35132         test-linkat: make test more robust
35133         * tests/test-linkat.c (main): Avoid collision with EEXIST.
35134
35135         getopt: fix inclusion guards for cygwin
35136         * modules/getopt-posix (Depends-on): Add include-next.
35137         (Makefile.am): Substitute more items in replacement header.
35138         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
35139         <getopt.h>.
35140         * lib/getopt.in.h (includes): Use split inclusion guard, and
35141         prefer <getopt.h> over include <unistd.h> when one is present.
35142         (option): Also override name of 'struct option'.
35143
35144         same-inode: revert prior change; it is not yet ready
35145         * NEWS: Undo mention of this change.
35146         * lib/same-inode.h (same-inode.h): Undo tri-state change.
35147         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
35148         * lib/cycle-check.c (cycle_check): Likewise.
35149         * lib/same.c (same_name): Likewise.
35150         * lib/at-func2.c (at_func2): Likewise.
35151
35152 2009-09-23  Eric Blake  <ebb9@byu.net>
35153
35154         linkat: new module
35155         * modules/linkat: New file.
35156         * lib/at-func2.c (at_func2): Likewise.
35157         * lib/linkat.c (linkat): Likewise.
35158         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
35159         * lib/openat-priv.h (at_func2): Add declaration.
35160         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35161         * modules/unistd (Makefile.am): Substitute them.
35162         * lib/unistd.in.h (linkat): Declare it.
35163         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35164         * doc/posix-functions/linkat.texi (linkat): Likewise.
35165         * doc/posix-functions/link.texi (link): Tweak wording.
35166         * tests/test-link.c (main): Move guts...
35167         * tests/test-link.h (test_link): ...into new file.
35168         * modules/linkat-tests: New test.
35169         * tests/test-linkat.c: Likewise.
35170         * modules/link-tests (Files): Ship new file.
35171         (Depends-on): Add stdbool.
35172
35173         dirname: add library-safe mdir_name
35174         * lib/dirname.h (mdir_name): New prototype.
35175         * lib/dirname.c (dir_name): Move guts...
35176         (mdir_name): ...to new function that avoids xalloc_die.
35177
35178         fchdir: another mingw fix
35179         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
35180         * lib/fchdir.c (get_name): New helper method; skips canonicalize
35181         on mingw (where it has not yet been ported), and make it optional
35182         elsewhere.
35183         (_gl_register_fd): Use it.
35184
35185         same-inode: make SAME_INODE tri-state, to port to mingw
35186         * NEWS: Mention this change.
35187         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
35188         st_ino always being 0.
35189         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
35190         * lib/cycle-check.c (cycle_check): Likewise.
35191         * lib/same.c (same_name): Likewise.
35192
35193         lstat: avoid mingw compilation error
35194         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
35195         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
35196         lstat ourselves.
35197         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
35198         was adequate.
35199         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
35200         the checks for lstat.
35201         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
35202
35203         link: fix test failure on Solaris 9
35204         * lib/link.c (rpl_link): Don't assume link will catch bogus
35205         trailing slash on source.
35206
35207         test-symlinkat: enhance test
35208         * tests/test-readlink.c (main): Move guts...
35209         * tests/test-readlink.h (test_readlink): ...into new file.
35210         * tests/test-symlink.c (main): Move guts...
35211         * tests/test-symlink.h (test_symlink): ...into new file.
35212         * tests/test-symlinkat.c (main): Use new files for further
35213         coverage.
35214         (do_symlink, do_readlink): New helper functions.
35215         * modules/symlink-tests (Files): Ship new file.
35216         (Depends-on): Add stdbool.
35217         * modules/readlink-tests (Files): Ship new file.
35218         (Depends-on): Add stdbool.
35219         * modules/symlinkat-tests (Files): Use new files.
35220
35221 2009-09-23  Eric Blake  <ebb9@byu.net>
35222
35223         readlink: document portability issue with symlink length
35224         * doc/posix-functions/lstat.texi (lstat): Mention that some file
35225         systems have bogus st_size on symlinks, and mention the
35226         areadlink-with-size module.
35227         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
35228         * doc/posix-functions/readlink.texi (readlink): Mention the
35229         areadlink module, and ERANGE failure.
35230         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35231         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
35232
35233         readlink: fix Solaris 9 bug with trailing slash
35234         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
35235         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
35236         * doc/posix-functions/readlink.texi (readlink): Document this.
35237         * modules/readlink-tests: New test.
35238         * tests/test-readlink.c: Likewise.
35239
35240         readlink: fix cygwin 1.5.x bug with return type
35241         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
35242         * lib/unistd.in.h (readlink): Use ssize_t.
35243         * lib/readlink.c (readlink): Likewise.
35244         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35245         * modules/unistd (Makefile.am): Substitute it.
35246         * lib/unistd.in.h (readlink): Declare replacement.
35247         * doc/posix-functions/readlink.texi (readlink): Document this.
35248
35249         symlink: use throughout gnulib
35250         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
35251         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
35252         symlink is not used.
35253         * modules/symlinkat (Depends-on): Add symlink.
35254         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35255         * modules/canonicalize-tests (Depends-on): Likewise.
35256         * modules/lstat-tests (Depends-on): Likewise.
35257         * modules/openat-tests (Depends-on): Likewise.
35258         * modules/remove-tests (Depends-on): Likewise.
35259         * modules/rmdir-tests (Depends-on): Likewise.
35260         * modules/unlink-tests (Depends-on): Likewise.
35261         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
35262         * tests/test-canonicalize.c (symlink): Likewise.
35263         * tests/test-fstatat.c (symlink): Likewise.
35264         * tests/test-lstat.c (symlink): Likewise.
35265         * tests/test-remove.c (symlink): Likewise.
35266         * tests/test-rmdir.c (symlink): Likewise.
35267         * tests/test-unlink.c (symlink): Likewise.
35268         * tests/test-unlinkat.c (symlink): Likewise.
35269
35270         symlink: new module, for Solaris 9 bug
35271         * modules/symlink: New file.
35272         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
35273         * lib/symlink.c: Likewise.
35274         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
35275         * modules/unistd (Makefile.am): Substitute them.
35276         * lib/unistd.in.h (symlink): Declare replacement.
35277         * MODULES.html.sh (File system functions): Mention it.
35278         * doc/posix-functions/symlink.texi (symlink): Likewise.
35279         * modules/symlink-tests: New test.
35280         * tests/test-symlink.c: Likewise.
35281
35282 2009-09-23  Bruno Haible  <bruno@clisp.org>
35283
35284         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
35285         when needed.
35286         Test case: gnulib-tool --import --with-tests atexit inttypes.
35287         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
35288
35289 2009-09-23  Bruno Haible  <bruno@clisp.org>
35290
35291         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
35292         subcommand, not in a subshell.
35293
35294 2009-09-22  Eric Blake  <ebb9@byu.net>
35295
35296         unistd: sort replacement declarations
35297         * lib/unistd.in.h: Sort declarations.
35298
35299         open, openat: minor optimization
35300         * lib/open.c (open): If open succeeded, len is non-zero.
35301         * lib/openat.c (rpl_openat): Likewise.
35302
35303         link-follow: ensure correct result
35304         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
35305         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
35306         distinguish between possible failures.
35307
35308 2009-09-21  Eric Blake  <ebb9@byu.net>
35309
35310         fts: avoid compiler warning
35311         * lib/fts.c (dirent_inode_sort_may_be_useful)
35312         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
35313
35314 2009-09-19  Bruno Haible  <bruno@clisp.org>
35315
35316         * lib/progreloc.c (canonicalize_file_name): New declaration.
35317
35318 2009-09-19  Eric Blake  <ebb9@byu.net>
35319
35320         link: fix quoting
35321         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
35322
35323         openat: fix openat bugs on Solaris 9
35324         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
35325         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
35326         * modules/openat (Depends-on): Add open.
35327         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
35328         * modules/fcntl-h (Makefile.am): Substitute it.
35329         * lib/fcntl.in.h (openat): Declare replacement.
35330         * doc/posix-functions/openat.texi (openat): Document this.
35331
35332         openat: move fstatat and unlinkat into correct files
35333         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
35334         compiled.
35335         * lib/openat.c (fstatat, unlinkat): Move...
35336         * lib/fstatat.c (fstatat): ...into correct files.
35337         * lib/unlinkat.c (unlinkat): Likewise.
35338
35339         openat: fix unlinkat bugs on Solaris 9
35340         * lib/unlinkat.c (unlinkat): New file.
35341         * modules/openat (Depends-on): Add unlink.
35342         (Files): Distribute it.
35343         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
35344         trailing slash behavior is broken.
35345         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35346         * modules/unistd (Makefile.am): Substitute it.
35347         * lib/unistd.in.h (unlinkat): Declare replacement.
35348         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
35349
35350         openat: fix fstatat bugs on Solaris 9
35351         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
35352         stat.
35353         * doc/posix-functions/fstatat.texi (fstatat): Document this.
35354
35355         test-unlinkat: enhance test, to expose Solaris 9 bug
35356         * tests/test-unlink.c (main): Factor guts...
35357         * tests/test-unlink.h (test_rmdir_func): ...into new file.
35358         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
35359         * tests/test-rmdir.c (main): Adjust caller.
35360         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
35361         (unlinker): New helper function.
35362         (rmdirat): Enhance check.
35363         * modules/rmdir-tests (Depends-on): Add stdbool.
35364         * modules/unlink-tests (Depends-on): Likewise.
35365         (Files): Add test-unlink.h.
35366         * modules/openat-tests (Files): Likewise.
35367         (Depends-on): Add unlinkdir.
35368
35369         test-fstatat: new test, to expose Solaris 9 bugs
35370         * tests/test-stat.c (main): Factor guts...
35371         * tests/test-stat.h (test_stat_func): ...into new file.
35372         * tests/test-lstat.c (main): Factor guts...
35373         * tests/test-lstat.h (test_lstat_func): ...into new file.
35374         * tests/test-fstatat.c: New file.
35375         * modules/stat-tests (Files): Add test-stat.h.
35376         * modules/lstat-tests (Files): Add test-lstat.h.
35377         (Depends-on): Add stdbool.
35378         * modules/openat-tests (Depends-on): Add pathmax.
35379         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
35380         (Makefile.am): Run new test.
35381
35382         remove: new module, for mingw and Solaris 9 bugs
35383         * modules/remove: New file.
35384         * lib/remove.c: Likewise.
35385         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
35386         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
35387         * modules/stdio (Makefile.am): Use them.
35388         * lib/stdio.in.h (remove): Declare replacement.
35389         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35390         * doc/posix-functions/remove.texi (remove): Likewise.
35391         * modules/remove-tests: New test.
35392         * tests/test-remove.c: Likewise.
35393
35394         unlink: new module, for Solaris 9 bug
35395         * modules/unlink: New file.
35396         * lib/unlink.c: Likewise.
35397         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
35398         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35399         * modules/unistd (Makefile.am): Use them.
35400         * lib/unistd.in.h (stat): Declare replacement.
35401         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35402         * doc/posix-functions/unlink.texi (unlink): Likewise.
35403         * modules/unlink-tests: New test.
35404         * tests/test-unlink.c: Likewise.
35405
35406         lstat: fix Solaris 9 bug
35407         * lib/lstat.c (lstat): Also check for trailing slash on
35408         non-symlink, non-directories.  Use stat module to simplify logic.
35409         * doc/posix-functions/lstat.texi (lstat): Document it.
35410         * modules/lstat-tests (Depends-on): Add errno, same-inode.
35411         (configure.ac): Check for symlink.
35412         * tests/test-lstat.c (main): Add more tests.
35413
35414         stat: add as dependency to other modules
35415         * modules/chown (Depends-on): Add stat.
35416         * modules/euidaccess (Depends-on): Likewise.
35417         * modules/fchdir (Depends-on): Likewise.
35418         * modules/isdir (Depends-on): Likewise.
35419         * modules/link (Depends-on): Likewise.
35420         * modules/lstat (Depends-on): Likewise.
35421         * modules/mkdir-p (Depends-on): Likewise.
35422         * modules/modechange (Depends-on): Likewise.
35423         * modules/open (Depends-on): Likewise.
35424         * modules/readlink (Depends-on): Likewise.
35425         * modules/same (Depends-on): Likewise.
35426
35427         stat: fix Solaris 9 bug
35428         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
35429         slash.
35430         * lib/stat.c (rpl_stat): Work around it.
35431         * doc/posix-functions/stat.texi (stat): Update documentation.
35432
35433         stat: new module, for mingw bug
35434         * modules/stat: New file.
35435         * lib/stat.c: Likewise.
35436         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35437         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35438         * modules/sys_stat (Makefile.am): Use them.
35439         * lib/sys_stat.in.h (stat): Declare replacement.
35440         * lib/openat.c (fstatat): Deal with lstat and stat being function
35441         macros.
35442         * modules/openat (Depends-on): Add inline.
35443         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35444         * doc/posix-functions/stat.texi (stat): Likewise.
35445         * modules/stat-tests: New test.
35446         * tests/test-stat.c: Likewise.
35447
35448 2009-09-19  Jim Meyering  <meyering@redhat.com>
35449
35450         syntax-check: detect unnecessary inclusion of canonicalize.h
35451         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
35452
35453 2009-09-19  Eric Blake  <ebb9@byu.net>
35454
35455         canonicalize-lgpl: adjust clients to use correct header
35456         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35457         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
35458         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
35459         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
35460         * lib/progreloc.c (includes): Likewise.
35461
35462 2009-09-19  Jim Meyering  <meyering@redhat.com>
35463
35464         test-posixtm.c: correct a comment
35465         * tests/test-posixtm.c: Correct first-line comment.
35466         Spotted by Eric Blake.
35467
35468 2009-09-16  Jim Meyering  <meyering@redhat.com>
35469
35470         posixtm-tests: make T const-correct; add a test case
35471         * tests/test-posixtm.c (T): Declare const.
35472         Add a test for -(2^31+1).
35473         Remove useless can-succeed-only-in-2002 test.
35474
35475         posixtm-tests: adjust the sole failing test
35476         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
35477         expected output matches what mktime now produces.  Cross-checked via
35478         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
35479
35480         posixtm: move #ifdef'd tests into a new module
35481         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
35482         * tests/test-posixtm.c: ... this new file.
35483         * modules/posixtm-tests: New module.
35484
35485 2009-09-19  Eric Blake  <ebb9@byu.net>
35486
35487         openat: simplify use of at-func.c
35488         * lib/at-func.c (includes): Include prerequisites here, to
35489         simplify requirements on client files.
35490         * lib/openat-priv.h: Add double-inclusion guard.
35491         * lib/faccessat.c (includes): Simplify.
35492         * lib/fchmodat.c (includes): Likewise.
35493         * lib/fchownat.c (includes): Likewise.
35494         * lib/mkdirat.c (includes): Likewise.
35495         * lib/mkfifoat.c (includes): Likewise.
35496         * lib/symlinkat.c (includes): Likewise.
35497
35498         openat: allow return of fd 0
35499         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
35500         * modules/save-cwd (Depends-on): Replace fcntl-safer with
35501         unistd-safer.
35502         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
35503         <fcntl.h>; this module does not leak fds.
35504         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
35505         must be allowed to return 0, leaving openat_safer to add the
35506         safety.
35507         (openat_permissive): Avoid writing to just-opened fd 2 if
35508         restoring the current directory fails.
35509         * lib/openat-die.c (openat_restore_fail): Add comment.
35510         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
35511         (save_cwd): Guarantee safe fd, but without use of open_safer.
35512         * tests/test-openat.c: New test.
35513         * modules/openat-tests (Files, Makefile.am): Distribute and build
35514         new file.
35515
35516         relocatable-prog-wrapper: fix build
35517         * modules/relocatable-prog-wrapper (Files): Update name of
35518         canonicalize m4 file, broken on 2009-09-17.
35519         Reported by emad hajjar <aleppos@hotmail.com>.
35520
35521 2009-09-19  Bruno Haible  <bruno@clisp.org>
35522
35523         * lib/safe-alloc.h: Use the standard header with GPL copyright.
35524         * lib/safe-alloc.c: Likewise.
35525         Reported by Ian Beckwith <ianb@erislabs.net>.
35526
35527 2009-09-18  Bruno Haible  <bruno@clisp.org>
35528
35529         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
35530         Reported by <erobles@sensacd.com.mx>.
35531
35532 2009-09-17  Eric Blake  <ebb9@byu.net>
35533
35534         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
35535         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
35536         slashes when checking if last component is missing.
35537         * tests/test-canonicalize.c (main): Test this.
35538
35539         canonicalize, canonicalize-lgpl: honor // if distinct from /
35540         * modules/canonicalize (Files): Add double-slash-root.m4.
35541         * modules/canonicalize-lgpl (Files): Likewise.
35542         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35543         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
35544         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
35545         fallback definition.
35546         (canonicalize_filename_mode): Use it to protect //.
35547         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
35548         (__realpath): Likewise.
35549         * tests/test-canonicalize.c (main): Test this.
35550         * tests/test-canonicalize-lgpl.c (main): Likewise.
35551         * modules/canonicalize-tests (Depends-on): Add same-inode.
35552         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35553
35554         canonicalize-lgpl: fix glibc bug with trailing slash
35555         * m4/canonicalize-lgpl.m4: Move contents...
35556         * m4/canonicalize.m4: ...here.
35557         (gl_CANONICALIZE_LGPL): Factor realpath check...
35558         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
35559         glibc 2.3.5 bug, fixed 2005-04-27.
35560         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
35561         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
35562         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
35563         * modules/canonicalize-lgpl (Files): Manage file rename.
35564         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35565         * modules/stdlib (Makefile.am): Substitute witness.
35566         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
35567         is needed.
35568         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
35569         replacement is required.
35570         * lib/canonicalize.c (canonicalize_file_name): Likewise.
35571         * doc/glibc-functions/canonicalize_file_name.texi
35572         (canonicalize_file_name): Document this.
35573         * doc/posix-functions/realpath.texi (realpath): Likewise.
35574
35575         canonicalize-lgpl: reject non-directory with trailing slash
35576         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
35577         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
35578         catches failures in glibc 2.3.5.
35579         * tests/test-canonicalize.c (main): Likewise.
35580
35581         canonicalize-lgpl: use native realpath if it works
35582         * lib/canonicalize-lgpl.c (realpath): Guard with
35583         FUNC_REALPATH_WORKS.
35584         * lib/stdlib.in.h (realpath): Make declaration optional based on
35585         HAVE_REALPATH.
35586         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
35587         native realpath works.
35588         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35589         * modules/stdlib (Makefile.am): Substitute witness.
35590
35591         canonicalize, canonicalize-lgpl: use <stdlib.h>
35592         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
35593         (Include): Mention <stdlib.h>.
35594         (configure.ac): Mention functions we provide.
35595         * modules/canonicalize (configure.ac): Likewise.
35596         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
35597         realpath if canonicalize_file_name is missing.
35598         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
35599         * modules/stdlib (Makefile.am): Substitute witnesses.
35600         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
35601         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
35602         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
35603         * NEWS: Document this.
35604         * doc/glibc-functions/canonicalize_file_name.texi
35605         (canonicalize_file_name): Likewise.
35606         * doc/posix-functions/realpath.texi (realpath): Likewise.
35607         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
35608
35609         test-canonicalize: consolidate into single C program
35610         * tests/test-canonicalize.sh: Delete; move setup into...
35611         * tests/test-canonicalize.c (main): ...the program, making it
35612         easier to run in debugger.  Add some tests.
35613         * modules/canonicalize-tests (Files): Remove unused file.
35614         (Depends-on): Add progname.
35615         (configure.ac, Makefile.am): Simplify.
35616
35617         test-canonicalize-lgpl: consolidate into single C program
35618         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
35619         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
35620         easier to run in debugger.  Add some tests.
35621         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
35622         (configure.ac, Makefile.am): Simplify.
35623
35624         canonicalize: avoid resolvepath
35625         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
35626         unnecessary checks.
35627         * lib/canonicalize.c (includes): Simplify.
35628         (canonicalize_file_name): Drop resolvepath implementation.
35629         * modules/canonicalize (Depends-on): Drop filenamecat.
35630
35631         canonicalize: don't lose errno
35632         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
35633         over calls to free.
35634
35635         canonicalize: simplify errno handling
35636         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
35637         assignment.
35638
35639         canonicalize, canonicalize-lgpl: update module dependencies
35640         * modules/canonicalize (Depends-on): Add extensions, lstat,
35641         pathmax, stdlib.
35642         (Files): Drop pathmax.h.
35643         (configure.ac): Adjust macro name.
35644         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
35645         lstat, stdlib, sys_stat.
35646         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
35647         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
35648         extensions.
35649         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
35650         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
35651         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
35652         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
35653         declaration, if available.
35654         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
35655         we can rely on the readlink module.
35656         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
35657         (includes): Use <unistd.h> unconditionally.
35658
35659 2009-09-17  Eric Blake  <ebb9@byu.net>
35660
35661         maint: make Include sections of modules consistent
35662         * modules/alloca: Use only header name; no need to list #include.
35663         * modules/alloca-opt: Likewise.
35664         * modules/arpa_inet: Likewise.
35665         * modules/canon-host: Likewise.
35666         * modules/configmake: Likewise.
35667         * modules/dirent: Likewise.
35668         * modules/eealloc: Likewise.
35669         * modules/environ: Likewise.
35670         * modules/fchdir: Likewise.
35671         * modules/fcntl: Likewise.
35672         * modules/fcntl-h: Likewise.
35673         * modules/gethrxtime: Likewise.
35674         * modules/gettime: Likewise.
35675         * modules/ignore-value: Likewise.
35676         * modules/inet_ntop: Likewise.
35677         * modules/inet_pton: Likewise.
35678         * modules/inttypes: Likewise.
35679         * modules/isnand-nolibm: Likewise.
35680         * modules/isnanf-nolibm: Likewise.
35681         * modules/mbchar: Likewise.
35682         * modules/mbfile: Likewise.
35683         * modules/mbiter: Likewise.
35684         * modules/mbuiter: Likewise.
35685         * modules/netdb: Likewise.
35686         * modules/netinet_in: Likewise.
35687         * modules/nproc: Likewise.
35688         * modules/pagealign_alloc: Likewise.
35689         * modules/poll: Likewise.
35690         * modules/printf-frexp: Likewise.
35691         * modules/pthread: Likewise.
35692         * modules/putenv: Likewise.
35693         * modules/random_r: Likewise.
35694         * modules/relocatable-prog: Likewise.
35695         * modules/search: Likewise.
35696         * modules/select: Likewise.
35697         * modules/selinux-h: Likewise.
35698         * modules/settime: Likewise.
35699         * modules/signal: Likewise.
35700         * modules/size_max: Likewise.
35701         * modules/socklen: Likewise.
35702         * modules/ssize_t: Likewise.
35703         * modules/stdarg: Likewise.
35704         * modules/stdbool: Likewise.
35705         * modules/stddef: Likewise.
35706         * modules/stdint: Likewise.
35707         * modules/stdio: Likewise.
35708         * modules/stdlib: Likewise.
35709         * modules/string: Likewise.
35710         * modules/strings: Likewise.
35711         * modules/sys_file: Likewise.
35712         * modules/sys_ioctl: Likewise.
35713         * modules/sys_select: Likewise.
35714         * modules/sys_socket: Likewise.
35715         * modules/sys_stat: Likewise.
35716         * modules/sys_time: Likewise.
35717         * modules/sys_times: Likewise.
35718         * modules/sys_utsname: Likewise.
35719         * modules/sys_wait: Likewise.
35720         * modules/sysexits: Likewise.
35721         * modules/time: Likewise.
35722         * modules/times: Likewise.
35723         * modules/tmpfile: Likewise.
35724         * modules/trim: Likewise.
35725         * modules/unistd: Likewise.
35726         * modules/wchar: Likewise.
35727         * modules/wctype: Likewise.
35728
35729 2009-09-17  Bruno Haible  <bruno@clisp.org>
35730
35731         Make getdate.y compile on QNX and NetBSD 5 / i386.
35732         * m4/getdate.m4 (gl_GETDATE): Conditionally define
35733         TIME_T_FITS_IN_LONG_INT.
35734         * lib/getdate.y (long_time_t): New type.
35735         (relative_time): Change type of 'seconds' field to long_time_t.
35736         (get_date): Update types of local variables. Check against overflow
35737         during conversion from long_time_t to time_t.
35738         Reported by Matt Kraai <kraai@ftbfs.org>
35739         and Hasso Tepper <hasso@netbsd.org>.
35740
35741 2009-09-17  Bruno Haible  <bruno@clisp.org>
35742
35743         * modules/COPYING: Update copyright years.
35744         * modules/README: Likeiwse.
35745         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
35746         Reported by Ian Beckwith <ianb@erislabs.net>.
35747
35748 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35749
35750         * users.txt: Update references for gnuit package.
35751
35752 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35753
35754         * m4/getdelim.m4: Fix typo in copyright line.
35755
35756 2009-09-17  Bruno Haible  <bruno@clisp.org>
35757
35758         * lib/atoll.c: Use the standard header with GPL copyright.
35759         * lib/argz.in.h: Likewise.
35760         * lib/glob.c: Likewise.
35761         * lib/glob-libc.h: Likewise.
35762         * lib/random_r.c: Likewise.
35763         * lib/siglist.h: Likewise.
35764         * lib/strsignal.c: Likewise.
35765         Reported by Ian Beckwith <ianb@erislabs.net>.
35766
35767 2009-09-17  Eric Blake  <ebb9@byu.net>
35768
35769         rmdir: ensure correct dependency order
35770         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
35771
35772 2009-09-17  Bruno Haible  <bruno@clisp.org>
35773
35774         Disable assertion that fails on NetBSD 5 / i386.
35775         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
35776         Reported by Sam Steingold <sds@gnu.org>
35777         and Hasso Tepper <hasso@netbsd.org>.
35778
35779 2009-09-16  Eric Blake  <ebb9@byu.net>
35780
35781         unlinkdir: port to mingw
35782         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
35783         on which no one can unlink a directory.
35784
35785         stdlib: sort witness names
35786         * modules/stdlib (Makefile.am): Sort replacements.
35787         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
35788         * lib/stdlib.in.h: Likewise.
35789
35790         parse-duration-tests: avoid link failure
35791         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
35792         LIBINTL.
35793         Reported by Tom G. Christensen.
35794
35795         openat-tests: ensure unlinkat behaves like rmdir
35796         * tests/test-rmdir.c (main): Factor guts...
35797         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
35798         * modules/rmdir-tests (Files): Ship new file.
35799         * modules/openat-tests: New test.
35800         * tests/test-unlinkat.c: Likewise.
35801
35802         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
35803         * modules/rmdir-errno (Status, Notice): Now obsolete.
35804
35805         rmdir: work around cygwin 1.5.x and mingw bugs
35806         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
35807         * lib/rmdir.c (rmdir): Work around it.
35808         * modules/rmdir (Status, Notice): No longer obsolete.
35809         (Files): Add dos.m4.
35810         (Depends-on): Add unistd.
35811         (configure.ac): Set witnesses.
35812         (License): Relax to LGPLv2+.
35813         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
35814         * modules/unistd (Makefile.am): Substitute witnesses.
35815         * lib/unistd.in.h (rmdir): Declare replacement.
35816         * doc/posix-functions/rmdir.texi (rmdir): Document this.
35817         * modules/rmdir-tests: New tests.
35818         * tests/test-rmdir.c: Likewise.
35819
35820 2009-09-15  Eric Blake  <ebb9@byu.net>
35821
35822         fchdir: improve use of replacement functions
35823         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
35824         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
35825         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
35826         REPLACE_CLOSEDIR.
35827         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
35828         * modules/sys_stat (Makefile.am): Substitute correct witness.
35829         * modules/dirent (Makefile.am): Likewise.
35830         * modules/unistd (Makefile.am): Likewise.
35831         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
35832         * lib/unistd.in.h (dup): Likewise.
35833         * lib/sys_stat.in.h (fstat): Likewise.
35834
35835         maint: ignore gnulib-tool temp files
35836         * .gitignore: Ignore files created during gnulib-tool --test.
35837
35838 2009-09-13  Jim Meyering  <meyering@redhat.com>
35839
35840         posixtm: don't reject a time that specify "60" as the number of seconds
35841         * lib/posixtm.c (posixtime): The code to reject invalid dates
35842         would also reject a time specified with the .60 suffix.
35843         But POSIX allows that, in order to accommodate leap seconds.
35844         So don't reject it.
35845         (main): Adjust tests accordingly.
35846         * modules/posixtm (Depends-on): Add stpcpy.
35847
35848 2009-09-11  Jim Meyering  <meyering@redhat.com>
35849
35850         announce-gen: include [$release_type] in emitted Subject:
35851         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
35852         e.g., [stable] in the emitted Subject: line.
35853
35854 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35855
35856         Remove obsolete macros from several modules.
35857         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
35858         obsolete Autoconf macros with their modern counterparts.
35859         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
35860         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
35861         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
35862         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
35863         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
35864         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35865         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
35866         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
35867         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
35868         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
35869         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
35870         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
35871         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
35872         * m4/sockets.m4 (gl_SOCKETS): Likewise.
35873         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
35874         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
35875         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
35876         * m4/time_r.m4 (gl_TIME_R): Likewise.
35877         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
35878         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
35879         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
35880
35881         Fix copyright header in build-aux scripts.
35882         * build-aux/git-version-gen: Fix copyright header to match GPLv3
35883         recommendation.
35884         * build-aux/ncftpput-ftp: Likewise.
35885         * build-aux/update-copyright: Likewise.
35886
35887 2009-09-09  Eric Blake  <ebb9@byu.net>
35888
35889         test-link: allow Linux choice of errno
35890         * tests/test-link.c (main): Relax test for alternate error.
35891
35892         strndup: fix improper m4 caching
35893         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
35894         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
35895         (gl_PREREQ_STRNDUP): Delete.
35896         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
35897         * modules/string (Makefile.am): Substitute it.
35898         * lib/string.in.h (strndup): Modernize prototype.
35899
35900         getcwd: port to mingw
35901         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
35902         different from the POSIX assumptions made throughout the getcwd
35903         module; fortunately, the mingw getcwd does not need replacement.
35904         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
35905         * modules/getcwd-tests: New test.
35906         * tests/test-getcwd.c: Likewise.
35907
35908         link: fix platform bugs
35909         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
35910         * lib/link.c (link): Work around them.  Fix related mingw bug.
35911         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
35912         * modules/unistd (Makefile.am): Substitute it.
35913         * lib/unistd.in.h (link): Declare replacement.
35914         * doc/posix-functions/link.texi (link): Document this.
35915         * modules/link (Depends-on): Add strdup-posix, sys_stat.
35916
35917         test-link: consolidate into single C program, test more cases
35918         * tests/test-link.sh: Delete.
35919         * tests/test-link.c: Test more error conditions.  Exposes bugs on
35920         at least Cygwin and Solaris.
35921         * modules/link-tests (Files): Remove unused file.
35922         (Depends-on): Add errno, sys_stat.
35923         (Makefile.am): Simplify.
35924
35925 2009-09-08  Bruno Haible  <bruno@clisp.org>
35926
35927         Work around towlower, towupper bug on mingw.
35928         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
35929         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
35930         * doc/posix-functions/towlower.texi: Mention the mingw bug.
35931         * doc/posix-functions/towupper.texi: Likewise.
35932         Reported by Eric Blake.
35933
35934 2009-09-08  Jim Meyering  <meyering@redhat.com>
35935
35936         build: don't try to run autoheader if we don't use it
35937         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
35938         is not used in configure.ac.
35939
35940 2009-09-08  Eric Blake  <ebb9@byu.net>
35941
35942         euidaccess: fix compilation error
35943         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
35944
35945         rawmemchr: relax license
35946         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
35947         okay.
35948         Reported by Jim Meyering.
35949
35950         mkfifoat: new module
35951         * modules/mkfifoat: New file.
35952         * lib/mkfifoat.c: Likewise.
35953         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
35954         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35955         * modules/sys_stat (Makefile.am): Use them.
35956         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
35957         * MODULES.html.sh (File system functions): Mention module.
35958         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35959         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35960         * modules/mkfifoat-tests: New test.
35961         * tests/test-mkfifoat.c: Likewise.
35962
35963         strchrnul: relax license
35964         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
35965         okay.
35966         Reported by Jim Meyering.
35967
35968 2009-09-08  Eric Blake  <ebb9@byu.net>
35969
35970         fstatat: fix compilation on Solaris
35971         * lib/fstatat.c (includes): Add fcntl.h.
35972         Reported by Pádraig Brady.
35973
35974 2009-09-07  Eric Blake  <ebb9@byu.net>
35975
35976         rename: modernize replacement
35977         * modules/rename (Depends-on): Add stdio.
35978         (configure.ac): Declare witness.
35979         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
35980         stdio take care of replacement.
35981         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
35982         * modules/stdio (Makefile.am): Substitute them.
35983         * lib/stdio.in.h (rename): Declare replacement.
35984         * lib/rename.c (includes): Allow cross-compilation to non-windows
35985         machines.
35986         * doc/posix-functions/rename.texi (rename): Improve
35987         documentation.
35988
35989         stdio: sort witness names
35990         * modules/stdio (Makefile.am): Sort replacements.
35991         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
35992         * lib/stdio.in.h: Likewise.
35993
35994         getcwd: minor cleanups
35995         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
35996         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
35997
35998         openat: provide more convenience names
35999         * modules/faccessat (configure.ac): Add C witness.
36000         * lib/unistd.in.h (readlinkat): Fix typo.
36001         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
36002         convenience wrappers.
36003         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
36004         wrappers in syntax checks.
36005
36006 2009-09-06  Eric Blake  <ebb9@byu.net>
36007
36008         doc: fix comments in recent patches
36009         * lib/faccessat.c: Mention correct function.
36010         * lib/fchmodat.c: Likewise.
36011         * lib/fchownat.c: Likewise.
36012         * lib/symlinkat.c: Likewise.
36013         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
36014         constants.
36015
36016         faccessat, symlinkat: continue cleanup of previous patch
36017         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
36018         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
36019         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
36020         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
36021         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
36022         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
36023         set.
36024
36025 2009-09-06  Bruno Haible  <bruno@clisp.org>
36026
36027         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
36028         (fstatat): Declare if GNULIB_FSTATAT is set.
36029         (mkdirat): Declare if GNULIB_MKDIRAT is set.
36030         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
36031         (unlinkat): Declare if GNULIB_UNLINKAT is set.
36032         * modules/fcntl-h (Files): Remove m4/openat.m4.
36033         * modules/sys_stat (Files): Remove m4/openat.m4.
36034         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
36035         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
36036         * modules/unistd (Files): Remove m4/openat.m4.
36037         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
36038         GNULIB_OPENAT.
36039         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
36040         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
36041         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
36042         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
36043         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
36044         gl_OPENAT_DEFAULTS.
36045         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
36046         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
36047         Don't require gl_OPENAT_DEFAULTS.
36048         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
36049         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
36050         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
36051         (gl_OPENAT_DEFAULTS): Remove macro.
36052
36053 2009-09-06  Bruno Haible  <bruno@clisp.org>
36054
36055         * modules/openat (configure.ac): Remove unneeded witness.
36056
36057 2009-09-06  Bruno Haible  <bruno@clisp.org>
36058
36059         Set errno to ENOSYS when a function is entirely unsupported.
36060         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
36061         EOPNOTSUPP.
36062         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36063         * modules/chown (Depends-on): Remove errno.
36064
36065 2009-09-06  Bruno Haible  <bruno@clisp.org>
36066
36067         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
36068
36069 2009-09-06  Bruno Haible  <bruno@clisp.org>
36070
36071         * lib/sys_stat.in.h: Fix preprocessor command indentation.
36072
36073 2009-09-06  Ben Pfaff  <blp@gnu.org>
36074             Bruno Haible  <bruno@clisp.org>
36075
36076         Work around a glibc bug in strtok_r.
36077         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
36078         Undefine if UNDEFINE_STRTOK_R is set.
36079         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
36080         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36081         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
36082         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
36083         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
36084         UNDEFINE_STRTOK_R.
36085         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
36086
36087 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
36088
36089         exclude: minor fix
36090         * lib/exclude.c: Include wctype.h
36091
36092 2009-09-06  Akim Demaille  <demaille@gostai.com>
36093
36094         bootstrap: improve error message
36095         * build-aux/bootstrap (find_tool): Upon failure, report the list
36096         of candidates.
36097         Honor the initial value of the envvar.
36098
36099 2009-09-05  Eric Blake  <ebb9@byu.net>
36100
36101         symlinkat: new module
36102         * modules/symlinkat: New file.
36103         * lib/symlinkat.c: Likewise.
36104         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
36105         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36106         * modules/unistd (Makefile.am): Use them.
36107         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
36108         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
36109         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
36110         * MODULES.html.sh (File system functions): Mention module.
36111         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36112         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36113         * modules/symlinkat-tests: New test.
36114         * tests/test-symlinkat.c: Likewise.
36115
36116         test-openat-safer: add more checks
36117         * tests/test-openat-safer.c (main): Check more code paths.
36118
36119 2009-09-05  Jim Meyering  <meyering@redhat.com>
36120
36121         syntax-check: detect unnecessary inclusion of openat.h
36122         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
36123
36124 2009-09-05  Bruno Haible  <bruno@clisp.org>
36125
36126         Support towlower, towupper.
36127         * doc/posix-functions/towlower.texi: Mention module wctype.
36128         * doc/posix-functions/towupper.texi: Likewise.
36129         * lib/wctype.in.h (towlower, towupper): New functions.
36130         * tests/test-wctype.c: Include stdio.h, stdlib.h.
36131         (ASSERT): New macro.
36132         (e): New variable.
36133         (main): Test also towlower, towupper. Test WEOF argument.
36134         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36135
36136 2009-09-05  Bruno Haible  <bruno@clisp.org>
36137
36138         Fix conversion behaviour when the input is invalid.
36139         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
36140         mark occurring in first pass of indirect conversion.
36141         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
36142         input.
36143         Found by clang's static analyzer.
36144
36145 2009-09-05  Bruno Haible  <bruno@clisp.org>
36146
36147         * tests/test-striconveh.c (main): Test indirect conversion on platforms
36148         where direct conversion is possible.
36149
36150 2009-09-04  Eric Blake  <ebb9@byu.net>
36151
36152         openat: fail with ENOENT on empty name
36153         * lib/openat-proc.c (openat_proc_name): Special-case the empty
36154         buffer.
36155
36156         link-follow: fix logic bug in prior patch
36157         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
36158         reversed sense of yes and no in prior patch.  Avoid confusing
36159         compilation failure with desired semantics.
36160
36161         link-follow: accomodate mingw and cross-compilation
36162         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
36163         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
36164         cross-compilation results to -1, to make linkat easier to
36165         implement when cross-compiling.  Trivially support mingw.
36166         * modules/link-follow (configure.ac): Call new name.
36167         * NEWS: Mention this.
36168
36169 2009-09-03  Eric Blake  <ebb9@byu.net>
36170
36171         faccessat: compile replacement
36172         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
36173         needed.
36174
36175         fts: fix compilation error
36176         * lib/fts.c (includes): Re-add "openat.h", for
36177         openat_needs_fchdir.
36178
36179         faccessat: new module
36180         * modules/faccessat: New file.
36181         * lib/faccessat.c: Likewise.
36182         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
36183         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36184         * modules/unistd (Makefile.am): Use it.
36185         * lib/unistd.in.h (faccessat): Declare it.
36186         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
36187         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
36188         * MODULES.html.sh (File system functions): Mention it.
36189         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
36190         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
36191
36192         euidaccess: prefer POSIX over non-standard implementation
36193         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
36194         * lib/euidaccess.c (euidaccess): Use it if available.
36195
36196         openat: make template easier to use
36197         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
36198         AT_FUNC_F2 to be undefined.
36199         (VALIDATE_FLAG): New macro; use it to reject bad flags.
36200         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
36201         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
36202         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
36203         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
36204         Likewise.
36205         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
36206         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
36207         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
36208         Likewise.
36209
36210         openat: declare in POSIX headers
36211         * NEWS: Mention this.
36212         * modules/openat (configure.ac): Declare witnesses.
36213         (Depends-on): Add fcntl-h, sys_stat, unistd.
36214         (Include): Mention correct headers.
36215         * modules/fcntl-h (Depends-on): Add link-warning.
36216         (Files): Add openat.m4.
36217         (Makefile.am): Substitute witnesses.
36218         * modules/sys_stat (Files, Makefile.am): Likewise.
36219         * modules/unistd (Files, Makefile.am): Likewise.
36220         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
36221         (gl_OPENAT_DEFAULTS): New macro.
36222         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
36223         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
36224         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
36225         (SYS_STAT_H): Remove unused variable.
36226         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
36227         * lib/fcntl--.h (includes): Remove unneeded header.
36228         * lib/openat-safer.c (includes): Likewise.
36229         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
36230         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
36231         appropriate headers.
36232         (__OPENAT_PREFIX): Delete.
36233         * lib/fcntl.in.h (openat): Provide declaration.
36234         (AT_FDCWD): Fix Solaris bug.
36235         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
36236         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
36237         * lib/fchmodat.c (includes):  Adjust to find declaration.
36238         * lib/fchownat.c (includes): Likewise.
36239         * lib/mkdirat.c (includes): Likewise.
36240         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
36241         still visible.
36242
36243 2009-09-02  Eric Blake  <ebb9@byu.net>
36244
36245         errno: use consistently
36246         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
36247         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
36248         * lib/canonicalize.c (ELOOP): Likewise.
36249         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
36250         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
36251         * lib/lchown.c (EOPNOTSUPP): Likewise.
36252         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
36253         * lib/savewd.c (ESTALE): Likewise.
36254         * lib/settime.c (ENOSYS): Likewise.
36255         * lib/utimens.c (ENOSYS): Likewise.
36256         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
36257         * lib/chdir-safer.c (ELOOP): Likewise.
36258         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
36259         * modules/c-stack (Depends-on): Add errno.
36260         * modules/canonicalize (Depends-on): Likewise.
36261         * modules/chdir-safer (Depends-on): Likewise.
36262         * modules/fdopendir (Depends-on): Likewise.
36263         * modules/inet_ntop (Depends-on): Likewise.
36264         * modules/inet_pton (Depends-on): Likewise.
36265         * modules/lchown (Depends-on): Likewise.
36266         * modules/openat (Depends-on): Likewise.
36267         * modules/savewd (Depends-on): Likewise.
36268         * modules/settime (Depends-on): Likewise.
36269         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
36270
36271         fts: avoid leaking fds
36272         * modules/fts (Depends-on): Add cloexec.
36273         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
36274         flag.
36275
36276         fts: make directory fds more robust
36277         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
36278         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
36279
36280         backupfile, chdir-long, fts, savedir: make safer
36281         * lib/backupfile.c (includes): Use "dirent--.h", since
36282         numbered_backup can write to stderr during readdir.
36283         * lib/savedir.c (includes): Likewise.
36284         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
36285         emulation can write to stderr on failure.
36286         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
36287         * lib/getcwd.c: Document why opendir_safer is unused.
36288         * lib/glob.c: Likewise.
36289         * lib/scandir.c: Likewise.
36290         * lib/openat-proc.c: Likewise, for open_safer.
36291         * modules/backupfile (Depends-on): Add dirent-safer.
36292         * modules/savedir (Depends-on): Likewise.
36293         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
36294         * modules/chdir-long (Depends-on): Add openat-safer.
36295
36296         openat-safer: new module
36297         * modules/openat-safer: New file.
36298         * lib/openat-safer.c: Likewise.
36299         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
36300         * lib/fcntl-safer.h (openat_safer): Declare.
36301         * lib/fcntl--.h (openat): Override.
36302         * MODULES.html.sh (File descriptor based I/O): Mention it.
36303         * lib/openat.h: Add double-inclusion guards.
36304         * lib/openat.c (includes): Only include "fcntl-safer.h", not
36305         "fcntl--.h", so we can implement openat.
36306         * modules/openat-safer-tests: New test.
36307         * tests/test-openat-safer.c: New file.
36308
36309         dirent-safer: new module
36310         * modules/dirent-safer: New file.
36311         * lib/dirent--.h: Likewise.
36312         * lib/dirent-safer.h: Likewise.
36313         * lib/opendir-safer.c: Likewise.
36314         * m4/dirent-safer.m4: Likewise.
36315         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
36316         * modules/dirent-safer-tests: New test.
36317         * tests/test-dirent-safer.c: New file.
36318         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
36319
36320         fdopendir: optimize on mingw
36321         * lib/unistd.in.h (_gl_directory_name): New prototype.
36322         * lib/fchdir.c (_gl_directory_name): Implement it.
36323         (fchdir): Use it to simplify implementation.
36324         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
36325         fchdir, when available, to avoid calling [f]chdir().
36326
36327         fdopendir: split into its own module
36328         * lib/openat.c (fdopendir): Move...
36329         * lib/fdopendir.c: ...into new file.
36330         * modules/fdopendir: New module.
36331         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
36332         * modules/openat (Depends-on): Add fdopendir.
36333         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
36334         fdopendir here.
36335         * modules/savedir (Depends-on): Only need fdopendir, not full
36336         openat.
36337         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
36338         * lib/openat.h (fdopendir): Drop prototype.
36339         * lib/dirent.in.h (fdopendir): Provide prototype.
36340         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
36341         * modules/dirent (Makefile.am): Substitute them.
36342         * MODULES.html.sh (File system functions): Mention it.
36343         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
36344         * modules/fdopendir-tests: New file.
36345         * tests/test-fdopendir.c: Likewise.
36346
36347         fchdir: use more consistent macro convention
36348         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
36349         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
36350         REPLACE_FCHDIR, rather than relying on config.h macros.
36351         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
36352         inside a single make-time REPLACE_FCHDIR block, rather than using
36353         the config.h FCHDIR_REPLACEMENT.
36354         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
36355         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
36356         Manage fstat replacement.
36357         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
36358         REPLACE_FCHDIR.
36359         * modules/sys_stat (Files): Add m4/unistd_h.m4.
36360         (Makefile.am): Substitute REPLACE_FCHDIR.
36361         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
36362         FCHDIR_REPLACEMENT.
36363         * lib/dup-safer.c (dup_safer): Likewise.
36364         * lib/dup2.c (rpl_dup2): Likewise.
36365         * lib/dup3.c (rpl_dup3): Likewise.
36366         * lib/open.c (rpl_open): Likewise.
36367
36368         fchdir: simplify error handling, and support dup3
36369         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
36370         stdbool, malloc-posix, realloc-posix.
36371         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
36372         (ensure_dirs_slot): Return false on allocation failure.
36373         (rpl_dup2): Delete.
36374         (_gl_register_dup): New function.
36375         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
36376         (_gl_register_fd): Close fd on allocation failure.
36377         * lib/fcntl.in.h (_gl_register_fd): Update signature.
36378         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
36379         prototype.
36380         (rpl_dup2_fchdir): Delete prototype.
36381         * lib/open.c (open): Update caller.
36382         * lib/dup2.c (dup2): Track fchdir metadata.
36383         * lib/dup3.c (dup3): Likewise.
36384         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
36385         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
36386
36387 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36388
36389         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
36390         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
36391         don't pass arguments to AC_OUTPUT.
36392
36393 2009-09-02  Bruno Haible  <bruno@clisp.org>
36394
36395         * modules/mkdtemp (License): Relicense under LGPLv2+.
36396         Reported by Paolo Bonzini.
36397
36398 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36399
36400         Replace uses of obsolete autoconf macros in Jim's modules.
36401         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
36402         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
36403         can evoke a warning from autoconf when run with -Wobsolete
36404         enabled.  They were declared obsolete for good reasons (see
36405         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
36406         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
36407         should not continue using the deprecated macros.
36408         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
36409         obsolete Autoconf macros with modern counterparts.
36410         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
36411         * m4/dos.m4 (gl_AC_DOS): Likewise.
36412         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
36413         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
36414         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
36415         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
36416         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
36417         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
36418         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
36419         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
36420         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
36421         Likewise.
36422         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
36423         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
36424         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
36425         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
36426         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
36427         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
36428
36429 2009-09-01  Eric Blake  <ebb9@byu.net>
36430
36431         fchdir: fix off-by-one bug in previous patch
36432         * lib/fchdir.c (rpl_fstat): Use correct bounds.
36433         (_gl_unregister_fd): Delete useless if.
36434
36435 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
36436
36437         maint.mk: sort the list of syntax-check rules
36438         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
36439         easier to get a sense of progress when the rules are run sequentially
36440         and take a long time.
36441
36442 2009-09-01  Simon Josefsson  <simon@josefsson.org>
36443
36444         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
36445         * modules/netinet_in: Likewise.
36446         * modules/sys_file: Likewise.
36447         * modules/sys_ioctl: Likewise.
36448         * modules/sys_select: Likewise.
36449         * modules/sys_socket: Likewise.
36450         * modules/sys_stat: Likewise.
36451         * modules/sys_time: Likewise.
36452         * modules/sys_times: Likewise.
36453         * modules/sys_utsname: Likewise.
36454         * modules/sys_wait: Likewise.
36455
36456 2009-09-01  Jim Meyering  <meyering@redhat.com>
36457
36458         fts: help ensure that return values are not ignored
36459         * lib/fts_.h (__GNUC_PREREQ): Define.
36460         (__attribute_warn_unused_result__): Define.
36461         (fts_children, fts_close, fts_open, fts_read): Declare with
36462         __attribute_warn_unused_result__.
36463
36464         fts: fts_close now fails also when closing a dir file descriptor fails
36465         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
36466         and propagate to caller, along with errno.
36467
36468         announce-gen: correct formatting in --help output
36469         * build-aux/announce-gen (usage): Move the one-line description in
36470         --help output "up", to where it belongs, just after Usage:.
36471
36472 2009-08-31  Eric Blake  <ebb9@byu.net>
36473
36474         fchdir: port to mingw
36475         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
36476         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
36477         opened, then use a substitute.
36478         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
36479         replacement.
36480         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
36481         (_gl_register_fd): No need to check stat if open already filters
36482         all directories.
36483         (fchdir): Fix error condition to match POSIX.
36484         * modules/fchdir (Depends-on): Add sys_stat.
36485         * doc/posix-functions/open.texi (open): Document the limitation.
36486         * modules/fchdir-tests: New file.
36487         * tests/test-fchdir.c: Likewise.
36488
36489         canonicalize: allow cross-testing from cygwin to mingw
36490         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
36491         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
36492         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
36493         Likewise.
36494         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
36495         target does not support symlinks.
36496         * tests/test-canonicalize-lgpl.sh: Likewise.
36497
36498         chown: avoid compilation warning on mingw
36499         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
36500         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
36501         mingw.
36502         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36503         * modules/chown (Depends-on): Add errno.
36504
36505 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
36506
36507         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
36508         command.
36509
36510 2009-08-31  Jim Meyering  <meyering@redhat.com>
36511
36512         canonicalize: remove useless initialization
36513         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
36514         initialization of local, "end".
36515
36516 2009-08-30  Bruno Haible  <bruno@clisp.org>
36517
36518         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
36519         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
36520         ENOSYS.
36521
36522 2009-08-30  Bruno Haible  <bruno@clisp.org>
36523
36524         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
36525         /usr/xpg4/bin/tr when it exists.
36526         * tests/test-pipe-filter-gi1.sh: Likewise.
36527
36528 2009-08-30  Bruno Haible  <bruno@clisp.org>
36529
36530         Work around deficient /usr/bin/id program on Solaris.
36531         * tests/test-file-has-acl.sh (ID): New variable.
36532         * tests/test-set-mode-acl.sh (ID): Likewise.
36533         * tests/test-copy-acl.sh (ID): Likewise.
36534         * tests/test-copy-file.sh (ID): Likewise.
36535
36536 2009-08-30  Bruno Haible  <bruno@clisp.org>
36537
36538         New module 'xstriconveh'.
36539         * lib/xstriconveh.h: New file.
36540         * lib/xstriconveh.c: New file.
36541         * modules/xstriconveh: New file.
36542
36543 2009-08-30  Bruno Haible  <bruno@clisp.org>
36544
36545         Make it easier to use mem_cd_iconveh.
36546         * lib/striconveh.h (iconveh_t): New type.
36547         (iconveh_open, iconveh_close): New declarations.
36548         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36549         with a single 'const iconveh_t *' argument.
36550         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
36551         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36552         with a single 'const iconveh_t *' argument.
36553         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
36554         * tests/test-striconveh.c (main): Update.
36555         * NEWS: Mention the change.
36556
36557 2009-08-30  Bruno Haible  <bruno@clisp.org>
36558
36559         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
36560         problem.
36561
36562 2009-08-30  Bruno Haible  <bruno@clisp.org>
36563
36564         Work around iconv_open problem on Solaris.
36565         * lib/iconv_open-solaris.gperf: New file.
36566         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
36567         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
36568         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
36569         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
36570         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
36571         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
36572
36573 2009-08-29  Jim Meyering  <meyering@redhat.com>
36574
36575         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
36576         * top/maint.mk (cvs-check): Remove target; it was just an alias
36577         to the better-named vc-diff-check.
36578         (maintainer-distcheck): Remove rule.  It was used only from
36579         the (alpha/beta/major) target, and all of its commands but one
36580         were coreutils-specific.
36581         (vc-dist): Remove rule.
36582         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
36583         Run vc-diff-check, not vc-dist.
36584         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
36585
36586 2009-08-27  Bruno Haible  <bruno@clisp.org>
36587
36588         * tests/test-bitrotate.c (main): Remove test that uses a shift count
36589         of 0.
36590
36591 2009-08-27  Bruno Haible  <bruno@clisp.org>
36592
36593         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
36594         compilers.
36595         * doc/func.texi: Document the SunPRO C bug.
36596
36597 2009-08-27  Bruno Haible  <bruno@clisp.org>
36598
36599         Fix link error on Solaris.
36600         * tests/test-parse-duration.c (xstrdup): Remove function.
36601
36602 2009-08-26  Pádraig Brady  <P@draigbrady.com>
36603
36604         ignore-value: handle pointer types, too
36605         * lib/ignore-value.h (__attribute__): Remove definition.
36606         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
36607         of a more concise and more-often effective "(void) i" statement.
36608         (ignore_ptr): New function to suppress warnings from functions that
36609         return pointers, and to make it explicit that one function doesn't
36610         handle all cases.
36611
36612 2009-08-25  Bruno Haible  <bruno@clisp.org>
36613
36614         dup2: work around a Linux bug.
36615         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
36616         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
36617         * doc/posix-functions/dup2.texi: Mention the Linux bug.
36618         Reported by Simon Josefsson.
36619
36620 2009-08-25  Jim Meyering  <meyering@redhat.com>
36621
36622         libguestfs uses gnulib
36623         * users.txt: Add libguestfs.
36624
36625 2009-08-24  Eric Blake  <ebb9@byu.net>
36626
36627         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
36628         * lib/pipe2.c (includes): Add binary-io.h.
36629         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
36630
36631 2009-08-24  Bruno Haible  <bruno@clisp.org>
36632
36633         Tolerate declared but missing accept4 syscall.
36634         * lib/accept4.c (accept4): Invoke original accept4 function first, if
36635         available.
36636         * lib/sys_socket.in.h (accept4): If the function is already present,
36637         override it.
36638         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
36639         * modules/accept4 (Makefile.am): Compile accept4.c always.
36640         Reported by Paolo Bonzini and Eric Blake.
36641
36642 2009-08-23  Bruno Haible  <bruno@clisp.org>
36643
36644         New module 'accept4'.
36645         * lib/sys_socket.in.h (accept4): New declaration.
36646         * lib/accept4.c: New file.
36647         * m4/accept4.m4: New file.
36648         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36649         GNULIB_ACCEPT4, HAVE_ACCEPT4.
36650         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
36651         HAVE_ACCEPT4.
36652         * modules/accept4: New file.
36653         * doc/glibc-functions/accept4.texi: Mention the new module.
36654
36655 2009-08-24  Jim Meyering  <meyering@redhat.com>
36656
36657         progname: also set global program_invocation_name, when possible
36658         Before this change, a libtool-enabled program that calls glibc's
36659         error function would report the program name as
36660         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
36661         * modules/progname (configure.ac): Check for a declaration of
36662         program_invocation_name.
36663         * lib/progname.c:  Include <errno.h>.
36664         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
36665         Set program_invocation_name.
36666
36667 2009-08-23  Bruno Haible  <bruno@clisp.org>
36668
36669         * lib/dup3.c: Include <string.h>.
36670
36671 2009-08-23  Bruno Haible  <bruno@clisp.org>
36672
36673         * lib/dup3.c (dup3): Test only once whether the system actually exists.
36674         * lib/pipe2.c (pipe2): Likewise.
36675         Suggested by Eric Blake.
36676
36677 2009-08-23  Bruno Haible  <bruno@clisp.org>
36678
36679         Tolerate declared but missing dup3 syscall.
36680         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
36681         * lib/unistd.in.h (dup3): If the function is already present,
36682         override it.
36683         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
36684         * modules/dup3 (Makefile.am): Compile dup3.c always.
36685         Reported by Paolo Bonzini.
36686
36687 2009-08-23  Bruno Haible  <bruno@clisp.org>
36688
36689         Tolerate declared but missing pipe2 syscall.
36690         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
36691         available.
36692         * lib/unistd.in.h (pipe2): If the function is already present,
36693         override it.
36694         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
36695         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
36696         Reported by Paolo Bonzini.
36697
36698 2009-08-23  Bruno Haible  <bruno@clisp.org>
36699
36700         * lib/pipe2.c (pipe2): Move #ifs inside function.
36701
36702 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36703
36704         quotearg: document limitations of quote_these_too
36705         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
36706         those limitations are created.
36707         * lib/quotearg.h (set_char_quoting): Document that digits and
36708         letters that are special after backslash are not permitted.
36709         (quotearg_char): Cross-reference set_char_quoting documentation.
36710
36711 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
36712
36713         quotearg: implement custom_quoting_style
36714         * lib/quotearg.c: (struct quoting_options): Add left_quote and
36715         right_quote fields.
36716         (set_custom_quoting): New public function.
36717         (quotearg_buffer_restyled): Add left_quote and right_quote
36718         arguments, handle them very much like locale quoting, and update
36719         all uses.
36720         (quotearg_n_custom): New public function.
36721         (quotearg_n_custom_mem): New public function.
36722         (quotearg_custom): New public function.
36723         (quotearg_custom_mem): New public function.
36724         * lib/quotearg.h: Prototype and document new public functions.
36725         (enum quoting_style): For escape_quoting_style and
36726         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
36727         ignored even though they're otherwise like c_quoting_style.
36728         Add custom_quoting_style member and document with comparison to
36729         clocale_quoting_style.
36730         * tests/test-quotearg.c (custom_quotes): New array.
36731         (custom_results): New array.
36732         (main): Extend to test custom quoting.
36733
36734 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36735
36736         quotearg: fix right quote escaping when it's in quote_these_too
36737         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
36738         quote, be sure to prepend only one backslash.
36739         * tests/test-quotearg.c (use_quote_double_quotes): New function.
36740         (main): Test it.
36741
36742 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36743
36744         quotearg-tests: test escaping of embedded locale quotes
36745         * tests/test-quotearg.c (struct result_strings): Add member for
36746         new input.
36747         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
36748         (inputs): Add new input.
36749         (results_g): Add expected results.
36750         (flag_results): Likewise.
36751         (locale_results): Likewise.
36752         (compare_strings): Check those.
36753
36754 2009-08-23  Bruno Haible  <bruno@clisp.org>
36755
36756         Tests for module 'dup3'.
36757         * modules/dup3-tests: New file.
36758         * tests/test-dup3.c: New file.
36759
36760         New module 'dup3'.
36761         * lib/unistd.in.h (dup3): New declaration.
36762         * lib/dup3.c: New file.
36763         * m4/dup3.m4: New file.
36764         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
36765         HAVE_DUP3.
36766         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
36767         * modules/dup3: New file.
36768         * doc/glibc-functions/dup3.texi: Mention the new module.
36769
36770 2009-08-23  Bruno Haible  <bruno@clisp.org>
36771
36772         Tweak the dup2 test.
36773         * tests/test-dup2.c (main): Create the test file empty. Verify that an
36774         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
36775         the test file is still empty. Fix argument order of lseek.
36776
36777 2009-08-23  Bruno Haible  <bruno@clisp.org>
36778
36779         Avoid test link errors when the modules getopt-gnu, gettext are used.
36780         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
36781         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36782
36783 2009-08-23  Bruno Haible  <bruno@clisp.org>
36784
36785         Fix getdtablesize() on mingw.
36786         * lib/getdtablesize.c (getdtablesize): Implement differently.
36787         * lib/unistd.in.h (getdtablesize): Improve comment.
36788
36789 2009-08-23  Bruno Haible  <bruno@clisp.org>
36790
36791         New module 'mkostemp'.
36792         Based on Ulrich Drepper's 2007-08-10 change in glibc.
36793         * lib/stdlib.in.h (mksotemp): New declaration.
36794         * lib/mkostemp.c: New file, from glibc with modifications.
36795         * lib/tempname.h (GT_FILE): Remove outdated comment.
36796         (gen_tempname): Add flags argument.
36797         * lib/tempname.c (__GT_BIGFILE): Remove macro.
36798         (__GT_FILE): Map to 1.
36799         (small_open, large_open): Remove macros.
36800         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
36801         * lib/mkstemp.c (mkstemp): Update.
36802         * lib/mkdtemp.c (mkdtemp): Likewise.
36803         * m4/mkostemp.m4: New file.
36804         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
36805         HAVE_MKOSTEMP.
36806         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
36807         HAVE_MKOSTEMP.
36808         * modules/mkostemp: New file, based on modules/mkstemp.
36809         * doc/glibc-functions/mkostemp.texi: Mention the new module.
36810         * NEWS: Mention the change.
36811
36812 2009-08-23  Bruno Haible  <bruno@clisp.org>
36813
36814         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
36815         Reported by Eric Blake.
36816
36817 2009-08-23  Bruno Haible  <bruno@clisp.org>
36818
36819         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
36820         Reported by Eric Blake.
36821
36822 2009-08-23  Bruno Haible  <bruno@clisp.org>
36823
36824         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
36825         * modules/pipe2 (Depends-on): Likewise.
36826
36827 2009-08-23  Eric Blake  <ebb9@byu.net>
36828
36829         fcntl-h: add O_TTY_INIT support
36830         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
36831         * tests/test-fcntl-h.c (o): Test it.
36832         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36833
36834         fcntl-h: rename from fcntl, in preparation for fcntl(2)
36835         * modules/fcntl: Move <fcntl.h> header replacement...
36836         * modules/fcntl-h: ...to new name, so as not to collide with
36837         like-named function.
36838         * tests/test-fcntl.c: Rename...
36839         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
36840         * modules/fcntl-tests: Rename...
36841         * modules/fcntl-h-tests: ...to this.  Update test file name.
36842         * modules/chdir-long (Depends-on): Update clients.
36843         * modules/chdir-safer (Depends-on): Likewise.
36844         * modules/fcntl-safer (Depends-on): Likewise.
36845         * modules/fts (Depends-on): Likewise.
36846         * modules/mkancesdirs (Depends-on): Likewise.
36847         * modules/mkdir-p (Depends-on): Likewise.
36848         * modules/open (Depends-on): Likewise.
36849         * modules/savewd (Depends-on): Likewise.
36850         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
36851         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36852
36853 2009-08-22  Bruno Haible  <bruno@clisp.org>
36854
36855         * modules/binary-io (License): Relicense under LGPL.
36856         * modules/pipe2 (License): Likewise.
36857
36858 2009-08-22  Bruno Haible  <bruno@clisp.org>
36859
36860         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
36861         return value.
36862         * lib/pipe-filter-gi.c (filter_init): Likewise.
36863         Reported by Eric Blake.
36864
36865 2009-08-22  Bruno Haible  <bruno@clisp.org>
36866
36867         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
36868         * modules/pipe (Depends-on): Add pipe2.
36869
36870 2009-08-22  Bruno Haible  <bruno@clisp.org>
36871
36872         Tests for module 'pipe2'.
36873         * modules/pipe2-tests: New file.
36874         * tests/test-pipe2.c: New file.
36875
36876         New module 'pipe2'.
36877         * lib/unistd.in.h (pipe2): New declaration.
36878         * lib/pipe2.c: New file.
36879         * m4/pipe2.m4: New file.
36880         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
36881         HAVE_PIPE2.
36882         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
36883         * modules/pipe2: New file.
36884         * doc/glibc-functions/pipe2.texi: Mention the new module.
36885
36886 2009-08-22  Bruno Haible  <bruno@clisp.org>
36887
36888         Reference some new glibc functions.
36889         * doc/glibc-functions/accept4.texi: New file.
36890         * doc/glibc-functions/dup3.texi: New file.
36891         * doc/glibc-functions/mkostemp.texi: New file.
36892         * doc/glibc-functions/pipe2.texi: New file.
36893         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
36894         (Glibc sys/socket.h): Refer to accept4.
36895         (Glibc unistd.h): Refer to dup3, pipe2.
36896         Reported by Eric Blake.
36897
36898 2009-08-22  Jim Meyering  <meyering@redhat.com>
36899             Bruno Haible  <bruno@clisp.org>
36900
36901         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
36902         This makes it so packages using automake-1.11's silent-rules option
36903         can print e.g., a single "GEN    configmake.h" line, rather than
36904         the 30+ statements that perform the job.  If you want to see the
36905         actual commands, you can still run "make V=1".
36906         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
36907         so that make output is abbreviated when those variables are defined
36908         appropriately.
36909         * modules/argz: Likewise.
36910         * modules/arpa_inet: Likewise.
36911         * modules/byteswap: Likewise.
36912         * modules/configmake: Likewise.
36913         * modules/dirent: Likewise.
36914         * modules/errno: Likewise.
36915         * modules/fcntl: Likewise.
36916         * modules/float: Likewise.
36917         * modules/fnmatch: Likewise.
36918         * modules/getopt-posix: Likewise.
36919         * modules/glob: Likewise.
36920         * modules/iconv_open: Likewise.
36921         * modules/inttypes: Likewise.
36922         * modules/localcharset: Likewise.
36923         * modules/locale: Likewise.
36924         * modules/math: Likewise.
36925         * modules/netdb: Likewise.
36926         * modules/netinet_in: Likewise.
36927         * modules/poll: Likewise.
36928         * modules/posix_spawnp-tests: Likewise.
36929         * modules/sched: Likewise.
36930         * modules/search: Likewise.
36931         * modules/selinux-h: Likewise.
36932         * modules/signal: Likewise.
36933         * modules/spawn: Likewise.
36934         * modules/stdarg: Likewise.
36935         * modules/stdbool: Likewise.
36936         * modules/stddef: Likewise.
36937         * modules/stdint: Likewise.
36938         * modules/stdio: Likewise.
36939         * modules/stdlib: Likewise.
36940         * modules/string: Likewise.
36941         * modules/strings: Likewise.
36942         * modules/sys_file: Likewise.
36943         * modules/sys_ioctl: Likewise.
36944         * modules/sys_select: Likewise.
36945         * modules/sys_socket: Likewise.
36946         * modules/sys_stat: Likewise.
36947         * modules/sys_time: Likewise.
36948         * modules/sys_times: Likewise.
36949         * modules/sys_utsname: Likewise.
36950         * modules/sys_wait: Likewise.
36951         * modules/sysexits: Likewise.
36952         * modules/time: Likewise.
36953         * modules/unistd: Likewise.
36954         * modules/wchar: Likewise.
36955         * modules/wctype: Likewise.
36956
36957 2009-08-22  Jim Meyering  <meyering@redhat.com>
36958
36959         announce-gen: detect write failure
36960         * build-aux/announce-gen: Add Coda at end.
36961         Remove equivalent-but-more-verbose block at top.
36962
36963 2009-08-19  Akim Demaille  <demaille@gostai.com>
36964
36965         bootstrap: --help to stdout.
36966         * bootstrap (usage): Don't send --help to stderr.
36967         Use a here doc instead of a long string.
36968
36969 2009-08-21  Eric Blake  <ebb9@byu.net>
36970
36971         test-popen-safer: split from test-popen
36972         * tests/test-popen.c (main): Move...
36973         * tests/test-popen.h: ...into new file.
36974         * tests/test-popen-safer2.c: New file.
36975         * modules/popen-tests (Files): Add test-popen.h.
36976         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
36977         Suggested by Bruno Haible.
36978
36979         test-fcntl-safer: split from test-open
36980         * tests/test-open.c (main): Move...
36981         * tests/test-open.h: ...into new file.
36982         * tests/test-fcntl-safer.c: New file.
36983         * modules/open-tests (Files): Add test-open.h.
36984         * modules/fcntl-safer-tests: New file.
36985         Suggested by Bruno Haible.
36986
36987         test-fopen-safer: split from test-fopen
36988         * tests/test-fopen.c (main): Move...
36989         * tests/test-fopen.h: ...into new file.
36990         * tests/test-fopen-safer.c: New file.
36991         * modules/fopen-tests (Files): Add test-fopen.h.
36992         * modules/fopen-safer-tests: New file.
36993         Suggested by Bruno Haible.
36994
36995 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
36996
36997         popen-safer: test O_CLOEXEC at run-time.
36998         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
36999
37000 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
37001
37002         fcntl: move more flags to the header
37003         * lib/cloexec.c: Do not define FD_CLOEXEC here.
37004         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
37005         * lib/fcntl.in.h: Do both things here.
37006
37007 2009-08-21  Jim Meyering  <meyering@redhat.com>
37008
37009         consistently remove $@-t before redirecting to it
37010         * modules/argz: Remove $@-t and $@ before redirecting to the former.
37011         * modules/alloca-opt: Likewise.
37012         * modules/byteswap: Likewise.
37013         * modules/fnmatch: Likewise.
37014         * modules/getopt-posix: Likewise.
37015         * modules/glob: Likewise.
37016         * modules/poll: Likewise.
37017         * modules/posix_spawnp-tests: Likewise.
37018         * modules/sys_socket: Likewise.
37019         * modules/sysexits: Likewise.
37020
37021 2009-08-21  Eric Blake  <ebb9@byu.net>
37022
37023         popen: simplify access to original popen
37024         * lib/popen.c (rpl_popen): No need to worry about popen being a
37025         macro.
37026         Reported by Bruno Haible.
37027
37028 2009-08-20  Eric Blake  <ebb9@byu.net>
37029
37030         build: avoid some compiler warnings
37031         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
37032         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
37033         type.
37034         (new_exclude_segment, excluded_file_pattern_p)
37035         (excluded_file_name_p): Reduce scope.
37036         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
37037         old-style declaration.
37038
37039 2009-08-20  Simon Josefsson  <simon@josefsson.org>
37040
37041         * tests/test-exclude1.sh: Handle Windows EOL.
37042         * tests/test-exclude2.sh: Likewise.
37043         * tests/test-exclude3.sh: Likewise.
37044         * tests/test-exclude4.sh: Likewise.
37045         * tests/test-exclude5.sh: Likewise.
37046         * tests/test-exclude6.sh: Likewise.
37047         * tests/test-exclude7.sh: Likewise.
37048
37049 2009-08-19  Akim Demaille  <demaille@gostai.com>
37050
37051         bootstrap: find sha1sum when named gsha1sum.
37052         * bootstrap (find_tool): New.
37053         ($SHA1SUM): New.
37054         Use it.
37055
37056 2009-08-20  Jim Meyering  <meyering@redhat.com>
37057
37058         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
37059         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
37060         expression that converts "." in a file name to "\." in the resulting
37061         regexp.  Start with a dummy statement, so that prior shell variable
37062         definitions are expanded portably.  Reported by Simon Josefsson.
37063
37064 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
37065
37066         Fix polling for writeability of a screen buffer.
37067         * lib/poll.c: Distinguish input and screen buffers for the
37068         Win32 implementation.
37069         * lib/select.c: Likewise.
37070
37071 2009-08-19  Eric Blake  <ebb9@byu.net>
37072
37073         popen-safer: prevent popen from clobbering std descriptors
37074         * modules/popen-safer: New file.
37075         * lib/popen-safer.c: Likewise.
37076         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
37077         * lib/stdio--.h (popen): Provide override.
37078         * lib/stdio-safer.h (popen_safer): Provide declaration.
37079         * tests/test-popen.c (includes): Partially test this.
37080         * modules/popen-safer-tests: New file, for more tests.
37081         * tests/test-popen-safer.c: Likewise.
37082         * MODULES.html.sh (file stream based Input/Output): Mention it.
37083
37084         tests: test some of the *-safer modules
37085         * modules/fopen-safer (Depends-on): Add fopen.
37086         * modules/fcntl-safer (Depends-on): Add fcntl.
37087         * modules/stdlib-safer (Depends-on): Add stdlib.
37088         (configure.ac): Set indicator.
37089         * modules/unistd-safer (configure.ac): Likewise.
37090         * modules/tmpfile-safer (configure.ac): Likewise.
37091         (Depends-on): Add tmpfile.
37092         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
37093         active.
37094         * tests/test-fopen.c (includes): Test safer versions when they are
37095         in use.
37096         * tests/test-open.c (includes): Likewise.
37097
37098         popen: fix cygwin 1.5 bug when stdin closed
37099         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
37100         * modules/popen: New file.
37101         * modules/popen-tests: Likewise.
37102         * tests/test-popen.c: Likewise.
37103         * m4/popen.m4: Likewise.
37104         * lib/popen.c: Likewise.
37105         * lib/stdio.in.h (popen): New declaration.
37106         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
37107         * modules/stdio (Makefile.am): Likewise.
37108         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
37109
37110 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
37111
37112         maint.mk: give full control over update-copyright exclusions
37113         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
37114         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
37115         (update-copyright): Don't force inclusion of top-level
37116         ChangeLog.  Don't force exclusion of all COPYING files, but make
37117         them the default exclusion instead.
37118
37119 2009-08-16  Bruno Haible  <bruno@clisp.org>
37120
37121         Fix test failures on Solaris 10.
37122         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
37123         tests when Solaris iconv() is used.
37124         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
37125         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
37126         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
37127         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
37128         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
37129
37130 2009-08-16  Bruno Haible  <bruno@clisp.org>
37131
37132         Fix test failures on Solaris 10.
37133         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
37134         'tr' program and pass it as first argument.
37135         * tests/test-pipe-filter-gi1.sh: Likewise.
37136         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
37137         program as first argument.
37138         * tests/test-pipe-filter-gi1.c (main): Likewise.
37139
37140 2009-08-16  Eric Blake  <ebb9@byu.net>
37141
37142         fpurge: fix previous commits
37143         * modules/fpurge (Makefile.am): Make replacement conditional,
37144         partially reverting 2007-04-29 change; missed in previous
37145         attempt.
37146         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
37147         is missing.
37148
37149 2009-08-16  Bruno Haible  <bruno@clisp.org>
37150
37151         Clarify fpurge's effect on the file position.
37152         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
37153         * tests/test-fpurge.c (main): Make a second pass for checking the file
37154         position.
37155
37156 2009-08-16  Bruno Haible  <bruno@clisp.org>
37157
37158         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
37159         declaration of fpurge is missing.
37160         * tests/test-fpurge.c (main): Check that the file has not more contents
37161         than expected. Close the file before removing it.
37162
37163 2009-08-15  Eric Blake  <ebb9@byu.net>
37164
37165         fpurge: don't wrap working cygwin implementation
37166         * lib/fpurge.c (fpurge): Fix comment typo.
37167         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
37168         1.7 to avoid replacement.
37169         * tests/test-fpurge.c (main): Enhance test.
37170
37171 2009-08-15  Eric Blake  <ebb9@byu.net>
37172         and Jim Meyering  <meyering@redhat.com>
37173
37174         test-update-copyright: skip if perl is insufficient
37175         * tests/test-update-copyright.sh: Failure to run maintainer tool
37176         should not cause testsuite failure on cygwin 1.5.
37177
37178 2009-08-14  Eric Blake  <ebb9@byu.net>
37179
37180         doc: mention more functions added in cygwin 1.7.0
37181         * doc/posix-headers/limits.texi (limits.h): Update for recent
37182         cygwin additions.
37183         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
37184         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
37185         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
37186         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
37187         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
37188
37189 2009-08-14  Eric Blake  <ebb9@byu.net>
37190
37191         maint.mk: simplify update-copyright rule
37192         * top/maint.mk (update-copyright-local): Delete, and document how
37193         to do it in cfg.mk instead.
37194         (update-copyright-exclude-regexp): Delete, and document how to do
37195         it in .x-update-copyright instead.
37196         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
37197         exclude ChangeLog.
37198
37199 2009-08-14  Bruno Haible  <bruno@clisp.org>
37200
37201         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
37202
37203 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37204
37205         maint.mk: support update-copyright-env
37206         * top/maint.mk (update-copyright-env): Define place-holder.
37207         (update-copyright): Expand $(update-copyright-env) before
37208         invoking update-copyright.
37209
37210 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37211
37212         update-copyright: implement forced reformatting
37213         * build-aux/update-copyright: Implement and document
37214         UPDATE_COPYRIGHT_FORCE.
37215         * tests/test-update-copyright.sh: Test it.
37216
37217 2009-08-14  Eric Blake  <ebb9@byu.net>
37218         and Bruno Haible  <bruno@clisp.org>
37219
37220         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
37221         * tests/test-locale.c: Revert previous patch related to NULL.
37222         * tests/test-stdio.c: Likewise.
37223         * tests/test-stdlib.c: Likewise.
37224         * tests/test-string.c: Likewise.
37225         * tests/test-unistd.c: Likewise.
37226         * modules/time-tests (Depends-on): Add verify.
37227         * modules/wchar-tests (Depends-on): Likewise.
37228         * tests/test-time.c: Test for NULL compliance.
37229         * tests/test-wchar.c: Likewise.
37230         * modules/locale (Depends-on): Add stddef.
37231         * modules/stdio (Depends-on): Likewise.
37232         * modules/stdlib (Depends-on): Likewise.
37233         * modules/string (Depends-on): Likewise.
37234         * modules/time (Depends-on): Likewise.
37235         * modules/unistd (Depends-on): Likewise.
37236         * modules/wchar (Depends-on): Likewise.
37237         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
37238         * lib/stdlib.in.h (includes): Likewise.
37239         * lib/string.in.h (includes): Likewise.
37240         * lib/time.in.h (includes): Likewise.
37241         * lib/unistd.in.h (includes): Likewise.
37242         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
37243         replaced.
37244         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37245         * m4/stddef_h.m4: New file.
37246         * modules/stddef: Likewise.
37247         * lib/stddef.in.h: Likewise.
37248         * modules/stddef-tests: Likewise.
37249         * tests/test-stddef.c: Likewise.
37250         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
37251         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
37252         * doc/posix-headers/locale.texi (locale.h): Likewise.
37253         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
37254         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
37255         * doc/posix-headers/string.texi (string.h): Likewise.
37256         * doc/posix-headers/time.texi (time.h): Likewise.
37257         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
37258         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
37259
37260 2009-08-14  Eric Blake  <ebb9@byu.net>
37261
37262         doc: improve git diff of texinfo files
37263         * .gitattributes: Add rule for *.texi files, with hint on how to
37264         use it.
37265         Copied from m4, and based on a report by Bruno Haible.
37266
37267 2009-08-14  Bruno Haible  <bruno@clisp.org>
37268
37269         Disable multithread support by default on Cygwin 1.5.x for real.
37270         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
37271
37272 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37273
37274         update-copyright: much ado about intervals
37275         * build-aux/update-copyright: Implement and document
37276         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
37277         of copyright year intervals.
37278         Also, document UPDATE_COPYRIGHT_YEAR.
37279         * tests/test-update-copyright.sh: Test it.
37280
37281         update-copyright: convert 2-digit to 4-digit years
37282         * build-aux/update-copyright: Implement and document.
37283         * tests/test-update-copyright.sh: Update.
37284
37285 2009-08-14  Jim Meyering  <meyering@redhat.com>
37286
37287         test-exclude: avoid coreutils "make check" failure
37288         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
37289         just as in test-argmatch.c.
37290
37291 2009-08-13  Eric Blake  <ebb9@byu.net>
37292
37293         test-dup2: fix bad assumption
37294         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
37295         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
37296
37297         test-version-etc: fix CRLF portability issue
37298         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
37299         recognize \r.
37300         * tests/test-argp-version-etc-1.sh: Likewise.
37301
37302         getopt: update client modules
37303         * modules/argp (Depends-on): Use getopt-gnu.
37304         * modules/git-merge-changelog (Depends-on): Likewise.
37305         * modules/long-options (Depends-on): Likewise.
37306         * modules/xstrtol (Depends-on): Likewise.
37307
37308 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37309
37310         * tests/test-version-etc.sh: Don't fail on different
37311         project/version.  Don't fail on CRLF differences.  Rewrite to use
37312         multiple -e instead of multiple sed forks, suggested by Eric Blake
37313         <ebb9@byu.net>.
37314         * tests/test-argp-version-etc-1.sh: Likewise.
37315
37316 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37317
37318         * tests/test-version-etc.sh: Don't fail on different
37319         project/version.
37320
37321 2009-08-12  Bruno Haible  <bruno@clisp.org>
37322
37323         Tests for modules 'getopt-posix', 'getopt-gnu'.
37324         * modules/getopt-posix-tests: New file.
37325         * tests/test-getopt.c: New file.
37326         * tests/test-getopt.h: New file.
37327         * tests/test-getopt_long.h: New file.
37328
37329         New modules 'getopt-posix', 'getopt-gnu'.
37330         * modules/getopt-gnu: New file, renamed from modules/getopt.
37331         * modules/getopt-posix: New file.
37332         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
37333         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
37334         (gl_GETOPT): Remove macro.
37335         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
37336         Disable the test against BSD systems that declare optreset. Test
37337         against mingw bug. Test against lack of support of optional arguments
37338         on many platforms.
37339         * doc/glibc-headers/getopt.texi: Update module name and list of
37340         relevant platforms.
37341         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
37342         'getopt-gnu' and more portability problems.
37343         * NEWS: Mention the changes.
37344
37345 2009-08-12  Bruno Haible  <bruno@clisp.org>
37346
37347         Ensure that optarg etc. get declared by <unistd.h>.
37348         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
37349         AC_USE_SYSTEM_EXTENSIONS.
37350         * modules/getopt (Depends-on): Add 'extensions'.
37351
37352 2009-08-12  Bruno Haible  <bruno@clisp.org>
37353
37354         Avoid test link errors.
37355         * modules/pipe-filter-ii-tests (Makefile.am): Define
37356         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
37357         * modules/pipe-filter-gi-tests (Makefile.am): Define
37358         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
37359         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37360
37361 2009-08-12  Bruno Haible  <bruno@clisp.org>
37362
37363         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
37364         gl_GETOPT_SUBSTITUTE before.
37365         (gl_GETOPT): Use it.
37366         * m4/argp.m4 (gl_ARGP): Update.
37367         Reported by Sergey Poznyakoff.
37368
37369         * m4/getopt.m4: Reorder macros.
37370         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
37371         (gl_GETOPT_SUBSTITUTE): Remove macro.
37372
37373 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37374
37375         Minor improvement in gitlog-to-changelog
37376
37377         * build-aux/gitlog-to-changelog: New option `--format' makes
37378         output format string configurable.
37379
37380 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37381
37382         Optimize exclude: use hash tables for non-wildcard patterns.
37383
37384         * lib/exclude.c: Include hash.h and mbuiter.h
37385         (struct exclude_pattern, exclude_segment): New data types.
37386         (struct exclude): Rewrite.
37387         (fnmatch_pattern_has_wildcards): New function.
37388         (new_exclude_segment, free_exclude_segment): New functions.
37389         (excluded_file_pattern_p, excluded_file_name_p): New functions.
37390         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
37391         * lib/exclude.h (is_fnmatch_pattern): New prototype.
37392         * modules/exclude: Depend on hash and mbuiter.
37393
37394         * modules/exclude-tests: New file.
37395         * tests/test-exclude.c: New file.
37396         * tests/test-exclude1.sh: New file.
37397         * tests/test-exclude2.sh: New file.
37398         * tests/test-exclude3.sh: New file.
37399         * tests/test-exclude4.sh: New file.
37400         * tests/test-exclude5.sh: New file.
37401         * tests/test-exclude6.sh: New file.
37402         * tests/test-exclude7.sh: New file.
37403
37404 2009-08-12  Bruno Haible  <bruno@clisp.org>
37405
37406         Ensure that getopt() gets declared by <unistd.h>.
37407         * lib/unistd.in.h: Conditionally include getopt.h.
37408         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
37409         Set GNULIB_UNISTD_H_GETOPT.
37410         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37411         GNULIB_UNISTD_H_GETOPT.
37412         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
37413
37414 2009-08-12  Bruno Haible  <bruno@clisp.org>
37415
37416         Clarify logic.
37417         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
37418         gl_replace_getopt instead of GETOPT_H.
37419
37420 2009-08-12  Bruno Haible  <bruno@clisp.org>
37421
37422         * m4/getopt.m4: Add comments.
37423
37424 2009-08-12  Bruno Haible  <bruno@clisp.org>
37425
37426         Disable multithread support by default on Cygwin 1.5.x.
37427         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
37428         set gl_use_threads=no if not specified otherwise.
37429
37430 2009-08-11  Bruno Haible  <bruno@clisp.org>
37431
37432         Avoid compilation error on NetBSD 5.0.
37433         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
37434         * tests/test-stdio.c: Likewise.
37435         * tests/test-stdlib.c: Likewise.
37436         * tests/test-string.c: Likewise.
37437         * tests/test-unistd.c: Likewise.
37438         Reported by Greg Troxel <gdt@ir.bbn.com>
37439         at <https://savannah.gnu.org/support/?106973>.
37440
37441 2009-08-11  Bruno Haible  <bruno@clisp.org>
37442
37443         * modules/dup2-tests (Depends-on): Remove close.
37444
37445         Undo 2009-07-19 commit.
37446         * modules/acl-tests (Depends-on): Remove close.
37447         * modules/binary-io-tests (Depends-on): Likewise.
37448         * modules/closein-tests (Depends-on): Likewise.
37449         * modules/flock-tests (Depends-on): Likewise.
37450         * modules/fsync-tests (Depends-on): Likewise.
37451         * modules/lseek-tests (Depends-on): Likewise.
37452         * modules/pipe-tests (Depends-on): Likewise.
37453         * modules/posix_spawn-tests (Depends-on): Likewise.
37454         * modules/posix_spawnp-tests (Depends-on): Likewise.
37455         * modules/stat-time-tests (Depends-on): Likewise.
37456         * modules/yesno-tests (Depends-on): Likewise.
37457
37458 2009-08-10  Bruno Haible  <bruno@clisp.org>
37459
37460         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
37461
37462 2009-08-10  Bruno Haible  <bruno@clisp.org>
37463
37464         Fix a gcc warning.
37465         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
37466
37467 2009-08-10  Bruno Haible  <bruno@clisp.org>
37468
37469         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
37470         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
37471         not only the first time.
37472         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
37473         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
37474         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
37475         is 1, not only the the first time.
37476
37477 2009-08-10  Bruno Haible  <bruno@clisp.org>
37478
37479         Make it possible to use module 'gethostname' without module 'close'.
37480         * lib/unistd.in.h (close): Evoke a link error only if
37481         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37482         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37483         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37484         * modules/unistd (Makefile.am): Substitute
37485         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37486         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
37487         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37488         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
37489         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37490         * modules/sys_ioctl (Makefile.am): Substitute
37491         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37492         * modules/socket (configure.ac): On native Windows, set
37493         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
37494         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37495         Reported by Sam Steingold <sds@gnu.org>.
37496
37497 2009-08-10  Bruno Haible  <bruno@clisp.org>
37498
37499         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
37500         * modules/ioctl (configure.ac): Likewise.
37501
37502 2009-08-10  Bruno Haible  <bruno@clisp.org>
37503
37504         Avoid collision between gnulib wrapper and libintl wrapper.
37505         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
37506         already defined in intl/printf.c.
37507         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
37508         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
37509
37510 2009-08-09  Bruno Haible  <bruno@clisp.org>
37511
37512         Make <sys/select.h> really self-contained, also on Solaris 10.
37513         * lib/sys_select.in.h: Include <string.h>.
37514         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
37515         Solaris 10 problem.
37516         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
37517         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
37518         Reported by Jim Meyering.
37519
37520 2009-08-09  Bruno Haible  <bruno@clisp.org>
37521
37522         Avoid warnings from 'aclocal' that are due to a use of macro name
37523         AM_XGETTEXT_OPTION that is not defined in automake.
37524         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
37525         automake.
37526         * modules/error (configure.ac): Likewise.
37527         * modules/propername (configure.ac): Likewise.
37528         * modules/vasprintf (configure.ac): Likewise.
37529         * modules/verror (configure.ac): Likewise.
37530         * modules/xprintf (configure.ac): Likewise.
37531         * modules/xvasprintf (configure.ac): Likewise.
37532
37533 2009-08-08  Bruno Haible  <bruno@clisp.org>
37534
37535         Avoid compilation error in C++ mode.
37536         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
37537         Reported by Sam Steingold <sds@gnu.org>.
37538
37539 2009-08-08  Bruno Haible  <bruno@clisp.org>
37540
37541         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
37542         for the various Unix platforms.
37543         * doc/posix-headers/limits.texi: Update platforms list regarding
37544         HOST_NAME_MAX.
37545         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37546
37547 2009-08-07  Jim Meyering  <meyering@redhat.com>
37548
37549         selinux-at: fix typo in a comment
37550         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
37551         Spotted by Paolo Bonzini.
37552
37553         selinux-at: remove redundant m4 code, add documentation
37554         * modules/selinux-at (configure.ac): Remove redundant code.
37555         LIB_SELINUX is already set via the dependent module, selinux-h.
37556         (Include): Add quotes around selinux-at.h.
37557         * lib/selinux-at.h: Add documentation.
37558         Reported by Bruno Haible in
37559         http://marc.info/?l=gnulib-bug&m=124958988300749
37560
37561 2009-08-07  Bruno Haible  <bruno@clisp.org>
37562
37563         Avoid link error on MacOS X 10.3 and 10.4.
37564         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
37565         on non-ELF systems.
37566         * lib/argp-pv.c (argp_program_version): Likewise.
37567         Reported by Simon Josefsson.
37568
37569 2009-08-07  Simon Josefsson  <simon@josefsson.org>
37570
37571         * tests/test-version-etc.sh: Use $EXEEXT.
37572
37573 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
37574
37575         update-copyright: update documentation to point to maint.mk
37576         * build-aux/update-copyright: Here.
37577
37578 2009-08-06  Jim Meyering  <meyering@redhat.com>
37579
37580         maint.mk: support update-copyright-local
37581         * top/maint.mk (update-copyright-local): Define place-holder.
37582         (update-copyright): Depend on $(update-copyright-local).
37583
37584 2009-08-06  Jim Meyering  <meyering@redhat.com>
37585
37586         selinux-at: new module
37587         Initially written for coreutils, this module will soon be
37588         used by findutils, too.
37589         * MODULES.html.sh [Misc]: Add selinux-at.
37590         * lib/selinux-at.h: New file, from coreutils.
37591         * lib/selinux-at.c: Likewise.
37592         * modules/selinux-at: Likewise.
37593         (License): Change from LGPL to GPL, since it depends
37594         on the GPL'd openat module.
37595
37596         doc: update README
37597         * README: Remove references to cogito.
37598         Remove cvs-repo-updating instructions from 2007.
37599         Don't imply that CVS is better if you have limited disk space.
37600
37601 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37602
37603         update-copyright: support C-style comments
37604         * build-aux/update-copyright: Implement and document.
37605         * tests/test-update-copyright.sh: Test.
37606
37607 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37608
37609         update-copyright: support omitted "(C)"
37610         * build-aux/update-copyright: Implement and document.  Also,
37611         allow variable whitespace before "(C)".
37612         * tests/test-update-copyright.sh: Test.
37613
37614 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37615
37616         update-copyright: don't trip on non-FSF copyright statements
37617         * build-aux/update-copyright: Fix so that the first correctly
37618         formatted FSF copyright statement is recognized no matter what
37619         appears before it.  Update documentation.
37620         * tests/test-update-copyright.sh: Test that.
37621
37622 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37623
37624         update-copyright: clean up code a little
37625         * build-aux/update-copyright: Append "_re" to the name of any
37626         variable holding a regular expression.
37627         Replace "old" and "new" with "stmt" in variable names.
37628         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
37629         handled correctly.
37630         Format code more consistently.
37631
37632 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37633
37634         update-copyright-tests: improve portability
37635         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
37636         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
37637
37638 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37639
37640         update-copyright: support @copyright{} and &copy;
37641         * build-aux/update-copyright: Implement and document.
37642         * tests/test-update-copyright.sh: Test.
37643
37644 2009-08-04  Jim Meyering  <meyering@redhat.com>
37645
37646         update-copyright-tests: correctly test EOL=\r\n handling
37647         * tests/test-update-copyright.sh: Put \r at the end of some lines
37648         for the dos-eol tests.  Based on a patch by Joel E. Denny.
37649
37650         maint.mk: make update-copyright exclusion list more configurable
37651         * top/maint.mk (update-copyright): Default to excluding COPYING,
37652         but allow an override, in case someone does want to update that file.
37653
37654         maint.mk: don't update copyright date in COPYING
37655         * top/maint.mk (update-copyright): Exclude COPYING.
37656
37657         maint.mk: add a copyright-updating rule
37658         * top/maint.mk (update-copyright): New rule.
37659         Derived from coreutils/Makefile.am.
37660
37661         update-copyright: rename some variables
37662         * build-aux/update-copyright: Rename a few variables for clarity.
37663         Tweak syntax.  List Joel E. Denny as coauthor.
37664
37665 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37666
37667         update-copyright: fix bug for 2-digit last year and add tests
37668         * build-aux/update-copyright: Fix bug.
37669         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
37670         specified.
37671         * modules/update-copyright-tests: New
37672         * tests/test-update-copyright.sh: New.
37673
37674 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37675
37676         update-copyright: handle leading tabs in line prefix
37677         * build-aux/update-copyright: Count leading tabs as 8 spaces
37678         when computing margin.  This helps with the formatting of
37679         ChangeLogs, for example.
37680         Fix documentation a little.
37681
37682 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37683
37684         update-copyright: support EOL=\r\n
37685         * build-aux/update-copyright: Implement that.
37686
37687 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37688
37689         update-copyright: automatically format copyright statements
37690         * build-aux/update-copyright: Implement that.
37691         Also, be a little more predictable and safer by always failing
37692         when the full copyright format is not perfectly recognized as an
37693         unbroken whole.  Discussed at
37694         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
37695         Rewrite documentation.
37696
37697 2009-08-03  Bruno Haible  <bruno@clisp.org>
37698
37699         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
37700
37701 2009-08-02  Bruno Haible  <bruno@clisp.org>
37702
37703         Tests for module 'uname'.
37704         * modules/uname-tests: New file.
37705         * tests/test-uname.c: New file.
37706
37707         New module 'uname'.
37708         * lib/uname.c: New file.
37709         * m4/uname.m4: New file.
37710         * modules/uname: New file.
37711         * doc/posix-functions/uname.texi: Mention the new module.
37712
37713 2009-08-02  Bruno Haible  <bruno@clisp.org>
37714
37715         Tests for module 'sys_utsname'.
37716         * modules/sys_utsname-tests: New file.
37717         * tests/test-sys_utsname.c: New file.
37718
37719         New module 'sys_utsname'.
37720         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
37721         * m4/sys_utsname_h.m4: New file.
37722         * modules/sys_utsname: New file.
37723         * doc/posix-headers/sys_utsname.texi: Mention the new module.
37724
37725 2009-08-02  Bruno Haible  <bruno@clisp.org>
37726
37727         Implicitly initialize the sockets library.
37728         * lib/gethostname.c: Include sockets.h.
37729         (rpl_gethostname): Invoke gl_sockets_startup.
37730         * lib/socket.c: Include sockets.h.
37731         (rpl_socket): Invoke gl_sockets_startup.
37732         * modules/gethostname (Depends-on): Add sockets.
37733         * modules/socket (Depends-on): Likewise.
37734         * tests/test-poll.c: Don't include sockets.h.
37735         (main): Don't invoke gl_sockets_startup.
37736         * tests/test-select.c: Don't include sockets.h.
37737         (main): Don't invoke gl_sockets_startup.
37738
37739 2009-08-02  Bruno Haible  <bruno@clisp.org>
37740
37741         Allow multiple calls to gl_sockets_startup.
37742         * lib/sockets.c (initialized_sockets_version): New variable.
37743         (gl_sockets_startup): Do nothing if already called for this or a higher
37744         version.
37745         (gl_sockets_cleanup): Reset initialized_sockets_version.
37746
37747 2009-08-03  Simon Josefsson  <simon@josefsson.org>
37748
37749         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
37750         different project/version.
37751
37752 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
37753             Bruno Haible  <bruno@clisp.org>
37754
37755         Tests for module 'pipe-filter-gi'.
37756         * modules/pipe-filter-gi-tests: New file.
37757         * tests/test-pipe-filter-gi1.sh: New file.
37758         * tests/test-pipe-filter-gi1.c: New file.
37759         * tests/test-pipe-filter-gi2.sh: New file.
37760         * tests/test-pipe-filter-gi2-main.c: New file.
37761         * tests/test-pipe-filter-gi2-child.c: New file.
37762
37763         New module 'pipe-filter-gi'.
37764         * lib/pipe-filter-gi.c: New file.
37765         * modules/pipe-filter-gi: New file.
37766
37767 2009-08-02  Bruno Haible  <bruno@clisp.org>
37768             Paolo Bonzini  <bonzini@gnu.org>
37769
37770         Tests for module 'pipe-filter-ii'.
37771         * modules/pipe-filter-ii-tests: New file.
37772         * tests/test-pipe-filter-ii1.sh: New file.
37773         * tests/test-pipe-filter-ii1.c: New file.
37774         * tests/test-pipe-filter-ii2.sh: New file.
37775         * tests/test-pipe-filter-ii2-main.c: New file.
37776         * tests/test-pipe-filter-ii2-child.c: New file.
37777
37778         New module 'pipe-filter-ii'.
37779         * lib/pipe-filter.h: New file.
37780         * lib/pipe-filter-ii.c: New file.
37781         * lib/pipe-filter-aux.h: New file.
37782         * modules/pipe-filter-ii: New file.
37783
37784 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37785
37786         * lib/gc-libgcrypt.c: Change copyright to FSF.
37787         * lib/gc-gnulib.c: Likewise.
37788
37789 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
37790
37791         * lib/gethostname.c: Include limits.h.
37792
37793 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37794             Bruno Haible  <bruno@clisp.org>
37795
37796         Ensure HOST_NAME_MAX as part of the gethostname module.
37797         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
37798         define also HOST_NAME_MAX.
37799         * tests/test-gethostname.c: Include <limits.h>.
37800         (main): Check also HOST_NAME_MAX.
37801         * doc/posix-headers/limits.texi: Document the mingw problem.
37802
37803 2009-08-02  Bruno Haible  <bruno@clisp.org>
37804
37805         * lib/gethostname.c (gethostname): Fix handling of large len argument.
37806         Add comments.
37807
37808 2009-03-31  Simon Josefsson  <simon@josefsson.org>
37809
37810         * lib/gethostname.c: Add Windows wrapper.
37811         * m4/gethostname.m4: Look for gethostname in -lws2_32.
37812         * modules/gethostname: Depend on sys_socket & errno, for also
37813         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
37814         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
37815
37816 2009-07-31  Jim Meyering  <meyering@redhat.com>
37817
37818         getloadavg: fix symbol name in comment
37819         * lib/getloadavg.c: Correct a typo I introduced when adding
37820         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
37821         Matt Kraai spotted the problem.
37822
37823 2009-07-29  Matt Kraai  <mkraai@beckman.com>
37824
37825         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
37826         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
37827         code also if ! defined N_NAME_POINTER.
37828         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
37829         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
37830         but the n_name member is a 12-byte array.
37831
37832 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
37833
37834         update-copyright: generalize comment handling
37835         * build-aux/update-copyright: Handle copyright statements
37836         within more comment styles.
37837         Document usage.
37838         Report any file with an external copyright holder or parse failure.
37839
37840 2009-07-29  Jim Meyering  <meyering@redhat.com>
37841
37842         mktime: correct setting of REPLACE_MKTIME
37843         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
37844
37845         update-copyright: new module
37846         * modules/update-copyright: New file.
37847         * build-aux/update-copyright: New file.
37848         * MODULES.html.sh (maint+release support): Add update-copyright.
37849
37850 2009-07-27  Bruno Haible  <bruno@clisp.org>
37851
37852         Fix compilation error when <ctime> is used and mktime is replaced.
37853         * lib/time.in.h (mktime): New declaration.
37854         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
37855         REPLACE_MKTIME instead of defining mktime in config.h.
37856         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
37857         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
37858         Reported by Ross McFarland <rwmcfa1@neces.com>.
37859
37860 2009-07-27  Bruno Haible  <bruno@clisp.org>
37861
37862         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
37863         Reported by Matt Kraai <mkraai@beckman.com>.
37864
37865 2009-07-25  Jim Meyering  <meyering@redhat.com>
37866
37867         maint.mk: avoid warnings about missing files
37868         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
37869         diagnostic when .prev-version does not exist.
37870         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
37871         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
37872         nonexistent cfg.mk.
37873         Suggestions from Simon Josefsson.
37874
37875 2009-07-25  Bruno Haible  <bruno@clisp.org>
37876
37877         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
37878         defined as macros. Needed on QNX 6.4.1.
37879         Reported by Matt Kraai <mkraai@beckman.com>.
37880
37881 2009-07-23  Jim Meyering  <meyering@redhat.com>
37882
37883         maint.mk: invoke "make dist" with a working value of XZ_OPT
37884         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
37885
37886 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
37887
37888         Make fseeko.c compile on QNX.
37889         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
37890
37891 2009-07-22  Peter Simons  <simons@cryp.to>
37892
37893         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
37894         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
37895         * lib/md4.h: Likewise.
37896         * lib/md5.h: Likewise.
37897         * lib/sha1.h: Likewise.
37898         * lib/sha256.h: Likewise.
37899         * lib/sha512.h: Likewise.
37900
37901         tests-sha1: don't assign literal string to 'char *' variable
37902         * tests/test-sha1.c (main): Declare locals with "const" to match
37903         attributes of the right hand side.
37904
37905 2009-07-21  Eric Blake  <ebb9@byu.net>
37906
37907         dup2: fix more mingw problems
37908         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
37909         fd to itself.
37910         * doc/posix-functions/dup2.texi (dup2): Document the bug.
37911         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
37912         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
37913         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
37914         care of mingw bugs.
37915
37916 2009-07-21  Jim Meyering  <meyering@redhat.com>
37917
37918         vc-list-files: avoid failure when /bin/sh is dash
37919         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
37920         On some Debian based systems, /bin/sh is a symlink to dash, and running
37921         this command would omit the "/" following each 'tests' prefix:
37922           dash -x build-aux/vc-list-files -C . tests
37923         That is because bash and dash work differently:
37924           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
37925           bash ok
37926           dash odd
37927
37928 2009-07-21  Eric Blake  <ebb9@byu.net>
37929
37930         dup2-tests: test previous patch
37931         * modules/dup2-tests: New file.
37932         * tests/test-dup2.c: Likewise.
37933         * tests/test-open.c (main): Avoid unspecified behavior.
37934         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
37935         test.
37936
37937         dup2: work around mingw and cygwin 1.5 bug
37938         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
37939         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37940         * modules/unistd (Makefile.am): Substitute it.
37941         * lib/unistd.in.h (dup2): Declare the replacement.
37942         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
37943         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
37944         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
37945         * modules/execute (Depends-on): Add dup2.
37946         * modules/fseterr (Depends-on): Likewise.
37947         * modules/pipe (Depends-on): Likewise.
37948         * modules/posix_spawn-internal (Depends-on): Likewise.
37949
37950 2009-07-21  Bruno Haible  <bruno@clisp.org>
37951
37952         * modules/.gitattributes: New file.
37953
37954 2009-07-20  Bruno Haible  <bruno@clisp.org>
37955
37956         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
37957         (main): Use it.
37958
37959 2009-07-20  Eric Blake  <ebb9@byu.net>
37960
37961         test-pipe: make a bit more robust.
37962         * tests/test-pipe.c (myerr): Allow error messages regardless of
37963         what we do to stderr.
37964         (test_pipe): Rearrange to avoid deadlock.
37965         (child_main): Try a larger read, to ensure we avoided deadlock.
37966         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
37967         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
37968         if misused.
37969
37970 2009-07-19  Jim Meyering  <meyering@redhat.com>
37971
37972         fts: avoid false-positive cycle-detection
37973         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
37974         for each new command line argument.
37975
37976 2009-07-19  Bruno Haible  <bruno@clisp.org>
37977
37978         Fix build error on mingw with the modules sys_select and unistd.
37979         * modules/acl-tests (Depends-on): Add close.
37980         * modules/binary-io-tests (Depends-on): Likewise.
37981         * modules/closein-tests (Depends-on): Likewise.
37982         * modules/flock-tests (Depends-on): Likewise.
37983         * modules/fsync-tests (Depends-on): Likewise.
37984         * modules/lseek-tests (Depends-on): Likewise.
37985         * modules/pipe-tests (Depends-on): Likewise.
37986         * modules/posix_spawn-tests (Depends-on): Likewise.
37987         * modules/posix_spawnp-tests (Depends-on): Likewise.
37988         * modules/stat-time-tests (Depends-on): Likewise.
37989         * modules/yesno-tests (Depends-on): Likewise.
37990
37991 2009-07-19  Bruno Haible  <bruno@clisp.org>
37992
37993         Unify conditionals.
37994         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
37995         macros, not at the compiler macros.
37996         * lib/pipe.c: Likewise.
37997         * lib/execute.c: Likewise.
37998         * lib/spawni.c: Likewise.
37999
38000 2009-07-19  Bruno Haible  <bruno@clisp.org>
38001
38002         Fix handling of closed stdin/stdout/stderr on mingw.
38003         * lib/w32spawn.h: Include unistd.h.
38004         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
38005         file descriptor with O_NOINHERIT flag.
38006         (fd_safer_noinherit): New function, based on fd-safer.c.
38007         (dup_safer_noinherit): New function, based on dup-safer.c.
38008         (undup_safer_noinherit): New function.
38009         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
38010         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
38011         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
38012         instead of fd_safer.
38013         * tests/test-pipe.c: Include <windows.h>.
38014         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
38015         result.
38016
38017         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
38018         from main.
38019         (test_pipe): Pass an extra argument for disambiguation.
38020         (main): Invoke parent_main or child_main.
38021
38022         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
38023         consistently.
38024
38025 2009-07-18  Eric Blake  <ebb9@byu.net>
38026
38027         test-pipe: fix mingw build
38028         * tests/test-pipe.c (main): Avoid fcntl on mingw.
38029
38030 2009-07-18  Bruno Haible  <bruno@clisp.org>
38031
38032         * modules/pipe-tests (Makefile.am): Fix typo.
38033
38034 2009-07-18  Eric Blake  <ebb9@byu.net>
38035
38036         error: fix mingw build
38037         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
38038         Reported by Bruno Haible.
38039
38040         error: avoid undefined use of stdout
38041         * lib/error.c (error, error_at_line): Check that fd 1 is open
38042         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
38043         is handling faults and the close_stdout module wants to report the
38044         detection of closed stdout as an error.
38045
38046 2009-07-17  Eric Blake  <ebb9@byu.net>
38047
38048         pipe: be robust in face of closed fds
38049         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
38050         should cause child to misbehave.
38051         * modules/pipe-tests: New module.
38052         * tests/test-pipe.c: New file.
38053         * tests/test-pipe.sh: New file.
38054         Reported by Akim Demaille.
38055
38056 2009-07-14  Bruno Haible  <bruno@clisp.org>
38057
38058         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
38059         Reported by anonymous kc.
38060
38061 2009-07-07  Jim Meyering  <meyering@redhat.com>
38062
38063         maint.mk: don't look for translatable strings in *.m4 or *.mk
38064         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
38065         when searching for translatable strings.
38066
38067 2009-07-05  Jim Meyering  <meyering@redhat.com>
38068
38069         remove superfluous parentheses in STREQ definition
38070         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
38071         * lib/getugroups.c (STREQ): Likewise.
38072         * lib/fnmatch.c (STREQ): Likewise.
38073         Spotted by Bruno Haible.
38074
38075 2009-07-04  Jim Meyering  <meyering@redhat.com>
38076
38077         argv-iter: new module
38078         * MODULES.html.sh: Add argv-iter.
38079         * lib/argv-iter.c, lib/argv-iter.h: New files.
38080         * modules/argv-iter: New file.
38081         * modules/argv-iter-tests: New file.
38082         * tests/test-argv-iter.c: Test it.
38083
38084 2009-07-04  Bruno Haible  <bruno@clisp.org>
38085
38086         Fix assertion.
38087         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
38088         contains more exact copies of a given entry than file2, leave the extra
38089         copies unpaired rather than aborting.
38090         Reported by Eric Blake.
38091
38092 2009-07-02  Bruno Haible  <bruno@clisp.org>
38093
38094         Speedup git-merge-changelog for git cherry-pick.
38095         * lib/git-merge-changelog.c (struct entries_mapping): New type.
38096         (entries_mapping_get): New function, extracted from compute_mapping.
38097         (entries_mapping_reverse_get): New function.
38098         (compute_mapping): Add a 'full' argument. Return the result in a
38099         'struct entries_mapping'.
38100         (main): Update. Access the mappings through entries_mapping_get.
38101         Reported by Eric Blake.
38102
38103 2009-07-02  Bruno Haible  <bruno@clisp.org>
38104
38105         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
38106         best_i.
38107
38108 2009-07-02  Bruno Haible  <bruno@clisp.org>
38109
38110         Speed up approximate search for matching ChangeLog entries.
38111         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
38112         argument. Call fstrcmp_bounded instead of fstrcmp.
38113         (compute_mapping, try_split_merged_entry, main): Update callers.
38114
38115 2009-07-02  Bruno Haible  <bruno@clisp.org>
38116
38117         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
38118
38119 2009-06-30  Bruno Haible  <bruno@clisp.org>
38120
38121         Reduce the number of uc_is_cased calls.
38122         * lib/unicase.h (casing_suffix_context_t): Add
38123         'first_char_except_ignorable' field.
38124         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
38125         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
38126         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
38127         Update initializer.
38128         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
38129         case-ignorable characters.
38130         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
38131         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
38132         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
38133         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
38134         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
38135
38136 2009-06-30  Bruno Haible  <bruno@clisp.org>
38137
38138         Tests for module 'unicase/ignorable'.
38139         * modules/unicase/ignorable-tests: New file.
38140         * tests/unicase/test-ignorable.c: New file, generated by
38141         gen-uni-tables.
38142
38143         Tests for module 'unicase/cased'.
38144         * modules/unicase/cased-tests: New file.
38145         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
38146         * tests/unicase/test-predicate-part1.h: New file, derived from
38147         tests/unictype/test-predicate-part1.h.
38148         * tests/unicase/test-predicate-part2.h: New file, same as
38149         tests/unictype/test-predicate-part2.h.
38150
38151         Fix evaluation of "Before C" condition of FINAL_SIGMA.
38152         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
38153         (output_casing_properties): New function.
38154         (main): Call it.
38155         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
38156         * lib/unicase/cased.c: Include unictype/bitmap.h.
38157         (uc_is_cased): Define through a bitmap lookup.
38158         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
38159         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
38160         (uc_is_case_ignorable): Define through a bitmap lookup.
38161         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
38162         lib/unictype/bitmap.h.
38163         (Depends-on): Add inline. Clean up.
38164         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
38165         lib/unictype/bitmap.h.
38166         (Depends-on): Add inline. Clean up.
38167         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
38168         recognition.
38169         * tests/unicase/test-u16-tolower.c (main): Likewise.
38170         * tests/unicase/test-u32-tolower.c (main): Likewise.
38171
38172 2009-06-30  Bruno Haible  <bruno@clisp.org>
38173
38174         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
38175         * lib/unicase/u16-casemap.c: Likewise.
38176         * lib/unicase/u32-casemap.c: Likewise.
38177
38178 2009-06-29  Bruno Haible  <bruno@clisp.org>
38179
38180         Define u32_casefold as a wrapper around u32_ct_casefold.
38181         * lib/unicase/u32-casefold.c: Update.
38182         * modules/unicase/u32-casefold (Depends-on): Add
38183         unicase/u32-ct-casefold, unicase/empty-prefix-context,
38184         unicase/empty-suffix-context. Clean up.
38185
38186         Define u16_casefold as a wrapper around u16_ct_casefold.
38187         * lib/unicase/u16-casefold.c: Update.
38188         * modules/unicase/u16-casefold (Depends-on): Add
38189         unicase/u16-ct-casefold, unicase/empty-prefix-context,
38190         unicase/empty-suffix-context. Clean up.
38191
38192         Define u8_casefold as a wrapper around u8_ct_casefold.
38193         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
38194         * lib/unicase/u8-casefold.c: Update.
38195         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
38196         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38197
38198         Define u32_totitle as a wrapper around u32_ct_totitle.
38199         * lib/unicase/u32-totitle.c: Update.
38200         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
38201         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38202
38203         Define u16_totitle as a wrapper around u16_ct_totitle.
38204         * lib/unicase/u16-totitle.c: Update.
38205         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
38206         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38207
38208         Define u8_totitle as a wrapper around u8_ct_totitle.
38209         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
38210         functions.
38211         (FUNC): Delegate to U_CT_TOTITLE.
38212         * lib/unicase/u8-totitle.c: Update.
38213         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
38214         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38215
38216         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
38217         invocation.
38218         * modules/unicase/u32-tolower (Depends-on): Add
38219         unicase/empty-prefix-context, unicase/empty-suffix-context.
38220
38221         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
38222         invocation.
38223         * modules/unicase/u16-tolower (Depends-on): Add
38224         unicase/empty-prefix-context, unicase/empty-suffix-context.
38225
38226         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
38227         * modules/unicase/u8-tolower (Depends-on): Add
38228         unicase/empty-prefix-context, unicase/empty-suffix-context.
38229
38230         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
38231         invocation.
38232         * modules/unicase/u32-toupper (Depends-on): Add
38233         unicase/empty-prefix-context, unicase/empty-suffix-context.
38234
38235         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
38236         invocation.
38237         * modules/unicase/u16-toupper (Depends-on): Add
38238         unicase/empty-prefix-context, unicase/empty-suffix-context.
38239
38240         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
38241         * modules/unicase/u8-toupper (Depends-on): Add
38242         unicase/empty-prefix-context, unicase/empty-suffix-context.
38243
38244         New module 'unicase/u32-ct-casefold'.
38245         * lib/unicase/u32-ct-casefold.c: New file.
38246         * modules/unicase/u32-ct-casefold: New file.
38247
38248         New module 'unicase/u16-ct-casefold'.
38249         * lib/unicase/u16-ct-casefold.c: New file.
38250         * modules/unicase/u16-ct-casefold: New file.
38251
38252         New module 'unicase/u8-ct-casefold'.
38253         * lib/unicase/u8-ct-casefold.c: New file.
38254         * lib/unicase/u-ct-casefold.h: New file, derived from
38255         lib/unicase/u-casefold.h.
38256         * modules/unicase/u8-ct-casefold: New file.
38257
38258         New module 'unicase/u32-ct-totitle'.
38259         * lib/unicase/u32-ct-totitle.c: New file.
38260         * modules/unicase/u32-ct-totitle: New file.
38261
38262         New module 'unicase/u16-ct-totitle'.
38263         * lib/unicase/u16-ct-totitle.c: New file.
38264         * modules/unicase/u16-ct-totitle: New file.
38265
38266         New module 'unicase/u8-ct-totitle'.
38267         * lib/unicase/u8-ct-totitle.c: New file.
38268         * lib/unicase/u-ct-totitle.h: New file, derived from
38269         lib/unicase/u-totitle.h.
38270         * modules/unicase/u8-ct-totitle: New file.
38271
38272         New module 'unicase/u32-ct-tolower'.
38273         * lib/unicase/u32-ct-tolower.c: New file.
38274         * modules/unicase/u32-ct-tolower: New file.
38275
38276         New module 'unicase/u16-ct-tolower'.
38277         * lib/unicase/u16-ct-tolower.c: New file.
38278         * modules/unicase/u16-ct-tolower: New file.
38279
38280         New module 'unicase/u8-ct-tolower'.
38281         * lib/unicase/u8-ct-tolower.c: New file.
38282         * modules/unicase/u8-ct-tolower: New file.
38283
38284         New module 'unicase/u32-ct-toupper'.
38285         * lib/unicase/u32-ct-toupper.c: New file.
38286         * modules/unicase/u32-ct-toupper: New file.
38287
38288         New module 'unicase/u16-ct-toupper'.
38289         * lib/unicase/u16-ct-toupper.c: New file.
38290         * modules/unicase/u16-ct-toupper: New file.
38291
38292         New module 'unicase/u8-ct-toupper'.
38293         * lib/unicase/u8-ct-toupper.c: New file.
38294         * modules/unicase/u8-ct-toupper: New file.
38295
38296         Add context arguments to u*_casemap functions.
38297         * lib/unicase/unicasemap.h: Include unicase.h.
38298         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
38299         suffix_context arguments.
38300         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
38301         functions.
38302         (FUNC): Add prefix_context and suffix_context arguments. Use
38303         uc_is_cased and uc_is_case_ignorable.
38304         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
38305         * lib/unicase/u16-casemap.c: Likewise.
38306         * lib/unicase/u32-casemap.c: Likewise.
38307         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
38308         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38309         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
38310         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38311         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
38312         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38313
38314         New module 'unicase/u32-suffix-context'.
38315         * lib/unicase/u32-suffix-context.c: New file.
38316         * modules/unicase/u32-suffix-context: New file.
38317
38318         New module 'unicase/u16-suffix-context'.
38319         * lib/unicase/u16-suffix-context.c: New file.
38320         * modules/unicase/u16-suffix-context: New file.
38321
38322         New module 'unicase/u8-suffix-context'.
38323         * lib/unicase/u8-suffix-context.c: New file.
38324         * lib/unicase/u-suffix-context.h: New file.
38325         * modules/unicase/u8-suffix-context: New file.
38326
38327         New module 'unicase/empty-suffix-context'.
38328         * lib/unicase/empty-suffix-context.c: New file.
38329         * modules/unicase/empty-suffix-context: New file.
38330
38331         New module 'unicase/u32-prefix-context'.
38332         * lib/unicase/u32-prefix-context.c: New file.
38333         * modules/unicase/u32-prefix-context: New file.
38334
38335         New module 'unicase/u16-prefix-context'.
38336         * lib/unicase/u16-prefix-context.c: New file.
38337         * modules/unicase/u16-prefix-context: New file.
38338
38339         New module 'unicase/u8-prefix-context'.
38340         * lib/unicase/u8-prefix-context.c: New file.
38341         * lib/unicase/u-prefix-context.h: New file.
38342         * lib/unicase/context.h: New file.
38343         * modules/unicase/u8-prefix-context: New file.
38344
38345         New module 'unicase/empty-prefix-context'.
38346         * lib/unicase/empty-prefix-context.c: New file.
38347         * modules/unicase/empty-prefix-context: New file.
38348
38349         New module 'unicase/ignorable'.
38350         * lib/unicase/ignorable.c: New file.
38351         * modules/unicase/ignorable: New file.
38352
38353         New module 'unicase/cased'.
38354         * lib/unicase/caseprop.h: New file.
38355         * lib/unicase/cased.c: New file.
38356         * modules/unicase/cased: New file.
38357
38358         New functions for case mapping of substrings.
38359         * lib/unicase.h (casing_prefix_context_t): New type.
38360         (unicase_empty_prefix_context): New variable.
38361         (u8_casing_prefix_context, u16_casing_prefix_context,
38362         u32_casing_prefix_context, u8_casing_prefixes_context,
38363         u16_casing_prefixes_context, u32_casing_prefixes_context): New
38364         declarations.
38365         (casing_suffix_context_t): New type.
38366         (unicase_empty_suffix_context): New variable.
38367         (u8_casing_suffix_context, u16_casing_suffix_context,
38368         u32_casing_suffix_context, u8_casing_suffixes_context,
38369         u16_casing_suffixes_context, u32_casing_suffixes_context,
38370         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
38371         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
38372         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
38373         declarations.
38374
38375 2009-06-28  Jim Meyering  <meyering@redhat.com>
38376
38377         boostrap: indent only with spaces
38378         * build-aux/bootstrap: Indent only with spaces, never TABs.
38379
38380         bootstrap: split long lines
38381         * build-aux/bootstrap: Keep line length < 80.
38382
38383         bootstrap: sync from coreutils
38384         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
38385         just as autoreconf does.  Verify a list of prerequisite
38386         package-name,version-number pairs if defined in bootstrap.conf.
38387         Refer to README-prereq, if prerequisites are not satisfied.
38388
38389 2009-06-27  Eric Blake  <ebb9@byu.net>
38390
38391         tests: add test for bogus NULL definition
38392         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
38393         * tests/test-stdlib.c: Likewise.
38394         * tests/test-string.c: Likewise.
38395         * tests/test-locale.c: Likewise.
38396         * tests/test-unistd.c: Likewise.
38397         * modules/stdio-tests (Depends-on): Add verify.
38398         * modules/stdlib-tests (Depends-on): Likewise.
38399         * modules/string-tests (Depends-on): Likewise.
38400         * modules/locale-tests (Depends-on): Likewise.
38401         * modules/unistd-tests (Depends-on): Likewise.
38402
38403 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
38404
38405         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
38406         self-explaining comment.
38407         * m4/selinux-selinux-h: Update serial.
38408         (gl_LIBSELINUX): New macro, adding a warning for missing development
38409         packages to code extracted from...
38410         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
38411         Add warning for missing development packages here, too.
38412
38413 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
38414
38415         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
38416
38417 2009-06-25  Eric Blake  <ebb9@byu.net>
38418
38419         version-etc: fix regression
38420         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
38421         gcc.
38422         (version_etc): Use it, to catch bugs with trailing NULL.
38423         * lib/version-etc.c (version_etc_arn): Delete unused argument.
38424         (version_etc_va): Fix logic bug.
38425         * modules/version-etc-tests: Add test.
38426         * tests/test-version-etc.c: New file.
38427         * tests/test-version-etc.sh: Likewise.
38428
38429 2009-06-25  Sam Steingold  <sds@gnu.org>
38430
38431         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
38432         mbtowc declaration.
38433
38434 2009-06-25  Eric Blake  <ebb9@byu.net>
38435
38436         fpurge: migrate into <stdio.h>
38437         * lib/fpurge.h: Delete...
38438         * lib/stdio.in.h (fpurge): ...and declare here, instead.
38439         * lib/fpurge.c (fpurge): Change declaring header.
38440         * modules/fpurge (Files): Drop deleted file.
38441         (Depends-on): Add stdio.
38442         (configure.ac): Set witness.
38443         * modules/stdio (Makefile.am): Support fpurge macros.
38444         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38445         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
38446         * lib/fflush.c: Update client.
38447         * tests/test-fpurge.c: Likewise.
38448         * NEWS: Mention the change.
38449
38450 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38451
38452         * lib/argp-version-etc.c (program_authors): Add const
38453         qualifier.
38454         * lib/version-etc.c: Fix typos in the comments.
38455         * modules/argp-version-etc: Depends on version-etc.
38456
38457 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38458
38459         argp-version-etc: new module.
38460
38461         * lib/argp-version-etc.c: New file.
38462         * lib/argp-version-etc.h: New file.
38463         * modules/argp-version-etc: New file.
38464         * modules/argp-version-etc-tests: New file.
38465         * tests/test-argp-version-etc.c: New test.
38466         * tests/test-argp-version-etc-1.sh: New test.
38467
38468 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38469
38470         Provide additional interfaces and documentation for version-etc
38471         module.
38472
38473         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
38474         interfaces.
38475         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
38476         prototypes.
38477
38478 2009-06-24  Bruno Haible  <bruno@clisp.org>
38479
38480         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
38481         HAVE_LIB${NAME} macro.
38482         Reported by Sam Steingold <sds@gnu.org>.
38483
38484 2009-06-23  Simon Josefsson  <simon@josefsson.org>
38485
38486         * modules/hash-tests (test_hash_LDADD): Link to libintl when
38487         needed.
38488
38489 2009-06-21  Bruno Haible  <bruno@clisp.org>
38490
38491         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
38492         work.
38493         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
38494         together with LIB${NAME}, LTLIB${NAME}.
38495         Reported by Sam Steingold <sds@gnu.org>.
38496
38497 2009-06-20  Jim Meyering  <meyering@redhat.com>
38498
38499         tests: make sc_require_test_exit_idiom more generic
38500         * top/maint.mk (Exit_witness_file): New overridable variable.
38501         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
38502         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
38503
38504 2009-06-19  Jim Meyering  <meyering@redhat.com>
38505
38506         hash: reverse order of src/dst parameters in an internal interface
38507         * lib/hash.c (transfer_entries): Reverse order of parameters to
38508         put DST before SRC.  Adjust callers.
38509
38510         tests: test-hash: avoid wholesale duplication
38511         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
38512         Instead, use a loop and add a single conditional.
38513
38514         tests: test-hash: allow seed selection via a command line argument
38515         * tests/test-hash.c (get_seed): New function.
38516         (main): Use it.
38517
38518 2009-06-19  Eric Blake  <ebb9@byu.net>
38519
38520         hash: avoid memory leak on allocation failure
38521         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
38522         failure.  Factor repeated algorithm...
38523         (transfer_entries): ...into new helper routine.
38524         (hash_delete): React to hash_rehash return value.
38525
38526         hash: reduce memory pressure in hash_rehash no-op case
38527         * lib/hash.c (next_prime): Avoid overflow.
38528         (hash_initialize): Factor bucket size computation...
38529         (compute_bucket_size): ...into new helper function.
38530         (hash_rehash): Use new function and open coding to reduce memory
38531         pressure, and avoid a memory leak in USE_OBSTACK code.
38532         Reported by Jim Meyering.
38533
38534 2009-06-18  Eric Blake  <ebb9@byu.net>
38535
38536         hash: make rotation more obvious
38537         * modules/hash (Depends-on): Add bitrotate and stdint.
38538         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
38539         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
38540         (SIZE_MAX): Rely on headers for definition.
38541         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
38542         (raw_hasher): Use rotr_sz.
38543         Suggested by Jim Meyering.
38544
38545         hash: fix memory leak in last patch
38546         * lib/hash.c (hash_rehash): Avoid memory leak.
38547
38548         hash: avoid no-op rehashing
38549         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
38550
38551         hash: provide default callback functions
38552         * lib/hash.c (raw_hasher, raw_comparator): New functions.
38553         (hash_initialize): Use them as defaults.
38554         * tests/test-hash.c (main): Test this.
38555
38556         hash: minor optimization
38557         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
38558         when possible.
38559         (hash_initialize): Document this promise.
38560         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
38561         * tests/test-hash.c (hash_compare_strings): Test this.
38562
38563 2009-06-18  Bruno Haible  <bruno@clisp.org>
38564
38565         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
38566         going to be replaced anyway.
38567
38568 2009-06-18  Bruno Haible  <bruno@clisp.org>
38569
38570         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
38571         in one place.
38572         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
38573         be replaced anyway.
38574
38575 2009-06-18  Eric Blake  <ebb9@byu.net>
38576
38577         hash: check for resize before insertion
38578         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
38579         threshold before insertion, so that a pathological hash_rehash
38580         that fills every bucket can still trigger another rehash.
38581
38582 2009-06-18  Jim Meyering  <meyering@redhat.com>
38583
38584         hash-tests: add a loop around the small tests
38585         * tests/test-hash.c (main): Repeat small tests with selected
38586         small initial table sizes.
38587
38588 2009-06-17  Eric Blake  <ebb9@byu.net>
38589
38590         hash: minor cleanups
38591         * lib/hash.h (hash_entry): Make opaque, by moving...
38592         * lib/hash.c (hash_entry): ...here.
38593         (hash_insert): Clarify restrictions on what can be inserted.
38594         (hash_get_next): Clarify when it is safe to remove an element
38595         during traversal.
38596         (check_tuning): Skip verification when tuning is known safe.
38597         (hash_initialize): Clarify restrictions on tuning.
38598
38599 2009-06-17  Jim Meyering  <jim@meyering.net>
38600         and Eric Blake  <ebb9@byu.net>
38601
38602         hash-tests: new module
38603         * modules/hash-tests: New file.
38604         * tests/test-hash.c: New file.
38605
38606 2009-06-17  Eric Blake  <ebb9@byu.net>
38607
38608         strstr-simple: document new module
38609         * MODULES.html.sh: Document new module.
38610
38611         strstr, strcasestr: replace on platforms with broken memchr
38612         * modules/strstr: Split into...
38613         * modules/strstr-simple: ...new module that does not care about
38614         performance, but does care about glibc bug.
38615         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
38616         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
38617         if platform memchr is broken, per Debian bug 521737.
38618         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
38619         memchr.
38620         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
38621         * doc/posix-functions/strstr.texi (strstr): Document the fix.
38622         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
38623         * modules/mountlist (Depends-on): Add strstr-simple.
38624         * modules/gen-uni-tables (Depends-on): Likewise.
38625         * modules/argz (Depends-on): Add strstr.
38626
38627 2009-06-17  Bruno Haible  <bruno@clisp.org>
38628
38629         * modules/posix_spawn-internal (Depends-on): Add errno.
38630
38631 2009-06-17  Bruno Haible  <bruno@clisp.org>
38632
38633         Define missing ESTALE on Interix 3.5.
38634         * lib/errno.in.h (ESTALE): Assign a value if missing.
38635         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
38636         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
38637         missing.
38638         * doc/posix-headers/errno.texi: Mention the Interix bug.
38639         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
38640
38641 2009-06-15  Eric Blake  <ebb9@byu.net>
38642
38643         memchr, memchr2: add valgrind exception
38644         * lib/memchr.valgrind: New file.
38645         * lib/memchr2.valgrind: New file.
38646         * modules/memchr (Files): Distribute valgrind file.
38647         * modules/memchr2 (Files): Likewise.
38648
38649         docs: memchr is no longer obsolete
38650         * MODULES.html.sh: Move memchr from obsolete to string.h section.
38651         * lib/string.in.h (memchr): Simplify logic.
38652
38653 2009-06-14  Jim Meyering  <meyering@redhat.com>
38654
38655         link-follow: fix the "checking..." message to not mention trailing slash
38656         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
38657         never considered trailing slashes.
38658
38659 2009-06-14  Bruno Haible  <bruno@clisp.org>
38660
38661         * m4/memchr.m4: Mention also the bug on IA-64.
38662         * doc/posix-functions/memchr.texi: Likewise.
38663
38664 2009-06-12  Eric Blake  <ebb9@byu.net>
38665
38666         memchr: detect broken x86_64 and alpha implementations
38667         * modules/memchr-tests (Depends-on): Move mmap detection...
38668         * modules/memchr (Depends-on): ...here.
38669         (configure.ac): Set indicator.
38670         * lib/string.in.h (memchr): Declare replacement.
38671         * modules/string (Makefile.am): Trigger replacement.
38672         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
38673         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
38674         bugs.
38675         * doc/posix-functions/memchr.texi (memchr): Document the bug.
38676         * modules/getpagesize (License): Relax license.
38677
38678 2009-06-11  Bruno Haible  <bruno@clisp.org>
38679
38680         * lib/idpriv.h: Add more references.
38681
38682 2009-06-08  Bruno Haible  <bruno@clisp.org>
38683
38684         Tests for module 'idpriv-droptemp'.
38685         * modules/idpriv-droptemp-tests: New file.
38686         * tests/test-idpriv-droptemp.sh: New file.
38687         * tests/test-idpriv-droptemp.su.sh: New file.
38688         * tests/test-idpriv-droptemp.c: New file.
38689
38690         New module 'idpriv-droptemp'.
38691         * lib/idpriv-droptemp.c: New file.
38692         * modules/idpriv-droptemp: New file.
38693
38694 2009-06-08  Bruno Haible  <bruno@clisp.org>
38695
38696         Tests for module 'idpriv-drop'.
38697         * modules/idpriv-drop-tests: New file.
38698         * tests/test-idpriv-drop.sh: New file.
38699         * tests/test-idpriv-drop.su.sh: New file.
38700         * tests/test-idpriv-drop.c: New file.
38701
38702         New module 'idpriv-drop'.
38703         * lib/idpriv.h: New file.
38704         * lib-idpriv-drop.c: New file.
38705         * m4/idpriv.m4: New file.
38706         * modules/idpriv-drop: New file.
38707
38708 2009-06-08  Bruno Haible  <bruno@clisp.org>
38709
38710         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
38711         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38712         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38713         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38714         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38715         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38716         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38717
38718 2009-06-08  Eric Blake  <ebb9@byu.net>
38719
38720         test-strstr: use memory fence, when possible
38721         * tests/test-strstr.c (main): Use memory fence, in order to be
38722         more likely to trigger Debian bug 521737.
38723         * modules/strstr-tests (Files): Pull in additional files.
38724
38725         memchr: no longer obsolete, for wider field testing
38726         * modules/memchr (Status, Notice): Delete, this module is no
38727         longer obsolete.
38728         * modules/vasnprintf (Depends-on): Add memchr.
38729
38730 2009-06-07  Jim Meyering  <meyering@redhat.com>
38731
38732         hash: declare some functions with the warn_unused_result attribute
38733         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
38734
38735 2009-06-07  Bruno Haible  <bruno@clisp.org>
38736
38737         * tests/test-alignof.c: Don't test int64_t if it does not exist.
38738         Reported by Eric Blake.
38739
38740 2009-06-06  Eric Blake  <ebb9@byu.net>
38741
38742         test-alignof: fix typo with long double
38743         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
38744         compiler error.
38745
38746 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
38747
38748         Escape non-texinfo { and }s.
38749         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
38750         markup error.
38751
38752 2009-06-04  Jim Meyering  <meyering@redhat.com>
38753
38754         gitlog-to-changelog: don't infloop on an empty commit log
38755         * build-aux/gitlog-to-changelog: Warn about an empty log message.
38756         Reported by Boris Petersen <transacid@centerim.org>.
38757
38758 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
38759
38760         version-etc: extend for packagers
38761         Add three new configure options, intended for packagers:
38762           --with-packager="packager name"
38763           --with-packager-version="packager-specific version"
38764           --with-packager-bug-reports="packager bug reporting"
38765         An example with coreutils:
38766           $ ./configure \
38767             --with-packager=Gentoo \
38768             --with-packager-bug-report=http://bugs.gentoo.org/ \
38769             --with-packager-version="patchset 1.6"
38770           $ ./src/ls --version | head -n2
38771           ls (GNU coreutils) 7.1-dirty
38772           Packaged by Gentoo (patchset 1.6)
38773         Note that the bug reporting info via --help doesn't show up because
38774         coreutils uses its own custom emit_bug_reporting_address() implementation
38775         in src/system.h.  If it didn't, it'd look like:
38776           $ ./src/ls --help | tail -n4
38777           Report bugs to <bug-coreutils@gnu.org>.
38778           Report Gentoo bugs to <http://bugs.gentoo.org/>.
38779           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
38780           General help using GNU software: <http://www.gnu.org/gethelp/>.
38781         * lib/version-etc.c: Print new information, if provided.
38782         * m4/version-etc.m4: New file.
38783         * modules/version-etc (Files): Add m4/version-etc.m4.
38784         (configure.ac): Add gl_VERSION_ETC.
38785
38786 2009-05-31  Bruno Haible  <bruno@clisp.org>
38787
38788         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
38789         and 'int64_t'.
38790         * modules/alignof-tests (Dependencies): Add stdint.
38791         Reported by Eric Blake.
38792
38793 2009-05-31  Bruno Haible  <bruno@clisp.org>
38794
38795         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
38796         restriction due to compiler bugs.
38797         Reported by Eric Blake.
38798
38799 2009-05-31  Simon Josefsson  <simon@josefsson.org>
38800             Bruno Haible  <bruno@clisp.org>
38801
38802         Fix test-alignof failure.
38803         * lib/alignof.h (alignof_slot): New macro.
38804         (alignof_type): New macro, with the same semantics as the previous
38805         'alignof'.
38806         (alignof): Alias to alignof_slot.
38807         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
38808         check that the results are usable as constant expressions.
38809
38810 2009-05-31  Bruno Haible  <bruno@clisp.org>
38811
38812         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
38813         * tests/test-memchr.c (main): Check that memchr does not read past the
38814         first occurrence of the byte.
38815         * tests/test-strstr.c (main): Update comment.
38816         Suggested by Eric Blake.
38817
38818 2009-05-30  Bruno Haible  <bruno@clisp.org>
38819
38820         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
38821         detail how to use dumpbin.
38822         Reported by David Byron <dbyron@dbyron.com>.
38823
38824 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38825
38826         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
38827
38828 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38829
38830         * m4/manywarnings.m4: Add GCC 4.4 warnings.
38831
38832 2009-05-28  Bruno Haible  <bruno@clisp.org>
38833
38834         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
38835         build-aux/ files.
38836
38837 2009-05-28  Simon Josefsson  <simon@josefsson.org>
38838
38839         * gnulib-tool (func_import): Transform license on build-aux/ files too.
38840
38841 2009-05-27  Simon Josefsson  <simon@josefsson.org>
38842
38843         * gnulib-tool (sed_transform_main_lib_file)
38844         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
38845         regexps.
38846
38847 2009-05-26  Simon Josefsson  <simon@josefsson.org>
38848
38849         * tests/test-strstr.c: Add another self-test.
38850         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
38851         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
38852
38853 2009-05-23  Bruno Haible  <bruno@clisp.org>
38854
38855         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
38856         change.
38857
38858 2009-05-21  Bruno Haible  <bruno@clisp.org>
38859
38860         Simplify use of mode_t varargs.
38861         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
38862         uses 'mode_t' or 'int'.
38863         * lib/openat.c (openat): Likewise.
38864         * lib/open-safer.c (open_safer): Likewise.
38865         * m4/mode_t.m4: New file.
38866         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
38867         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
38868         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
38869         * modules/open (Files): Add m4/mode_t.m4.
38870         * modules/openat (Files): Likewise.
38871         * modules/fcntl-safer (Files): Likewise.
38872         Suggested by Eric Blake.
38873
38874 2009-05-21  Pádraig Brady  <P@draigbrady.com>
38875
38876         * doc/glibc-functions/fallocate.texi: New file.
38877         * doc/gnulib.texi: Include it.
38878
38879 2009-05-21  Eric Blake  <ebb9@byu.net>
38880             Bruno Haible  <bruno@clisp.org>
38881
38882         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
38883         invocations.
38884         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38885
38886 2009-05-21  Eric Blake  <ebb9@byu.net>
38887             Bruno Haible  <bruno@clisp.org>
38888
38889         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
38890         include_next. Fix of 2008-11-20 commit.
38891         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
38892         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
38893         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
38894         NEXT_MATH_H.
38895         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
38896         instead of NEXT_MATH_H.
38897
38898 2009-05-21  Bruno Haible  <bruno@clisp.org>
38899
38900         Avoid redefinition warnings for SIZE_MAX.
38901         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
38902         Reported by Simon Josefsson.
38903
38904 2009-05-21  Bruno Haible  <bruno@clisp.org>
38905
38906         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
38907         AC_CACHE_VAL.
38908
38909 2009-05-20  Bruno Haible  <bruno@clisp.org>
38910
38911         Make zeroptr.h work on mingw.
38912         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
38913         mprotect.
38914         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
38915         * modules/memchr2-tests (configure.ac): Likewise.
38916         * modules/memcmp-tests (configure.ac): Likewise.
38917         * modules/memmem-tests (configure.ac): Likewise.
38918         * modules/memrchr-tests (configure.ac): Likewise.
38919         Reported by Simon Josefsson.
38920
38921 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38922
38923         * tests/test-glob.c: Include string.h for strcmp prototype.
38924
38925 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38926
38927         * modules/getdelim (Depends-on): Add explicit stdint, although it
38928         was implicitly already pulled in via realloc-posix.
38929         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
38930
38931 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38932
38933         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
38934         G. Christensen" <tgc@jupiterrise.com>.
38935         * m4/sys_socket_h.m4: Check for sa_family_t.
38936         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
38937         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
38938         * tests/test-sys_socket.c: Check that sa_family_t works.
38939
38940 2009-05-18  Eric Blake  <ebb9@byu.net>
38941
38942         maint.mk: allow gnulib_dir in VPATH build
38943         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
38944
38945 2009-05-15  Jim Meyering  <meyering@redhat.com>
38946
38947         maint.mk: Give gnulib_dir a default definition.
38948         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
38949         Thus, most packages no longer need to specify this variable in cfg.mk
38950
38951 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
38952
38953         rename.m4: fix typos that would make non-mingw cross-configure fail
38954         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
38955
38956 2009-05-13  Eric Blake  <ebb9@byu.net>
38957
38958         mmap-anon: avoid out-of-order autoconf expansion
38959         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
38960         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
38961         * modules/memchr-tests (Depends-on): Add extensions.
38962         * modules/memchr2-tests (Depends-on): Add extensions.
38963         * modules/memcmp-tests (Depends-on): Add extensions.
38964         * modules/memmem-tests (Depends-on): Add extensions.
38965         * modules/memrchr-tests (Depends-on): Add extensions.
38966
38967 2009-05-13  Bruno Haible  <bruno@clisp.org>
38968
38969         Make some tests ISO C 99 compliant.
38970         * tests/zerosize-ptr.h: New file.
38971         * tests/test-memchr.c: Include zerosize-ptr.h.
38972         (main): Use a zero-size object pointer instead of NULL.
38973         * tests/test-memchr2.c: Include zerosize-ptr.h.
38974         (main): Use a zero-size object pointer instead of NULL.
38975         * tests/test-memcmp.c: Include zerosize-ptr.h.
38976         (main): Use a zero-size object pointer instead of NULL.
38977         * tests/test-memmem.c: Include zerosize-ptr.h.
38978         (main): Use a zero-size object pointer instead of NULL.
38979         * tests/test-memrchr.c: Include zerosize-ptr.h.
38980         (main): Use a zero-size object pointer instead of NULL.
38981         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
38982         m4/mmap-anon.m4.
38983         (Depends-on): Add getpagesize.
38984         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38985         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
38986         m4/mmap-anon.m4.
38987         (Depends-on): Add getpagesize.
38988         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38989         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
38990         m4/mmap-anon.m4.
38991         (Depends-on): Add getpagesize.
38992         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38993         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
38994         m4/mmap-anon.m4.
38995         (Depends-on): Add getpagesize.
38996         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
38997         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
38998         m4/mmap-anon.m4.
38999         (Depends-on): Add getpagesize.
39000         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39001
39002 2009-05-12  Bruno Haible  <bruno@clisp.org>
39003
39004         Tests for module 'alignof'.
39005         * modules/alignof-tests: New file.
39006         * tests/test-alignof.c: New file.
39007
39008 2009-05-12  Bruno Haible  <bruno@clisp.org>
39009
39010         Fix alignof macro.
39011         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
39012         vendor compilers that are always correct.
39013
39014 2009-05-12  Bruno Haible  <bruno@clisp.org>
39015
39016         Make the MAP_ANONYMOUS detection work on HP-UX 11.
39017         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
39018         not whether its fully works.
39019
39020 2009-05-12  Bruno Haible  <bruno@clisp.org>
39021
39022         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
39023
39024 2009-05-12  Jim Meyering  <meyering@redhat.com>
39025
39026         * top/maint.mk: Adjust backslash alignment.
39027
39028 2009-05-11  Simon Josefsson  <simon@josefsson.org>
39029
39030         * top/maint.mk: Make $(srcdir)/build-aux configurable.
39031
39032 2009-05-11  Eric Blake  <ebb9@byu.net>
39033
39034         argp: avoid undefined behavior
39035         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
39036         macros.
39037
39038 2009-05-08  Simon Josefsson  <simon@josefsson.org>
39039
39040         * tests/test-vc-list-files-git.sh: Do git config of user.email and
39041         user.name to prevent git commit from complaining.
39042
39043 2009-05-10  Bruno Haible  <bruno@clisp.org>
39044
39045         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
39046         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
39047         it rewrites every file name only once.
39048         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
39049
39050 2009-05-08  Bruno Haible  <bruno@clisp.org>
39051
39052         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
39053         instead of 'max'.
39054
39055 2009-05-08  Simon Josefsson  <simon@josefsson.org>
39056
39057         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
39058         sockaddr_storage test.
39059
39060 2009-05-07  Simon Josefsson  <simon@josefsson.org>
39061
39062         * modules/sys_socket (Makefile.am): Substitute
39063         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
39064         * m4/sys_socket_h.m4: Check for sockaddr_storage.
39065         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
39066         * tests/test-sys_socket.c: Check sockaddr_storage.
39067
39068 2009-05-08  Bruno Haible  <bruno@clisp.org>
39069
39070         New module 'alignof'.
39071         * lib/alignof.h: New file.
39072         * modules/alignof: New file.
39073
39074 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39075             Bruno Haible  <bruno@clisp.org>
39076
39077         Fix test-file-has-acl on FreeBSD.
39078         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
39079         mask is implicitly added.
39080         * tests/test-file-has-acl.c: Include <signal.h>.
39081         (main): Terminate the test after 5 seconds.
39082         * modules/acl-tests (configure.ac): Check for alarm function.
39083
39084 2009-05-04  Bruno Haible  <bruno@clisp.org>
39085
39086         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
39087         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
39088         * modules/errno (configure.ac): Drop AC_REQUIRE.
39089         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
39090         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
39091
39092 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39093
39094         * modules/glob-tests: New module.
39095         * tests/test-glob.c: Add.
39096
39097 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39098
39099         * modules/fnmatch-tests: New module.
39100         * tests/test-fnmatch.c: Add.
39101
39102 2009-05-04  Eric Blake  <ebb9@byu.net>
39103
39104         maint: make the new no-submodule-changes rule VPATH-safe
39105         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
39106
39107 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39108             Bruno Haible  <bruno@clisp.org>
39109
39110         acl: Fix infinite loop on FreeBSD.
39111         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
39112         of return value from acl_get_entry.
39113         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
39114         Likewise.
39115
39116 2009-05-03  Bruno Haible  <bruno@clisp.org>
39117
39118         * lib/acl-internal.h (acl_entries): Clarify return value.
39119         * lib/acl_entries.c (acl_entries): Likewise.
39120
39121 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39122
39123         Bug fix in acl module.
39124         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
39125
39126 2009-05-03  Bruno Haible  <bruno@clisp.org>
39127
39128         Create gperf-generated file in the source dir, not in the build dir.
39129         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
39130         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
39131         * modules/unicase/locale-language (unicase/locale-languages.h):
39132         Likewise.
39133         * modules/unicase/special-casing (unicase/special-casing-table.h):
39134         Likewise.
39135         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
39136         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
39137         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
39138         Reported by Ralf Wildenhues.
39139
39140 2009-05-03  Bruno Haible  <bruno@clisp.org>
39141
39142         * modules/fnmatch (Description, configure.ac): Taken from
39143         fnmatch-posix.
39144         * modules/fnmatch-posix: Turn into a symbolic reference to the
39145         'fnmatch' module, and deprecate.
39146         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
39147
39148 2009-05-03  Bruno Haible  <bruno@clisp.org>
39149
39150         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
39151         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
39152         Reported by Ralf Wildenhues.
39153
39154 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39155
39156         * m4/fnmatch.m4: Fix fnmatch re-define.
39157
39158 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39159
39160         priv-set: new module and tests; adapt write-any-file
39161         * lib/priv-set.c: New file.
39162         * lib/priv-set.h: New file.
39163         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
39164         * lib/write-any-file.c: Simplify by using priv-set module.
39165         * m4/priv-set.m4: New file.
39166         * modules/priv-set: New file.
39167         * modules/unlinkdir: Add dependency on priv-set module.
39168         * modules/write-any-file: Likewise.
39169
39170         Tests for module 'priv-set'.
39171         * modules/priv-set-tests: New file.
39172         * tests/test-priv-set.c: New file.
39173
39174 2009-05-03  Jim Meyering  <meyering@redhat.com>
39175             Bruno Haible  <bruno@clisp.org>
39176
39177         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
39178         use the converted UTF-8 variant of the name instead.
39179
39180 2009-05-03  Jim Meyering  <meyering@redhat.com>
39181
39182         tests: tighten some getdate tests
39183         * tests/test-getdate.c (main): Tighten tests: require equality,
39184         not just greater than.  Set TZ envvar to UTC0.
39185
39186 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
39187
39188         getdate: correctly interpret "next monday" when run on a Monday
39189         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
39190         that e.g., "next tues" (when run on a tuesday) results in a date
39191         that is one week in the future, and not today's date.
39192         I.e., add a week when the wday is the same as the current one.
39193         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
39194         and earlier by Martin Bernreuther and Jan Minář.
39195         * tests/test-getdate.c (main): Check that "next DAY" is always in
39196         the future and that "last DAY" is always in the past.
39197
39198 2009-05-02  Jim Meyering  <meyering@redhat.com>
39199
39200         build: ensure that a release build fails when a submodule is unclean
39201         * top/maint.mk (no-submodule-changes): New rule.
39202         (alpha beta major): Depend on it.
39203
39204 2009-05-02  Bruno Haible  <bruno@clisp.org>
39205
39206         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
39207         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
39208         shell variable gl_fnmatch_required to detect which variant is
39209         requested.
39210         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
39211         gl_FUNC_FNMATCH_POSIX.
39212         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
39213         exclude fnmatch-posix.
39214
39215 2009-05-02  Bruno Haible  <bruno@clisp.org>
39216
39217         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
39218         * modules/mbsrtowcs (License): Change to LGPLv2+.
39219         * modules/strnlen1 (License): Likewise.
39220         Reported by Simon Josefsson.
39221
39222 2009-05-02  Bruno Haible  <bruno@clisp.org>
39223
39224         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
39225         "cross".
39226         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
39227         gnulib-tool was called with option --source-base=lib.
39228
39229 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39230
39231         Use automake *-local hooks without commands, for extensibility.
39232         * modules/localcharset (Makefile.am): Rename install-exec-local
39233         rule to install-exec-localcharset, and make it a prerequisite of
39234         install-exec-local.  Likewise, rename the uninstall-local rule to
39235         uninstall-localcharset, and make it a prerequisite of the former.
39236
39237 2009-05-01  Bruno Haible  <bruno@clisp.org>
39238
39239         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
39240         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39241         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
39242         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
39243         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
39244         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39245         m4/locale-zh.m4, m4/codeset.m4.
39246
39247         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39248         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
39249         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39250         m4/locale-zh.m4.
39251
39252         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
39253         REPLACE_WCRTOMB if mbstate_t must be replaced.
39254         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
39255         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
39256
39257 2009-05-01  Bruno Haible  <bruno@clisp.org>
39258
39259         Avoid compiler warnings when redefining macros defined by <libintl.h>.
39260         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
39261         dngettext, dcngettext, textdomain, bindtextdomain,
39262         bind_textdomain_codeset): Undefine before redefining.
39263
39264 2009-04-30  Bruno Haible  <bruno@clisp.org>
39265
39266         Fix bug introduced on 2009-04-25.
39267         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
39268         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
39269         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
39270         is defined.
39271         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
39272         is defined.
39273         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
39274         is defined.
39275         Reported by Elbert_Pol <elbert.pol@gmail.com>.
39276
39277 2009-04-28  Bruno Haible  <bruno@clisp.org>
39278
39279         Comment tweaks.
39280         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
39281         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
39282         * lib/unicase.h (u*_casexfrm): Likewise.
39283         Reported by Paolo Bonzini.
39284
39285 2009-04-28  Bruno Haible  <bruno@clisp.org>
39286
39287         Fix a compilation error.
39288         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
39289         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
39290         Reported by Jim Meyering.
39291
39292 2009-04-27  Bruno Haible  <bruno@clisp.org>
39293
39294         New module 'libunistring'.
39295         * modules/libunistring: New file.
39296         * m4/libunistring.m4: New file.
39297         * MODULES.html.sh (Unicode string functions): Add it.
39298
39299 2009-04-27  Eric Blake  <ebb9@byu.net>
39300
39301         maint.mk: allow package-specific header to provide <config.h>
39302         * top/maint.mk (sc_require_config_h): New variable.
39303         (sc_require_config_h, sc_require_config_h_first): Use it.
39304
39305 2009-04-27  Simon Josefsson  <simon@josefsson.org>
39306
39307         * top/maint.mk (sc_avoid_if_before_free): Except
39308         useless-if-before-free script.
39309
39310 2009-04-27  Eric Blake  <ebb9@byu.net>
39311
39312         maintainer-makefile: depend on all required helper scripts
39313         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
39314         useless-if-before-free.
39315         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
39316         version, rather than assuming gnulib checkout is available.
39317         Reported by Simen Josefsson.
39318
39319 2009-04-26  Bruno Haible  <bruno@clisp.org>
39320
39321         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
39322         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
39323         "../" or "..".
39324
39325 2009-04-26  Bruno Haible  <bruno@clisp.org>
39326
39327         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
39328         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
39329         AC_LIB_HAVE_LINKFLAGS.
39330
39331 2009-04-26  Bruno Haible  <bruno@clisp.org>
39332
39333         Simplify calling convention of u*_conv_from_encoding.
39334         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
39335         u32_conv_from_encoding): Expect a resultbuf argument and return the
39336         result directly as a pointer.
39337         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
39338         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
39339         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
39340         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
39341         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
39342         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39343         Update.
39344         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
39345         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
39346         * lib/vasnprintf.c (VASNPRINTF): Update.
39347         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
39348         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
39349         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
39350         * NEWS: Mention the change.
39351
39352 2009-04-26  Bruno Haible  <bruno@clisp.org>
39353
39354         Simplify calling convention of u*_conv_to_encoding.
39355         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
39356         u32_conv_to_encoding): Expect a resultbuf argument and return the
39357         result directly as a pointer.
39358         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39359         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
39360         freeing scaled_offsets if mem_iconveha failed.
39361         * lib/unicase/u-casexfrm.h (FUNC): Update.
39362         * lib/uninorm/u-normxfrm.h (FUNC): Update.
39363         * lib/vasnprintf.c (VASNPRINTF): Update.
39364         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
39365         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
39366         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
39367         * NEWS: Mention the change.
39368
39369 2009-04-26  Bruno Haible  <bruno@clisp.org>
39370
39371         Avoid test failures on AIX and OSF/1.
39372         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
39373         malloc(0).
39374         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39375         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39376         Likewise.
39377         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
39378         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
39379         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
39380         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
39381         * doc/posix-functions/malloc.texi: Document the portability problem
39382         related to malloc(0).
39383
39384 2009-04-26  Bruno Haible  <bruno@clisp.org>
39385
39386         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
39387         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
39388         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
39389
39390 2009-04-25  Bruno Haible  <bruno@clisp.org>
39391
39392         Avoid link error when creating a namespace clean library.
39393         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
39394         as macro with arguments if already defined as an alias.
39395         * lib/signbitf.c (gl_signbitf): Don't undefine.
39396         * lib/signbitd.c (gl_signbitd): Don't undefine.
39397         * lib/signbitl.c (gl_signbitl): Don't undefine.
39398
39399 2009-04-25  Jim Meyering  <meyering@redhat.com>
39400
39401         vc-list-files: fix another quoting bug
39402         * build-aux/vc-list-files: Avoid sed backslash expansion
39403         of pathological directory names.
39404
39405 2009-04-25  Eric Blake  <ebb9@byu.net>
39406
39407         vc-list-files: fix shell quoting error
39408         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
39409         timestamp.
39410
39411 2009-04-25  Jim Meyering  <meyering@redhat.com>
39412
39413         vc-list-files: restore lost functionality with subdir argument
39414         * build-aux/vc-list-files: When given a non-"." sub-directory
39415         argument, substitute the $dir/ prefix back onto each resulting name.
39416         Otherwise, coreutils' root_tests check would fail.
39417
39418 2009-04-24  Eric Blake  <ebb9@byu.net>
39419
39420         vc-list-files: ignore git symlinks
39421         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
39422         than ls-files, to ignore git symlinks.
39423
39424         maint.mk: import improvements from m4
39425         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
39426         (move_if_change): Delete unused macro.
39427         (news-date-check, vc-diff-check): Support VPATH builds.
39428         (announcement): Likewise.  Split --bootstrap-tools list...
39429         (boostrap-tools): ...into separate list, which can be overridden
39430         in cfg.mk.
39431         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
39432         requiring dependency on useless-if-before-free module.
39433         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
39434         Support VPATH builds.
39435
39436 2009-04-24  Jim Meyering  <meyering@redhat.com>
39437
39438         maint.mk: remove coreutils-specific rules and variables
39439         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
39440         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
39441         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
39442
39443         maint.mk: remove obsolete rule
39444         * top/maint.mk (rel-check): Remove rule.
39445         (WGET, WGETFLAGS): Remove now-unused variables.
39446
39447 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39448
39449         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
39450         consistency.
39451
39452         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
39453         '$(PATH_SEPARATOR)' instead of ':'.
39454
39455 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39456
39457         * lib/getopt1.c (main): Use 'const' for static array.
39458
39459 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39460
39461         * top/maint.mk: Sync with coreutils.
39462         * NEWS: Explain incompatibilities.
39463
39464 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39465             Bruno Haible  <bruno@clisp.org>
39466
39467         Fix cross-compilation results.
39468         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
39469         statement, as third argument of AC_TRY_RUN.
39470         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
39471         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
39472         Likewise.
39473         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
39474         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
39475         Likewise.
39476         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
39477         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
39478         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
39479
39480 2009-04-20  Bruno Haible  <bruno@clisp.org>
39481
39482         Avoid test failure on mingw.
39483         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
39484
39485 2009-04-20  Bruno Haible  <bruno@clisp.org>
39486
39487         Avoid compilation error on mingw.
39488         * modules/localename-tests (Depends-on): Add locale.
39489
39490 2009-04-19  Bruno Haible  <bruno@clisp.org>
39491
39492         Support for building a shared library on Windows platforms.
39493         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
39494         (main): Test the presence of UNINORM_NFC here.
39495         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
39496         (main): Test the presence of UNINORM_NFD here.
39497         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
39498         (main): Test the presence of UNINORM_NFKC here.
39499         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
39500         (main): Test the presence of UNINORM_NFKD here.
39501
39502 2009-04-19  Bruno Haible  <bruno@clisp.org>
39503
39504         Avoid a compiler warning.
39505         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
39506         Change type of variable 'sequence'.
39507
39508 2009-04-19  Bruno Haible  <bruno@clisp.org>
39509
39510         * modules/configmake (Makefile.am): When the contents of configmake.h
39511         does not change, arrange to preserve its modification time.
39512
39513 2009-04-17  Simon Josefsson  <simon@josefsson.org>
39514
39515         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
39516         gettext domain.
39517
39518 2009-04-16  Jim Meyering  <meyering@redhat.com>
39519
39520         useless-if-before-free: improve conversion code
39521         * build-aux/useless-if-before-free: Adjust code-in-comment to match
39522         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
39523
39524 2009-04-14  Bruno Haible  <bruno@clisp.org>
39525
39526         * modules/fcntl (Depends-on): Add extensions.
39527         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
39528
39529 2009-04-12  Ben Pfaff  <blp@gnu.org>
39530
39531         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
39532         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
39533
39534 2009-03-20  Ben Pfaff  <blp@gnu.org>
39535
39536         Make rename replace existing destinations on Windows.
39537         * m4/rename.m4: Add test for Mingw.
39538         * lib/rename.c: Add rename replacement that uses MoveFileEx with
39539         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
39540         * doc/posix-functions/rename.texi: Document.
39541
39542 2009-04-10  Bruno Haible  <bruno@clisp.org>
39543
39544         New include file "iconveh.h".
39545         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
39546         * lib/striconveh.h: Include it.
39547         (enum iconv_ilseq_handler): Remove definition.
39548         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
39549         striconveh.h.
39550         * lib/striconveha.c: Include striconveh.h.
39551         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
39552         * modules/striconveh (Files): Add lib/iconveh.h.
39553         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
39554         lib/striconveh.h.
39555
39556 2009-04-10  Bruno Haible  <bruno@clisp.org>
39557
39558         * lib/uniconv.h: Update comment.
39559
39560 2009-04-10  Bruno Haible  <bruno@clisp.org>
39561
39562         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
39563         always.
39564         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
39565         * lib/unistr/u16-mbtouc-aux.c: Likewise.
39566         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
39567         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
39568         "unistring-notinline.h", so that the function gets defined always.
39569         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
39570         * lib/unistr/u8-uctomb.c: Likewise.
39571         * lib/unistr/u16-mbtouc.c: Likewise.
39572         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
39573         * lib/unistr/u16-uctomb.c: Likewise.
39574         * lib/unistr/u32-mbtouc.c: Likewise.
39575         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
39576         * lib/unistr/u32-uctomb.c: Likewise.
39577
39578 2009-04-10  Bruno Haible  <bruno@clisp.org>
39579
39580         Mark 'utime' obsolete.
39581         * modules/utime (Status, Notice): New sections.
39582         Suggested by Jim Meyering.
39583
39584         Fix cross-compile guess for utime test.
39585         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
39586         autoconf.
39587         * doc/posix-functions/utime.texi: Give more precisions.
39588         Reported by Jan <ipif@ymail.com>.
39589
39590 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
39591
39592         filevercmp: correct today's change
39593         * lib/filevercmp.c: Also handle coreutils' test inputs.
39594         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
39595
39596         Fix regression in 'filevercmp' module. Thanks Sven Joachim
39597         for reporting it.
39598         * lib/filevercmp.c: Special handle for "", "." and "..".
39599         * tests/test-filevercmp.c: Enlarge the set suite.
39600
39601 2009-04-07  Jim Meyering  <meyering@redhat.com>
39602
39603         useless-if-before-free: show how to remove braced useless free, too
39604         * build-aux/useless-if-before-free: still only in a comment, though.
39605
39606 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
39607
39608         maint.mk: import changes to syntax-check macros from coreutils
39609         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
39610         Use them in the relevant macros.
39611
39612 2009-04-06  Bruno Haible  <bruno@clisp.org>
39613
39614         Fix unportable use of bit-fields.
39615         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
39616         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
39617         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
39618
39619 2009-04-06  Bruno Haible  <bruno@clisp.org>
39620
39621         Avoid test failures on AIX and OSF/1.
39622         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
39623         that malloc(0) = NULL.
39624         * tests/unicase/test-u8-tolower.c (check): Likewise.
39625         * tests/unicase/test-u8-totitle.c (check): Likewise.
39626         * tests/unicase/test-u8-toupper.c (check): Likewise.
39627         * tests/unicase/test-u16-casefold.c (check): Likewise.
39628         * tests/unicase/test-u16-tolower.c (check): Likewise.
39629         * tests/unicase/test-u16-totitle.c (check): Likewise.
39630         * tests/unicase/test-u16-toupper.c (check): Likewise.
39631         * tests/unicase/test-u32-casefold.c (check): Likewise.
39632         * tests/unicase/test-u32-tolower.c (check): Likewise.
39633         * tests/unicase/test-u32-totitle.c (check): Likewise.
39634         * tests/unicase/test-u32-toupper.c (check): Likewise.
39635         * tests/uninorm/test-u8-nfc.c (check): Likewise.
39636         * tests/uninorm/test-u8-nfd.c (check): Likewise.
39637         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
39638         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
39639         * tests/uninorm/test-u16-nfc.c (check): Likewise.
39640         * tests/uninorm/test-u16-nfd.c (check): Likewise.
39641         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
39642         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
39643         * tests/uninorm/test-u32-nfc.c (check): Likewise.
39644         * tests/uninorm/test-u32-nfd.c (check): Likewise.
39645         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
39646         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
39647
39648 2009-04-05  Bruno Haible  <bruno@clisp.org>
39649
39650         Work around an autoconf limitation.
39651         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
39652         comment line if it would be longer than 3 KB.
39653
39654 2009-04-05  Bruno Haible  <bruno@clisp.org>
39655
39656         Avoid test failure with libiconv-1.13.
39657         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
39658         of the expected test results.
39659
39660 2009-04-05  Bruno Haible  <bruno@clisp.org>
39661
39662         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
39663         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
39664         that it should be installed.
39665
39666 2009-04-05  Bruno Haible  <bruno@clisp.org>
39667
39668         * gnulib-tool: New option --copy-file.
39669         (func_usage): Document it.
39670         (func_dest_tmpfilename): Moved out of func_import.
39671         (func_add_file, func_update_file): New functions, extracted from
39672         func_import.
39673         (func_import): Update.
39674
39675 2009-04-05  Karl Berry  <karl@gnu.org>
39676
39677         * README: prominently mention gnulib-tool.
39678         Rearrange sections so getting the code is near the top.
39679
39680 2009-04-05  Bruno Haible  <bruno@clisp.org>
39681
39682         * lib/unicase.h: Mention u*_cmp2.
39683         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39684         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
39685         * lib/unicase/ulc-casecmp.c: Likewise.
39686         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
39687         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
39688         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
39689         unistr/u8-cmp.
39690         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
39691         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
39692         unistr/u16-cmp.
39693         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
39694         unistr/u32-cmp.
39695
39696         * lib/uninorm.h: Mention u*_cmp2.
39697         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39698         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
39699         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
39700         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
39701         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
39702         unistr/u8-cmp.
39703         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
39704         unistr/u16-cmp.
39705         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
39706         unistr/u32-cmp.
39707
39708         New module 'unistr/u32-cmp2'.
39709         * lib/unistr/u32-cmp2.c: New file.
39710         * modules/unistr/u32-cmp2: New file.
39711
39712         New module 'unistr/u16-cmp2'.
39713         * lib/unistr/u16-cmp2.c: New file.
39714         * modules/unistr/u16-cmp2: New file.
39715
39716         New module 'unistr/u8-cmp2'.
39717         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
39718         * lib/unistr/u8-cmp2.c: New file.
39719         * lib/unistr/u-cmp2.h: New file.
39720         * modules/unistr/u8-cmp2: New file.
39721
39722 2009-04-05  Bruno Haible  <bruno@clisp.org>
39723
39724         * lib/unictype.h (uc_property_is_valid): New macro.
39725         * tests/unictype/test-pr_byname.c (main): Use it.
39726
39727         * lib/unistr.h: Doc fixes.
39728         * lib/uniconv.h: Doc fixes.
39729         * lib/unictype.h: Doc fixes.
39730
39731 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
39732
39733         Port coreutils 7.2 to Solaris 8.
39734
39735         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
39736         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
39737         for Solaris 8.  This is a bit of a hack, as it means it's the
39738         caller's responsibility to add -lnsl if needed, but most likely it
39739         won't be needed since only getaddrinfo uses this and getaddrinfo
39740         isn't needed on Solaris 8.
39741
39742         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
39743         problem to Solaris 8 encountered with coreutils 7.2, which
39744         resulted in a message "fnmatch.c:292: warning: passing argument 4
39745         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
39746         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
39747
39748 2009-04-03  Simon Josefsson  <simon@josefsson.org>
39749
39750         * m4/ld-version-script.m4: Add FIXME comment.
39751
39752 2009-04-02  Simon Josefsson  <simon@josefsson.org>
39753
39754         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
39755         SOVERSION variable.
39756
39757 2009-04-02  Bruno Haible  <bruno@clisp.org>
39758
39759         * Makefile (info, html, dvi, pdf): Combine the rules.
39760         Suggested by Jim Meyering.
39761
39762 2009-04-01  Bruno Haible  <bruno@clisp.org>
39763
39764         * Makefile (info, html, dvi, pdf): New targets.
39765         Reported by Reuben Thomas <rrt@sc3d.org>.
39766
39767 2009-04-01  Bruno Haible  <bruno@clisp.org>
39768
39769         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
39770         can be put into PATH.
39771         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
39772
39773 2009-04-01  Bruno Haible  <bruno@clisp.org>
39774
39775         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
39776
39777 2009-04-01  Bruno Haible  <bruno@clisp.org>
39778
39779         Rename module 'visibility'.
39780         * modules/lib-symbol-visibility: Renamed from modules/visibility.
39781         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
39782         * doc/gnulib.texi: Update.
39783         * MODULES.html.sh (Misc): Update.
39784         * NEWS: Mention the change.
39785
39786 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39787
39788         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
39789         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
39790         Eric Blake <ebb9@byu.net> for review.
39791         * MODULES.html.sh: Add lib-msvc-compat.
39792         * doc/gnulib.texi: Link to new section.
39793         * m4/ld-output-def.m4: New file.
39794         * doc/ld-output-def.texi: New file.
39795
39796 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39797
39798         Rename ld-version-script to lib-symbol-versions.  Suggested by
39799         Bruno Haible <bruno@clisp.org>.
39800         * modules/ld-version-script: Renamed to lib-symbol-versions.
39801         * doc/ld-version-script.texi: Fix module name.
39802         * MODULES.html.sh: Add lib-symbol-versions.
39803
39804 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39805
39806         * modules/u64-tests: New file.
39807         * tests/test-u64.c: New file.
39808
39809 2009-03-04  Simon Josefsson  <simon@josefsson.org>
39810
39811         * MODULES.html.sh: Mention u64.
39812         * modules/u64: New module.
39813         * modules/crypto/sha512: Depend on u64 module instead of providing
39814         u64.h.
39815
39816 2009-03-27  Eric Blake  <ebb9@byu.net>
39817
39818         test-strerror: make debugging EAI_SYSTEM easier
39819         * modules/getaddrinfo-tests (Depends-on): Add strerror.
39820         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
39821         failure was EAI_SYSTEM.
39822
39823 2009-03-25  Bruno Haible  <bruno@clisp.org>
39824
39825         Fix a problem with --enable-relocatable on Solaris 7.
39826         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
39827         since 2008-02-24.
39828
39829 2009-03-25  Eric Blake  <ebb9@byu.net>
39830
39831         test-sockets: avoid gcc warning
39832         * tests/test-sockets.c (main): Silence compiler warning.
39833
39834 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
39835
39836         New modules nproc, pthread, contributed by Glen Lenker.
39837
39838         * MODULES.html.sh: Add pthread, nproc.
39839         * lib/nproc.c: New file.
39840         * lib/nproc.h: New file.
39841         * lib/pthread.in.h: New file.
39842         * m4/pthread.m4: New file.
39843         * modules/nproc: New file.
39844         * modules/pthread: New file.
39845
39846 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39847
39848         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
39849         New variable.
39850
39851 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
39852
39853         filevercmp: handle simple~ and numbered.~3~ backup suffixes
39854         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
39855         * tests/test-filevercmp.c: Add tests for backup suffixes.
39856
39857 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39858
39859         * modules/stdlib (Depends-on): Add stdint, needed when defining
39860         struct random_data on, for example, HP-UX 10.20.  Reported by
39861         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39862
39863 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39864
39865         * lib/readline.c (readline): Call fflush on stdout after printing
39866         prompt.
39867
39868 2009-03-20  Bruno Haible  <bruno@clisp.org>
39869
39870         Remove dependency from 'close' module to -lws2_32 on native Windows.
39871         * lib/close-hook.h: New file.
39872         * lib/close-hook.c: New file.
39873         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
39874         w32sock.h.
39875         (_gl_close_fd_maybe_socket): Remove function.
39876         (rpl_close): Invoke execute_all_close_hooks instead of
39877         _gl_close_fd_maybe_socket.
39878         * lib/sockets.c: Include close-hook.h, w32sock.h.
39879         (close_fd_maybe_socket): New function, essentially from lib/close.c.
39880         (close_sockets_hook): New variable.
39881         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
39882         (gl_sockets_cleanup): Unregister it.
39883         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
39884         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
39885         * modules/close-hook: New file.
39886         * modules/close (Files): Remove lib/w32sock.h.
39887         (Depends-on): Add close-hook.
39888         (Link): Remove section.
39889         * modules/sockets (Files): Add lib/w32sock.h.
39890         (Depends-on): Add close-hook.
39891         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
39892         invocation.
39893         * NEWS: Mention that LIB_CLOSE is gone.
39894
39895 2009-03-23  Eric Blake  <ebb9@byu.net>
39896
39897         signal-tests: test previous patch
39898         * tests/test-signal.c: New file.
39899         * modules/signal-tests: Likewise.
39900
39901         signal.h: always support 'volatile sig_atomic_t'
39902         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
39903         (gl_SIGNAL_H_DEFAULTS): Add a default.
39904         * modules/signal (Makefile.am): Substitute if needed.
39905         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
39906         users can blindly add volatile.
39907         * doc/posix-headers/signal.texi (signal.h): Document it.
39908         Reported by Matthew Woehlke.
39909
39910 2009-03-23  Jim Meyering  <meyering@redhat.com>
39911
39912         pathmax: PATH_MAX: use pathconf only when available
39913         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
39914         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
39915         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
39916         This avoids a link failure in a PSP cross-compilation environment
39917         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
39918
39919         * lib/vasnprintf.c (divide): Fix typo in comment.
39920
39921 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39922
39923         * gnulib-tool (func_filter_filelist): Fix comment.
39924
39925 2009-03-20  Bruno Haible  <bruno@clisp.org>
39926
39927         Make sockets.h self-contained.
39928         * lib/sockets.c: Include sockets.h first.
39929         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
39930
39931 2009-03-19  Eric Blake  <ebb9@byu.net>
39932
39933         doc: mention more functions added in cygwin 1.7.0
39934         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
39935         addition.
39936         * doc/posix-functions/log2f.texi: Likewise.
39937
39938 2009-03-19  Jim Meyering  <meyering@redhat.com>
39939
39940         fsusage: avoid syntax error due to statement-before-declaration
39941         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
39942         after all declarations.  Reported by Matthew Woehlke in
39943         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
39944
39945 2009-03-18  Eric Blake  <ebb9@byu.net>
39946
39947         build-aux/compile: sync from automake
39948         * build-aux/compile: New file, from automake.
39949         * config/srclist.txt: Mention build-aux/compile.
39950
39951 2009-03-17  Bruno Haible  <bruno@clisp.org>
39952
39953         * lib/git-merge-changelog.c: Fix typo in comment.
39954         Reported by Reuben Thomas <rrt@sc3d.org>.
39955
39956 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
39957
39958         * m4/regex.m4: update and improve help for
39959         --without-included-regex.
39960
39961 2009-03-17  Simon Josefsson  <simon@josefsson.org>
39962
39963         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
39964         failure on missing include files.
39965
39966 2009-03-17  Eric Blake  <ebb9@byu.net>
39967
39968         doc: mention more functions added in cygwin 1.7.0
39969         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
39970         addition.
39971         * doc/posix-functions/fwscanf.texi: Likewise.
39972         * doc/posix-functions/swprintf.texi: Likewise.
39973         * doc/posix-functions/swscanf.texi: Likewise.
39974         * doc/posix-functions/vfwprintf.texi: Likewise.
39975         * doc/posix-functions/vfwscanf.texi: Likewise.
39976         * doc/posix-functions/vswprintf.texi: Likewise.
39977         * doc/posix-functions/vswscanf.texi: Likewise.
39978         * doc/posix-functions/vwprintf.texi: Likewise.
39979         * doc/posix-functions/vwscanf.texi: Likewise.
39980         * doc/posix-functions/wcscasecmp.texi: Likewise.
39981         * doc/posix-functions/wcsdup.texi: Likewise.
39982         * doc/posix-functions/wcsftime.texi: Likewise.
39983         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39984         * doc/posix-functions/wprintf.texi: Likewise.
39985         * doc/posix-functions/wscanf.texi: Likewise.
39986         * doc/glibc-functions/gethostbyname2.texi: Likewise.
39987
39988 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39989
39990         maint.mk: really add $(AM_MAKEFLAGS)
39991         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
39992         was inadvertently omitted in the last commit.
39993         Spotted by Bruno Haible.
39994
39995         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
39996         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
39997         $(AM_MAKEFLAGS)' rather than plain `make'.
39998
39999         gnulib-tool: execute $MAKE not make
40000         * gnulib-tool: Default $MAKE to 'make'.
40001         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
40002         than make.  Initialize $MAKE in the do-autobuild script.
40003
40004         gnulib-tool: use $MAKE not make in generated files
40005         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
40006         make, in generated files.  Initialize $MAKE in the do-autobuild
40007         script.
40008
40009         * top/GNUmakefile (_have-git-version-gen): Fix typo.
40010
40011         GNUmakefile: disable parallelism only for multiple, recursive targets
40012         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
40013         additions in the Makefile.
40014         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
40015         by Automake.
40016         (.NOTPARALLEL): Only disable parallel builds if multiple targets
40017         are listed on the command line and at least one of them is
40018         listed in $(ALL_RECURSIVE_TARGETS).
40019
40020 2009-03-14  Bruno Haible  <bruno@clisp.org>
40021
40022         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
40023         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
40024         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
40025         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
40026         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
40027         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
40028         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
40029         unistr/u8-uctomb.
40030         * modules/unistr/u8-strchr (Depends-on): Likewise.
40031         * modules/unistr/u8-strrchr (Depends-on): Likewise.
40032         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
40033         unistr/u16-uctomb.
40034         * modules/unistr/u16-strchr (Depends-on): Likewise.
40035         * modules/unistr/u16-strrchr (Depends-on): Likewise.
40036
40037 2009-03-12  Bruno Haible  <bruno@clisp.org>
40038
40039         Work around select() bug on Interix 3.5.
40040         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
40041         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
40042         * m4/select.m4: New file.
40043         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
40044         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
40045         * modules/select (Files): Add m4/select.m4.
40046         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
40047         * modules/nanosleep (Depends-on): Add select.
40048         * modules/poll (Depends-on): Likewise.
40049         * doc/posix-functions/select.texi: Mention the Interix bug.
40050         Reported by Markus Duft <mduft@gentoo.org>.
40051
40052         * lib/select.c: Renamed from lib/winsock-select.c.
40053         * modules/select (Files): Add lib/select.c, remove
40054         lib/winsock-select.c.
40055         (configure.ac): Update.
40056
40057 2009-03-12  Jim Meyering  <meyering@redhat.com>
40058
40059         avoid gcc warnings about unused macro definitions
40060         * lib/readtokens.c (STREQ): Remove unused definition.
40061         * lib/xmalloc.c (SIZE_MAX): Likewise.
40062         * lib/openat-die.c (N_): Likewise.
40063         * lib/mountlist.c (SIZE_MAX): Remove definition.
40064         Instead, include <stdint.h>.
40065         * lib/readutmp.c: Likewise.
40066         * modules/readutmp (Depends-on): Add stdint.
40067         * modules/mountlist (Depends-on): Add stdint.
40068         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
40069
40070 2009-03-10  Bruno Haible  <bruno@clisp.org>
40071
40072         Tests for module 'mbmemcasecoll'.
40073         * modules/mbmemcasecoll-tests: New file.
40074         * tests/test-mbmemcasecoll1.sh: New file.
40075         * tests/test-mbmemcasecoll2.sh: New file.
40076         * tests/test-mbmemcasecoll3.sh: New file.
40077         * tests/test-mbmemcasecoll.c: New file.
40078
40079         New module 'mbmemcasecoll'.
40080         * lib/mbmemcasecoll.h: New file.
40081         * lib/mbmemcasecoll.c: New file.
40082         * modules/mbmemcasecoll: New file.
40083
40084         * tests/test-mbmemcasecmp.h: New file, extracted from
40085         tests/test-mbmemcasecmp.c.
40086         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
40087         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
40088         (main): Update.
40089         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
40090
40091 2009-03-09  Bruno Haible  <bruno@clisp.org>
40092
40093         Tests for module 'mbmemcasecmp'.
40094         * modules/mbmemcasecmp-tests: New file.
40095         * tests/test-mbmemcasecmp1.sh: New file.
40096         * tests/test-mbmemcasecmp2.sh: New file.
40097         * tests/test-mbmemcasecmp3.sh: New file.
40098         * tests/test-mbmemcasecmp.c: New file.
40099
40100         New module 'mbmemcasecmp'.
40101         * lib/mbmemcasecmp.h: New file.
40102         * lib/mbmemcasecmp.c: New file.
40103         * modules/mbmemcasecmp: New file.
40104
40105 2009-03-09  Bruno Haible  <bruno@clisp.org>
40106
40107         Tests for module 'unicase/ulc-casecoll'.
40108         * modules/unicase/ulc-casecoll-tests: New file.
40109         * tests/unicase/test-ulc-casecoll1.sh: New file.
40110         * tests/unicase/test-ulc-casecoll2.sh: New file.
40111         * tests/unicase/test-ulc-casecoll.c: New file.
40112
40113         New module 'unicase/ulc-casecoll'.
40114         * lib/unicase.h (ulc_casecoll): New declaration.
40115         * lib/unicase/ulc-casecoll.c: New file.
40116         * modules/unicase/ulc-casecoll: New file.
40117
40118         New module 'unicase/ulc-casexfrm'.
40119         * lib/unicase.h (ulc_casexfrm): New declaration.
40120         * lib/unicase/ulc-casexfrm.c: New file.
40121         * modules/unicase/ulc-casexfrm: New file.
40122
40123 2009-03-09  Bruno Haible  <bruno@clisp.org>
40124
40125         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
40126         invocations.
40127
40128         * m4/mbscasecmp.m4: Remove file.
40129         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
40130         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
40131
40132         * m4/mbscasestr.m4: Remove file.
40133         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
40134         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
40135
40136         * m4/mbschr.m4: Remove file.
40137         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
40138         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
40139
40140         * m4/mbscspn.m4: Remove file.
40141         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
40142         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
40143
40144         * m4/mbslen.m4: Remove file.
40145         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
40146         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
40147
40148         * m4/mbsncasecmp.m4: Remove file.
40149         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
40150         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
40151
40152         * m4/mbsnlen.m4: Remove file.
40153         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
40154         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
40155
40156         * m4/mbspbrk.m4: Remove file.
40157         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
40158         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
40159
40160         * m4/mbspcasecmp.m4: Remove file.
40161         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
40162         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
40163
40164         * m4/mbsrchr.m4: Remove file.
40165         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
40166         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
40167
40168         * m4/mbssep.m4: Remove file.
40169         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
40170         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
40171
40172         * m4/mbsspn.m4: Remove file.
40173         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
40174         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
40175
40176         * m4/mbsstr.m4: Remove file.
40177         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
40178         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
40179
40180         * m4/mbstok_r.m4: Remove file.
40181         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
40182         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
40183
40184         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
40185
40186         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
40187         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
40188
40189         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
40190
40191 2009-03-08  Bruno Haible  <bruno@clisp.org>
40192
40193         Tests for module 'unicase/ulc-casecmp'.
40194         * modules/unicase/ulc-casecmp-tests: New file.
40195         * tests/unicase/test-ulc-casecmp1.sh: New file.
40196         * tests/unicase/test-ulc-casecmp2.sh: New file.
40197         * tests/unicase/test-ulc-casecmp.c: New file.
40198
40199         New module 'unicase/ulc-casecmp'.
40200         * lib/unicase.h (ulc_casecmp): New declaration.
40201         * lib/unicase/ulc-casecmp.c: New file.
40202         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
40203         'const SRC_UNIT *'.
40204         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
40205         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
40206         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
40207         * modules/unicase/ulc-casecmp: New file.
40208
40209         Tests for module 'unicase/u32-is-cased'.
40210         * modules/unicase/u32-is-cased-tests: New file.
40211         * tests/unicase/test-u32-is-cased.c: New file.
40212
40213         Tests for module 'unicase/u16-is-cased'.
40214         * modules/unicase/u16-is-cased-tests: New file.
40215         * tests/unicase/test-u16-is-cased.c: New file.
40216
40217         Tests for module 'unicase/u8-is-cased'.
40218         * modules/unicase/u8-is-cased-tests: New file.
40219         * tests/unicase/test-u8-is-cased.c: New file.
40220         * tests/unicase/test-is-cased.h: New file.
40221
40222         New module 'unicase/u32-is-cased'.
40223         * lib/unicase/u32-is-cased.c: New file.
40224         * modules/unicase/u32-is-cased: New file.
40225
40226         New module 'unicase/u16-is-cased'.
40227         * lib/unicase/u16-is-cased.c: New file.
40228         * modules/unicase/u16-is-cased: New file.
40229
40230         New module 'unicase/u8-is-cased'.
40231         * lib/unicase/u8-is-cased.c: New file.
40232         * lib/unicase/u-is-cased.h: New file.
40233         * modules/unicase/u8-is-cased: New file.
40234
40235         Tests for module 'unicase/u32-is-casefolded'.
40236         * modules/unicase/u32-is-casefolded-tests: New file.
40237         * tests/unicase/test-u32-is-casefolded.c: New file.
40238
40239         Tests for module 'unicase/u16-is-casefolded'.
40240         * modules/unicase/u16-is-casefolded-tests: New file.
40241         * tests/unicase/test-u16-is-casefolded.c: New file.
40242
40243         Tests for module 'unicase/u8-is-casefolded'.
40244         * modules/unicase/u8-is-casefolded-tests: New file.
40245         * tests/unicase/test-u8-is-casefolded.c: New file.
40246         * tests/unicase/test-is-casefolded.h: New file.
40247
40248         New module 'unicase/u32-is-casefolded'.
40249         * lib/unicase/u32-is-casefolded.c: New file.
40250         * modules/unicase/u32-is-casefolded: New file.
40251
40252         New module 'unicase/u16-is-casefolded'.
40253         * lib/unicase/u16-is-casefolded.c: New file.
40254         * modules/unicase/u16-is-casefolded: New file.
40255
40256         New module 'unicase/u8-is-casefolded'.
40257         * lib/unicase/u8-is-casefolded.c: New file.
40258         * modules/unicase/u8-is-casefolded: New file.
40259
40260         Tests for module 'unicase/u32-is-titlecase'.
40261         * modules/unicase/u32-is-titlecase-tests: New file.
40262         * tests/unicase/test-u32-is-titlecase.c: New file.
40263
40264         Tests for module 'unicase/u16-is-titlecase'.
40265         * modules/unicase/u16-is-titlecase-tests: New file.
40266         * tests/unicase/test-u16-is-titlecase.c: New file.
40267
40268         Tests for module 'unicase/u8-is-titlecase'.
40269         * modules/unicase/u8-is-titlecase-tests: New file.
40270         * tests/unicase/test-u8-is-titlecase.c: New file.
40271         * tests/unicase/test-is-titlecase.h: New file.
40272
40273         New module 'unicase/u32-is-titlecase'.
40274         * lib/unicase/u32-is-titlecase.c: New file.
40275         * modules/unicase/u32-is-titlecase: New file.
40276
40277         New module 'unicase/u16-is-titlecase'.
40278         * lib/unicase/u16-is-titlecase.c: New file.
40279         * modules/unicase/u16-is-titlecase: New file.
40280
40281         New module 'unicase/u8-is-titlecase'.
40282         * lib/unicase/u8-is-titlecase.c: New file.
40283         * modules/unicase/u8-is-titlecase: New file.
40284
40285         Tests for module 'unicase/u32-is-lowercase'.
40286         * modules/unicase/u32-is-lowercase-tests: New file.
40287         * tests/unicase/test-u32-is-lowercase.c: New file.
40288
40289         Tests for module 'unicase/u16-is-lowercase'.
40290         * modules/unicase/u16-is-lowercase-tests: New file.
40291         * tests/unicase/test-u16-is-lowercase.c: New file.
40292
40293         Tests for module 'unicase/u8-is-lowercase'.
40294         * modules/unicase/u8-is-lowercase-tests: New file.
40295         * tests/unicase/test-u8-is-lowercase.c: New file.
40296         * tests/unicase/test-is-lowercase.h: New file.
40297
40298         New module 'unicase/u32-is-lowercase'.
40299         * lib/unicase/u32-is-lowercase.c: New file.
40300         * modules/unicase/u32-is-lowercase: New file.
40301
40302         New module 'unicase/u16-is-lowercase'.
40303         * lib/unicase/u16-is-lowercase.c: New file.
40304         * modules/unicase/u16-is-lowercase: New file.
40305
40306         New module 'unicase/u8-is-lowercase'.
40307         * lib/unicase/u8-is-lowercase.c: New file.
40308         * modules/unicase/u8-is-lowercase: New file.
40309
40310         Tests for module 'unicase/u32-is-uppercase'.
40311         * modules/unicase/u32-is-uppercase-tests: New file.
40312         * tests/unicase/test-u32-is-uppercase.c: New file.
40313
40314         Tests for module 'unicase/u16-is-uppercase'.
40315         * modules/unicase/u16-is-uppercase-tests: New file.
40316         * tests/unicase/test-u16-is-uppercase.c: New file.
40317
40318         Tests for module 'unicase/u8-is-uppercase'.
40319         * modules/unicase/u8-is-uppercase-tests: New file.
40320         * tests/unicase/test-u8-is-uppercase.c: New file.
40321         * tests/unicase/test-is-uppercase.h: New file.
40322
40323         New module 'unicase/u32-is-uppercase'.
40324         * lib/unicase/u32-is-uppercase.c: New file.
40325         * modules/unicase/u32-is-uppercase: New file.
40326
40327         New module 'unicase/u16-is-uppercase'.
40328         * lib/unicase/u16-is-uppercase.c: New file.
40329         * modules/unicase/u16-is-uppercase: New file.
40330
40331         New module 'unicase/u8-is-uppercase'.
40332         * lib/unicase/u8-is-uppercase.c: New file.
40333         * modules/unicase/u8-is-uppercase: New file.
40334
40335         New module 'unicase/u32-is-invariant'.
40336         * lib/unicase/u32-is-invariant.c: New file.
40337         * modules/unicase/u32-is-invariant: New file.
40338
40339         New module 'unicase/u16-is-invariant'.
40340         * lib/unicase/u16-is-invariant.c: New file.
40341         * modules/unicase/u16-is-invariant: New file.
40342
40343         New module 'unicase/u8-is-invariant'.
40344         * lib/unicase/u8-is-invariant.c: New file.
40345         * lib/unicase/invariant.h: New file.
40346         * lib/unicase/u-is-invariant.h: New file.
40347         * modules/unicase/u8-is-invariant: New file.
40348
40349         Tests for module 'unicase/u32-casecoll'.
40350         * modules/unicase/u32-casecoll-tests: New file.
40351         * tests/unicase/test-u32-casecoll.c: New file.
40352
40353         Tests for module 'unicase/u16-casecoll'.
40354         * modules/unicase/u16-casecoll-tests: New file.
40355         * tests/unicase/test-u16-casecoll.c: New file.
40356
40357         Tests for module 'unicase/u8-casecoll'.
40358         * modules/unicase/u8-casecoll-tests: New file.
40359         * tests/unicase/test-u8-casecoll.c: New file.
40360
40361         New module 'unicase/u32-casecoll'.
40362         * lib/unicase/u32-casecoll.c: New file.
40363         * modules/unicase/u32-casecoll: New file.
40364
40365         New module 'unicase/u16-casecoll'.
40366         * lib/unicase/u16-casecoll.c: New file.
40367         * modules/unicase/u16-casecoll: New file.
40368
40369         New module 'unicase/u8-casecoll'.
40370         * lib/unicase/u8-casecoll.c: New file.
40371         * lib/unicase/u-casecoll.h: New file.
40372         * modules/unicase/u8-casecoll: New file.
40373
40374         New module 'unicase/u32-casexfrm'.
40375         * lib/unicase/u32-casexfrm.c: New file.
40376         * modules/unicase/u32-casexfrm: New file.
40377
40378         New module 'unicase/u16-casexfrm'.
40379         * lib/unicase/u16-casexfrm.c: New file.
40380         * modules/unicase/u16-casexfrm: New file.
40381
40382         New module 'unicase/u8-casexfrm'.
40383         * lib/unicase/u8-casexfrm.c: New file.
40384         * lib/unicase/u-casexfrm.h: New file.
40385         * modules/unicase/u8-casexfrm: New file.
40386
40387         Tests for module 'unicase/u32-casecmp'.
40388         * modules/unicase/u32-casecmp-tests: New file.
40389         * tests/unicase/test-u32-casecmp.c: New file.
40390
40391         Tests for module 'unicase/u16-casecmp'.
40392         * modules/unicase/u16-casecmp-tests: New file.
40393         * tests/unicase/test-u16-casecmp.c: New file.
40394
40395         Tests for module 'unicase/u8-casecmp'.
40396         * modules/unicase/u8-casecmp-tests: New file.
40397         * tests/unicase/test-u8-casecmp.c: New file.
40398         * tests/unicase/test-casecmp.h: New file.
40399
40400         New module 'unicase/u32-casecmp'.
40401         * lib/unicase/u32-casecmp.c: New file.
40402         * modules/unicase/u32-casecmp: New file.
40403
40404         New module 'unicase/u16-casecmp'.
40405         * lib/unicase/u16-casecmp.c: New file.
40406         * modules/unicase/u16-casecmp: New file.
40407
40408         New module 'unicase/u8-casecmp'.
40409         * lib/unicase/u8-casecmp.c: New file.
40410         * lib/unicase/u-casecmp.h: New file.
40411         * modules/unicase/u8-casecmp: New file.
40412
40413         Tests for module 'unicase/u32-casefold'.
40414         * modules/unicase/u32-casefold-tests: New file.
40415         * tests/unicase/test-u32-casefold.c: New file.
40416
40417         Tests for module 'unicase/u16-casefold'.
40418         * modules/unicase/u16-casefold-tests: New file.
40419         * tests/unicase/test-u16-casefold.c: New file.
40420
40421         Tests for module 'unicase/u8-casefold'.
40422         * modules/unicase/u8-casefold-tests: New file.
40423         * tests/unicase/test-u8-casefold.c: New file.
40424
40425         New module 'unicase/u32-casefold'.
40426         * lib/unicase/u32-casefold.c: New file.
40427         * modules/unicase/u32-casefold: New file.
40428
40429         New module 'unicase/u16-casefold'.
40430         * lib/unicase/u16-casefold.c: New file.
40431         * modules/unicase/u16-casefold: New file.
40432
40433         New module 'unicase/u8-casefold'.
40434         * lib/unicase/u8-casefold.c: New file.
40435         * lib/unicase/u-casefold.h: New file.
40436         * modules/unicase/u8-casefold: New file.
40437
40438         New module 'unicase/tocasefold'.
40439         * lib/unicase/casefold.h: New file.
40440         * lib/unicase/tocasefold.c: New file.
40441         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
40442         * modules/unicase/tocasefold: New file.
40443
40444         Tests for module 'unicase/u32-totitle'.
40445         * modules/unicase/u32-totitle-tests: New file.
40446         * tests/unicase/test-u32-totitle.c: New file.
40447
40448         Tests for module 'unicase/u16-totitle'.
40449         * modules/unicase/u16-totitle-tests: New file.
40450         * tests/unicase/test-u16-totitle.c: New file.
40451
40452         Tests for module 'unicase/u8-totitle'.
40453         * modules/unicase/u8-totitle-tests: New file.
40454         * tests/unicase/test-u8-totitle.c: New file.
40455
40456         New module 'unicase/u32-totitle'.
40457         * lib/unicase/u32-totitle.c: New file.
40458         * modules/unicase/u32-totitle: New file.
40459
40460         New module 'unicase/u16-totitle'.
40461         * lib/unicase/u16-totitle.c: New file.
40462         * modules/unicase/u16-totitle: New file.
40463
40464         New module 'unicase/u8-totitle'.
40465         * lib/unicase/u8-totitle.c: New file.
40466         * lib/unicase/u-totitle.h: New file.
40467         * modules/unicase/u8-totitle: New file.
40468
40469         Tests for module 'unicase/u32-tolower'.
40470         * modules/unicase/u32-tolower-tests: New file.
40471         * tests/unicase/test-u32-tolower.c: New file.
40472
40473         Tests for module 'unicase/u16-tolower'.
40474         * modules/unicase/u16-tolower-tests: New file.
40475         * tests/unicase/test-u16-tolower.c: New file.
40476
40477         Tests for module 'unicase/u8-tolower'.
40478         * modules/unicase/u8-tolower-tests: New file.
40479         * tests/unicase/test-u8-tolower.c: New file.
40480
40481         New module 'unicase/u32-tolower'.
40482         * lib/unicase/u32-tolower.c: New file.
40483         * modules/unicase/u32-tolower: New file.
40484
40485         New module 'unicase/u16-tolower'.
40486         * lib/unicase/u16-tolower.c: New file.
40487         * modules/unicase/u16-tolower: New file.
40488
40489         New module 'unicase/u8-tolower'.
40490         * lib/unicase/u8-tolower.c: New file.
40491         * modules/unicase/u8-tolower: New file.
40492
40493         Tests for module 'unicase/u32-toupper'.
40494         * modules/unicase/u32-toupper-tests: New file.
40495         * tests/unicase/test-u32-toupper.c: New file.
40496
40497         Tests for module 'unicase/u16-toupper'.
40498         * modules/unicase/u16-toupper-tests: New file.
40499         * tests/unicase/test-u16-toupper.c: New file.
40500
40501         Tests for module 'unicase/u8-toupper'.
40502         * modules/unicase/u8-toupper-tests: New file.
40503         * tests/unicase/test-u8-toupper.c: New file.
40504
40505         New module 'unicase/u32-toupper'.
40506         * lib/unicase/u32-toupper.c: New file.
40507         * modules/unicase/u32-toupper: New file.
40508
40509         New module 'unicase/u16-toupper'.
40510         * lib/unicase/u16-toupper.c: New file.
40511         * modules/unicase/u16-toupper: New file.
40512
40513         New module 'unicase/u8-toupper'.
40514         * lib/unicase/u8-toupper.c: New file.
40515         * modules/unicase/u8-toupper: New file.
40516
40517         New module 'unicase/u32-casemap'.
40518         * lib/unicase/u32-casemap.c: New file.
40519         * modules/unicase/u32-casemap: New file.
40520
40521         New module 'unicase/u16-casemap'.
40522         * lib/unicase/u16-casemap.c: New file.
40523         * modules/unicase/u16-casemap: New file.
40524
40525         New module 'unicase/u8-casemap'.
40526         * lib/unicase/unicasemap.h: New file.
40527         * lib/unicase/u8-casemap.c: New file.
40528         * lib/unicase/u-casemap.h: New file.
40529         * modules/unicase/u8-casemap: New file.
40530
40531         New module 'unicase/special-casing'.
40532         * lib/unicase/special-casing.h: New file.
40533         * lib/unicase/special-casing.c: New file.
40534         * lib/unicase/special-casing-table.gperf: New file, generated by
40535         gen-uni-tables.c.
40536         * modules/unicase/special-casing: New file.
40537
40538         Tests for module 'unicase/locale-language'.
40539         * modules/unicase/locale-language-tests: New file.
40540         * tests/unicase/test-locale-language.sh: New file.
40541         * tests/unicase/test-locale-language.c: New file.
40542
40543         New module 'unicase/locale-language'.
40544         * lib/unicase/locale-language.c: New file.
40545         * lib/unicase/locale-languages.gperf: New file.
40546         * modules/unicase/locale-language: New file.
40547
40548         Generate more tables for case conversion and case folding.
40549         * lib/gen-uni-tables.c (SCC_*): New enum items.
40550         (struct special_casing_rule): New type.
40551         (casing_rules, num_casing_rules, allocated_casing_rules): New
40552         variables.
40553         (add_casing_rule, fill_casing_rules): New functions.
40554         (struct casefold_rule): New type.
40555         (casefolding_rules, num_casefolding_rules,
40556         allocated_casefolding_rules): New variables.
40557         (fill_casefolding_rules): New function.
40558         (unicode_casefold): New variable.
40559         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
40560         sort_casing_rules, output_casing_rules): New functions.
40561         (main): Accept to more arguments: SpecialCasing.txt and
40562         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
40563         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
40564         Output mapping for casefolding.
40565
40566         * lib/unicase.h: Include stdbool.h, uninorm.h.
40567         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
40568         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
40569         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
40570         arguments.
40571         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
40572         resultp arguments.
40573         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
40574         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
40575         resultp arguments.
40576         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
40577         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
40578         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
40579         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
40580         declarations.
40581         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
40582
40583 2009-03-08  Bruno Haible  <bruno@clisp.org>
40584
40585         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40586         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
40587         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
40588         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40589
40590 2009-03-07  Bruno Haible  <bruno@clisp.org>
40591
40592         Adjust u*_normcmp, u*_normcoll API.
40593         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40594         u16_normcoll, u32_normcoll): Change failure conventions.
40595         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
40596         errno and return -1.
40597         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40598
40599 2009-03-07  Bruno Haible  <bruno@clisp.org>
40600
40601         Tests for module 'uninorm/u32-normcoll'.
40602         * modules/uninorm/u32-normcoll-tests: New file.
40603         * tests/uninorm/test-u32-normcoll.c: New file.
40604
40605         Tests for module 'uninorm/u16-normcoll'.
40606         * modules/uninorm/u16-normcoll-tests: New file.
40607         * tests/uninorm/test-u16-normcoll.c: New file.
40608
40609         Tests for module 'uninorm/u8-normcoll'.
40610         * modules/uninorm/u8-normcoll-tests: New file.
40611         * tests/uninorm/test-u8-normcoll.c: New file.
40612
40613 2009-03-07  Bruno Haible  <bruno@clisp.org>
40614
40615         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
40616         tests/uninorm/test-u32-normcmp.c.
40617         * tests/uninorm/test-u32-normcmp.c: Include it.
40618         (test_nonascii): New function, extracted from main. Add some more
40619         tests.
40620         (main): Invoke test_ascii and test_nonascii.
40621         * modules/uninorm/u32-normcmp-tests (Files): Add
40622         tests/uninorm/test-u32-normcmp.h.
40623         (Depends-on): Remove uninorm/u32-normcmp.
40624
40625         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
40626         tests/uninorm/test-u16-normcmp.c.
40627         * tests/uninorm/test-u16-normcmp.c: Include it.
40628         (test_nonascii): New function, extracted from main. Add some more
40629         tests.
40630         (main): Invoke test_ascii and test_nonascii.
40631         * modules/uninorm/u16-normcmp-tests (Files): Add
40632         tests/uninorm/test-u16-normcmp.h.
40633         (Depends-on): Remove uninorm/u16-normcmp.
40634
40635         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
40636         tests/uninorm/test-u8-normcmp.c.
40637         * tests/uninorm/test-u8-normcmp.c: Include it.
40638         (test_nonascii): New function, extracted from main. Add some more
40639         tests.
40640         (main): Invoke test_ascii and test_nonascii.
40641         * modules/uninorm/u8-normcmp-tests (Files): Add
40642         tests/uninorm/test-u8-normcmp.h.
40643         (Depends-on): Remove uninorm/u8-normcmp.
40644
40645 2009-03-07  Bruno Haible  <bruno@clisp.org>
40646
40647         New module 'uninorm/u32-normcoll'.
40648         * lib/uninorm/u32-normcoll.c: New file.
40649         * modules/uninorm/u32-normcoll: New file.
40650
40651         New module 'uninorm/u16-normcoll'.
40652         * lib/uninorm/u16-normcoll.c: New file.
40653         * modules/uninorm/u16-normcoll: New file.
40654
40655         New module 'uninorm/u8-normcoll'.
40656         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
40657         declarations.
40658         * lib/uninorm/u8-normcoll.c: New file.
40659         * lib/uninorm/u-normcoll.h: New file.
40660         * modules/uninorm/u8-normcoll: New file.
40661
40662         New module 'uninorm/u32-normxfrm'.
40663         * lib/uninorm/u32-normxfrm.c: New file.
40664         * modules/uninorm/u32-normxfrm: New file.
40665
40666         New module 'uninorm/u16-normxfrm'.
40667         * lib/uninorm/u16-normxfrm.c: New file.
40668         * modules/uninorm/u16-normxfrm: New file.
40669
40670         New module 'uninorm/u8-normxfrm'.
40671         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
40672         declarations.
40673         * lib/uninorm/u8-normxfrm.c: New file.
40674         * lib/uninorm/u-normxfrm.h: New file.
40675         * modules/uninorm/u8-normxfrm: New file.
40676
40677 2009-03-07  Bruno Haible  <bruno@clisp.org>
40678
40679         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
40680         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
40681         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
40682
40683 2009-03-07  Bruno Haible  <bruno@clisp.org>
40684
40685         New module 'memxfrm'.
40686         * lib/memxfrm.h: New file.
40687         * lib/memxfrm.c: New file.
40688         * modules/memxfrm: New file.
40689
40690 2009-03-07  Bruno Haible  <bruno@clisp.org>
40691
40692         New module 'memcmp2'.
40693         * lib/memcmp2.h: New file.
40694         * lib/memcmp2.c: New file.
40695         * modules/memcmp2: New file.
40696
40697 2009-03-07  Bruno Haible  <bruno@clisp.org>
40698
40699         Tests for module 'uninorm/decomposing-form'.
40700         * modules/uninorm/decomposing-form-tests: New file.
40701         * tests/uninorm/test-decomposing-form.c: New file.
40702
40703         New module 'uninorm/decomposing-form'.
40704         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
40705         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
40706         Add 'decomposing_variant' field.
40707         * lib/uninorm/decomposing-form.c: New file.
40708         * lib/uninorm/nfc.c (uninorm_nfc): Update.
40709         * lib/uninorm/nfd.c (uninorm_nfd): Update.
40710         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
40711         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
40712         * modules/uninorm/decomposing-form: New file.
40713         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
40714         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
40715
40716 2009-03-07  Bruno Haible  <bruno@clisp.org>
40717
40718         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
40719         strings.
40720
40721 2009-03-06  Bruno Haible  <bruno@clisp.org>
40722
40723         Tests for module 'uninorm/u32-normcmp'.
40724         * tests/uninorm/test-u32-normcmp.c: New file.
40725         * modules/uninorm/u32-normcmp-tests: New file.
40726
40727         Tests for module 'uninorm/u16-normcmp'.
40728         * tests/uninorm/test-u16-normcmp.c: New file.
40729         * modules/uninorm/u16-normcmp-tests: New file.
40730
40731         Tests for module 'uninorm/u8-normcmp'.
40732         * tests/uninorm/test-u8-normcmp.c: New file.
40733         * modules/uninorm/u8-normcmp-tests: New file.
40734
40735         New module 'uninorm/u32-normcmp'.
40736         * lib/uninorm/u32-normcmp.c: New file.
40737         * modules/uninorm/u32-normcmp: New file.
40738
40739         New module 'uninorm/u16-normcmp'.
40740         * lib/uninorm/u16-normcmp.c: New file.
40741         * modules/uninorm/u16-normcmp: New file.
40742
40743         New module 'uninorm/u8-normcmp'.
40744         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
40745         declarations.
40746         * lib/uninorm/u8-normcmp.c: New file.
40747         * lib/uninorm/u-normcmp.h: New file.
40748         * modules/uninorm/u8-normcmp: New file.
40749
40750 2009-03-06  Bruno Haible  <bruno@clisp.org>
40751
40752         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
40753         Reported by Eric Blake.
40754
40755 2009-03-06  Eric Blake  <ebb9@byu.net>
40756             Bruno Haible  <bruno@clisp.org>
40757
40758         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
40759         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
40760         condition.
40761         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40762         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
40763         condition.
40764         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40765
40766 2009-03-06  Eric Blake  <ebb9@byu.net>
40767
40768         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
40769         to avoid compiler warnings.
40770         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
40771
40772 2009-03-05  Bruno Haible  <bruno@clisp.org>
40773
40774         * tests/test-ftell.c (main): Disable test beyond end of file on
40775         FreeMiNT.
40776         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40777
40778 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
40779
40780         * lib/filevercmp.c: Move hidden files up in ordering.
40781         * tests/test-filevercmp.c: Add tests for hidden files.
40782
40783 2009-03-04  Bruno Haible  <bruno@clisp.org>
40784
40785         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
40786         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
40787         AM_CFLAGS.
40788         Reported by Simon Josefsson.
40789
40790 2009-03-03  Bruno Haible  <bruno@clisp.org>
40791
40792         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
40793         Reported by Simon Josefsson.
40794
40795         * doc/ld-version-script.texi: Update node reference.
40796
40797 2009-03-03  Bruno Haible  <bruno@clisp.org>
40798
40799         * modules/visibility (License): Change to 'unlimited'.
40800         Suggested by Simon Josefsson.
40801
40802 2009-03-03  Jim Meyering  <meyering@redhat.com>
40803
40804         unlinkdir: cannot_unlink_dir may modify process state
40805         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
40806         it's neither thread-safe nor appropriate for use in a library.
40807
40808 2009-03-03  Eric Blake  <ebb9@byu.net>
40809
40810         test-closein: silence test under Darwin
40811         * tests/test-closein.sh: Ignore stderr from cat, since we don't
40812         care if it dies from EPIPE or EBADF.
40813
40814 2009-03-03  Bruno Haible  <bruno@clisp.org>
40815
40816         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
40817         earlier.
40818         * doc/visibility.texi: Fix @node and @section.
40819
40820 2009-03-03  Simon Josefsson  <simon@josefsson.org>
40821
40822         * doc/gnulib.texi: Link to sections for ld version script and
40823         visibility.
40824         * doc/visibility.texi: Add @node and @section.
40825         * modules/ld-version-script: New module.
40826         * m4/ld-version-script.m4: New file.
40827         * doc/ld-version-script.texi: New file.
40828
40829 2009-03-02  David Lutterkort  <lutter@redhat.com>
40830
40831         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
40832         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40833
40834 2009-03-02  Bruno Haible  <bruno@clisp.org>
40835
40836         * doc/visibility.texi: Mention libtool's -export-symbols option.
40837
40838 2009-03-02  Jim Meyering  <meyering@redhat.com>
40839
40840         announce-gen: new option: --no-print-checksums
40841         * build-aux/announce-gen (usage): Describe it.
40842         (print_checksums): Print a newline here, not in the [*] footnote.
40843         (main): Honor it.
40844
40845 2009-03-01  Bruno Haible  <bruno@clisp.org>
40846
40847         Use socklen_t in the native Windows replacements prototypes.
40848         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
40849         instead of 'int'.
40850         * lib/getsockopt.c (rpl_getsockopt): Likewise.
40851         * lib/setsockopt.c (rpl_setsockopt): Likewise.
40852         * modules/getsockopt (Depends-on): Add socklen.
40853         * modules/setsockopt (Depends-on): Add socklen.
40854
40855 2009-03-01  Bruno Haible  <bruno@clisp.org>
40856
40857         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
40858         least 4.2.
40859
40860 2009-03-01  Eric Blake  <ebb9@byu.net>
40861             Bruno Haible  <bruno@clisp.org>
40862
40863         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
40864         error messages.
40865         * lib/wait-process.c (wait_subprocess): Omit error message about
40866         deadly signal sent to the child of termsigp != NULL.
40867
40868 2009-03-01  Eric Blake  <ebb9@byu.net>
40869
40870         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
40871
40872 2009-03-01  Bruno Haible  <bruno@clisp.org>
40873
40874         Avoid a gcc warning.
40875         * tests/test-sched.c (b): Make global.
40876         Reported by Eric Blake.
40877
40878 2009-01-19  Martin Lambers  <marlam@marlam.de>
40879
40880         Provide POSIX semantics for socket timeout options on W32.
40881         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
40882         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
40883         * modules/setsockopt: Depend on sys_time module for struct timeval.
40884         * modules/getsockopt: Depend on sys_time module for struct timeval.
40885
40886 2009-03-01  Simon Josefsson  <simon@josefsson.org>
40887
40888         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
40889         __USE_GNU, for consistency with netdb.in.h.
40890         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40891
40892 2009-03-01  Bruno Haible  <bruno@clisp.org>
40893
40894         More support for FreeMiNT.
40895         * lib/fseeko.c (rpl_fseeko): Complete last commit.
40896         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40897
40898 2009-03-01  Bruno Haible  <bruno@clisp.org>
40899
40900         More support for FreeMiNT.
40901         * lib/fpurge.c (fpurge): Correct last commit.
40902         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40903
40904 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40905
40906         Fix unportable awk script in vc-list-files.
40907         * build-aux/vc-list-files: In the replacement awk script, use
40908         substr with a second argument of 1, not zero.
40909         Report by Simon Josefsson.
40910
40911 2009-02-28  Bruno Haible  <bruno@clisp.org>
40912
40913         More support for FreeMiNT.
40914         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
40915         to FreeMiNT today.
40916         * lib/fwriting.c (fwriting): Likewise.
40917         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
40918
40919 2009-02-28  Bruno Haible  <bruno@clisp.org>
40920
40921         * tests/test-freadseek.c (main): Disable test beyond end of file on
40922         FreeMiNT.
40923         * tests/test-ftello.c (main): Likewise.
40924         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40925
40926 2009-02-28  Bruno Haible  <bruno@clisp.org>
40927
40928         Add tentative support for FreeMiNT.
40929         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
40930         * lib/fpurge.c (fpurge): Likewise.
40931         * lib/freadable.c (freadable): Likewise.
40932         * lib/freading.c (freading): Likewise.
40933         * lib/freadptr.c (freadptr): Likewise.
40934         * lib/freadseek.c (freadptrinc): Likewise.
40935         * lib/fseeko.c (rpl_fseeko): Likewise.
40936         * lib/fseterr.c (fseterr): Likewise.
40937         * lib/fwritable.c (fwritable): Likewise.
40938         * lib/fwriting.c (fwriting): Likewise.
40939         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
40940         Hourihane.
40941         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40942
40943 2009-02-28  Bruno Haible  <bruno@clisp.org>
40944
40945         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
40946         SIGCHLD.
40947         Reported by Jim Meyering.
40948
40949 2009-02-28  Bruno Haible  <bruno@clisp.org>
40950
40951         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
40952         Mention the results of these tests on various platforms.
40953         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
40954         order.
40955         * doc/posix-functions/printf.texi: Likewise.
40956         * doc/posix-functions/snprintf.texi: Likewise.
40957         * doc/posix-functions/sprintf.texi: Likewise.
40958         * doc/posix-functions/vfprintf.texi: Likewise.
40959         * doc/posix-functions/vprintf.texi: Likewise.
40960         * doc/posix-functions/vsnprintf.texi: Likewise.
40961         * doc/posix-functions/vsprintf.texi: Likewise.
40962         * doc/glibc-functions/obstack_printf.texi: Likewise.
40963         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
40964
40965 2009-02-28  Bruno Haible  <bruno@clisp.org>
40966
40967         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
40968         Reported by Loïc Minier <lool@dooz.org>.
40969
40970 2009-02-27  Bruno Haible  <bruno@clisp.org>
40971
40972         * gnulib-tool (func_import): Make the sed expression used to create the
40973         sed script for updating the .gitignore file POSIX compliant.
40974         Reported by Eric Blake.
40975
40976 2009-02-27  Bruno Haible  <bruno@clisp.org>
40977
40978         * gnulib-tool (sed): Don't alias as "sed --posix".
40979         Reported by Eric Blake.
40980
40981 2009-02-27  Bruno Haible  <bruno@clisp.org>
40982
40983         Avoid test link errors.
40984         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
40985         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
40986         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
40987         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
40988         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40989
40990 2009-02-27  Bruno Haible  <bruno@clisp.org>
40991
40992         Avoid spurious "(cached)" in configure output.
40993         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
40994         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
40995         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
40996         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
40997         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
40998         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
40999         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
41000         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
41001         Reported by Eric Blake.
41002
41003 2009-02-27  Eric Blake  <ebb9@byu.net>
41004
41005         printf: fix regression in previous patch
41006         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
41007
41008 2009-02-27  Bruno Haible  <bruno@clisp.org>
41009
41010         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
41011         value.
41012         * lib/stdint.in.h: Likewise.
41013         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
41014
41015 2009-02-27  Eric Blake  <ebb9@byu.net>
41016
41017         doc: mention more functions added in cygwin 1.7.0
41018         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
41019         addition.
41020         * doc/posix-functions/open_wmemstream.texi: Likewise.
41021         * doc/posix-functions/wcsnlen.texi: Likewise.
41022         * doc/posix-functions/wcsnrtombs.texi: Likewise.
41023         * doc/posix-functions/wcstod.texi: Likewise.
41024         * doc/posix-functions/wcstof.texi: Likewise.
41025         * doc/posix-functions/wcstoimax.texi: Likewise.
41026         * doc/posix-functions/wcstok.texi: Likewise.
41027         * doc/posix-functions/wcstoumax.texi: Likewise.
41028
41029         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
41030         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
41031         * doc/posix-functions/fprintf.texi: Update.
41032         * doc/posix-functions/printf.texi: Update.
41033         * doc/posix-functions/snprintf.texi: Update.
41034         * doc/posix-functions/sprintf.texi: Update.
41035         * doc/posix-functions/vfprintf.texi: Update.
41036         * doc/posix-functions/vprintf.texi: Update.
41037         * doc/posix-functions/vsnprintf.texi: Update.
41038         * doc/posix-functions/vsprintf.texi: Update.
41039         * doc/glibc-functions/obstack_printf.texi: Update.
41040         * doc/glibc-functions/obstack_vprintf.texi: Update.
41041
41042 2009-02-26  Eric Blake  <ebb9@byu.net>
41043
41044         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
41045         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
41046         compilation bug by using runtime conversion.
41047         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
41048         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
41049         * modules/ceill-tests (Files): Use nan.h.
41050         * modules/floorl-tests (Files): Likewise.
41051         * modules/frexpl-tests (Files): Likewise.
41052         * modules/isnanl-tests (Files): Likewise.
41053         * modules/ldexpl-tests (Files): Likewise.
41054         * modules/roundl-tests (Files): Likewise.
41055         * modules/truncl-tests (Files): Likewise.
41056         * tests/test-ceill.c (main): Use a working NaN.
41057         * tests/test-floorl.c (main): Likewise.
41058         * tests/test-frexpl.c (main): Likewise.
41059         * tests/test-isnan.c (test_long_double): Likewise.
41060         * tests/test-isnanl.h (main): Likewise.
41061         * tests/test-ldexpl.h (main): Likewise.
41062         * tests/test-roundl.h (main): Likewise.
41063         * tests/test-truncl.h (main): Likewise.
41064         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
41065
41066 2009-02-26  Eric Blake  <ebb9@byu.net>
41067             Bruno Haible  <bruno@clisp.org>
41068
41069         Work around a *printf bug with %ls on Solaris.
41070         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
41071         precision is specified, sprintf stops converting the wide string
41072         argument when the number of bytes that have been produced by this
41073         conversion equals or exceeds the precision.
41074         * doc/posix-functions/fprintf.texi: Update.
41075         * doc/posix-functions/printf.texi: Update.
41076         * doc/posix-functions/snprintf.texi: Update.
41077         * doc/posix-functions/sprintf.texi: Update.
41078         * doc/posix-functions/vfprintf.texi: Update.
41079         * doc/posix-functions/vprintf.texi: Update.
41080         * doc/posix-functions/vsnprintf.texi: Update.
41081         * doc/posix-functions/vsprintf.texi: Update.
41082         * doc/glibc-functions/obstack_printf.texi: Update.
41083         * doc/glibc-functions/obstack_vprintf.texi: Update.
41084
41085 2009-02-26  Eric Blake  <ebb9@byu.net>
41086
41087         stdlib: favor compiler check of random.h
41088         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
41089         to avoid an ObjC random.h installed by Swarm.
41090
41091 2009-02-26  Bruno Haible  <bruno@clisp.org>
41092
41093         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
41094         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
41095         Reported by Gary V. Vaughan <gary@gnu.org>.
41096
41097 2009-02-26  Bruno Haible  <bruno@clisp.org>
41098
41099         Fix *printf behaviour regarding the %ls directive.
41100         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
41101         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
41102         NEED_PRINTF_DIRECTIVE_LS.
41103         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
41104         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41105         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41106         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
41107         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
41108         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
41109         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
41110         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41111         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41112         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41113         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41114         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
41115         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41116         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41117         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41118         * doc/posix-functions/fprintf.texi: Update.
41119         * doc/posix-functions/printf.texi: Update.
41120         * doc/posix-functions/snprintf.texi: Update.
41121         * doc/posix-functions/sprintf.texi: Update.
41122         * doc/posix-functions/vfprintf.texi: Update.
41123         * doc/posix-functions/vprintf.texi: Update.
41124         * doc/posix-functions/vsnprintf.texi: Update.
41125         * doc/posix-functions/vsprintf.texi: Update.
41126         * doc/glibc-functions/obstack_printf.texi: Update.
41127         * doc/glibc-functions/obstack_vprintf.texi: Update.
41128         Reported by Eric Blake.
41129
41130 2009-02-25  Bruno Haible  <bruno@clisp.org>
41131
41132         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
41133         with known value.
41134         Reported by Gary V. Vaughan <gary@gnu.org>.
41135
41136 2009-02-25  Bruno Haible  <bruno@clisp.org>
41137
41138         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
41139         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
41140         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
41141         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
41142         Reported by Gary V. Vaughan <gary@gnu.org>.
41143
41144 2009-02-25  Bruno Haible  <bruno@clisp.org>
41145
41146         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
41147         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
41148         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
41149         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
41150         Reported by Gary V. Vaughan <gary@gnu.org>.
41151
41152 2009-02-25  Eric Blake  <ebb9@byu.net>
41153
41154         tests: skip fseek/ftell tests if ungetc is broken
41155         * m4/ungetc.m4: New file.
41156         * modules/fseek-tests: Split test, so ungetc dependency is
41157         separate from rest of test.
41158         * modules/fseeko-tests: Likewise.
41159         * modules/ftell-tests: Likewise.
41160         * modules/ftello-tests: Likewise.
41161         * tests/test-fseek.c (main): Isolate ungetc dependency.
41162         * tests/test-fseeko.c (main): Likewise.
41163         * tests/test-ftell.c (main): Likewise.
41164         * tests/test-ftello.c (main): Likewise.
41165         * tests/test-fseek2.sh: New file.
41166         * tests/test-fseeko2.sh: Likewise.
41167         * tests/test-ftell2.sh: Likewise.
41168         * tests/test-ftello2.sh: Likewise.
41169
41170 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
41171
41172         test-getaddrinfo: fix usage of skip return code 77
41173         * tests/test-gettaddrinfo.c: Return skip code 77 only
41174         for first occurance of skip (4x77 is not 77)
41175
41176 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
41177
41178         strtod: avoid C99 decl-after-statement
41179         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
41180
41181 2009-02-24  Eric Blake  <ebb9@byu.net>
41182
41183         strtod: detect HP-UX 11.31 bug
41184         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
41185         Reported by Gary V. Vaughan.
41186
41187 2009-02-23  Bruno Haible  <bruno@clisp.org>
41188
41189         Fix invalid read past end of memory block.
41190         * lib/vasnprintf.c (DCHAR_SET): Define.
41191         (local_wcslen): Define only when needed.
41192         (local_strnlen, local_wcsnlen): New functions.
41193         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
41194         directives that involve a conversion ourselves.
41195         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
41196         wcsnlen, mbrtowc, wcrtomb.
41197         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
41198         * tests/test-vasprintf-posix.c (test_function): Likewise.
41199         * tests/test-snprintf-posix.h (test_function): Likewise.
41200         * tests/test-sprintf-posix.h (test_function): Likewise.
41201         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41202
41203 2009-02-22  Bruno Haible  <bruno@clisp.org>
41204
41205         Implement new clarified decomposition of Hangul syllables.
41206         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
41207         of type LTV, return only a pairwise decomposition.
41208         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
41209         Likewise.
41210         * tests/uninorm/test-decomposition.c (main): Updated expected result.
41211         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
41212         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
41213
41214 2009-02-22  Bruno Haible  <bruno@clisp.org>
41215
41216         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
41217         zero-length results and shrink excess allocated memory.
41218         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
41219         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
41220         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
41221         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
41222         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
41223         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
41224         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
41225         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
41226         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
41227         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
41228         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
41229         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
41230
41231 2009-02-21  Bruno Haible  <bruno@clisp.org>
41232
41233         * doc/gnulib.texi: Include safe-alloc.texi earlier.
41234         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
41235         spaces after a period. Put a space between a macro name and its
41236         argument list. Trivial rewordings.
41237         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
41238         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
41239         (main): Return 0 explicitly.
41240
41241 2009-02-21  Bruno Haible  <bruno@clisp.org>
41242
41243         Tests for module 'uninorm/filter'.
41244         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
41245         * modules/uninorm/filter-tests: New file.
41246
41247         New module 'uninorm/filter'.
41248         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
41249         uninorm_filter_flush, uninorm_filter_free): New declarations.
41250         * lib/uninorm/uninorm-filter.c: New file.
41251         * modules/uninorm/filter: New file.
41252
41253 2009-02-21  Bruno Haible  <bruno@clisp.org>
41254
41255         Tests for module 'uninorm/nfkc'.
41256         * tests/uninorm/test-nfkc.c: New file.
41257         * tests/uninorm/test-u8-nfkc.c: New file.
41258         * tests/uninorm/test-u16-nfkc.c: New file.
41259         * tests/uninorm/test-u32-nfkc.c: New file.
41260         * tests/uninorm/test-u32-nfkc-big.sh: New file.
41261         * tests/uninorm/test-u32-nfkc-big.c: New file.
41262         * modules/uninorm/nfkc-tests: New file.
41263
41264         New module 'uninorm/nfkc'.
41265         * lib/uninorm/nfkc.c: New file.
41266         * modules/uninorm/nfkc: New file.
41267
41268         Tests for module 'uninorm/nfkd'.
41269         * tests/uninorm/test-nfkd.c: New file.
41270         * tests/uninorm/test-u8-nfkd.c: New file.
41271         * tests/uninorm/test-u16-nfkd.c: New file.
41272         * tests/uninorm/test-u32-nfkd.c: New file.
41273         * tests/uninorm/test-u32-nfkd-big.sh: New file.
41274         * tests/uninorm/test-u32-nfkd-big.c: New file.
41275         * modules/uninorm/nfkd-tests: New file.
41276
41277         New module 'uninorm/nfkd'.
41278         * lib/uninorm/nfkd.c: New file.
41279         * modules/uninorm/nfkd: New file.
41280
41281         Tests for module 'uninorm/nfc'.
41282         * tests/uninorm/test-nfc.c: New file.
41283         * tests/uninorm/test-u8-nfc.c: New file.
41284         * tests/uninorm/test-u16-nfc.c: New file.
41285         * tests/uninorm/test-u32-nfc.c: New file.
41286         * tests/uninorm/test-u32-nfc-big.sh: New file.
41287         * tests/uninorm/test-u32-nfc-big.c: New file.
41288         * modules/uninorm/nfc-tests: New file.
41289
41290         New module 'uninorm/nfc'.
41291         * lib/uninorm/nfc.c: New file.
41292         * modules/uninorm/nfc: New file.
41293
41294         Tests for module 'uninorm/nfd'.
41295         * tests/uninorm/test-nfd.c: New file.
41296         * tests/uninorm/test-u8-nfd.c: New file.
41297         * tests/uninorm/test-u16-nfd.c: New file.
41298         * tests/uninorm/test-u32-nfd.c: New file.
41299         * tests/uninorm/test-u32-nfd-big.sh: New file.
41300         * tests/uninorm/test-u32-nfd-big.c: New file.
41301         * tests/uninorm/test-u32-normalize-big.h: New file.
41302         * tests/uninorm/test-u32-normalize-big.c: New file.
41303         * tests/uninorm/NormalizationTest.txt: New file, created from
41304         Unicode 5.1.0 NormalizationTest.txt.
41305         * modules/uninorm/nfd-tests: New file.
41306
41307         New module 'uninorm/nfd'.
41308         * lib/uninorm/nfd.c: New file.
41309         * modules/uninorm/nfd: New file.
41310
41311         New module 'uninorm/u32-normalize'.
41312         * lib/uninorm/u32-normalize.c: New file.
41313         * modules/uninorm/u32-normalize: New file.
41314
41315         New module 'uninorm/u16-normalize'.
41316         * lib/uninorm/u16-normalize.c: New file.
41317         * modules/uninorm/u16-normalize: New file.
41318
41319         New module 'uninorm/u8-normalize'.
41320         * lib/uninorm/u8-normalize.c: New file.
41321         * lib/uninorm/normalize-internal.h: New file.
41322         * lib/uninorm/u-normalize-internal.h: New file.
41323         * modules/uninorm/u8-normalize: New file.
41324
41325         New module 'uninorm/decompose-internal'.
41326         * lib/uninorm/decompose-internal.c: New file.
41327         * modules/uninorm/decompose-internal: New file.
41328
41329         Tests for module 'uninorm/composition'.
41330         * tests/uninorm/test-composition.c: New file.
41331         * modules/uninorm/composition-tests: New file.
41332
41333         New module 'uninorm/composition'.
41334         * lib/uninorm/composition.c: New file.
41335         * lib/uninorm/composition-table.gperf: New file, generated by
41336         gen-uni-tables.
41337         * modules/uninorm/composition: New file.
41338
41339         Tests for module 'uninorm/compat-decomposition'.
41340         * tests/uninorm/test-compat-decomposition.c: New file.
41341         * modules/uninorm/compat-decomposition-tests: New file.
41342
41343         New module 'uninorm/compat-decomposition'.
41344         * lib/uninorm/decompose-internal.h: New file.
41345         * lib/uninorm/compat-decomposition.c: New file.
41346         * modules/uninorm/compat-decomposition: New file.
41347
41348         Tests for module 'uninorm/canonical-decomposition'.
41349         * tests/uninorm/test-canonical-decomposition.c: New file.
41350         * modules/uninorm/canonical-decomposition-tests: New file.
41351
41352         New module 'uninorm/canonical-decomposition'.
41353         * lib/uninorm/canonical-decomposition.c: New file.
41354         * modules/uninorm/canonical-decomposition: New file.
41355
41356         Tests for module 'uninorm/decomposition'.
41357         * tests/uninorm/test-decomposition.c: New file.
41358         * modules/uninorm/decomposition-tests: New file.
41359
41360         New module 'uninorm/decomposition'.
41361         * lib/uninorm/decomposition.c: New file.
41362         * modules/uninorm/decomposition: New file.
41363
41364         New module 'uninorm/decomposition-table'.
41365         * lib/uninorm/decomposition-table.h: New file.
41366         * lib/uninorm/decomposition-table.c: New file.
41367         * lib/uninorm/decomposition-table1.h: New file, generated by
41368         gen-uni-tables.
41369         * lib/uninorm/decomposition-table2.h: New file, generated by
41370         gen-uni-tables.
41371         * modules/uninorm/decomposition-table: New file.
41372
41373         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
41374         (UC_DECOMP_*): New enumeration items.
41375         (get_decomposition): New function.
41376         (struct decomp_table): New type.
41377         (output_decomposition, output_decomposition_tables): New functions.
41378         (unicode_composition_exclusions): New variable.
41379         (fill_composition_exclusions, debug_output_composition_tables): New
41380         functions.
41381         (main): Accept one more argument. Invoke fill_composition_exclusions.
41382         Output decomposition and composition tables.
41383
41384         New module 'uninorm/base'.
41385         * lib/uninorm.h: New file.
41386         * lib/unictype.h: Update comment.
41387         * modules/uninorm/base: New file.
41388
41389 2009-02-21  David Lutterkort  <lutter@redhat.com>
41390
41391         Tests for module 'safe-alloc'.
41392         * tests/test-safe-alloc.c: New file.
41393         * modules/safe-alloc-tests: New file.
41394
41395         New module 'safe-alloc'.
41396         * lib/safe-alloc.h: New file.
41397         * lib/safe-alloc.c: New file.
41398         * m4/safe-alloc.m4: New file.
41399         * modules/safe-alloc: New file.
41400         * doc/safe-alloc.texi: New file.
41401         * doc/gnulib.texi: Include it.
41402         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
41403         safe-alloc.
41404
41405 2009-02-18  Bruno Haible  <bruno@clisp.org>
41406
41407         Fix link error on non-glibc systems.
41408         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
41409         variable.
41410         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41411
41412 2009-02-18  Jim Meyering  <meyering@redhat.com>
41413
41414         fts: avoid used-uninitialized error due to recent change
41415         * lib/fts.c (fts_read): Guard uses of the new member,
41416         parent->fts_n_dirs_remaining, since it's not relevant for
41417         the parent of a directory specified on the command-line.
41418
41419 2009-02-17  James Youngman  <jay@gnu.org>
41420             Bruno Haible  <bruno@clisp.org>
41421
41422         * m4/include_next.m4: Reformulate comment.
41423
41424 2009-02-16  Jim Meyering  <meyering@redhat.com>
41425
41426         fts: add #if guards so that the fts_lgpl module still builds
41427         * lib/fts.c: Guard just-added hash-table-using parts with
41428         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
41429         Reported by Simon Josefsson.
41430
41431 2009-02-15  Bruno Haible  <bruno@clisp.org>
41432
41433         * modules/array-mergesort-tests: New file.
41434         * tests/test-array-mergesort.c: New file.
41435
41436         New module 'array-mergesort'.
41437         * modules/array-mergesort: New file.
41438         * lib/array-mergesort.h: New file.
41439
41440 2009-02-15  Bruno Haible  <bruno@clisp.org>
41441
41442         Fix 2009-02-07 commit.
41443         * lib/gen-uni-tables.c (output_predicate, output_category,
41444         output_combclass, output_bidi_category, output_decimal_digit,
41445         output_digit, output_numeric, output_mirror, output_scripts,
41446         output_ident_category, output_simple_mapping): Fix format directives.
41447         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
41448
41449 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
41450
41451         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
41452         fixes are available from IBM.
41453
41454 2009-02-13  Jim Meyering  <meyering@redhat.com>
41455
41456         fts: arrange not to stat non-directories in more cases
41457         This makes GNU find (when it doesn't need to stat each file)
41458         *much* more efficient at traversing reiserfs file systems.
41459         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
41460         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
41461         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
41462         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
41463         (leaf_optimization_applies): New function.
41464         (LCO_hash, LCO_compare): New helper functions.
41465         (link_count_optimize_ok): New function.
41466         (fts_stat): Initialize new member (if dir).
41467         (fts_read): Decrement parent's fts_n_dirs_remaining count if
41468         we've just stat'ed a directory.  Skip the stat call when possible.
41469         ---
41470         Note this AFS-related exchange:
41471         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
41472         and note find's pioctl call in find/fstype.c.
41473         But that is necessary only if you want to enable the
41474         optimization for AFS, and for now, I don't.
41475
41476         fts: move a function definition "up" (no semantic change)
41477         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
41478         "up" to precede upcoming use of a related function.
41479
41480 2009-02-11  Jim Meyering  <meyering@redhat.com>
41481
41482         fts: correct internal computation of nlinks (optimization-related)
41483         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
41484         whether the current entry is a directory, so don't test it.
41485
41486 2009-02-10  Bruno Haible  <bruno@clisp.org>
41487
41488         Tests for module 'uniwbrk/ulc-wordbreaks'.
41489         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
41490         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
41491         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
41492
41493         Tests for module 'uniwbrk/u32-wordbreaks'.
41494         * modules/uniwbrk/u32-wordbreaks-tests: New file.
41495         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
41496
41497         Tests for module 'uniwbrk/u16-wordbreaks'.
41498         * modules/uniwbrk/u16-wordbreaks-tests: New file.
41499         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
41500
41501         Tests for module 'uniwbrk/u8-wordbreaks'.
41502         * modules/uniwbrk/u8-wordbreaks-tests: New file.
41503         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
41504
41505 2009-02-10  Bruno Haible  <bruno@clisp.org>
41506
41507         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
41508         property.
41509         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
41510         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
41511         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
41512
41513 2009-02-10  Simon Josefsson  <simon@josefsson.org>
41514
41515         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
41516         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
41517
41518 2009-02-10  Bruno Haible  <bruno@clisp.org>
41519
41520         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
41521         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
41522         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
41523         * lib/unilbrk/u8-possible-linebreaks.c: Update.
41524         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
41525         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
41526
41527 2009-02-09  Simon Josefsson  <simon@josefsson.org>
41528
41529         * lib/sockets.h (gl_fd_to_handle): New function.
41530
41531         * tests/test-sockets.c: Call gl_fd_to_handle.
41532
41533 2009-02-09  Bruno Haible  <bruno@clisp.org>
41534
41535         * doc/havelib.texi: Document the conventions on bi-arch systems.
41536
41537 2009-02-08  Bruno Haible  <bruno@clisp.org>
41538
41539         Document the AC_LIB_LINKFLAGS macro.
41540         * doc/havelib.texi: New file, mostly written on 2005-05-24.
41541         * doc/gnulib.texi: Include it.
41542
41543 2009-02-08  Bruno Haible  <bruno@clisp.org>
41544
41545         Fix wrong order of sections, compared to TOC.
41546         * doc/gnulib.texi: Include relocatable-maint.texi after the
41547         "Regular expressions" node, not before.
41548
41549 2009-02-08  Bruno Haible  <bruno@clisp.org>
41550
41551         Tests for module 'unicase/totitle'.
41552         * modules/unicase/totitle-tests: New file.
41553
41554         Tests for module 'unicase/tolower'.
41555         * modules/unicase/tolower-tests: New file.
41556
41557         Tests for module 'unicase/toupper'.
41558         * modules/unicase/toupper-tests: New file.
41559         * tests/unicase/test-mapping-part1.h: New file.
41560         * tests/unicase/test-mapping-part2.h: New file.
41561
41562         New module 'unicase/totitle'.
41563         * modules/unicase/totitle: New file.
41564         * lib/unicase/totitle.c: New file.
41565
41566         New module 'unicase/tolower'.
41567         * modules/unicase/tolower: New file.
41568         * lib/unicase/tolower.c: New file.
41569
41570         New module 'unicase/toupper'.
41571         * modules/unicase/toupper: New file.
41572         * lib/unicase/toupper.c: New file.
41573         * lib/unicase/simple-mapping.h: New file.
41574
41575         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
41576         (mapping_table): New structure.
41577         (output_simple_mapping): New function.
41578         (main): Invoke output_simple_mapping_test and output_simple_mapping.
41579         * modules/gen-uni-tables (Description): Update.
41580         * lib/unicase/toupper.h: New file, automatically generated by
41581         gen-uni-tables.
41582         * lib/unicase/tolower.h: New file, automatically generated by
41583         gen-uni-tables.
41584         * lib/unicase/totitle.h: New file, automatically generated by
41585         gen-uni-tables.
41586         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
41587         gen-uni-tables.
41588         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
41589         gen-uni-tables.
41590         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
41591         gen-uni-tables.
41592
41593         New module 'unicase/base'.
41594         * modules/unicase/base: New file.
41595         * lib/unicase.h: New file.
41596
41597 2009-02-08  Bruno Haible  <bruno@clisp.org>
41598
41599         New module 'uniwbrk/ulc-wordbreaks'.
41600         * modules/uniwbrk/ulc-wordbreaks: New file.
41601         * lib/uniwbrk/ulc-wordbreaks.c: New file.
41602
41603         New module 'uniwbrk/u32-wordbreaks'.
41604         * modules/uniwbrk/u32-wordbreaks: New file.
41605         * lib/uniwbrk/u32-wordbreaks.c: New file.
41606
41607         New module 'uniwbrk/u16-wordbreaks'.
41608         * modules/uniwbrk/u16-wordbreaks: New file.
41609         * lib/uniwbrk/u16-wordbreaks.c: New file.
41610
41611         New module 'uniwbrk/u8-wordbreaks'.
41612         * modules/uniwbrk/u8-wordbreaks: New file.
41613         * lib/uniwbrk/u8-wordbreaks.c: New file.
41614         * lib/uniwbrk/u-wordbreaks.h: New file.
41615
41616         New module 'uniwbrk/table'.
41617         * modules/uniwbrk/table: New file.
41618         * lib/uniwbrk/wbrktable.h: New file.
41619         * lib/uniwbrk/wbrktable.c: New file.
41620
41621         New module 'uniwbrk/wordbreak-property'.
41622         * modules/uniwbrk/wordbreak-property: New file.
41623         * lib/uniwbrk/wordbreak-property.c: New file.
41624
41625         * lib/gen-uni-tables.c (WBP_*): New enum items.
41626         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
41627         (unicode_org_wbp): New variable.
41628         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
41629         New functions.
41630         (wbp_table): New structure.
41631         (output_wbp, output_wbrk_tables): New functions.
41632         (main): Accept additional argument. Invoke fill_org_wbp,
41633         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
41634         output_wbrk_tables.
41635         * modules/gen-uni-tables (Description): Update.
41636         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
41637         gen-uni-tables.
41638
41639         New module 'uniwbrk/base'.
41640         * modules/uniwbrk/base: New file.
41641         * lib/uniwbrk.h: New file.
41642
41643 2009-02-08  Bruno Haible  <bruno@clisp.org>
41644
41645         Update to Unicode 5.1.0.
41646         * lib/gen-uni-tables.c (is_property_alphabetic): Include
41647         U+2185..U+2188.
41648         (is_property_default_ignorable_code_point): Don't include characters
41649         of category Cc or Cs and not-a-characters.
41650         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
41651         U+0D79, U+109E, U+109F, U+A60C.
41652         * lib/unictype/bidi_of.h: Regenerated.
41653         * lib/unictype/blocks.h: Regenerated.
41654         * lib/unictype/categ_C.h: Regenerated.
41655         * lib/unictype/categ_Cf.h: Regenerated.
41656         * lib/unictype/categ_Cn.h: Regenerated.
41657         * lib/unictype/categ_L.h: Regenerated.
41658         * lib/unictype/categ_Ll.h: Regenerated.
41659         * lib/unictype/categ_Lm.h: Regenerated.
41660         * lib/unictype/categ_Lo.h: Regenerated.
41661         * lib/unictype/categ_Lu.h: Regenerated.
41662         * lib/unictype/categ_M.h: Regenerated.
41663         * lib/unictype/categ_Mc.h: Regenerated.
41664         * lib/unictype/categ_Me.h: Regenerated.
41665         * lib/unictype/categ_Mn.h: Regenerated.
41666         * lib/unictype/categ_N.h: Regenerated.
41667         * lib/unictype/categ_Nd.h: Regenerated.
41668         * lib/unictype/categ_Nl.h: Regenerated.
41669         * lib/unictype/categ_No.h: Regenerated.
41670         * lib/unictype/categ_P.h: Regenerated.
41671         * lib/unictype/categ_Pd.h: Regenerated.
41672         * lib/unictype/categ_Pe.h: Regenerated.
41673         * lib/unictype/categ_Pf.h: Regenerated.
41674         * lib/unictype/categ_Pi.h: Regenerated.
41675         * lib/unictype/categ_Po.h: Regenerated.
41676         * lib/unictype/categ_Ps.h: Regenerated.
41677         * lib/unictype/categ_S.h: Regenerated.
41678         * lib/unictype/categ_Sk.h: Regenerated.
41679         * lib/unictype/categ_Sm.h: Regenerated.
41680         * lib/unictype/categ_So.h: Regenerated.
41681         * lib/unictype/categ_of.h: Regenerated.
41682         * lib/unictype/combining.h: Regenerated.
41683         * lib/unictype/ctype_alnum.h: Regenerated.
41684         * lib/unictype/ctype_alpha.h: Regenerated.
41685         * lib/unictype/ctype_graph.h: Regenerated.
41686         * lib/unictype/ctype_lower.h: Regenerated.
41687         * lib/unictype/ctype_print.h: Regenerated.
41688         * lib/unictype/ctype_punct.h: Regenerated.
41689         * lib/unictype/ctype_upper.h: Regenerated.
41690         * lib/unictype/decdigit.h: Regenerated.
41691         * lib/unictype/digit.h: Regenerated.
41692         * lib/unictype/mirror.h: Regenerated.
41693         * lib/unictype/numeric.h: Regenerated.
41694         * lib/unictype/pr_alphabetic.h: Regenerated.
41695         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
41696         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
41697         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
41698         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
41699         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
41700         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
41701         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
41702         * lib/unictype/pr_combining.h: Regenerated.
41703         * lib/unictype/pr_dash.h: Regenerated.
41704         * lib/unictype/pr_decimal_digit.h: Regenerated.
41705         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
41706         * lib/unictype/pr_deprecated.h: Regenerated.
41707         * lib/unictype/pr_diacritic.h: Regenerated.
41708         * lib/unictype/pr_extender.h: Regenerated.
41709         * lib/unictype/pr_format_control.h: Regenerated.
41710         * lib/unictype/pr_grapheme_base.h: Regenerated.
41711         * lib/unictype/pr_grapheme_extend.h: Regenerated.
41712         * lib/unictype/pr_grapheme_link.h: Regenerated.
41713         * lib/unictype/pr_id_continue.h: Regenerated.
41714         * lib/unictype/pr_id_start.h: Regenerated.
41715         * lib/unictype/pr_ideographic.h: Regenerated.
41716         * lib/unictype/pr_ignorable_control.h: Regenerated.
41717         * lib/unictype/pr_lowercase.h: Regenerated.
41718         * lib/unictype/pr_math.h: Regenerated.
41719         * lib/unictype/pr_numeric.h: Regenerated.
41720         * lib/unictype/pr_other_alphabetic.h: Regenerated.
41721         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
41722         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
41723         * lib/unictype/pr_other_id_continue.h: Regenerated.
41724         * lib/unictype/pr_other_lowercase.h: Regenerated.
41725         * lib/unictype/pr_other_math.h: Regenerated.
41726         * lib/unictype/pr_punctuation.h: Regenerated.
41727         * lib/unictype/pr_sentence_terminal.h: Regenerated.
41728         * lib/unictype/pr_soft_dotted.h: Regenerated.
41729         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
41730         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
41731         * lib/unictype/pr_unified_ideograph.h: Regenerated.
41732         * lib/unictype/pr_uppercase.h: Regenerated.
41733         * lib/unictype/pr_xid_continue.h: Regenerated.
41734         * lib/unictype/pr_xid_start.h: Regenerated.
41735         * lib/unictype/pr_zero_width.h: Regenerated.
41736         * lib/unictype/scripts.h: Regenerated.
41737         * lib/unictype/scripts_byname.gperf: Regenerated.
41738         * lib/unictype/sy_java_ident.h: Regenerated.
41739         * lib/unilbrk/lbrkprop1.h: Regenerated.
41740         * lib/unilbrk/lbrkprop2.h: Regenerated.
41741         * tests/unictype/test-categ_C.c: Regenerated.
41742         * tests/unictype/test-categ_Cf.c: Regenerated.
41743         * tests/unictype/test-categ_Cn.c: Regenerated.
41744         * tests/unictype/test-categ_L.c: Regenerated.
41745         * tests/unictype/test-categ_Ll.c: Regenerated.
41746         * tests/unictype/test-categ_Lm.c: Regenerated.
41747         * tests/unictype/test-categ_Lo.c: Regenerated.
41748         * tests/unictype/test-categ_Lu.c: Regenerated.
41749         * tests/unictype/test-categ_M.c: Regenerated.
41750         * tests/unictype/test-categ_Mc.c: Regenerated.
41751         * tests/unictype/test-categ_Me.c: Regenerated.
41752         * tests/unictype/test-categ_Mn.c: Regenerated.
41753         * tests/unictype/test-categ_N.c: Regenerated.
41754         * tests/unictype/test-categ_Nd.c: Regenerated.
41755         * tests/unictype/test-categ_Nl.c: Regenerated.
41756         * tests/unictype/test-categ_No.c: Regenerated.
41757         * tests/unictype/test-categ_P.c: Regenerated.
41758         * tests/unictype/test-categ_Pd.c: Regenerated.
41759         * tests/unictype/test-categ_Pe.c: Regenerated.
41760         * tests/unictype/test-categ_Pf.c: Regenerated.
41761         * tests/unictype/test-categ_Pi.c: Regenerated.
41762         * tests/unictype/test-categ_Po.c: Regenerated.
41763         * tests/unictype/test-categ_Ps.c: Regenerated.
41764         * tests/unictype/test-categ_S.c: Regenerated.
41765         * tests/unictype/test-categ_Sk.c: Regenerated.
41766         * tests/unictype/test-categ_Sm.c: Regenerated.
41767         * tests/unictype/test-categ_So.c: Regenerated.
41768         * tests/unictype/test-ctype_alnum.c: Regenerated.
41769         * tests/unictype/test-ctype_alpha.c: Regenerated.
41770         * tests/unictype/test-ctype_graph.c: Regenerated.
41771         * tests/unictype/test-ctype_lower.c: Regenerated.
41772         * tests/unictype/test-ctype_print.c: Regenerated.
41773         * tests/unictype/test-ctype_punct.c: Regenerated.
41774         * tests/unictype/test-ctype_upper.c: Regenerated.
41775         * tests/unictype/test-decdigit.h: Regenerated.
41776         * tests/unictype/test-digit.h: Regenerated.
41777         * tests/unictype/test-numeric.h: Regenerated.
41778         * tests/unictype/test-pr_alphabetic.c: Regenerated.
41779         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
41780         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
41781         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
41782         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
41783         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
41784         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
41785         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
41786         * tests/unictype/test-pr_combining.c: Regenerated.
41787         * tests/unictype/test-pr_dash.c: Regenerated.
41788         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
41789         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
41790         * tests/unictype/test-pr_deprecated.c: Regenerated.
41791         * tests/unictype/test-pr_diacritic.c: Regenerated.
41792         * tests/unictype/test-pr_extender.c: Regenerated.
41793         * tests/unictype/test-pr_format_control.c: Regenerated.
41794         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
41795         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
41796         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
41797         * tests/unictype/test-pr_id_continue.c: Regenerated.
41798         * tests/unictype/test-pr_id_start.c: Regenerated.
41799         * tests/unictype/test-pr_ideographic.c: Regenerated.
41800         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
41801         * tests/unictype/test-pr_lowercase.c: Regenerated.
41802         * tests/unictype/test-pr_math.c: Regenerated.
41803         * tests/unictype/test-pr_numeric.c: Regenerated.
41804         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
41805         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
41806         Regenerated.
41807         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
41808         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
41809         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
41810         * tests/unictype/test-pr_other_math.c: Regenerated.
41811         * tests/unictype/test-pr_punctuation.c: Regenerated.
41812         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
41813         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
41814         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
41815         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
41816         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
41817         * tests/unictype/test-pr_uppercase.c: Regenerated.
41818         * tests/unictype/test-pr_xid_continue.c: Regenerated.
41819         * tests/unictype/test-pr_xid_start.c: Regenerated.
41820         * tests/unictype/test-pr_zero_width.c: Regenerated.
41821
41822         Update to Unicode 5.1.0.
41823         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
41824         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
41825         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
41826         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
41827         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
41828         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
41829         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
41830         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
41831         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
41832         (nonspacing_table_ind): Update.
41833         * tests/uniwidth/test-uc_width2.sh: Update expected result.
41834
41835         Update to Unicode 5.1.0.
41836         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
41837         code transform.
41838         * lib/uniname/uniname.c (unicode_character_name,
41839         unicode_name_character): Add the range 0x1Fxxx to the code transform.
41840         * lib/uniname/uninames.h: Regenerated.
41841         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
41842
41843 2009-02-07  Bruno Haible  <bruno@clisp.org>
41844
41845         Merge gen-ctype and gen-lbrk into a single program.
41846         * lib/gen-uni-tables.c: New file, incorporating
41847         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
41848         Add directory prefixes to the names of the generated files.
41849         * lib/unictype/gen-ctype.c: Remove file.
41850         * lib/unilbrk/gen-lbrk.c: Remove file.
41851         * modules/gen-uni-tables: New file.
41852         * modules/unictype/gen-ctype: Remove file.
41853         * modules/unilbrk/gen-lbrk: Remove file.
41854
41855 2009-02-07  Bruno Haible  <bruno@clisp.org>
41856
41857         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
41858
41859         New module 'unistr/u32-strcoll'.
41860         * modules/unistr/u32-strcoll: New file.
41861         * lib/unistr/u32-strcoll.c: New file.
41862
41863         New module 'unistr/u16-strcoll'.
41864         * modules/unistr/u16-strcoll: New file.
41865         * lib/unistr/u16-strcoll.c: New file.
41866
41867         New module 'unistr/u8-strcoll'.
41868         * modules/unistr/u8-strcoll: New file.
41869         * lib/unistr/u8-strcoll.c: New file.
41870         * lib/unistr/u-strcoll.h: New file.
41871
41872 2009-02-07  Bruno Haible  <bruno@clisp.org>
41873
41874         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
41875         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41876         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41877         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
41878         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
41879         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
41880
41881 2009-02-07  Bruno Haible  <bruno@clisp.org>
41882
41883         Make 64-bit clean.
41884         * lib/unictype/gen-ctype.c (output_predicate, output_category,
41885         output_combclass, output_bidi_category, output_decimal_digit,
41886         output_digit, output_numeric, output_mirror, output_scripts,
41887         output_ident_category): Use proper width specifier in format strings.
41888
41889 2009-02-07  Bruno Haible  <bruno@clisp.org>
41890
41891         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
41892         failure behaviour.
41893
41894 2009-02-07  Jim Meyering  <meyering@redhat.com>
41895
41896         regex: avoid compilation failure with upcoming gcc-4.4
41897         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
41898         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
41899         "... error: integer overflow in preprocessor expression".
41900
41901 2009-02-05  Ben Pfaff  <blp@gnu.org>
41902
41903         Fix link errors on Windows when close module is used.
41904         * modules/close: Add $(LIB_CLOSE) to Link section.
41905         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
41906         $(LIB_CLOSE) on Windows.
41907
41908 2009-02-05  Jim Meyering  <meyering@redhat.com>
41909
41910         still avoid unused-parameter warnings, but do it cleanly
41911         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
41912         (get_fs_usage): Cast to void instead.
41913         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
41914         (dev_from_mount_options, read_file_system_list): Cast to void.
41915         Prompted by Bruno Haible.
41916
41917 2009-02-04  Jim Meyering  <meyering@redhat.com>
41918
41919         fsusage.c: correct copyright year
41920         * lib/fsusage.c: Reflect year in which the change is pushed into
41921
41922         avoid misc. warnings
41923         * lib/fsusage.c (UNUSED_PARAM): Define.
41924         (get_fs_usage): Mark parameter "disk" as unused.
41925         * lib/getugroups.c (getgrent): Use "void" in prototype.
41926         * lib/mountlist.c: Mark unused parameters.
41927         (read_file_system_list): Declare a local with "const".
41928         * lib/nanosleep.c (getnow): Declare static.
41929         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
41930
41931         dirfd: set errno upon failure
41932         * lib/dirfd.c: Include <errno.h>.
41933         Set errno to ENOTSUP when returning -1.
41934         * modules/dirfd (Depends-on): Add errno.
41935         Suggested by John Kodis <kodis@comcast.net>.
41936
41937 2009-02-01  Bruno Haible  <bruno@clisp.org>
41938
41939         Don't assume sizeof (long) >= sizeof (void *).
41940         * lib/memcmp.c: Include stdint.h.
41941         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
41942         srcp2 to 'const byte *'.
41943         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
41944         types to uintptr_t.
41945         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
41946         * modules/memcmp (Depends-on): Add stdint.
41947         Reported by Ozkan Sezer <sezeroz@gmail.com>.
41948
41949 2009-01-30  Eric Blake  <ebb9@byu.net>
41950
41951         fix more require-before-expand issues
41952         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
41953         expand, AC_PROG_AWK.
41954         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
41955
41956 2009-01-28  Eric Blake  <ebb9@byu.net>
41957
41958         version-etc: use consistent URL formatting
41959         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
41960         Improve formatting.  Use fputs for string without %.
41961
41962 2009-01-28  Jim Meyering  <meyering@redhat.com>
41963
41964         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
41965         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
41966         "underquoted definition of NAME" from autoconf-2.59.
41967
41968 2009-01-28  Bruno Haible  <bruno@clisp.org>
41969
41970         * doc/gnulib.texi: Add "Obsolete modules" to index.
41971
41972 2009-01-28  Jim Meyering  <meyering@redhat.com>
41973
41974         useless-if-before-free: recognize more variants
41975         * build-aux/useless-if-before-free: Also recognize e.g.,
41976         if (NULL != p) free (p);
41977
41978 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
41979
41980         test-getaddrinfo: skip (don't fail) this test when there's no network
41981         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
41982         on the presumption that it means you lack network access.
41983
41984 2009-01-26  Jim Meyering  <meyering@redhat.com>
41985
41986         fflush: avoid warnings on modern systems
41987         * lib/fflush.c (rpl_fflush): Move declarations of locals,
41988         pos and result, into scopes where they're used.
41989
41990 2009-01-26  Eric Blake  <ebb9@byu.net>
41991
41992         Silence warning reintroduced by recent extensions patch.
41993         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
41994         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
41995         autoconf.
41996
41997         Backport improved autoconf semantics of AC_DEFUN_ONCE.
41998         * m4/00gnulib.m4: New file.
41999         * gnulib-tool (func_get_filelist): Always use it.
42000         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
42001         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
42002
42003 2009-01-25  Bruno Haible  <bruno@clisp.org>
42004
42005         Make test-quotearg work on MacOS X and AIX.
42006         * tests/test-quotearg.sh: New file.
42007         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
42008         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
42009         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
42010         include <libintl.h>.
42011         (fake_locale): Remove variable.
42012         (gettext, dgettext, dcgettext): Remove functions.
42013         (main): Instead of setting a fake locale, set a real locale. Call
42014         textdomain and bindtextdomain.
42015         * modules/quotearg-tests (Files): Add the new files.
42016         (Depends-on): Add gettext, setenv, unsetenv.
42017         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
42018         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
42019         Augment TESTS_ENVIRONMENT.
42020
42021 2009-01-25  Bruno Haible  <bruno@clisp.org>
42022
42023         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
42024         fr_FR.ISO8859-1 locale on MacOS X.
42025         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
42026         ja_JP.eucJP locale on MacOS X.
42027         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
42028         zh_CN.GB18030 locale on MacOS X.
42029
42030 2009-01-25  Bruno Haible  <bruno@clisp.org>
42031
42032         Avoid link errors on MacOS X 10.3.
42033         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
42034         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
42035
42036 2009-01-25  Bruno Haible  <bruno@clisp.org>
42037
42038         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
42039         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
42040         * modules/pipe (Files): Remove m4/posix_spawn.m4.
42041         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
42042         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
42043         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
42044         posix_spawnattr_init, posix_spawnattr_setsigmask,
42045         posix_spawnattr_setflags, posix_spawnattr_destroy.
42046
42047         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
42048         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
42049         * modules/execute (Files): Remove m4/posix_spawn.m4.
42050         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
42051         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
42052         posix_spawnattr_init, posix_spawnattr_setsigmask,
42053         posix_spawnattr_setflags, posix_spawnattr_destroy.
42054
42055 2009-01-25  Bruno Haible  <bruno@clisp.org>
42056
42057         * lib/glthread/threadlib.c: Include <stdlib.h>.
42058
42059 2009-01-25  Bruno Haible  <bruno@clisp.org>
42060
42061         * lib/glthread/threadlib.c (dummy): New declaration.
42062
42063 2009-01-25  Bruno Haible  <bruno@clisp.org>
42064
42065         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
42066         multibyte characters also for the GB18030 encoding. Don't crash when
42067         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
42068
42069 2009-01-25  Bruno Haible  <bruno@clisp.org>
42070
42071         Avoid redefining 'struct random_data' on OSF/1 5.1.
42072         * lib/stdlib.in.h: Include <random.h> if it exists.
42073         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
42074         HAVE_RANDOM_H. Include <random.h> when testing whether
42075         'struct random_data' exists.
42076         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
42077
42078 2009-01-25  Bruno Haible  <bruno@clisp.org>
42079
42080         Don't install charset.alias on MacOS X >= 10.3.
42081         * lib/localcharset.c (DARWIN7): New macro.
42082         (get_charset_aliases): Hardcode the result for Darwin7.
42083         * modules/localcharset (install-exec-local): Don't install
42084         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
42085
42086 2009-01-25  Bruno Haible  <bruno@clisp.org>
42087
42088         Don't install charset.alias on mingw and Cygwin.
42089         * modules/localcharset (install-exec-local): Don't install
42090         charset.alias on mingw and Cygwin, if the file does not yet exist.
42091         The result for these platforms is hardcoded in localcharset.c.
42092
42093 2009-01-25  Bruno Haible  <bruno@clisp.org>
42094
42095         Make it possible again to use AC_GNU_SOURCE together with gnulib.
42096         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
42097         before requiring AC_USE_SYSTEM_EXTENSIONS.
42098
42099 2009-01-25  Jim Meyering  <meyering@redhat.com>
42100
42101         c-strtod: avoid warnings
42102         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
42103         "assignment discards qualifiers from pointer target type" warnings.
42104
42105 2009-01-24  Bruno Haible  <bruno@clisp.org>
42106
42107         Add support for non-UTF-8 locales on MacOS X.
42108         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
42109         canonical encodings. For Darwin 7 and newer, don't map traditional
42110         encodings to UTF-8.
42111         Reported by Vincent Lefevre <vincent@vinc17.org>
42112         at <http://savannah.gnu.org/bugs/?25235>.
42113
42114 2009-01-24  Bruno Haible  <bruno@clisp.org>
42115
42116         * doc/gnulib.texi (Obsolete modules): New section.
42117         Reported by Mike Frysinger <vapier@gentoo.org>.
42118
42119 2009-01-24  Bruno Haible  <bruno@clisp.org>
42120
42121         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
42122         (%.dvi): New rule.
42123
42124 2009-01-24  Bruno Haible  <bruno@clisp.org>
42125
42126         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
42127         Reported by Eric Blake.
42128
42129 2009-01-24  Bruno Haible  <bruno@clisp.org>
42130
42131         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
42132         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
42133         Reported by Gary V. Vaughan <gary@gnu.org>.
42134
42135 2009-01-24  Bruno Haible  <bruno@clisp.org>
42136
42137         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
42138
42139 2009-01-23  Bruno Haible  <bruno@clisp.org>
42140
42141         Make c-strtod, c-strtold usable in libraries.
42142         * lib/c-strtod.c: Include string.h instead of xalloc.h.
42143         (C_STRTOD): Call strdup instead of xstrdup.
42144         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
42145         * modules/c-strtold (Depends-on): Likewise.
42146         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
42147         * NEWS: Mention the change.
42148         Reported by Michael Gold <mgold@ncf.ca>.
42149
42150 2009-01-23  Jim Meyering  <meyering@redhat.com>
42151
42152         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
42153         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
42154         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
42155
42156 2009-01-23  Simon Josefsson  <simon@josefsson.org>
42157
42158         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
42159         GNU CoreUtils.
42160         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
42161         * modules/version-etc (Description): Update.
42162
42163 2009-01-22  Bruno Haible  <bruno@clisp.org>
42164
42165         Cache the C locale object.
42166         * lib/c-strtod.c (c_locale_cache): New variable.
42167         (c_locale): New function.
42168         (C_STRTOD): Use it, and don't call freelocale.
42169         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
42170         Suggested by Paolo Bonzini.
42171
42172 2009-01-21  Bruno Haible  <bruno@clisp.org>
42173
42174         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
42175         conditions other than overflow.
42176
42177 2009-01-21  Bruno Haible  <bruno@clisp.org>
42178
42179         * lib/c-strtod.c: Include errno.h.
42180         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
42181         value from STRTOD_L and STRTOD.
42182
42183 2009-01-21  Bruno Haible  <bruno@clisp.org>
42184         and Jim Meyering  <meyering@redhat.com>
42185
42186         nanosleep: skip configure test (fail it) for apple universal builds
42187         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
42188         universal builds, assume that nanosleep does not work.
42189         * modules/nanosleep (Depends-on): Add multiarch.
42190
42191         mktime: skip configure test (fail it) for apple universal builds
42192         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
42193         universal builds, assume that mktime does not work.
42194         * modules/mktime (Depends-on): Add multiarch.
42195
42196 2009-01-21  Eric Blake  <ebb9@byu.net>
42197
42198         multiarch: avoid expand-before-require warning
42199         * modules/multiarch (configure.ac): Require, rather than expand,
42200         gl_MULTIARCH.
42201         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
42202         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
42203         enforce that all clients require it.  Partial reversion of
42204         2008-12-29 patch.
42205
42206         error: avoid expand-before-require warning
42207         * modules/errno (configure.ac): Require, rather than expand,
42208         gl_HEADER_ERRNO_H.
42209         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
42210         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
42211         enforce that all clients require it.
42212
42213         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
42214         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
42215         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
42216         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
42217
42218 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
42219
42220         Revert:
42221         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42222
42223         regex: do not depend on obsolete modules.
42224         * modules/regex: Remove memcmp and memmove.
42225
42226 2009-01-20  Bruno Haible  <bruno@clisp.org>
42227
42228         Make the 'link' module link on Windows NT 4.
42229         * lib/link.c (_WIN32_WINNT): Don't define.
42230         (CreateHardLinkFuncType): New type.
42231         (CreateHardLinkFunc, initialized): New variables.
42232         (initialize): New function.
42233         (link): Invoke CreateHardLink indirectly through the function pointer.
42234
42235 2009-01-20  Bruno Haible  <bruno@clisp.org>
42236
42237         Fix compilation failure on mingw.
42238         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
42239
42240 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
42241
42242         * doc/c-strtod.texi: Mention a couple of restrictions.
42243
42244 2009-01-20  Jim Meyering  <meyering@redhat.com>
42245
42246         gettimeofday: move more declarations out of functions
42247         * lib/gettimeofday.c: Move extern declarations of tzset and
42248         gmtime out of containing functions.  Prompted by Bruno Haible.
42249
42250 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42251
42252         regex: do not depend on obsolete modules.
42253         * modules/regex: Remove memcmp and memmove.
42254
42255 2009-01-19  Bruno Haible  <bruno@clisp.org>
42256
42257         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42258         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
42259         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42260         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
42261         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
42262
42263 2009-01-19  Bruno Haible  <bruno@clisp.org>
42264
42265         * tests/test-link.c: Include <errno.h>.
42266         (main): Exit with code 77 when a hard link cannot be created due to
42267         the file system.
42268         * tests/test-link.sh: Skip test when a hard link cannot be created due
42269         to the file system.
42270         Suggested by Eric Blake.
42271
42272 2009-01-19  Martin Lambers  <marlam@marlam.de>
42273
42274         * modules/link-tests: New file.
42275         * tests/test-link.sh: New file.
42276         * tests/test-link.c: New file.
42277
42278 2009-01-19  Eric Blake  <ebb9@byu.net>
42279
42280         doc: mention another function added in cygwin 1.7.0
42281         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
42282         Another new function in cygwin 1.7.
42283
42284 2009-01-19  Bruno Haible  <bruno@clisp.org>
42285
42286         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42287         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
42288         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
42289         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42290         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
42291         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
42292         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
42293         * m4/md4.m4 (gl_MD4): Likewise.
42294         * m4/md5.m4 (gl_MD5): Likewise.
42295         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
42296         * m4/sha1.m4 (gl_SHA1): Likewise.
42297         * m4/sha256.m4 (gl_SHA256): Likewise.
42298         * m4/sha512.m4 (gl_SHA512): Likewise.
42299
42300 2009-01-19  Bruno Haible  <bruno@clisp.org>
42301
42302         * modules/uniname/uniname-tests (Depends-on): Add progname.
42303         * tests/uniname/test-uninames.c: Include progname.h.
42304         (main): Call set_program_name.
42305
42306         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
42307         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
42308         (main): Call set_program_name.
42309
42310         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
42311         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
42312         (main): Call set_program_name.
42313
42314         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
42315         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
42316         (main): Call set_program_name.
42317
42318         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
42319         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
42320         (main): Call set_program_name.
42321
42322         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
42323         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
42324         (main): Call set_program_name.
42325
42326         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
42327         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
42328         (main): Call set_program_name.
42329
42330         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
42331         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
42332         (main): Call set_program_name.
42333
42334         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
42335         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
42336         (main): Call set_program_name.
42337
42338 2009-01-19  Eric Blake  <ebb9@byu.net>
42339
42340         test-unistd: test previous patch
42341         * tests/test-unistd.c: Test *_FILENO macros.
42342
42343         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
42344         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42345         Guarantee a definition.
42346         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
42347         * modules/unistd-safer (Depends-on): Add dependency on unistd.
42348         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
42349         * lib/dup-safer.c (STDERR_FILENO): Likewise.
42350         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42351         Likewise.
42352         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
42353         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
42354         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42355         Likewise.
42356         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
42357         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
42358         (STDERR_FILENO): Likewise.
42359         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
42360         (STDERR_FILENO): Likewise.
42361         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
42362         (STDERR_FILENO): Likewise.
42363         Reported by Elbert Pol.
42364
42365 2009-01-19  Eric Blake  <ebb9@byu.net>
42366
42367         doc: mention more functions added in cygwin 1.7.0
42368         * doc/posix-functions/abort.texi (abort): Update wording related
42369         to cygwin.
42370         * doc/posix-functions/daylight.texi (daylight): Likewise.
42371         * doc/posix-functions/optarg.texi (optarg): Likewise.
42372         * doc/posix-functions/optarg.texi (opterr): Likewise.
42373         * doc/posix-functions/optarg.texi (optind): Likewise.
42374         * doc/posix-functions/optarg.texi (optopt): Likewise.
42375         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
42376         worked in 1.5.x, and was withdrawn in 1.7.
42377         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
42378         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
42379         cygwin versions.
42380         * doc/posix-functions/perror.texi (perror): Likewise.
42381         * doc/posix-functions/printf.texi (printf): Likewise.
42382         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
42383         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
42384         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
42385         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
42386         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
42387         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
42388         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
42389         Likewise.
42390         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
42391         Likewise.
42392         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
42393         this function.
42394         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
42395         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
42396         Likewise.
42397         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
42398         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
42399         * doc/posix-functions/confstr.texi (confstr): Likewise.
42400         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
42401         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
42402         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
42403         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
42404         * doc/posix-functions/fputws.texi (fputws): Likewise.
42405         * doc/posix-functions/fwide.texi (fwide): Likewise.
42406         * doc/posix-functions/getwc.texi (getwc): Likewise.
42407         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
42408         * doc/posix-functions/putwc.texi (putwc): Likewise.
42409         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
42410         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
42411         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
42412         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
42413         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
42414         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
42415         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
42416         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
42417         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
42418         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
42419         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
42420
42421 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42422
42423         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
42424         * lib/ioctl.c: Include <sys/ioctl.h>.
42425
42426 2009-01-19  Simon Josefsson  <simon@josefsson.org>
42427
42428         * modules/getdate-tests (Depends-on): Add progname.
42429         * tests/test-getdate.c: Use progname module, to avoid link errors
42430         on non-glibc systems.
42431
42432 2009-01-18  Simon Josefsson  <simon@josefsson.org>
42433
42434         * modules/filenamecat-tests (Depends-on): Add progname.
42435         * modules/fstrcmp-tests (Depends-on): Likewise.
42436
42437         * tests/test-filenamecat.c: Use progname module, to avoid link
42438         errors on non-glibc systems.
42439         * tests/test-fstrcmp.c: Likewise.
42440
42441 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42442
42443         gettimeofday: avoid warning: nested extern declaration of 'localtime'
42444         * lib/gettimeofday.c: Move extern declaration out of function.
42445
42446 2009-01-18  Bruno Haible  <bruno@clisp.org>
42447
42448         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
42449         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
42450         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
42451
42452 2009-01-18  Bruno Haible  <bruno@clisp.org>
42453
42454         * lib/strftime.c (MEMPCPY): Remove unused macro.
42455         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
42456
42457 2009-01-18  Martin Lambers  <marlam@marlam.de>
42458
42459         New module 'link'.
42460         * lib/unistd.in.h (link): New declaration.
42461         * lib/link.c: New file.
42462         * m4/link.m4: New file.
42463         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
42464         HAVE_LINK.
42465         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
42466         * modules/link: New file.
42467         * doc/posix-functions/link.texi: Mention the new module.
42468
42469 2009-01-18  Bruno Haible  <bruno@clisp.org>
42470
42471         * tests/test-avltree_list.c (main): Call set_program_name.
42472         * tests/test-avltree_oset.c (main): Likewise.
42473         * tests/test-obstack-printf.c: Include progname.h.
42474         (main): Call set_program_name.
42475         * tests/test-quotearg.c: Include progname.h.
42476         (main): Call set_program_name.
42477         * tests/test-xmemdup0.c: Include progname.h.
42478         (main): Call set_program_name.
42479
42480 2009-01-18  Bruno Haible  <bruno@clisp.org>
42481
42482         New module 'alphasort'.
42483         * lib/dirent.in.h (alphasort): New declaration.
42484         * lib/alphasort.c: New file, from glibc with modifications.
42485         * m4/alphasort.m4: New file.
42486         * modules/alphasort: New file.
42487         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
42488         HAVE_ALPHASORT.
42489         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
42490         HAVE_ALPHASORT.
42491         * doc/posix-functions/alphasort.texi: Mention the new module and the
42492         portability problems.
42493
42494 2009-01-18  Bruno Haible  <bruno@clisp.org>
42495
42496         New module 'scandir'.
42497         * lib/dirent.in.h (scandir): New declaration.
42498         * lib/scandir.c: New file, from glibc with modifications.
42499         * m4/scandir.m4: New file.
42500         * modules/scandir: New file.
42501         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
42502         HAVE_SCANDIR.
42503         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
42504         HAVE_SCANDIR.
42505         * doc/posix-functions/scandir.texi: Mention the new module and the
42506         portability problems.
42507
42508 2009-01-17  Bruno Haible  <bruno@clisp.org>
42509
42510         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
42511         Update documentation.
42512         (func_remove_suffix): Escape all dots in the suffix. Update
42513         documentation.
42514         (func_filter_filelist): Update documentation.
42515         Reported by Ralf Wildenhues.
42516
42517 2009-01-17  Bruno Haible  <bruno@clisp.org>
42518
42519         * modules/dprintf-posix-tests: New file.
42520         * tests/test-dprintf-posix.sh: New file.
42521         * tests/test-dprintf-posix.c: New file.
42522
42523         New modules 'dprintf', 'dprintf-posix'.
42524         * lib/stdio.in.h (dprintf): New declaration.
42525         * lib/dprintf.c: New file.
42526         * m4/dprintf.m4: New file.
42527         * m4/dprintf-posix.m4: New file.
42528         * modules/dprintf: New file.
42529         * modules/dprintf-posix: New file.
42530         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
42531         HAVE_DPRINTF, REPLACE_DPRINTF.
42532         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
42533         HAVE_DPRINTF, REPLACE_DPRINTF.
42534         * doc/posix-functions/dprintf.texi: Mention the new modules.
42535
42536 2009-01-17  Bruno Haible  <bruno@clisp.org>
42537
42538         * modules/vdprintf-posix-tests: New file.
42539         * tests/test-vdprintf-posix.sh: New file.
42540         * tests/test-vdprintf-posix.c: New file.
42541
42542         New modules 'vdprintf', 'vdprintf-posix'.
42543         * lib/stdio.in.h (vdprintf): New declaration.
42544         * lib/vdprintf.c: New file.
42545         * m4/vdprintf.m4: New file.
42546         * m4/vdprintf-posix.m4: New file.
42547         * modules/vdprintf: New file.
42548         * modules/vdprintf-posix: New file.
42549         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
42550         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42551         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
42552         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42553         * doc/posix-functions/vdprintf.texi: Mention the new modules.
42554
42555 2009-01-17  Bruno Haible  <bruno@clisp.org>
42556
42557         Fix replacement of fopen on mingw.
42558         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
42559         mingw.
42560
42561 2009-01-17  Bruno Haible  <bruno@clisp.org>
42562
42563         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
42564         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
42565
42566 2009-01-17  Bruno Haible  <bruno@clisp.org>
42567
42568         Avoid test-fflush2.sh failure on mingw.
42569         * tests/test-fflush2.c: Include binary-io.h.
42570         (main): Put standard input into binary mode.
42571         * modules/fflush-tests (Depends-on): Add binary-io.
42572
42573 2009-01-17  Bruno Haible  <bruno@clisp.org>
42574
42575         * lib/wchar.in.h: In another particular situation, include only the
42576         system's <wchar.h> file.
42577         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
42578         Reported by Albert Chin-A-Young <china@thewrittenword.com>
42579         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
42580
42581 2009-01-17  Bruno Haible  <bruno@clisp.org>
42582
42583         Support for stripping executables in --enable-relocatable.
42584         * build-aux/install-reloc: Expect one more argument, or an environment
42585         variable RELOC_STRIP_PROG. If set, strip the destination program and
42586         its wrapper.
42587         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
42588         RELOC_STRIP_PROG.
42589         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
42590         to set RELOCATABLE_STRIP.
42591         * NEWS: Mention the new Makefile requirement.
42592
42593 2009-01-17  Bruno Haible  <bruno@clisp.org>
42594
42595         * build-aux/install-reloc: Remove debugging information left over by
42596         C compiler on MacOS X.
42597
42598 2009-01-17  Bruno Haible  <bruno@clisp.org>
42599
42600         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
42601         * lib/progreloc.c (find_executable): Fix type of pointer passed to
42602         _NSGetExecutablePath.
42603
42604 2009-01-16  Jim Meyering  <meyering@redhat.com>
42605
42606         strerror: avoid warnings about discarding "const"
42607         * lib/strerror.c (rpl_strerror): Instead of returning a const
42608         string from each and every "case", use a variable, and add a single
42609         cast after the switch.
42610
42611 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
42612
42613         * lib/arpa_inet.in.h: Add extern "C" block for C++.
42614
42615 2009-01-16  Bruno Haible  <bruno@clisp.org>
42616
42617         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
42618         array initializer syntax that also works in C++ mode.
42619         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42620
42621 2009-01-16  Jim Meyering  <meyering@redhat.com>
42622
42623         poll: suppress a warning
42624         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
42625         to ignore "...unsigned expression < 0 is always false" warnings.
42626
42627 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
42628
42629         poll: remove declarations of unused variables
42630         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
42631         sockbuf and optlen.
42632
42633 2009-01-15  Bruno Haible  <bruno@clisp.org>
42634
42635         Make fflush-after-ungetc POSIX compliant on BSD systems.
42636         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
42637         (clear_ungetc_buffer): Implement also for other systems.
42638         (rpl_fflush): On glibc systems, invoke
42639         clear_ungetc_buffer_preserving_position. Otherwise, invoke
42640         clear_ungetc_buffer after fetching the stream's position, not before.
42641
42642 2009-01-15  Bruno Haible  <bruno@clisp.org>
42643
42644         Make fflush-after-ungetc POSIX compliant on glibc systems.
42645         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
42646         after ungetc.
42647         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
42648         (rpl_fflush): On glibc systems, simply call the system's fflush
42649         function after clearing the ungetc buffer.
42650         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
42651         Instead, lseek only to the end of file, then use the system's fseeko
42652         for the rest. On glibc systems, reset the EOF indicator bit.
42653
42654 2009-01-15  Jim Meyering  <meyering@redhat.com>
42655
42656         openmp.m4: revert quote-adding change, for portability to older autoconf
42657         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
42658         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
42659         Simon Josefsson noticed the problem when using autoconf-2.61.
42660
42661 2009-01-15  Bruno Haible  <bruno@clisp.org>
42662
42663         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
42664         * tests/test-fflush2.c (ASSERT): Always fail.
42665         (main): Add two tests for fflush() after ungetc(), taking into account
42666         the Austin Group's clarification.
42667         Suggested by Eric Blake.
42668
42669 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
42670
42671         mktime.m4: remove K&R-style function prototypes
42672         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
42673         for the Sun C++ compiler.
42674
42675 2009-01-14  Bruno Haible  <bruno@clisp.org>
42676
42677         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
42678         while including <wchar.h>.
42679         * lib/wchar.in.h: In two particular situations on HP-UX, include only
42680         the system's <wchar.h> file.
42681         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42682
42683 2009-01-14  Bruno Haible  <bruno@clisp.org>
42684
42685         * m4/csharp.m4: Don't mention gettext on the serial number line.
42686         * m4/csharpexec.m4: Likewise.
42687         * m4/eaccess.m4: Likewise.
42688         * m4/javaexec.m4: Likewise.
42689         * m4/sig_atomic_t.m4: Likewise.
42690         * m4/tmpdir.m4: Likewise.
42691         * m4/intldir.m4: Bump gettext version.
42692         * m4/lib-ld.m4: Likewise.
42693
42694 2009-01-14  Bruno Haible  <bruno@clisp.org>
42695
42696         * lib/progname.c (set_program_name): Add more comments.
42697         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
42698
42699 2009-01-14  Simon Josefsson  <simon@josefsson.org>
42700
42701         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
42702         were sys/stat.h does not define it.
42703
42704 2009-01-14  Jim Meyering  <meyering@redhat.com>
42705
42706         many *.m4 files: improve m4 quoting
42707         99% of this change was performed by running the following commands:
42708         git ls-files | grep '\.m4$' | xargs perl -pi \
42709           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
42710           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42711           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42712           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
42713         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
42714         The remainder were to add Copyright dates, increment serial numbers,
42715         undo some changes in comments, exclude m4/intl.m4, and add quotes
42716         around the "1" in ",1" where the unusual spacing prohibited the
42717         above regexps from doing the job.  For more details, see
42718         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
42719         * m4/acl.m4: Modified.
42720         * m4/afs.m4: Likewise.
42721         * m4/alloca.m4: Likewise.
42722         * m4/argp.m4: Likewise.
42723         * m4/argz.m4: Likewise.
42724         * m4/atexit.m4: Likewise.
42725         * m4/bison-i18n.m4: Likewise.
42726         * m4/bison.m4: Likewise.
42727         * m4/byteswap.m4: Likewise.
42728         * m4/c-stack.m4: Likewise.
42729         * m4/c-strtod.m4: Likewise.
42730         * m4/calloc.m4: Likewise.
42731         * m4/canonicalize-lgpl.m4: Likewise.
42732         * m4/chown.m4: Likewise.
42733         * m4/clock_time.m4: Likewise.
42734         * m4/codeset.m4: Likewise.
42735         * m4/copy-file.m4: Likewise.
42736         * m4/csharp.m4: Likewise.
42737         * m4/csharpcomp.m4: Likewise.
42738         * m4/csharpexec.m4: Likewise.
42739         * m4/d-ino.m4: Likewise.
42740         * m4/d-type.m4: Likewise.
42741         * m4/dirfd.m4: Likewise.
42742         * m4/double-slash-root.m4: Likewise.
42743         * m4/eaccess.m4: Likewise.
42744         * m4/eealloc.m4: Likewise.
42745         * m4/environ.m4: Likewise.
42746         * m4/errno_h.m4: Likewise.
42747         * m4/euidaccess.m4: Likewise.
42748         * m4/execute.m4: Likewise.
42749         * m4/fatal-signal.m4: Likewise.
42750         * m4/fchdir.m4: Likewise.
42751         * m4/fcntl_h.m4: Likewise.
42752         * m4/fileblocks.m4: Likewise.
42753         * m4/filenamecat.m4: Likewise.
42754         * m4/findprog.m4: Likewise.
42755         * m4/flexmember.m4: Likewise.
42756         * m4/fnmatch.m4: Likewise.
42757         * m4/fopen.m4: Likewise.
42758         * m4/fpending.m4: Likewise.
42759         * m4/fprintf-posix.m4: Likewise.
42760         * m4/free.m4: Likewise.
42761         * m4/frexp.m4: Likewise.
42762         * m4/frexpl.m4: Likewise.
42763         * m4/fsusage.m4: Likewise.
42764         * m4/ftruncate.m4: Likewise.
42765         * m4/gc-camellia.m4: Likewise.
42766         * m4/gc-random.m4: Likewise.
42767         * m4/gc.m4: Likewise.
42768         * m4/getaddrinfo.m4: Likewise.
42769         * m4/getcwd-abort-bug.m4: Likewise.
42770         * m4/getcwd-path-max.m4: Likewise.
42771         * m4/getdate.m4: Likewise.
42772         * m4/getdomainname.m4: Likewise.
42773         * m4/getgroups.m4: Likewise.
42774         * m4/gethostname.m4: Likewise.
42775         * m4/gethrxtime.m4: Likewise.
42776         * m4/getline.m4: Likewise.
42777         * m4/getloadavg.m4: Likewise.
42778         * m4/getndelim2.m4: Likewise.
42779         * m4/getpass.m4: Likewise.
42780         * m4/gettext.m4: Likewise.
42781         * m4/gettime.m4: Likewise.
42782         * m4/gettimeofday.m4: Likewise.
42783         * m4/gnulib-common.m4: Likewise.
42784         * m4/group-member.m4: Likewise.
42785         * m4/host-os.m4: Likewise.
42786         * m4/iconv.m4: Likewise.
42787         * m4/iconv_open.m4: Likewise.
42788         * m4/inet_ntop.m4: Likewise.
42789         * m4/inet_pton.m4: Likewise.
42790         * m4/inline.m4: Likewise.
42791         * m4/intldir.m4: Likewise.
42792         * m4/intlmacosx.m4: Likewise.
42793         * m4/intmax.m4: Likewise.
42794         * m4/intmax_t.m4: Likewise.
42795         * m4/inttypes.m4: Likewise.
42796         * m4/inttypes_h.m4: Likewise.
42797         * m4/inttypes-pri.m4: Likewise.
42798         * m4/isapipe.m4: Likewise.
42799         * m4/isnand.m4: Likewise.
42800         * m4/isnanf.m4: Likewise.
42801         * m4/isnanl.m4: Likewise.
42802         * m4/javacomp.m4: Likewise.
42803         * m4/javaexec.m4: Likewise.
42804         * m4/jm-winsz1.m4: Likewise.
42805         * m4/jm-winsz2.m4: Likewise.
42806         * m4/lchown.m4: Likewise.
42807         * m4/lcmessage.m4: Likewise.
42808         * m4/ldexpl.m4: Likewise.
42809         * m4/lib-ld.m4: Likewise.
42810         * m4/lib-link.m4: Likewise.
42811         * m4/libsigsegv.m4: Likewise.
42812         * m4/link-follow.m4: Likewise.
42813         * m4/localcharset.m4: Likewise.
42814         * m4/locale-fr.m4: Likewise.
42815         * m4/locale-ja.m4: Likewise.
42816         * m4/locale-tr.m4: Likewise.
42817         * m4/locale-zh.m4: Likewise.
42818         * m4/lock.m4: Likewise.
42819         * m4/longlong.m4: Likewise.
42820         * m4/ls-mntd-fs.m4: Likewise.
42821         * m4/lstat.m4: Likewise.
42822         * m4/malloc.m4: Likewise.
42823         * m4/mathl.m4: Likewise.
42824         * m4/mbrtowc.m4: Likewise.
42825         * m4/mbstate_t.m4: Likewise.
42826         * m4/mbswidth.m4: Likewise.
42827         * m4/memchr.m4: Likewise.
42828         * m4/memcmp.m4: Likewise.
42829         * m4/memcpy.m4: Likewise.
42830         * m4/memmem.m4: Likewise.
42831         * m4/memmove.m4: Likewise.
42832         * m4/mempcpy.m4: Likewise.
42833         * m4/memrchr.m4: Likewise.
42834         * m4/memset.m4: Likewise.
42835         * m4/minmax.m4: Likewise.
42836         * m4/mkdir-slash.m4: Likewise.
42837         * m4/mkdtemp.m4: Likewise.
42838         * m4/mktime.m4: Likewise.
42839         * m4/mmap-anon.m4: Likewise.
42840         * m4/mountlist.m4: Likewise.
42841         * m4/nanosleep.m4: Likewise.
42842         * m4/nls.m4: Likewise.
42843         * m4/nocrash.m4: Likewise.
42844         * m4/open.m4: Likewise.
42845         * m4/openat.m4: Likewise.
42846         * m4/openmp.m4: Likewise.
42847         * m4/pathmax.m4: Likewise.
42848         * m4/perl.m4: Likewise.
42849         * m4/physmem.m4: Likewise.
42850         * m4/pipe.m4: Likewise.
42851         * m4/po.m4: Likewise.
42852         * m4/poll.m4: Likewise.
42853         * m4/posixtm.m4: Likewise.
42854         * m4/posixver.m4: Likewise.
42855         * m4/printf-frexp.m4: Likewise.
42856         * m4/printf-frexpl.m4: Likewise.
42857         * m4/printf-posix.m4: Likewise.
42858         * m4/printf-posix-rpl.m4: Likewise.
42859         * m4/printf.m4: Likewise.
42860         * m4/progtest.m4: Likewise.
42861         * m4/putenv.m4: Likewise.
42862         * m4/readline.m4: Likewise.
42863         * m4/readlink.m4: Likewise.
42864         * m4/readutmp.m4: Likewise.
42865         * m4/realloc.m4: Likewise.
42866         * m4/regex.m4: Likewise.
42867         * m4/relocatable.m4: Likewise.
42868         * m4/relocatable-lib.m4: Likewise.
42869         * m4/rename-dest-slash.m4: Likewise.
42870         * m4/rename.m4: Likewise.
42871         * m4/rmdir-errno.m4: Likewise.
42872         * m4/rmdir.m4: Likewise.
42873         * m4/roundf.m4: Likewise.
42874         * m4/roundl.m4: Likewise.
42875         * m4/rpmatch.m4: Likewise.
42876         * m4/save-cwd.m4: Likewise.
42877         * m4/selinux-selinux-h.m4: Likewise.
42878         * m4/setenv.m4: Likewise.
42879         * m4/settime.m4: Likewise.
42880         * m4/sig2str.m4: Likewise.
42881         * m4/sig_atomic_t.m4: Likewise.
42882         * m4/signalblocking.m4: Likewise.
42883         * m4/signbit.m4: Likewise.
42884         * m4/sigpipe.m4: Likewise.
42885         * m4/sockets.m4: Likewise.
42886         * m4/sockpfaf.m4: Likewise.
42887         * m4/st_dm_mode.m4: Likewise.
42888         * m4/stat-time.m4: Likewise.
42889         * m4/stdbool.m4: Likewise.
42890         * m4/stdint.m4: Likewise.
42891         * m4/stdint_h.m4: Likewise.
42892         * m4/stpcpy.m4: Likewise.
42893         * m4/stpncpy.m4: Likewise.
42894         * m4/strcase.m4: Likewise.
42895         * m4/strchrnul.m4: Likewise.
42896         * m4/strcspn.m4: Likewise.
42897         * m4/strdup.m4: Likewise.
42898         * m4/strftime.m4: Likewise.
42899         * m4/strndup.m4: Likewise.
42900         * m4/strnlen.m4: Likewise.
42901         * m4/strpbrk.m4: Likewise.
42902         * m4/strptime.m4: Likewise.
42903         * m4/strsep.m4: Likewise.
42904         * m4/strtod.m4: Likewise.
42905         * m4/strtoimax.m4: Likewise.
42906         * m4/strtok_r.m4: Likewise.
42907         * m4/strtol.m4: Likewise.
42908         * m4/strtoll.m4: Likewise.
42909         * m4/strtoul.m4: Likewise.
42910         * m4/strtoull.m4: Likewise.
42911         * m4/strtoumax.m4: Likewise.
42912         * m4/strverscmp.m4: Likewise.
42913         * m4/threadlib.m4: Likewise.
42914         * m4/timegm.m4: Likewise.
42915         * m4/tm_gmtoff.m4: Likewise.
42916         * m4/tmpdir.m4: Likewise.
42917         * m4/tmpfile.m4: Likewise.
42918         * m4/tzset.m4: Likewise.
42919         * m4/uintmax_t.m4: Likewise.
42920         * m4/unlinkdir.m4: Likewise.
42921         * m4/unlocked-io.m4: Likewise.
42922         * m4/uptime.m4: Likewise.
42923         * m4/userspec.m4: Likewise.
42924         * m4/utimbuf.m4: Likewise.
42925         * m4/utime.m4: Likewise.
42926         * m4/utimes-null.m4: Likewise.
42927         * m4/utimes.m4: Likewise.
42928         * m4/vararrays.m4: Likewise.
42929         * m4/vasnprintf.m4: Likewise.
42930         * m4/vfprintf-posix.m4: Likewise.
42931         * m4/vprintf-posix.m4: Likewise.
42932         * m4/wait-process.m4: Likewise.
42933         * m4/wchar_t.m4: Likewise.
42934         * m4/wint_t.m4: Likewise.
42935         * m4/write-any-file.m4: Likewise.
42936         * m4/yield.m4: Likewise.
42937
42938 2009-01-13  Bruno Haible  <bruno@clisp.org>
42939
42940         Avoid test-copy-file.sh failures when ACL support insufficient.
42941         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
42942         TESTS_ENVIRONMENT.
42943         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
42944         Reported by Jim Meyering.
42945
42946 2009-01-13  Bruno Haible  <bruno@clisp.org>
42947
42948         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
42949         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
42950         * modules/unistdio/u8-printf-parse (Files): Likewise.
42951         * modules/unistdio/u32-printf-parse (Files): Likewise.
42952         * modules/unistdio/ulc-printf-parse (Files): Likewise.
42953
42954 2009-01-13  Simon Josefsson  <simon@josefsson.org>
42955
42956         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
42957         and m4/inttypes_h.m4 too.
42958
42959 2009-01-12  Eric Blake  <ebb9@byu.net>
42960
42961         tests: IRIX 6.2 cc can't compile -0.0 into .data
42962         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
42963         rather than at compile-time.
42964         * tests/test-floorl.c (minus_zero): Likewise.
42965         * tests/test-frexpl.c (minus_zero): Likewise.
42966         * tests/test-isnan.c (minus_zerol): Likewise.
42967         * tests/test-isnanl.h (minus_zero): Likewise.
42968         * tests/test-ldexpl.c (minus_zero): Likewise.
42969         * tests/test-roundl.c (minus_zero): Likewise.
42970         * tests/test-signbit.c (minus_zerol): Likewise.
42971         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
42972         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
42973         * tests/test-truncl.c (minus_zero): Likewise.
42974         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
42975         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
42976         Reported by Tom G. Christensen and Nelson H. F. Beebe.
42977
42978 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42979
42980         regex: fix glibc bug 9697
42981         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
42982         handling.
42983
42984 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42985
42986         regex: fix glibc bug 697
42987         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
42988         being NULL also if there are no backreferences.
42989
42990 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
42991
42992         regex: merge glibc changes
42993         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
42994         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
42995         re_string_skip_chars, re_string_reconstruct): Likewise.
42996         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
42997
42998 2009-01-07  Jim Meyering  <meyering@redhat.com>
42999
43000         poll: filter through cppi
43001         * lib/poll.c: Indent cpp directives to reflect nesting.
43002
43003 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
43004
43005         poll: don't return uninitialized
43006         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
43007
43008 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
43009
43010         avoid compile failure on AIX 6.1
43011         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
43012         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
43013
43014 2009-01-04  Jim Meyering  <meyering@redhat.com>
43015
43016         remove duplicate inclusion of <stdio.h>
43017         * tests/test-fprintf-posix.c: Likewise.
43018         * tests/test-printf-posix.c: Likewise.
43019         * tests/test-snprintf-posix.c: Likewise.
43020         * tests/test-sprintf-posix.c: Likewise.
43021         * tests/test-vasprintf-posix.c: Likewise.
43022         * tests/test-vfprintf-posix.c: Likewise.
43023         * tests/test-vprintf-posix.c: Likewise.
43024         * tests/test-vsnprintf-posix.c: Likewise.
43025         * tests/test-vsprintf-posix.c: Likewise.
43026
43027 2009-01-03  Jim Meyering  <meyering@redhat.com>
43028
43029         gnulib-tool: fix sed-based filtering
43030         * gnulib-tool (func_filter_filelist): Remove extra backslash
43031         in sed_fff_filter definition.
43032
43033 2009-01-02  Jim Meyering  <meyering@redhat.com>
43034
43035         strftime: avoid compilation failure on Solaris 2.6
43036         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
43037         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
43038         Don't #define mbrlen or mbsinit, since now they're guaranteed to
43039         be available.  Reported by Tom G. Christensen.  Details in
43040         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
43041
43042 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43043             Bruno Haible  <bruno@clisp.org>
43044
43045         Speed up gnulib-tool by doing more string processing through shell
43046         built-ins.
43047         * gnulib-tool (fast_func_append): New variable.
43048         (func_remove_prefix, func_remove_suffix): New functions.
43049         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
43050         (func_filter_filelist): New function.
43051         (func_get_dependencies): Use func_remove_suffix instead of sed.
43052         (func_get_automake_snippet): Use func_filter_filelist instead of a
43053         subshell and sed invocation.
43054
43055 2009-01-01  Bruno Haible  <bruno@clisp.org>
43056
43057         Fix a security bug.
43058         * gnulib-tool (func_import, import, update): Don't allow the characters
43059         '"', '$', '`', '\' in macro arguments that become part of commands that
43060         are evaluated.
43061
43062 2009-01-01  Bruno Haible  <bruno@clisp.org>
43063
43064         * gnulib-tool (func_reset_sigpipe): Add more comments.
43065
43066 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43067
43068         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
43069         func_emit_tests_Makefile_am, func_import): Abort loops early if we
43070         already know the answer.
43071
43072 2009-01-01  Jim Meyering  <meyering@redhat.com>
43073
43074         * lib/version-etc.c (version_etc_va): Update copyright year.
43075
43076 2008-12-30  Bruno Haible  <bruno@clisp.org>
43077
43078         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
43079         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
43080         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
43081
43082 2008-12-29  Eric Blake  <ebb9@byu.net>
43083
43084         multiarch: avoid autoconf AC_REQUIRE bug
43085         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
43086         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
43087         2.63 and older.
43088         Reported by Bruno Haible, and analyzed in
43089         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
43090
43091 2008-12-29  Bruno Haible  <bruno@clisp.org>
43092
43093         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
43094         files in subdirectories correctly.
43095         Reported by Ralf Wildenhues.
43096
43097 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43098
43099         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
43100         rather than 'join FILE -', for Solaris join.
43101
43102 2008-12-29  Bruno Haible  <bruno@clisp.org>
43103
43104         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
43105         quoting.
43106         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
43107         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
43108         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
43109         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
43110         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
43111         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
43112         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
43113         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
43114         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
43115         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
43116         * m4/nls.m4 (AM_NLS): Likewise.
43117         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
43118         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
43119         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
43120         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
43121         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
43122         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
43123         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
43124         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
43125         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
43126         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
43127         * m4/xsize.m4 (gl_XSIZE): Likewise.
43128         Suggested by Jim Meyering.
43129
43130 2008-11-17  Bruce Korb  <bkorb@gnu.org>
43131
43132         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
43133         * lib/parse-duration.c: use a switch instead of cascading if's.
43134
43135 2008-12-29  Eric Blake  <ebb9@byu.net>
43136
43137         wchar.h: supply WEOF on Irix 5.3
43138         * lib/wchar.in.h (wint_t): Also supply WEOF.
43139         * lib/wctype.in.h (wint_t): Likewise.
43140         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
43141         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
43142         Reported by Tom G. Christensen.
43143
43144 2008-12-26  Bruno Haible  <bruno@clisp.org>
43145
43146         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
43147         i486, i586, i686.
43148
43149 2008-12-26  Bruno Haible  <bruno@clisp.org>
43150
43151         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
43152
43153 2008-12-26  Bruno Haible  <bruno@clisp.org>
43154
43155         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
43156         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
43157         not __STDC_CONSTANT_MACROS.
43158         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
43159
43160 2008-12-25  Bruno Haible  <bruno@clisp.org>
43161
43162         Add support for universal builds to vasnprintf.
43163         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
43164         universal builds, guess no.
43165         * modules/vasnprintf-posix (Depends-on): Add multiarch.
43166         * modules/vasprintf-posix (Depends-on): Likewise.
43167         * modules/fprintf-posix (Depends-on): Likewise.
43168         * modules/vfprintf-posix (Depends-on): Likewise.
43169         * modules/snprintf-posix (Depends-on): Likewise.
43170         * modules/vsnprintf-posix (Depends-on): Likewise.
43171         * modules/sprintf-posix (Depends-on): Likewise.
43172         * modules/vsprintf-posix (Depends-on): Likewise.
43173         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43174         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43175         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43176         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43177         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43178         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43179         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43180
43181         Add support for universal builds to <inttypes.h>.
43182         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
43183         _SCNu64_PREFIX): In Apple
43184         universal builds, define directly, using _LP64.
43185         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
43186         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
43187         * modules/inttypes (Depends-on): Add multiarch.
43188         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
43189
43190         Add support for universal builds to <stdint.h>.
43191         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
43192         universal builds, define directly, using _LP64.
43193         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
43194         Apple universal builds, don't test for the size and suffix of ptrdiff_t
43195         and size_t.
43196         * modules/stdint (Depends-on): Add multiarch.
43197         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
43198
43199         New module 'multiarch'.
43200         * modules/multiarch: New file.
43201         * m4/multiarch.m4: New file.
43202
43203 2008-12-25  Bruno Haible  <bruno@clisp.org>
43204
43205         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
43206
43207 2008-12-25  Bruno Haible  <bruno@clisp.org>
43208
43209         * modules/btowc (License): Relicense under LGPLv2+.
43210         * modules/mbsinit (License): Likewise.
43211         * modules/mbrtowc (License): Likewise.
43212         * modules/wcrtomb (License): Likewise.
43213         * modules/streq (License): Likewise.
43214         Reported by David Lutterkort <lutter@redhat.com>.
43215
43216 2008-12-23  Bruno Haible  <bruno@clisp.org>
43217
43218         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
43219
43220 2008-12-23  Bruno Haible  <bruno@clisp.org>
43221
43222         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
43223         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
43224         GETADDRINFO_LIB, not in LIBS.
43225         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
43226         * modules/canon-host (Link): Likewise.
43227         * NEWS: Mention the change.
43228         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
43229         GETADDRINFO_LIB.
43230
43231 2008-12-22  Bruno Haible  <bruno@clisp.org>
43232
43233         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
43234         * doc/posix-functions/iswalpha_l.texi: Likewise.
43235         * doc/posix-functions/iswblank_l.texi: Likewise.
43236         * doc/posix-functions/iswcntrl_l.texi: Likewise.
43237         * doc/posix-functions/iswctype_l.texi: Likewise.
43238         * doc/posix-functions/iswdigit_l.texi: Likewise.
43239         * doc/posix-functions/iswgraph_l.texi: Likewise.
43240         * doc/posix-functions/iswlower_l.texi: Likewise.
43241         * doc/posix-functions/iswprint_l.texi: Likewise.
43242         * doc/posix-functions/iswpunct_l.texi: Likewise.
43243         * doc/posix-functions/iswspace_l.texi: Likewise.
43244         * doc/posix-functions/iswupper_l.texi: Likewise.
43245         * doc/posix-functions/iswxdigit_l.texi: Likewise.
43246         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
43247         * doc/posix-functions/open_wmemstream.texi: Likewise.
43248         * doc/posix-functions/swscanf.texi: Likewise.
43249         * doc/posix-functions/towctrans_l.texi: Likewise.
43250         * doc/posix-functions/towlower.texi: Likewise.
43251         * doc/posix-functions/towlower_l.texi: Likewise.
43252         * doc/posix-functions/towupper.texi: Likewise.
43253         * doc/posix-functions/towupper_l.texi: Likewise.
43254         * doc/posix-functions/vfwprintf.texi: Likewise.
43255         * doc/posix-functions/vfwscanf.texi: Likewise.
43256         * doc/posix-functions/vswscanf.texi: Likewise.
43257         * doc/posix-functions/vwprintf.texi: Likewise.
43258         * doc/posix-functions/vwscanf.texi: Likewise.
43259         * doc/posix-functions/wcpcpy.texi: Likewise.
43260         * doc/posix-functions/wcpncpy.texi: Likewise.
43261         * doc/posix-functions/wcscasecmp.texi: Likewise.
43262         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
43263         * doc/posix-functions/wcscoll_l.texi: Likewise.
43264         * doc/posix-functions/wcsdup.texi: Likewise.
43265         * doc/posix-functions/wcsncasecmp.texi: Likewise.
43266         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
43267         * doc/posix-functions/wcsnlen.texi: Likewise.
43268         * doc/posix-functions/wcsnrtombs.texi: Likewise.
43269         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
43270         * doc/posix-functions/wctrans_l.texi: Likewise.
43271         * doc/posix-functions/wctype_l.texi: Likewise.
43272         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
43273         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
43274         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
43275         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
43276         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
43277         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
43278         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
43279         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
43280         * doc/glibc-functions/wcschrnul.texi: Likewise.
43281         * doc/glibc-functions/wcsftime_l.texi: Likewise.
43282         * doc/glibc-functions/wcstod_l.texi: Likewise.
43283         * doc/glibc-functions/wcstof_l.texi: Likewise.
43284         * doc/glibc-functions/wcstol_l.texi: Likewise.
43285         * doc/glibc-functions/wcstold_l.texi: Likewise.
43286         * doc/glibc-functions/wcstoll_l.texi: Likewise.
43287         * doc/glibc-functions/wcstoq.texi: Likewise.
43288         * doc/glibc-functions/wcstoul_l.texi: Likewise.
43289         * doc/glibc-functions/wcstoull_l.texi: Likewise.
43290         * doc/glibc-functions/wcstouq.texi: Likewise.
43291         * doc/glibc-functions/wmempcpy.texi: Likewise.
43292
43293 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
43294             Eric Blake  <ebb9@byu.net>
43295             Paolo Bonzini  <bonzini@gnu.org>
43296             Bruno Haible  <bruno@clisp.org>
43297
43298         Make c-stack work on Haiku.
43299         * lib/c-stack.c (SA_ONSTACK): Define fallback.
43300         (c_stack_action): Use SA_ONSTACK flag.
43301
43302 2008-12-22  Bruno Haible  <bruno@clisp.org>
43303
43304         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
43305
43306 2008-12-22  Bruno Haible  <bruno@clisp.org>
43307
43308         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
43309         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
43310         being overridden.
43311         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
43312         New macros.
43313         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
43314         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
43315         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
43316         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
43317
43318 2008-12-22  Bruno Haible  <bruno@clisp.org>
43319
43320         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
43321         from test code.
43322
43323 2008-12-22  Eric Blake  <ebb9@byu.net>
43324
43325         Avoid gcc warnings on cygwin.
43326         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
43327         Avoid unused variable.
43328         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
43329         Likewise.
43330
43331 2008-12-22  Bruno Haible  <bruno@clisp.org>
43332
43333         Remove HAVE_MBRTOWC conditionals.
43334         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
43335         (mbscasecmp): Assume mbrtowc function.
43336         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
43337         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
43338         * lib/mbschr.c: Include mbuiter.h unconditionally.
43339         (mbschr): Assume mbrtowc function.
43340         * lib/mbscspn.c: Include mbuiter.h unconditionally.
43341         (mbscspn): Assume mbrtowc function.
43342         * lib/mbslen.c: Include mbuiter.h unconditionally.
43343         (mbslen): Assume mbrtowc function.
43344         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
43345         (mbsncasecmp): Assume mbrtowc function.
43346         * lib/mbsnlen.c: Include mbiter.h unconditionally.
43347         (mbsnlen): Assume mbrtowc function.
43348         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
43349         (mbspbrk): Assume mbrtowc function.
43350         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
43351         (mbspcasecmp): Assume mbrtowc function.
43352         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
43353         (mbsrchr): Assume mbrtowc function.
43354         * lib/mbssep.c: Include mbuiter.h unconditionally.
43355         (mbssep): Assume mbrtowc function.
43356         * lib/mbsspn.c: Include mbuiter.h unconditionally.
43357         (mbsspn): Assume mbrtowc function.
43358         * lib/mbsstr.c: Include mbuiter.h unconditionally.
43359         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
43360         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
43361         (mbstok_r): Assume mbrtowc function.
43362         * lib/propername.c: Include mbuiter.h unconditionally.
43363         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
43364         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
43365         (trim2): Assume mbrtowc function.
43366         * lib/mbswidth.c (mbsinit): Remove fallback definition.
43367         (mbsnwidth): Assume mbrtowc function.
43368         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
43369         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
43370         fallback definitions.
43371         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
43372
43373 2008-12-22  Bruno Haible  <bruno@clisp.org>
43374
43375         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
43376
43377 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
43378
43379         * modules/regex: Request emulations for the mb*/wc* functions we need.
43380         * m4/regex.m4: Don't look for those functions here.
43381         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
43382
43383 2008-12-22  Bruno Haible  <bruno@clisp.org>
43384
43385         * modules/fnmatch (Depends-on): Remove duplicated dependency.
43386
43387 2008-12-21  Bruno Haible  <bruno@clisp.org>
43388
43389         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
43390         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
43391         (Include): Remove conditionalization.
43392         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
43393         (Include): Remove conditionalization.
43394         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
43395         (Include): Remove conditionalization.
43396         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
43397         * m4/mbfile.m4 (gl_MBFILE): Likewise.
43398         * NEWS: Mention the change.
43399         Reported by Alan Hourihane <alanh@fairlite.co.uk>
43400         via Sergey Poznyakoff <gray@gnu.org.ua>.
43401
43402 2008-12-21  Bruno Haible  <bruno@clisp.org>
43403
43404         * MODULES.html.sh (Extended multibyte and wide character utilities
43405         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
43406         wcrtomb, wcsrtombs.
43407         (Support for systems lacking POSIX:2008): Add accept, bind, close,
43408         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
43409         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
43410         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
43411
43412 2008-12-21  Bruno Haible  <bruno@clisp.org>
43413
43414         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
43415
43416 2008-12-21  Bruno Haible  <bruno@clisp.org>
43417
43418         * modules/wcsnrtombs-tests: New file.
43419         * tests/test-wcsnrtombs1.sh: New file.
43420         * tests/test-wcsnrtombs2.sh: New file.
43421         * tests/test-wcsnrtombs3.sh: New file.
43422         * tests/test-wcsnrtombs4.sh: New file.
43423         * tests/test-wcsnrtombs.c: New file.
43424
43425         New module 'wcsnrtombs'.
43426         * lib/wchar.in.h (wcsnrtombs): New declaration.
43427         * lib/wcsnrtombs.c: New file.
43428         * lib/wcsrtombs-state.c: New file.
43429         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
43430         (internal_state): Remove variable.
43431         * m4/wcsnrtombs.m4: New file.
43432         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
43433         compilation units.
43434         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
43435         HAVE_WCSNRTOMBS.
43436         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
43437         HAVE_WCSNRTOMBS.
43438         * modules/wcsnrtombs: New file.
43439         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
43440         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
43441
43442 2008-12-21  Bruno Haible  <bruno@clisp.org>
43443
43444         * modules/wcsrtombs-tests: New file.
43445         * tests/test-wcsrtombs1.sh: New file.
43446         * tests/test-wcsrtombs2.sh: New file.
43447         * tests/test-wcsrtombs3.sh: New file.
43448         * tests/test-wcsrtombs4.sh: New file.
43449         * tests/test-wcsrtombs.c: New file.
43450
43451         New module 'wcsrtombs'.
43452         * lib/wchar.in.h (wcsrtombs): New declaration.
43453         * lib/wcsrtombs.c: New file.
43454         * m4/wcsrtombs.m4: New file.
43455         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
43456         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43457         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
43458         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43459         * modules/wcsrtombs: New file.
43460         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
43461         bugs.
43462
43463 2008-12-21  Bruno Haible  <bruno@clisp.org>
43464
43465         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
43466         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
43467         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
43468         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
43469         if not correct.
43470         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
43471         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
43472         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43473         m4/locale-zh.m4, m4/codeset.m4.
43474         * doc/posix-functions/wcrtomb.texi: Document the bug.
43475
43476 2008-12-21  Bruno Haible  <bruno@clisp.org>
43477
43478         Work around a btowc() bug on IRIX 6.5.
43479         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
43480         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
43481         REPLACE_WTOBC if not.
43482         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
43483         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
43484         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
43485
43486 2008-12-21  Bruno Haible  <bruno@clisp.org>
43487
43488         * modules/wcrtomb-tests: New file.
43489         * tests/test-wcrtomb.sh: New file.
43490         * tests/test-wcrtomb.c: New file.
43491
43492         New module 'wcrtomb'.
43493         * lib/wchar.in.h (wcrtomb): New declaration.
43494         * lib/wcrtomb.c: New file.
43495         * m4/wcrtomb.m4: New file.
43496         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
43497         HAVE_WCRTOMB.
43498         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
43499         HAVE_WCRTOMB.
43500         * modules/wcrtomb: New file.
43501         * doc/posix-functions/wcrtomb.texi: Mention the new module.
43502
43503 2008-12-21  Bruno Haible  <bruno@clisp.org>
43504
43505         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
43506         * modules/mbsrtowcs (Files): Likewise.
43507         * modules/wctob (Files): Likewise.
43508         * modules/c-strcase-tests (Files): Likewise.
43509         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
43510         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
43511         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
43512         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
43513         * modules/vasnprintf-posix-tests (Files): Likewise.
43514
43515 2008-12-21  William Pursell  <bill.pursell@gmail.com>
43516
43517         gitlog-to-changelog: pass all command-line arguments to git-log
43518         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
43519         it is sometimes convenient to filter the commits in various ways.
43520         gitlog-to-changelog only allows --since to specify a start date,
43521         but git-log itself supports many other filtering mechanisms.
43522         At the moment, I want to filter by branch name.  Rather than
43523         adding a --branch option to gitlog-to-changelog, it seems more
43524         flexible to simply pass all options directly to git-log and let
43525         git do the work.  Notice that this effectively makes --since a
43526         redundant option for gitlog-to-changelog, but removing it would
43527         require current usage to change since calls would then require
43528         an additional '--'.
43529
43530 2008-12-21  Bruno Haible  <bruno@clisp.org>
43531
43532         * modules/mbsnrtowcs-tests: New file.
43533         * tests/test-mbsnrtowcs1.sh: New file.
43534         * tests/test-mbsnrtowcs2.sh: New file.
43535         * tests/test-mbsnrtowcs3.sh: New file.
43536         * tests/test-mbsnrtowcs4.sh: New file.
43537         * tests/test-mbsnrtowcs.c: New file.
43538
43539         New module 'mbsnrtowcs'.
43540         * lib/wchar.in.h (mbsnrtowcs): New declaration.
43541         * lib/mbsnrtowcs.c: New file.
43542         * lib/mbsrtowcs-state.c: New file.
43543         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
43544         (internal_state): Remove variable.
43545         * m4/mbsnrtowcs.m4: New file.
43546         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
43547         compilation units.
43548         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
43549         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43550         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
43551         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43552         * modules/mbsnrtowcs: New file.
43553         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
43554         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
43555         portability problem.
43556
43557 2008-12-21  Bruno Haible  <bruno@clisp.org>
43558
43559         Work around mbsrtowcs bug.
43560         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
43561         (gl_FUNC_MBSRTOWCS): Invoke it.
43562         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43563         m4/locale-zh.m4.
43564         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
43565
43566 2008-12-21  Bruno Haible  <bruno@clisp.org>
43567
43568         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
43569
43570 2008-12-21  Bruno Haible  <bruno@clisp.org>
43571
43572         Update doc for AIX.
43573         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
43574         16-bit wchar_t type.
43575         * doc/posix-functions/btowc.texi: Likewise.
43576         * doc/posix-functions/fgetwc.texi: Likewise.
43577         * doc/posix-functions/fgetws.texi: Likewise.
43578         * doc/posix-functions/fputwc.texi: Likewise.
43579         * doc/posix-functions/fputws.texi: Likewise.
43580         * doc/posix-functions/fwide.texi: Likewise.
43581         * doc/posix-functions/fwprintf.texi: Likewise.
43582         * doc/posix-functions/fwscanf.texi: Likewise.
43583         * doc/posix-functions/getwchar.texi: Likewise.
43584         * doc/posix-functions/getwc.texi: Likewise.
43585         * doc/posix-functions/iswalnum.texi: Likewise.
43586         * doc/posix-functions/iswalpha.texi: Likewise.
43587         * doc/posix-functions/iswblank.texi: Likewise.
43588         * doc/posix-functions/iswcntrl.texi: Likewise.
43589         * doc/posix-functions/iswctype.texi: Likewise.
43590         * doc/posix-functions/iswdigit.texi: Likewise.
43591         * doc/posix-functions/iswgraph.texi: Likewise.
43592         * doc/posix-functions/iswlower.texi: Likewise.
43593         * doc/posix-functions/iswprint.texi: Likewise.
43594         * doc/posix-functions/iswpunct.texi: Likewise.
43595         * doc/posix-functions/iswspace.texi: Likewise.
43596         * doc/posix-functions/iswupper.texi: Likewise.
43597         * doc/posix-functions/iswxdigit.texi: Likewise.
43598         * doc/posix-functions/mbrtowc.texi: Likewise.
43599         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43600         * doc/posix-functions/mbstowcs.texi: Likewise.
43601         * doc/posix-functions/mbtowc.texi: Likewise.
43602         * doc/posix-functions/putwchar.texi: Likewise.
43603         * doc/posix-functions/putwc.texi: Likewise.
43604         * doc/posix-functions/swprintf.texi: Likewise.
43605         * doc/posix-functions/tolower.texi: Likewise.
43606         * doc/posix-functions/toupper.texi: Likewise.
43607         * doc/posix-functions/towctrans.texi: Likewise.
43608         * doc/posix-functions/ungetwc.texi: Likewise.
43609         * doc/posix-functions/vswprintf.texi: Likewise.
43610         * doc/posix-functions/wcrtomb.texi: Likewise.
43611         * doc/posix-functions/wcscat.texi: Likewise.
43612         * doc/posix-functions/wcschr.texi: Likewise.
43613         * doc/posix-functions/wcscmp.texi: Likewise.
43614         * doc/posix-functions/wcscoll.texi: Likewise.
43615         * doc/posix-functions/wcscpy.texi: Likewise.
43616         * doc/posix-functions/wcscspn.texi: Likewise.
43617         * doc/posix-functions/wcsftime.texi: Likewise.
43618         * doc/posix-functions/wcslen.texi: Likewise.
43619         * doc/posix-functions/wcsncat.texi: Likewise.
43620         * doc/posix-functions/wcsncmp.texi: Likewise.
43621         * doc/posix-functions/wcsncpy.texi: Likewise.
43622         * doc/posix-functions/wcspbrk.texi: Likewise.
43623         * doc/posix-functions/wcsrchr.texi: Likewise.
43624         * doc/posix-functions/wcsrtombs.texi: Likewise.
43625         * doc/posix-functions/wcsspn.texi: Likewise.
43626         * doc/posix-functions/wcsstr.texi: Likewise.
43627         * doc/posix-functions/wcstod.texi: Likewise.
43628         * doc/posix-functions/wcstof.texi: Likewise.
43629         * doc/posix-functions/wcstoimax.texi: Likewise.
43630         * doc/posix-functions/wcstok.texi: Likewise.
43631         * doc/posix-functions/wcstold.texi: Likewise.
43632         * doc/posix-functions/wcstoll.texi: Likewise.
43633         * doc/posix-functions/wcstol.texi: Likewise.
43634         * doc/posix-functions/wcstombs.texi: Likewise.
43635         * doc/posix-functions/wcstoull.texi: Likewise.
43636         * doc/posix-functions/wcstoul.texi: Likewise.
43637         * doc/posix-functions/wcstoumax.texi: Likewise.
43638         * doc/posix-functions/wcswidth.texi: Likewise.
43639         * doc/posix-functions/wcsxfrm.texi: Likewise.
43640         * doc/posix-functions/wctob.texi: Likewise.
43641         * doc/posix-functions/wctomb.texi: Likewise.
43642         * doc/posix-functions/wctrans.texi: Likewise.
43643         * doc/posix-functions/wctype.texi: Likewise.
43644         * doc/posix-functions/wcwidth.texi: Likewise.
43645         * doc/posix-functions/wmemchr.texi: Likewise.
43646         * doc/posix-functions/wmemcmp.texi: Likewise.
43647         * doc/posix-functions/wmemcpy.texi: Likewise.
43648         * doc/posix-functions/wmemmove.texi: Likewise.
43649         * doc/posix-functions/wmemset.texi: Likewise.
43650         * doc/posix-functions/wprintf.texi: Likewise.
43651         * doc/posix-functions/wscanf.texi: Likewise.
43652
43653 2008-12-21  Bruno Haible  <bruno@clisp.org>
43654
43655         Update doc for HP-UX 11.11.
43656         * doc/posix-functions/btowc.texi: Clarify that the function is missing
43657         in HP-UX version 11.00, not in all versions of HP-UX 11.
43658         * doc/posix-functions/fwide.texi: Likewise.
43659         * doc/posix-functions/fwprintf.texi: Likewise.
43660         * doc/posix-functions/fwscanf.texi: Likewise.
43661         * doc/posix-functions/inet_ntop.texi: Likewise.
43662         * doc/posix-functions/inet_pton.texi: Likewise.
43663         * doc/posix-functions/mbrlen.texi: Likewise.
43664         * doc/posix-functions/mbrtowc.texi: Likewise.
43665         * doc/posix-functions/mbsinit.texi: Likewise.
43666         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43667         * doc/posix-functions/swprintf.texi: Likewise.
43668         * doc/posix-functions/swscanf.texi: Likewise.
43669         * doc/posix-functions/towctrans.texi: Likewise.
43670         * doc/posix-functions/vfwprintf.texi: Likewise.
43671         * doc/posix-functions/vswprintf.texi: Likewise.
43672         * doc/posix-functions/vwprintf.texi: Likewise.
43673         * doc/posix-functions/wcrtomb.texi: Likewise.
43674         * doc/posix-functions/wcsrtombs.texi: Likewise.
43675         * doc/posix-functions/wcsstr.texi: Likewise.
43676         * doc/posix-functions/wctob.texi: Likewise.
43677         * doc/posix-functions/wctrans.texi: Likewise.
43678         * doc/posix-functions/wmemchr.texi: Likewise.
43679         * doc/posix-functions/wmemcmp.texi: Likewise.
43680         * doc/posix-functions/wmemcpy.texi: Likewise.
43681         * doc/posix-functions/wmemmove.texi: Likewise.
43682         * doc/posix-functions/wmemset.texi: Likewise.
43683         * doc/posix-functions/wprintf.texi: Likewise.
43684         * doc/posix-functions/wscanf.texi: Likewise.
43685
43686 2008-12-21  Bruno Haible  <bruno@clisp.org>
43687
43688         Work around a portability problem.
43689         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
43690         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
43691
43692 2008-12-20  Bruno Haible  <bruno@clisp.org>
43693
43694         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
43695         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
43696         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
43697         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
43698         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
43699
43700         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
43701         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
43702         set.
43703         (GNULIB_defined_mbstate_t): New macro.
43704         (mbsinit): Redefine if REPLACE_MBSINIT is set.
43705         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
43706         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
43707         reuses the system's mbrtowc function but works around the bugs.
43708         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
43709         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
43710         macros.
43711         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
43712         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
43713         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
43714         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
43715         REPLACE_MBSINIT if mbsinit needs to be overridden.
43716         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
43717         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43718         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
43719         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43720         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43721         m4/locale-zh.m4.
43722         (Depends): Add mbsinit.
43723         * modules/mbsinit (Depends): Add mbrtowc.
43724         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
43725
43726 2008-12-20  Bruno Haible  <bruno@clisp.org>
43727
43728         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
43729         so that there are no conversion errors on AIX.
43730         * tests/test-mbsrtowcs.c (main): LIkewise.
43731
43732 2008-12-20  Bruno Haible  <bruno@clisp.org>
43733
43734         Work around wctob bug on Solaris <= 9.
43735         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
43736         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
43737         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
43738         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
43739         * modules/wctob (Files): Add m4/locale-fr.m4.
43740         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
43741
43742 2008-12-20  Bruno Haible  <bruno@clisp.org>
43743
43744         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
43745         /dev/null.
43746         * tests/test-select-in.sh: Likewise.
43747         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43748
43749 2008-12-20  Bruno Haible  <bruno@clisp.org>
43750
43751         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
43752         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
43753         Cygwin 1.5.x.
43754
43755 2008-12-20  Bruno Haible  <bruno@clisp.org>
43756
43757         Ensure mbstate_t is defined on HP-UX 11.11.
43758         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
43759         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
43760         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
43761         AC_USE_SYSTEM_EXTENSIONS.
43762         * modules/fnmatch (Depends-on): Add extensions.
43763         * modules/mbrlen (Depends-on): Likewise.
43764         * modules/mbrtowc (Depends-on): Likewise.
43765         * modules/mbsinit (Depends-on): Likewise.
43766         * modules/mbsrtowcs (Depends-on): Likewise.
43767         * modules/mbswidth (Depends-on): Likewise.
43768         * modules/quotearg (Depends-on): Likewise.
43769         * modules/strftime (Depends-on): Likewise.
43770
43771 2008-12-20  Bruno Haible  <bruno@clisp.org>
43772
43773         Ensure wctob is declared on IRIX 6.5.
43774         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
43775         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
43776         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
43777         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
43778         of HAVE_WCTOB.
43779         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
43780         HAVE_WCTOB.
43781         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
43782
43783 2008-12-19  Bruno Haible  <bruno@clisp.org>
43784
43785         * modules/mbsrtowcs-tests: New file.
43786         * tests/test-mbsrtowcs1.sh: New file.
43787         * tests/test-mbsrtowcs2.sh: New file.
43788         * tests/test-mbsrtowcs3.sh: New file.
43789         * tests/test-mbsrtowcs4.sh: New file.
43790         * tests/test-mbsrtowcs.c: New file.
43791
43792         New module 'mbsrtowcs'.
43793         * lib/wchar.in.h (mbsrtowcs): New declaration.
43794         * lib/mbsrtowcs.c: New file.
43795         * m4/mbsrtowcs.m4: New file.
43796         * modules/mbsrtowcs: New file.
43797         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
43798         HAVE_MBSRTOWCS.
43799         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
43800         HAVE_MBSRTOWCS.
43801         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
43802
43803 2008-12-19  Bruno Haible  <bruno@clisp.org>
43804
43805         New module 'mbrlen'.
43806         * lib/wchar.in.h (mbrlen): New declaration.
43807         * lib/mbrlen.c: New file.
43808         * m4/mbrlen.m4: New file.
43809         * modules/mbrlen: New file.
43810         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
43811         HAVE_MBRLEN.
43812         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
43813         HAVE_MBRLEN.
43814         * doc/posix-functions/mbrlen.texi: Document the new module.
43815
43816 2008-12-19  Bruno Haible  <bruno@clisp.org>
43817
43818         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
43819         * modules/mbrtowc (Depends-on): Add verify.
43820         Suggested by Paul Eggert.
43821
43822 2008-12-18  Bruno Haible  <bruno@clisp.org>
43823
43824         * modules/mbsinit-tests: New file.
43825         * tests/test-mbsinit.sh: New file.
43826         * tests/test-mbsinit.c: New file.
43827
43828 2008-12-18  Bruno Haible  <bruno@clisp.org>
43829
43830         * modules/mbrtowc-tests: New file.
43831         * tests/test-mbrtowc1.sh: New file.
43832         * tests/test-mbrtowc2.sh: New file.
43833         * tests/test-mbrtowc3.sh: New file.
43834         * tests/test-mbrtowc4.sh: New file.
43835         * tests/test-mbrtowc.c: New file.
43836
43837         New module 'mbrtowc'.
43838         * lib/wchar.in.h (mbstate_t): Override when the system does not have
43839         mbsinit and mbrtowc.
43840         (mbrtowc): New declaration.
43841         * lib/mbrtowc.c: New file.
43842         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
43843         * modules/mbrtowc: New file.
43844         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
43845         HAVE_MBRTOWC.
43846         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
43847         HAVE_MBRTOWC.
43848         * doc/posix-functions/mbrtowc.texi: Document the new module.
43849
43850 2008-12-18  Bruno Haible  <bruno@clisp.org>
43851
43852         New module 'wctob'.
43853         * lib/wchar.in.h (wctob): New declaration.
43854         * lib/wctob.c: New file.
43855         * m4/wctob.m4: New file.
43856         * modules/wctob: New file.
43857         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
43858         HAVE_WCTOB.
43859         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
43860         * doc/posix-functions/wctob.texi: Document the new module.
43861
43862 2008-12-18  Bruno Haible  <bruno@clisp.org>
43863
43864         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
43865         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
43866
43867 2008-12-18  Simon Josefsson  <simon@josefsson.org>
43868
43869         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
43870         G. Christensen" <tgc@jupiterrise.com>.
43871
43872         * lib/flock.c: Need to include errno.h.  Reported by "Tom
43873         G. Christensen" <tgc@jupiterrise.com>.
43874
43875         * lib/flock.c: Need to include string.h.  Reported by "Tom
43876         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
43877         <ebb9@byu.net>.
43878
43879 2008-12-18  Bruno Haible  <bruno@clisp.org>
43880
43881         * m4/locale-ja.m4: New file, from GNU gettext.
43882
43883 2008-12-17  Bruno Haible  <bruno@clisp.org>
43884
43885         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
43886         Suggested by Eric Blake.
43887
43888 2008-12-17  Bruno Haible  <bruno@clisp.org>
43889
43890         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
43891
43892 2008-12-17  Bruno Haible  <bruno@clisp.org>
43893
43894         * lib/mbsinit.c: Include verify.h. Verify an assumption.
43895         * modules/mbsinit (Depends-on): Add verify.
43896         Suggested by Paul Eggert.
43897
43898 2008-12-17  Bruno Haible  <bruno@clisp.org>
43899
43900         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
43901         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
43902         gl_FUNC_MBRTOWC.
43903         * m4/mbiter.m4 (gl_MBITER): LIkewise.
43904         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
43905         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
43906         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
43907         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
43908         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
43909         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
43910         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
43911         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
43912         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
43913         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
43914         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
43915         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
43916         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
43917         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
43918         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43919         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
43920         * modules/trim (configure.ac): Likewise.
43921
43922 2008-12-17  Bruno Haible  <bruno@clisp.org>
43923
43924         * modules/btowc-tests: New file.
43925         * tests/test-btowc1.sh: New file.
43926         * tests/test-btowc2.sh: New file.
43927         * tests/test-btowc.c: New file.
43928
43929         New module 'btowc'.
43930         * lib/wchar.in.h (btowc): New declaration.
43931         * lib/btowc.c: New file.
43932         * m4/btowc.m4: New file.
43933         * modules/btowc: New file.
43934         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
43935         HAVE_BTOWC.
43936         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
43937         * doc/posix-functions/btowc.texi: Document the new module.
43938
43939 2008-12-17  Bruno Haible  <bruno@clisp.org>
43940
43941         New module 'mbsinit'.
43942         * lib/wchar.in.h (mbsinit): New declaration.
43943         * lib/mbsinit.c: New file.
43944         * m4/mbsinit.m4: New file.
43945         * modules/mbsinit: New file.
43946         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
43947         HAVE_MBSINIT.
43948         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
43949         HAVE_MBSINIT.
43950         * doc/posix-functions/mbsinit.texi: Document the new module.
43951
43952 2008-12-16  Bruno Haible  <bruno@clisp.org>
43953
43954         * lib/unistd.in.h: Add comment.
43955         * tests/test-environ.c: Don't include <stdlib.h>.
43956
43957 2008-12-16  Bruno Haible  <bruno@clisp.org>
43958
43959         * lib/parse-duration.h (parse_duration): Document return value
43960         convention.
43961         * lib/parse-duration.c: Include specification header first. Add
43962         comments.
43963         (_): Remove macro.
43964         (parse_year_month_day, parse_hour_minute_second): Move side effects
43965         outside of strchr call.
43966         (parse_non_iso8601): Move side effects outside of isspace call.
43967         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
43968         call.
43969
43970 2008-12-16  Bruno Haible  <bruno@clisp.org>
43971
43972         * tests/test-parse-duration.sh: Produce no output when the test
43973         succeeds.
43974
43975 2008-12-16  Bruno Haible  <bruno@clisp.org>
43976
43977         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
43978         expressions.
43979
43980 2008-12-15  Bruno Haible  <bruno@clisp.org>
43981
43982         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
43983         * doc/glibc-functions/flistxattr.texi: Likewise.
43984         * doc/glibc-functions/fopencookie.texi: Likewise.
43985         * doc/glibc-functions/fremovexattr.texi: Likewise.
43986         * doc/glibc-functions/fsetxattr.texi: Likewise.
43987         * doc/glibc-functions/getxattr.texi: Likewise.
43988         * doc/glibc-functions/lgetxattr.texi: Likewise.
43989         * doc/glibc-functions/listxattr.texi: Likewise.
43990         * doc/glibc-functions/llistxattr.texi: Likewise.
43991         * doc/glibc-functions/lremovexattr.texi: Likewise.
43992         * doc/glibc-functions/lsetxattr.texi: Likewise.
43993         * doc/glibc-functions/removexattr.texi: Likewise.
43994         * doc/glibc-functions/setxattr.texi: Likewise.
43995         * doc/posix-functions/open_memstream.texi: Likewise.
43996
43997 2008-12-15  Eric Blake  <ebb9@byu.net>
43998
43999         Update doc for cygwin 1.7.
44000         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
44001         functions.
44002         * doc/posix-functions/fchmodat.texi: Likewise.
44003         * doc/posix-functions/fchownat.texi: Likewise.
44004         * doc/posix-functions/fdopendir.texi: Likewise.
44005         * doc/posix-functions/fmemopen.texi: Likewise.
44006         * doc/posix-functions/freeaddrinfo.texi: Likewise.
44007         * doc/posix-functions/fstatat.texi: Likewise.
44008         * doc/posix-functions/futimens.texi: Likewise.
44009         * doc/posix-functions/gai_strerror.texi: Likewise.
44010         * doc/posix-functions/getaddrinfo.texi: Likewise.
44011         * doc/posix-functions/getnameinfo.texi: Likewise.
44012         * doc/posix-functions/if_freenameindex.texi: Likewise.
44013         * doc/posix-functions/if_indextoname.texi: Likewise.
44014         * doc/posix-functions/if_nameindex.texi: Likewise.
44015         * doc/posix-functions/if_nametoindex.texi: Likewise.
44016         * doc/posix-functions/insque.texi: Likewise.
44017         * doc/posix-functions/linkat.texi: Likewise.
44018         * doc/posix-functions/llrint.texi: Likewise.
44019         * doc/posix-functions/llrintf.texi: Likewise.
44020         * doc/posix-functions/llrintl.texi: Likewise.
44021         * doc/posix-functions/lockf.texi: Likewise.
44022         * doc/posix-functions/lrintl.texi: Likewise.
44023         * doc/posix-functions/mkdirat.texi: Likewise.
44024         * doc/posix-functions/mkfifoat.texi: Likewise.
44025         * doc/posix-functions/mknodat.texi: Likewise.
44026         * doc/posix-functions/mq_close.texi: Likewise.
44027         * doc/posix-functions/mq_getattr.texi: Likewise.
44028         * doc/posix-functions/mq_notify.texi: Likewise.
44029         * doc/posix-functions/mq_open.texi: Likewise.
44030         * doc/posix-functions/mq_receive.texi: Likewise.
44031         * doc/posix-functions/mq_send.texi: Likewise.
44032         * doc/posix-functions/mq_setattr.texi: Likewise.
44033         * doc/posix-functions/mq_timedreceive.texi: Likewise.
44034         * doc/posix-functions/mq_timedsend.texi: Likewise.
44035         * doc/posix-functions/mq_unlink.texi: Likewise.
44036         * doc/posix-functions/open_memstream.texi: Likewise.
44037         * doc/posix-functions/openat.texi: Likewise.
44038         * doc/posix-functions/posix_fadvise.texi: Likewise.
44039         * doc/posix-functions/posix_fallocate.texi: Likewise.
44040         * doc/posix-functions/posix_madvise.texi: Likewise.
44041         * doc/posix-functions/posix_memalign.texi: Likewise.
44042         * doc/posix-functions/posix_openpt.texi: Likewise.
44043         * doc/posix-functions/readlinkat.texi: Likewise.
44044         * doc/posix-functions/remque.texi: Likewise.
44045         * doc/posix-functions/renameat.texi: Likewise.
44046         * doc/posix-functions/rintl.texi: Likewise.
44047         * doc/posix-functions/sem_unlink.texi: Likewise.
44048         * doc/posix-functions/shm_open.texi: Likewise.
44049         * doc/posix-functions/shm_unlink.texi: Likewise.
44050         * doc/posix-functions/signgam.texi: Likewise.
44051         * doc/posix-functions/sigset.texi: Likewise.
44052         * doc/posix-functions/stpcpy.texi: Likewise.
44053         * doc/posix-functions/stpncpy.texi: Likewise.
44054         * doc/posix-functions/strerror.texi: Likewise.
44055         * doc/posix-functions/strtod.texi: Likewise.
44056         * doc/posix-functions/symlinkat.texi: Likewise.
44057         * doc/posix-functions/unlinkat.texi: Likewise.
44058         * doc/posix-functions/utimensat.texi: Likewise.
44059         * doc/glibc-functions/bindresvport.texi: Likewise.
44060         * doc/glibc-functions/dn_expand.texi: Likewise.
44061         * doc/glibc-functions/exp10.texi: Likewise.
44062         * doc/glibc-functions/exp10f.texi: Likewise.
44063         * doc/glibc-functions/fgetxattr.texi: Likewise.
44064         * doc/glibc-functions/flistxattr.texi: Likewise.
44065         * doc/glibc-functions/fopencookie.texi: Likewise.
44066         * doc/glibc-functions/freeifaddrs.texi: Likewise.
44067         * doc/glibc-functions/fremovexattr.texi: Likewise.
44068         * doc/glibc-functions/fsetxattr.texi: Likewise.
44069         * doc/glibc-functions/getifaddrs.texi: Likewise.
44070         * doc/glibc-functions/getxattr.texi: Likewise.
44071         * doc/glibc-functions/lgetxattr.texi: Likewise.
44072         * doc/glibc-functions/listxattr.texi: Likewise.
44073         * doc/glibc-functions/llistxattr.texi: Likewise.
44074         * doc/glibc-functions/lremovexattr.texi: Likewise.
44075         * doc/glibc-functions/lsetxattr.texi: Likewise.
44076         * doc/glibc-functions/pow10.texi: Likewise.
44077         * doc/glibc-functions/pow10f.texi: Likewise.
44078         * doc/glibc-functions/rcmd_af.texi: Likewise.
44079         * doc/glibc-functions/removexattr.texi: Likewise.
44080         * doc/glibc-functions/res_init.texi: Likewise.
44081         * doc/glibc-functions/res_mkquery.texi: Likewise.
44082         * doc/glibc-functions/res_query.texi: Likewise.
44083         * doc/glibc-functions/res_querydomain.texi: Likewise.
44084         * doc/glibc-functions/res_send.texi: Likewise.
44085         * doc/glibc-functions/rresvport_af.texi: Likewise.
44086         * doc/glibc-functions/setxattr.texi: Likewise.
44087         * doc/glibc-functions/strcasestr.texi: Likewise.
44088
44089 2008-12-15  Bruno Haible  <bruno@clisp.org>
44090
44091         Fix compilation error on OSF/1 4.0.
44092         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
44093         <sys/time.h>, simply delegate to the system header.
44094         Reported by Daniel Richard G. <oss@teragram.com>.
44095
44096 2008-12-15  Bruno Haible  <bruno@clisp.org>
44097
44098         * doc/posix-functions/openat.texi: Mention the 'openat' module.
44099         * doc/posix-functions/fchmodat.texi: Likewise.
44100         * doc/posix-functions/fchownat.texi: Likewise.
44101         * doc/posix-functions/fdopendir.texi: Likewise.
44102         * doc/posix-functions/fstatat.texi: Likewise.
44103         * doc/posix-functions/mkdirat.texi: Likewise.
44104         * doc/posix-functions/unlinkat.texi: Likewise.
44105
44106 2008-12-14  Bruno Haible  <bruno@clisp.org>
44107
44108         Update doc for POSIX:2008.
44109         * doc/posix-functions/faccessat.texi: New file.
44110         * doc/posix-functions/fchmodat.texi: New file.
44111         * doc/posix-functions/fchownat.texi: New file.
44112         * doc/posix-functions/fdopendir.texi: New file.
44113         * doc/posix-functions/fstatat.texi: New file.
44114         * doc/posix-functions/futimens.texi: New file.
44115         * doc/posix-functions/linkat.texi: New file.
44116         * doc/posix-functions/mkdirat.texi: New file.
44117         * doc/posix-functions/mkfifoat.texi: New file.
44118         * doc/posix-functions/mknodat.texi: New file.
44119         * doc/posix-functions/open_wmemstream.texi: New file.
44120         * doc/posix-functions/openat.texi: New file.
44121         * doc/posix-functions/psiginfo.texi: New file.
44122         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
44123         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
44124         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
44125         * doc/posix-functions/readlinkat.texi: New file.
44126         * doc/posix-functions/renameat.texi: New file.
44127         * doc/posix-functions/strerror_l.texi: New file.
44128         * doc/posix-functions/symlinkat.texi: New file.
44129         * doc/posix-functions/unlinkat.texi: New file.
44130         * doc/posix-functions/utimensat.texi: New file.
44131         * doc/gnulib.texi (Function Substitutes): Add these subsections.
44132
44133 2008-12-14  Bruno Haible  <bruno@clisp.org>
44134
44135         Update doc for POSIX:2008.
44136         * doc/posix-functions/alphasort.texi: Renamed from
44137         doc/glibc-functions/alphasort.texi.
44138         * doc/posix-functions/dirfd.texi: Renamed from
44139         doc/glibc-functions/dirfd.texi.
44140         * doc/posix-functions/dprintf.texi: Renamed from
44141         doc/glibc-functions/dprintf.texi.
44142         * doc/posix-functions/duplocale.texi: Renamed from
44143         doc/glibc-functions/duplocale.texi.
44144         * doc/posix-functions/fexecve.texi: Renamed from
44145         doc/glibc-functions/fexecve.texi.
44146         * doc/posix-functions/fmemopen.texi: Renamed from
44147         doc/glibc-functions/fmemopen.texi.
44148         * doc/posix-functions/freelocale.texi: Renamed from
44149         doc/glibc-functions/freelocale.texi.
44150         * doc/posix-functions/getdate_err.texi: Renamed from
44151         doc/glibc-functions/getdate_err.texi.
44152         * doc/posix-functions/isalnum_l.texi: Renamed from
44153         doc/glibc-functions/isalnum_l.texi.
44154         * doc/posix-functions/isalpha_l.texi: Renamed from
44155         doc/glibc-functions/isalpha_l.texi.
44156         * doc/posix-functions/isblank_l.texi: Renamed from
44157         doc/glibc-functions/isblank_l.texi.
44158         * doc/posix-functions/iscntrl_l.texi: Renamed from
44159         doc/glibc-functions/iscntrl_l.texi.
44160         * doc/posix-functions/isdigit_l.texi: Renamed from
44161         doc/glibc-functions/isdigit_l.texi.
44162         * doc/posix-functions/isgraph_l.texi: Renamed from
44163         doc/glibc-functions/isgraph_l.texi.
44164         * doc/posix-functions/islower_l.texi: Renamed from
44165         doc/glibc-functions/islower_l.texi.
44166         * doc/posix-functions/isprint_l.texi: Renamed from
44167         doc/glibc-functions/isprint_l.texi.
44168         * doc/posix-functions/ispunct_l.texi: Renamed from
44169         doc/glibc-functions/ispunct_l.texi.
44170         * doc/posix-functions/isspace_l.texi: Renamed from
44171         doc/glibc-functions/isspace_l.texi.
44172         * doc/posix-functions/isupper_l.texi: Renamed from
44173         doc/glibc-functions/isupper_l.texi.
44174         * doc/posix-functions/iswalnum_l.texi: Renamed from
44175         doc/glibc-functions/iswalnum_l.texi.
44176         * doc/posix-functions/iswalpha_l.texi: Renamed from
44177         doc/glibc-functions/iswalpha_l.texi.
44178         * doc/posix-functions/iswblank_l.texi: Renamed from
44179         doc/glibc-functions/iswblank_l.texi.
44180         * doc/posix-functions/iswcntrl_l.texi: Renamed from
44181         doc/glibc-functions/iswcntrl_l.texi.
44182         * doc/posix-functions/iswctype_l.texi: Renamed from
44183         doc/glibc-functions/iswctype_l.texi.
44184         * doc/posix-functions/iswdigit_l.texi: Renamed from
44185         doc/glibc-functions/iswdigit_l.texi.
44186         * doc/posix-functions/iswgraph_l.texi: Renamed from
44187         doc/glibc-functions/iswgraph_l.texi.
44188         * doc/posix-functions/iswlower_l.texi: Renamed from
44189         doc/glibc-functions/iswlower_l.texi.
44190         * doc/posix-functions/iswprint_l.texi: Renamed from
44191         doc/glibc-functions/iswprint_l.texi.
44192         * doc/posix-functions/iswpunct_l.texi: Renamed from
44193         doc/glibc-functions/iswpunct_l.texi.
44194         * doc/posix-functions/iswspace_l.texi: Renamed from
44195         doc/glibc-functions/iswspace_l.texi.
44196         * doc/posix-functions/iswupper_l.texi: Renamed from
44197         doc/glibc-functions/iswupper_l.texi.
44198         * doc/posix-functions/iswxdigit_l.texi: Renamed from
44199         doc/glibc-functions/iswxdigit_l.texi.
44200         * doc/posix-functions/isxdigit_l.texi: Renamed from
44201         doc/glibc-functions/isxdigit_l.texi.
44202         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
44203         doc/glibc-functions/mbsnrtowcs.texi.
44204         * doc/posix-functions/mkdtemp.texi: Renamed from
44205         doc/glibc-functions/mkdtemp.texi.
44206         * doc/posix-functions/newlocale.texi: Renamed from
44207         doc/glibc-functions/newlocale.texi.
44208         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
44209         doc/glibc-functions/nl_langinfo_l.texi.
44210         * doc/posix-functions/open_memstream.texi: Renamed from
44211         doc/glibc-functions/open_memstream.texi.
44212         * doc/posix-functions/opterr.texi: Renamed from
44213         doc/glibc-functions/opterr.texi.
44214         * doc/posix-functions/optind.texi: Renamed from
44215         doc/glibc-functions/optind.texi.
44216         * doc/posix-functions/optopt.texi: Renamed from
44217         doc/glibc-functions/optopt.texi.
44218         * doc/posix-functions/psignal.texi: Renamed from
44219         doc/glibc-functions/psignal.texi.
44220         * doc/posix-functions/scandir.texi: Renamed from
44221         doc/glibc-functions/scandir.texi.
44222         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
44223         doc/glibc-functions/sched_get_priority_min.texi.
44224         * doc/posix-functions/signgam.texi: Renamed from
44225         doc/glibc-functions/signgam.texi.
44226         * doc/posix-functions/stpcpy.texi: Renamed from
44227         doc/glibc-functions/stpcpy.texi.
44228         * doc/posix-functions/stpncpy.texi: Renamed from
44229         doc/glibc-functions/stpncpy.texi.
44230         * doc/posix-functions/strcasecmp_l.texi: Renamed from
44231         doc/glibc-functions/strcasecmp_l.texi.
44232         * doc/posix-functions/strcoll_l.texi: Renamed from
44233         doc/glibc-functions/strcoll_l.texi.
44234         * doc/posix-functions/strfmon_l.texi: Renamed from
44235         doc/glibc-functions/strfmon_l.texi.
44236         * doc/posix-functions/strftime_l.texi: Renamed from
44237         doc/glibc-functions/strftime_l.texi.
44238         * doc/posix-functions/strncasecmp_l.texi: Renamed from
44239         doc/glibc-functions/strncasecmp_l.texi.
44240         * doc/posix-functions/strndup.texi: Renamed from
44241         doc/glibc-functions/strndup.texi.
44242         * doc/posix-functions/strnlen.texi: Renamed from
44243         doc/glibc-functions/strnlen.texi.
44244         * doc/posix-functions/strsignal.texi: Renamed from
44245         doc/glibc-functions/strsignal.texi.
44246         * doc/posix-functions/strxfrm_l.texi: Renamed from
44247         doc/glibc-functions/strxfrm_l.texi.
44248         * doc/posix-functions/timer_gettime.texi: Renamed from
44249         doc/glibc-functions/timer_gettime.texi.
44250         * doc/posix-functions/tolower_l.texi: Renamed from
44251         doc/glibc-functions/tolower_l.texi.
44252         * doc/posix-functions/toupper_l.texi: Renamed from
44253         doc/glibc-functions/toupper_l.texi.
44254         * doc/posix-functions/towctrans_l.texi: Renamed from
44255         doc/glibc-functions/towctrans_l.texi.
44256         * doc/posix-functions/towlower_l.texi: Renamed from
44257         doc/glibc-functions/towlower_l.texi.
44258         * doc/posix-functions/towupper_l.texi: Renamed from
44259         doc/glibc-functions/towupper_l.texi.
44260         * doc/posix-functions/uselocale.texi: Renamed from
44261         doc/glibc-functions/uselocale.texi.
44262         * doc/posix-functions/vdprintf.texi: Renamed from
44263         doc/glibc-functions/vdprintf.texi.
44264         * doc/posix-functions/wcpcpy.texi:
44265         Renamed from doc/glibc-functions/wcpcpy.texi.
44266         * doc/posix-functions/wcpncpy.texi: Renamed from
44267         doc/glibc-functions/wcpncpy.texi.
44268         * doc/posix-functions/wcscasecmp.texi: Renamed from
44269         doc/glibc-functions/wcscasecmp.texi.
44270         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
44271         doc/glibc-functions/wcscasecmp_l.texi.
44272         * doc/posix-functions/wcscoll_l.texi: Renamed from
44273         doc/glibc-functions/wcscoll_l.texi.
44274         * doc/posix-functions/wcsdup.texi: Renamed from
44275         doc/glibc-functions/wcsdup.texi.
44276         * doc/posix-functions/wcsncasecmp.texi: Renamed from
44277         doc/glibc-functions/wcsncasecmp.texi.
44278         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
44279         doc/glibc-functions/wcsncasecmp_l.texi.
44280         * doc/posix-functions/wcsnlen.texi: Renamed from
44281         doc/glibc-functions/wcsnlen.texi.
44282         * doc/posix-functions/wcsnrtombs.texi: Renamed from
44283         doc/glibc-functions/wcsnrtombs.texi.
44284         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
44285         doc/glibc-functions/wcsxfrm_l.texi.
44286         * doc/posix-functions/wctrans_l.texi: Renamed from
44287         doc/glibc-functions/wctrans_l.texi.
44288         * doc/posix-functions/wctype_l.texi: Renamed from
44289         doc/glibc-functions/wctype_l.texi.
44290         * doc/gnulib.texi (Function Substitutes): Add these subsections.
44291         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
44292         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
44293         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
44294         these subsections.
44295         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
44296         Remove sections.
44297
44298 2008-12-14  Bruno Haible  <bruno@clisp.org>
44299
44300         Update doc for POSIX:2008.
44301         * doc/posix-functions/*.texi: Update URL of POSIX specification.
44302
44303 2008-12-14  Bruno Haible  <bruno@clisp.org>
44304
44305         Update doc for POSIX:2008.
44306         * doc/pastposix-functions/bcmp.texi: Renamed from
44307         doc/posix-functions/bcmp.texi.
44308         * doc/pastposix-functions/bcopy.texi: Renamed from
44309         doc/posix-functions/bcopy.texi.
44310         * doc/pastposix-functions/bsd_signal.texi: Renamed from
44311         doc/posix-functions/bsd_signal.texi.
44312         * doc/pastposix-functions/bzero.texi: Renamed from
44313         doc/posix-functions/bzero.texi.
44314         * doc/pastposix-functions/ecvt.texi: Renamed from
44315         doc/posix-functions/ecvt.texi.
44316         * doc/pastposix-functions/fcvt.texi: Renamed from
44317         doc/posix-functions/fcvt.texi.
44318         * doc/pastposix-functions/ftime.texi: Renamed from
44319         doc/posix-functions/ftime.texi.
44320         * doc/pastposix-functions/gcvt.texi: Renamed from
44321         doc/posix-functions/gcvt.texi.
44322         * doc/pastposix-functions/getcontext.texi: Renamed from
44323         doc/posix-functions/getcontext.texi.
44324         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
44325         doc/posix-functions/gethostbyaddr.texi.
44326         * doc/pastposix-functions/gethostbyname.texi: Renamed from
44327         doc/posix-functions/gethostbyname.texi.
44328         * doc/pastposix-functions/getwd.texi: Renamed from
44329         doc/posix-functions/getwd.texi.
44330         * doc/pastposix-functions/h_errno.texi: Renamed from
44331         doc/posix-functions/h_errno.texi.
44332         * doc/pastposix-functions/index.texi: Renamed from
44333         doc/posix-functions/index.texi.
44334         * doc/pastposix-functions/makecontext.texi: Renamed from
44335         doc/posix-functions/makecontext.texi.
44336         * doc/pastposix-functions/mktemp.texi: Renamed from
44337         doc/posix-functions/mktemp.texi.
44338         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
44339         doc/posix-functions/pthread_attr_getstackaddr.texi.
44340         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
44341         doc/posix-functions/pthread_attr_setstackaddr.texi.
44342         * doc/pastposix-functions/rindex.texi: Renamed from
44343         doc/posix-functions/rindex.texi.
44344         * doc/pastposix-functions/scalb.texi: Renamed from
44345         doc/posix-functions/scalb.texi.
44346         * doc/pastposix-functions/setcontext.texi: Renamed from
44347         doc/posix-functions/setcontext.texi.
44348         * doc/pastposix-functions/swapcontext.texi: Renamed from
44349         doc/posix-functions/swapcontext.texi.
44350         * doc/pastposix-functions/ualarm.texi: Renamed from
44351         doc/posix-functions/ualarm.texi.
44352         * doc/pastposix-functions/usleep.texi: Renamed from
44353         doc/posix-functions/usleep.texi.
44354         * doc/pastposix-functions/vfork.texi: Renamed from
44355         doc/posix-functions/vfork.texi.
44356         * doc/pastposix-functions/wcswcs.texi: Renamed from
44357         doc/posix-functions/wcswcs.texi.
44358         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
44359         (Function Substitutes): Update.
44360
44361 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44362
44363         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
44364         m4/strerror.m4.
44365
44366 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44367             Bruno Haible  <bruno@clisp.org>
44368
44369         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
44370
44371 2008-12-13  Bruno Haible  <bruno@clisp.org>
44372
44373         * modules/strtoull (Depends-on): Remove unistd.
44374
44375 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44376
44377         * modules/strtoull (Depends-on): Add stdlib.
44378
44379 2008-12-11  Simon Josefsson  <simon@josefsson.org>
44380
44381         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
44382
44383 2008-12-10  Jim Meyering  <meyering@redhat.com>
44384
44385         gl_ASSERT: don't say assertions are disabled when they're not
44386         * m4/assert.m4 (gl_ASSERT): Do not make configure report
44387         "checking whether to enable assertions... no", when they are in
44388         fact enabled.  This is solely a bug in the output of configure.
44389         In spite of saying "no", NDEBUG was not defined in that case.
44390         Also, as noted by Eric Blake, leave assertions enabled upon
44391         --enable-assert=INVALID.
44392
44393 2008-12-10  Bruno Haible  <bruno@clisp.org>
44394
44395         Change MODULES.html to refer to POSIX:2008 where possible.
44396         * MODULES.html.sh (POSIX2008_URL): New variable.
44397         (posix_headers): Remove sys/timeb, ucontext.
44398         (posix2001_headers): New variable.
44399         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
44400         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
44401         index, makecontext, mktemp, pthread_attr_getstackaddr,
44402         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
44403         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
44404         (posix2001_functions): New variable.
44405         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
44406         otherwise.
44407
44408 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44409
44410         add missing include to parse-duration.c
44411         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
44412         * modules/parse-duration (Depends-on): Add xalloc.
44413
44414         fix sed script reading maint.mk
44415         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
44416         (syntax-check-rules): Use it.
44417
44418 2008-12-09  Bruno Haible  <bruno@clisp.org>
44419
44420         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
44421         MacOS X 10.4/PowerPC.
44422         Reported by Simon Josefsson.
44423
44424 2008-12-08  Jim Meyering  <meyering@redhat.com>
44425
44426         work around mingw's lack of some S_IF definitions
44427         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
44428         Reported by Simon Josefsson.
44429
44430 2008-12-08  Bruno Haible  <bruno@clisp.org>
44431
44432         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
44433         applied to variables. Needed on MacOS X 10.4/PowerPC.
44434         Reported by Simon Josefsson.
44435
44436 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
44437         and Eric Blake  <ebb9@byu.net>
44438
44439         assert: honor --enable-assert
44440         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
44441         order to honor --enable-assert, rather than treating it as a
44442         synonym for --disable-assert.
44443
44444 2008-12-08  Jim Meyering  <meyering@redhat.com>
44445
44446         * lib/posixtm.c: Remove now-useless declaration of mktime.
44447
44448         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
44449
44450 2008-12-07  Bruno Haible  <bruno@clisp.org>
44451
44452         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
44453         test_once): Mark functions as static.
44454         * tests/test-tls.c (test_tls): Likewise.
44455
44456 2008-12-07  Bruno Haible  <bruno@clisp.org>
44457
44458         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
44459         iconv_register_autodetect.
44460
44461 2008-12-07  Jim Meyering  <meyering@redhat.com>
44462
44463         posixtm.c: avoid a warning
44464         * lib/posixtm.c (posixtime): Don't initialize tm0.
44465         It's no longer needed to placate gcc4's -Wuninitialized,
44466         and the attempt to placate would elicit a new warning.
44467
44468         unicodeio.c: mark unused parameters
44469         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44470         (fallback_failure_callback): Likewise.
44471
44472 2008-12-07  Bruno Haible  <bruno@clisp.org>
44473
44474         * gnulib-tool (func_create_testdir): When building the tests
44475         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
44476         Reported by Simon Josefsson.
44477
44478 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44479
44480         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
44481
44482 2008-12-06  Bruno Haible  <bruno@clisp.org>
44483
44484         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
44485         Suggested by Eric Blake.
44486
44487 2008-12-06  Bruno Haible  <bruno@clisp.org>
44488
44489         Fix a c-stack test failure on MacOS X.
44490         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
44491         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
44492         handler for SIGBUS as well.
44493         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
44494         install a signal handler for SIGBUS as well.
44495         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
44496
44497 2008-12-06  Bruno Haible  <bruno@clisp.org>
44498
44499         Advocacy documentation.
44500         * doc/gnulib-intro.texi (Benefits): New section.
44501         * doc/gnulib.texi: Update.
44502
44503 2008-12-06  Bruno Haible  <bruno@clisp.org>
44504
44505         Document the 'manywarnings' module.
44506         * doc/manywarnings.texi: New file.
44507         * doc/gnulib.texi: Include it.
44508
44509 2008-12-05  Eric Blake  <ebb9@byu.net>
44510
44511         tests: silence some gcc warnings
44512         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
44513         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
44514         type mismatches.
44515
44516 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44517             Bruno Haible  <bruno@clisp.org>
44518
44519         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
44520
44521 2008-11-29  Jim Meyering  <meyering@redhat.com>
44522
44523         unicodeio.c: mark unused parameters
44524         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44525         (fallback_failure_callback): Likewise.
44526
44527         fts: fix a thinko
44528         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
44529         (set_stat_type): Return S_IF*-valued "type" directly.
44530         Prompted by James Youngman's spotting a related bug.
44531         Confirmed by further testing through find.
44532
44533         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
44534         * lib/fts.c (D_TYPE): Define.
44535         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
44536         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
44537         (s_ifmt_shift_bits): New function.
44538         (set_stat_type): New function.
44539         (fts_build): When not calling fts_stat, call set_stat_type
44540         to propagate dirent.d_type info to fts_read caller.
44541         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
44542         fts_statp->st_mode type information may be valid.
44543
44544 2008-11-28  Simon Josefsson  <simon@josefsson.org>
44545
44546         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
44547         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
44548         <sds@gnu.org>.
44549
44550 2008-11-20  Bruno Haible  <bruno@clisp.org>
44551
44552         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
44553         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
44554         INCLUDE_NEXT.
44555         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
44556         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
44557         * modules/math (Makefile.am): Substitute
44558         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
44559         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44560
44561 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
44562             Bruno Haible  <bruno@clisp.org>
44563
44564         * lib/stdint.in.h: Define all type macros so that their expansion is
44565         a single typedef'ed token. Fixes a compilation failure in Boost which
44566         does "using ::int8_t;".
44567
44568 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44569
44570         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
44571         gl_MANYWARN_ALL_GCC.
44572         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
44573         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
44574         * modules/manywarnings: New file.
44575         * MODULES.html.sh: Mention manywarnings module.
44576
44577 2008-11-18  Bruno Haible  <bruno@clisp.org>
44578
44579         * doc/gnulib-tool.texi (Unit tests): New section.
44580
44581 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44582
44583         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
44584         paths like 'lib/po/foo.po'.
44585
44586 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44587
44588         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
44589         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
44590
44591 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44592
44593         * m4/warnings.m4: Use CPPFLAGS to really check whether the
44594         parameter works.
44595
44596 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44597
44598         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
44599
44600 2008-11-17  Bruce Korb  <bkorb@gnu.org>
44601
44602         * modules/parse-duration-tests: New file.
44603         * tests/test-parse-duration.sh: New file.
44604         * tests/test-parse-duration.c: New file.
44605
44606         New module 'parse-duration'.
44607         * lib/parse-duration.h: New file.
44608         * lib/parse-duration.c: New file.
44609         * modules/parse-duration: New file.
44610
44611 2008-11-17  Bruno Haible  <bruno@clisp.org>
44612
44613         * tests/test-select-out.sh: Comment out the first pipe test.
44614         Reported by Simon Josefsson.
44615
44616 2008-11-17  Bruno Haible  <bruno@clisp.org>
44617
44618         * modules/getaddrinfo (Depends-on): Add servent, hostent.
44619         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
44620         gl_HOSTENT.
44621
44622 2008-11-17  Bruno Haible  <bruno@clisp.org>
44623
44624         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
44625         -lnetwork and -lnet. Needed for Haiku and BeOS.
44626
44627 2008-11-16  Bruno Haible  <bruno@clisp.org>
44628
44629         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
44630
44631 2008-11-16  Bruno Haible  <bruno@clisp.org>
44632
44633         Avoid test failure on Haiku.
44634         * tests/test-fsync.c: Include <errno.h>.
44635         (main): Don't require that fsync (0) fails.
44636
44637 2008-11-15  Bruno Haible  <bruno@clisp.org>
44638
44639         New module 'hostent'.
44640         * modules/hostent: New file.
44641         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
44642
44643 2008-11-15  Bruno Haible  <bruno@clisp.org>
44644
44645         New module 'servent'.
44646         * modules/servent: New file.
44647         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
44648
44649 2008-11-15  Bruno Haible  <bruno@clisp.org>
44650
44651         Avoid generating same test program with two different rules.
44652         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
44653         test-frexp to test-frexp-nolibm.
44654         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
44655         test-frexpl to test-frexpl-nolibm.
44656
44657 2008-11-15  Bruno Haible  <bruno@clisp.org>
44658
44659         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
44660         $(FREXPL_LIBM).
44661
44662 2008-11-15  Bruno Haible  <bruno@clisp.org>
44663
44664         * lib/netdb.in.h: Activate the definitions also when the system's
44665         <netdb.h> has 'struct addrinfo'.
44666         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
44667         EAI_OVERFLOW or AI_NUMERICSERV.
44668         * doc/posix-headers/netdb.texi: Document the problem.
44669
44670 2008-11-15  Bruno Haible  <bruno@clisp.org>
44671
44672         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
44673
44674         Make the 'sched' module work on platforms where <sched.h> exists but
44675         is incomplete (such as Haiku).
44676         * lib/sched.in.h; Include the system's <sched.h> if it exists.
44677         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
44678         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
44679         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
44680         HAVE_STRUCT_SCHED_PARAM.
44681         * modules/sched (Depends-on): Add include_next.
44682         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
44683         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
44684         * doc/posix-headers/sched.texi: Document the issue.
44685
44686 2008-11-13  Jim Meyering  <meyering@redhat.com>
44687
44688         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
44689         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
44690         test would fail due to the difference in the Report bugs to ...
44691         line.  The expected address is empty, "<>", while the actual
44692         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
44693
44694 2008-11-12  Bruno Haible  <bruno@clisp.org>
44695
44696         lstat: don't compile lstat.c on systems lacking lstat
44697         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
44698         which don't have lstat; this is handled by lib/sys_stat.in.h already.
44699         Reported by Daniel P. Berrange via Jim Meyering.
44700
44701 2008-11-12  Jim Meyering  <meyering@redhat.com>
44702
44703         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
44704
44705 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44706
44707         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
44708         instead.
44709
44710 2008-11-12  Bruno Haible  <bruno@clisp.org>
44711
44712         * lib/unicodeio.c: Include unistr.h.
44713         (utf8_wctomb): Remove function.
44714         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
44715
44716 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44717
44718         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
44719         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
44720         <bruno@clisp.org>.
44721         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
44722
44723 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44724
44725         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
44726         * doc/gnulib.texi: Add section for warnings.
44727
44728 2008-11-11  Bruno Haible  <bruno@clisp.org>
44729
44730         * lib/sockets.h: Add a comment.
44731
44732 2008-11-11  Karl Berry  <karl@gnu.org>
44733
44734         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
44735
44736 2008-11-11  Eric Blake  <ebb9@byu.net>
44737
44738         fdl.texi: avoid git symlinks
44739         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
44740
44741 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44742
44743         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
44744
44745 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44746
44747         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
44748         (gl_WARN_ADD): Substitute $2 if literal.
44749
44750 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44751
44752         * m4/warning.m4: Remove.
44753
44754 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44755
44756         * m4/warnings.m4: Almost complete rewrite. :-)
44757
44758 2008-11-10  Simon Josefsson  <simon@josefsson.org>
44759
44760         * modules/warnings: New module.
44761         * m4/warnings.m4: New file.
44762         * MODULES.html.sh: Mention warnings module.
44763         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
44764         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44765
44766 2008-11-10  Eric Blake  <ebb9@byu.net>
44767
44768         fdl.texi: make a symlink to the latest version
44769         * doc/standards.texi: Revert today's earlier change.
44770         * doc/fdl-1.2.texi: Rename from old fdl.texi...
44771         * doc/fdl.texi: ...and replace this with a symlink to the newer
44772         fdl-1.3.texi.
44773
44774 2008-11-10  Bruno Haible  <bruno@clisp.org>
44775
44776         * tests/test-select-fd.c (main): Accept the result file name as fourth
44777         argument.
44778         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
44779         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
44780
44781 2008-11-10  Bruno Haible  <bruno@clisp.org>
44782
44783         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
44784         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
44785         as autoconf-substituted macros.
44786         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
44787         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
44788         gl_NETDB_H_DEFAULTS. Set these variables.
44789         * modules/netdb (Makefile.am): Substitute these variables.
44790
44791 2008-11-10  Eric Blake  <ebb9@byu.net>
44792
44793         standards.texi: include correct file for FDL 1.3
44794         * doc/standards.texi (GNU Free Documentation License): Change
44795         include file to pull in FDL 1.3, not 1.2.
44796
44797         fdl.texi: revert accidental change to license
44798         * doc/fdl.texi: This is FDL 1.2, not 1.3.
44799
44800 2008-11-10  Bruno Haible  <bruno@clisp.org>
44801
44802         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
44803         cross-compiling guesses also when the native compile gives no result.
44804
44805 2008-11-10  Bruno Haible  <bruno@clisp.org>
44806
44807         * lib/spawni.c (__spawni): Force variable into the stack.
44808
44809 2008-11-10  Bruno Haible  <bruno@clisp.org>
44810
44811         Add support for Haiku.
44812         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
44813         glibc and BeOS, but also on Haiku.
44814         * lib/fpurge.c (fpurge): Likewise.
44815         * lib/freadable.c (freadable): Likewise.
44816         * lib/freadahead.c (freadahead): Likewise.
44817         * lib/freading.c (freading): Likewise.
44818         * lib/freadptr.c (freadptr): Likewise.
44819         * lib/freadseek.c (freadptrinc): Likewise.
44820         * lib/fseeko.c (rpl_fseeko): Likewise.
44821         * lib/fseterr.c (fseterr): Likewise.
44822         * lib/fwritable.c (fwritable): Likewise.
44823         * lib/fwriting.c (fwriting): Likewise.
44824         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
44825
44826 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44827
44828         * lib/config.charset: Treat Haiku like BeOS.
44829
44830 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44831
44832         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
44833         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
44834
44835 2008-11-08  Bruno Haible  <bruno@clisp.org>
44836
44837         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
44838         AC_CACHE_CHECK.
44839
44840 2008-11-08  Bruno Haible  <bruno@clisp.org>
44841
44842         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
44843
44844 2008-11-08  Bruno Haible  <bruno@clisp.org>
44845
44846         * tests/test-select-fd.c: New file.
44847         * tests/test-select-in.sh: New file.
44848         * tests/test-select-out.sh: New file.
44849         * tests/test-select-stdin.c: New file.
44850         * modules/select-tests (Files): Add the new files.
44851         (Depends-on): Add gettimeofday.
44852         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
44853         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
44854         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
44855
44856 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
44857             Bruno Haible  <bruno@clisp.org>
44858
44859         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
44860
44861 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
44862
44863         * build-aux/pmccabe2html: Added support for C++ source files.
44864
44865 2008-11-05  Ben Pfaff  <blp@gnu.org>
44866
44867         Fix lib/close.c build on Windows.
44868         * modules/close (Files): Add lib/w32sock.h.
44869
44870 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
44871
44872         Accept Bison's NEWS format.
44873         * build-aux/announce-gen (print_news_deltas): Tweak
44874         $re_prefix.
44875
44876 2008-11-04  Bruno Haible  <bruno@clisp.org>
44877
44878         * modules/random_r (Maintainer): Add glibc.
44879
44880 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44881
44882         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
44883         by karl@freefriends.org (Karl Berry).
44884         * doc/alloca.texi: Likewise.
44885         * doc/c-ctype.texi: Likewise.
44886         * doc/c-strcase.texi: Likewise.
44887         * doc/c-strcaseeq.texi: Likewise.
44888         * doc/c-strcasestr.texi: Likewise.
44889         * doc/c-strstr.texi: Likewise.
44890         * doc/c-strtod.texi: Likewise.
44891         * doc/c-strtold.texi: Likewise.
44892         * doc/ctime.texi: Likewise.
44893         * doc/error.texi: Likewise.
44894         * doc/fdl.texi: Likewise.
44895         * doc/gcd.texi: Likewise.
44896         * doc/getdate.texi: Likewise.
44897         * doc/gnulib-intro.texi: Likewise.
44898         * doc/gnulib-tool.texi: Likewise.
44899         * doc/gnulib.texi: Likewise.
44900         * doc/inet_ntoa.texi: Likewise.
44901         * doc/maintain.texi: Likewise.
44902         * doc/make-stds.texi: Likewise.
44903         * doc/quote.texi: Likewise.
44904         * doc/regexprops-generic.texi: Likewise.
44905         * doc/standards.texi: Likewise.
44906         * doc/verify.texi: Likewise.
44907         * doc/visibility.texi: Likewise.
44908         * doc/gnulib.texi (GNU Free Documentation License): Include
44909         fdl-1.3.texi instead of fdl.texi.
44910
44911 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44912
44913         * doc/fdl-1.3.texi: New file, from
44914         <http://www.gnu.org/licenses/fdl-1.3.texi>.
44915         * modules/fdl-1.3: Add.
44916         * MODULES.html.sh: Add fdl-1.3.
44917
44918 2008-11-03  Bruno Haible  <bruno@clisp.org>
44919
44920         Make determination of absolute name of header file work with AIX xlc.
44921         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
44922         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
44923         preprocessing.
44924         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44925         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
44926
44927 2008-11-03  Simon Josefsson  <simon@josefsson.org>
44928
44929         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
44930         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
44931         <ludo@gnu.org>.
44932
44933 2008-11-02  Bruno Haible  <bruno@clisp.org>
44934
44935         Mark 'strpbrk' obsolete.
44936         * modules/strpbrk (Status, Notice): New sections.
44937         * modules/strtok_r (Depends-on): Add strpbrk.
44938
44939 2008-11-02  Bruno Haible  <bruno@clisp.org>
44940
44941         Mark 'strdup' obsolete.
44942         * modules/strdup (Status, Notice): New sections.
44943         * modules/findprog (Depends-on): Add strdup.
44944         * modules/getaddrinfo (Depends-on): Likewise.
44945         * modules/localename (Depends-on): Likewise.
44946         * modules/relocatable-lib (Depends-on): Likewise.
44947         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
44948         * modules/relocatable-prog (Depends-on): Likewise.
44949         * modules/trim (Depends-on): Likewise.
44950         * modules/unictype/gen-ctype (Depends-on): Likewise.
44951         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44952
44953 2008-11-02  Bruno Haible  <bruno@clisp.org>
44954
44955         Mark 'strcspn' obsolete.
44956         * modules/strcspn (Status, Notice): New sections.
44957
44958 2008-11-02  Bruno Haible  <bruno@clisp.org>
44959
44960         Mark 'rmdir' obsolete.
44961         * modules/rmdir (Status, Notice): New sections.
44962         * modules/clean-temp (Depends-on): Add rmdir.
44963         * modules/openat (Depends-on): Likewise.
44964
44965 2008-11-02  Bruno Haible  <bruno@clisp.org>
44966
44967         Mark 'raise' obsolete.
44968         * modules/raise (Status, Notice): New sections.
44969         (Include): Specify <signal.h>.
44970         * modules/stdio (Depends-on): Add raise.
44971         * modules/write (Depends-on): Likewise.
44972
44973 2008-11-02  Bruno Haible  <bruno@clisp.org>
44974
44975         Mark 'memset' obsolete.
44976         * modules/memset (Status, Notice): New sections.
44977
44978 2008-11-02  Bruno Haible  <bruno@clisp.org>
44979
44980         Mark 'memmove' obsolete.
44981         * modules/memmove (Status, Notice): New sections.
44982         * modules/argp (Depends-on): Add memmove.
44983         * modules/argz (Depends-on): Likewise.
44984         * modules/canonicalize (Depends-on): Likewise.
44985         * modules/canonicalize-lgpl (Depends-on): Likewise.
44986         * modules/fts (Depends-on): Likewise.
44987         * modules/getcwd (Depends-on): Likewise.
44988         * modules/human (Depends-on): Likewise.
44989         * modules/regex (Depends-on): Likewise.
44990         * modules/striconveh (Depends-on): Likewise.
44991         * modules/trim (Depends-on): Likewise.
44992         * modules/unistr/u8-move (Depends-on): Likewise.
44993         * modules/unistr/u16-move (Depends-on): Likewise.
44994         * modules/unistr/u32-move (Depends-on): Likewise.
44995
44996 2008-11-02  Bruno Haible  <bruno@clisp.org>
44997
44998         Mark 'memcpy' obsolete.
44999         * modules/memcpy (Status, Notice): New sections.
45000
45001 2008-11-02  Bruno Haible  <bruno@clisp.org>
45002
45003         Mark 'memcmp' obsolete.
45004         * modules/memcmp (Status, Notice): New sections.
45005         * modules/argmatch (Depends-on): Add memchr.
45006         * modules/backupfile (Depends-on): Likewise.
45007         * modules/c-strcasestr (Depends-on): Likewise.
45008         * modules/crypto/des (Depends-on): Likewise.
45009         * modules/csharpcomp (Depends-on): Likewise.
45010         * modules/fnmatch (Depends-on): Likewise.
45011         * modules/git-merge-changelog (Depends-on): Likewise.
45012         * modules/isnand (Depends-on): Likewise.
45013         * modules/isnand-nolibm (Depends-on): Likewise.
45014         * modules/isnanf (Depends-on): Likewise.
45015         * modules/isnanf-nolibm (Depends-on): Likewise.
45016         * modules/isnanl (Depends-on): Likewise.
45017         * modules/isnanl-nolibm (Depends-on): Likewise.
45018         * modules/mbchar (Depends-on): Likewise.
45019         * modules/memcoll (Depends-on): Likewise.
45020         * modules/quotearg (Depends-on): Likewise.
45021         * modules/regex (Depends-on): Likewise.
45022         * modules/relocatable-prog (Depends-on): Likewise.
45023         * modules/same (Depends-on): Likewise.
45024         * modules/signbit (Depends-on): Likewise.
45025         * modules/strcasestr-simple (Depends-on): Likewise.
45026         * modules/unictype/gen-ctype (Depends-on): Likewise.
45027         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
45028         * modules/uniname/uniname (Depends-on): Likewise.
45029         * modules/unistr/u8-cmp (Depends-on): Likewise.
45030
45031 2008-11-02  Bruno Haible  <bruno@clisp.org>
45032
45033         Mark 'memchr' obsolete.
45034         * modules/memchr (Status, Notice): New sections.
45035         * modules/argp (Depends-on): Add memchr.
45036         * modules/base64 (Depends-on): Likewise.
45037         * modules/c-strcasestr (Depends-on): Likewise.
45038         * modules/chdir-long (Depends-on): Likewise.
45039         * modules/fnmatch (Depends-on): Likewise.
45040         * modules/getsubopt (Depends-on): Likewise.
45041         * modules/git-merge-changelog (Depends-on): Likewise.
45042         * modules/glob (Depends-on): Likewise.
45043         * modules/strcasestr-simple (Depends-on): Likewise.
45044         * modules/strnlen (Depends-on): Likewise.
45045
45046 2008-11-02  Bruno Haible  <bruno@clisp.org>
45047
45048         Mark 'atexit' obsolete.
45049         * modules/atexit (Status, Notice): New sections.
45050         * modules/chdir-long (Depends-on): Add atexit.
45051         * modules/wait-process (Depends-on): Likewise.
45052
45053 2008-11-02  Bruno Haible  <bruno@clisp.org>
45054
45055         * gnulib-tool: New option --with-obsolete.
45056         (func_usage): Document it.
45057         (func_modules_transitive_closure): Drop obsolete dependencies if
45058         incobsolete is not true.
45059         (func_import): Read and save the incobsolete variable to the cache.
45060
45061 2008-11-02  Bruno Haible  <bruno@clisp.org>
45062
45063         * modules/TEMPLATE-EXTENDED: New field 'Status'.
45064         * gnulib-tool: New option --extract-status.
45065         (func_usage): Document it.
45066         (sed_extract_prog): Recognize it.
45067         (func_get_status): New function.
45068
45069 2008-10-30  Simon Josefsson  <simon@josefsson.org>
45070
45071         * modules/sockets (License): Change from LGPL to LGPLv2+.
45072
45073 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45074
45075         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
45076
45077 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45078
45079         * MODULES.html.sh (Support for systems lacking POSIX:2001):
45080         Mention times and sys_times.
45081         * modules/sys_times, modules/sys_times-tests: New modules.
45082         * modules/times, modules/times-tests: Likewise
45083         * m4/sys_times_h.m4: New file.
45084         * lib/sys_times.in.h: Likewise
45085         * lib/times.c: Likewise.
45086         * tests/test-sys_times.c: Likewise.
45087         * tests/test-times.c: Likewise.
45088         * doc/posix-headers/sys_times.texi: Update.
45089         * doc/posix-functions/times.texi: Update.
45090
45091 2008-10-28  Jim Meyering  <meyering@redhat.com>
45092
45093         * modules/tempname (Depends-on): Add lstat.
45094
45095         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
45096
45097 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45098
45099         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
45100         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
45101         using idiom used elsewhere in gnulib.
45102
45103 2008-10-27  Jim Meyering  <meyering@redhat.com>
45104
45105         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
45106
45107 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45108
45109         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
45110         TESTS_ENVIRONMENT, for shell scripts that needs to call built
45111         programs.
45112         * tests/test-argp-2.sh: Use $EXEEXT when needed.
45113
45114 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45115
45116         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
45117
45118 2008-10-27  Bruno Haible  <bruno@clisp.org>
45119
45120         * tests/test-lstat.c: Include <stdio.h>.
45121
45122 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45123
45124         * modules/lstat-tests: New module.
45125         * tests/test-lstat.c: New file.
45126
45127 2008-10-26  Jim Meyering  <meyering@redhat.com>
45128
45129         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
45130
45131 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45132             Bruno Haible  <bruno@clisp.org>
45133
45134         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
45135         * modules/configmake (Include): Add a note that the include must come
45136         after all system headers.
45137         * lib/javaversion.c: Include configmake.h after all other includes.
45138
45139 2008-10-26  Bruno Haible  <bruno@clisp.org>
45140
45141         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
45142         HAVE_STRUCT_RANDOM_DATA to 1.
45143         (gl_STDLIB_H): Simplify.
45144
45145 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45146
45147         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
45148         substitute HAVE_STRUCT_RANDOM_DATA.
45149         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
45150         random_data.
45151         * modules/stdlib (Makefile.am): Substitute
45152         HAVE_STRUCT_RANDOM_DATA.
45153
45154 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45155
45156         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
45157         * doc/gnulib-intro.texi (Copyright): Likewise.
45158
45159 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45160
45161         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
45162         findings.
45163
45164 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
45165             Bruno Haible  <bruno@clisp.org>
45166
45167         * lib/unistd.in.h: Include <winsock2.h>.
45168         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
45169         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
45170         Provide dummy declarations.
45171         (gethostname): Override.
45172         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
45173         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
45174         gl_PREREQ_SYS_H_WINSOCK2.
45175         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
45176         * doc/posix-functions/gethostname.texi: More details.
45177
45178 2008-10-25  Bruno Haible  <bruno@clisp.org>
45179
45180         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45181         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
45182         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
45183
45184         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
45185         here ...
45186         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
45187         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
45188         gl_UNISTD_H_DEFAULTS.
45189
45190 2008-10-25  Eric Blake  <ebb9@byu.net>
45191
45192         signbit: avoid spurious compiler failure
45193         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
45194         declarations inside function.
45195
45196 2008-10-24  Simon Josefsson  <simon@josefsson.org>
45197             Bruno Haible  <bruno@clisp.org>
45198
45199         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
45200         * modules/random_r (Depends-on): Add stdint.
45201
45202 2008-10-24  Bruno Haible  <bruno@clisp.org>
45203
45204         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
45205         Eggert.
45206         * modules/strerror (License): Likewise.
45207
45208 2008-10-24  Jim Meyering  <meyering@redhat.com>
45209
45210         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
45211         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
45212
45213 2008-10-24  Eric Blake  <ebb9@byu.net>
45214
45215         getgroups: fix compilation when getgroups is available
45216         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
45217         but with <config.h> override of getgroups disabled.
45218
45219 2008-10-24  Simon Josefsson  <simon@josefsson.org>
45220
45221         * doc/gnulib.texi (Header files): Add note about C++ problems.
45222         Explained by Bruno Haible <bruno@clisp.org>.
45223
45224 2008-10-23  Bruno Haible  <bruno@clisp.org>
45225
45226         Define a dummy SA_NODEFER macro on Interix.
45227         * lib/signal.in.h (SA_NODEFER): Define fallback.
45228         Reported by Aleksey Cheusov <cheusov@tut.by> via
45229         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
45230
45231 2008-10-23  Bruno Haible  <bruno@clisp.org>
45232
45233         * modules/freadahead (License): Change to LGPLv2+.
45234         Suggested by Simon Josefsson.
45235
45236 2008-10-23  Jim Meyering  <meyering@redhat.com>
45237
45238         random_r: new module
45239         * modules/random_r: New file.
45240         * m4/random_r.m4: New file.
45241         * lib/random_r.c: New file, from glibc.
45242         * modules/random_r-tests: New file.
45243         * tests/test-random_r.c: New file.
45244         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
45245          Declare.
45246         (RAND_MAX): Define.
45247         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
45248         * modules/stdlib: Substitute them, too.
45249         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
45250         * doc/glibc-functions/initstate_r.texi: Mention the new module.
45251         * doc/glibc-functions/random_r.texi: Likewise.
45252         * doc/glibc-functions/setstate_r.texi: Likewise.
45253         * doc/glibc-functions/srandom_r.texi: Likewise.
45254         * config/srclist.txt: Mention it.
45255
45256 2008-10-23  David Lutterkort  <lutter@redhat.com>
45257
45258         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
45259         link requirement
45260
45261 2008-10-23  Jim Meyering  <meyering@redhat.com>
45262
45263         selinux-h: mark parameters of stub functions as intentionally unused
45264         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
45265         * lib/se-context.in.h: Likewise.
45266
45267 2008-10-22  Simon Josefsson  <simon@josefsson.org>
45268
45269         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
45270
45271 2008-10-22  Simon Josefsson  <simon@josefsson.org>
45272
45273         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
45274
45275 2008-10-22  Eric Blake  <ebb9@byu.net>
45276
45277         glthread/thread: avoid compiler warning
45278         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
45279         Add unreachable abort to silence compiler.
45280
45281 2008-10-22  Eric Blake  <ebb9@byu.net>
45282
45283         netdb: also supply struct addrinfo for cygwin 1.5.x
45284         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
45285         older cygwin.
45286         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
45287         cygwin.
45288         * doc/posix-headers/netdb.texi (netdb.h): Document this.
45289
45290 2008-10-22  Bruno Haible  <bruno@clisp.org>
45291
45292         * users.txt: Update entry about pspp.
45293
45294 2008-10-21  Bruno Haible  <bruno@clisp.org>
45295
45296         Simplification.
45297         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
45298         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
45299
45300         Simplification.
45301         * lib/ioctl.c (ioctl): Don't undefine.
45302         * lib/socket.c (socket): Don't undefine.
45303
45304         Remove unused module indicator macros.
45305         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
45306         GNULIB_$1 as a C macro.
45307
45308         * doc/posix-functions/close.texi: Undo last change.
45309         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
45310         Windows platforms.
45311
45312 2008-10-21  Bruno Haible  <bruno@clisp.org>
45313
45314         Add gethostname() declaration to <unistd.h>.
45315         * lib/unistd.in.h (gethostname): New declaration.
45316         * lib/gethostname.c: Include <unistd.h>.
45317         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
45318         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
45319         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
45320         and HAVE_GETHOSTNAME.
45321         * modules/gethostname (Depends-on): Add unistd.
45322         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45323         (Include): Specify <unistd.h>.
45324         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
45325         HAVE_GETHOSTNAME.
45326         * tests/test-gethostname.c: Include <unistd.h> first.
45327
45328 2008-10-21  Bruno Haible  <bruno@clisp.org>
45329
45330         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
45331         * modules/select-tests (Depends-on): Likewise.
45332         Reported by Simon Josefsson.
45333
45334 2008-10-21  Simon Josefsson  <simon@josefsson.org>
45335
45336         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
45337         * lib/accept.c: New file, based on winsock.c.
45338         * lib/bind.c: New file, based on winsock.c.
45339         * lib/connect.c: New file, based on winsock.c.
45340         * lib/getpeername.c: New file, based on winsock.c.
45341         * lib/getsockname.c: New file, based on winsock.c.
45342         * lib/getsockopt.c: New file, based on winsock.c.
45343         * lib/ioctl.c: New file, based on winsock.c.
45344         * lib/listen.c: New file, based on winsock.c.
45345         * lib/recv.c: New file, based on winsock.c.
45346         * lib/recvfrom.c: New file, based on winsock.c.
45347         * lib/send.c: New file, based on winsock.c.
45348         * lib/sendto.c: New file, based on winsock.c.
45349         * lib/setsockopt.c: New file, based on winsock.c.
45350         * lib/shutdown.c: New file, based on winsock.c.
45351         * lib/socket.c: New file, based on winsock.c.
45352         * lib/w32sock.h: New file, based on winsock.c.
45353         * lib/winsock.c: Remove file.
45354         * modules/accept: Likewise.
45355         * modules/bind: Likewise.
45356         * modules/connect: Likewise.
45357         * modules/getpeername: Likewise.
45358         * modules/getsockname: Likewise.
45359         * modules/getsockopt: Likewise.
45360         * modules/ioctl: Likewise.
45361         * modules/listen: Likewise.
45362         * modules/recv: Likewise.
45363         * modules/recvfrom: Likewise.
45364         * modules/send: Likewise.
45365         * modules/sendto: Likewise.
45366         * modules/setsockopt: Likewise.
45367         * modules/shutdown: Likewise.
45368         * modules/socket: Use socket.c instead of winsock.c.
45369         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
45370         * doc/posix-functions/accept.texi: Doc fix.
45371         * doc/posix-functions/bind.texi: Doc fix.
45372         * doc/posix-functions/close.texi: Doc fix.
45373         * doc/posix-functions/connect.texi: Doc fix.
45374         * doc/posix-functions/getpeername.texi: Doc fix.
45375         * doc/posix-functions/getsockname.texi: Doc fix.
45376         * doc/posix-functions/getsockopt.texi: Doc fix.
45377         * doc/posix-functions/ioctl.texi: Doc fix.
45378         * doc/posix-functions/listen.texi: Doc fix.
45379         * doc/posix-functions/recv.texi: Doc fix.
45380         * doc/posix-functions/recvfrom.texi: Doc fix.
45381         * doc/posix-functions/send.texi: Doc fix.
45382         * doc/posix-functions/sendto.texi: Doc fix.
45383         * doc/posix-functions/setsockopt.texi: Doc fix.
45384         * doc/posix-functions/shutdown.texi: Doc fix.
45385         * doc/posix-functions/socket.texi: Doc fix.
45386
45387 2008-10-20  Bruno Haible  <bruno@clisp.org>
45388
45389         Take into account the role of SIGABRT_COMPAT on Windows 2008.
45390         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
45391         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
45392         as an alias for SIGABRT.
45393         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
45394         (sigaction): Map it to SIGABRT.
45395         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
45396
45397 2008-10-20  Bruno Haible  <bruno@clisp.org>
45398
45399         * lib/fts.c: Don't include lstat.h.
45400         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
45401
45402         Move the lstat() declaration to <sys/stat.h>.
45403         * lib/lstat.h: Remove file.
45404         * lib/sys_stat.in.h: Add special invocation convention.
45405         (lstat): New declaration.
45406         * lib/lstat.c (orig_lstat): New function.
45407         (rpl_lstat): Use orig_lstat instead of lstat.
45408         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
45409         AC_C_INLINE. Set REPLACE_LSTAT.
45410         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
45411         and REPLACE_LSTAT.
45412         * modules/lstat (Files): Remove lib/lstat.h.
45413         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45414         (Include): Specify <sys/stat.h> instead of lstat.h.
45415         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
45416         REPLACE_LSTAT.
45417         * NEWS: Mention the change.
45418
45419 2008-10-20  Bruno Haible  <bruno@clisp.org>
45420
45421         * modules/posix_spawn-tests: New file.
45422         * tests/test-posix_spawn3.c: New file.
45423
45424 2008-10-20  Bruno Haible  <bruno@clisp.org>
45425
45426         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
45427         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45428         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
45429         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45430         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
45431
45432 2008-10-20  Bruno Haible  <bruno@clisp.org>
45433
45434         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
45435         of posix_spawn on AIX 5.3.
45436
45437 2008-10-20  Bruno Haible  <bruno@clisp.org>
45438
45439         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
45440
45441 2008-10-20  Bruno Haible  <bruno@clisp.org>
45442
45443         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
45444         of AC_LANG_PROGRAM.
45445
45446 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45447
45448         * lib/netdb.in.h: Don't define GNU specific constants until they
45449         are supported or needed.  Reported by Bruno Haible
45450         <bruno@clisp.org>.
45451
45452 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45453
45454         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
45455
45456 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45457
45458         * lib/getaddrinfo.h: Remove file.
45459         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
45460         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
45461         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
45462         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
45463         * modules/netdb: Substitute GNULIB_GETADDRINFO.
45464         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
45465         * tests/test-getaddrinfo.c: Likewise.
45466         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
45467         * NEWS: Mention change.
45468
45469 2008-10-19  Bruno Haible  <bruno@clisp.org>
45470
45471         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
45472
45473 2008-10-19  Bruno Haible  <bruno@clisp.org>
45474
45475         * lib/wait-process.c: Include simply <sys/wait.h>.
45476         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
45477         WIFSTOPPED): Remove fallback definitions.
45478         * modules/wait-process (Depends-on): Add sys_wait.
45479
45480         New module 'sys_wait'.
45481         * modules/sys_wait: New file.
45482         * lib/sys_wait.in.h: New file, partially copied from
45483         lib/wait-process.c.
45484         * m4/sys_wait_h.m4: New file.
45485         * doc/posix-headers/sys_wait.texi: Mention the new module.
45486
45487 2008-10-19  Bruno Haible  <bruno@clisp.org>
45488
45489         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
45490
45491 2008-10-19  Bruno Haible  <bruno@clisp.org>
45492
45493         Assume that waitpid() fills an 'int' status, not a 'union wait'.
45494         * lib/wait-process.c (WAIT_T): Remove type.
45495         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
45496         (wait_subprocess): Update.
45497
45498 2008-10-19  Bruno Haible  <bruno@clisp.org>
45499
45500         New module 'atoll'.
45501         * modules/atoll: New file.
45502         * lib/stdlib.in.h (atoll): New declaration.
45503         * lib/atoll.c: New file, from glibc with modifications.
45504         * m4/atoll.m4: New file.
45505         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
45506         HAVE_ATOLL.
45507         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
45508         * doc/posix-functions/atoll.texi: Mention the new module.
45509
45510 2008-10-19  Bruno Haible  <bruno@clisp.org>
45511
45512         Add strtoull() declaration to <stdlib.h>.
45513         * lib/stdlib.in.h (strtoull): New declaration.
45514         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45515         Set HAVE_STRTOULL.
45516         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
45517         HAVE_STRTOULL.
45518         * modules/strtoull (Depends-on): Add stdlib.
45519         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45520         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
45521         HAVE_STRTOULL.
45522
45523 2008-10-19  Bruno Haible  <bruno@clisp.org>
45524
45525         Add strtoll() declaration to <stdlib.h>.
45526         * lib/stdlib.in.h (strtoll): New declaration.
45527         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45528         Set HAVE_STRTOLL.
45529         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
45530         HAVE_STRTOLL.
45531         * modules/strtoll (Depends-on): Add stdlib.
45532         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45533         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
45534
45535 2008-10-19  Bruno Haible  <bruno@clisp.org>
45536
45537         * modules/bcopy (Depends-on): Add strings.
45538         (Include): Specify <strings.h>.
45539
45540 2008-10-19  Bruno Haible  <bruno@clisp.org>
45541
45542         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
45543
45544 2008-10-19  Bruno Haible  <bruno@clisp.org>
45545
45546         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
45547         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
45548         mingw.
45549
45550 2008-10-19  Bruno Haible  <bruno@clisp.org>
45551
45552         * lib/atanl.c: Don't include isnanl.h.
45553         * lib/cosl.c: Likewise.
45554         * lib/ldexpl.c: Likewise.
45555         * lib/logl.c: Likewise.
45556         * lib/sinl.c: Likewise.
45557         * lib/sqrtl.c: Likewise.
45558         * lib/tanl.c: Likewise.
45559
45560         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
45561         * lib/isnanf.h: Remove file.
45562         * lib/isnand.h: Remove file.
45563         * lib/isnanl.h: Remove file.
45564         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
45565         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
45566         macros.
45567         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
45568         HAVE_ISNANF, don't define it as a C macro.
45569         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
45570         HAVE_ISNAND, don't define it as a C macro.
45571         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
45572         HAVE_ISNANL, don't define it as a C macro.
45573         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
45574         HAVE_ISNAN[FDL].
45575         * modules/isnanf (Files): Remove lib/isnanf.h.
45576         (Depends-on): Add math.
45577         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45578         (Include): Specify <math.h> instead of isnanf.h.
45579         * modules/isnand (Files): Remove lib/isnand.h.
45580         (Depends-on): Add math.
45581         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45582         (Include): Specify <math.h> instead of isnand.h.
45583         * modules/isnanl (Files): Remove lib/isnanl.h.
45584         (Depends-on): Add math.
45585         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45586         (Include): Specify <math.h> instead of isnanl.h.
45587         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
45588         HAVE_ISNAN[FDL].
45589         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
45590         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
45591         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
45592         * NEWS: Mention the change.
45593
45594 2008-10-18  Bruno Haible  <bruno@clisp.org>
45595
45596         Add getusershell(), setusershell(), endusershell() declarations to
45597         <unistd.h>.
45598         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
45599         declarations.
45600         * lib/getusershell.c: Include unistd.h.
45601         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
45602         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45603         HAVE_GETUSERSHELL.
45604         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
45605         and HAVE_GETUSERSHELL.
45606         * modules/getusershell (Depends-on): Add unistd, extensions.
45607         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45608         (Include): Specify <unistd.h>.
45609         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
45610         HAVE_GETUSERSHELL.
45611
45612 2008-10-18  Bruno Haible  <bruno@clisp.org>
45613
45614         Add a getloadavg() declaration to <stdlib.h>.
45615         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
45616         getloadavg declaration.
45617         (getloadavg): New declaration.
45618         * lib/getloadavg.c: Include <stdlib.h> first.
45619         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
45620         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
45621         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
45622         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
45623         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45624         * modules/getloadavg (Depends-on): Add stdlib, extensions.
45625         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45626         (Include): Specify <stdlib.h>.
45627         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
45628         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45629
45630 2008-10-18  Bruno Haible  <bruno@clisp.org>
45631
45632         * lib/dirchownmod.c: Don't include lchmod.h.
45633
45634         Move the lchmod() declaration to <sys/stat.h>.
45635         * lib/lchmod.h: Remove file.
45636         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
45637         (lchmod): New declaration, moved here from lib/lchown.h.
45638         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
45639         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
45640         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
45641         and HAVE_LCHMOD.
45642         * modules/lchmod (Files): Remove lib/lchmod.h.
45643         (Depends-on): Add sys_stat, extensions.
45644         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45645         (Include): Specify <sys/stat.h> instead of lchmod.h.
45646         * modules/sys_stat (Depends-on): Add link-warning.
45647         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
45648         definition of GL_LINK_WARNING.
45649         * NEWS: Mention the change.
45650
45651 2008-10-18  Bruno Haible  <bruno@clisp.org>
45652
45653         * lib/fchdir.c: Don't include dirfd.h.
45654         * lib/fts.c: Likewise.
45655         * lib/getcwd.c: Likewise.
45656         * lib/glob.c: Likewise.
45657
45658         Move the dirfd() declaration to <dirent.h>.
45659         * lib/dirfd.h: Remove file.
45660         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
45661         (dirfd): New declaration.
45662         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
45663         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
45664         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
45665         HAVE_DECL_DIRFD.
45666         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
45667         HAVE_DECL_DIRFD.
45668         * modules/dirfd (Files): Remove lib/dirfd.h.
45669         (Depends-on): Add dirent, extensions.
45670         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
45671         (Include): Specify <dirent.h> instead of dirfd.h.
45672         * modules/dirent (Depends-on): Add link-warning.
45673         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
45674         definition of GL_LINK_WARNING.
45675         * NEWS: Mention the change.
45676
45677 2008-10-18  Bruno Haible  <bruno@clisp.org>
45678
45679         Move the euidaccess() declaration to <unistd.h>.
45680         * lib/euidaccess.h: Remove file.
45681         * lib/unistd.in.h (euidaccess): New declaration.
45682         * lib/euidaccess.c: Don't include euidaccess.h.
45683         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
45684         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
45685         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
45686         and HAVE_EUIDACCESS.
45687         * modules/euidaccess (Files): Remove lib/euidaccess.h.
45688         (Depends-on): Add unistd.
45689         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45690         (Include): Specify <unistd.h> instead of euidaccess.h.
45691         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
45692         HAVE_EUIDACCESS.
45693         * NEWS: Mention the change.
45694
45695 2008-10-18  Bruno Haible  <bruno@clisp.org>
45696
45697         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
45698
45699         Move the getdomainname() declaration to <unistd.h>.
45700         * lib/getdomainname.h: Remove file.
45701         * lib/unistd.in.h (getdomainname): New declaration.
45702         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
45703         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
45704         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45705         HAVE_GETDOMAINNAME.
45706         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45707         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
45708         * modules/getdomainname (Files): Remove lib/getdomainname.h.
45709         (Depends-on): Add unistd, extensions.
45710         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45711         (Includes): Specify <unistd.h> instead of getdomainname.h.
45712         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
45713         HAVE_GETDOMAINNAME.
45714         * NEWS: Mention the change.
45715
45716 2008-10-18  Bruno Haible  <bruno@clisp.org>
45717
45718         * modules/dirent: New file.
45719         * m4/dirent_h.m4: New file.
45720         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
45721         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
45722         * modules/fchdir (Files): Remove lib/dirent.in.h.
45723         (Depends-on): Add dirent.
45724         (Makefile.am): Move rules to modules/dirent.
45725         * doc/posix-headers/dirent.texi: Mention the new module.
45726
45727 2008-10-18  Bruno Haible  <bruno@clisp.org>
45728
45729         Avoid -Wunused-parameter warnings in public gnulib header files.
45730         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
45731         macro.
45732         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
45733
45734 2008-10-18  Bruno Haible  <bruno@clisp.org>
45735
45736         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
45737         * doc/glibc-functions/error.texi: Mention the module 'error'.
45738         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
45739         * doc/glibc-functions/getdomainname.texi: Mention the module
45740         'getdomainname'.
45741         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
45742         * doc/glibc-functions/getpagesize.texi: Mention the module
45743         'getpagesize'.
45744         * doc/glibc-functions/getusershell.texi: Mention the module
45745         'getusershell'.
45746         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
45747         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
45748         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
45749         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
45750         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
45751         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
45752         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
45753         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
45754         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
45755         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
45756         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
45757         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
45758         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
45759         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
45760
45761 2008-10-17  Bruno Haible  <bruno@clisp.org>
45762
45763         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
45764         HP-UX and IRIX, use -0.0L.
45765         * tests/test-ceill.c (minus_zero): Likewise.
45766         * tests/test-floorl.c (minus_zero): Likewise.
45767         * tests/test-frexpl.c (minus_zero): Likewise.
45768         * tests/test-isnan.c (minus_zerol): Likewise.
45769         * tests/test-isnanl.h (minus_zero): Likewise.
45770         * tests/test-ldexpl.c (minus_zero): Likewise.
45771         * tests/test-roundl.c (minus_zero): Likewise.
45772         * tests/test-signbit.c (minus_zerol): Likewise.
45773         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
45774         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
45775         * tests/test-truncl.c (minus_zero): Likewise.
45776         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
45777         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
45778         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
45779         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
45780
45781 2008-10-17  Bruno Haible  <bruno@clisp.org>
45782
45783         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
45784         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
45785         that it gets activated only for gcc >= 3.0.
45786         * lib/dirent.in.h: Likewise.
45787         * lib/errno.in.h: Likewise.
45788         * lib/fcntl.in.h: Likewise.
45789         * lib/float.in.h: Likewise.
45790         * lib/iconv.in.h: Likewise.
45791         * lib/inttypes.in.h: Likewise.
45792         * lib/locale.in.h: Likewise.
45793         * lib/math.in.h: Likewise.
45794         * lib/netdb.in.h: Likewise.
45795         * lib/netinet_in.in.h: Likewise.
45796         * lib/search.in.h: Likewise.
45797         * lib/signal.in.h: Likewise.
45798         * lib/spawn.in.h: Likewise.
45799         * lib/stdarg.in.h: Likewise.
45800         * lib/stdint.in.h: Likewise.
45801         * lib/stdio.in.h: Likewise.
45802         * lib/stdlib.in.h: Likewise.
45803         * lib/string.in.h: Likewise.
45804         * lib/strings.in.h: Likewise.
45805         * lib/sys_file.in.h: Likewise.
45806         * lib/sys_ioctl.in.h: Likewise.
45807         * lib/sys_select.in.h: Likewise.
45808         * lib/sys_socket.in.h: Likewise.
45809         * lib/sys_stat.in.h: Likewise.
45810         * lib/sys_time.in.h: Likewise.
45811         * lib/sysexits.in.h: Likewise.
45812         * lib/time.in.h: Likewise.
45813         * lib/unistd.in.h: Likewise.
45814         * lib/wchar.in.h: Likewise.
45815         * lib/wctype.in.h: Likewise.
45816         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45817
45818 2008-10-17  Jim Meyering  <meyering@redhat.com>
45819
45820         ignore-value: don't depend on inline module
45821         * modules/ignore-value (Depends-on): Remove 'inline'.
45822         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
45823         Suggestion from Bruno Haible.
45824
45825 2008-10-17  Bruno Haible  <bruno@clisp.org>
45826
45827         New implementation of condition variables for Win32.
45828         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
45829         (gl_linked_waitqueue_t): New type.
45830         (gl_cond_t): Use it.
45831         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
45832         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
45833         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
45834         (glthread_cond_init_func, glthread_cond_wait_func,
45835         glthread_cond_timedwait_func, glthread_cond_signal_func,
45836         glthread_cond_broadcast_func, glthread_cond_destroy_func):
45837         Reimplemented on the basis of gl_linked_waitqueue_t.
45838         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
45839         gl_waitqueue_t.
45840         (gl_rwlock_t): Update.
45841         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
45842
45843 2008-10-17  Simon Josefsson  <simon@josefsson.org>
45844
45845         * modules/recvfrom (Depends-on): Add dependency on getpeername.
45846         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45847
45848 2008-10-17  Jim Meyering  <meyering@redhat.com>
45849
45850         ignore-value: new module
45851         * modules/ignore-value: New file.
45852         * lib/ignore-value.h: New file.
45853         * MODULES.html.sh (Compiler warning management): New section,
45854         just for this module.  More to come.
45855
45856 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45857
45858         open-safer.c: avoid 'signed and unsigned in conditional...' warning
45859         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
45860         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
45861
45862 2008-10-16  Jim Meyering  <meyering@redhat.com>
45863
45864         openat-die.c: avoid 'no previous prototype' warning
45865         * lib/openat-die.c: Include "openat.h".
45866         Reported by Reuben Thomas <rrt@sc3d.org>.
45867
45868 2008-10-16  Simon Josefsson  <simon@josefsson.org>
45869
45870         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
45871         * lib/netdb.in.h: Fix typo.
45872         Reported by Bruno Haible  <bruno@clisp.org>
45873
45874         * lib/netdb.in.h: Include sys/socket.h for platforms without
45875         netdb.h, to get structures like hostent on MinGW.
45876         * modules/netdb (Depends-on): Add sys_socket.
45877
45878 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45879
45880         * modules/netdb, modules/netdb-tests: New file.
45881         * m4/netdb_h.m4: New file.
45882         * lib/netdb.in.h: Add, currently just an empty file pending
45883         definitions.
45884         * tests/test-netdb.c: New file.
45885         * doc/posix-headers/netdb.texi: Mention that we replace it if
45886         needed.
45887         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45888         netdb.
45889
45890 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45891
45892         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
45893         with code.
45894
45895 2008-10-13  Bruno Haible  <bruno@clisp.org>
45896
45897         * lib/glthread/cond.c (glthread_cond_wait_func,
45898         glthread_cond_timedwait_func): Add a comment.
45899
45900 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45901
45902         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
45903         * tests/test-select.c: Likewise,
45904
45905 2008-10-13  Bruno Haible  <bruno@clisp.org>
45906
45907         * lib/glthread/cond.c (glthread_cond_wait_func,
45908         glthread_cond_timedwait_func): Fix variable name.
45909         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45910
45911 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
45912
45913         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
45914         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
45915         struct sockaddr.sa_len.
45916         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
45917
45918 2008-10-13  Simon Josefsson  <simon@josefsson.org>
45919
45920         * build-aux/pmccabe2html: Add css and css_url parameters.
45921
45922 2008-10-12  Bruno Haible  <bruno@clisp.org>
45923
45924         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
45925         calling aclx_get.
45926         Reported by Rainer Tammer <tammer@tammer.net>.
45927
45928 2008-10-12  Bruno Haible  <bruno@clisp.org>
45929
45930         Use msvcrt aware primitives for creation/termination of Win32 threads.
45931         * lib/glthread/thread.c: Include <process.h>.
45932         (glthread_create_func): Use _beginthreadex instead of CreateThread.
45933         (wrapper_func): Update signature.
45934         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
45935
45936 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45937             Bruno Haible  <bruno@clisp.org>
45938
45939         Provide a Win32 implementation of the 'cond' module.
45940         * lib/glthread/cond.h [USE_WIN32]: New implementation.
45941         * lib/glthread/cond.c (glthread_cond_init_func,
45942         glthread_cond_wait_func, glthread_cond_timedwait_func,
45943         glthread_cond_signal_func, glthread_cond_broadcast_func,
45944         glthread_cond_destroy_func) [USE_WIN32]: New functions.
45945         * modules/cond (Dependencies): Add gettimeofday.
45946
45947 2008-10-11  Bruno Haible  <bruno@clisp.org>
45948
45949         Make sleep work on older versions of mingw.
45950         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
45951         only whether it exists.
45952         * doc/posix-functions/sleep.texi: Mention the problem with older
45953         versions of mingw.
45954
45955 2008-10-11  Bruno Haible  <bruno@clisp.org>
45956
45957         New module 'shutdown'.
45958         * modules/shutdown: New file.
45959         * lib/sys_socket.in.h (shutdown): New declaration.
45960         * lib/winsock.c (shutdown): New function.
45961         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45962         GNULIB_SHUTDOWN.
45963         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
45964         * doc/posix-functions/shutdown.texi: Document the new module.
45965
45966 2008-10-11  Jim Meyering  <meyering@redhat.com>
45967
45968         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
45969
45970 2008-10-11  Bruno Haible  <bruno@clisp.org>
45971
45972         New module 'fclose'.
45973         * modules/fclose: New file.
45974         * lib/stdio.in.h (fclose): New declaration.
45975         * lib/fclose.c: New file.
45976         * m4/fclose.m4: New file.
45977         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
45978         REPLACE_FCLOSE.
45979         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
45980         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
45981         REPLACE_FCLOSE.
45982         * modules/close (Depends-on): fclose.
45983         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
45984
45985 2008-10-11  Bruno Haible  <bruno@clisp.org>
45986
45987         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
45988         set errno and don't call _close.
45989
45990 2008-10-10  Bruno Haible  <bruno@clisp.org>
45991
45992         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
45993         ACL, not afterwards. Fixes test failure on Cygwin.
45994
45995 2008-10-09  Ben Pfaff  <blp@gnu.org>
45996
45997         * build-aux/announce-gen: Fix gnulib version related part of usage
45998         message.  Die with a useful error message if no tarballs are
45999         found.
46000
46001 2008-10-10  Jim Meyering  <meyering@redhat.com>
46002
46003         bootstrap: use git's --depth=N option only if it's supported
46004         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
46005         recognize the --depth option.  Reported by Pádraig Brady.
46006
46007 2008-10-09  Bruno Haible  <bruno@clisp.org>
46008
46009         New module 'ioctl'.
46010         * modules/ioctl: New file.
46011         * lib/sys_socket.in.h (ioctl): Remove declaration.
46012         * lib/winsock.c: Include <sys/ioctl.h>.
46013         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
46014         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
46015         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
46016         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
46017         * doc/posix-functions/ioctl.texi: Mention the new module.
46018
46019 2008-10-09  Bruno Haible  <bruno@clisp.org>
46020
46021         New module 'sys_ioctl'.
46022         * lib/sys_ioctl.in.h: New file.
46023         * m4/sys_ioctl_h.m4: New file.
46024         * modules/sys_ioctl: New file.
46025         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
46026
46027 2008-10-09  Bruno Haible  <bruno@clisp.org>
46028
46029         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
46030         * lib/winsock.c: Include <stdarg.h>.
46031         (rpl_ioctl): Change to second argument 'int' and then varargs.
46032
46033 2008-10-09  Bruno Haible  <bruno@clisp.org>
46034
46035         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
46036         when the sys_socket module is present and the system has <winsock2.h>.
46037
46038 2008-10-09  Bruno Haible  <bruno@clisp.org>
46039
46040         * doc/posix-functions/close.texi: Mention module 'close' instead of
46041         module 'sys_socket'.
46042
46043 2008-10-09  Bruno Haible  <bruno@clisp.org>
46044
46045         * doc/glibc-headers/sys_ioctl.texi: New file.
46046         * doc/gnulib.texi: Include it.
46047
46048 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46049             Bruno Haible  <bruno@clisp.org>
46050
46051         Combine the two replacements of 'close'.
46052         * lib/sys_socket.in.h (close): Define to a reminder to include
46053         <unistd.h>.
46054         (_gl_close_fd_maybe_socket): New declaration.
46055         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
46056         * lib/winsock.c (close): Remove undefinition.
46057         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
46058         needed for the gnulib module 'close'.
46059         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
46060         define to an error symbol or to a warning, if suitable.
46061         * lib/close.c: Include <sys/socket.h>.
46062         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
46063         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
46064         UNISTD_H_HAVE_WINSOCK2_H.
46065         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
46066         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46067         UNISTD_H_HAVE_WINSOCK2_H.
46068         * modules/sys_socket (Files): Add m4/unistd_h.m4.
46069         (configure.ac): Set a module indicator.
46070         (Makefile.am): Substitute GNULIB_CLOSE.
46071         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
46072         * modules/poll-tests (Depends-on): Add close.
46073         * modules/select-tests (Depends-on): Likewise.
46074
46075 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46076             Bruno Haible  <bruno@clisp.org>
46077
46078         New module 'close'.
46079         * modules/close: New file.
46080         * lib/unistd.in.h (close): Move declaration out of the
46081         FCHDIR_REPLACEMENT scope.
46082         (_gl_unregister_fd): New declaration.
46083         * lib/close.c: New file.
46084         * lib/fchdir.c (rpl_close): Remove function.
46085         * m4/close.m4: New file.
46086         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
46087         close.
46088         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
46089         REPLACE_CLOSE.
46090         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
46091         REPLACE_CLOSE.
46092         * modules/fchdir (Depends-on): Add close.
46093
46094 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46095             Bruno Haible  <bruno@clisp.org>
46096
46097         * lib/fcntl.in.h (open): Simplify conditionals.
46098         (_gl_register_fd): New declaration.
46099         * lib/fchdir.c (rpl_open): Remove function.
46100         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
46101         also.
46102         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
46103         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
46104         open.
46105
46106 2008-10-09  Jim Meyering  <meyering@redhat.com>
46107
46108         GNUmakefile: use the more name-space-friendly "_version"
46109         * top/GNUmakefile (_dummy): Update.
46110         (_version): Rename from "version".
46111
46112 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46113             Bruno Haible  <bruno@clisp.org>
46114
46115         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
46116         rpl_close.
46117         (_gl_register_fd): New function, extracted from rpl_open.
46118         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
46119         (rpl_open, rpl_opendir): Use _gl_register_fd.
46120
46121 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46122
46123         Fix organization of 'open' replacement.
46124         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
46125         (gl_FUNC_OPEN): Use it.
46126         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
46127
46128 2008-10-08  Bruno Haible  <bruno@clisp.org>
46129
46130         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
46131
46132 2008-10-08  Simon Josefsson  <simon@josefsson.org>
46133
46134         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
46135         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
46136         listen).
46137
46138 2008-10-08  Eric Blake  <ebb9@byu.net>
46139
46140         GNUmakefile: add 'make version' target
46141         * top/GNUmakefile (_curr-ver): Split version update rules...
46142         (version): ...into a target.
46143
46144 2008-10-07  Bruno Haible  <bruno@clisp.org>
46145
46146         Use a more portable replacement expression for -0.0L.
46147         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
46148         instead of -0.0L. Fix m4 quotation.
46149
46150         * tests/test-signbit.c: Include <float.h>.
46151         (minus_zero): New variable.
46152         (test_signbitl): Use minus_zero instead of -zero.
46153         * modules/signbit-tests (Depends-on): Add float.
46154
46155         * tests/test-ceill.c: Include <float.h>.
46156         (zero): Remove variable.
46157         (minus_zero): New variable.
46158         (main): Use minus_zero instead of -zero.
46159         * modules/ceill-tests (Depends-on): Add float.
46160
46161         * tests/test-floorl.c: Include <float.h>.
46162         (zero): Remove variable.
46163         (minus_zero): New variable.
46164         (main): Use minus_zero instead of -zero.
46165         * modules/floorl-tests (Depends-on): Add float.
46166
46167         * tests/test-roundl.c: Include <float.h>.
46168         (zero): Remove variable.
46169         (minus_zero): New variable.
46170         (main): Use minus_zero instead of -zero.
46171         * modules/roundl-tests (Depends-on): Add float.
46172
46173         * tests/test-truncl.c: Include <float.h>.
46174         (zero): Remove variable.
46175         (minus_zero): New variable.
46176         (main): Use minus_zero instead of -zero.
46177         * modules/truncl-tests (Depends-on): Add float.
46178
46179         * tests/test-frexpl.c (zero): Remove variable.
46180         (minus_zero): New variable.
46181         (main): Use minus_zero instead of -zero.
46182         * modules/frexpl-tests (Depends-on): Add float.
46183
46184         * tests/test-isnan.c (zerol): Remove variable.
46185         (minus_zerol): New variable.
46186         (test_long_double): Use minus_zerol instead of -zerol.
46187         * modules/isnan-tests (Depends-on): Add float.
46188
46189         * tests/test-isnanl.h (zero): Remove variable.
46190         (minus_zero): New variable.
46191         (main): Use minus_zero instead of -zero.
46192         * modules/isnanl-nolibm-tests (Depends-on): Add float.
46193         * modules/isnanl-tests (Depends-on): Add float.
46194
46195         * tests/test-ldexpl.c (zero): Remove variable.
46196         (minus_zero): New variable.
46197         (main): Use minus_zero instead of -zero.
46198         * modules/ldexpl-tests (Depends-on): Add float.
46199
46200         * tests/test-snprintf-posix.h (zerol): Remove variable.
46201         (minus_zerol): New variable.
46202         (test_function): Use minus_zerol instead of -zerol.
46203         * modules/snprintf-posix-tests (Depends-on): Add float.
46204         * modules/vsnprintf-posix-tests (Depends-on): Add float.
46205
46206         * tests/test-sprintf-posix.h (zerol): Remove variable.
46207         (minus_zerol): New variable.
46208         (test_function): Use minus_zerol instead of -zerol.
46209         * modules/sprintf-posix-tests (Depends-on): Add float.
46210         * modules/vsprintf-posix-tests (Depends-on): Add float.
46211
46212         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
46213         (minus_zerol): New variable.
46214         (test_function): Use minus_zerol instead of -zerol.
46215         * modules/vasnprintf-posix-tests (Depends-on): Add float.
46216
46217         * tests/test-vasprintf-posix.c (zerol): Remove variable.
46218         (minus_zerol): New variable.
46219         (test_function): Use minus_zerol instead of -zerol.
46220         * modules/vasprintf-posix-tests (Depends-on): Add float.
46221
46222 2008-10-07  Simon Josefsson  <simon@josefsson.org>
46223
46224         * MODULES.html.sh (Support for building documentation): Mention
46225         pmccabe2html.  Sort entries.
46226
46227         Add pmccabe2html module, from gnupdf.
46228         * build-aux/pmccabe.css: New file.
46229         * build-aux/pmccabe2html: New file.
46230         * m4/pmccabe2html.m4: New file.
46231         * modules/pmccabe2html: New file.
46232
46233 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
46234
46235         flock: new module
46236         * MODULES.html.sh: Add to list of modules.
46237         * lib/flock.c: flock implementation for Windows and Unix systems
46238         which have fcntl.
46239         * doc/glibc-functions/flock.texi: Update documentation.
46240         * lib/sys_file.in.h: <sys/file.h> header file.
46241         * m4/flock.m4: M4 macros.
46242         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
46243         * modules/flock: flock module.
46244         * modules/flock-tests: flock tests module.
46245         * modules/sys_file: sys/file.h module.
46246         * tests/test-flock.c: test suite for flock.
46247
46248 2008-10-06  Jim Meyering  <meyering@redhat.com>
46249
46250         bootstrap: check for LT_INIT more portably still ;-)
46251         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
46252         Spotted by Bruno Haible.
46253
46254 2008-10-06  Eric Blake  <ebb9@byu.net>
46255
46256         test-signbit: avoid tripping Irix cc bug on -0.0L
46257         * tests/test-signbit.c (minus_zerol): Delete, and replace with
46258         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
46259         entire testsuite consistent and avoids an Irix 6.2 bug.
46260
46261 2008-10-05  Bruno Haible  <bruno@clisp.org>
46262             Jim Meyering  <jim@meyering.net>
46263
46264         Add an option for ignoring EPIPE during close_stdout.
46265         * lib/closeout.h: Include <stdbool.h>.
46266         (close_stdout_set_ignore_EPIPE): New declaration.
46267         * lib/closeout.c: Include <stdbool.h>.
46268         (ignore_EPIPE): New variable.
46269         (close_stdout_set_ignore_EPIPE): New function.
46270         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
46271         * lib/close-stream.c (close_stream): Mention the possible EPIPE
46272         failure.
46273         * modules/closeout (Depends-on): Add stdbool.
46274
46275 2008-10-05  Bruno Haible  <bruno@clisp.org>
46276
46277         * modules/accept: New file.
46278         * modules/bind: New file.
46279         * modules/connect: New file.
46280         * modules/getpeername: New file.
46281         * modules/getsockname: New file.
46282         * modules/getsockopt: New file.
46283         * modules/listen: New file.
46284         * modules/recv: New file.
46285         * modules/recvfrom: New file.
46286         * modules/send: New file.
46287         * modules/sendto: New file.
46288         * modules/setsockopt: New file.
46289         * modules/socket: New file.
46290         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
46291         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
46292         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
46293         the particular module is requested. Add a link warning when the
46294         particular module is not requested.
46295         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
46296         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
46297         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
46298         the particular module is requested.
46299         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
46300         gl_SYS_SOCKET_H_DEFAULTS): New macros.
46301         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
46302         * modules/sys_socket (Depends-on): Add link-warning.
46303         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
46304         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
46305         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
46306         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
46307         GL_LINK_WARNING.
46308         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
46309         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
46310         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
46311         * doc/posix-functions/getpeername.texi: Mention the new module
46312         'getpeername'.
46313         * doc/posix-functions/getsockname.texi: Mention the new module
46314         'getsockname'.
46315         * doc/posix-functions/getsockopt.texi: Mention the new module
46316         'getsockopt'.
46317         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
46318         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
46319         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
46320         * doc/posix-functions/send.texi: Mention the new module 'send'.
46321         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
46322         * doc/posix-functions/setsockopt.texi: Mention the new module
46323         'setsockopt'.
46324         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
46325         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
46326         listen, connect, accept.
46327         * modules/select-tests (Depends-on): Likewise.
46328
46329 2008-10-05  Bruno Haible  <bruno@clisp.org>
46330
46331         * lib/winsock.c (strerror): Remove unused #undef.
46332         (rpl_close): Remove unused local variable.
46333
46334         * modules/sys_socket (Depends-on); Add errno.
46335
46336 2008-10-05  Bruno Haible  <bruno@clisp.org>
46337
46338         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
46339         (select): Add a link warning when the 'select' module is not used.
46340         * modules/sys_select (Depends-on): Add link-warning.
46341         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
46342         Suggested by Paolo Bonzini.
46343
46344 2008-10-05  Jim Meyering  <meyering@redhat.com>
46345
46346         bootstrap: check for LT_INIT more portably
46347         * build-aux/bootstrap: Avoid using grep -E, since it's not
46348         portable enough.  Suggestion from Bruno Haible.
46349
46350 2008-10-05  Bruno Haible  <bruno@clisp.org>
46351
46352         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
46353         as being fixed by gnulib.
46354
46355 2008-10-05  Bruno Haible  <bruno@clisp.org>
46356
46357         * modules/select-tests: New file, mostly copied from
46358         modules/sys_select-tests.
46359         * tests/test-select.c: New file, mostly copied from
46360         tests/test-sys_select.c.
46361         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
46362         * modules/sys_select-tests (Depends-on): Remove all dependencies.
46363         (Makefile.am): Remove test_sys_select_LDADD.
46364
46365         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
46366         to an undefined symbol, for an error message.
46367         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
46368         (gl_SYS_SELECT_H_DEFAULTS): New macro.
46369         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
46370         winsock-select.c here.
46371         * modules/sys_select (Files): Remove lib/winsock-select.c.
46372         (Depends-on): Remove alloca.
46373         (Makefile.am): Substitute GNULIB_SELECT.
46374         * modules/select: New file.
46375         * doc/posix-functions/select.texi: Update.
46376
46377 2008-10-05  Bruno Haible  <bruno@clisp.org>
46378
46379         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
46380         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
46381         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
46382         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
46383         getdtablesize.
46384         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
46385         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
46386
46387 2008-10-05  Bruno Haible  <bruno@clisp.org>
46388
46389         * modules/getdtablesize-tests: New file.
46390         * tests/test-getdtablesize.c: New file.
46391
46392         New module 'getdtablesize'.
46393         * lib/unistd.in.h (getdtablesize): New declaration.
46394         * lib/getdtablesize.c: New file.
46395         * m4/getdtablesize.m4: New file.
46396         * modules/getdtablesize: New file.
46397         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46398         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
46399         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
46400         HAVE_GETDTABLESIZE.
46401         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
46402
46403 2008-10-05  Bruno Haible  <bruno@clisp.org>
46404
46405         * modules/sched (Makefile.am): Fix typo.
46406         Reported by Simon Josefsson.
46407
46408 2008-10-05  Jim Meyering  <meyering@redhat.com>
46409
46410         bootstrap: check for LT_INIT, too
46411         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
46412         are deprecated.  Suggestion from Ralf Wildenhues.
46413
46414 2008-10-05  Bruno Haible  <bruno@clisp.org>
46415
46416         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
46417         overriding them by ours.
46418         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
46419
46420 2008-10-05  Jim Meyering  <meyering@redhat.com>
46421
46422         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
46423         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
46424         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
46425
46426 2008-10-04  Bruno Haible  <bruno@clisp.org>
46427
46428         * modules/dup2 (License): Change to LGPLv2+.
46429         * modules/sleep (License): Likewise.
46430         * modules/perror (License): Likewise.
46431         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
46432         Blake.
46433         * modules/signal (License): Likewise.
46434         * modules/sigprocmask (License): Likewise.
46435         * modules/raise (License): Change to LGPLv2+, with approval by Jim
46436         Meyering.
46437
46438 2008-10-04  Bruno Haible  <bruno@clisp.org>
46439
46440         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
46441         Reported by Rainer Tammer <tammer@tammer.net>.
46442
46443 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
46444             Bruno Haible  <bruno@clisp.org>
46445
46446         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
46447         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
46448         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
46449
46450 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
46451
46452         filevercmp: new module
46453         * lib/filevercmp.h: New function filevercmp comparing version strings.
46454         * lib/filevercmp.c: Implementation of filevercmp function.
46455         * modules/filevercmp: Module metadata.
46456         * tests/test-filevercmp.c: Unit test for new module.
46457         * modules/filevercmp-tests: Unit test metadata.
46458         * MODULES.html.sh: Add filevercmp module.
46459
46460 2008-10-03  Bruno Haible  <bruno@clisp.org>
46461
46462         * lib/c-ctype.h: Add comment.
46463         Reported by Jim Meyering.
46464
46465 2008-10-02  Bruno Haible  <bruno@clisp.org>
46466
46467         * modules/posix_spawn-internal (Depends-on): Add 'open'.
46468
46469 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46470
46471         * build-aux/bootstrap: Allow renaming bootstrap, and change the
46472         name of bootstrap.conf accordingly.
46473
46474 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46475
46476         * build-aux/bootstrap: Install git-merge-changelog configuration
46477         items into .gitconfig if needed.
46478
46479 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46480
46481         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
46482         git repository, and initialize/update it accordingly.
46483
46484 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
46485
46486         * modules/fsync-tests: New file.
46487         * tests/test-fsync.c: New file.
46488
46489         New module 'fsync'.
46490         * lib/fsync.c: New file.
46491         * m4/fsync.m4: New file.
46492         * modules/fsync: New file.
46493         * lib/unistd.in.h (fsync): New declaration.
46494         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
46495         GNULIB_FSYNC and HAVE_FSYNC.
46496         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
46497         * MODULES.html.sh (posix_functions): Add fsync.
46498         * doc/posix-functions/fsync.texi: Mention the new module.
46499
46500 2008-10-02  Jim Meyering  <meyering@redhat.com>
46501
46502         fts.c: sync with similar code from coreutils' remove.c
46503         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
46504         Guard also with "#if defined __linux__", since for now at least,
46505         this code is Linux-kernel-specific.
46506
46507 2008-10-02  Jim Meyering  <meyering@redhat.com>
46508
46509         fts: bug fixes
46510         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
46511         Include <sys/vfs.h>, not <sys/statfs.h>.
46512
46513         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
46514         Include <sys/vfs.h>, not <sys/statfs.h>.
46515
46516 2008-10-01  Bruno Haible  <bruno@clisp.org>
46517
46518         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
46519         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
46520         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
46521         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
46522         * doc/posix-functions/posix_spawnp.texi: Likewise.
46523         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
46524         whether posix_spawn actually works.
46525         * m4/pipe.m4 (gl_PIPE): Likewise.
46526         * modules/execute (Files): Add m4/posix_spawn.m4.
46527         * modules/pipe (Files): Add m4/posix_spawn.m4.
46528         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
46529
46530 2008-10-01  Jim Meyering  <meyering@redhat.com>
46531
46532         remove trailing spaces
46533         * NEWS: Likewise.
46534         * lib/poll.c (poll): Likewise.
46535         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
46536         * lib/winsock.c (rpl_close): Likewise.
46537         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
46538         * modules/yield: Likewise.
46539         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
46540         * tests/test-sys_select.c (connect_to_socket): Likewise.
46541
46542         fts.c: adjust a new interface to be more generally useful
46543         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
46544         (fts_build): Adjust caller.
46545
46546 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46547
46548         * modules/cond-tests: New file.
46549         * tests/test-cond.c: New file.
46550
46551 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46552             Bruno Haible  <bruno@clisp.org>
46553
46554         * modules/cond (Dependencies): Add errno, time.
46555         * lib/glthread/cond.h: Include <time.h>.
46556         (gl_cond_define, gl_cond_define_initialized): Use the same definition
46557         across platforms.
46558
46559 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46560             Bruno Haible  <bruno@clisp.org>
46561
46562         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
46563
46564 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46565             Bruno Haible  <bruno@clisp.org>
46566
46567         * modules/tls-tests (Depends-on): Add thread, yield.
46568         (configure.ac): Remove all checks.
46569         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
46570         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46571         gl_thread_self): Remove definitions. Include glthread/thread.h and
46572         glthread/yield.h instead.
46573         (test_tls): Pass an additional NULL argument to gl_thread_join.
46574
46575 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46576             Bruno Haible  <bruno@clisp.org>
46577
46578         * modules/lock-tests (Depends-on): Add thread, yield.
46579         (configure.ac): Remove all checks.
46580         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
46581         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46582         gl_thread_self): Remove definitions. Include glthread/thread.h and
46583         glthread/yield.h instead.
46584         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
46585         additional NULL argument to gl_thread_join.
46586
46587 2008-09-30  Bruno Haible  <bruno@clisp.org>
46588
46589         Fix the Win32 implementation of the 'thread' module.
46590         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
46591         pointer type.
46592         (gl_thread_self): Invoke gl_thread_self_func.
46593         (gl_thread_self_func): New declaration.
46594         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
46595         (do_init_self_key, init_self_key): New functions.
46596         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
46597         Remove some fields.
46598         (running_threads, running_lock): Remove variables.
46599         (get_current_thread_handle): New function.
46600         (gl_thread_self_func, wrapper_func, glthread_create_func,
46601         glthread_join_func, gl_thread_exit_func): Largely rewritten and
46602         simplified.
46603
46604 2008-09-30  Bruno Haible  <bruno@clisp.org>
46605
46606         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
46607         files.
46608
46609 2008-09-30  Jim Meyering  <meyering@redhat.com>
46610
46611         fts.m4: correct the test for statfs.f_type
46612         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
46613         when checking for statfs.f_type.
46614
46615 2008-09-15  Simon Josefsson  <simon@josefsson.org>
46616
46617         tests: avoid some compiler warnings
46618         * tests/test-memchr.c (main): Pass NULL indirectly.
46619         * tests/test-getdate.c (main): Remove unused variable 'ret'.
46620
46621 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
46622
46623         getdate.y: disallow countable dayshifts like "4 yesterday ago"
46624         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
46625         exactly specified dayshifts.
46626         (dayshift): New rule.
46627         (rel): Add dayshift.
46628         (relative_time_table) [tomorrow, yesterday, today, now]:
46629         Use tDAY_SHIFT in place of tDAY_UNIT.
46630         * tests/test-getdate.c: Add tests for now-disallowed countable
46631         dayshifts, e.g., "4 yesterday ago".
46632
46633 2008-09-29  Bruno Haible  <bruno@clisp.org>
46634
46635         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
46636         * tests/test-posix_spawn1.in.sh: Renamed from
46637         tests/test-posix_spawn.in.sh.
46638         * tests/test-posix_spawn2.c: New file.
46639         * tests/test-posix_spawn2.in.sh: New file.
46640         * modules/posix_spawnp-tests (Files): Update.
46641         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
46642
46643 2008-09-29  Bruno Haible  <bruno@clisp.org>
46644
46645         Propagate effects of putenv/setenv/unsetenv to child processes.
46646         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
46647         * lib/pipe.c (create_pipe): Likewise.
46648
46649 2008-09-29  Bruno Haible  <bruno@clisp.org>
46650
46651         Enable use of shell scripts as executables in mingw.
46652         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
46653         run the program as a shell script.
46654         * lib/pipe.c (create_pipe): Likewise.
46655         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
46656         resulting array.
46657
46658 2008-09-29  Eric Blake  <ebb9@byu.net>
46659
46660         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
46661
46662 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
46663
46664         * doc/posix-functions/accept.texi: Update mingw problems.
46665         * doc/posix-functions/bind.texi: Update mingw problems.
46666         * doc/posix-functions/close.texi: Update mingw problems.
46667         * doc/posix-functions/connect.texi: Update mingw problems.
46668         * doc/posix-functions/getpeername.texi: Update mingw problems.
46669         * doc/posix-functions/getsockname.texi: Update mingw problems.
46670         * doc/posix-functions/getsockopt.texi: Update mingw problems.
46671         * doc/posix-functions/ioctl.texi: Update mingw problems.
46672         * doc/posix-functions/listen.texi: Update mingw problems.
46673         * doc/posix-functions/recv.texi: Update mingw problems.
46674         * doc/posix-functions/recvfrom.texi: Update mingw problems.
46675         * doc/posix-functions/select.texi: Update mingw problems.
46676         * doc/posix-functions/send.texi: Update mingw problems.
46677         * doc/posix-functions/sendto.texi: Update mingw problems.
46678         * doc/posix-functions/setsockopt.texi: Update mingw problems.
46679         * doc/posix-functions/socket.texi: Update mingw problems.
46680
46681 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
46682             Bruno Haible  <bruno@clisp.org>
46683
46684         * lib/sys_select.in.h: Include sys/time.h.
46685         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
46686         * modules/sys_select: Depend on sys_time.
46687         * tests/test-sys_select.c: Test that sys/select.h defines struct
46688         timeval fully.
46689
46690 2008-09-29  Bruno Haible  <bruno@clisp.org>
46691
46692         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
46693         * lib/sys_select.in.h: Likewise.
46694
46695 2008-09-29  Bruno Haible  <bruno@clisp.org>
46696
46697         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
46698
46699 2008-09-29  Bruno Haible  <bruno@clisp.org>
46700
46701         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
46702         Set LIBSOCKET instead of augmenting LIBS.
46703         * modules/sockets (Link): New section.
46704         * modules/sockets-tests (test_sockets_LDADD): New variable.
46705         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
46706         * modules/poll-tests (test_poll_LDADD): New variable.
46707         * NEWS: Document the change.
46708
46709 2008-09-29  Bruno Haible  <bruno@clisp.org>
46710
46711         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
46712         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
46713         ARPA_INET_H directly.
46714         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46715
46716 2008-09-28  Bruno Haible  <bruno@clisp.org>
46717
46718         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
46719         from gl_HEADER_SYS_SOCKET.
46720         (gl_HEADER_SYS_SOCKET): Invoke it.
46721         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46722
46723 2008-09-28  Bruno Haible  <bruno@clisp.org>
46724
46725         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
46726         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
46727         Needed on OSF/1 4.0.
46728
46729 2008-09-28  Bruno Haible  <bruno@clisp.org>
46730
46731         Override open more carefully.
46732         * lib/open.c (orig_open): New function.
46733         (rpl_open): Use orig_open instead of open.
46734         * lib/fcntl.in.h: Add special invocation convention.
46735         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
46736         (gl_FUNC_OPEN): Invoke it.
46737
46738         Override freopen more carefully.
46739         * lib/freopen.c (orig_freopen): New function.
46740         (rpl_freopen): Use orig_freopen instead of freopen.
46741         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
46742         (gl_FUNC_FREOPEN): Invoke it.
46743
46744         Override fopen more carefully.
46745         * lib/fopen.c (orig_fopen): New function.
46746         (rpl_fopen): Use orig_fopen instead of fopen.
46747         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
46748         (gl_FUNC_FOPEN): Invoke it.
46749         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
46750
46751 2008-09-28  Bruno Haible  <bruno@clisp.org>
46752
46753         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
46754         SIGPIPE.
46755
46756 2008-09-28  Bruno Haible  <bruno@clisp.org>
46757
46758         * tests/test-sigaction.c (handler, main): Disable the check whether
46759         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
46760         glibc systems with LinuxThreads.
46761
46762 2008-09-28  Bruno Haible  <bruno@clisp.org>
46763
46764         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
46765
46766         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
46767         with AIX xlc.
46768         * lib/fcntl.in.h (open): Likewise.
46769         Reported by Rainer Tammer <tammer@tammer.net>.
46770
46771 2008-09-28  Bruno Haible  <bruno@clisp.org>
46772
46773         * modules/posix_spawnp-tests: New file.
46774         * tests/test-posix_spawn.c: New file.
46775         * tests/test-posix_spawn.in.sh: New file.
46776
46777         New module 'posix_spawnp'.
46778         * modules/posix_spawnp: New file.
46779         * lib/spawnp.c: New file, from GNU libc with modifications.
46780         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
46781
46782         New module 'posix_spawn'.
46783         * modules/posix_spawn: New file.
46784         * lib/spawn.c: New file, from GNU libc with modifications.
46785         * doc/posix-functions/posix_spawn.texi: Mention the new module.
46786
46787         New module 'posix_spawnattr_destroy'.
46788         * modules/posix_spawnattr_destroy: New file.
46789         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
46790         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
46791         module.
46792
46793         New module 'posix_spawnattr_setsigmask'.
46794         * modules/posix_spawnattr_setsigmask: New file.
46795         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
46796         modifications.
46797         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
46798         new module.
46799
46800         New module 'posix_spawnattr_getsigmask'.
46801         * modules/posix_spawnattr_getsigmask: New file.
46802         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
46803         modifications.
46804         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
46805         new module.
46806
46807         New module 'posix_spawnattr_setsigdefault'.
46808         * modules/posix_spawnattr_setsigdefault: New file.
46809         * lib/spawnattr_setdefault.c: New file, from GNU libc with
46810         modifications.
46811         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
46812         new module.
46813
46814         New module 'posix_spawnattr_getsigdefault'.
46815         * modules/posix_spawnattr_getsigdefault: New file.
46816         * lib/spawnattr_getdefault.c: New file, from GNU libc with
46817         modifications.
46818         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
46819         new module.
46820
46821         New module 'posix_spawnattr_setschedpolicy'.
46822         * modules/posix_spawnattr_setschedpolicy: New file.
46823         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
46824         modifications.
46825         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
46826         new module.
46827
46828         New module 'posix_spawnattr_getschedpolicy'.
46829         * modules/posix_spawnattr_getschedpolicy: New file.
46830         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
46831         modifications.
46832         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
46833         new module.
46834
46835         New module 'posix_spawnattr_setschedparam'.
46836         * modules/posix_spawnattr_setschedparam: New file.
46837         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
46838         modifications.
46839         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
46840         new module.
46841
46842         New module 'posix_spawnattr_getschedparam'.
46843         * modules/posix_spawnattr_getschedparam: New file.
46844         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
46845         modifications.
46846         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
46847         new module.
46848
46849         New module 'posix_spawnattr_setpgroup'.
46850         * modules/posix_spawnattr_setpgroup: New file.
46851         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
46852         modifications.
46853         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
46854         module.
46855
46856         New module 'posix_spawnattr_getpgroup'.
46857         * modules/posix_spawnattr_getpgroup: New file.
46858         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
46859         modifications.
46860         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
46861         module.
46862
46863         New module 'posix_spawnattr_setflags'.
46864         * modules/posix_spawnattr_setflags: New file.
46865         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
46866         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
46867         module.
46868
46869         New module 'posix_spawnattr_getflags'.
46870         * modules/posix_spawnattr_getflags: New file.
46871         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
46872         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
46873         module.
46874
46875         New module 'posix_spawnattr_init'.
46876         * modules/posix_spawnattr_init: New file.
46877         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
46878         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
46879         module.
46880
46881         New module 'posix_spawn_file_actions_destroy'.
46882         * modules/posix_spawn_file_actions_destroy: New file.
46883         * lib/spawn_faction_destroy.c: New file, from GNU libc with
46884         modifications.
46885         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
46886         the new module.
46887
46888         New module 'posix_spawn_file_actions_addopen'.
46889         * modules/posix_spawn_file_actions_addopen: New file.
46890         * lib/spawn_faction_addopen.c: New file, from GNU libc with
46891         modifications.
46892         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
46893         the new module.
46894
46895         New module 'posix_spawn_file_actions_adddup2'.
46896         * modules/posix_spawn_file_actions_adddup2: New file.
46897         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
46898         modifications.
46899         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
46900         the new module.
46901
46902         New module 'posix_spawn_file_actions_addclose'.
46903         * modules/posix_spawn_file_actions_addclose: New file.
46904         * lib/spawn_faction_addclose.c: New file, from GNU libc with
46905         modifications.
46906         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
46907         the new module.
46908
46909         New module 'posix_spawn_file_actions_init'.
46910         * modules/posix_spawn_file_actions_init: New file.
46911         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
46912         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
46913         new module.
46914
46915         New module 'posix_spawn-internal'.
46916         * modules/posix_spawn-internal: New file.
46917         * lib/spawn_int.h: New file, from GNU libc with modifications.
46918         * lib/spawni.c: New file, from GNU libc with modifications.
46919         * m4/posix_spawn.m4: New file.
46920
46921         New module 'spawn'.
46922         * modules/spawn: New file.
46923         * lib/spawn.in.h: New file, from GNU libc with modifications.
46924         * m4/spawn_h.m4: New file.
46925         * doc/posix-headers/spawn.texi: Mention the new module.
46926
46927 2008-09-28  Bruno Haible  <bruno@clisp.org>
46928
46929         * modules/sched-tests: New file.
46930         * tests/test-sched.c: New file.
46931
46932         New module 'sched'.
46933         * modules/sched: New file.
46934         * lib/sched.in.h: New file.
46935         * m4/sched_h.m4: New file.
46936         * doc/posix-headers/sched.texi: Mention the new module.
46937
46938 2008-09-27  Eric Blake  <ebb9@byu.net>
46939
46940         Fix previous patch, and tweak references to $0.
46941         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
46942         (func_version, func_gnulib_dir): Don't call this program
46943         gnulib-tool.
46944         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
46945         with using $0 in function.
46946         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
46947         (func_fatal_error): Reuse the name the user invoked us with.
46948
46949 2008-09-27  Bruno Haible  <bruno@clisp.org>
46950
46951         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
46952         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
46953         (gl_ICONV_H): Not here.
46954         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
46955         instead of assigning ICONV_H directly.
46956
46957         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
46958         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
46959         WCHAR_H directly.
46960
46961 2008-09-27  Bruno Haible  <bruno@clisp.org>
46962
46963         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
46964         * modules/arpa_inet (Depends-on): Add link-warning.
46965         (Makefile.am): Insert the definition of GL_LINK-WARNING.
46966         * modules/unistd (Makefile.am): Likewise.
46967
46968 2008-09-26  Bruno Haible  <bruno@clisp.org>
46969
46970         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
46971         variables.
46972         (func_version): Essentially copied from gnulib-tool.
46973         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
46974         func_readlink): Copied from gnulib-tool.
46975
46976 2008-09-26  Bruno Haible  <bruno@clisp.org>
46977
46978         * gnulib-tool (func_version): Change directory to $gnulib_dir before
46979         invoking git-version-gen.
46980
46981 2008-09-26  Bruno Haible  <bruno@clisp.org>
46982
46983         * posix-modules: Update to directory names changed on 2008-01-19.
46984         Remove commas in output before splitting into words. No more need to
46985         avoid 'ftruncate' since 2007-02-19.
46986
46987 2008-09-26  Bruno Haible  <bruno@clisp.org>
46988
46989         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
46990
46991 2008-09-26  Bruno Haible  <bruno@clisp.org>
46992
46993         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
46994         * modules/fwriteerror (Depends-on): Add errno.
46995
46996 2008-09-26  Bruno Haible  <bruno@clisp.org>
46997
46998         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
46999         * tests/test-vc-list-files-cvs.sh: Likewise.
47000
47001 2008-09-26  Bruno Haible  <bruno@clisp.org>
47002
47003         * doc/posix-headers/sys_resource.texi: Reorder items.
47004
47005 2008-09-26  Jim Meyering  <meyering@redhat.com>
47006
47007         fts: tweak inode comparison function
47008         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
47009         inode numbers, as documented.
47010
47011         fts: sort dirent entries on inode number before traversing
47012         This avoids a quadratic, seek-related performance penalty when
47013         operating on a directory containing many entries (measurable at 10k;
47014         3.5 hours at 2 million entries with a cold cache) on certain types
47015         of file systems, including ext3 and ext4, but not tmpfs.
47016         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
47017         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
47018         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
47019         (fs_handles_readdir_ordered_dirents_efficiently): New function.
47020         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
47021         (fts_build): Set the stat.st_ino member from D_INO.
47022         If it is likely to be useful, sort dirent entries on inode number.
47023
47024         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
47025         and the struct statfs.f_type member.
47026         * modules/fts (Depends-on): Add d-ino.
47027
47028 2008-09-26  Bruno Haible  <bruno@clisp.org>
47029
47030         * modules/sigpipe-die (Depends-on): Add sigpipe.
47031
47032         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
47033         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
47034         and GNULIB_STDIO_H_SIGPIPE are set.
47035         * lib/stdio-write.c: New file.
47036         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
47037         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47038         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47039         REPLACE_STDIO_WRITE_FUNCS.
47040         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
47041         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47042         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47043         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
47044         * modules/stdio (Files): Add lib/stdio-write.c.
47045         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
47046         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47047         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47048         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
47049         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
47050         REPLACE_FPRINTF_POSIX.
47051         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
47052         REPLACE_PRINTF_POSIX.
47053         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
47054         REPLACE_VFPRINTF_POSIX.
47055         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
47056         REPLACE_VPRINTF_POSIX.
47057         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
47058         SIGPIPE issue.
47059         * doc/posix-functions/fputc.texi: Likewise.
47060         * doc/posix-functions/fputs.texi: Likewise.
47061         * doc/posix-functions/fwrite.texi: Likewise.
47062         * doc/posix-functions/printf.texi: Likewise.
47063         * doc/posix-functions/putc.texi: Likewise.
47064         * doc/posix-functions/putchar.texi: Likewise.
47065         * doc/posix-functions/puts.texi: Likewise.
47066         * doc/posix-functions/vfprintf.texi: Likewise.
47067         * doc/posix-functions/vprintf.texi: Likewise.
47068
47069         * modules/safe-write (Depends-on): Add write.
47070
47071         * modules/sigpipe-tests: New file.
47072         * tests/test-sigpipe.c: New file.
47073         * tests/test-sigpipe.sh: New file.
47074
47075         * modules/write: New file.
47076         * lib/unistd.in.h: Include <sys/types.h>.
47077         (write): New declaration.
47078         * lib/write.c: New file.
47079         * m4/write.m4: New file.
47080         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47081         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
47082         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
47083         GNULIB_WRITE, REPLACE_WRITE.
47084         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
47085         and the SIGPIPE issue.
47086
47087         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
47088         (raise): New declaration.
47089         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
47090         (ext_signal): New function.
47091         (rpl_raise): New function.
47092         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
47093         GNULIB_SIGNAL_H_SIGPIPE.
47094         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
47095         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
47096
47097         * modules/sigpipe: New file.
47098         * m4/sigpipe.m4: New file.
47099
47100 2008-09-25  Derek Price  <derek@ximbiot.com>
47101             Bruno Haible  <bruno@clisp.org>
47102
47103         * gnulib-tool (func_import): Report all license incompatibilities, not
47104         just the first one.
47105
47106 2008-09-25  Bruno Haible  <bruno@clisp.org>
47107
47108         * gnulib-tool (func_import): When computing the edits, consider not
47109         only the Makefile.ams that exist but also those that will be generated.
47110
47111 2008-09-25  Simon Josefsson  <simon@josefsson.org>
47112
47113         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
47114         fixes gnulib-tool --test warning about duplicate dependency.
47115
47116 2008-09-25  Bruno Haible  <bruno@clisp.org>
47117
47118         * gnulib-tool: Don't ask the user to perform edits in the generated
47119         Makefile.ams.
47120         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
47121         apply to the Makefile.am being generated.
47122         (func_emit_tests_Makefile_am): Execute edits that apply to the
47123         Makefile.am being generated.
47124         (func_import): Setup list of Makefile.am edits before emitting the
47125         Makefile.ams, not at the end.
47126         (func_create_testdir): Update.
47127         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47128
47129 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47130
47131         * gnulib-tool (func_import): Store the --tests-base option in the
47132         comment in gnulib-cache.m4.
47133
47134 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
47135
47136         * NEWS: Document increased portability that sys_select now provides.
47137
47138         * lib/sys_select.in.h: Install select wrapper.
47139         * lib/sys_socket.in.h: Use more descriptive name when there is no
47140         select wrapper.
47141         * lib/winsock-select.c: New.
47142         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
47143         Require gl_HEADER_SYS_SOCKET.
47144         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
47145         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
47146         * tests/test-sys_select.c: Add functional tests.
47147
47148 2008-09-24  Eric Blake  <ebb9@byu.net>
47149
47150         open, fopen: close fd leak in last patch
47151         * lib/open.c (rpl_open): Close fd before returning error.
47152         * lib/fopen.c (rpl_fopen): Close fd before returning error.
47153         * doc/posix-functions/open.texi (open): Document that Irix also
47154         has the bug.
47155         * doc/posix-functions/fopen.texi (fopen): Likewise.
47156         Reported by Paolo Bonzini.
47157
47158 2008-09-24  Bruno Haible  <bruno@clisp.org>
47159
47160         Ensure that a filename ending in a slash cannot be used to access a
47161         non-directory.
47162         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
47163         to check whether it's really a directory.
47164         * lib/fopen.c: Include fcntl.h, unistd.h.
47165         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
47166         and fdopen().
47167         * modules/fopen (Depends-on): Add unistd.
47168         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
47169         * tests/test-fopen.c (main): Likewise.
47170         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
47171         * doc/posix-functions/fopen.texi: Likewise.
47172         Reported by Eric Blake.
47173
47174 2008-09-23  Eric Blake  <ebb9@byu.net>
47175
47176         c-stack: avoid compiler optimizations when provoking overflow
47177         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
47178         recursion harder to optimize, to ensure a stack overflow occurs.
47179         * tests/test-c-stack.c (recurse): Likewise.
47180         Borrowed from libsigsegv.
47181
47182         c-stack: work around Irix sigaltstack bug
47183         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
47184         whether sigaltstack uses wrong end of stack_t (copied in part from
47185         libsigsegv).
47186         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
47187         Irix bug, without requiring an over-allocation.
47188         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
47189         bug.
47190
47191         fopen: document mingw bug on directories
47192         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
47193         not allowing a stream visiting a directory, even though reading
47194         from such a stream is not portable.
47195
47196 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47197
47198         * lib/poll.c: Rewrite.
47199         * modules/poll: Depend on alloca.
47200
47201 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47202
47203         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
47204         instead define prototypes for a full set of wrappers.  Ensure
47205         that Cygwin does not use the compatibility code, which is only
47206         for MinGW.
47207         * lib/winsock.c: New.
47208         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
47209         * modules/sys_socket: Add lib/winsock.c.
47210
47211         * modules/poll-tests: Add errno and perror.
47212         * tests/test-poll.c: Use ioctl, not ioctlsocket.
47213
47214 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47215
47216         * tests/test-poll.c: Downgrade minimum needed Winsock version.
47217
47218 2008-09-23  Bruno Haible  <bruno@clisp.org>
47219
47220         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
47221         * doc/glibc-functions/*: Likewise.
47222
47223 2008-09-23  Simon Josefsson  <simon@josefsson.org>
47224
47225         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
47226         success.
47227
47228 2008-09-22  Eric Blake  <ebb9@byu.net>
47229             Bruno Haible  <bruno@clisp.org>
47230
47231         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
47232         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
47233         supply %A but mishandle pseudo-NaN.
47234         Reported by Simon Josefsson.
47235
47236 2008-09-21  Bruno Haible  <bruno@clisp.org>
47237
47238         * tests/test-lock.c (main): Tweak skip message.
47239         * tests/test-tls.c (main): Likewise.
47240
47241 2008-09-21  Bruno Haible  <bruno@clisp.org>
47242
47243         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
47244         whether 'struct sigaction' has sa_sigaction here...
47245         (gl_PREREQ_SIG_HANDLER_H): ... not here.
47246         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
47247
47248 2008-09-21  Bruno Haible  <bruno@clisp.org>
47249
47250         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
47251         section.
47252         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
47253         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
47254         the new section.
47255         (Support for obsolete systems lacking POSIX:2001): New section.
47256         (String handling <string.h>): Move strdup to the new section.
47257         Suggested by Simon Josefsson and Paolo Bonzini.
47258
47259 2008-09-21  Bruno Haible  <bruno@clisp.org>
47260
47261         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
47262         exponents in %e and %g results on 'long double'. Needed for mingw's
47263         improved *printf functions.
47264         * tests/test-vasprintf-posix.c (test_function): Likewise.
47265         * tests/test-snprintf-posix.h (test_function): Likewise.
47266         * tests/test-sprintf-posix.h (test_function): Likewise.
47267         Reported by Eric Blake.
47268
47269 2008-09-21  Bruno Haible  <bruno@clisp.org>
47270
47271         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
47272         * tests/test-sprintf-posix.h (test_function): Likewise.
47273
47274 2008-09-21  Bruno Haible  <bruno@clisp.org>
47275
47276         * modules/getpass (Depends-on): Add strdup-posix.
47277
47278         New module 'strdup-posix'.
47279         * modules/strdup-posix: New file.
47280         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
47281         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
47282         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47283         REPLACE_STRDUP.
47284         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
47285         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
47286         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47287         strdup-posix.
47288
47289         * modules/strdup (Depends-on): Remove malloc-posix.
47290
47291 2008-09-20  Bruno Haible  <bruno@clisp.org>
47292
47293         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
47294         Wildenhues.
47295
47296 2008-09-20  Bruno Haible  <bruno@clisp.org>
47297
47298         Ensure that wint_t gets defined on IRIX 5.3.
47299         * lib/wchar.in.h (wint_t): Define if not defined by the system.
47300         * lib/wctype.in.h (wint_t): Likewise.
47301         (__wctype_wint_t): Remove type.
47302         (isw*): Use wint_t instead of __wctype_wint_t.
47303         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
47304         * modules/wchar (Files): Add m4/wint_t.m4.
47305         (Makefile.am): Substitute HAVE_WINT_T.
47306         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
47307         * tests/test-wctype.c: Check that wint_t is defined.
47308         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
47309         * doc/posix-headers/wctype.texi: Likewise.
47310         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47311
47312 2008-09-18  Bruno Haible  <bruno@clisp.org>
47313
47314         * gnulib-tool (func_exit): Update comment.
47315
47316 2008-09-18  Simon Josefsson  <simon@josefsson.org>
47317
47318         * modules/getaddrinfo (Depends-on): Remove strdup, this module
47319         assumes strdup exists and does not depend on strdup to return
47320         ENOMEM on out of memory conditions.
47321
47322 2008-09-18  Bruno Haible  <bruno@clisp.org>
47323
47324         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
47325         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
47326         digits for the exponent.
47327
47328 2008-09-18  Jim Meyering  <meyering@redhat.com>
47329             Bruno Haible  <bruno@clisp.org>
47330
47331         * lib/vasnprintf.c (decimal_point_char): Define also if
47332         NEED_PRINTF_INFINITE_LONG_DOUBLE.
47333
47334 2008-09-16  Bruno Haible  <bruno@clisp.org>
47335         and Eric Blake  <ebb9@byu.net>
47336
47337         vasnprintf: support Irix 5.3
47338         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
47339         that mishandle long double infinity.
47340         Reported by Tom G. Christensen.
47341
47342 2008-09-16  Bruno Haible  <bruno@clisp.org>
47343
47344         * doc/glibc-functions/scandir.texi: Mention the function is missing on
47345         Solaris 9.
47346         * doc/glibc-functions/alphasort.texi: Likewise.
47347         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
47348
47349 2008-09-16  Jim Meyering  <meyering@redhat.com>
47350
47351         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
47352         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
47353         a umask modification leak out of a subshell.  Otherwise, the
47354         opensolaris /bin/sh would be accepted and thus cause unwarranted
47355         failures in the coreutils test suite.
47356
47357 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
47358
47359         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
47360         to succeed.
47361
47362 2008-09-16  Jim Meyering  <meyering@redhat.com>
47363
47364         avoid spurious test failure when library is built without ACL support
47365         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
47366         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
47367         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
47368         * tests/test-copy-acl.sh: Likewise.
47369
47370 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47371
47372         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
47373         based on character occurrence counts.
47374
47375 2008-09-15  Eric Blake  <ebb9@byu.net>
47376
47377         tests: avoid some compiler warnings
47378         * tests/test-memchr.c (main): Pass NULL indirectly.
47379         * tests/test-closein.c (main): Avoid unused variable.
47380
47381 2008-09-15  Bruno Haible  <bruno@clisp.org>
47382
47383         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
47384         are missing on OpenBSD 4.0 individually.
47385         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47386
47387 2008-09-15  Bruno Haible  <bruno@clisp.org>
47388
47389         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
47390         * doc/posix-functions/strerror.texi: Mention also Cygwin.
47391         * doc/posix-functions/perror.texi: Likewise.
47392         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
47393         is missing.
47394         Reported by Eric Blake.
47395
47396         * lib/errno.in.h: Use replacement values >= 2000.
47397         Reported by Eric Blake.
47398
47399 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47400
47401         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
47402         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
47403         limit.
47404         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
47405         compareseq was aborted.
47406
47407 2008-09-14  Bruno Haible  <bruno@clisp.org>
47408
47409         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
47410         yvec_edit_count.
47411         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
47412         (fstrcmp_bounded): Simplify result computation accordingly.
47413
47414 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47415
47416         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
47417         (fstrcmp): Define in terms of fstrcmp_bounded.
47418         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
47419         lower_bound argument.
47420         Return quickly if the result is certainly < lower_bound.
47421         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
47422
47423 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47424
47425         * lib/diffseq.h (EARLY_ABORT): New macro.
47426         (compareseq): Change return type to bool. Return true when EARLY_ABORT
47427         evaluates to true.
47428
47429 2008-09-14  Bruno Haible  <bruno@clisp.org>
47430
47431         * modules/perror-tests: New file.
47432         * tests/test-perror.sh: New file.
47433         * tests/test-perror.c: New file.
47434
47435         New module 'perror'.
47436         * lib/stdio.in.h (perror): New declaration.
47437         * lib/perror.c: New file.
47438         * m4/perror.m4: New file.
47439         * modules/perror: New file.
47440         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
47441         * doc/posix-functions/perror.texi: Mention the perror module.
47442         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
47443         REPLACE_PERROR.
47444         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
47445         REPLACE_PERROR.
47446
47447 2008-09-14  Bruno Haible  <bruno@clisp.org>
47448
47449         * modules/stdio (Makefile.am): Reorder to match the order in
47450         lib/stdio.in.h.
47451         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47452
47453 2008-09-13  Bruno Haible  <bruno@clisp.org>
47454
47455         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
47456
47457 2008-09-13  Bruno Haible  <bruno@clisp.org>
47458
47459         Extend strerror to cover the added errno values.
47460         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
47461         (rpl_strerror): Provide error messages for the added errno values and
47462         for the WSA* values.
47463         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
47464         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
47465         strerror.
47466         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
47467         * modules/strerror (Depends-on): Add errno.
47468         * doc/posix-functions/strerror.texi: Document the change.
47469         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
47470         and EOVERFLOW.
47471
47472 2008-09-13  Bruno Haible  <bruno@clisp.org>
47473
47474         * modules/EOVERFLOW: Remove file.
47475         * m4/eoverflow.m4: Remove file.
47476         * modules/EOVERFLOW-tests: Remove file.
47477         * tests/test-EOVERFLOW.c: Remove file.
47478         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
47479         * modules/ftell (Depends-on): Likewise.
47480         * modules/getdelim (Depends-on): Likewise.
47481         * modules/getugroups (Depends-on): Likewise.
47482         * modules/poll (Depends-on): Likewise.
47483         * modules/snprintf (Depends-on): Likewise.
47484         * modules/sprintf-posix (Depends-on): Likewise.
47485         * modules/vasnprintf (Depends-on): Likewise.
47486         * modules/vasprintf (Depends-on): Likewise.
47487         * modules/vfprintf-posix (Depends-on): Likewise.
47488         * modules/vsnprintf (Depends-on): Likewise.
47489         * modules/vsprintf-posix (Depends-on): Likewise.
47490         * modules/xvasprintf (Depends-on): Likewise.
47491         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47492         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
47493         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
47494         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
47495         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47496         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
47497         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
47498         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
47499         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47500         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
47501         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
47502         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
47503         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47504         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
47505         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
47506         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
47507         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47508         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
47509         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
47510         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
47511         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47512         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
47513         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
47514         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
47515         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
47516         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47517         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
47518         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
47519         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
47520         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
47521         * MODULES.html.sh: Remove EOVERFLOW.
47522         * NEWS: Mention the change.
47523
47524 2008-09-13  Bruno Haible  <bruno@clisp.org>
47525
47526         * modules/errno-tests: New file.
47527         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
47528
47529         * lib/errno.in.h: New file.
47530         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
47531         * modules/errno: New file.
47532         * doc/posix-headers/errno.texi: Update documentation.
47533         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
47534
47535 2008-09-13  Bruno Haible  <bruno@clisp.org>
47536
47537         * tests/test-poll.c: Use #if for native Windows, rather than testing
47538         __MSVCRT__.
47539
47540 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47541             Bruno Haible  <bruno@clisp.org>
47542
47543         * lib/glob.c: Don't include <pwd.h> on native Windows.
47544         (WINDOWS32): New macro.
47545         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
47546
47547 2008-09-13  Bruno Haible  <bruno@clisp.org>
47548
47549         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
47550         (ETIMEDOUT): Remove macro.
47551         (glthread_cond_timedwait_multithreaded): New declaration.
47552         (glthread_cond_timedwait): Use it.
47553         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
47554         (glthread_cond_timedwait_multithreaded): New function.
47555
47556 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47557
47558         * modules/poll-tests: Do not check for io.h.
47559         * tests/test-poll.c: Check for __MSVCRT__ instead.
47560
47561 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47562
47563         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
47564         * modules/poll-tests: Add inet_pton, stdbool, sockets.
47565         * tests/test-poll.c: Use them.  Use _pipe on Windows.
47566
47567 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47568
47569         * modules/poll-tests: New.
47570         * tests/test-poll.c: New.
47571
47572 2008-09-12  Eric Blake  <ebb9@byu.net>
47573
47574         frexp: test for NetBSD failure on -0.0
47575         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
47576         not all, bugs from NetBSD 3.0 have been fixed.
47577         * doc/posix-functions/frexp.texi (frexp): Document bug.
47578         Reported by Thomas Klausner.
47579
47580         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
47581         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
47582         literal -0.0.
47583         Reported by Jonathan C. Patschke <jp@centtech.com>.
47584
47585 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47586
47587         * lib/glthread/cond.h: Use dummy implementation also if
47588         USE_WIN32_THREADS.
47589
47590 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47591
47592         * modules/fnmatch-posix (License): Change to LGPLv2+.
47593         * modules/fnmatch-gnu (License): Likewise.
47594
47595 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47596
47597         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
47598
47599 2008-09-11  Jim Meyering  <meyering@redhat.com>
47600
47601         * users.txt: Add gtk-vnc.
47602
47603 2008-09-08  Simon Josefsson  <simon@josefsson.org>
47604
47605         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
47606         rotate amounts.
47607
47608         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
47609         required for 16-bit and 8-bit rotates.
47610         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
47611         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
47612         UINT8_MAX instead of hard-coded constants.
47613         Suggested by Paul Eggert.
47614
47615 2008-09-07  Bruno Haible  <bruno@clisp.org>
47616
47617         * tests/test-striconveh.c (main): Check behaviour when converting from
47618         UTF-7.
47619
47620         Make striconveh work better with stateful encodings.
47621         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
47622         that iconv does not increment the inptr when returning -1/EINVAL.
47623
47624 2008-09-07  Bruno Haible  <bruno@clisp.org>
47625
47626         * build-aux/config.rpath: Update according to libtool-2.2.6.
47627         * build-aux/config.libpath: Likewise.
47628
47629 2008-09-06  Bruno Haible  <bruno@clisp.org>
47630
47631         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
47632         * lib/freadptr.c (freadptr): Likewise.
47633         * lib/freadseek.c (freadptrinc): Likewise.
47634         Reported by Simon Josefsson.
47635
47636 2008-09-06  Bruno Haible  <bruno@clisp.org>
47637
47638         * modules/freadptr (License): Change to LGPLv2+.
47639         * modules/freadseek (License): Likewise.
47640         Suggested by Eric Blake.
47641
47642         * modules/memchr2 (License): Change to LGPLv2+.
47643         Approved by Eric Blake.
47644
47645 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47646             Bruno Haible  <bruno@clisp.org>
47647
47648         Make gnulib-tool work with native 'sed' on AIX.
47649         * gnulib-tool (sed_noop): New variable.
47650         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
47651         func_add_or_update, func_create_testdir): Use it to initialize sed
47652         script variables.
47653         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47654
47655 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
47656             Bruno Haible  <bruno@clisp.org>
47657
47658         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
47659         also works after #include directives.
47660
47661 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
47662
47663         getdate.y: reject an out-of-range timezone value
47664         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
47665         the range [-24...+24].  When specified with only one or two digits,
47666         * tests/test-getdate.c: Tests for the fix.
47667         * doc/getdate.texi: Document this change.
47668
47669 2008-09-03  Bruno Haible  <bruno@clisp.org>
47670
47671         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
47672
47673 2008-09-02  Simon Josefsson  <simon@josefsson.org>
47674
47675         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
47676         <bruce.korb@gmail.com> with ideas from Ben Pfaff
47677         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
47678         Blake <ebb9@byu.net>.
47679
47680         * tests/test-bitrotate.c: Add more test vectors.
47681
47682 2008-09-02  Eric Blake  <ebb9@byu.net>
47683
47684         vasnprintf-posix: handle large precision via %.*d
47685         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
47686         when handling it ourselves.
47687         * tests/test-vasnprintf-posix.c (test_function): Add test.
47688         * tests/test-snprintf-posix.h (test_function): Likewise.
47689         * tests/test-sprintf-posix.h (test_function): Likewise.
47690         * tests/test-vasprintf-posix.c (test_function): Likewise.
47691         Reported by Alain Guibert.
47692
47693 2008-09-01  Eric Blake  <ebb9@byu.net>
47694
47695         c-stack: make configure-time check more robust
47696         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
47697         successful sigaction call.
47698         Reported by Tom G. Christensen.
47699
47700 2008-09-01  Bruno Haible  <bruno@clisp.org>
47701
47702         New module 'findprog-lgpl'.
47703         * modules/findprog-lgpl: New file.
47704         * lib/findprog-lgpl.c: New file.
47705         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
47706         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
47707         to decide whether to use strdup or xstrdup, concatenated_filename or
47708         xconcatenated_filename.
47709
47710 2008-09-01  Bruno Haible  <bruno@clisp.org>
47711
47712         Split module 'concat-filename' into 'concat-filename' (LGPL) and
47713         'xconcat-filename' (GPL).
47714         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
47715         (License): Change to LGPLv2+.
47716         * modules/xconcat-filename: New file.
47717         * lib/concat-filename.h (concatenated_filename): Change specification.
47718         (xconcatenated_filename): New declaration.
47719         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
47720         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
47721         memory situations.
47722         * lib/xconcat-filename.c: New file.
47723         * NEWS: Mention the change.
47724         * lib/findprog.c: Include concat-filename.h, not filename.h.
47725         (find_in_path): Use xconcatenated_filename instead of
47726         concatenated_filename.
47727         * lib/javacomp.c: Include concat-filename.h, not filename.h.
47728         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
47729         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
47730         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
47731         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
47732         instead of concatenated_filename.
47733         * lib/javaexec.c: Include concat-filename.h, not filename.h.
47734         (execute_java_class): Use xconcatenated_filename instead of
47735         concatenated_filename.
47736         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
47737         * modules/javacomp (Depends-on): Likewise.
47738         * modules/javaexec (Depends-on): Likewise.
47739
47740 2008-09-01  Bruno Haible  <bruno@clisp.org>
47741
47742         Split module 'filename' into 'filename' and 'concat-filename'.
47743         * modules/filename: Keep only lib/filename.h.
47744         (License): Change to LGPLv2+.
47745         * modules/concat-filename: New file, extracted from modules/filename.
47746         * lib/filename.h (concatenated_filename): Remove declaration.
47747         * lib/concat-filename.h: New file, extracted from lib/filename.h.
47748         * lib/concat-filename.c: Include concat-filename.h.
47749         * NEWS: Mention the change.
47750
47751 2008-09-01  Simon Josefsson  <simon@josefsson.org>
47752
47753         * lib/bitrotate.h (rotl8, rotr8): Add.
47754
47755         * modules/bitrotate (configure.ac): Need
47756         AC_REQUIRE([AC_C_INLINE]).
47757         (Description): Mention stdint.h.  Reported by Bruno Haible
47758         <bruno@clisp.org>.
47759
47760         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
47761         Paolo Bonzini <bonzini@gnu.org>.
47762
47763 2008-08-31  Bruno Haible  <bruno@clisp.org>
47764
47765         Assume Solaris specific bi-arch conventions on Solaris systems.
47766         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
47767         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
47768         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
47769         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
47770         like acl_libdirstem.
47771         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
47772         acl_libdirstem.
47773         * NEWS: Mention the change.
47774         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
47775
47776 2008-08-31  Jim Meyering  <meyering@redhat.com>
47777
47778         * lib/strftime.h: Add comments describing the two added arguments.
47779
47780         remove duplicate #include directives
47781         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
47782         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
47783
47784 2008-08-31  Bruno Haible  <bruno@clisp.org>
47785
47786         New module 'sigpipe-die'.
47787         * modules/sigpipe-die: New file.
47788         * lib/sigpipe-die.h: New file.
47789         * lib/sigpipe-die.c: New file.
47790         * MODULES.html.sh (Signal handling): Add sigpipe-die.
47791
47792 2008-08-31  Bruno Haible  <bruno@clisp.org>
47793
47794         Don't override previously installed signal handlers.
47795         * lib/fatal-signal.c (saved_sigactions): New variable.
47796         (uninstall_handlers): Reset the signal to the saved handler, not
47797         to SIG_DFL (except when ignored).
47798         (install_handlers): Save the previous handlers.
47799
47800 2008-08-30  Bruno Haible  <bruno@clisp.org>
47801
47802         * gnulib-tool (func_reset_sigpipe): New function.
47803         (func_get_automake_snippet, func_modules_transitive_closure,
47804         func_import): Invoke it before a join command that reads from stdin,
47805         to avoid "echo: write error: Broken pipe" error messages on stderr.
47806         Reported by Sam Steingold <sds@gnu.org>.
47807
47808 2008-08-30  Bruno Haible  <bruno@clisp.org>
47809
47810         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
47811         Code copied from m4/open.m4.
47812         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
47813         access and the filename ends in a slash. Code copied from lib/open.c.
47814         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
47815         * tests/test-fopen.c (main): Check against bug with trailing slash.
47816
47817 2008-08-29  Bruno Haible  <bruno@clisp.org>
47818
47819         Avoid some "gcc -pedantic" warnings.
47820         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
47821         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
47822         * lib/dirent.in.h: Likewise.
47823         * lib/fcntl.in.h: Likewise.
47824         * lib/float.in.h: Likewise.
47825         * lib/iconv.in.h: Likewise.
47826         * lib/inttypes.in.h: Likewise.
47827         * lib/locale.in.h: Likewise.
47828         * lib/math.in.h: Likewise.
47829         * lib/netinet_in.in.h: Likewise.
47830         * lib/search.in.h: Likewise.
47831         * lib/signal.in.h: Likewise.
47832         * lib/stdarg.in.h: Likewise.
47833         * lib/stdint.in.h: Likewise.
47834         * lib/stdio.in.h: Likewise.
47835         * lib/stdlib.in.h: Likewise.
47836         * lib/string.in.h: Likewise.
47837         * lib/strings.in.h: Likewise.
47838         * lib/sys_select.in.h: Likewise.
47839         * lib/sys_socket.in.h: Likewise.
47840         * lib/sys_stat.in.h: Likewise.
47841         * lib/sys_time.in.h: Likewise.
47842         * lib/sysexits.in.h: Likewise.
47843         * lib/time.in.h: Likewise.
47844         * lib/unistd.in.h: Likewise.
47845         * lib/wchar.in.h: Likewise.
47846         * lib/wctype.in.h: Likewise.
47847         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
47848         * modules/fchdir (Makefile.am): Likewise.
47849         * modules/fcntl (Makefile.am): Likewise.
47850         * modules/float (Makefile.am): Likewise.
47851         * modules/iconv_open (Makefile.am): Likewise.
47852         * modules/inttypes (Makefile.am): Likewise.
47853         * modules/locale (Makefile.am): Likewise.
47854         * modules/math (Makefile.am): Likewise.
47855         * modules/netinet_in (Makefile.am): Likewise.
47856         * modules/search (Makefile.am): Likewise.
47857         * modules/signal (Makefile.am): Likewise.
47858         * modules/stdarg (Makefile.am): Likewise.
47859         * modules/stdint (Makefile.am): Likewise.
47860         * modules/stdio (Makefile.am): Likewise.
47861         * modules/stdlib (Makefile.am): Likewise.
47862         * modules/string (Makefile.am): Likewise.
47863         * modules/strings (Makefile.am): Likewise.
47864         * modules/sys_select (Makefile.am): Likewise.
47865         * modules/sys_socket (Makefile.am): Likewise.
47866         * modules/sys_stat (Makefile.am): Likewise.
47867         * modules/sys_time (Makefile.am): Likewise.
47868         * modules/sysexits (Makefile.am): Likewise.
47869         * modules/time (Makefile.am): Likewise.
47870         * modules/unistd (Makefile.am): Likewise.
47871         * modules/wchar (Makefile.am): Likewise.
47872         * modules/wctype (Makefile.am): Likewise.
47873         Reported by Reuben Thomas <rrt@sc3d.org>.
47874
47875 2008-08-29  Bruno Haible  <bruno@clisp.org>
47876
47877         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
47878         any more.
47879
47880 2008-08-29  Simon Josefsson  <simon@josefsson.org>
47881
47882         * MODULES.html.sh (Misc): Add bitrotate.
47883
47884         * modules/bitrotate: New file.
47885
47886         * lib/bitrotate.h: New file.
47887
47888         * modules/bitrotate-tests: New file.
47889
47890         * tests/test-bitrotate.c: New file.
47891
47892         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
47893         on the bitrotate module.
47894
47895         * lib/arctwo.c: Use new bitrotate module.
47896
47897 2008-08-29  Jim Meyering  <meyering@redhat.com>
47898
47899         bootstrap: merge changes from coreutils
47900         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
47901         of copied files.  Remove a kludge, now that this is fixed.
47902         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
47903         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
47904         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
47905
47906 2008-08-29  Bruno Haible  <bruno@clisp.org>
47907
47908         * MODULES.html.sh: Remove --cvs-urls option.
47909
47910 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
47911
47912         maint.mk: adjust to file name change
47913         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
47914
47915 2008-08-28  Jim Meyering  <meyering@redhat.com>
47916
47917         * modules/getndelim2 (License): Relicense to LGPLv2+.
47918         Approved by Richard Stallman for the version of 1995, and by
47919         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
47920
47921 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
47922
47923         * lib/getdelim.c (flockfile, funlockfile): Make all of them
47924         dummy if one is not available.  Do not touch them if
47925         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
47926         (getc_maybe_unlocked): New.
47927         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
47928
47929 2008-08-26  Eric Blake  <ebb9@byu.net>
47930
47931         doc/INSTALL: resync from autoconf
47932         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
47933         (INSTALL_PRELUDE): Delete; this is done more efficiently by
47934         moving...
47935         * install.texi [!autoconf]: ...here.  Resync from autoconf.
47936         * INSTALL: Regenerate.
47937         * INSTALL.ISO: New file.
47938         * INSTALL.UTF-8: Likewise.
47939
47940 2008-08-26  Jim Meyering  <meyering@redhat.com>
47941
47942         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
47943         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
47944         these definitions conditional, so that they may be overridden, too.
47945
47946 2008-08-26  Bruno Haible  <bruno@clisp.org>
47947
47948         Generate INSTALL file variants with prettier quotes.
47949         * doc/Makefile (INSTALL_PRELUDE): New macro.
47950         (INSTALL): Use it.
47951         (INSTALL.ISO, INSTALL.UTF-8): New rules.
47952
47953 2008-08-26  Bruno Haible  <bruno@clisp.org>
47954
47955         Run makeinfo in an English locale.
47956         * doc/Makefile (MAKEINFO): New variable.
47957
47958 2008-08-26  Bruno Haible  <bruno@clisp.org>
47959
47960         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
47961         Suggested by Eric Blake.
47962
47963 2008-08-25  Bruno Haible  <bruno@clisp.org>
47964
47965         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
47966
47967 2008-08-25  Eric Blake  <ebb9@byu.net>
47968
47969         c-stack: test that stack overflow can be caught
47970         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
47971         that platform allows handling stack overflow; at least OS/2 EMX
47972         has sigaltstack, but crashes before transferring control to
47973         handler on stack overflow.
47974         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
47975         check for HAVE_STACK_OVERFLOW_HANDLING.
47976         Reported by Elbert Pol.
47977
47978 2008-08-25  Bruno Haible  <bruno@clisp.org>
47979
47980         * doc/posix-functions/strftime.texi: Fix description of strftime
47981         module.
47982
47983 2008-08-24  Bruno Haible  <bruno@clisp.org>
47984
47985         * tests/uniwidth/test-uc_width2.c: New file.
47986         * tests/uniwidth/test-uc_width2.sh: New file.
47987         * modules/uniwidth/width-tests (Files): Add the new files.
47988         (TESTS): Add uniwidth/test-uc_width2.sh.
47989         (TESTS_ENVIRONMENT): New variable.
47990         (check_PROGRAMS): Add test-uc_width2.
47991         (test_uc_width2_SOURCES): New variable.
47992
47993         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
47994         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
47995         not 0x00AB.
47996         Reported by Alexander V. Lukyanov <lav@netis.ru>.
47997
47998 2008-08-22  Eric Blake  <ebb9@byu.net>
47999
48000         test-lock, test-tls: mention why a test is skipped
48001         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
48002         skipped.
48003         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
48004
48005         count-one-bits: relax license
48006         * modules/count-one-bits (License): Relicense to LGPLv2+.
48007         Suggested by Ludovic Courtès, approved by Ben Pfaff.
48008
48009 2008-08-22  Andreas Schwab  <schwab@suse.de>
48010
48011         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
48012         Remove spurious space in assignment.
48013
48014 2008-08-21  Simon Josefsson  <simon@josefsson.org>
48015
48016         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
48017         Paul Eggert <eggert@CS.UCLA.EDU>.
48018
48019 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
48020
48021         * modules/gettext: Add m4/threadlib.m4.
48022
48023 2008-08-19  Eric Blake  <ebb9@byu.net>
48024
48025         test-c-stack: fix compilation failure on FreeBSD 5.0
48026         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
48027         headers before <sys/resource.h>.
48028         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
48029         the bug.
48030         Reported by Nelson H. F. Beebe.
48031
48032         strverscmp: migrate from "strverscmp.h" to <string.h>
48033         * modules/string (Makefile.am): Add new hooks.
48034         * modules/strverscmp (Files): Remove strverscmp.h.
48035         (Depends-on): Add string.
48036         (configure.ac): Add indicator.
48037         (Include): Mention new header.
48038         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
48039         defaults.
48040         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
48041         results.
48042         * lib/strverscmp.h: Delete.
48043         * lib/string.in.h (strverscmp): Provide declaration, when needed.
48044         * tests/test-strverscmp.c (includes): Adjust client.
48045         * lib/check-version.c (includes): Likewise.
48046         * NEWS: Document the change.
48047
48048         strverscmp: add unit test
48049         * modules/strverscmp-tests: New file.
48050         * tests/test-strverscmp.c: Likewise.
48051
48052 2008-08-19  Simon Josefsson  <simon@josefsson.org>
48053
48054         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
48055         regarding Windows crypto stuff, from Mono.
48056
48057 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
48058
48059         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
48060         if present, for intel RND.  Return error on failures.
48061
48062 2008-08-18  Ben Pfaff  <blp@gnu.org>
48063
48064         gitlog-to-changelog: give better diagnostic for failed pipe-open
48065         * build-aux/gitlog-to-changelog: Improve error message: suggest
48066         that the version of Git may be too old.
48067
48068 2008-08-18  Simon Josefsson  <simon@josefsson.org>
48069
48070         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
48071         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
48072
48073 2008-08-18  Bruno Haible  <bruno@clisp.org>
48074
48075         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
48076         pthread_in_use().
48077
48078 2008-08-18  Bruno Haible  <bruno@clisp.org>
48079
48080         * lib/glthread/threadlib.c: Include <pthread.h>.
48081
48082 2008-08-18  Bruno Haible  <bruno@clisp.org>
48083
48084         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
48085         glthread_recursive_lock_* macros.
48086         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
48087         Fix syntax error.
48088
48089 2008-08-18  Bruno Haible  <bruno@clisp.org>
48090
48091         * lib/glthread/thread.c: Avoid forcing a context switch right after
48092         thread creation.
48093
48094 2008-08-17  Bruno Haible  <bruno@clisp.org>
48095
48096         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
48097         * lib/glthread/thread.h: Provide Win32 specific implementation.
48098         * modules/thread (Files): Add lib/glthread/thread.c.
48099         (Depends-on): Add lock.
48100         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
48101
48102 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48103
48104         New module 'yield'.
48105         * modules/yield: New file.
48106         * lib/glthread/yield.h: New file.
48107         * m4/yield.m4: New file.
48108         * MODULES.html.sh (Multithreading): Add yield.
48109
48110 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48111
48112         New module 'thread'.
48113         * modules/thread: New file.
48114         * lib/glthread/thread.h: New file.
48115         * m4/thread.m4: New file.
48116         * MODULES.html.sh (Multithreading): Add thread.
48117
48118 2008-08-17  Bruno Haible  <bruno@clisp.org>
48119
48120         * lib/glthread/lock.h: Include <stdlib.h> always.
48121         * lib/glthread/tls.h: Likewise.
48122         * lib/glthread/cond.h: Likewise.
48123
48124 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48125
48126         New module 'cond'.
48127         * modules/cond: New file.
48128         * lib/glthread/cond.h: New file.
48129         * lib/glthread/cond.c: New file.
48130         * m4/cond.m4: New file.
48131         * MODULES.html.sh (Multithreading): Add cond.
48132
48133 2008-08-16  Eric Blake  <ebb9@byu.net>
48134
48135         c-stack: fix regression on Irix 5.3 from 2008-06-21
48136         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
48137         sa_sigaction...
48138         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
48139         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
48140         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
48141         * modules/signal (Makefile.am): Use the value.
48142         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
48143         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
48144         * doc/posix-headers/signal.texi (signal.h): Document this
48145         portability issue.
48146         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
48147         Reported by Tom G. Christensen.
48148
48149 2008-08-17  Bruno Haible  <bruno@clisp.org>
48150
48151         New module 'threadlib'.
48152         * modules/threadlib: New file.
48153         * lib/glthread/threadlib.c: New file, extracted from
48154         lib/glthread/lock.c.
48155         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
48156         functions.
48157         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
48158         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
48159         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
48160         macros.
48161         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
48162         (gl_DISABLE_THREADS): Remove macro.
48163         * modules/lock (Files): Remove build-aux/config.rpath.
48164         (Depends-on): Remove havelib. Add threadlib.
48165         (configure.ac-early): Remove section.
48166         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
48167         * modules/tls (Depends-on): Remove lock. Add threadlib.
48168         (Link): New section, copied from threadlib.
48169         * MODULES.html.sh (Multithreading): Add threadlib.
48170
48171 2008-08-14  Bruno Haible  <bruno@clisp.org>
48172
48173         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
48174         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
48175         glthread_rwlock_unlock, glthread_rwlock_destroy,
48176         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
48177         glthread_recursive_lock_destroy): Define as macros always.
48178         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
48179         glthread_lock_lock.
48180         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
48181         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
48182         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
48183         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
48184         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
48185         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
48186         (glthread_recursive_lock_lock_func): Renamed from
48187         glthread_recursive_lock_lock.
48188         (glthread_recursive_lock_unlock_func): Renamed from
48189         glthread_recursive_lock_unlock.
48190         (glthread_recursive_lock_destroy_func): Renamed from
48191         glthread_recursive_lock_destroy.
48192
48193 2008-08-14  Bruno Haible  <bruno@clisp.org>
48194
48195         * lib/glthread/lock.h: Renamed from lib/lock.h.
48196         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
48197         * lib/glthread/tls.h: Renamed from lib/tls.h.
48198         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
48199         * lib/fstrcmp.c: Update includes.
48200         * lib/strsignal.c: Update includes.
48201         * modules/lock (Files, Makefile.am): Update.
48202         (Include): Change to "glthread/lock.h".
48203         * modules/tls (Files, Makefile.am): Update.
48204         (Include): Change to "glthread/tls.h".
48205         * tests/test-lock.c: Update includes.
48206         * tests/test-tls.c: Update includes.
48207         * NEWS: Mention the renamed header files.
48208
48209 2008-08-11  Jim Meyering  <meyering@redhat.com>
48210
48211         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
48212
48213 2008-08-11  Eric Blake  <ebb9@byu.net>
48214
48215         test-c-stack: avoid C99-ism
48216         * tests/test-c-stack.c (main): Fix whitespace, move declaration
48217         before statement.
48218         Reported by Alain Guibert.
48219
48220 2008-08-10  Jim Meyering  <meyering@redhat.com>
48221
48222         ensure that return value of uinttostr et al are not ignored
48223         * lib/inttostr.h (__GNUC_PREREQ): Define.
48224         (__attribute_warn_unused_result__): Define.
48225         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
48226
48227 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
48228
48229         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
48230         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
48231
48232 2008-08-07  Jim Meyering  <meyering@redhat.com>
48233
48234         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
48235
48236         * modules/mkstemp (License): Relicense under LGPLv2+.
48237         * modules/tempname (License): Likewise.
48238
48239 2008-08-06  Bruno Haible  <bruno@clisp.org>
48240
48241         * lib/poll.c (poll): Further micro-optimization.
48242
48243 2008-08-06  Jim Meyering  <meyering@redhat.com>
48244
48245         inet_pton.c: use locale-independent tolower
48246         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
48247         (inet_pton6): Use c_tolower rather than tolower.
48248         * modules/inet_pton (Depends-on): Add c-ctype.
48249
48250 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
48251
48252         * lib/poll.c (poll): Avoid division when timeout is 0, cache
48253         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
48254
48255 2008-08-06  Jim Meyering  <meyering@redhat.com>
48256
48257         * modules/inet_pton (License): Relicense under LGPLv2+.
48258
48259 2008-08-03  Bruno Haible  <bruno@clisp.org>
48260
48261         Additional non-aborting API for lock and tls.
48262         * lib/lock.h: Include <errno.h>.
48263         (glthread_lock_init): New macro/function.
48264         (gl_lock_init): Define as wrapper around glthread_lock_init.
48265         (glthread_lock_lock): New macro/function.
48266         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
48267         (glthread_lock_unlock): New macro/function.
48268         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
48269         (glthread_lock_destroy): New macro/function.
48270         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
48271         (glthread_rwlock_init): New macro/function.
48272         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
48273         (glthread_rwlock_rdlock): New macro/function.
48274         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
48275         (glthread_rwlock_wrlock): New macro/function.
48276         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
48277         (glthread_rwlock_unlock): New macro/function.
48278         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
48279         (glthread_rwlock_destroy): New macro/function.
48280         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
48281         (glthread_recursive_lock_init): New macro/function.
48282         (gl_recursive_lock_init): Define as wrapper around
48283         glthread_recursive_lock_init.
48284         (glthread_recursive_lock_lock): New macro/function.
48285         (gl_recursive_lock_lock): Define as wrapper around
48286         glthread_recursive_lock_lock.
48287         (glthread_recursive_lock_unlock): New macro/function.
48288         (gl_recursive_lock_unlock): Define as wrapper around
48289         glthread_recursive_lock_unlock.
48290         (glthread_recursive_lock_destroy): New macro/function.
48291         (gl_recursive_lock_destroy): Define as wrapper around
48292         glthread_recursive_lock_destroy.
48293         (glthread_once): New macro/function.
48294         (gl_once): Define as wrapper around glthread_once.
48295         Update function declarations.
48296         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
48297         glthread_rwlock_init. Return error code.
48298         (glthread_rwlock_rdlock_multithreaded): Renamed from
48299         glthread_rwlock_rdlock. Return error code.
48300         (glthread_rwlock_wrlock_multithreaded): Renamed from
48301         glthread_rwlock_wrlock. Return error code.
48302         (glthread_rwlock_unlock_multithreaded): Renamed from
48303         glthread_rwlock_unlock. Return error code.
48304         (glthread_rwlock_destroy_multithreaded): Renamed from
48305         glthread_rwlock_destroy. Return error code.
48306         (glthread_recursive_lock_init_multithreaded): Renamed from
48307         glthread_recursive_lock_init. Return error code.
48308         (glthread_recursive_lock_lock_multithreaded): Renamed from
48309         glthread_recursive_lock_lock. Return error code.
48310         (glthread_recursive_lock_unlock_multithreaded): Renamed from
48311         glthread_recursive_lock_unlock. Return error code.
48312         (glthread_recursive_lock_destroy_multithreaded): Renamed from
48313         glthread_recursive_lock_destroy. Return error code.
48314         (glthread_once_call): Make static.
48315         (glthread_once_multithreaded): Renamed from glthread_once.
48316         * lib/tls.h: Include <errno.h>.
48317         (glthread_tls_key_init): New macro/function.
48318         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
48319         (glthread_tls_set): New macro/function.
48320         (gl_tls_set): Define as wrapper around glthread_tls_set.
48321         (glthread_tls_key_destroy): New macro/function.
48322         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
48323         Update function declarations.
48324         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
48325         glthread_tls_get.
48326         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48327
48328 2008-08-04  Eric Blake  <ebb9@byu.net>
48329
48330         gnumakefile: use space, not TAB, outside of targets
48331         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
48332
48333 2008-08-02  Jim Meyering  <meyering@redhat.com>
48334
48335         getdate.y: avoid locale-dependent date parsing failure
48336         In Turkish locales, getdate would fail to recognize keywords
48337         containing a lowercase "i".  The solution is not to rely on
48338         locale-sensitive case-conversion.
48339         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
48340         (lookup_word): Use c_toupper in place of toupper.
48341         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
48342         Reported by Vefa Bicakci <bicave@superonline.com> in
48343         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
48344         * modules/getdate (Depends-on): Add c-ctype.
48345
48346 2008-08-02  Bruno Haible  <bruno@clisp.org>
48347
48348         * gnulib-tool (func_import): When updating or creating a .gitignore
48349         file, prepend each added line with a slash, and ignore leading slashes
48350         from the existing lines.
48351         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48352
48353 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48354
48355         Portability fix for GNU make 3.79.1.
48356         * top/GNUmakefile: Avoid 'else COND', which older GNU make
48357         versions do not understand.
48358
48359 2008-08-01  Bruno Haible  <bruno@clisp.org>
48360
48361         Work around bug of HP-UX 10.20 cc with -0.0 literal.
48362         * tests/test-isnanf.h (zero): New variable.
48363         (main): Avoid literal -0.0f.
48364         * tests/test-isnand.h (zero): New variable.
48365         (main): Avoid literal -0.0.
48366         * tests/test-isnanl.h (zero): New variable.
48367         (main): Avoid literal -0.0L.
48368         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
48369         (test_float, test_double, test_long_double): Avoid literals -0.0f,
48370         -0.0, -0.0L.
48371         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
48372         (test_signbitd): Avoid literal -0.0.
48373         (test_signbitl): Avoid literal -0.0L.
48374         * tests/test-ceilf1.c (zero): New variable.
48375         (main): Avoid literal -0.0f.
48376         * tests/test-ceill.c (zero): New variable.
48377         (main): Avoid literal -0.0L.
48378         * tests/test-floorf1.c (zero): New variable.
48379         (main): Avoid literal -0.0f.
48380         * tests/test-floorl.c (zero): New variable.
48381         (main): Avoid literal -0.0L.
48382         * tests/test-roundf1.c (zero): New variable.
48383         (main): Avoid literal -0.0f.
48384         * tests/test-round1.c (zero): New variable.
48385         (main): Avoid literal -0.0.
48386         * tests/test-roundl.c (zero): New variable.
48387         (main): Avoid literal -0.0L.
48388         * tests/test-truncf1.c (zero): New variable.
48389         (main): Avoid literal -0.0f.
48390         * tests/test-trunc1.c (zero): New variable.
48391         (main): Avoid literal -0.0.
48392         * tests/test-truncl.c (zero): New variable.
48393         (main): Avoid literal -0.0L.
48394         * tests/test-frexp.c (zero): New variable.
48395         (main): Avoid literal -0.0.
48396         * tests/test-frexpl.c (zero): New variable.
48397         (main): Avoid literal -0.0L.
48398         * tests/test-ldexpl.c (zero): New variable.
48399         (main): Avoid literal -0.0L.
48400         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48401         (zerod, zerol): New variables.
48402         (test_function): Avoid literals -0.0, -0.0L.
48403         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48404         (zerod, zerol): New variables.
48405         (test_function): Avoid literals -0.0, -0.0L.
48406         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48407         (zerod, zerol): New variables.
48408         (test_function): Avoid literals -0.0, -0.0L.
48409         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48410         (zerod, zerol): New variables.
48411         (test_function): Avoid literals -0.0, -0.0L.
48412         * tests/test-strtod.c (zero): New variable.
48413         (main): Avoid literal -0.0.
48414         Reported by Jonathan C. Patschke <jp@centtech.com>.
48415
48416 2008-07-31  Jim Meyering  <meyering@redhat.com>
48417
48418         sha256.h: correct definition of SHA224_DIGEST_SIZE
48419         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
48420         Reported by Paulie Pena IV <paulie4@gmail.com>.
48421         Define as 224 / 8, rather than as a literal.
48422         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
48423         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
48424         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
48425
48426 2008-07-31  Bruno Haible  <bruno@clisp.org>
48427
48428         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
48429         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
48430         Reported by Jonathan Patschke <jp@centtech.com>.
48431
48432 2008-07-31  Bruno Haible  <bruno@clisp.org>
48433
48434         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
48435         Reported by Paolo Bonzini <bonzini@gnu.org>.
48436
48437 2008-07-30  Eric Blake  <ebb9@byu.net>
48438
48439         test-strtod: allow compilation without -lm
48440         * tests/test-strtod.c (main): Avoid link dependence on fabs.
48441         Reported by Dennis Clarke <blastwave@gmail.com>.
48442
48443 2008-07-28  Jim Meyering  <meyering@redhat.com>
48444
48445         bootstrap: work also when there are no .po files in po/
48446         * build-aux/bootstrap (update_po_files): Complete the change
48447         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
48448
48449 2008-07-27  Jim Meyering  <meyering@redhat.com>
48450
48451         * users.txt: Add zile.
48452
48453 2008-07-26  Ben Pfaff  <blp@gnu.org>
48454
48455         Add missing dependencies on new m4/exponent[fdl].m4 files.
48456         * modules/isnanf-nolibm: Add m4/exponentf.m4.
48457         * modules/isnand-nolibm: Add m4/exponentd.m4.
48458         * modules/isnanl-nolibm: Add m4/exponentl.m4.
48459         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
48460         m4/isnan[fdl].m4, because the macros actually used moved.
48461         Reported by Jim Meyering.
48462
48463 2008-07-14  Ben Pfaff  <blp@gnu.org>
48464
48465         Add isinf module.
48466         * lib/isinf.c: New file.
48467         * lib/math.in.h: Define isinf macro if we have decided to replace
48468         it.
48469         * m4/isinf.m4: New file.
48470         * m4/math_h.m4: Initialize and substitute variables for isinf
48471         module.
48472         * modules/isinf: New file.
48473         * modules/isinf-tests: New file.
48474         * modules/math: Add substitutions for new module.
48475         * tests/test-isinf.c: New file.
48476         * doc/posix-functions/isinf.texi: Mention new module.
48477         * MODULES.html.sh: Mention new module.
48478
48479 2008-07-14  Ben Pfaff  <blp@gnu.org>
48480
48481         Factor out some macros for use by additional modules.
48482         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
48483         exponentf.m4.
48484         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
48485         exponentd.m4.
48486         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
48487         file exponentl.m4.
48488         * m4/exponentf.m4: New file.
48489         * m4/exponentd.m4: New file.
48490         * m4/exponentl.m4: New file.
48491         * modules/isnanf: Use new file m4/exponentf.m4.
48492         * modules/isnand: Use new file m4/exponentd.m4.
48493         * modules/isnanl: Use new file m4/exponentl.m4.
48494
48495 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
48496
48497         mktime.c: normalize tp->tm_isdst value to -1/0/1.
48498         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
48499         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
48500         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
48501
48502         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
48503         readlink on platforms without PATH_MAX.
48504
48505 2008-07-21  Eric Blake  <ebb9@byu.net>
48506
48507         Warn, not fail, on stale version.
48508         * top/GNUmakefile (_curr-ver): Tone down previous patch.
48509
48510         Don't allow installation with stale devel version number.
48511         * top/GNUmakefile (_is-install-target): New macro.
48512         (_curr-ver): Forbid installation with stale version number.
48513
48514 2008-07-20  Bruno Haible  <bruno@clisp.org>
48515
48516         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
48517         TESTS_ENVIRONMENT.
48518         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
48519
48520 2008-07-20  Bruno Haible  <bruno@clisp.org>
48521
48522         * lib/c-stack.h (c_stack_action): Add documentation.
48523         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
48524
48525 2008-07-20  Bruno Haible  <bruno@clisp.org>
48526
48527         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
48528         * modules/readlink (License): Likewise.
48529
48530 2008-07-17  Eric Blake  <ebb9@byu.net>
48531
48532         * modules/c-stack (Link): Fix typo.
48533
48534         Make c-stack use libsigsegv, when available.
48535         * modules/c-stack (Depends-on): Add libsigsegv.
48536         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
48537         needed.
48538         * lib/c-stack.c (SIGSTKSZ): Define fallback.
48539         (segv_handler, overflow_handler, c_stack_action)
48540         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
48541         implementation when libsigsegv is available, but only when using
48542         the library is necessary.
48543         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
48544         comment, explaining why XSI check fails on Linux.
48545         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
48546         * tests/test-c-stack2.sh: Tweak skip message.
48547         * NEWS: Document new link-time requirements.
48548
48549 2008-07-16  Eric Blake  <ebb9@byu.net>
48550
48551         c-stack: Expose false positives when not using libsigsegv.
48552         * modules/c-stack-tests (Files): Expand test.
48553         * tests/test-c-stack.c (main): Add means to conditionally trigger
48554         non-overflow SIGSEGV.
48555         * tests/test-c-stack2.sh: New file.
48556
48557 2008-07-14  Bruno Haible  <bruno@clisp.org>
48558
48559         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
48560         Reported by Eric Blake.
48561
48562 2008-07-14  Sam Steingold  <sds@gnu.org>
48563             Bruno Haible  <bruno@clisp.org>
48564
48565         New module libsigsegv.
48566         * modules/libsigsegv: New file.
48567         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
48568         modifications.
48569         * MODULES.html.sh (Signal handling): New section.
48570
48571 2008-07-14  Bruno Haible  <bruno@clisp.org>
48572
48573         * modules/unictype/ctype-* (Description): Add the word "function".
48574         Improves the resulting doc in MODULES.html.
48575
48576 2008-07-12  Ben Pfaff  <blp@gnu.org>
48577
48578         Add longlong module.
48579         * modules/longlong: New file.
48580
48581 2008-07-12  Bruno Haible  <bruno@clisp.org>
48582
48583         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
48584         to empty.
48585
48586 2008-07-10  Ben Pfaff  <blp@gnu.org>
48587
48588         Add isnan module.
48589         * doc/posix-functions/isnan.texi: Mention new module.
48590         * lib/math.in.h: Define isnan macro if we have decided to replace
48591         it.
48592         * m4/isnan.m4: New file.
48593         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
48594         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
48595         also.
48596         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
48597         redundancy.
48598         * m4/math_h.m4: Initialize and substitute variables for isnan
48599         module.
48600         * modules/isnan: New file.
48601         * modules/isnan-tests: New file.
48602         * modules/math: Add substitutions for new module.
48603         * tests/test-isnan.c: New file.
48604         * MODULES.html.sh: Mention new module.
48605
48606 2008-07-10  Ben Pfaff  <blp@gnu.org>
48607
48608         Add isnanf module.
48609         * lib/isnanf.m4: New file.
48610         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
48611         (gl_HAVE_ISNANF_IN_LIBM): New macro.
48612         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
48613         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
48614         * modules/isnanf: New file.
48615         * modules/isnanf-tests: New file.
48616         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
48617         files.
48618         * tests/test-isnanf-nolibm.c: factored most of its contents into
48619         new file tests/test-isnanf.h.
48620         * tests/test-isnanf.h: New file.
48621         * tests/test-isnanf.c: New file.
48622         * MODULES.html.sh: Mention new module.
48623         * doc/glibc-functions/isnanf.texi: Mention new module.
48624
48625 2008-07-10  Ben Pfaff  <blp@gnu.org>
48626
48627         Add isnand module.
48628         * lib/isnand.h: New file.
48629         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
48630         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
48631         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
48632         functionality also.
48633         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
48634         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
48635         (gl_HAVE_ISNAND_IN_LIBM): New macro.
48636         * modules/isnand: New file.
48637         * modules/isnand-tests: New file.
48638         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
48639         files.
48640         * tests/test-isnand-nolibm.c: factored most of its contents into
48641         new file tests/test-isnand.h.
48642         * tests/test-isnand.h: New file.
48643         * tests/test-isnand.c: New file.
48644         * MODULES.html.sh: Mention new module.
48645
48646 2008-07-10  Ben Pfaff  <blp@gnu.org>
48647
48648         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
48649         * lib/isnand.h: Rename lib/isnand-nolibm.h.
48650         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
48651         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
48652         * modules/isnanf-nolibm: Update references to renamed files.
48653         * modules/isnand-nolibm: Likewise.
48654         * modules/isnanf-nolibm-tests: Likewise.
48655         * modules/isnand-nolibm-tests: Likewise.
48656         * lib/frexp.c: Likewise.
48657         * lib/isfinite.c: Likewise.
48658         * lib/signbitd.c: Likewise.
48659         * lib/signbitf.c: Likewise.
48660         * lib/vasnprintf.c: Likewise.
48661         * tests/test-ceilf1.c: Likewise.
48662         * tests/test-ceilf2.c: Likewise.
48663         * tests/test-floorf1.c: Likewise.
48664         * tests/test-floorf2.c: Likewise.
48665         * tests/test-frexp.c: Likewise.
48666         * tests/test-round1.c: Likewise.
48667         * tests/test-round2.c: Likewise.
48668         * tests/test-roundf1.c: Likewise.
48669         * tests/test-strtod.c: Likewise.
48670         * tests/test-trunc1.c: Likewise.
48671         * tests/test-trunc2.c: Likewise.
48672         * tests/test-truncf1.c: Likewise.
48673         * tests/test-truncf2.c: Likewise.
48674         * NEWS: Mention the renamed header files.
48675
48676 2008-07-11  Jim Meyering  <meyering@redhat.com>
48677
48678         vc-list-files: make the last-resort awk code more portable
48679         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
48680         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
48681         does not support it.
48682
48683 2008-07-10  Eric Blake  <ebb9@byu.net>
48684
48685         Work with tar's bootstrap.
48686         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
48687         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
48688         an m4 comment.
48689
48690 2008-07-09  Jim Meyering  <meyering@redhat.com>
48691
48692         posix-shell.m4: fix typo that made this test malfunction
48693         * m4/posix-shell.m4: Remove capitalization in variable name.
48694
48695 2008-07-08  Bruno Haible  <bruno@clisp.org>
48696
48697         * m4/onceonly.m4: Update comments.
48698         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48699
48700 2008-07-04  Jim Meyering  <meyering@redhat.com>
48701
48702         * users.txt: Add vc-dwim.
48703         (bison, coreutils): Use the gitweb URL.
48704
48705 2008-07-03  Jim Meyering  <meyering@redhat.com>
48706
48707         * users.txt: Add libffcall.  From Sam Steingold.
48708
48709 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
48710
48711         getdate.y: do not ignore TZ with relative day, month or year offset
48712         * lib/getdate.y (get_date): Move the tz-handling block to follow the
48713         relative-date-handling, since otherwise, the latter would clobber the
48714         sole output (an updated Start value) of the tz-handling block.
48715         * tests/test-getdate.c: Tests for the fix
48716
48717 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48718
48719         Recognize 'foo_LIBRARIES += libgnu.a'.
48720         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
48721         makefile snippet has already specified an installation location,
48722         also using '+='.
48723
48724 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
48725
48726         getdate.y: factor out common actions
48727         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
48728         Use them in place of open-coded actions.
48729
48730 2008-07-01  Simon Josefsson  <simon@josefsson.org>
48731
48732         Add self-test for getdate module.
48733         * modules/getdate-tests: New file.
48734         * tests/test-getdate.c: New file.
48735
48736 2008-06-29  Bruno Haible  <bruno@clisp.org>
48737
48738         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
48739         .gitignore.
48740         Reported by Sylvain Beucler <beuc@beuc.net>.
48741
48742 2008-06-29  Bruno Haible  <bruno@clisp.org>
48743
48744         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
48745         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
48746
48747 2008-06-29  Bruno Haible  <bruno@clisp.org>
48748
48749         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
48750         EXTRA_DIST.
48751         Reported by Sylvain Beucler <beuc@beuc.net>.
48752
48753 2008-06-26  Jim Meyering  <meyering@redhat.com>
48754
48755         make several modules depend on the "open" module
48756         This provides slightly increased consistency when opening-for-write
48757         the name of a non-directory spelled with a trailing slash.
48758         * modules/chdir-safer: Likewise.
48759         * modules/chown: Likewise.
48760         * modules/clean-temp: Likewise.
48761         * modules/copy-file: Likewise.
48762         * modules/fchdir: Likewise.
48763         * modules/fcntl-safer: Likewise.
48764         * modules/pipe: Likewise.
48765         * modules/utime: Likewise.
48766         Prompted by Eric Blake and Bruno Haible.
48767
48768 2008-06-24  Andreas Schwab  <schwab@suse.de>
48769
48770         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
48771         literals can be used as initializers for global variables.
48772
48773 2008-06-23  Eric Blake  <ebb9@byu.net>
48774
48775         Make gnulib-cache.m4 easier to diff.
48776         * gnulib-tool (func_import): Allow newlines when reading cached
48777         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
48778
48779 2008-06-23  Bruno Haible  <bruno@clisp.org>
48780
48781         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
48782         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
48783         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
48784         m4/signalblocking.m4.
48785         (gl_PREREQ_SIGACTION): Don't invoke it.
48786         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
48787         gl_PREREQ_SIG_HANDLER_H.
48788         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48789         Don't check for sigaction here.
48790
48791 2008-06-23  Bruno Haible  <bruno@clisp.org>
48792
48793         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
48794         (install_handlers): Don't set the SA_RESETHAND flag.
48795
48796 2008-06-23  Bruno Haible  <bruno@clisp.org>
48797
48798         * m4/sigaction.m4: Comment fixes.
48799         * lib/signal.in.h: Likewise.
48800
48801 2008-06-23  Eric Blake  <ebb9@byu.net>
48802
48803         Fix typo.
48804         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
48805
48806         Avoid SA_ namespace.
48807         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
48808         Reported by Ralf Wildenhues.
48809
48810         Avoid test failure due to SA_RESTORER.
48811         * tests/test-sigaction.c (SA_MASK): New macro.
48812         (main): Avoid failing due to extension flags being set.
48813         Reported by Jim Meyering.
48814
48815         Revert use of sig-handler.h in sigprocmask.c.
48816         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
48817         it requires the existence of struct sigaction.
48818         * lib/sigprocmask.c (handler_t): Restore typedef.
48819         (rpl_signal, old_handlers): Use local type.
48820
48821 2008-06-22  Bruno Haible  <bruno@clisp.org>
48822
48823         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
48824         conditionally.
48825         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48826
48827 2008-06-22  Bruno Haible  <bruno@clisp.org>
48828
48829         * doc/posix-functions/siginterrupt.texi: Move note.
48830
48831         * lib/signal.in.h (SA_RESTART): New macro.
48832         * lib/sigaction.c: Update comment.
48833
48834         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
48835
48836         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
48837         (gl_PREREQ_SIGPROCMASK): Invoke it.
48838         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
48839
48840         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
48841
48842         * lib/sigprocmask.c: Update a comment.
48843
48844 2008-06-21  Eric Blake  <ebb9@byu.net>
48845
48846         Use sigaction module rather than signal().
48847         * modules/c-stack (Depends-on): Add sigaction.
48848         * modules/fatal-signal (Depends-on): Likewise.
48849         * modules/nanosleep (Depends-on): Likewise.
48850         * modules/sigprocmask (Files): Add sig-handler.h.
48851         * modules/sigaction (Files): Likewise.
48852         * lib/sig-handler.h (get_handler): New file, suggested by Paul
48853         Eggert.
48854         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
48855         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
48856         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
48857         (init_fatal_signals): Likewise.
48858         * lib/nanosleep.c (rpl_nanosleep): Likewise.
48859         (siginterrupt): Delete fallback.
48860         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
48861         instead.
48862         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
48863         siginterrupt.
48864
48865         New module sigaction, for mingw.
48866         * modules/sigaction: New module...
48867         * modules/sigaction-tests: ...and its test.
48868         * m4/sigaction.m4: New file.
48869         * lib/sigaction.c: Likewise.
48870         * tests/test-sigaction.c: Likewise.
48871         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
48872         * modules/signal (Makefile.am): Likewise.
48873         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
48874         needed.
48875         * doc/posix-headers/signal.texi (signal.h): Mention provided
48876         types.
48877         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
48878         that sigaction is preferable.
48879         * doc/posix-functions/sigaction.texi (sigaction): Mention new
48880         module.
48881         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48882         sigaction.
48883
48884         Improve robustness of sigprocmask by overriding signal.
48885         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
48886         is in use.
48887         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
48888         (SIGKILL, SIGSTOP): Provide fallbacks.
48889         (rpl_signal): Implement.
48890         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
48891         signal can be called inside handlers.
48892
48893         Fix nanosleep module on mingw.
48894         * modules/nanosleep (Depends-on): Add sys_select.
48895         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
48896
48897         Fix licensing of sigprocmask.
48898         * modules/raise (License): Relicense as LGPL.
48899
48900 2008-06-21  Bruno Haible  <bruno@clisp.org>
48901
48902         * lib/propername.c (proper_name_utf8): Don't use the transliterated
48903         result if it contains question marks.
48904         Reported by Michael Geng <linux@michaelgeng.de>.
48905
48906 2008-06-19  Bruno Haible  <bruno@clisp.org>
48907
48908         Fix CVS-ism.
48909         * doc/gnulib.texi: Include updated-stamp.texi.
48910         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
48911         (updated-stamp.texi): New rule.
48912         (gnulib.info): Depend on it.
48913         * doc/.gitignore: Add updated-stamp.texi.
48914         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
48915
48916 2008-06-19  Bruno Haible  <bruno@clisp.org>
48917
48918         * doc/Makefile (gnulib.info): Update and simplify dependencies.
48919         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48920
48921 2008-06-19  Eric Blake  <ebb9@byu.net>
48922
48923         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
48924         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
48925         Reported by Stepan Kasal.
48926
48927 2008-06-18  Bruno Haible  <bruno@clisp.org>
48928
48929         * lib/fatal-signal.c (init_fatal_signals): Add comment.
48930         Reported by Eric Blake.
48931
48932 2008-06-18  Eric Blake  <ebb9@byu.net>
48933
48934         Work around cygwin 1.5.25 strsignal bug.
48935         * tests/test-strsignal.c: Allow for const char *.
48936         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
48937
48938 2008-06-18  Simon Josefsson  <simon@josefsson.org>
48939
48940         * users.txt: Update URL to article and add author/date
48941         information.
48942
48943 2008-06-17  Bruno Haible  <bruno@clisp.org>
48944
48945         New macro gl_DISABLE_THREADS.
48946         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
48947         if the user did not pass --enable-threads or --disable-threads option.
48948         (gl_DISABLE_THREADS): New macro.
48949         Reported by Eric Blake <ebb9@byu.net>.
48950
48951 2008-06-17  Bruno Haible  <bruno@clisp.org>
48952
48953         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
48954         when the macro ignores it.
48955         Based on a patch by Eric Blake <ebb9@byu.net>.
48956
48957 2008-06-17  Bruno Haible  <bruno@clisp.org>
48958
48959         * modules/tls (License): Change to LGPLv2+.
48960         Reported by Eric Blake.
48961
48962 2008-06-17  Eric Blake  <ebb9@byu.net>
48963
48964         Simplify c-stack prerequisites.
48965         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
48966         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
48967         no longer requires <ucontext.h> to exist.  Optimize setrlimit
48968         check.
48969         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
48970         <sys/resource.h>.
48971
48972         Move c-stack test into testsuite.
48973         * modules/c-stack-tests: New file.
48974         * lib/c-stack.c [DEBUG]: Move test program...
48975         * tests/test-c-stack.c: ...into this new file.  Skip rather than
48976         fail test if sigaltstack is lacking.
48977         * tests/test-c-stack.sh: New driver file.
48978
48979 2008-06-16  Eric Blake  <ebb9@byu.net>
48980
48981         Use raise module consistently.
48982         * modules/fatal-signal (Depends-on): Add raise.
48983         * modules/sigprocmask (Depends-on): Likewise.
48984         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
48985         * lib/sigprocmask.c (sigprocmask): Likewise.
48986         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48987         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
48988
48989         Fix compliance bug in sigpending.
48990         * lib/sigprocmask.c (sigpending): Return pending array via
48991         parameter, not return value.
48992
48993 2008-06-14  Eric Blake  <ebb9@byu.net>
48994
48995         Improve obstack-printf test code.
48996         * tests/test-obstack-printf.c (test_function): Fix comment, and
48997         simplify usage of obstack_* in macros.  Add a test for coverage.
48998         Reported by Bruno Haible.
48999
49000 2008-06-14  Bruno Haible  <bruno@clisp.org>
49001
49002         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
49003         array size as a constant, not as a const variable.
49004         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
49005         AC_USE_SYSTEM_EXTENSIONS.
49006         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
49007         Test whether the obstack_printf function actually exists.
49008         * modules/obstack-printf (Depends-on): Add extensions.
49009         (Include): Remove obstack.h.
49010         * modules/obstack-printf-posix (Depends-on): Add extensions.
49011         (Include): Remove obstack.h.
49012
49013 2008-06-13  Eric Blake  <ebb9@byu.net>
49014
49015         Add obstack-printf and obstack-printf-posix modules.
49016         * modules/obstack-printf: New file.
49017         * modules/obstack-printf-posix: Likewise.
49018         * MODULES.html.sh (Misc): Mention them.
49019         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
49020         Likewise.
49021         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
49022         Likewise.
49023         * modules/stdio (Makefile.am): Accomodate new modules.
49024         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49025         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
49026         Declare.
49027         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
49028         functions.
49029         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
49030         (gl_REPLACE_OBSTACK_PRINTF): New macros
49031         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
49032         * tests/test-obstack-printf.c: New file.
49033         * modules/obstack-printf-tests: Likewise.
49034         * modules/obstack-printf-posix-tests: Likewise.
49035
49036 2008-06-11  Bruno Haible  <bruno@clisp.org>
49037
49038         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
49039         * lib/open.c: Include errno.h.
49040         (open): Fail when attempting to write to a file that has a trailing
49041         slash.
49042         * tests/test-open.c (main): Test against trailing slash bug.
49043         * doc/posix-functions/open.texi: Mention the trailing slash bug.
49044
49045 2008-06-10  Bruno Haible  <bruno@clisp.org>
49046
49047         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
49048         for $? to work inside the trap command, with various /bin/sh-s.
49049         * tests/test-vc-list-files-cvs.sh: Likewise.
49050
49051 2008-06-10  Bruno Haible  <bruno@clisp.org>
49052
49053         * lib/acl-internal.h: Don't include gettext.h here.
49054         * lib/set-mode-acl.c: Include gettext.h here.
49055         * lib/copy-acl.c: Likewise.
49056
49057 2008-06-10  Bruno Haible  <bruno@clisp.org>
49058
49059         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
49060         * lib/wait-process.c (wait_subprocess): Likewise.
49061         * lib/execute.h (execute): Add termsigp argument.
49062         * lib/execute.c (execute): Likewise.
49063         * lib/csharpcomp.c (compile_csharp_using_pnet,
49064         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
49065         * lib/csharpexec.c (execute_csharp_using_pnet,
49066         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
49067         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
49068         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
49069         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
49070         is_jikes_present): Update.
49071         * lib/javaexec.c (execute_java_class): Update.
49072         * lib/javaversion.c (execute_and_read_line): Update.
49073         * NEWS: Document the changes.
49074         Reported by Eric Blake.
49075
49076 2008-06-10  Eric Blake  <ebb9@byu.net>
49077
49078         Add missing include.
49079         * tests/test-strstr.c (includes): Add <signal.h>.
49080         * tests/test-strcasestr.c (includes): Likewise.
49081         * tests/test-memmem.c (includes): Likewise.
49082
49083 2008-06-10  Bruno Haible  <bruno@clisp.org>
49084
49085         * lib/wait-process.c (wait_subprocess): Add an assertion.
49086
49087 2008-06-10  Bruno Haible  <bruno@clisp.org>
49088
49089         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
49090
49091 2008-06-10  Bruno Haible  <bruno@clisp.org>
49092
49093         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
49094         using alarm().
49095         * tests/test-strcasestr.c (main): Likewise.
49096         * tests/test-strstr.c (main): Likewise.
49097
49098 2008-06-09  Bruno Haible  <bruno@clisp.org>
49099
49100         Work around the Solaris 10 ACE ACLs ABI change.
49101         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
49102         declare if ACL_NO_TRIVIAL is present.
49103         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
49104         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
49105         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
49106         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
49107         define if ACL_NO_TRIVIAL is present.
49108         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
49109         and use the current ABI.
49110         (file_has_acl): Use same #if condition as elsewhere.
49111         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
49112         in use, and use the current ABI.
49113         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
49114         Reported by Jim Meyering.
49115
49116 2008-06-09  Eric Blake  <ebb9@byu.net>
49117
49118         Work around environments that (stupidly) ignore SIGALRM.
49119         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
49120         before using alarm().
49121         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49122         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49123         Reported by Ian Beckwith <ianb@erislabs.net>.
49124
49125         Produce autobuild blurb earlier in log.
49126         * modules/autobuild (configure.ac-early): Move AB_INIT here.
49127
49128 2008-06-09  Jim Meyering  <meyering@redhat.com>
49129         and Ondřej Vašík  <ovasik@redhat.com>
49130
49131         utimens.c: correct kernel bug work-around
49132         Ondřej Vašík found that the invalid return value of 280 indicates
49133         failure, not success, and the kernel bug we're trying to work
49134         around affects not just the utimensat call, but also the fallback
49135         futimens call.
49136         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
49137         not success.
49138         [HAVE_FUTIMENS]: Use the same work-around, here.
49139
49140 2008-06-09  Jim Meyering  <meyering@redhat.com>
49141
49142         add more guards around definition of ACE_-related code
49143         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
49144         ALLOW and ACE_OWNER are also defined.
49145
49146 2008-06-08  Bruno Haible  <bruno@clisp.org>
49147
49148         * lib/acl-internal.h: Add me as co-author.
49149         * lib/file-has-acl.c: Likewise.
49150         * lib/set-mode-acl.c: Likewise.
49151         * lib/copy-acl.c: Likewise.
49152
49153 2008-06-08  Bruno Haible  <bruno@clisp.org>
49154
49155         Add support for AIX ACLs.
49156         * lib/acl-internal.h (acl_nontrivial): New declaration.
49157         * lib/file-has-acl.c (acl_nontrivial): New function.
49158         (file_has_acl): Add implementation using AIX 4 ACL API.
49159         * lib/set-mode-acl.c (qset_acl): Likewise.
49160         * lib/copy-acl.c (qcopy_acl): Likewise.
49161
49162 2008-06-08  Bruno Haible  <bruno@clisp.org>
49163
49164         Add support for HP-UX ACLs.
49165         * lib/acl-internal.h (acl_nontrivial): New declaration.
49166         * lib/file-has-acl.c (acl_nontrivial): New function.
49167         (file_has_acl): Add implementation using HP-UX 11 ACL API.
49168         * lib/set-mode-acl.c (qset_acl): Likewise.
49169         * lib/copy-acl.c (qcopy_acl): Likewise.
49170
49171 2008-06-08  Bruno Haible  <bruno@clisp.org>
49172
49173         Add support for Cygwin ACLs.
49174         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
49175         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
49176         the chmod_or_fchmod call.
49177         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
49178
49179 2008-06-08  Bruno Haible  <bruno@clisp.org>
49180
49181         Fix bug with setuid modes in Solaris 10+ code.
49182         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
49183         succeeded, when the mode contains some special bits.
49184
49185 2008-06-08  Bruno Haible  <bruno@clisp.org>
49186
49187         Add support for Solaris 7..10 ACLs.
49188         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
49189         declarations.
49190         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
49191         functions.
49192         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
49193         * lib/set-mode-acl.c (qset_acl): Likewise.
49194         * lib/copy-acl.c (qcopy_acl): Likewise.
49195
49196 2008-06-08  Bruno Haible  <bruno@clisp.org>
49197
49198         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
49199         declaration.
49200         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
49201         (acl_access_nontrivial): Remove MacOS X case.
49202         (file_has_acl): Use acl_extended_nontrivial.
49203         * lib/copy-acl.c (qcopy_acl): Likewise.
49204
49205 2008-06-08  Bruno Haible  <bruno@clisp.org>
49206
49207         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
49208
49209 2008-06-08  Jim Meyering  <meyering@redhat.com>
49210
49211         * modules/acl (Maintainer): Add Bruno Haible.
49212
49213 2008-06-07  Bruno Haible  <bruno@clisp.org>
49214
49215         Improve support for Tru64 ACLs.
49216         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
49217         ACL on OSF/1.
49218
49219 2008-06-07  Bruno Haible  <bruno@clisp.org>
49220
49221         Add support for MacOS X ACLs.
49222         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
49223         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
49224         * lib/set-mode-acl.c (qset_acl): Likewise.
49225         * lib/copy-acl.c (qcopy_acl): Likewise.
49226
49227 2008-06-07  Bruno Haible  <bruno@clisp.org>
49228
49229         Fix memory leak introduced on 2008-05-22.
49230         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
49231         use.
49232
49233 2008-06-07  Bruno Haible  <bruno@clisp.org>
49234
49235         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
49236         to construct an empty ACL.
49237
49238 2008-06-07  Bruno Haible  <bruno@clisp.org>
49239
49240         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
49241         precisely.
49242         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
49243
49244 2008-06-07  Bruno Haible  <bruno@clisp.org>
49245
49246         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
49247         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
49248
49249 2008-06-07  Bruno Haible  <bruno@clisp.org>
49250
49251         * doc/posix-functions/_setjmp.texi: Explain the use of this function
49252         regardless of POSIX.
49253         * doc/posix-functions/_longjmp.texi: Likewise.
49254         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
49255         SystemV platform in this case.
49256
49257 2008-06-06  Eric Blake  <ebb9@byu.net>
49258
49259         Document abort() bugs.
49260         * doc/posix-functions/abort.texi (abort): Mention anomalies.
49261
49262         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
49263         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
49264         sigsetjmp.
49265         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
49266         siglongjmp, but only as a macro.
49267         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
49268         is obsolete.
49269         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
49270
49271         Tweak documentation to cover cygwin argz bugs.
49272         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
49273         argz bug fix; no code change needed since no cygwin releases
49274         occurred between the last fix and the bug being tested.
49275         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
49276         module and recently fixed cygwin bugs.
49277         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
49278         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
49279         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
49280         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
49281         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
49282         Likewise.
49283         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
49284         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
49285         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
49286         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
49287         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
49288         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
49289         Likewise.
49290
49291         Avoid gcc warning on cygwin.
49292         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
49293         !ACL_NO_TRIVIAL]: Avoid unused variable.
49294
49295 2008-06-05  Eric Blake  <ebb9@byu.net>
49296
49297         Be tolerant of UNKNOWN version in gnulib-tool test dir.
49298         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
49299         git-version-gen fails to come up with a version.
49300         Reported by Simon Josefsson.
49301
49302 2008-06-05  Jim Meyering  <meyering@redhat.com>
49303             Paul Eggert  <eggert@cs.ucla.edu>
49304
49305         utimens.c: work around a probable Linux kernel bug
49306         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
49307         appears to be a kernel bug that causes utimensat to return 280
49308         instead of 0, indicating success.
49309
49310 2008-06-04  Bruno Haible  <bruno@clisp.org>
49311
49312         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
49313         2008-06-01 commit.
49314
49315 2008-06-04  Bruno Haible  <bruno@clisp.org>
49316
49317         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
49318         * lib/file-has-acl.c (acl_access_nontrivial): New function.
49319         (file_has_acl): Use it. Save errno afterwards.
49320         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
49321
49322 2008-06-03  Bruno Haible  <bruno@clisp.org>
49323
49324         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
49325         draft code. Simplify #ifs.
49326         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
49327         Put Solaris code after POSIX-draft code. Fix comments regarding
49328         Solaris 10, HP-UX. Mention Cygwin.
49329         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
49330
49331 2008-06-03  Eric Blake  <ebb9@byu.net>
49332
49333         Provide fallback for older kernels.
49334         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
49335         Provide runtime fallback if kernel lacks support.
49336         Reported by Mike Frysinger.
49337
49338 2008-06-02  Bruno Haible  <bruno@clisp.org>
49339
49340         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
49341         it exists.
49342
49343 2008-06-02  Bruno Haible  <bruno@clisp.org>
49344
49345         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
49346         * lib/copy-acl.c (qcopy_acl): Update comment.
49347
49348 2008-06-02  Bruno Haible  <bruno@clisp.org>
49349
49350         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
49351         like ACL APIs.
49352
49353 2008-06-02  Bruno Haible  <bruno@clisp.org>
49354
49355         * tests/test-file-has-acl.sh: Use different code for Cygwin.
49356         * tests/test-set-mode-acl.sh: Likewise.
49357         * tests/test-copy-acl.sh: Likewise.
49358         * tests/test-copy-file.sh: Likewise.
49359
49360 2008-06-02  Bruno Haible  <bruno@clisp.org>
49361
49362         * tests/test-file-has-acl.sh: Remove unused code.
49363
49364 2008-06-01  Bruno Haible  <bruno@clisp.org>
49365
49366         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
49367         (copy_acl): Just a wrapper around qcopy_acl that emits the error
49368         messages.
49369         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
49370
49371 2008-06-01  Bruno Haible  <bruno@clisp.org>
49372
49373         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
49374         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
49375         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
49376         APIs.
49377         * modules/acl-tests (configure.ac): Remove tests now contained in
49378         m4/acl.m4.
49379
49380 2008-06-02  Jim Meyering  <meyering@redhat.com>
49381
49382         announce-gen: use a better key-server host name
49383         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
49384         it may be more consistently reliable.  Suggested by Werner Koch
49385         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
49386
49387 2008-06-01  Bruno Haible  <bruno@clisp.org>
49388
49389         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
49390         Reported by Voroskoi Andras <voroskoi@gmail.com>.
49391
49392 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
49393
49394         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
49395
49396 2008-06-01  Bruno Haible  <bruno@clisp.org>
49397
49398         New ACL tests.
49399         * tests/test-file-has-acl.sh: New file.
49400         * tests/test-file-has-acl.c: New file.
49401         * tests/test-set-mode-acl.sh: New file.
49402         * tests/test-set-mode-acl.c: New file.
49403         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
49404         * tests/test-copy-acl.c: New file.
49405         * modules/acl-tests: New file, based on modules/copy-file-tests.
49406         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
49407         (Depends-on): Add acl-tests.
49408         (configure.ac): Remove checks.
49409         (Makefile.am): Don't create test-sameacls program here any more.
49410
49411 2008-06-01  Bruno Haible  <bruno@clisp.org>
49412
49413         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
49414         * tests/test-sameacls.c: Include progname.h.
49415         (main): Invoke set_program_name. Portability fixes for MacOS X,
49416         Solaris, HP-UX.
49417
49418 2008-06-01  Bruno Haible  <bruno@clisp.org>
49419
49420         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
49421         function.
49422         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
49423
49424 2008-06-01  Bruno Haible  <bruno@clisp.org>
49425
49426         * modules/rpmatch (Depends-on): Add strdup.
49427
49428 2008-06-01  Bruno Haible  <bruno@clisp.org>
49429
49430         * lib/pipe.c: Include unistd-safer.h.
49431         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
49432         * modules/pipe (Depends-on): Add unistd-safer.
49433
49434 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49435
49436         * modules/autobuild (configure.ac): Call AB_INIT.
49437
49438 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49439
49440         * tests/test-getaddrinfo.c: Don't print debug messages by default.
49441         Suggested by Bruno Haible <bruno@clisp.org>.
49442
49443 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49444
49445         * tests/test-base64.c: Cast size_t to unsigned long when invoking
49446         printf.  Use %lu instead of %d.  Reported by Bruno Haible
49447         <bruno@clisp.org>.
49448
49449 2008-05-29  Eric Blake  <ebb9@byu.net>
49450
49451         Prefer new POSIX 200x interfaces over futimesat.
49452         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
49453         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
49454         when available.
49455         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
49456
49457 2008-05-28  Bruno Haible  <bruno@clisp.org>
49458
49459         * modules/stpcpy (License): Change to LGPLv2+.
49460         Requested by David Lutterkort <dlutter@redhat.com>.
49461
49462 2008-05-27  Bruno Haible  <bruno@clisp.org>
49463
49464         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
49465         current mingw.
49466         Reported by Jose E. Marchesi <jemarch@gnu.org>.
49467
49468 2008-05-27  Bruno Haible  <bruno@clisp.org>
49469
49470         * modules/iconv_open (Link): New section, from module 'iconv'.
49471         * modules/striconv (Link): Likewise.
49472         * modules/striconveh (Link): Likewise.
49473         * modules/xstriconv (Link): Likewise.
49474         * modules/unicodeio (Link): Likewise.
49475         * modules/propername (Link): Likewise.
49476         Reported by Jim Meyering.
49477
49478 2008-05-26  Jim Meyering  <meyering@redhat.com>
49479
49480         sha256: do not artificially restrict buffer length to be < 2^32
49481         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
49482         uint32_t to size_t.
49483         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
49484         to match.
49485
49486         avoid unaligned access errors, e.g., on sparc
49487         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
49488         direct access through a possibly-unaligned uint64* pointer.
49489         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
49490         direct access through a possibly-unaligned uint32* pointer.
49491         Prompted by this patch from Tom "spot" Callaway:
49492         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
49493
49494         sha512.c: fix typo in comment
49495         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
49496
49497 2008-05-25  Bruno Haible  <bruno@clisp.org>
49498
49499         * lib/set-mode-acl.c: Renamed from lib/acl.c.
49500         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
49501         (Makefile.am): Update lib_SOURCES.
49502
49503 2008-05-25  Bruno Haible  <bruno@clisp.org>
49504
49505         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
49506
49507 2008-05-25  Jim Meyering  <meyering@redhat.com>
49508
49509         useless-if-before-free: freed expr may have white-space differences
49510         * build-aux/useless-if-before-free: Recognize cases in which the
49511         freed expression differs from the tested one in embedded white
49512         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
49513         $1 was used, so we can't make any regexp shy.  Improved tests now
49514         detect this.
49515
49516         useless-if-before-free: accept white space in the expression.
49517         * build-aux/useless-if-before-free: For now, any white space
49518         in the expression must be identical in the free argument.
49519
49520         useless-if-before-free: efficiency tweak
49521         * build-aux/useless-if-before-free: Make the expression-matching
49522         regexp "shy".
49523         Make the *outer* regexp shy, not the expr-matching one.
49524
49525         update code-in-comment to accept cast of free arg
49526         * build-aux/useless-if-before-free: Update regexp.
49527
49528 2008-05-25  Bruno Haible  <bruno@clisp.org>
49529
49530         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
49531         * modules/copy-file-tests (Files, Makefile.am): Update.
49532         * tests/test-copy-file.c (func_test_copy): Update.
49533
49534 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
49535
49536         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
49537
49538 2008-05-23  Bruno Haible  <bruno@clisp.org>
49539
49540         Improve support for ACLs on OSF/1.
49541         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
49542         Remove fallback for unknown flavors of ACLs.
49543
49544 2008-05-22  Bruno Haible  <bruno@clisp.org>
49545
49546         Add support for ACLs on OSF/1.
49547         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
49548         replacements.
49549         (acl_free_text): New macro fallback.
49550         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
49551         acl_free.
49552         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
49553         acl_free_text function. Require AC_C_INLINE.
49554
49555 2008-05-22  Bruno Haible  <bruno@clisp.org>
49556
49557         Make copy_acl work on MacOS X 10.5.
49558         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
49559         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
49560         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
49561         If MODE_INSIDE_ACL, don't assume that every system has the same text
49562         representation for ACLs as FreeBSD.
49563         * lib/copy-acl.c (copy_acl): Add support for platforms with
49564         !MODE_INSIDE_ACL.
49565         * lib/file-has-acl.c (file_has_acl): Likewise.
49566         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
49567         FreeBSD, MacOS X, or IRIX, respectively.
49568
49569 2008-05-22  Bruno Haible  <bruno@clisp.org>
49570
49571         * lib/acl.h: Don't include <sys/acl.h>.
49572         (GETACLCNT): Move fallback to lib/acl-internal.h.
49573         * lib/acl-internal.h: Include <sys/acl.h> here.
49574         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
49575
49576 2008-05-22  Bruno Haible  <bruno@clisp.org>
49577
49578         Split off copy_acl function to separate file.
49579         * lib/copy-acl.c: New file, extracted from lib/acl.c.
49580         * lib/acl.c (copy_acl): Moved function to separate file.
49581         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
49582         * modules/acl (Files): Add lib/copy-acl.c.
49583         (Makefiles.am): Augment lib_SOURCES.
49584
49585 2008-05-22  Bruno Haible  <bruno@clisp.org>
49586
49587         * modules/copy-file-tests: New file.
49588         * tests/test-copy-file.sh: New file.
49589         * tests/test-copy-file.c: New file.
49590         * tests/test-copy-file-sameacls.c: New file.
49591
49592 2008-05-22  Eric Blake  <ebb9@byu.net>
49593
49594         Avoid gcc warning.
49595         * tests/test-memcmp.c (main): Pass NULL indirectly.
49596
49597 2008-05-21  Bruno Haible  <bruno@clisp.org>
49598
49599         Add reference doc about ACLs.
49600         * doc/acl-resources.txt: New file.
49601         * doc/acl-cygwin.txt: New file.
49602
49603 2008-05-21  Bruno Haible  <bruno@clisp.org>
49604
49605         Avoid one more warning from gcc.
49606         * lib/vasnprintf.c (IF_LINT): Update comments.
49607         (VASNPRINTF): Use it also for the 'prefix' array initializer.
49608
49609 2008-05-21  Jim Meyering  <meyering@redhat.com>
49610
49611         avoid a warning from gcc
49612         * lib/vasnprintf.c (IF_LINT): Define.
49613         (scale10_round_decimal_long_double):
49614         Use it to avoid a "may be used uninitialized" warning.
49615         (scale10_round_decimal_double): Likewise.
49616
49617 2008-05-21  Simon Josefsson  <simon@josefsson.org>
49618
49619         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
49620         declared.
49621
49622 2008-05-20  Bruno Haible  <bruno@clisp.org>
49623
49624         * tests/test-memcmp.c (main): Test also the sign of the result. Test
49625         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
49626
49627 2008-05-20  Simon Josefsson  <simon@josefsson.org>
49628
49629         * modules/memcmp-tests: New file.
49630         * tests/test-memcmp.c: New file.
49631
49632 2008-05-19  Bruno Haible  <bruno@clisp.org>
49633
49634         * modules/propername (Notice, configure.ac): Put quoted "..." into
49635         --keyword option.
49636         * lib/propername.h: Update comments accordingly.
49637         Reported by Eric Blake.
49638
49639 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
49640
49641         * modules/getpass-gnu (Depends-on): Add fseeko.
49642
49643 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49644
49645         * modules/base64-tests: New file.
49646
49647 2008-05-19  Bo Borgerson <gigabo@gmail.com>
49648
49649         * lib/base64.c (base64_decode_ctx): If a decode context structure
49650         was passed in use it to ignore newlines.  If a context structure
49651         was _not_ passed in, continue to treat newlines as garbage (this
49652         is the historical behavior).  Formerly base64_decode.
49653         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49654         takes a decode context structure.
49655         * lib/base64.h (base64_decode): Macro for four-argument calls.
49656         (base64_decode_alloc): Likewise.
49657         * lib/base64.c (base64_decode_ctx): If a decode context structure
49658         was passed in use it to ignore newlines.  If a context structure
49659         was _not_ passed in, continue to treat newlines as garbage (this
49660         is the historical behavior).  Formerly base64_decode.
49661         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49662         takes a decode context structure.
49663         * lib/base64.h (base64_decode): Macro for four-argument calls.
49664         (base64_decode_alloc): Likewise.
49665
49666 2008-05-19  Jim Meyering  <meyering@redhat.com>
49667
49668         avoid a warning from gcc
49669         * lib/trim.c (IF_LINT): Define.
49670         (trim2): Use it to avoid a "may be used uninitialized" warning.
49671
49672         Fix doc typo.
49673         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
49674
49675 2008-05-19  Bruno Haible  <bruno@clisp.org>
49676
49677         * doc/glibc-functions/getpass.texi: Document limits of other
49678         implementations.
49679
49680 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49681             Bruno Haible <bruno@clisp.org>
49682
49683         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
49684
49685 2008-05-18  Bruno Haible  <bruno@clisp.org>
49686
49687         * modules/propername: New file, from GNU gettext.
49688         * lib/propername.h: New file, from GNU gettext.
49689         * lib/propername.c: New file, from GNU gettext.
49690         * MODULES.html.sh (Internationalization functions): Add propername.
49691
49692 2008-05-16  Jim Meyering  <meyering@redhat.com>
49693             Bruno Haible  <bruno@clisp.org>
49694
49695         Avoid some warnings from "gcc -Wshadow".
49696         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
49697
49698 2008-05-15  Eric Blake  <ebb9@byu.net>
49699
49700         Extend previous patch to cygwin 1.7.0.
49701         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
49702         fast implementation in cygwin >= 1.7.0.
49703         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49704         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49705
49706 2008-05-15  Bruno Haible  <bruno@clisp.org>
49707
49708         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
49709         implementation in glibc >= 2.9.
49710         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49711         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49712
49713 2008-05-15  Bruno Haible  <bruno@clisp.org>
49714
49715         * MODULES.html.sh (Internationalization functions): Remove linebreak.
49716         (Unicode string functions): Add unilbrk/*.
49717         Reported by Karl Berry.
49718
49719 2008-05-15  Eric Blake  <ebb9@byu.net>
49720
49721         Fix violation of <stdbool.h> replacement in regex.
49722         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
49723         * lib/regexec.c (re_search_internal): Likewise.
49724         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
49725
49726 2008-05-15  Jim Meyering  <meyering@redhat.com>
49727
49728         avoid distracting test output when git or cvs is not found
49729         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
49730         * tests/test-vc-list-files-git.sh: Likewise.
49731
49732 2008-05-15  Eric Blake  <ebb9@byu.net>
49733
49734         Glibc finally accepted the memmem speedup code, bugzilla #5514.
49735         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
49736         glibc version.
49737         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49738         * doc/posix-functions/strstr.texi (strstr): Likewise.
49739         * lib/str-two-way.h (MAX): Sychronize with glibc.
49740
49741 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
49742
49743         * lib/regcomp.c (optimize_utf8): Add a note on why we test
49744         opr.ctx_type.
49745         (calc_first): Initialize constraint field.
49746         (duplicate_node_closure): Use it instead of special casing ANCHORS.
49747         Fix grammar.
49748         (duplicate_node): Merge constraint field for all node types.
49749         (calc_eclosure_iter): Look at constraint field for all node types.
49750         * lib/regex_internal.c (create_cd_newstate): Don't look at
49751         opr.ctx_type.
49752
49753 2008-05-14  Bruno Haible  <bruno@clisp.org>
49754
49755         Help GCC to do better code generation.
49756         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
49757         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
49758         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
49759         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
49760         Declare with attribute 'malloc' if supported.
49761
49762 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
49763
49764         use "echo STR|wc -c" rather than unportable "expr length STR"
49765         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
49766         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
49767
49768 2008-05-14  Jim Meyering  <meyering@redhat.com>
49769
49770         use dd ibs=$n count=1 ... rather than less-portable head -c$n
49771         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
49772         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
49773         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
49774         via Collin Lasse.
49775
49776 2008-05-14  Eric Blake  <ebb9@byu.net>
49777
49778         Avoid quadratic growth in gl_LIBSOURCES.
49779         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
49780         Suggested by Bruno Haible.
49781
49782         Test xmemdup0.
49783         * modules/xmemdup0-tests: New file.
49784         * tests/test-xmemdup0.c: Likewise.
49785
49786 2008-05-13  Eric Blake  <ebb9@byu.net>
49787
49788         Split xmemdup0 into its own module.
49789         * modules/xmemdup0: New file.
49790         * lib/xmemdup0.h: Likewise.
49791         * lib/xmemdup0.c: Likewise.
49792         * MODULES.html.sh (Memory management functions): Add xmemdup0.
49793         * lib/xalloc.h (xmemdup0): Remove.
49794         * lib/xmalloc.c (xmemdup0): Likewise.
49795
49796 2008-05-13  Eric Blake  <ebb9@byu.net>
49797             Bruno Haible  <bruno@clisp.org>
49798
49799         Reduce number of forks required during autoconf.
49800         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
49801         and gl_LIBSOURCES_DIR.
49802         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
49803         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
49804         m4_syscmd per file.
49805         <m4_foreach_w>: Move...
49806         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
49807
49808 2008-05-13  Eric Blake  <ebb9@byu.net>
49809
49810         * gnulib-tool: Fix various comment typos.
49811
49812 2008-05-12  Bruno Haible  <bruno@clisp.org>
49813
49814         Tailor the linebreaking algorithm.
49815         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
49816
49817 2008-05-12  Bruno Haible  <bruno@clisp.org>
49818
49819         Update to Unicode 5.0.0.
49820         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49821         LBP_JV, LBP_JT. Redistribute values.
49822         (unilbrk_table): Change size.
49823         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
49824         Unicode TR#14 rev. 22.
49825         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49826         LBP_JV, LBP_JT. Redistribute values.
49827         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
49828         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
49829         Update.
49830         * lib/unilbrk/lbrkprop1.h: Regenerated.
49831         * lib/unilbrk/lbrkprop2.h: Regenerated.
49832         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
49833         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
49834         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
49835         Likewise.
49836         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
49837         Likewise.
49838         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
49839         result.
49840         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
49841         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
49842         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
49843         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
49844         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
49845         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
49846
49847 2008-05-11  Bruno Haible  <bruno@clisp.org>
49848
49849         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
49850
49851 2008-05-11  Bruno Haible  <bruno@clisp.org>
49852
49853         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
49854         * modules/unilbrk/gen-lbrk: New file.
49855
49856 2008-05-11  Bruno Haible  <bruno@clisp.org>
49857
49858         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
49859         * m4/sha512.m4 (gl_SHA512): Likewise.
49860
49861 2008-05-11  Jim Meyering  <meyering@redhat.com>
49862
49863         New modules: crypto/sha256, crypto/sha512 (from coreutils)
49864         * modules/crypto/sha256: New file.
49865         * modules/crypto/sha512: Likewise.
49866         * lib/sha256.c: Likewise.
49867         * lib/sha256.h: Likewise.
49868         * lib/sha512.c: Likewise.
49869         * lib/sha512.h: Likewise.
49870         * lib/u64.h: Likewise.
49871         * m4/sha256.m4: Likewise.
49872         * m4/sha512.m4: Likewise.
49873         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
49874
49875 2008-05-10  Bruno Haible  <bruno@clisp.org>
49876
49877         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
49878         (Input/Output <stdio.h>): Add xprintf.
49879         (Signal handling <signal.h>): Add strsignal.
49880         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
49881         (Core language properties): Add func.
49882         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
49883         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
49884         strings.
49885         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
49886         (Input/output): New section.
49887         (File system functions): Add openat-die, stat-macros.
49888         (Networking functions): Add sockets.
49889         (Unicode string functions): Add unictype/*.
49890         (Support for building libraries and executables): Add gperf.
49891         (Support for building documentation): Add agpl-3.0.
49892         (Misc): Add nocrash.
49893
49894 2008-05-10  Bruno Haible  <bruno@clisp.org>
49895
49896         * modules/unictype/gen-ctype: New file.
49897
49898 2008-05-10  Jim Meyering  <meyering@redhat.com>
49899
49900         Make chdir-safer.c more efficient on a system with no symlinks.
49901         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
49902         also if ELOOP is zero.  Suggested by Bruno Haible.
49903
49904         Make chdir-safer.c slightly safer.
49905         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
49906         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
49907
49908         Avoid compile failure on systems without ELOOP (like mingw).
49909         * lib/chdir-safer.c (ELOOP): Define if not already defined.
49910         Reported by Bruno Haible.
49911
49912 2008-05-10  Bruno Haible  <bruno@clisp.org>
49913
49914         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
49915         (is_utf8_encoding): Use a case-insensitive comparison.
49916         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
49917         streq.
49918
49919 2008-05-10  Bruno Haible  <bruno@clisp.org>
49920
49921         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
49922         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
49923         * lib/unilbrk/ulc-common.h (iconv_string_length,
49924         iconv_string_keeping_offsets): Remove declarations.
49925         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
49926         Don't include <iconv.h>, streq.h, xsize.h.
49927         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
49928         conversion.
49929         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
49930         <iconv.h>, streq.h, xsize.h.
49931         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
49932         conversion.
49933         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
49934         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
49935         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
49936         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
49937
49938 2008-05-10  Bruno Haible  <bruno@clisp.org>
49939
49940         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
49941         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
49942
49943         * modules/unilbrk/u32-width-linebreaks-tests: New file.
49944         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
49945
49946         * modules/unilbrk/u16-width-linebreaks-tests: New file.
49947         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
49948
49949         * modules/unilbrk/u8-width-linebreaks-tests: New file.
49950         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
49951
49952         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
49953         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
49954
49955         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
49956         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
49957
49958         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
49959         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
49960
49961         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
49962         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
49963
49964 2008-05-10  Bruno Haible  <bruno@clisp.org>
49965
49966         Split up 'linebreak' module.
49967         * lib/unilbrk.h: New file, based on lib/linebreak.h.
49968         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
49969         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
49970         modifications.
49971         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
49972         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
49973         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
49974         lib/linebreak.c.
49975         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
49976         lib/linebreak.c.
49977         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
49978         lib/linebreak.c.
49979         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
49980         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
49981         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
49982         lib/linebreak.c.
49983         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
49984         lib/linebreak.c.
49985         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
49986         lib/linebreak.c.
49987         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
49988         lib/linebreak.c.
49989         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
49990         lib/linebreak.c.
49991         * modules/unilbrk/base: New file.
49992         * modules/unilbrk/tables: New file.
49993         * modules/unilbrk/u8-possible-linebreaks: New file.
49994         * modules/unilbrk/u16-possible-linebreaks: New file.
49995         * modules/unilbrk/u32-possible-linebreaks: New file.
49996         * modules/unilbrk/ulc-common: New file.
49997         * modules/unilbrk/ulc-possible-linebreaks: New file.
49998         * modules/unilbrk/u8-width-linebreaks: New file.
49999         * modules/unilbrk/u16-width-linebreaks: New file.
50000         * modules/unilbrk/u32-width-linebreaks: New file.
50001         * modules/unilbrk/ulc-width-linebreaks: New file.
50002         * lib/linebreak.h: Remove file.
50003         * lib/linebreak.c: Remove file.
50004         * m4/linebreak.m4: Remove file.
50005         * modules/linebreak: Remove file.
50006         * NEWS: Mention the changes.
50007
50008 2008-05-09  Eric Blake  <ebb9@byu.net>
50009
50010         Add xmemdup0.
50011         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
50012         implementation.
50013         * lib/xmalloc.c (xmemdup0): New C implementation.
50014
50015 2008-05-08  Bruno Haible  <bruno@clisp.org>
50016
50017         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
50018
50019 2008-05-07  Eric Blake  <ebb9@byu.net>
50020
50021         Support cross-compilation of <wctype.h>.
50022         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
50023         AC_CACHE_CHECK.
50024
50025 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
50026
50027         * build-aux/vc-list-files: Add support for bzr.
50028
50029 2008-05-03  Jim Meyering  <meyering@redhat.com>
50030
50031         avoid failed assertion with tight malloc
50032         * tests/test-getndelim2.c: Correct an off-by-one assertion.
50033
50034 2008-05-03  Simon Josefsson  <simon@josefsson.org>
50035
50036         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
50037         are needed from arpa/inet.h.
50038         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
50039         Reported by Bruno Haible.
50040
50041 2008-05-02  Jim Meyering  <meyering@redhat.com>
50042
50043         avoid compilation error on FreeBSD 6
50044         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
50045
50046 2008-05-01  Jim Meyering  <meyering@redhat.com>
50047
50048         useless-if-before-free: correct --help's exit status description
50049         * build-aux/useless-if-before-free (usage): Like grep, exit 0
50050         for one or more matches, etc.  Reported by Bruno Haible.
50051
50052         vc-list-files: make the stand-alone gnulib test work
50053         * modules/vc-list-files-tests (configure.ac):
50054         Define and AC_SUBST abs_aux_dir.
50055         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
50056         $(abs_top_srcdir) to each script and having each of them
50057         duplicate the work of setting PATH, set PATH here, using
50058         the new variable, abs_aux_dir instead.
50059         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
50060         * tests/test-vc-list-files-git.sh: Likewise.
50061         Reported by Bruno Haible.
50062
50063 2008-05-01  Bruno Haible  <bruno@clisp.org>
50064
50065         * lib/getndelim2.c (getndelim2): Fix newsize computation during
50066         reallocation. Rename 'done' to 'found_delimiter'.
50067
50068 2008-05-01  Jim Meyering  <meyering@redhat.com>
50069
50070         vc-list-files: accommodate /bin/sh like the one from Solaris 10
50071         * build-aux/vc-list-files: Use `...`, not $(...).
50072
50073 2008-04-30  Jim Meyering  <meyering@redhat.com>
50074
50075         add tests for vc-list-files
50076         * modules/vc-list-files-tests: New module.
50077         * tests/test-vc-list-files-cvs.sh: New file.
50078         * tests/test-vc-list-files-git.sh: New file.
50079
50080         avoid a warning from gcc
50081         * lib/getndelim2.c (IF_LINT): Define.
50082         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
50083
50084         vc-list-files: work properly with build-aux/cvsu, too
50085         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
50086         to all cvs-based clauses.
50087
50088         vc-list-files: work properly in the CVS+awk case, too
50089         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
50090
50091         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
50092         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
50093         take more than one file argument, so .  Add quotes, just in case $dir
50094         ever contains a shell meta-character.  Prompted by Soren Hansen in
50095         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
50096
50097 2008-04-29  Eric Blake  <ebb9@byu.net>
50098
50099         Optimize getndelim2 to use block operations when possible.
50100         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
50101         freadseek, and memchr2.
50102         * lib/getndelim2.c (getndelim2): Use them for block reads.
50103
50104 2008-04-29  Bruno Haible  <bruno@clisp.org>
50105
50106         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
50107         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50108         * modules/inet_ntop (Depends-on): Add extensions.
50109         * modules/inet_pton (Depends-on): Likewise.
50110         Reported by Simon Josefsson.
50111
50112 2008-04-29  Jim Meyering  <meyering@redhat.com>
50113
50114         When the is more than one match in a block, match all of them.
50115         * build-aux/useless-if-before-free: Iterate through each block
50116         until there are no more matches.
50117
50118         Fix broken useless-if-before-free script.
50119         * build-aux/useless-if-before-free: Fix typo: missing "?" after
50120         the expression to match cast of argument to free-like function.
50121
50122 2008-04-29  Eric Blake  <ebb9@byu.net>
50123
50124         Use new header.
50125         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
50126
50127 2008-04-29  Jim Meyering  <meyering@redhat.com>
50128
50129         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
50130         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
50131         by gnulib to exist and to declare e.g., inet_ntop.
50132         Don't include "inet_ntop.h", now removed.
50133
50134         * m4/arpa_inet_h.m4: Remove trailing blanks.
50135
50136 2008-04-29  Eric Blake  <ebb9@byu.net>
50137
50138         Silence valgrind on safe reads beyond potential array bounds.
50139         * lib/rawmemchr.valgrind: New file.
50140         * lib/strchrnul.valgrind: Likewise.
50141         * modules/rawmemchr (Files): Distribute new file.
50142         * modules/strchrnul (Files): Likewise.
50143         Suggested by Bruno Haible.
50144
50145 2008-04-29  Bruno Haible  <bruno@clisp.org>
50146
50147         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
50148         (inet_ntop, inet_pton): Change portability warning's wording.
50149         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
50150         Invoke gl_CHECK_NEXT_HEADERS.
50151         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
50152         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
50153         set ARPA_INET_H.
50154         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50155         * modules/arpa_inet (Description): No longer only for systems that
50156         lack it.
50157         (Depends-on): Add include_next.
50158         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
50159         HAVE_ARPA_INET_H.
50160
50161 2008-04-29  Jim Meyering  <meyering@redhat.com>
50162
50163         * modules/mkdir (License): Re-license as LGPLv2+.
50164
50165 2008-04-29  Bruno Haible  <bruno@clisp.org>
50166
50167         * modules/rawmemchr (Maintainer): Set to Eric.
50168         * modules/strchrnul (Maintainer): Likewise.
50169
50170 2008-04-29  Simon Josefsson  <simon@josefsson.org>
50171
50172         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
50173         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
50174
50175         * modules/arpa_inet (arpa/inet.h): Use them.
50176
50177 2008-04-28  Eric Blake  <ebb9@byu.net>
50178
50179         Test getndelim2.
50180         * modules/getndelim2-tests: New file.
50181         * tests/test-getndelim2.c: Likewise.
50182         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
50183         stream.
50184         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
50185
50186         * MODULES.html.sh: Document new module.
50187
50188 2008-04-20  Bruno Haible  <bruno@clisp.org>
50189
50190         * lib/c-stack.c (die): Use raise.
50191         * modules/c-stack (Depends-on): Add raise.
50192
50193 2008-04-28  Bruno Haible  <bruno@clisp.org>
50194
50195         Expect rpmatch to be declared.
50196         * lib/yesno.c (rpmatch): Remove declaration.
50197
50198         Declare rpmatch.
50199         * lib/stdlib.in.h (rpmatch): New declaration.
50200         * lib/rpmatch.c: Include <stdlib.h> first.
50201         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
50202         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
50203         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
50204         HAVE_RPMATCH.
50205         * modules/rpmatch (Depends-on): Add stdlib, extensions.
50206         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50207         (Include): Set to <stdlib.h>.
50208         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
50209         HAVE_RPMATCH.
50210         * NEWS: Document the change.
50211
50212 2008-04-28  Bruno Haible  <bruno@clisp.org>
50213
50214         Change rpmatch to use nl_langinfo when appropriate.
50215         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
50216         (N_): New macro.
50217         (localized_pattern): New function/macro.
50218         (try): Remove match, nomatch arguments. Copy the pattern into safe
50219         memory before caching it.
50220         (rpmatch): Use localized_pattern. Add translator comments.
50221         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
50222         Suggested by Eric Blake.
50223         * modules/rpmatch (Depends-on): Add stdbool.
50224
50225 2008-04-28  Eric Blake  <ebb9@byu.net>
50226
50227         Add rawmemchr module, matching glibc.
50228         * modules/string (Makefile.am): New indicator.
50229         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
50230         * lib/string.in.h (rawmemchr): Declare when appropriate.
50231         * modules/rawmemchr: New file.
50232         * m4/rawmemchr.m4: Likewise.
50233         * lib/rawmemchr.c: Likewise.
50234         * modules/rawmemchr-tests: Likewise.
50235         * tests/test-rawmemchr.c: Likewise.
50236         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
50237         module.
50238         * modules/strchrnul (Depends-on): Add rawmemchr.
50239         * lib/strchrnul.c (strchrnul): Optimize a corner case.
50240
50241         Whitespace cleanup.
50242         * tests/test-strchrnul.c: Reindent.
50243         * lib/strchrnul.c: Likewise.
50244
50245         Optimize and test strchrnul.
50246         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
50247         * modules/strchrnul-tests: New file.
50248         * tests/test-strchrnul.c: Likewise.
50249
50250         Remove intprops dependency.
50251         * modules/memchr (Depends-on): Remove intprops.
50252         * modules/memrchr (Depends-on): Likewise.
50253         * modules/memchr2 (Depends-on): Likewise.
50254         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
50255         * lib/memrchr.c (__memrchr): Likewise.
50256         * lib/memrchr2.c (memchr2): Likewise.
50257         Reported by Simon Josefsson.
50258
50259 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50260
50261         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
50262         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50263
50264 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50265
50266         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
50267
50268         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
50269
50270         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
50271
50272         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
50273         declarations.
50274         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
50275
50276         * m4/inet_pton.m4: Don't check for header files.
50277
50278         * m4/inet_ntop.m4: Don't check for header files.
50279
50280 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50281
50282         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
50283         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
50284         trigger for cygwin).
50285         Reported by Bruno Haible  <bruno@clisp.org>.
50286
50287 2008-04-28  Bruno Haible  <bruno@clisp.org>
50288
50289         * doc/posix-functions/strdup.texi: Mention mingw problem.
50290
50291 2008-04-27  Bruno Haible  <bruno@clisp.org>
50292
50293         * modules/stat-time-tests (Depends-on): Add sleep.
50294         * tests/test-stat-time.c (force_unlink): New function.
50295         (cleanup): Use it.
50296         (test_mtime): Remove the ctime related tests.
50297         (test_ctime): New function, containing the ctime related tests.
50298         (main): Call test_ctime, except on native Windows platforms.
50299
50300 2008-04-27  Bruno Haible  <bruno@clisp.org>
50301
50302         * lib/rpmatch.c (rpmatch): Add some comments.
50303         Reported by James Youngman <jay@gnu.org>.
50304
50305 2008-04-27  Bruno Haible  <bruno@clisp.org>
50306
50307         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
50308         quiet NaNs.
50309
50310 2008-04-27  Bruno Haible  <bruno@clisp.org>
50311
50312         Make test-yesno.sh work on mingw.
50313         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
50314         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
50315         (main): Set stdin to binary mode.
50316         * modules/yesno-tests (Depends-on): Add binary-io.
50317
50318 2008-04-27  Bruno Haible  <bruno@clisp.org>
50319
50320         Fix 'isfinite' on x86, x86_64, ia64 platforms.
50321         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
50322         argument that lie outside the IEEE 854 domain.
50323         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
50324         (gl_ISFINITE): Use it.
50325         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
50326
50327 2008-04-27  Bruno Haible  <bruno@clisp.org>
50328
50329         Allow local renaming in config.h.
50330         * lib/memrchr.c (memrchr): Don't undefine outside libc.
50331
50332 2008-04-27  Bruno Haible  <bruno@clisp.org>
50333
50334         * lib/memchr.c (__memchr): Change type of 'i'.
50335         * lib/memchr2.c (memchr2): Likewise.
50336
50337 2008-04-26  Eric Blake  <ebb9@byu.net>
50338         and Bruno Haible  <bruno@clisp.org>
50339
50340         Optimize and test memrchr.
50341         * modules/memrchr (Depends-on): Add intprops.
50342         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
50343         * modules/memrchr-tests: New file.
50344         * tests/test-memrchr.c: New file.
50345
50346 2008-04-26  Bruno Haible  <bruno@clisp.org>
50347
50348         Add tentative support for DragonFly BSD.
50349         * lib/stdio-impl.h: Add macros for DragonFly BSD.
50350         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
50351         fp.
50352         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50353         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
50354         * lib/fpurge.c (fpurge): Likewise.
50355         * lib/freadable.c (freaadable): Likewise.
50356         * lib/freadahead.c (freadahead): Likewise.
50357         * lib/freading.c (freading): Likewise.
50358         * lib/freadptr.c (freadptr): Likewise.
50359         * lib/freadseek.c (freadptrinc): Likewise.
50360         * lib/fseeko.c (fseeko): Likewise.
50361         * lib/fseterr.c (fseterr): Likewise.
50362         * lib/fwritable.c (fwritable): Likewise.
50363         * lib/fwriting.c (fwriting): Likewise.
50364
50365 2008-04-26  Bruno Haible  <bruno@clisp.org>
50366
50367         * lib/stdio-impl.h: New file.
50368         * lib/fbufmode.c: Include stdio-impl.h.
50369         (fbufmode): Use fp_, remove redundant #defines.
50370         * lib/fflush.c: Include stdio-impl.h.
50371         (clear_ungetc_buffer): Remove redundant #defines.
50372         * lib/fpurge.c: Include stdio-impl.h.
50373         (fpurge): Remove redundant #defines.
50374         * lib/freadable.c: Include stdio-impl.h.
50375         (freadable): Remove redundant #defines.
50376         * lib/freadahead.c: Include stdio-impl.h.
50377         (freadahead): Remove redundant #defines.
50378         * lib/freading.c: Include stdio-impl.h.
50379         (freading): Remove redundant #defines.
50380         * lib/freadptr.c: Include stdio-impl.h.
50381         (freadptr): Remove redundant #defines.
50382         * lib/freadseek.c: Include stdio-impl.h.
50383         (freadptrinc): Remove redundant #defines.
50384         * lib/fseeko.c: Include stdio-impl.h.
50385         (rpl_fseeko): Remove redundant #defines.
50386         * lib/fseterr.c: Include stdio-impl.h.
50387         (fseterr): Remove redundant #defines.
50388         * lib/fwritable.c: Include stdio-impl.h.
50389         (fwritable: Remove redundant #defines.
50390         * lib/fwriting.c: Include stdio-impl.h.
50391         (fwriting): Remove redundant #defines.
50392         * modules/fbufmode (Files): Add lib/stdio-impl.h.
50393         * modules/fflush (Files): Likewise.
50394         * modules/fpurge (Files): Likewise.
50395         * modules/freadable (Files): Likewise.
50396         * modules/freadahead (Files): Likewise.
50397         * modules/freading (Files): Likewise.
50398         * modules/freadptr (Files): Likewise.
50399         * modules/freadseek (Files): Likewise.
50400         * modules/fseeko (Files): Likewise.
50401         * modules/fseterr (Files): Likewise.
50402         * modules/fwritable (Files): Likewise.
50403         * modules/fwriting (Files): Likewise.
50404
50405 2008-04-26  Bruno Haible  <bruno@clisp.org>
50406
50407         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50408         restore_seek_optimization, update_fpos_cache): New functions, extracted
50409         from rpl_fflush.
50410         (rpl_fflush): Use them.
50411         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
50412         (gl_REPLACE_FFLUSH): Use it.
50413
50414 2008-04-26  Bruno Haible  <bruno@clisp.org>
50415
50416         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
50417         on Solaris.
50418         * tests/test-xstrtoimax.sh: Likewise.
50419         * tests/test-xstrtoumax.sh: Likewise.
50420         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50421
50422 2008-04-26  Bruno Haible  <bruno@clisp.org>
50423
50424         * modules/memchr-tests: New file.
50425         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
50426
50427 2008-04-26  Eric Blake  <ebb9@byu.net>
50428             Bruno Haible  <bruno@clisp.org>
50429
50430         * lib/memchr.c: Include intprops.h.
50431         (__memchr): Optimize parallel detection of matching bytes. Rename local
50432         variables. Add explanatory comments.
50433
50434 2008-04-26  Bruno Haible  <bruno@clisp.org>
50435
50436         Fix module 'memchr', broken since 2000-10-28.
50437         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
50438
50439 2008-04-26  Bruno Haible  <bruno@clisp.org>
50440
50441         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
50442         comments.
50443
50444 2008-04-25  Eric Blake  <ebb9@byu.net>
50445
50446         Use native fstatat on cygwin 1.7.0.
50447         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
50448         first.
50449
50450 2008-04-23  Eric Blake  <ebb9@byu.net>
50451
50452         Improve memchr2 performance.
50453         * lib/memchr2.c (memchr2): Further optimize parallel detection of
50454         NUL bytes.
50455         * modules/memchr2 (Depends-on): Use intprops.h.
50456
50457 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50458
50459         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
50460         an inline function instead of a CPP macro.  Patch by Ben Pfaff
50461         <blp@cs.stanford.edu>.
50462
50463 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50464
50465         * lib/arpa_inet.in.h: New file.
50466
50467         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
50468         (Makefile.am): Sed in substitute header file.
50469
50470         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
50471         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
50472
50473         * modules/inet_ntop (configure.ac): Use
50474         gl_ARPA_INET_MODULE_INDICATOR.
50475
50476         * modules/inet_pton (configure.ac): Use
50477         gl_ARPA_INET_MODULE_INDICATOR.
50478
50479 2008-04-22  Jim Meyering  <meyering@redhat.com>
50480
50481         * modules/verify (License): Re-license as LGPLv2+.
50482
50483 2008-04-22  Simon Josefsson  <simon@josefsson.org>
50484
50485         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
50486         parameter to void* as per POSIX standard (MinGW uses char*).
50487
50488 2008-04-21  Bruno Haible  <bruno@clisp.org>
50489
50490         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
50491         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
50492         Define to replacements if REPLACE_ISWCNTRL is 1.
50493         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
50494         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
50495         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
50496         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
50497         what it fixes.
50498         * doc/posix-functions/iswalpha.texi: Likewise.
50499         * doc/posix-functions/iswblank.texi: Likewise.
50500         * doc/posix-functions/iswcntrl.texi: Likewise.
50501         * doc/posix-functions/iswdigit.texi: Likewise.
50502         * doc/posix-functions/iswgraph.texi: Likewise.
50503         * doc/posix-functions/iswlower.texi: Likewise.
50504         * doc/posix-functions/iswprint.texi: Likewise.
50505         * doc/posix-functions/iswpunct.texi: Likewise.
50506         * doc/posix-functions/iswspace.texi: Likewise.
50507         * doc/posix-functions/iswupper.texi: Likewise.
50508         * doc/posix-functions/iswxdigit.texi: Likewise.
50509         Reported by Alain Guibert.
50510
50511 2008-04-21  Bruno Haible  <bruno@clisp.org>
50512
50513         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
50514         Patch by Alain Guibert.
50515
50516 2008-04-21  Bruno Haible  <bruno@clisp.org>
50517
50518         Fix test failures on mingw.
50519         * tests/test-xstrtol.c (print_no_progname): New function.
50520         (main): Install it in error_print_progname hook.
50521         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
50522         * tests/test-xstrtoimax.sh: Likewise.
50523         * tests/test-xstrtoumax.sh: Likewise.
50524
50525 2008-04-21  Bruno Haible  <bruno@clisp.org>
50526
50527         Fix test failure on mingw.
50528         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
50529
50530 2008-04-21  Bruno Haible  <bruno@clisp.org>
50531
50532         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
50533         Actually assign a value.
50534
50535 2008-04-20  Bruno Haible  <bruno@clisp.org>
50536
50537         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
50538         take 2.
50539         * lib/canonicalize.c (canonicalize_file_name): Elide if the
50540         'canonicalize-lgpl' module is also used.
50541         * lib/canonicalize-lgpl.c: Undo last change.
50542         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
50543
50544 2008-04-20  Bruno Haible  <bruno@clisp.org>
50545
50546         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
50547         config.h. Provide _mkdir based fallback for mingw.
50548         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
50549         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
50550         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
50551         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
50552         rather than defining mkdir in config.h.
50553         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
50554         (gl_SYS_STAT_H_DEFAULTS): New macro.
50555         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
50556         HAVE_IO_H any more.
50557         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
50558         HAVE_DECL_MKDIR and HAVE_IO_H.
50559
50560 2008-04-20  Bruno Haible  <bruno@clisp.org>
50561
50562         * lib/isapipe.c: Port to native Windows platforms.
50563
50564 2008-04-20  Bruno Haible  <bruno@clisp.org>
50565
50566         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
50567
50568 2008-04-21  Eric Blake  <ebb9@byu.net>
50569
50570         Work around preprocessors that don't handle UINTMAX_MAX.
50571         * lib/memchr2.c (memchr2): Avoid embedded #if.
50572         Reported by Alain Guibert, fix suggested by Bruno Haible.
50573
50574 2008-04-21  Simon Josefsson  <simon@josefsson.org>
50575
50576         * doc/posix-functions/strftime.texi (strftime): Explain better
50577         Windows incompatibility.  Suggested by Micah Cowan
50578         <micah@cowan.name>.
50579
50580 2008-04-20  Bruno Haible  <bruno@clisp.org>
50581
50582         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
50583         unistr/u8-mblen.
50584
50585 2008-04-20  Bruno Haible  <bruno@clisp.org>
50586
50587         Fix test failure on platforms with non-GNU iconv.
50588         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
50589         (U_TO_U8): Use it, rather than u16_to_u8.
50590         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
50591         units at the end of the input string.
50592         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
50593
50594 2008-04-20  Bruno Haible  <bruno@clisp.org>
50595
50596         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
50597         when the resulting length is 0.
50598         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
50599
50600 2008-04-20  Bruno Haible  <bruno@clisp.org>
50601
50602         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
50603         works.
50604         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
50605
50606 2008-04-20  Bruno Haible  <bruno@clisp.org>
50607
50608         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
50609         * modules/tsearch-tests (configure.ac): Test for initstate function.
50610
50611 2008-04-20  Bruno Haible  <bruno@clisp.org>
50612
50613         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
50614         for nlink_t if missing.
50615         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
50616
50617 2008-04-19  Bruno Haible  <bruno@clisp.org>
50618
50619         Work around snprintf bug on Linux libc5.
50620         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
50621         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50622         gl_SNPRINTF_SIZE1.
50623         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50624         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
50625         that test failed.
50626         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
50627         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
50628         * modules/snprintf (Files): Add m4/printf.m4.
50629         * modules/vsnprintf (Files): Likewise.
50630         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
50631         * doc/posix-functions/vsnprintf.texi: Likewise.
50632
50633 2008-04-19  Bruno Haible  <bruno@clisp.org>
50634
50635         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
50636         from 0.0058 to less than 10^-7.
50637
50638 2008-04-19  Bruno Haible  <bruno@clisp.org>
50639
50640         Fix rounding when a precision is given.
50641         * lib/vasnprintf.c (is_borderline): New function.
50642         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
50643         9...9x.
50644         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
50645         %e, %g.
50646         * tests/test-vasprintf-posix.c (test_function): Likewise.
50647         * tests/test-snprintf-posix.h (test_function): Likewise.
50648         * tests/test-sprintf-posix.h (test_function): Likewise.
50649         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
50650         * tests/test-printf-posix.h (test_function): Likewise.
50651         * tests/test-printf-posix.output: Update.
50652         Reported by John Darrington <john@darrington.wattle.id.au> via
50653         Ben Pfaff <blp@cs.stanford.edu>.
50654
50655 2008-04-18  Simon Josefsson  <simon@josefsson.org>
50656
50657         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
50658         Suggested by Bruno Haible <bruno@clisp.org>.
50659
50660 2008-04-17  Bruno Haible  <bruno@clisp.org>
50661
50662         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
50663         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
50664         implementation.
50665         Patch by Bruce Merry <bmerry@gmail.com>.
50666
50667 2008-04-17  Simon Josefsson  <simon@josefsson.org>
50668
50669         * doc/posix-functions/strftime.texi (strftime): Mention that %e
50670         doesn't work under Windows.
50671
50672 2008-04-16  Bruno Haible  <bruno@clisp.org>
50673
50674         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
50675         New macros.
50676         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
50677         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
50678         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
50679         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
50680         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
50681         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
50682         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
50683         macros.
50684         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
50685         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
50686         Northern Sotho, Uighur.
50687
50688 2008-04-16  Bruno Haible  <bruno@clisp.org>
50689
50690         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
50691         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
50692         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
50693         Reported by Daniel Bergström <daniel@octocode.com>.
50694
50695 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
50696             Bruno Haible  <bruno@clisp.org>
50697
50698         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
50699         function.
50700         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
50701         New functions, mostly extracted from gl_locale_name_default.
50702         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
50703
50704 2008-04-16  Eric Blake  <ebb9@byu.net>
50705
50706         Adjust strtod detection to catch glibc 2.7 bug.
50707         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
50708         Reported by John Gatewood Ham.
50709
50710 2008-04-16  Bruno Haible  <bruno@clisp.org>
50711
50712         Add tentative support for Linux libc5.
50713         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
50714         * lib/fpurge.c (fpurge): Likewise.
50715         * lib/freadable.c (freadable): Likewise.
50716         * lib/freadahead.c (freadahead): Likewise.
50717         * lib/freading.c (freading): Likewise.
50718         * lib/freadptr.c (freadptr): Likewise.
50719         * lib/freadseek.c (freadptrinc): Likewise.
50720         * lib/fseeko.c (rpl_fseeko): Likewise.
50721         * lib/fseterr.c (fseterr): Likewise.
50722         * lib/fwritable.c (fwritable): Likewise.
50723         * lib/fwriting.c (fwriting): Likewise.
50724         Reported by Alain Guibert <alguibert+bts@free.fr>.
50725
50726 2008-04-15  Bruno Haible  <bruno@clisp.org>
50727
50728         * modules/mathl (configure.ac): Define module indicator.
50729
50730 2008-04-15  Bruno Haible  <bruno@clisp.org>
50731
50732         * lib/logl.c (logl): Remove unused variables.
50733
50734 2008-04-15  Bruno Haible  <bruno@clisp.org>
50735
50736         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
50737         fails.
50738
50739 2008-04-15  Bruno Haible  <bruno@clisp.org>
50740
50741         * lib/trim.c (trim2): Fix argument of isspace() macro.
50742
50743 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
50744
50745         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
50746         to 0.
50747         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
50748
50749 2008-04-14  Bruno Haible  <bruno@clisp.org>
50750
50751         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
50752         AC_LANG_PROGRAM argument.
50753         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
50754         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
50755         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
50756         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50757         * m4/math_h.m4 (gl_MATH_H): Likewise.
50758         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
50759         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50760         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
50761         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
50762         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
50763         * m4/regex.m4 (gl_REGEX): Likewise.
50764         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
50765         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
50766         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50767         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
50768         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50769         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50770         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50771         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50772
50773 2008-04-14  Jim Meyering  <meyering@redhat.com>
50774
50775         test-strtod: fix typos: s/abs/fabs/
50776         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
50777
50778 2008-04-13  Bruno Haible  <bruno@clisp.org>
50779
50780         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
50781         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
50782         module is also used and while not building the reloc-wrapper.
50783
50784 2008-04-13  Bruno Haible  <bruno@clisp.org>
50785
50786         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
50787
50788 2008-04-13  Bruno Haible  <bruno@clisp.org>
50789
50790         Fix AIX compilation failure introduced on 2008-04-02.
50791         * tests/test-frexp.c (exp): Undefine before redefining.
50792         * tests/test-frexpl.c (exp): Likewise.
50793
50794 2008-04-13  Bruno Haible  <bruno@clisp.org>
50795
50796         Work around a HP-UX stdio bug.
50797         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
50798         * tests/test-ftello.c (main): Likewise.
50799         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
50800         * doc/posix-functions/ftello.texi: Likewise.
50801
50802 2008-04-13  Bruno Haible  <bruno@clisp.org>
50803
50804         Make test-signbit pass on HP-UX/hppa.
50805         * tests/test-signbit.c (minus_zerol): New variable.
50806         (test_signbitl): Use it.
50807
50808 2008-04-13  Bruno Haible  <bruno@clisp.org>
50809
50810         Make truncl work on OSF/1 4.0.
50811         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
50812         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50813         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50814         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
50815         HAVE_DECL_TRUNCL.
50816         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
50817         HAVE_DECL_TRUNCL.
50818         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
50819
50820 2008-04-13  Bruno Haible  <bruno@clisp.org>
50821
50822         * lib/unictype.h: Remove trailing comma from enumeration definitions.
50823
50824 2008-04-13  Bruno Haible  <bruno@clisp.org>
50825
50826         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
50827         expression, so as to avoid HP-UX 11 cc compiler bug.
50828
50829 2008-04-13  Bruno Haible  <bruno@clisp.org>
50830
50831         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
50832
50833 2008-04-13  Bruno Haible  <bruno@clisp.org>
50834
50835         * lib/git-merge-changelog.c: Remove empty declaration outside of
50836         functions.
50837
50838 2008-04-13  Bruno Haible  <bruno@clisp.org>
50839
50840         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
50841
50842 2008-04-13  Bruno Haible  <bruno@clisp.org>
50843
50844         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
50845         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
50846         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
50847         also if it exists but lacks definitions of the SHUT_* macros.
50848         * modules/sys_socket (Description): Update.
50849         Reported by Elbert Pol <e.pol@chello.nl>.
50850
50851 2008-04-13  Bruno Haible  <bruno@clisp.org>
50852
50853         * lib/localcharset.c (OS2): Don't redefine if already defined.
50854         Reported by Elbert Pol <e.pol@chello.nl>.
50855
50856 2008-04-13  Bruno Haible  <bruno@clisp.org>
50857
50858         * lib/binary-io.h [__EMX__]: Include <io.h>.
50859         Reported by Elbert Pol <e.pol@chello.nl>.
50860
50861 2008-04-12  Bruno Haible  <bruno@clisp.org>
50862
50863         * lib/fpucw.h: Enable the definitions also for x86_64.
50864         Needed for NetBSD/x86_64.
50865         Reported by Thomas Klausner <tk@giga.or.at>.
50866
50867 2008-04-12  Bruno Haible  <bruno@clisp.org>
50868
50869         * tests/test-strtod.c: Include isnand.h.
50870         (main): Use isnand instead of isnan.
50871         Reported by Jim Meyering.
50872
50873 2008-04-12  Bruno Haible  <bruno@clisp.org>
50874
50875         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
50876         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
50877
50878 2008-04-12  Jim Meyering  <meyering@redhat.com>
50879
50880         * m4/math_h.m4 (gl_MATH_H): Fix typos.
50881
50882 2008-04-12  Bruno Haible  <bruno@clisp.org>
50883
50884         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
50885         Reported by Elbert Pol <e.pol@chello.nl>.
50886
50887 2008-04-12  Eric Blake  <ebb9@byu.net>
50888
50889         Work around Solaris 10 math.h bug.
50890         * m4/math_h.m4 (gl_MATH_H): Check for bug.
50891         (gl_MATH_H_DEFAULTS): Set up default.
50892         * modules/math (Makefile.am): Replace new indicators.
50893         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
50894         * tests/test-math.c (main): Test this.
50895         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
50896         * doc/posix-headers/math.texi (math.h): Mention bug.
50897         Reported by Nelson H. F. Beebe and Jim Meyering.
50898
50899 2008-04-11  Bruno Haible  <bruno@clisp.org>
50900
50901         Adapt to future versions of Apple GCC.
50902         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
50903         Reported by Peter O'Gorman <peter@pogma.com>.
50904
50905 2008-04-11  Bruno Haible  <bruno@clisp.org>
50906
50907         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
50908
50909 2008-04-11  Bruno Haible  <bruno@clisp.org>
50910
50911         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
50912
50913         * modules/getaddrinfo-tests (Makefile.am): Define
50914         test_getaddrinfo_LDADD.
50915
50916 2008-04-11  Bruno Haible  <bruno@clisp.org>
50917
50918         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
50919         (init): Fix syntax error.
50920         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
50921         is declared.
50922
50923 2008-04-11  Bruno Haible  <bruno@clisp.org>
50924
50925         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
50926         * modules/glob (Depends-on): Add stdbool.
50927
50928 2008-04-11  Bruno Haible  <bruno@clisp.org>
50929
50930         * lib/trim.c: Include <string.h>.
50931
50932 2008-04-11  Eric Blake  <ebb9@byu.net>
50933
50934         Avoid compile failure on OS/2.
50935         * lib/regex_internal.h (internal_function): Disable optimization
50936         on OS/2 (__EMX__), where it caused compiler error.
50937         Reported by Elbert Pol.
50938
50939 2008-04-11  Bruno Haible  <bruno@clisp.org>
50940
50941         Flush the standard error stream before aborting. Needed on mingw.
50942         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
50943         * tests/test-array_list.c (ASSERT): Likewise.
50944         * tests/test-array_oset.c (ASSERT): Likewise.
50945         * tests/test-avltree_list.c (ASSERT): Likewise.
50946         * tests/test-avltree_oset.c (ASSERT): Likewise.
50947         * tests/test-avltreehash_list.c (ASSERT): Likewise.
50948         * tests/test-binary-io.c (ASSERT): Likewise.
50949         * tests/test-byteswap.c (ASSERT): Likewise.
50950         * tests/test-c-ctype.c (ASSERT): Likewise.
50951         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
50952         * tests/test-c-strcasestr.c (ASSERT): Likewise.
50953         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
50954         * tests/test-c-strstr.c (ASSERT): Likewise.
50955         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
50956         * tests/test-canonicalize.c (ASSERT): Likewise.
50957         * tests/test-carray_list.c (ASSERT): Likewise.
50958         * tests/test-ceilf1.c (ASSERT): Likewise.
50959         * tests/test-ceilf2.c (ASSERT): Likewise.
50960         * tests/test-ceill.c (ASSERT): Likewise.
50961         * tests/test-count-one-bits.c (ASSERT): Likewise.
50962         * tests/test-fbufmode.c (ASSERT): Likewise.
50963         * tests/test-fflush2.c (ASSERT): Likewise.
50964         * tests/test-floorf1.c (ASSERT): Likewise.
50965         * tests/test-floorf2.c (ASSERT): Likewise.
50966         * tests/test-floorl.c (ASSERT): Likewise.
50967         * tests/test-fopen.c (ASSERT): Likewise.
50968         * tests/test-fpending.c (ASSERT): Likewise.
50969         * tests/test-fprintf-posix.c (ASSERT): Likewise.
50970         * tests/test-fpurge.c (ASSERT): Likewise.
50971         * tests/test-freadable.c (ASSERT): Likewise.
50972         * tests/test-freadahead.c (ASSERT): Likewise.
50973         * tests/test-freading.c (ASSERT): Likewise.
50974         * tests/test-freadptr.c (ASSERT): Likewise.
50975         * tests/test-freadptr2.c (ASSERT): Likewise.
50976         * tests/test-freadseek.c (ASSERT): Likewise.
50977         * tests/test-freopen.c (ASSERT): Likewise.
50978         * tests/test-frexp.c (ASSERT): Likewise.
50979         * tests/test-frexpl.c (ASSERT): Likewise.
50980         * tests/test-fseek.c (ASSERT): Likewise.
50981         * tests/test-fseeko.c (ASSERT): Likewise.
50982         * tests/test-fstrcmp.c (ASSERT): Likewise.
50983         * tests/test-ftell.c (ASSERT): Likewise.
50984         * tests/test-ftello.c (ASSERT): Likewise.
50985         * tests/test-func.c (ASSERT): Likewise.
50986         * tests/test-fwritable.c (ASSERT): Likewise.
50987         * tests/test-fwriting.c (ASSERT): Likewise.
50988         * tests/test-getdelim.c (ASSERT): Likewise.
50989         * tests/test-getline.c (ASSERT): Likewise.
50990         * tests/test-i-ring.c (ASSERT): Likewise.
50991         * tests/test-iconv-utf.c (ASSERT): Likewise.
50992         * tests/test-iconv.c (ASSERT): Likewise.
50993         * tests/test-isfinite.c (ASSERT): Likewise.
50994         * tests/test-isnand.c (ASSERT): Likewise.
50995         * tests/test-isnanf.c (ASSERT): Likewise.
50996         * tests/test-isnanl.h (ASSERT): Likewise.
50997         * tests/test-ldexpl.c (ASSERT): Likewise.
50998         * tests/test-linked_list.c (ASSERT): Likewise.
50999         * tests/test-linkedhash_list.c (ASSERT): Likewise.
51000         * tests/test-localename.c (ASSERT): Likewise.
51001         * tests/test-lseek.c (ASSERT): Likewise.
51002         * tests/test-mbscasecmp.c (ASSERT): Likewise.
51003         * tests/test-mbscasestr1.c (ASSERT): Likewise.
51004         * tests/test-mbscasestr2.c (ASSERT): Likewise.
51005         * tests/test-mbscasestr3.c (ASSERT): Likewise.
51006         * tests/test-mbscasestr4.c (ASSERT): Likewise.
51007         * tests/test-mbschr.c (ASSERT): Likewise.
51008         * tests/test-mbscspn.c (ASSERT): Likewise.
51009         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
51010         * tests/test-mbspbrk.c (ASSERT): Likewise.
51011         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
51012         * tests/test-mbsrchr.c (ASSERT): Likewise.
51013         * tests/test-mbsspn.c (ASSERT): Likewise.
51014         * tests/test-mbsstr1.c (ASSERT): Likewise.
51015         * tests/test-mbsstr2.c (ASSERT): Likewise.
51016         * tests/test-mbsstr3.c (ASSERT): Likewise.
51017         * tests/test-memchr2.c (ASSERT): Likewise.
51018         * tests/test-memmem.c (ASSERT): Likewise.
51019         * tests/test-open.c (ASSERT): Likewise.
51020         * tests/test-printf-frexp.c (ASSERT): Likewise.
51021         * tests/test-printf-frexpl.c (ASSERT): Likewise.
51022         * tests/test-printf-posix.c (ASSERT): Likewise.
51023         * tests/test-quotearg.c (ASSERT): Likewise.
51024         * tests/test-rbtree_list.c (ASSERT): Likewise.
51025         * tests/test-rbtree_oset.c (ASSERT): Likewise.
51026         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
51027         * tests/test-round1.c (ASSERT): Likewise.
51028         * tests/test-roundf1.c (ASSERT): Likewise.
51029         * tests/test-roundl.c (ASSERT): Likewise.
51030         * tests/test-signbit.c (ASSERT): Likewise.
51031         * tests/test-sleep.c (ASSERT): Likewise.
51032         * tests/test-snprintf-posix.c (ASSERT): Likewise.
51033         * tests/test-snprintf.c (ASSERT): Likewise.
51034         * tests/test-sprintf-posix.c (ASSERT): Likewise.
51035         * tests/test-stat-time.c (ASSERT): Likewise.
51036         * tests/test-strcasestr.c (ASSERT): Likewise.
51037         * tests/test-strerror.c (ASSERT): Likewise.
51038         * tests/test-striconv.c (ASSERT): Likewise.
51039         * tests/test-striconveh.c (ASSERT): Likewise.
51040         * tests/test-striconveha.c (ASSERT): Likewise.
51041         * tests/test-strsignal.c (ASSERT): Likewise.
51042         * tests/test-strstr.c (ASSERT): Likewise.
51043         * tests/test-strtod.c (ASSERT): Likewise.
51044         * tests/test-trunc1.c (ASSERT): Likewise.
51045         * tests/test-trunc2.c (ASSERT): Likewise.
51046         * tests/test-truncf1.c (ASSERT): Likewise.
51047         * tests/test-truncf2.c (ASSERT): Likewise.
51048         * tests/test-truncl.c (ASSERT): Likewise.
51049         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
51050         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
51051         * tests/test-vasnprintf.c (ASSERT): Likewise.
51052         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
51053         * tests/test-vasprintf.c (ASSERT): Likewise.
51054         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
51055         * tests/test-vprintf-posix.c (ASSERT): Likewise.
51056         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
51057         * tests/test-vsnprintf.c (ASSERT): Likewise.
51058         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
51059         * tests/test-wcwidth.c (ASSERT): Likewise.
51060         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
51061         * tests/test-xprintf-posix.c (ASSERT): Likewise.
51062         * tests/test-xvasprintf.c (ASSERT): Likewise.
51063         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
51064         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
51065         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
51066         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
51067         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
51068         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
51069         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
51070         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
51071         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
51072         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
51073         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
51074         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
51075         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
51076         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
51077         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
51078         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
51079         * tests/unictype/test-block_list.c (ASSERT): Likewise.
51080         * tests/unictype/test-block_of.c (ASSERT): Likewise.
51081         * tests/unictype/test-block_test.c (ASSERT): Likewise.
51082         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
51083         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
51084         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
51085         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
51086         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
51087         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
51088         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
51089         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
51090         * tests/unictype/test-combining.c (ASSERT): Likewise.
51091         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
51092         * tests/unictype/test-digit.c (ASSERT): Likewise.
51093         * tests/unictype/test-mirror.c (ASSERT): Likewise.
51094         * tests/unictype/test-numeric.c (ASSERT): Likewise.
51095         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
51096         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
51097         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
51098         * tests/unictype/test-scripts.c (ASSERT): Likewise.
51099         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
51100         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
51101         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
51102         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
51103         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
51104         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
51105         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
51106         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
51107         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
51108         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
51109         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
51110         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
51111         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
51112         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
51113         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
51114         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
51115         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
51116         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
51117         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
51118         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
51119         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
51120         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
51121         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
51122         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
51123         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
51124         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
51125         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
51126         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
51127         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
51128         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
51129         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
51130         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
51131         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
51132         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
51133         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
51134         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
51135         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
51136         Reported by Eric Blake.
51137
51138 2008-04-11  Bruno Haible  <bruno@clisp.org>
51139
51140         * lib/wchar.in.h: Tweak comment.
51141
51142 2008-04-11  Bruno Haible  <bruno@clisp.org>
51143
51144         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
51145         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
51146         gl_COMMON.
51147         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
51148
51149 2008-04-11  Bruno Haible  <bruno@clisp.org>
51150
51151         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
51152
51153 2008-04-11  Simon Josefsson  <simon@josefsson.org>
51154
51155         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
51156         of attempting to use non-existing /dev/*random.  Based on patch
51157         from Adam Strzelecki <ono@java.pl> in
51158         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
51159
51160 2008-04-08  Bruno Haible  <bruno@clisp.org>
51161
51162         Add tentative support for emx+gcc.
51163         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
51164         * lib/fpurge.c (fpurge): Likewise.
51165         * lib/freadable.c (freadable): Likewise.
51166         * lib/freadahead.c (freadahead): Likewise.
51167         * lib/freading.c (freading): Likewise.
51168         * lib/freadptr.c (freadptr): Likewise.
51169         * lib/freadseek.c (freadptrinc): Likewise.
51170         * lib/fseeko.c (rpl_fseeko): Likewise.
51171         * lib/fseterr.c (fseterr): Likewise.
51172         * lib/fwritable.c (fwritable): Likewise.
51173         * lib/fwriting.c (fwriting): Likewise.
51174         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
51175
51176 2008-04-09  Eric Blake  <ebb9@byu.net>
51177
51178         Avoid some autoconf warnings.
51179         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
51180         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
51181         * m4/afs.m4 (gl_AFS): Likewise.
51182         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
51183         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
51184         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51185         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
51186         (gl_INTEGER_TYPE_SUFFIX): Likewise.
51187         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
51188         (AC_CHECK_DECLS_ONCE): Likewise.
51189         Rename file...
51190         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
51191         gnulib-tool requires autoconf 2.59 or better.
51192         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
51193
51194 2008-04-08  Eric Blake  <ebb9@byu.net>
51195
51196         Use 'git describe --match' if present (added in git 1.5.5).
51197         * build-aux/git-version-gen: Limit result to tags that match 'v*'
51198         if possible.
51199
51200 2008-04-08  Bruno Haible  <bruno@clisp.org>
51201
51202         Add tentative support for OpenServer.
51203         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
51204         _ptr, _cnt.
51205         * lib/fpurge.c (fpurge): Likewise.
51206         * lib/freadable.c (freadable): Likewise.
51207         * lib/freadahead.c (freadahead): Likewise.
51208         * lib/freading.c (freading): Likewise.
51209         * lib/freadptr.c (freadptr): Likewise.
51210         * lib/freadseek.c (freadptrinc): Likewise.
51211         * lib/fseeko.c (rpl_fseeko): Likewise.
51212         * lib/fseterr.c (fseterr): Likewise.
51213         * lib/fwritable.c (fwritable): Likewise.
51214         * lib/fwriting.c (fwriting): Likewise.
51215         Reported by Roger Cornelius <rac@tenzing.org> and
51216         Brian K. White <brian@aljex.com>.
51217
51218 2008-04-06  Jim Meyering  <meyering@redhat.com>
51219
51220         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
51221
51222 2008-04-06  Bruno Haible  <bruno@clisp.org>
51223
51224         Avoid possible error with non-ASCII bytes in UTF-8 locales.
51225         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
51226         * tests/test-printf-posix.sh: Likewise.
51227         * tests/test-vfprintf-posix.sh: Likewise.
51228         * tests/test-vprintf-posix.sh: Likewise.
51229         * tests/test-xprintf-posix.sh: Likewise.
51230
51231 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51232
51233         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
51234         hide error from 'ls', needed on OS/2.
51235         Report by Elbert Pol <elbert.pol@gmail.com>.
51236
51237 2008-04-04  Eric Blake  <ebb9@byu.net>
51238
51239         Make test-fseeko.c failures meaningful.
51240         * tests/test-fseeko.c: Print line number on failure.
51241         * tests/test-fseek.c: Likewise.
51242         Reported by Nelson H. F. Beebe.
51243
51244         Improve strtod bug detection check.
51245         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
51246         required for Solaris 10.
51247         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
51248
51249 2008-04-04  Bruno Haible  <bruno@clisp.org>
51250
51251         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
51252         by m4/setenv.m4.
51253
51254 2008-04-03  Eric Blake  <ebb9@byu.net>
51255
51256         Ensure sane .version contents.
51257         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
51258         version string.
51259         * build-aux/git-version-gen: Improve documentation.
51260
51261         Make GNU make output nicer.
51262         * top/GNUmakefile [!_have-Makefile]: Add dependency on
51263         MAKECMDGOALS to enforce message for all command line targets.  Set
51264         srcdir for use in maint.mk.
51265
51266         Another maintainer tweak.
51267         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
51268         a target that regenerates version.
51269
51270 2008-04-03  Jim Meyering  <meyering@redhat.com>
51271
51272         vc-list-files: don't cause coreutils "make po-check" failure
51273         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
51274
51275 2008-04-03  Eric Blake  <ebb9@byu.net>
51276
51277         Allow VPATH usage of vc-list-files.
51278         * build-aux/vc-list-files (scriptversion): Add timestamp.
51279         (options): Add --help, --version, -C.
51280         (CVS): Support installed cvsu.
51281
51282 2008-04-02  Bruno Haible  <bruno@clisp.org>
51283
51284         Avoid some "statement with no effect" warnings from gcc.
51285         * tests/test-wctype.c (main): Explicitly ignore unused values.
51286         Reported by Jim Meyering.
51287
51288 2008-04-02  Jim Meyering  <meyering@redhat.com>
51289
51290         Avoid some warnings from "gcc -Wshadow".
51291         * tests/test-frexp.c (exp): Define to a different identifier.
51292         * tests/test-frexpl.c (exp): Likewise.
51293
51294 2008-04-03  Jim Meyering  <meyering@redhat.com>
51295
51296         bootstrap: remove dangling *.[ch] symlinks from lib
51297         * build-aux/bootstrap [dangling symlink removal]: Move find's
51298         -depth option to precede all others, to avoid a warning.
51299         Remove *.[ch] files too, and from "$source_base" (usually lib/).
51300
51301 2008-04-02  Bruno Haible  <bruno@clisp.org>
51302
51303         Avoid some warnings from "gcc -Wshadow".
51304         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
51305         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
51306         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
51307         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
51308         Reported by Jim Meyering.
51309
51310 2008-04-01  Bruno Haible  <bruno@clisp.org>
51311
51312         Fix test to work on IRIX 6.5 with cc.
51313         * tests/test-math.c (numeric_equal): New function.
51314         (main): Use it.
51315
51316 2008-04-01  Bruno Haible  <bruno@clisp.org>
51317
51318         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
51319
51320 2008-04-01  Bruno Haible  <bruno@clisp.org>
51321
51322         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
51323         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51324         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
51325         (Depends-on): Remove math.
51326
51327         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
51328         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51329         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
51330         (Depends-on): Remove math.
51331
51332         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
51333         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51334         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
51335         (Depends-on): Remove math.
51336         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
51337         (Depends-on): Remove math.
51338
51339         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
51340         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51341         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
51342         (Depends-on): Remove math.
51343         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
51344         (Depends-on): Remove math.
51345
51346         * tests/test-round1.c: Include nan.h.
51347         (main): Use NaNd instead of NAN.
51348         * modules/round-tests (Files): Add tests/nan.h.
51349
51350         * tests/test-trunc1.c: Include nan.h.
51351         (main): Use NaNd instead of NAN.
51352         * modules/trunc-tests (Files): Add tests/nan.h.
51353
51354         * tests/test-roundf1.c: Include nan.h.
51355         (main): Use NaNf instead of NAN.
51356         * modules/roundf-tests (Files): Add tests/nan.h.
51357
51358         * tests/test-truncf1.c: Include nan.h.
51359         (main): Use NaNf instead of NAN.
51360         * modules/truncf-tests (Files): Add tests/nan.h.
51361
51362         * tests/test-ceilf1.c: Include nan.h.
51363         (main): Use NaNf instead of NAN.
51364         * modules/ceilf-tests (Files): Add tests/nan.h.
51365
51366         * tests/test-floorf1.c: Include nan.h.
51367         (main): Use NaNf instead of NAN.
51368         * modules/floorf-tests (Files): Add tests/nan.h.
51369
51370         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
51371         (main): Use NaNf instead of NAN.
51372         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
51373
51374         * tests/test-isnand.c: Include nan.h instead of <math.h>.
51375         (main): Use NaNd instead of NAN.
51376         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
51377
51378         * tests/test-frexp.c: Include nan.h.
51379         (main): Use NaNd instead of NAN.
51380         * modules/frexp-tests (Files): Add tests/nan.h.
51381
51382         * lib/isnan.c: Don't include <math.h>.
51383         (FUNC): Don't use NAN macro.
51384         * modules/isnand-nolibm (Depends-on): Remove math.
51385         * modules/isnanf-nolibm (Depends-on): Remove math.
51386         * modules/isnanl (Depends-on): Remove math.
51387         * modules/isnanl-nolibm (Depends-on): Remove math.
51388
51389         * tests/nan.h: New file.
51390
51391 2008-04-01  Eric Blake  <ebb9@byu.net>
51392
51393         Fix typos.
51394         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
51395         values to be the right type.
51396
51397         For now, cater to gnulib strtod inaccuracies.
51398         * tests/test-strtod.c (main): Allow 1-ulp error on expected
51399         fractional results.  While not as nice from a QoI perspective, it
51400         is a quicker patch than correctly implementing decimal to binary
51401         rounding.
51402
51403 2008-03-31  Eric Blake  <ebb9@byu.net>
51404
51405         Guarantee a definition of NAN.
51406         * lib/math.in.h (NAN): Define if missing.
51407         * tests/test-math.c (main): Test it.
51408         * doc/posix-headers/math.texi (math.h): Document this.
51409         * lib/isnan.c (rpl_isnand): Use it.
51410         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
51411         * tests/test-floorf1.c (NaN): Likewise.
51412         * tests/test-frexp.c (NaN): Likewise.
51413         * tests/test-isnand.c (NaN): Likewise.
51414         * tests/test-isnanf.c (NaN): Likewise.
51415         * tests/test-round1.c (NaN): Likewise.
51416         * tests/test-roundf1.c (NaN): Likewise.
51417         * tests/test-snprintf-posix.h (NaN): Likewise.
51418         * tests/test-sprintf-posix.h (NaN): Likewise.
51419         * tests/test-trunc1.c (NaN): Likewise.
51420         * tests/test-truncf1.c (NaN): Likewise.
51421         * tests/test-vasnprintf-posix.c (NaN): Likewise.
51422         * tests/test-vasprintf-posix.c (NaN): Likewise.
51423         * modules/isnand-nolibm (Depends-on): Add math.
51424         * modules/isnanf-nolibm (Depends-on): Likewise.
51425         * modules/isnanl (Depends-on): Likewise.
51426         * modules/isnanl-nolibm (Depends-on): Likewise.
51427         * modules/snprintf-posix-tests (Depends-on): Likewise.
51428         * modules/sprintf-posix-tests (Depends-on): Likewise.
51429         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
51430         * modules/vsprintf-posix-tests (Depends-on): Likewise.
51431         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
51432         * modules/vasprintf-posix-tests (Depends-on): Likewise.
51433
51434 2008-03-31  Bruno Haible  <bruno@clisp.org>
51435
51436         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
51437         * doc/posix-functions/strtod.texi: Likewise.
51438
51439 2008-03-31  Bruno Haible  <bruno@clisp.org>
51440
51441         * tests/test-strtod.c (main): Don't use C99 syntax.
51442
51443 2008-03-31  Bruno Haible  <bruno@clisp.org>
51444
51445         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
51446         Reported by Eric Blake.
51447
51448 2008-03-31  Jim Meyering  <meyering@redhat.com>
51449
51450         Don't compare actual signbit return values.
51451         * tests/test-strtod.c (main): Rather, compare only their
51452         zero/non-zero nature.
51453
51454 2008-03-31  Eric Blake  <ebb9@byu.net>
51455
51456         More strtod documentation.
51457         * doc/posix-functions/strtod.texi (strtod): Interpret more test
51458         failures as distinct bugs.
51459
51460 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
51461
51462         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
51463         Problem reported by Erik Benada in
51464         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
51465
51466 2008-03-30  Bruno Haible  <bruno@clisp.org>
51467
51468         * tests/test-strtod.c: Add comments about which assertion fails on which
51469         platform.
51470         * doc/posix-functions/strtod.texi: Add info about many more platforms.
51471
51472 2008-03-30  Eric Blake  <ebb9@byu.net>
51473
51474         Test signbit behavior on zeros.
51475         * tests/test-signbit.c (test_signbitf): Add tests for zero.
51476         (test_signbitd, test_signbitl): Likewise.
51477
51478         More strtod touchups.
51479         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
51480         sign of negative underflow, for now.  Use .5, not .1.
51481         * doc/posix-functions/strtod.texi (strtod): Mention these
51482         limitations.
51483         Reported by Jim Meyering.
51484
51485 2008-03-30  Bruno Haible  <bruno@clisp.org>
51486
51487         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
51488         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
51489
51490 2008-03-30  Bruno Haible  <bruno@clisp.org>
51491
51492         Avoid failure when attempting to return empty iconv results on some
51493         platforms.
51494         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
51495         allocation, don't report ENOMEM when the resulting string is empty.
51496
51497 2008-03-30  Bruno Haible  <bruno@clisp.org>
51498
51499         Fix buffer overrun.
51500         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
51501         Don't consider the width for tmp_length. Check count against tmp_length
51502         before doing the padding. Ensure enough allocation during padding.
51503
51504 2008-03-30  Eric Blake  <ebb9@byu.net>
51505
51506         strtod touchups.
51507         * lib/strtod.c (strtod): Avoid compiler warnings.
51508         Reported by Jim Meyering.
51509
51510 2008-03-30  Bruno Haible  <bruno@clisp.org>
51511
51512         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
51513         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
51514         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
51515         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
51516         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
51517         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
51518         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
51519         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
51520
51521         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
51522         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
51523         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
51524         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
51525         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
51526         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
51527         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
51528         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
51529
51530         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
51531         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
51532         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
51533         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
51534         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
51535         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
51536         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
51537         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
51538
51539         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
51540         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
51541
51542         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
51543         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
51544
51545         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
51546         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
51547
51548         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
51549         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
51550         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
51551
51552         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
51553         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
51554         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
51555
51556         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
51557         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
51558         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
51559
51560         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
51561         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
51562         * modules/vasprintf (Depends-on): Add EOVERFLOW.
51563
51564         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
51565         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
51566         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
51567         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
51568         (Depends-on): Add EOVERFLOW.
51569         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
51570         (Depends-on): Add EOVERFLOW.
51571         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51572         (Depends-on): Add EOVERFLOW.
51573         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51574         (Depends-on): Add EOVERFLOW.
51575         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51576         (Depends-on): Add EOVERFLOW.
51577         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51578         (Depends-on): Add EOVERFLOW.
51579         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51580         (Depends-on): Add EOVERFLOW.
51581         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51582         (Depends-on): Add EOVERFLOW.
51583
51584         * lib/sprintf.c (EOVERFLOW): Remove fallback.
51585         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
51586         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
51587
51588         * lib/snprintf.c (EOVERFLOW): Remove fallback.
51589         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
51590         * modules/snprintf (Depends-on): Add EOVERFLOW.
51591
51592         * lib/poll.c (EOVERFLOW): Remove fallback.
51593         * modules/poll (Depends-on): Add EOVERFLOW.
51594
51595         * lib/getugroups.c (EOVERFLOW): Remove fallback.
51596         * modules/getugroups (Depends-on): Add EOVERFLOW.
51597
51598         * lib/getdelim.c (EOVERFLOW): Remove fallback.
51599         * modules/getdelim (Depends-on): Add EOVERFLOW.
51600
51601         * lib/ftell.c (EOVERFLOW): Remove fallback.
51602         * modules/ftell (Depends-on): Add EOVERFLOW.
51603
51604         * lib/fprintf.c (EOVERFLOW): Remove fallback.
51605         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
51606         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
51607
51608         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
51609
51610         * modules/EOVERFLOW-tests: New file.
51611         * tests/test-EOVERFLOW.c: New file.
51612
51613         * modules/EOVERFLOW: New file.
51614         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
51615
51616 2008-03-30  Bruno Haible  <bruno@clisp.org>
51617
51618         Fix bug introduced on 2007-06-10.
51619         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
51620         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
51621
51622 2008-03-30  Bruno Haible  <bruno@clisp.org>
51623
51624         Improve freadseek's efficiency after ungetc.
51625         * lib/freadseek.c: Include freadahead.h.
51626         (freadptrinc): New function, extracted from freadseek.
51627         (freadseek): Use it in a loop. Use freadahead to determine the number
51628         of loop iterations.
51629         * modules/freadseek (Depends-on): Add freadahead.
51630         (configure.ac): Require AC_C_INLINE.
51631
51632 2008-03-30  Bruno Haible  <bruno@clisp.org>
51633
51634         * lib/freadseek.c (freadseek): Don't ignore the return value of
51635         freadptr.
51636
51637 2008-03-29  Eric Blake  <ebb9@byu.net>
51638
51639         Add hex float support.
51640         * modules/strtod (Depends-on): Add c-ctype.
51641         (Link): Mention POW_LIB.
51642         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
51643         whitespace between 'e' and exponent.
51644         * tests/test-strtod.c (main): Enable hex float tests.
51645         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
51646         now provides.
51647
51648         Document various strtod bugs, with some fixes.
51649         * doc/posix-functions/strtod.texi (strtod): Document bugs with
51650         "-0x", "inf", "nan", and hex constants.
51651         * doc/posix-functions/atof.texi (atof): Likewise.
51652         * modules/stdlib (Makefile.am): Support strtod.
51653         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
51654         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
51655         detect additional strtod bugs.
51656         * lib/stdlib.in.h (rpl_strtod): Add declarations.
51657         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
51658         bool where appropriate.  Parse 'inf' and 'nan'.
51659         * tests/test-strtod.c: New file.
51660         * modules/strtod (Depends-on): Add stdbool, stdlib.
51661         (configure.ac): Turn on module indicator.
51662         * modules/strtod-tests: New module.
51663
51664 2008-03-29  Eric Blake  <ebb9@byu.net>
51665
51666         Fix ftell on mingw.
51667         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
51668         * modules/ftell-tests (Depends-on): Add binary-io.
51669         * modules/ftello-tests (Depends-on): Likewise.
51670         * tests/test-ftell.c (main): Enhance test to cover behavior after
51671         ungetc.  Enforce binary mode.
51672         * tests/test-ftello.c (main): Likewise.
51673
51674         Pass test-freadseek on cygwin.
51675         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
51676         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
51677         ungetc buffer.
51678
51679         * tests/test-fflush2.c (main): Fix typo.
51680
51681 2008-03-29  Bruno Haible  <bruno@clisp.org>
51682
51683         * tests/test-fflush2.c (main): Temporarily disable the contents of
51684         this test.
51685         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
51686         Reported by Eric Blake.
51687
51688 2008-03-28  Simon Josefsson  <simon@josefsson.org>
51689
51690         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
51691         (GC_SHA224_DIGEST_SIZE): Add.
51692
51693         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
51694         (gc_hash_digest_length): Likewise.
51695         (gc_hash_buffer): Likewise.
51696
51697 2008-03-25  Bruno Haible  <bruno@clisp.org>
51698
51699         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
51700         detail which gettext release to use.
51701         Reported by Simon Josefsson.
51702
51703 2008-03-26  Jim Meyering  <meyering@redhat.com>
51704
51705         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
51706         * modules/gnumakefile (clean-GNUmakefile): Also, use
51707         test ... && ... || : syntax rather than if-then ... fi.
51708
51709         gnumakefile: Don't double-quote-expand $(VPATH) value.
51710         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
51711
51712 2008-03-24  Eric Blake  <ebb9@byu.net>
51713
51714         Alter GNUmakefile to install into top directory.
51715         * modules/maintainer-makefile: Split, and add dependency...
51716         * modules/gnumakefile: to this new module.
51717         * build-aux/GNUmakefile: Move...
51718         * top/GNUmakefile: ...here.
51719         * build-aux/maint.mk: Move...
51720         * top/maint.mk: ...here.
51721         * MODULES.html.sh (Support for maintaining...): Document new
51722         module.
51723
51724 2008-03-23  Bruno Haible  <bruno@clisp.org>
51725
51726         * gnulib-tool: New options --vc-files, --no-vc-files.
51727         (func_usage): Document them.
51728         (vc_files): New variable.
51729         (func_import): Consider vc_files.
51730         (func_create_testdir): Set vc_files to empty.
51731         Suggested by Jim Meyering and Karl Berry.
51732
51733 2008-03-23  Bruno Haible  <bruno@clisp.org>
51734
51735         Fix regex compilation error on HP-UX 11.
51736         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
51737         * modules/regex (Files): Add m4/mbstate_t.m4.
51738         Reported by Ton Voon <ton.voon@altinity.com>.
51739
51740 2008-03-23  Bruno Haible  <bruno@clisp.org>
51741
51742         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
51743
51744 2008-03-23  Eric Blake  <ebb9@byu.net>
51745             Bruno Haible  <bruno@clisp.org>
51746
51747         Install files from top/ in the destination directory.
51748         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
51749         augmentation also for the files from top/.
51750         (func_import, func_create_testdir): Rewrite file names:
51751         top/filename -> filename.
51752
51753 2008-03-23  Bruno Haible  <bruno@clisp.org>
51754
51755         Tweak "gnulib --version" output.
51756         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
51757
51758 2008-03-23  Bruno Haible  <bruno@clisp.org>
51759
51760         Tweak "gnulib --version" output.
51761         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
51762         rather than contents of ChangeLog, when possible.
51763
51764 2008-03-21  Eric Blake  <ebb9@byu.net>
51765
51766         More --version tweaks.
51767         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
51768         date of last ChangeLog entry.
51769
51770 2008-03-21  Jim Meyering  <meyering@redhat.com>
51771
51772         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
51773
51774 2008-03-20  Eric Blake  <ebb9@byu.net>
51775
51776         VPATH fix.
51777         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
51778
51779 2008-03-20  Simon Josefsson  <simon@josefsson.org>
51780
51781         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
51782         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
51783
51784 2008-03-20  Eric Blake  <ebb9@byu.net>
51785
51786         Sync GNUmakefile with coreutils.
51787         * build-aux/GNUmakefile (have-Makefile): Rename...
51788         (_have-Makefile): ...to this, for namespace consideration.
51789         (GNUmakefile.cfg): Include, if present.
51790         (_autoreconf): Define a default.
51791         (_is-dist-target): New rule for rebuilds to pick up intra-release
51792         version.
51793         (maint-cfg.mk): Rename...
51794         (cfg.mk): ...to this.
51795
51796 2008-03-18  Jim Meyering  <meyering@redhat.com>
51797
51798         New script and module: mktempd
51799         * MODULES.html.sh (maint+release support): Add mktempd.
51800         * build-aux/mktempd: New file.
51801         * modules/mktempd: New file.
51802
51803 2008-03-15  Jim Meyering  <meyering@redhat.com>
51804
51805         Undo last change.
51806         * lib/sha1.c, lib/md5.c: 63 != ~63.
51807         Reported by Andreas Schwab.
51808
51809         sha1.c, md5.c: Hoist a redundant expression.
51810         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
51811         "ctx->buflen" only once, before calling *_process_block.
51812         * lib/md5.c (md5_process_bytes): Likewise.
51813
51814 2008-03-14  Eric Blake  <ebb9@byu.net>
51815
51816         Bump copyright year in files generated by gnulib-tool.
51817         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
51818         gnulib-tool, rather than hard-coding it.
51819
51820         Fix 'gnulib-tool --version' output to work with git.
51821         * gnulib-tool (func_gnulib_dir): New function, extracted from...
51822         (startup): ...here.
51823         (func_version): Use it to invoke git-version-gen, rather than
51824         relying on CVS keyword expansion.  Modernize wording.
51825         (cvsdatestamp, last_checkin_date, version): Kill unused
51826         variables.
51827
51828 2008-03-12  Jim Meyering  <meyering@redhat.com>
51829
51830         Recognize optional cast of the argument to free.
51831         * build-aux/useless-if-before-free: Update regexps.
51832
51833         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
51834
51835 2008-03-11  Bruno Haible  <bruno@clisp.org>
51836
51837         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
51838         by a single package.
51839         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
51840         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
51841         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
51842         Reported by Sam Steingold <sds@gnu.org>.
51843
51844 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51845
51846         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
51847         repositories.
51848
51849 2008-03-11  Bruno Haible  <bruno@clisp.org>
51850
51851         Avoid conflicts between local macro definitions.
51852         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
51853         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
51854
51855 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
51856             Bruno Haible  <bruno@clisp.org>
51857
51858         Make va_copy work with some version of xlc on AIX 5.1.
51859         * lib/stdarg.in.h: New file.
51860         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
51861         On AIX, use a <stdarg.h> file substitute.
51862         * modules/stdarg (Files): Add lib/stdarg.in.h.
51863         (Depends-on): Add include_next.
51864         (Makefile.am): Build a stdarg.h substitute if requested.
51865         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
51866
51867 2008-03-10  Bruno Haible  <bruno@clisp.org>
51868
51869         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
51870         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51871         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51872
51873 2008-03-10  Bruno Haible  <bruno@clisp.org>
51874
51875         * modules/stdlib (Depends-on): Add include_next, remove
51876         absolute-header.
51877
51878 2008-03-09  Bruno Haible  <bruno@clisp.org>
51879
51880         * lib/freadahead.h (freadahead): Document more precisely.
51881         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
51882         the sum of both buffer sizes.
51883         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
51884         * NEWS: Document the change.
51885
51886 2008-03-09  Bruno Haible  <bruno@clisp.org>
51887
51888         Extend freadptr to return also the buffer size.
51889         * lib/freadptr.h (freadptr): Add sizep argument.
51890         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
51891         (freadptr): Add sizep argument. Determine buffer size like freadahead
51892         does.
51893         * tests/test-freadptr.c: Don't include freadahead.h.
51894         (main): Adapt for new calling convention of freadptr.
51895         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
51896         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
51897         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
51898         tests/test-freadptr2.sh.
51899         (Depends): Remove freadahead.
51900         (TESTS): Add test-freadptr2.sh.
51901         (check_PROGRAMS): Add test-freadptr2.
51902
51903 2008-03-09  Bruno Haible  <bruno@clisp.org>
51904
51905         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
51906         Report and solution by Simon Josefsson.
51907
51908 2008-03-06  Bruno Haible  <bruno@clisp.org>
51909
51910         Make fflush after ungetc work on BSD platforms.
51911         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
51912         * tests/test-fflush2.c: New file.
51913         * tests/test-fflush2.sh: New file.
51914         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
51915         tests/test-fflush2.c.
51916         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
51917         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
51918
51919 2008-03-06  Eric Blake  <ebb9@byu.net>
51920
51921         Likewise for ftello.
51922         * modules/ftello (Dependencies): Add extensions.
51923         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
51924
51925 2008-03-06  Bruno Haible  <bruno@clisp.org>
51926
51927         * modules/fseeko (Dependencies): Add extensions.
51928         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
51929         Needed on glibc systems.
51930
51931 2008-03-06  Bruno Haible  <bruno@clisp.org>
51932
51933         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
51934         email address.
51935         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51936
51937 2008-03-06  Bruno Haible  <bruno@clisp.org>
51938
51939         * users.txt: Add libgnupdf.
51940
51941 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
51942
51943         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
51944         (Header File Substitutes, Function Substitutes,
51945         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
51946         (Build robot for gnulib): Fix typo.
51947
51948 2008-03-06  Bruno Haible  <bruno@clisp.org>
51949
51950         * doc/gnulib-tool.texi (VCS Issues): Small updates.
51951         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51952
51953 2008-03-06  Bruno Haible  <bruno@clisp.org>
51954
51955         * doc/func.texi: New file, extracted from doc/gnulib.texi.
51956         * doc/gnulib.texi: Include it.
51957
51958 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51959
51960         * modules/func (License): Change license to unlimited; there was
51961         no LGPL parts in the module anyway.
51962
51963 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51964
51965         * modules/__func__: Renamed to modules/func.
51966         * modules/__func__-tests: Renamed to modules/func-tests.
51967         * tests/test-__func__.c: Renamed to tests/test-func.c.
51968         * m4/__func__.m4: Renamed to m4/func.m4.
51969         * doc/gnulib.texi (__func__): Section renamed to func.
51970         Suggested by Eric Blake <ebb9@byu.net>.
51971
51972 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51973
51974         * doc/gnulib.texi (__func__): Use C99 terminology when talking
51975         about __func__.  Make example self-contained.  Suggested by Eric
51976         Blake <ebb9@byu.net>.
51977
51978         * tests/test-__func__.c (main): Avoid extraneous () around __func.
51979         Suggested by Eric Blake <ebb9@byu.net>.
51980
51981 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51982
51983         * modules/__func__: New file.
51984         * modules/__func__-tests: New file.
51985         * tests/test-__func__.c: New file.
51986         * m4/__func__.m4: New file.
51987         * doc/gnulib.texi (__func__): Document __func__ module.
51988
51989 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51990
51991         * modules/byteswap (License): Re-license as LGPLv2+.
51992
51993 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51994
51995         * doc/Makefile: Add pdf target.
51996
51997 2008-03-05  Simon Josefsson  <simon@josefsson.org>
51998
51999         * modules/inline (License): Use 'unlimited', since there are only
52000         *.m4 files in this module.
52001
52002 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
52003             Bruno Haible  <bruno@clisp.org>
52004
52005         Add support for HP C 7.1 on OpenVMS 8.3.
52006         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
52007
52008 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
52009
52010         Update VMS specifics.
52011         * lib/getopt.c [VMS]: Remove include of unixlib.h.
52012
52013 2008-03-02  Jim Meyering  <meyering@redhat.com>
52014
52015         Remove the last dependency on the "free" module.
52016         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
52017         Reported by Bob Proulx.
52018
52019         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
52020
52021         Remove useless "if" tests before free.  Deprecate "free" module.
52022         * doc/posix-functions/free.texi: Mention that this
52023         module is no longer useful.
52024         * modules/free (Notice): Say this module is obsolete.
52025         * modules/readutmp (Depends-on): Remove free.
52026         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
52027         * lib/putenv.c (putenv): Likewise.
52028         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
52029         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
52030         * tests/test-c-strcasestr.c (main): Likewise.
52031         * tests/test-c-strstr.c (main): Likewise.
52032         * tests/test-mbscasestr1.c (main): Likewise.
52033         * tests/test-mbscasestr2.c (main): Likewise.
52034         * tests/test-mbsstr1.c (main): Likewise.
52035         * tests/test-mbsstr2.c (main): Likewise.
52036         * tests/test-memmem.c (main): Likewise.
52037         * tests/test-strcasestr.c (main): Likewise.
52038         * tests/test-striconv.c (main): Likewise.
52039         * tests/test-striconveh.c (main): Likewise.
52040         * tests/test-striconveha.c (main): Likewise.
52041         * tests/test-strstr.c (main): Likewise.
52042
52043         * build-aux/git-version-gen: Adjust a comment and the Usage string.
52044
52045         bootstrap: sync from coreutils again
52046         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
52047
52048 2008-03-01  Jim Meyering  <meyering@redhat.com>
52049
52050         bootstrap: sync from coreutils
52051         * build-aux/bootstrap (update_po_files): Copy a .po file into place
52052         also when the target doesn't exist.
52053
52054 2008-03-01  Eric Blake  <ebb9@byu.net>
52055
52056         Fix bugs in last patch.
52057         * lib/memchr2.c (memchr2): Fix typo.
52058         * tests/test-memchr2.c: Test previous bug, and don't use GNU
52059         extension.
52060         Reported by Bruce Korb.
52061
52062         New module 'memchr2'.
52063         * modules/memchr2: New file.
52064         * modules/memchr2-tests: Likewise.
52065         * lib/memchr2.h: Likewise.
52066         * lib/memchr2.c: Likewise, based on memchr.c.
52067         * tests/test-memchr2.c: New test.
52068         * MODULES.html.sh (String handling): Add memchr2.
52069
52070 2008-02-29  Bruno Haible  <bruno@clisp.org>
52071
52072         * modules/freadseek-tests: New file.
52073         * tests/test-freadseek.sh: New file.
52074         * tests/test-freadseek.c: New file.
52075
52076         New module 'freadseek'.
52077         * modules/freadseek: New file.
52078         * lib/freadseek.h: New file.
52079         * lib/freadseek.c: New file.
52080         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
52081
52082 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
52083
52084         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
52085         wydawca.
52086
52087         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
52088         program_invocation_name and program_invocation_short_name are
52089         present.
52090
52091 2008-02-28  Bruno Haible  <bruno@clisp.org>
52092
52093         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
52094         * tests/test-freadptr.sh: Also test non-seekable stdin.
52095
52096 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
52097
52098         * build-aux/bootstrap (source_base, m4_base)
52099         (doc_base, tests_base): New variables.
52100         (gnulib_tool_options): Do not hardcode base directories, use
52101         the above variables instead.
52102
52103 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
52104
52105         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
52106
52107 2008-02-28  Bruno Haible  <bruno@clisp.org>
52108
52109         * modules/freadptr-tests: New file.
52110         * tests/test-freadptr.sh: New file.
52111         * tests/test-freadptr.c: New file.
52112
52113         New module 'freadptr'.
52114         * modules/freadptr: New file.
52115         * lib/freadptr.h: New file.
52116         * lib/freadptr.c: New file.
52117         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
52118
52119 2008-02-26  Karl Berry  <karl@freefriends.org>
52120
52121         Sync from Libtool:
52122         * libltdl/argz.c (argz_add, argz_count): New functions.
52123         * libltdl/argz.in.h: Declare them.
52124         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
52125
52126 2008-02-22  Bruno Haible  <bruno@clisp.org>
52127
52128         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
52129         is a pointer type.  Needed for HP-UX 10.
52130         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
52131         * doc/posix-functions/gmtime_r.texi: Likewise.
52132         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
52133
52134 2008-02-24  Bruno Haible  <bruno@clisp.org>
52135
52136         * modules/environ-tests: New file.
52137         * tests/test-environ.c: New file.
52138
52139         New module 'environ'.
52140         * modules/environ: New file.
52141         * lib/unistd.in.h (environ): New declaration.
52142         * m4/environ.m4: New file.
52143         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
52144         after use.
52145         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
52146         HAVE_DECL_ENVIRON.
52147         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
52148         HAVE_DECL_ENVIRON.
52149         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
52150         wrong claim that 'environ' is missing on some systems.
52151         * modules/execute (Depends-on): Add environ.
52152         * lib/execute.c (environ): Remove fallback declaration.
52153         * modules/pipe (Depends-on): Add environ.
52154         * lib/pipe.c (environ): Remove fallback declaration.
52155         * modules/setenv (Depends-on): Add environ.
52156         * lib/setenv.c (environ): Remove fallback declaration.
52157         * modules/unsetenv (Depends-on): Add environ.
52158         * lib/unsetenv.c (environ): Remove fallback declaration.
52159         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
52160         m4/environ.m4.
52161         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
52162         (gl_PREREQ_UNSETENV): Likewise.
52163
52164 2008-02-24  Bruno Haible  <bruno@clisp.org>
52165
52166         * doc/posix-functions/environ.texi: Document the MacOS X problem.
52167
52168 2008-02-20  Bob Proulx  <bob@proulx.com>
52169
52170         Enable use of older two part flavor 'git describe'.
52171         * build-aux/git-version-gen: If using the older two part flavor of
52172         git version then recreate the third part now present in the
52173         newer three part flavor of git describe.
52174
52175 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
52176
52177         * lib/fts.c (fts_build): Typo correction to comment.
52178
52179 2008-02-17  Bruno Haible  <bruno@clisp.org>
52180
52181         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
52182         generating no-op conflicts.
52183
52184 2008-02-17  Bruno Haible  <bruno@clisp.org>
52185
52186         Speed up by 10%.
52187         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
52188         result_entries, rather than an index-based loop.
52189
52190 2008-02-17  Bruno Haible  <bruno@clisp.org>
52191
52192         Speed up by 25%.
52193         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
52194         'hashcode_cached'.
52195         (entry_create): New function.
52196         (entry_hashcode): Use the cached hashcode if possible.
52197         (read_changelog_file, try_split_merged_entry): Use entry_create.
52198
52199 2008-02-17  Bruno Haible  <bruno@clisp.org>
52200
52201         Speed up from O(n^2) to O(n) for long ChangeLog files.
52202         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
52203         (read_changelog_file): Change implementation of entries_reversed list
52204         to rbtreehash.
52205         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
52206
52207 2008-02-17  Bruno Haible  <bruno@clisp.org>
52208
52209         New option --split-merged-entry.
52210         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
52211         (find_paragraph_end, try_split_merged_entry): New functions.
52212         (long_options): Add option --split-merged-entry.
52213         (usage): Document option --split-merged-entry.
52214         (main): Implement option --split-merged-entry.
52215         Reported by Eric Blake.
52216
52217 2008-02-17  Bruno Haible  <bruno@clisp.org>
52218
52219         * lib/git-merge-changelog.c: Include c-strstr.h.
52220         (main): Support the "git pull --rebase" situation.
52221         * modules/git-merge-changelog (Depends-on): Add c-strstr.
52222         Reported by Eric Blake.
52223
52224 2008-02-16  Eric Blake  <ebb9@byu.net>
52225
52226         Avoid doubling \ in common case of "c-maybe" quoting style.
52227         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
52228         eliding outer quotes.
52229         * lib/quotearg.h: Document this.
52230         * tests/test-quotearg.c (result_strings, inputs, results_g)
52231         (flag_results, locale_results): Test it by adding a new string to
52232         each test group.
52233         (compare_strings): Test new string.
52234
52235 2008-02-13  Eric Blake  <ebb9@byu.net>
52236
52237         Avoid trigraph quoting in default output.
52238         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
52239         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
52240         unless explicitly requested.
52241         * tests/test-quotearg.c (flag_results, main): Add additional tests.
52242
52243 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
52244
52245         Don't rely on signed integer overflowing to negative value.
52246         * lib/getugroups.c (getugroups): Include <limits.h>.
52247         Instead, compare against INT_MAX, and increment only if the test passes.
52248
52249 2008-02-13  Jim Meyering  <meyering@redhat.com>
52250         and Eric Blake  <ebb9@byu.net>
52251
52252         Avoid shadowing warning and compile errors on Linux.
52253         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
52254         forwarding macros on Linux.
52255         (dcgettext): Define a stub, for Linux.
52256         (results_g, main): Avoid warnings.
52257
52258 2008-02-12  Eric Blake  <ebb9@byu.net>
52259
52260         Silence warning in last patch.
52261         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
52262
52263         Quotearg part 4: add tests, fix c-maybe colon quoting.
52264         * lib/quotearg.h: Improve documentation.
52265         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
52266         escapes when adding outer quotes.  When quoting trigraphs, use
52267         valid C notation.  When quoting NUL, omit extra characters if next
52268         character is not digit.  Alter prototype.
52269         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
52270         callers.
52271         * modules/quotearg-tests: New module.
52272         * tests/test-quotearg.c: New test.
52273
52274 2008-02-07  Eric Blake  <ebb9@byu.net>
52275
52276         Quotearg part 3: add flag to control outer quote elision.
52277         * lib/quotearg.h (c_maybe_quoting_style): New style.
52278         (enum quoting_flags): Better documentation of flags.
52279         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
52280         c-maybe style.
52281         (quotearg_buffer_restyled): Handle new flag to elide outer
52282         quotes.
52283
52284         Quotearg part 2: add flag that can control NUL elision.
52285         * lib/quotearg.h (set_quoting_flags): New prototype.
52286         * lib/quotearg.c (struct quoting_options): Add flag field.
52287         (set_quoting_flags): New function.
52288         (quotearg_buffer_restyled): Add flags parameter.
52289         (quotearg_alloc_mem): Set the flag if length cannot be returned.
52290         (quotearg_n_options): Set the flag, since length cannot be
52291         returned.
52292         (quoting_options_from_style): Default flags correctly.
52293
52294         Quotearg part 1: more wrappers, restore quotearg_char state.
52295         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
52296         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
52297         (quotearg_colon_mem): New wrappers.
52298         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
52299         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
52300         functions.
52301         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
52302         (quotearg_colon_mem): New functions.
52303
52304 2008-02-11  Bruno Haible  <bruno@clisp.org>
52305
52306         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
52307         library in the current directory: it does not work with parallel make.
52308         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52309
52310 2008-02-11  Bruno Haible  <bruno@clisp.org>
52311
52312         * .gitattributes: New file.
52313
52314 2008-02-11  Jim Meyering  <meyering@redhat.com>
52315
52316         useless-if-before-free: Fix reversed exit values.
52317         * build-aux/useless-if-before-free: Use correct values
52318         for EXIT_MATCH and EXIT_NO_MATCH.
52319
52320         * build-aux/useless-if-before-free: Close stdout carefully.
52321
52322 2008-02-10  Bruno Haible  <bruno@clisp.org>
52323
52324         New module 'git-merge-changelog'.
52325         * modules/git-merge-changelog: New file.
52326         * lib/git-merge-changelog.c: New file.
52327
52328 2008-02-10  Jim Meyering  <meyering@redhat.com>
52329
52330         useless-if-before-free: New option: --list (-l).
52331
52332         useless-if-before-free: Don't exit immediately upon open failure.
52333         * build-aux/useless-if-before-free: Exit 2 for errors.
52334         Upon failure to open a file, don't exit immediately.
52335         Rather, just warn and continue with any remaining files.
52336
52337 2008-02-10  Bruno Haible  <bruno@clisp.org>
52338
52339         New abstract list operation 'node_set_value'.
52340         * lib/gl_list.h (gl_list_node_set_value): New function.
52341         (struct gl_list_implementation): New field node_set_value.
52342         * lib/gl_list.c (gl_list_node_set_value): New function.
52343         * lib/gl_array_list.c (gl_array_node_set_value): New function.
52344         (gl_array_list_implementation): Update.
52345         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
52346         (gl_carray_list_implementation): Update.
52347         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
52348         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52349         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52350         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
52351         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52352         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52353         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52354         Update.
52355         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
52356         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
52357         (gl_sublist_list_implementation): Update.
52358
52359 2008-02-10  Bruno Haible  <bruno@clisp.org>
52360
52361         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
52362         Needed when ELEMENT is #defined to 'some_type *'.
52363
52364 2008-02-10  Jim Meyering  <meyering@redhat.com>
52365
52366         New script and module: useless-if-before-free
52367         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
52368         * build-aux/useless-if-before-free: New file.
52369         * modules/useless-if-before-free: New file.
52370
52371         * build-aux/gitlog-to-changelog: Use committer date, not author date.
52372
52373         xstrtol_error: Fix typo.
52374         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
52375         s/exit_failure/exit_status/.
52376
52377 2008-02-09  Jim Meyering  <meyering@redhat.com>
52378
52379         New script and module: gitlog-to-changelog
52380         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
52381         * modules/gitlog-to-changelog: New file.
52382         * build-aux/gitlog-to-changelog: New file.
52383
52384 2008-02-08  Jim Meyering  <meyering@redhat.com>
52385
52386         Avoid two "parameter unused" warnings.
52387         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
52388         Mark "st" as used.
52389
52390         Use "git COMMAND", not "git-COMMAND".
52391         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
52392         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
52393         * build-aux/git-version-gen: Use "git status", not "git-status".
52394
52395 2008-02-07  Bruno Haible  <bruno@clisp.org>
52396
52397         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
52398         Avoids a crash on Windows Vista.
52399         Reported by Adam Strzelecki <ono@java.pl> via
52400         Simon Josefsson <simon@josefsson.org>.
52401
52402 2008-02-06  Bruno Haible  <bruno@clisp.org>
52403
52404         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
52405         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
52406         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
52407         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
52408         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
52409         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52410         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
52411         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
52412         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52413         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52414         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52415         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52416         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52417         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52418         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52419         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
52420         left-adjust flag.
52421         * tests/test-snprintf-posix.h (test_function): Likewise.
52422         * tests/test-sprintf-posix.h (test_function): Likewise.
52423         * tests/test-vasprintf-posix.c (test_function): Likewise.
52424         * doc/posix-functions/fprintf.texi: Update.
52425         * doc/posix-functions/printf.texi: Update.
52426         * doc/posix-functions/snprintf.texi: Update.
52427         * doc/posix-functions/sprintf.texi: Update.
52428         * doc/posix-functions/vfprintf.texi: Update.
52429         * doc/posix-functions/vprintf.texi: Update.
52430         * doc/posix-functions/vsnprintf.texi: Update.
52431         * doc/posix-functions/vsprintf.texi: Update.
52432         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52433
52434 2008-02-06  Bruno Haible  <bruno@clisp.org>
52435
52436         Fix bug introduced on 2008-01-26.
52437         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
52438
52439 2008-02-06  Bruno Haible  <bruno@clisp.org>
52440
52441         Fix bug introduced on 2007-06-10.
52442         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
52443         !NEED_PRINTF_FLAG_ZERO.
52444
52445 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
52446
52447         getloadavg: use libperfstat on AIX5
52448         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
52449
52450 2008-02-03  Bruno Haible  <bruno@clisp.org>
52451
52452         * lib/diffseq.h: Add comments about required #includes.
52453         Reported by Michael Biggs <gnulib@doubleplum.net>.
52454
52455 2008-02-01  Bruno Haible  <bruno@clisp.org>
52456
52457         * users.txt: Add gnuit.
52458
52459 2008-01-31  Bruno Haible  <bruno@clisp.org>
52460
52461         * lib/md4.c (set_uint32): Mark as inline.
52462         * lib/md5.c (set_uint32): Likewise.
52463         * lib/sha1.c (set_uint32): Likewise.
52464         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
52465         * m4/md5.m4 (gl_MD5): Likewise.
52466         * m4/sha1.m4 (gl_SHA1): Likewise.
52467
52468 2008-01-31  Jim Meyering  <meyering@redhat.com>
52469
52470         Use "sizeof VAR", rather than a literal "4".
52471         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
52472         * lib/md4.c (md4_read_ctx): Likewise.
52473         * lib/sha1.c (sha1_read_ctx): Likewise.
52474
52475 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52476
52477         * tests/test-sha1.c: New file, based on test-md5.c.
52478
52479         * modules/crypto/sha1-tests: New file.
52480
52481 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52482
52483         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
52484
52485 2008-01-31  Jim Meyering  <meyering@redhat.com>
52486
52487         Prefer "sizeof v" over the equivalent "4".
52488         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
52489         * lib/md5.c (set_uint32): Likewise.
52490         * lib/sha1.c (set_uint32): Likewise.
52491
52492 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52493
52494         * lib/sha1.c (set_uint32): Mark function as static.
52495
52496 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52497
52498         md2: clarify comments to say that alignment is not required.
52499         * lib/md2.h: Remove warning about alignment in comment.
52500         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
52501         never been required.
52502
52503 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52504
52505         md4: adapt alignment constraint fix from sha1.
52506         * lib/md4.c (set_uint32): New function, from sha1.c
52507         (md4_read_ctx): Use it.
52508         (md4_finish_ctx): Doc fix.
52509         * lib/md4.h: Doc fix.
52510
52511 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52512
52513         md5: adapt alignment constraint fix from sha1.
52514         * lib/md5.c (set_uint32): New function, from sha1.c
52515         (md5_read_ctx): Use it.
52516         (md5_finish_ctx): Doc fix.
52517         * lib/md5.h: Doc fix.
52518
52519 2008-01-30  Peter Palfrader  <weasel@debian.org>
52520
52521         sha1: remove the result buffer alignment constraint
52522         * lib/sha1.c (set_uint32): New function.
52523         (sha1_read_ctx): Rewrite to remove the result buffer alignment
52524         constraint.
52525         (sha1_finish_ctx): Remove comment warning about alignment constraint.
52526         * lib/sha1.h: Likewise.
52527
52528 2008-01-30  Andreas Schwab  <schwab@suse.de>
52529             Bruno Haible  <bruno@clisp.org>
52530
52531         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
52532         correct definition of LDBL_MIN_EXP.
52533
52534 2008-01-30  Karl Berry  <karl@gnu.org>
52535
52536         * config/srclist-update: try to preserve x bit on updates.
52537         * config/srclistvars.sh: update for karl.
52538
52539 2008-01-29  Jim Meyering  <meyering@redhat.com>
52540
52541         vasnprintf.c: Avoid warning about unused label
52542         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
52543         "overflow" label definition and associated code with the
52544         same cpp condition that guards the sole use of that label.
52545
52546 2008-01-26  Bruno Haible  <bruno@clisp.org>
52547
52548         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
52549         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
52550         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
52551         * lib/isnanl-nolibm.h (isnanl): Likewise.
52552         Reported by Paul Eggert <eggert@cs.ucla.edu>.
52553
52554 2008-01-26  Bruno Haible  <bruno@clisp.org>
52555
52556         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
52557         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
52558
52559 2008-01-26  Bruno Haible  <bruno@clisp.org>
52560
52561         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
52562         GCC >= 4.0 built-in.
52563         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
52564
52565 2008-01-26  Bruno Haible  <bruno@clisp.org>
52566
52567         Rename isnan, applicable to 'double' only, to isnand.
52568         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
52569         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
52570         (configure.ac): Update.
52571         (Include): Replace "isnan.h" with "isnand.h".
52572         * m4/isnand.m4: Renamed from m4/isnan.m4.
52573         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
52574         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
52575         instead of isnan.c.
52576         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
52577         instead of HAVE_ISNAN_IN_LIBC.
52578         (isnand): Renamed from isnan.
52579         * lib/isnand.c: New file.
52580         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
52581         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
52582         (Makefile.am): Update.
52583         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
52584         Include isnand.h instead of isnan.h.
52585         (main): Test isnand instead of isnan.
52586         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
52587         isnan-nolibm.
52588         * modules/frexp (Depends-on): Likewise.
52589         * modules/frexp-tests (Depends-on): Likewise.
52590         * modules/frexp-nolibm (Depends-on): Likewise.
52591         * modules/frexp-nolibm-tests (Depends-on): Likewise.
52592         * modules/isfinite (Depends-on): Likewise.
52593         * modules/round-tests (Depends-on): Likewise.
52594         * modules/signbit (Depends-on): Likewise.
52595         * modules/signbit-tests (Depends-on): Likewise.
52596         * modules/snprintf-posix (Depends-on): Likewise.
52597         * modules/sprintf-posix (Depends-on): Likewise.
52598         * modules/trunc-tests (Depends-on): Likewise.
52599         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52600         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52601         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52602         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52603         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52604         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52605         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52606         * modules/vasnprintf-posix (Depends-on): Likewise.
52607         * modules/vasprintf-posix (Depends-on): Likewise.
52608         * modules/vfprintf-posix (Depends-on): Likewise.
52609         * modules/vsnprintf-posix (Depends-on): Likewise.
52610         * modules/vsprintf-posix (Depends-on): Likewise.
52611         * lib/frexp.c: Include isnand.h instead of isnan.h.
52612         (ISNAN): Set to isnand instead of isnan.
52613         * lib/isfinite.c: Include isnand.h instead of isnan.h.
52614         (gl_isfinited): Use isnand instead of isnan.
52615         * lib/signbitd.c: Include isnand.h instead of isnan.h.
52616         (gl_signbitd): Use isnand instead of isnan.
52617         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
52618         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
52619         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
52620         (main): Use isnand instead of isnan.
52621         * tests/test-round1.c: Include isnand.h.
52622         (main): Use isnand instead of isnan.
52623         * tests/test-round2.c: Include isnand.h instead of isnan.h.
52624         (ISNAN): Set to isnand instead of isnan.
52625         * tests/test-trunc1.c: Include isnand.h.
52626         (main): Use isnand instead of isnan.
52627         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
52628         (equal): Use isnand instead of isnan.
52629         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
52630         isnand-nolibm.
52631         * NEWS: Mention the change.
52632
52633 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
52634             Bruno Haible  <bruno@clisp.org>
52635
52636         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
52637         the GCC builtins for signbits are present and set
52638         REPLACE_SIGNBIT_USING_GCC if so.
52639         * lib/math.in.h (signbit): Define using GCC builtins if
52640         REPLACE_SIGNBIT_USING_GCC is set.
52641         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
52642         REPLACE_SIGNBIT_USING_GCC.
52643         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
52644
52645 2008-01-25  Jim Meyering  <meyering@redhat.com>
52646
52647         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
52648         * lib/poll.c: Include <config.h>, not "config.h".
52649         * tests/test-getaddrinfo.c: Likewise.
52650
52651 2008-01-25  Simon Josefsson  <simon@josefsson.org>
52652
52653         * modules/sockets-tests: New file.
52654
52655 2008-01-24  Simon Josefsson  <simon@josefsson.org>
52656
52657         * modules/sockets: New module, can be used to call WSA_Startup and
52658         WSA_Cleanup when needed.
52659
52660         * lib/sockets.h, lib/sockets.c: New files.
52661
52662         * m4/sockets.m4: New file.
52663
52664         * tests/test-sockets.c: New file.
52665
52666 2008-01-19  Bruno Haible  <bruno@clisp.org>
52667
52668         * doc/posix-headers: Renamed from doc/headers.
52669         * doc/posix-functions: Renamed from doc/functions.
52670         * doc/gnulib.texi: Update.
52671
52672 2008-01-19  Bruno Haible  <bruno@clisp.org>
52673
52674         * doc/glibc-functions/strcasestr.texi: Include contents of
52675         doc/functions/strcasestr.texi, fixing the list of platforms.
52676         * doc/functions/strcasestr.texi: Remove file.
52677
52678 2008-01-19  Bruno Haible  <bruno@clisp.org>
52679
52680         * doc/glibc-functions/memmem.texi: Include contents of
52681         doc/functions/memmem.texi.
52682         * doc/functions/memmem.texi: Remove file.
52683
52684 2008-01-18  Bruno Haible  <bruno@clisp.org>
52685
52686         * doc/glibc-functions/*.texi: New files.
52687         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
52688         to use the new files.
52689
52690 2008-01-17  Bruno Haible  <bruno@clisp.org>
52691
52692         * tests/test-gethostname.c (main): Fix printf statement.
52693
52694 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52695
52696         * modules/gethostname-tests: New file.
52697
52698         * tests/test-gethostname.c: New file.
52699
52700 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52701
52702         * lib/gethostname.c: Include string.h unconditionally, strncpy is
52703         used by the UNAME case.  Reported by Bruno Haible
52704         <bruno@clisp.org>.
52705
52706 2008-01-17  Eric Blake  <ebb9@byu.net>
52707
52708         Convert c-strcasestr to be more efficient.
52709         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
52710         (Depends-on): Add c-strcase, remove malloca, strnlen.
52711         * tests/test-c-strcasestr.c (main): Enhance test.
52712         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
52713
52714 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
52715
52716         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
52717         Use it in creating po/Makevars.
52718
52719 2008-01-15  Simon Josefsson  <simon@josefsson.org>
52720
52721         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
52722         Applications that requires it should initialize libgcrypt
52723         manually.
52724
52725 2008-01-16  Simon Josefsson  <simon@josefsson.org>
52726
52727         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
52728
52729 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
52730
52731         Fix problem with getdate on mingw32 reported by Simon Josefsson
52732         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
52733         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
52734         tzname", when deciding whether to declare tzname.
52735         * lib/strftime.c (tzname): Likewise.
52736
52737 2008-01-15  Bruno Haible  <bruno@clisp.org>
52738
52739         Work around a MacOS X 10.5 bug in frexpl().
52740         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
52741         * doc/functions/frexpl.texi: Document the bug.
52742         Reported by Elias Pipping <pipping@gentoo.org>.
52743
52744 2008-01-14  Eric Blake  <ebb9@byu.net>
52745
52746         Touch up previous patch.
52747         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
52748         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
52749
52750         Convert strcasestr module to use Two-Way algorithm.
52751         * modules/strcasestr-simple: New module, based on the old
52752         strcasestr, but with Two-Way rather than KMP.
52753         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
52754         * lib/string.in.h (rpl_strcasestr): Declare.
52755         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
52756         performance.
52757         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
52758         * modules/string (Makefile.am): Support strcasestr.
52759         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
52760         * modules/strcasestr-tests (Depends-on): Check for alarm.
52761         * tests/test-strcasestr.c: Augment test.
52762         * lib/str-two-way.h: Clean up stray macro.
52763         * NEWS: Document new module.
52764         * MODULES.html.sh (string handling): Likewise.
52765         * doc/functions/strcasestr.texi: New file.
52766         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
52767         here, since it is not a POSIX function.
52768
52769 2008-01-14  Colin Watson  <cjwatson@debian.org>
52770             Bruno Haible  <bruno@clisp.org>
52771
52772         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
52773         works fine; if not, set REPLACE_STRSIGNAL.
52774         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
52775         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52776         REPLACE_STRSIGNAL.
52777         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
52778         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
52779         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
52780
52781 2008-01-14  Bruno Haible  <bruno@clisp.org>
52782
52783         * modules/strsignal (Include): Change to <string.h>.
52784
52785 2008-01-14  Colin Watson  <cjwatson@debian.org>
52786
52787         * modules/argp (Notice): Add a notice recommending to change
52788         XGETTEXT_OPTIONS.
52789         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
52790
52791 2008-01-13  Colin Watson  <cjwatson@debian.org>
52792
52793         * modules/strsignal-tests: New file.
52794         * tests/test-strsignal.c: New file.
52795
52796         * lib/strsignal.c: New file, from glibc with modifications.
52797         * lib/siglist.h: New file, from glibc with modifications.
52798         * lib/string.in.h (strsignal): New declaration.
52799         * m4/strsignal.m4: New file.
52800         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52801         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
52802         * modules/strsignal: New file.
52803         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
52804         HAVE_DECL_STRSIGNAL.
52805
52806 2008-01-13  Bruno Haible  <bruno@clisp.org>
52807
52808         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
52809         locale encoding is not ASCII. Needed for OpenBSD 4.0.
52810         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
52811         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52812
52813 2008-01-13  Bruno Haible  <bruno@clisp.org>
52814
52815         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
52816         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
52817         * lib/argp.h (__attribute__): Likewise.
52818         * lib/c-stack.c (__attribute__): Likewise.
52819         * lib/error.h (__attribute__): Likewise.
52820         * lib/fts.c (__attribute__): Likewise.
52821         * lib/openat.h (__attribute__): Likewise.
52822         * lib/stdio.in.h (__attribute__): Likewise.
52823         * lib/string.in.h (__attribute__): Likewise.
52824         * lib/utimens.c (__attribute__): Likewise.
52825         * lib/vasnprintf.h (__attribute__): Likewise.
52826         * lib/xalloc.h (__attribute__): Likewise.
52827         * lib/xprintf.h (__attribute__): Likewise.
52828         * lib/xstrtol.h (__attribute__): Likewise.
52829         * lib/xvasprintf.h (__attribute__): Likewise.
52830
52831 2008-01-12  Bruno Haible  <bruno@clisp.org>
52832
52833         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
52834         * doc/glibc-headers/a.out.texi: New file.
52835         * doc/glibc-headers/aliases.texi: New file.
52836         * doc/glibc-headers/alloca.texi: New file.
52837         * doc/glibc-headers/ar.texi: New file.
52838         * doc/glibc-headers/argp.texi: New file.
52839         * doc/glibc-headers/argz.texi: New file.
52840         * doc/glibc-headers/byteswap.texi: New file.
52841         * doc/glibc-headers/crypt.texi: New file.
52842         * doc/glibc-headers/endian.texi: New file.
52843         * doc/glibc-headers/envz.texi: New file.
52844         * doc/glibc-headers/err.texi: New file.
52845         * doc/glibc-headers/error.texi: New file.
52846         * doc/glibc-headers/execinfo.texi: New file.
52847         * doc/glibc-headers/fpu_control.texi: New file.
52848         * doc/glibc-headers/fstab.texi: New file.
52849         * doc/glibc-headers/fts.texi: New file.
52850         * doc/glibc-headers/getopt.texi: New file.
52851         * doc/glibc-headers/ieee754.texi: New file.
52852         * doc/glibc-headers/ifaddrs.texi: New file.
52853         * doc/glibc-headers/libintl.texi: New file.
52854         * doc/glibc-headers/mcheck.texi: New file.
52855         * doc/glibc-headers/mntent.texi: New file.
52856         * doc/glibc-headers/obstack.texi: New file.
52857         * doc/glibc-headers/paths.texi: New file.
52858         * doc/glibc-headers/printf.texi: New file.
52859         * doc/glibc-headers/pty.texi: New file.
52860         * doc/glibc-headers/resolv.texi: New file.
52861         * doc/glibc-headers/shadow.texi: New file.
52862         * doc/glibc-headers/sysexits.texi: New file.
52863         * doc/glibc-headers/ttyent.texi: New file.
52864
52865 2008-01-12  Jim Meyering  <meyering@redhat.com>
52866
52867         announce-gen: emit Gnulib's git-based version string.
52868         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
52869         New option --gnulib-version=V, where V is expected to be
52870         the output of running git describe in the gnulib directory.
52871         (get_tool_versions): Request feedback on xdelta.  I suspect it's
52872         not useful, and plan to stop publishing an xdelta file with each
52873         coreutils release.
52874
52875         * build-aux/announce-gen: Also check for lzma-compressed files.
52876
52877 2008-01-11  Bruno Haible  <bruno@clisp.org>
52878
52879         * tests/test-memmem.c (main): Increase maximum allowed time.
52880         * tests/test-strstr.c (main): Likewise.
52881
52882 2008-01-11  Bruno Haible  <bruno@clisp.org>
52883
52884         * doc/functions/memmem.texi: Add more precisions about platforms.
52885         * doc/functions/strstr.texi: Likewise.
52886
52887 2008-01-10  Eric Blake  <ebb9@byu.net>
52888
52889         * m4/strstr.m4: Delete cruft from copy-n-paste.
52890         Reported by Bruno Haible.
52891
52892 2008-01-10  Bruno Haible  <bruno@clisp.org>
52893
52894         Make c-strstr rely on strstr.
52895         * lib/c-strstr.c: Don't include str-kmp.h.
52896         (c_strstr): Define in terms of strstr.
52897         * modules/c-strstr (Files): Remove lib/str-kmp.h.
52898         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
52899
52900 2008-01-10  Bruno Haible  <bruno@clisp.org>
52901
52902         * doc/gnulib.texi (String Functions in C Locale): New section.
52903         * doc/c-ctype.texi: New file.
52904         * doc/c-strcase.texi: New file.
52905         * doc/c-strcaseeq.texi: New file.
52906         * doc/c-strcasestr.texi: New file.
52907         * doc/c-strstr.texi: New file.
52908         * doc/c-strtod.texi: New file.
52909         * doc/c-strtold.texi: New file.
52910
52911 2008-01-10  Eric Blake  <ebb9@byu.net>
52912
52913         * lib/relocatable.h: Fix a comment.
52914
52915 2008-01-10  Eric Blake  <ebb9@byu.net>
52916
52917         Share two-way algorithm.
52918         * lib/str-two-way.h: New file, merged from...
52919         * lib/memmem.c: ...here...
52920         * lib/strstr.c: ...and here.
52921         * modules/memmem (Files): Use it.
52922         * modules/strstr (Files): Likewise.
52923
52924         Avoid quadratic strstr implementations.
52925         * lib/strstr.c: New file.
52926         * m4/strstr.m4: Likewise.
52927         * modules/strstr: Likewise.
52928         * modules/strstr-tests: Likewise.
52929         * tests/test-strstr.c: Likewise.
52930         * lib/string.in.h (rpl_strstr): Declare.
52931         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
52932         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
52933         * modules/string (Makefile.am): Likewise.
52934         * MODULES.html.sh (string handling): Mention new module.
52935         * doc/functions/strstr.texi (strstr): Document the bug.
52936
52937 2008-01-10  Bruno Haible  <bruno@clisp.org>
52938
52939         * lib/relocatable.h (relocate): State whether result is freshly
52940         allocated or not.
52941         * lib/relocatable.c (relocate): Return a freshly allocated string
52942         instead of a pointer to a privately held string.
52943         Reported by Sylvain Beucler <beuc@gnu.org>.
52944
52945 2008-01-10  Colin Watson  <cjwatson@debian.org>
52946
52947         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
52948         s/S_ISNLK/S_ISLNK/.
52949
52950 2008-01-09  Bruno Haible  <bruno@clisp.org>
52951
52952         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
52953         and other files.
52954         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
52955         if it's only a guess.
52956         * modules/memmem: Simplify by depending on memmem-simple.
52957
52958 2008-01-09  Bruno Haible  <bruno@clisp.org>
52959
52960         Work around OpenBSD 4.0 tdelete() bug.
52961         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
52962         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
52963         macros and don't redefine the enum values.
52964         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
52965         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
52966         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
52967
52968 2008-01-09  Bruno Haible  <bruno@clisp.org>
52969
52970         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
52971         (main): Don't perform the tests if setlocale did not install a UTF-8
52972         locale. Needed on OpenBSD 4.0.
52973         * modules/wcwidth-tests (Depends-on): Add localcharset.
52974
52975 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
52976
52977         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
52978         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
52979         * NEWS: announce this.
52980         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
52981
52982 2008-01-09  Simon Josefsson  <simon@josefsson.org>
52983         and Eric Blake  <ebb9@byu.net>
52984
52985         Add memmem-simple module.
52986         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
52987         (gl_FUNC_MEMMEM): Separate performance from presence checks.
52988         * modules/memmem-simple: New file.
52989         * modules/memmem (Description): Tweak.
52990         * MODULES.html.sh (string handling): Mention new module.
52991         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
52992         addressed by memmem-simple.
52993         * NEWS: Document the difference.
52994
52995 2008-01-09  Eric Blake  <ebb9@byu.net>
52996
52997         Give gcc some memmem optimization hints.
52998         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
52999         (strcasestr): Declare as pure.
53000         * modules/memmem (Maintainer): Claim my implementation.
53001
53002 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53003
53004         Support AIX 6.1 and higher.
53005         * build-aux/config.libpath: Likewise.
53006         * build-aux/config.rpath: Likewise.
53007
53008 2008-01-08  Jim Meyering  <meyering@redhat.com>
53009             Bruno Haible  <bruno@clisp.org>
53010
53011         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
53012         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
53013         Reported by Peter Fales in
53014         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
53015
53016 2008-01-08  Bruno Haible  <bruno@clisp.org>
53017
53018         * modules/unictype/category-of (Depends-on): Add
53019         unictype/category-none.
53020         * modules/unictype/category-and-tests (Depends-on): Add
53021         unictype/category-{L,N,Lu,Nd}.
53022         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
53023         * modules/unictype/category-or-tests (Depends-on): Add
53024         unictype/category-{L,N}.
53025         * modules/unictype/category-name-tests (Depends-on): Add
53026         unictype/category-{Z,Nl}.
53027         Reported by Simon Josefsson.
53028
53029 2008-01-08  Bruno Haible  <bruno@clisp.org>
53030
53031         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
53032         convention better.
53033         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
53034         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
53035         Reported by Peter Miller <millerp@canb.auug.org.au>.
53036
53037 2008-01-08  Eric Blake  <ebb9@byu.net>
53038
53039         Rewrite memmem to guarantee linear complexity without malloc.
53040         * lib/memmem.c (memmem): Use Two-Way rather than
53041         Knuth-Morris-Pratt, to allow O(1) space usage.
53042         (critical_factorization, two_way_short_needle)
53043         (two_way_long_needle): New functions.
53044         (knuth_morris_pratt): Delete.
53045         * modules/memmem (Depends-on): No longer need malloca or stdbool.
53046         Add stdint.
53047         * tests/test-memmem.c (main): Add tests for periodic needle and
53048         sublinear performance.
53049         * doc/functions/memmem.texi (memmem): Document other deficiencies
53050         in cygwin and older glibc.
53051
53052 2008-01-08  Bruno Haible  <bruno@clisp.org>
53053
53054         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
53055         augmentation.
53056
53057 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
53058
53059         Add a configure time option: --disable-acl.
53060         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
53061         AC_ARG_ENABLE(acl).
53062
53063 2008-01-06  Simon Josefsson  <simon@josefsson.org>
53064
53065         * tests/test-localename.c: Don't include obsolete "setenv.h".
53066
53067         * modules/localename-tests (Depends-on): Need unsetenv.
53068
53069 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53070
53071         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
53072
53073 2008-01-06  Colin Watson  <cjwatson@debian.org>
53074
53075         * users.txt: Add man-db.
53076
53077 2008-01-07  Bruno Haible  <bruno@clisp.org>
53078
53079         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
53080         previous section name.
53081
53082 2008-01-07  Bruno Haible  <bruno@clisp.org>
53083
53084         * lib/progname.c (set_program_name): Don't strip off a leading
53085         "lt-" prefix outside a .libs directory.
53086         Suggested by Paul Eggert.
53087
53088 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
53089             Bruno Haible  <bruno@clisp.org>
53090
53091         Improve memory cleanup in 'relocatable' module.
53092         * lib/relocatable.h (compute_curr_prefix): Change return type to
53093         'char *'.
53094         * lib/relocatable.c (compute_curr_prefix): Change return type to
53095         'char *'. Free curr_installdir after use.
53096         (relocate): Free curr_prefix_better after use.
53097         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
53098
53099 2008-01-01  Bruno Haible  <bruno@clisp.org>
53100
53101         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
53102         failure on older glibc systems.
53103         Reported by Peter Fales <psfales@alcatel-lucent.com>.
53104
53105 2008-01-05  Eric Blake  <ebb9@byu.net>
53106
53107         Avoid quadratic system memmem.
53108         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
53109         Reported by Ralf Wildenhues.
53110
53111         Fix memmem test for mingw.
53112         * modules/memmem-tests (configure.ac): Check for alarm.
53113         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
53114         it.
53115         * doc/functions/memmem.texi: New file.
53116         * doc/gnulib.texi (Function Substitutes): Add memmem.
53117         Reported by Bruno Haible.
53118
53119 2008-01-04  Bruno Haible  <bruno@clisp.org>
53120
53121         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
53122         Require gl_HEADER_STRINGS_H_DEFAULTS, not
53123         gl_HEADER_STRING_H_DEFAULTS.
53124
53125 2008-01-04  Eric Blake  <ebb9@byu.net>
53126
53127         Shorten duration of memmem test.
53128         * tests/test-memmem.c (main): Use alarm to declare failure if test
53129         is taking too long.
53130         Reported by Ralf Wildenhues.
53131
53132 2007-12-21  Simon Josefsson  <simon@josefsson.org>
53133
53134         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
53135         string, needed by strerror.
53136
53137 2008-01-03  Colin Watson  <cjwatson@debian.org>
53138             Bruno Haible  <bruno@clisp.org>
53139
53140         * doc/gnulib-tool.texi (Localization): New section.
53141
53142 2008-01-02  Bruno Haible  <bruno@clisp.org>
53143
53144         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
53145         variables to 'unsigned char *' type.
53146         Reported by Paul Eggert.
53147
53148 2008-01-02  Jim Meyering  <jim@meyering.net>
53149
53150         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
53151
53152 2007-12-31  Jim Meyering  <jim@meyering.net>
53153
53154         Avoid use of private FTS type name.
53155         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
53156
53157 2007-12-30  Karl Berry  <karl@gnu.org>
53158
53159         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
53160         work around defect in Texinfo and/or the standalone Info browser.
53161
53162 2007-12-30  Bruno Haible  <bruno@clisp.org>
53163
53164         Unify 5 copies of the KMP code.
53165         * lib/str-kmp.h: New file.
53166         * lib/c-strcasestr.c: Include str-kmp.h.
53167         (knuth_morris_pratt): Remove function.
53168         (c_strcasestr): Update.
53169         * lib/c-strstr.c: Include str-kmp.h.
53170         (knuth_morris_pratt): Remove function.
53171         (c_strcasestr): Update.
53172         * lib/mbscasestr.c: Include str-kmp.h.
53173         (knuth_morris_pratt_unibyte): Remove function.
53174         * lib/mbsstr.c: Include str-kmp.h.
53175         (knuth_morris_pratt_unibyte): Remove function.
53176         * lib/strcasestr.c: Include str-kmp.h.
53177         (knuth_morris_pratt): Remove function.
53178         (strcasestr): Update.
53179         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
53180         * modules/c-strstr (Files): Likewise.
53181         * modules/mbscasestr (Files): Likewise.
53182         * modules/mbsstr (Files): Likewise.
53183         * modules/strcasestr (Files): Likewise.
53184         Suggested by Paul Eggert.
53185
53186 2007-12-30  Bruno Haible  <bruno@clisp.org>
53187
53188         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
53189         defined.
53190
53191 2007-12-30  Bruno Haible  <bruno@clisp.org>
53192
53193         * lib/xmalloca.h: Include xalloc.h.
53194         (xnmalloca): New macro.
53195
53196 2007-12-30  Bruno Haible  <bruno@clisp.org>
53197
53198         * lib/malloca.h (nmalloca): New macro.
53199         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
53200         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
53201         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
53202         knuth_morris_pratt_multibyte): Likewise.
53203         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
53204         knuth_morris_pratt_multibyte): Likewise.
53205         * lib/memmem.c (knuth_morris_pratt): Likewise.
53206         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
53207
53208 2007-12-25  Bruno Haible  <bruno@clisp.org>
53209
53210         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
53211         * lib/glob.c: Don't include openat.h.
53212         (link_exists2_p): Add back the code that deals with the
53213         !GLOB_ALTDIRFUNC case.
53214         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
53215         let it do the filename concatenation.
53216         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
53217         * modules/glob (Depends-on): Remove openat.
53218
53219 2007-12-31  Bruno Haible  <bruno@clisp.org>
53220
53221         * modules/dirfd (License): Change to LGPLv2+.
53222         Approved by Jim Meyering.
53223
53224 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
53225
53226         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
53227         when multiplying M by sizeof (size_t).
53228
53229 2007-12-10  Martin Lambers  <marlam@marlam.de>
53230
53231         Override getpagesize on mingw.
53232         * lib/getpagesize.c: New file.
53233         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
53234         * modules/getpagesize (Files): Add lib/getpagesize.c.
53235         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
53236         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53237         REPLACE_GETPAGESIZE.
53238         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
53239
53240 2007-12-25  Bruno Haible  <bruno@clisp.org>
53241
53242         * modules/localcharset (Notice): New field.
53243         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
53244         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
53245
53246 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
53247             Bruno Haible  <bruno@clisp.org>
53248
53249         Avoid using the syntax symbol() in formatted documentation.
53250         * MODULES.html.sh (func_module): When replacing symbol() with a
53251         hyperlink, remove the parentheses. Show an error if some remain.
53252         Recognize and render the '...' syntax.
53253         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
53254         Rework. Add paragraph about GCC's inlining.
53255         * doc/alloca.texi: Likewise.
53256         * doc/error.texi: Remove parentheses from symbol reference.
53257         * doc/gnulib-intro.texi: Likewise.
53258         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
53259         * modules/fnmatch (Description): Reword to say "the ... function".
53260         * modules/full-read (Description): Likewise.
53261         * modules/full-write (Description): Likewise.
53262         * modules/safe-read (Description): Likewise.
53263         * modules/safe-write (Description): Likewise.
53264         * modules/strchrnul (Description): Likewise.
53265         * modules/trim (Description): Likewise.
53266         * modules/error (Description): Remove parentheses from symbol
53267         references.
53268         * modules/verror (Description): Likewise.
53269         Reported by Karl Berry.
53270
53271 2007-12-25  Bruno Haible  <bruno@clisp.org>
53272
53273         Fixup after 2007-10-16 commit.
53274         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
53275
53276 2007-12-24  Bruno Haible  <bruno@clisp.org>
53277
53278         Make --enable-relocatable work with DESTDIR.
53279         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
53280         to compute installdir from destprog.
53281         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
53282         also set the RELOC_DESTDIR variable.
53283         Reported by Левашев Иван <octagram@bluebottle.com>.
53284
53285 2007-12-24  Bruno Haible  <bruno@clisp.org>
53286
53287         Fix link error due to xalloc_die().
53288         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
53289         of xreadlink.
53290         * lib/relocwrapper.c: Update comments.
53291         * build-aux/install-reloc: Remove xreadlink.c from file list.
53292         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
53293         xreadlink.c.
53294         Reported by Левашев Иван <octagram@bluebottle.com>.
53295
53296 2007-12-24  Bruno Haible  <bruno@clisp.org>
53297
53298         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
53299         * lib/setenv.h: Remove file.
53300         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
53301         lib/setenv.h.
53302         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
53303         (Depends-on): Add stdlib.
53304         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
53305         gl_FUNC_UNSETENV.
53306         (Include): Replace setenv.h with <stdlib.h>.
53307         * modules/unsetenv: New file.
53308         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
53309         * lib/unsetenv.c: Include <stdlib.h> first.
53310         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
53311         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
53312         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
53313         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
53314         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
53315         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53316         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
53317         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53318         * doc/functions/unsetenv.texi: Update.
53319         * modules/xsetenv (Depends-on): Add unsetenv.
53320         * modules/getdate (Depends-on): Likewise.
53321         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
53322         * lib/xsetenv.c: Don't include setenv.h.
53323         * lib/getdate.y: Likewise.
53324         * lib/relocwrapper.c: Likewise.
53325         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
53326         (Depends-on): Add stdlib.
53327         * NEWS: Mention the changes.
53328         Reported by Левашев Иван <octagram@bluebottle.com>.
53329
53330 2007-12-23  Bruno Haible  <bruno@clisp.org>
53331
53332         * lib/memmem.c (memmem): Use lowercase variable names. Tab
53333         indentation.
53334
53335 2007-12-23  Bruno Haible  <bruno@clisp.org>
53336
53337         * lib/c-strcasestr.c: Add more comments.
53338         * lib/c-strstr.c: Likewise.
53339         * lib/mbscasestr.c: Likewise.
53340         * lib/mbsstr.c: Likewise.
53341         * lib/strcasestr.c: Likewise.
53342         * lib/memmem.c: Likewise.
53343
53344 2007-12-23  Bruno Haible  <bruno@clisp.org>
53345
53346         * tests/test-memmem.c: Include <string.h> first.
53347
53348 2007-12-22  Bruno Haible  <bruno@clisp.org>
53349
53350         * gnulib-tool (func_create_testdir): Change $auxdir while generating
53351         the contents of $testsbase.
53352         Reported by Ralf Wildenhues.
53353
53354 2007-12-22  Bruno Haible  <bruno@clisp.org>
53355
53356         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
53357         two variables local_ldadd_before, local_ldadd_last.
53358
53359 2007-12-20  Eric Blake  <ebb9@byu.net>
53360
53361         Work around circular library issue when cross-compiling.
53362         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
53363         that progname.o does not need to pull in rpl_memcmp.
53364
53365 2007-12-19  Eric Blake  <ebb9@byu.net>
53366
53367         Fix memmem to avoid O(n^2) worst-case complexity.
53368         * lib/memmem.c (knuth_morris_pratt): New function.
53369         (memmem): Use it if first few naive iterations fail.
53370         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
53371         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
53372         * modules/memchr (License): Likewise.
53373         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
53374         malloca.
53375         * tests/test-memmem.c: Rewrite, borrowing ideas from
53376         test-mbsstr1.c; the old version wouldn't even compile!
53377         * modules/memmem-tests: New file.
53378         * lib/string.in.h (rpl_memmem): Add declaration.
53379         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
53380         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
53381         REPLACE_MEMMEM.
53382
53383 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
53384
53385         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
53386         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
53387         before any system include files, and undef after them all.  This
53388         should fix a problem on VMS reported by John E. Malmberg in
53389         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
53390
53391 2007-12-17  Eric Blake  <ebb9@byu.net>
53392
53393         Revert addition of verify, for BSD/OS.
53394         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
53395         can't handle large files, for the sake of obsolete platforms.
53396         * modules/fseeko (Depends-on): Remove verify.
53397         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
53398         * doc/functions/ftello.texi (ftello): Likewise.
53399         * doc/functions/fgetpos.texi (fgetpos): Likewise.
53400         Reported by Larry Jones.
53401
53402 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
53403
53404         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
53405         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
53406
53407 2007-12-17  Jim Meyering  <meyering@redhat.com>
53408
53409         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
53410         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
53411         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
53412         * modules/getcwd (Depends-on): Add openat.
53413         Reported by Petr Salinger.
53414
53415 2007-12-17  Bruno Haible  <bruno@clisp.org>
53416
53417         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
53418         avoid a segmentation fault of the configure test on x86_64 systems.
53419
53420 2007-12-15  Jim Meyering  <meyering@redhat.com>
53421
53422         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
53423
53424 2007-12-13  Eric Blake  <ebb9@byu.net>
53425
53426         Another fseek test.
53427         * tests/test-fseek.c (main): Also test ungetc handling.
53428         * tests/test-fseeko.c (main): Likewise.
53429         * modules/fseeko (Depends-on): Add verify.
53430         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
53431         large.
53432         Reported by Larry Jones.
53433
53434         Fix fseeko on mingw.
53435         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
53436         seek.
53437
53438         Beef up fseek tests.
53439         * tests/test-fseek.c (main): Also test eof handling.
53440         * tests/test-fseeko.c (main): Likewise.
53441         Reported by Larry Jones.
53442
53443 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
53444
53445         Fix fseeko on BSD-based platforms.
53446         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
53447         successful seek.
53448
53449 2007-12-12  Eric Blake  <ebb9@byu.net>
53450
53451         Allow circular dependency of separate libtests.a
53452         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
53453         when use_libtests.
53454
53455 2007-12-11  Eric Blake  <ebb9@byu.net>
53456
53457         Fix bug with -0.0L in previous patch.
53458         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
53459         * tests/test-isnan.c (main): Also test on zeroes.
53460         * tests/test-isnanf.c (main): Likewise.
53461         * tests/test-isnanl.h (main): Likewise.
53462
53463         Detect pseudo-denormals on x86 even when cross-compiling.
53464         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
53465         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
53466         invalid bit patterns that happen to satisfy ==.
53467
53468         Avoid link failures with separate libtests.a.
53469         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
53470         last, to satisfy circular dependencies.
53471
53472 2007-12-11  Eric Blake  <ebb9@byu.net>
53473         and Bruno Haible  <bruno@clisp.org>
53474
53475         Fix OpenBSD 4.0 <float.h> handling of long double.
53476         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
53477         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
53478         * doc/headers/float.texi (float.h): Document OpenBSD bug.
53479
53480 2007-12-11  Jim Meyering  <meyering@redhat.com>
53481
53482         * users.txt: Add libvirt.
53483
53484         Support versions of autoconf prior to 2.59c.
53485         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
53486         if it is not already defined.
53487
53488 2007-12-09  Bruno Haible  <bruno@clisp.org>
53489
53490         Let 'gnulib-tool --import' collect sources needed for the tests in
53491         tests/ rather than in lib/.
53492         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
53493         argument. If true, add rules to generate libtests.a, and put libtests.a
53494         into $(LDADD). Consider source files in subdirectories and set
53495         uses_subdirs.
53496         (func_emit_initmacro_start, func_emit_initmacro_end,
53497         func_emit_initmacro_done): Pass all arguments explicitly.
53498         (func_import): Determine two module lists main_modules,
53499         testsrelated_modules. Determine use_libtests. Determine two variables
53500         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
53501         instead of just sed_transform_lib_file. Determine two variables
53502         main_files and testsrelated_files. Compute 'files' as the union of
53503         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
53504         func_add_or_update. In the generated gnulib-comp.m4, collect the
53505         object files for tests/ in different variables than those for lib/.
53506         Substitute LIBTESTS_LIBDEPS.
53507         (func_create_testdir): Combine the uses_subdirs results from
53508         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
53509
53510 2007-12-09  Bruno Haible  <bruno@clisp.org>
53511
53512         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
53513         the build-aux directory.
53514
53515 2007-12-09  Bruno Haible  <bruno@clisp.org>
53516
53517         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
53518         introduced on 2006-09-09.
53519
53520 2007-12-07  Jim Meyering  <meyering@redhat.com>
53521
53522         Let these macros work also with autoconf-2.59.
53523         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
53524         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
53525         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53526
53527 2007-12-06  Jim Meyering  <meyering@redhat.com>
53528
53529         Avoid a configure-time syntax error in gl_FUNC_ACL.
53530         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
53531         function in each branch, before testing the cache variable.
53532
53533 2007-12-04  Eric Blake  <ebb9@byu.net>
53534
53535         Make scripts executable.
53536         * build-aux/config.guess: Add execute permissions.
53537         * build-aux/config.sub: Likewise.
53538         * build-aux/gendocs.sh: Likewise.
53539
53540         Fix frexp on mingw.
53541         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
53542         cross-compiling.
53543         * doc/functions/frexp.texi (frexp): Document the bug.
53544
53545         Make cygwin fseeko check more reliable.
53546         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
53547         version numbers, rather than unrelated feature check.
53548         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
53549         * doc/functions/ftello.texi (ftello): Likewise.
53550         Reported by Bruno Haible.
53551
53552         * m4/strerror.m4: Bump version number.
53553
53554 2007-12-03  Bruno Haible  <bruno@clisp.org>
53555
53556         * doc/functions/mprotect.texi: Mention the mingw problem.
53557
53558 2007-12-03  Eric Blake  <ebb9@byu.net>
53559
53560         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
53561         REPLACE_STRERROR is initialized before this macro.
53562
53563 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
53564
53565         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
53566         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
53567         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
53568         put -lsec in even for programs other than 'ls'.  This fixes a problem
53569         for gettext reported by Bruno Haible in
53570         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
53571         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
53572         Add support for Solaris 10.  This isn't efficient, but should get the
53573         job done for now.
53574
53575 2007-12-03  James Youngman  <jay@gnu.org>
53576
53577         * doc/regexprops-generic.texi: change "an close-group" to "a
53578         close-group" and "illegal" to "not allowed".
53579
53580 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53581
53582         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
53583         pr_byname.h. Needed for the rare case when the maintainer has done
53584         "make maintainer-clean" in the source directory and then attempts a
53585         build outside the source directory.
53586         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
53587         scripts_byname.h.
53588
53589 2007-12-02  Martin Lambers <marlam@marlam.de>
53590             Bruno Haible  <bruno@clisp.org>
53591
53592         * lib/getpagesize.h: Remove file.
53593         * lib/unistd.in.h: Include declaration of getpagesize here.
53594         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
53595         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
53596         HAVE_SYS_PARAM_H.
53597         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
53598         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53599         * modules/getpagesize (Files): Remove lib/getpagesize.h.
53600         (Depends-on): Add unistd.
53601         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53602         (Include): Use <unistd.h> instead of getpagesize.h.
53603         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
53604         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53605         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
53606         gl_GETPAGESIZE invocation, already handled by module dependency.
53607         * lib/pagealign_alloc.c: Don't include getpagesize.h.
53608
53609 2007-12-02  Bruno Haible  <bruno@clisp.org>
53610
53611         * modules/strings-tests: New file.
53612         * tests/test-strings.c: New file.
53613
53614         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
53615         * lib/strings.in.h: New file.
53616         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
53617         * m4/strings_h.m4: New file.
53618         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
53619         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
53620         * modules/strings: New file.
53621         * modules/string (Makefile.am): Update.
53622         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
53623         Reported by Karl Berry.
53624
53625 2007-12-01  Eric Blake  <ebb9@byu.net>
53626
53627         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
53628         accomodate fix in cygwin 1.5.25.
53629
53630 2007-12-01  Jim Meyering  <meyering@redhat.com>
53631
53632         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
53633         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
53634         that would inhibit utf8-optimization of a regexp containing line-
53635         or buffer-anchors, e.g., `^', `$'.
53636
53637 2007-11-30  Bruno Haible  <bruno@clisp.org>
53638
53639         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
53640         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
53641         glthread_recursive_lock_init.
53642         * lib/lock.c (glthread_recursive_lock_init)
53643         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
53644         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53645
53646 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
53647
53648         New function qset_acl, like set_acl but with syscall semantics.
53649         * lib/acl.h (qset_acl): New decl.
53650         * lib/acl.c (qset_acl): New function.
53651         (set_acl): Use new function.  Use more-consistent diagnostics.
53652
53653 2007-11-28  Jim Meyering  <meyering@redhat.com>
53654
53655         * modules/physmem (License): Change from GPL to LGPLv2+.
53656
53657 2007-11-26  Bruno Haible  <bruno@clisp.org>
53658
53659         * lib/vasnprintf.c (decode_long_double): Don't abort if the
53660         'long double' type has excess precision.
53661         Reported by Jim Meyering in
53662         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
53663
53664 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53665
53666         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
53667         Sync from <http://gnu.org/licenses>.
53668         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
53669         with license text from same location.
53670         * doc/maintain.texi, doc/standards.texi:  Sync from
53671         <http://savannah.gnu.org/projects/gnustandards>.
53672
53673 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
53674         and Jim Meyering  <meyering@redhat.com>
53675
53676         Adjust getdate' grammar to accept a slightly more regular language.
53677         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
53678         Before, the former was rejected.
53679         * lib/getdate.y (digits_to_date_time): New function, factored
53680         out of ...
53681         (number): ...here.  Just call digits_to_date_time.
53682         (hybrid): New non-terminal to handle an <unsigned number,
53683         signed relative offset> sequence consistently.
53684
53685 2007-11-18  Jim Meyering  <meyering@redhat.com>
53686
53687         Pull my changes from coreutils:
53688         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
53689         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
53690         use of $gnulib_tool_option_extras, so that it's separated from the
53691         preceding argument.
53692
53693         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
53694         * build-aux/bootstrap (cp_mark_as_generated): Create any required
53695         parent destination directories before copying a file into place.
53696
53697 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
53698
53699         bootstrap: work also with 4-argument variant of AC_INIT
53700         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
53701
53702 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53703
53704         Port test-getaddrinfo to Solaris.
53705         Problem reported by Bruno Haible in
53706         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
53707         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
53708         explanation of setting 'hints'.
53709         Don't reject an implementation merely because it returns EAI_SERVICE.
53710         (EAI_SERVICE): Define to 0 if not defined.
53711
53712 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53713
53714         The license of gnu-make and posix-shell is now "GPLed build tool".
53715         * modules/gnu-make (License): Likewise.
53716         * modules/posix-shell (License): Likewise.
53717
53718         New module posix-shell, for determining a POSIX shell
53719         or perhaps something that is close enough to a POSIX shell.
53720         * m4/posix-shell.m4: New file.
53721         * modules/posix-shell: New file.
53722
53723         * MODULES.html.sh: Mention new module.
53724
53725         New module gnu-make, for determining whether we're using GNU Make.
53726         * m4/gnu-make.m4: New file.
53727         * modules/gnu-make: New file.
53728         * MODULES.html.sh: Mention new module.
53729
53730 2007-11-14  Jim Meyering  <meyering@redhat.com>
53731
53732         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
53733         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
53734         use this macro to create a function _definition_.
53735         Remove useless "#undef ARGMATCH_DIE".
53736
53737 2007-11-14  Bruno Haible  <bruno@clisp.org>
53738
53739         * lib/config.charset: Update for OpenBSD 4.1.
53740         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
53741
53742 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
53743
53744         Document 64-bit #if problems in stdint.texi.
53745         * doc/headers/stdint.texi (stdint.h): Mention problems with
53746         64-bit-#if, and how to work around them.
53747
53748         Don't insist on 'long long int' support in the preprocessor.  It
53749         breaks too many things.  For example, PRIdMAX still uses a 'long
53750         long int' format with the latest Sun compiler, even though
53751         HAVE_LONG_LONG_INT isn't defined due to that compiler's
53752         preprocessor problem.  This causes the latest coreutils to dump
53753         core on Solaris 10 sparc with the Sun C compiler.
53754         Instead, fix the 2007-10-16 problem in a different way, by evaluating
53755         the troublesome expressions at configure-time, not at #if-time.
53756         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
53757         preprocessor.
53758         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
53759         compile-time C checks, done at 'configure'-time.
53760         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
53761         * modules/inttypes (Makefile): Substitute the new symbols that
53762         gl_INTTYPES_H now generates.
53763         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
53764
53765 2007-11-12  Bruno Haible  <bruno@clisp.org>
53766
53767         Tests for Unicode character classification functions.
53768
53769         * modules/unictype/bidicategory-byname-tests: New file.
53770         * modules/unictype/bidicategory-name-tests: New file.
53771         * modules/unictype/bidicategory-of-tests: New file.
53772         * modules/unictype/bidicategory-test-tests: New file.
53773         * modules/unictype/block-list-tests: New file.
53774         * modules/unictype/block-of-tests: New file.
53775         * modules/unictype/block-test-tests: New file.
53776         * modules/unictype/category-C-tests: New file.
53777         * modules/unictype/category-Cc-tests: New file.
53778         * modules/unictype/category-Cf-tests: New file.
53779         * modules/unictype/category-Cn-tests: New file.
53780         * modules/unictype/category-Co-tests: New file.
53781         * modules/unictype/category-Cs-tests: New file.
53782         * modules/unictype/category-L-tests: New file.
53783         * modules/unictype/category-Ll-tests: New file.
53784         * modules/unictype/category-Lm-tests: New file.
53785         * modules/unictype/category-Lo-tests: New file.
53786         * modules/unictype/category-Lt-tests: New file.
53787         * modules/unictype/category-Lu-tests: New file.
53788         * modules/unictype/category-M-tests: New file.
53789         * modules/unictype/category-Mc-tests: New file.
53790         * modules/unictype/category-Me-tests: New file.
53791         * modules/unictype/category-Mn-tests: New file.
53792         * modules/unictype/category-N-tests: New file.
53793         * modules/unictype/category-Nd-tests: New file.
53794         * modules/unictype/category-Nl-tests: New file.
53795         * modules/unictype/category-No-tests: New file.
53796         * modules/unictype/category-P-tests: New file.
53797         * modules/unictype/category-Pc-tests: New file.
53798         * modules/unictype/category-Pd-tests: New file.
53799         * modules/unictype/category-Pe-tests: New file.
53800         * modules/unictype/category-Pf-tests: New file.
53801         * modules/unictype/category-Pi-tests: New file.
53802         * modules/unictype/category-Po-tests: New file.
53803         * modules/unictype/category-Ps-tests: New file.
53804         * modules/unictype/category-S-tests: New file.
53805         * modules/unictype/category-Sc-tests: New file.
53806         * modules/unictype/category-Sk-tests: New file.
53807         * modules/unictype/category-Sm-tests: New file.
53808         * modules/unictype/category-So-tests: New file.
53809         * modules/unictype/category-Z-tests: New file.
53810         * modules/unictype/category-Zl-tests: New file.
53811         * modules/unictype/category-Zp-tests: New file.
53812         * modules/unictype/category-Zs-tests: New file.
53813         * modules/unictype/category-and-not-tests: New file.
53814         * modules/unictype/category-and-tests: New file.
53815         * modules/unictype/category-byname-tests: New file.
53816         * modules/unictype/category-name-tests: New file.
53817         * modules/unictype/category-none-tests: New file.
53818         * modules/unictype/category-of-tests: New file.
53819         * modules/unictype/category-or-tests: New file.
53820         * modules/unictype/category-test-withtable-tests: New file.
53821         * modules/unictype/combining-class-tests: New file.
53822         * modules/unictype/ctype-alnum-tests: New file.
53823         * modules/unictype/ctype-alpha-tests: New file.
53824         * modules/unictype/ctype-blank-tests: New file.
53825         * modules/unictype/ctype-cntrl-tests: New file.
53826         * modules/unictype/ctype-digit-tests: New file.
53827         * modules/unictype/ctype-graph-tests: New file.
53828         * modules/unictype/ctype-lower-tests: New file.
53829         * modules/unictype/ctype-print-tests: New file.
53830         * modules/unictype/ctype-punct-tests: New file.
53831         * modules/unictype/ctype-space-tests: New file.
53832         * modules/unictype/ctype-upper-tests: New file.
53833         * modules/unictype/ctype-xdigit-tests: New file.
53834         * modules/unictype/decimal-digit-tests: New file.
53835         * modules/unictype/digit-tests: New file.
53836         * modules/unictype/mirror-tests: New file.
53837         * modules/unictype/numeric-tests: New file.
53838         * modules/unictype/property-alphabetic-tests: New file.
53839         * modules/unictype/property-ascii-hex-digit-tests: New file.
53840         * modules/unictype/property-bidi-arabic-digit-tests: New file.
53841         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
53842         * modules/unictype/property-bidi-block-separator-tests: New file.
53843         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
53844         * modules/unictype/property-bidi-common-separator-tests: New file.
53845         * modules/unictype/property-bidi-control-tests: New file.
53846         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
53847         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
53848         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
53849         * modules/unictype/property-bidi-european-digit-tests: New file.
53850         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
53851         * modules/unictype/property-bidi-left-to-right-tests: New file.
53852         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
53853         * modules/unictype/property-bidi-other-neutral-tests: New file.
53854         * modules/unictype/property-bidi-pdf-tests: New file.
53855         * modules/unictype/property-bidi-segment-separator-tests: New file.
53856         * modules/unictype/property-bidi-whitespace-tests: New file.
53857         * modules/unictype/property-byname-tests: New file.
53858         * modules/unictype/property-combining-tests: New file.
53859         * modules/unictype/property-composite-tests: New file.
53860         * modules/unictype/property-currency-symbol-tests: New file.
53861         * modules/unictype/property-dash-tests: New file.
53862         * modules/unictype/property-decimal-digit-tests: New file.
53863         * modules/unictype/property-default-ignorable-code-point-tests: New file.
53864         * modules/unictype/property-deprecated-tests: New file.
53865         * modules/unictype/property-diacritic-tests: New file.
53866         * modules/unictype/property-extender-tests: New file.
53867         * modules/unictype/property-format-control-tests: New file.
53868         * modules/unictype/property-grapheme-base-tests: New file.
53869         * modules/unictype/property-grapheme-extend-tests: New file.
53870         * modules/unictype/property-grapheme-link-tests: New file.
53871         * modules/unictype/property-hex-digit-tests: New file.
53872         * modules/unictype/property-hyphen-tests: New file.
53873         * modules/unictype/property-id-continue-tests: New file.
53874         * modules/unictype/property-id-start-tests: New file.
53875         * modules/unictype/property-ideographic-tests: New file.
53876         * modules/unictype/property-ids-binary-operator-tests: New file.
53877         * modules/unictype/property-ids-trinary-operator-tests: New file.
53878         * modules/unictype/property-ignorable-control-tests: New file.
53879         * modules/unictype/property-iso-control-tests: New file.
53880         * modules/unictype/property-join-control-tests: New file.
53881         * modules/unictype/property-left-of-pair-tests: New file.
53882         * modules/unictype/property-line-separator-tests: New file.
53883         * modules/unictype/property-logical-order-exception-tests: New file.
53884         * modules/unictype/property-lowercase-tests: New file.
53885         * modules/unictype/property-math-tests: New file.
53886         * modules/unictype/property-non-break-tests: New file.
53887         * modules/unictype/property-not-a-character-tests: New file.
53888         * modules/unictype/property-numeric-tests: New file.
53889         * modules/unictype/property-other-alphabetic-tests: New file.
53890         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
53891         * modules/unictype/property-other-grapheme-extend-tests: New file.
53892         * modules/unictype/property-other-id-continue-tests: New file.
53893         * modules/unictype/property-other-id-start-tests: New file.
53894         * modules/unictype/property-other-lowercase-tests: New file.
53895         * modules/unictype/property-other-math-tests: New file.
53896         * modules/unictype/property-other-uppercase-tests: New file.
53897         * modules/unictype/property-paired-punctuation-tests: New file.
53898         * modules/unictype/property-paragraph-separator-tests: New file.
53899         * modules/unictype/property-pattern-syntax-tests: New file.
53900         * modules/unictype/property-pattern-white-space-tests: New file.
53901         * modules/unictype/property-private-use-tests: New file.
53902         * modules/unictype/property-punctuation-tests: New file.
53903         * modules/unictype/property-quotation-mark-tests: New file.
53904         * modules/unictype/property-radical-tests: New file.
53905         * modules/unictype/property-sentence-terminal-tests: New file.
53906         * modules/unictype/property-soft-dotted-tests: New file.
53907         * modules/unictype/property-space-tests: New file.
53908         * modules/unictype/property-terminal-punctuation-tests: New file.
53909         * modules/unictype/property-test-tests: New file.
53910         * modules/unictype/property-titlecase-tests: New file.
53911         * modules/unictype/property-unassigned-code-value-tests: New file.
53912         * modules/unictype/property-unified-ideograph-tests: New file.
53913         * modules/unictype/property-uppercase-tests: New file.
53914         * modules/unictype/property-variation-selector-tests: New file.
53915         * modules/unictype/property-white-space-tests: New file.
53916         * modules/unictype/property-xid-continue-tests: New file.
53917         * modules/unictype/property-xid-start-tests: New file.
53918         * modules/unictype/property-zero-width-tests: New file.
53919         * modules/unictype/scripts-tests: New file.
53920         * modules/unictype/syntax-c-ident-tests: New file.
53921         * modules/unictype/syntax-c-whitespace-tests: New file.
53922         * modules/unictype/syntax-java-ident-tests: New file.
53923         * modules/unictype/syntax-java-whitespace-tests: New file.
53924         * tests/unictype/test-bidi_byname.c: New file.
53925         * tests/unictype/test-bidi_name.c: New file.
53926         * tests/unictype/test-bidi_of.c: New file.
53927         * tests/unictype/test-bidi_test.c: New file.
53928         * tests/unictype/test-block_list.c: New file.
53929         * tests/unictype/test-block_of.c: New file.
53930         * tests/unictype/test-block_test.c: New file.
53931         * tests/unictype/test-categ_and.c: New file.
53932         * tests/unictype/test-categ_and_not.c: New file.
53933         * tests/unictype/test-categ_byname.c: New file.
53934         * tests/unictype/test-categ_name.c: New file.
53935         * tests/unictype/test-categ_none.c: New file.
53936         * tests/unictype/test-categ_of.c: New file.
53937         * tests/unictype/test-categ_or.c: New file.
53938         * tests/unictype/test-categ_test_withtable.c: New file.
53939         * tests/unictype/test-combining.c: New file.
53940         * tests/unictype/test-decdigit.c: New file.
53941         * tests/unictype/test-digit.c: New file.
53942         * tests/unictype/test-mirror.c: New file.
53943         * tests/unictype/test-numeric.c: New file.
53944         * tests/unictype/test-pr_byname.c: New file.
53945         * tests/unictype/test-pr_test.c: New file.
53946         * tests/unictype/test-predicate-part1.h: New file.
53947         * tests/unictype/test-predicate-part2.h: New file.
53948         * tests/unictype/test-scripts.c: New file.
53949         * tests/unictype/test-sy_c_ident.c: New file.
53950         * tests/unictype/test-sy_java_ident.c: New file.
53951
53952         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
53953         for Unicode 5.0.0.
53954         * tests/unictype/test-categ_Cc.c: Likewise.
53955         * tests/unictype/test-categ_Cf.c: Likewise.
53956         * tests/unictype/test-categ_Cn.c: Likewise.
53957         * tests/unictype/test-categ_Co.c: Likewise.
53958         * tests/unictype/test-categ_Cs.c: Likewise.
53959         * tests/unictype/test-categ_L.c: Likewise.
53960         * tests/unictype/test-categ_Ll.c: Likewise.
53961         * tests/unictype/test-categ_Lm.c: Likewise.
53962         * tests/unictype/test-categ_Lo.c: Likewise.
53963         * tests/unictype/test-categ_Lt.c: Likewise.
53964         * tests/unictype/test-categ_Lu.c: Likewise.
53965         * tests/unictype/test-categ_M.c: Likewise.
53966         * tests/unictype/test-categ_Mc.c: Likewise.
53967         * tests/unictype/test-categ_Me.c: Likewise.
53968         * tests/unictype/test-categ_Mn.c: Likewise.
53969         * tests/unictype/test-categ_N.c: Likewise.
53970         * tests/unictype/test-categ_Nd.c: Likewise.
53971         * tests/unictype/test-categ_Nl.c: Likewise.
53972         * tests/unictype/test-categ_No.c: Likewise.
53973         * tests/unictype/test-categ_P.c: Likewise.
53974         * tests/unictype/test-categ_Pc.c: Likewise.
53975         * tests/unictype/test-categ_Pd.c: Likewise.
53976         * tests/unictype/test-categ_Pe.c: Likewise.
53977         * tests/unictype/test-categ_Pf.c: Likewise.
53978         * tests/unictype/test-categ_Pi.c: Likewise.
53979         * tests/unictype/test-categ_Po.c: Likewise.
53980         * tests/unictype/test-categ_Ps.c: Likewise.
53981         * tests/unictype/test-categ_S.c: Likewise.
53982         * tests/unictype/test-categ_Sc.c: Likewise.
53983         * tests/unictype/test-categ_Sk.c: Likewise.
53984         * tests/unictype/test-categ_Sm.c: Likewise.
53985         * tests/unictype/test-categ_So.c: Likewise.
53986         * tests/unictype/test-categ_Z.c: Likewise.
53987         * tests/unictype/test-categ_Zl.c: Likewise.
53988         * tests/unictype/test-categ_Zp.c: Likewise.
53989         * tests/unictype/test-categ_Zs.c: Likewise.
53990         * tests/unictype/test-ctype_alnum.c: Likewise.
53991         * tests/unictype/test-ctype_alpha.c: Likewise.
53992         * tests/unictype/test-ctype_blank.c: Likewise.
53993         * tests/unictype/test-ctype_cntrl.c: Likewise.
53994         * tests/unictype/test-ctype_digit.c: Likewise.
53995         * tests/unictype/test-ctype_graph.c: Likewise.
53996         * tests/unictype/test-ctype_lower.c: Likewise.
53997         * tests/unictype/test-ctype_print.c: Likewise.
53998         * tests/unictype/test-ctype_punct.c: Likewise.
53999         * tests/unictype/test-ctype_space.c: Likewise.
54000         * tests/unictype/test-ctype_upper.c: Likewise.
54001         * tests/unictype/test-ctype_xdigit.c: Likewise.
54002         * tests/unictype/test-decdigit.h: Likewise.
54003         * tests/unictype/test-digit.h: Likewise.
54004         * tests/unictype/test-numeric.h: Likewise.
54005         * tests/unictype/test-pr_alphabetic.c: Likewise.
54006         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
54007         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
54008         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
54009         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
54010         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
54011         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
54012         * tests/unictype/test-pr_bidi_control.c: Likewise.
54013         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
54014         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
54015         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
54016         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
54017         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
54018         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
54019         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
54020         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
54021         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
54022         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
54023         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
54024         * tests/unictype/test-pr_combining.c: Likewise.
54025         * tests/unictype/test-pr_composite.c: Likewise.
54026         * tests/unictype/test-pr_currency_symbol.c: Likewise.
54027         * tests/unictype/test-pr_dash.c: Likewise.
54028         * tests/unictype/test-pr_decimal_digit.c: Likewise.
54029         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
54030         * tests/unictype/test-pr_deprecated.c: Likewise.
54031         * tests/unictype/test-pr_diacritic.c: Likewise.
54032         * tests/unictype/test-pr_extender.c: Likewise.
54033         * tests/unictype/test-pr_format_control.c: Likewise.
54034         * tests/unictype/test-pr_grapheme_base.c: Likewise.
54035         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
54036         * tests/unictype/test-pr_grapheme_link.c: Likewise.
54037         * tests/unictype/test-pr_hex_digit.c: Likewise.
54038         * tests/unictype/test-pr_hyphen.c: Likewise.
54039         * tests/unictype/test-pr_id_continue.c: Likewise.
54040         * tests/unictype/test-pr_id_start.c: Likewise.
54041         * tests/unictype/test-pr_ideographic.c: Likewise.
54042         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
54043         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
54044         * tests/unictype/test-pr_ignorable_control.c: Likewise.
54045         * tests/unictype/test-pr_iso_control.c: Likewise.
54046         * tests/unictype/test-pr_join_control.c: Likewise.
54047         * tests/unictype/test-pr_left_of_pair.c: Likewise.
54048         * tests/unictype/test-pr_line_separator.c: Likewise.
54049         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
54050         * tests/unictype/test-pr_lowercase.c: Likewise.
54051         * tests/unictype/test-pr_math.c: Likewise.
54052         * tests/unictype/test-pr_non_break.c: Likewise.
54053         * tests/unictype/test-pr_not_a_character.c: Likewise.
54054         * tests/unictype/test-pr_numeric.c: Likewise.
54055         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
54056         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
54057         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
54058         * tests/unictype/test-pr_other_id_continue.c: Likewise.
54059         * tests/unictype/test-pr_other_id_start.c: Likewise.
54060         * tests/unictype/test-pr_other_lowercase.c: Likewise.
54061         * tests/unictype/test-pr_other_math.c: Likewise.
54062         * tests/unictype/test-pr_other_uppercase.c: Likewise.
54063         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
54064         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
54065         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
54066         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
54067         * tests/unictype/test-pr_private_use.c: Likewise.
54068         * tests/unictype/test-pr_punctuation.c: Likewise.
54069         * tests/unictype/test-pr_quotation_mark.c: Likewise.
54070         * tests/unictype/test-pr_radical.c: Likewise.
54071         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
54072         * tests/unictype/test-pr_soft_dotted.c: Likewise.
54073         * tests/unictype/test-pr_space.c: Likewise.
54074         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
54075         * tests/unictype/test-pr_titlecase.c: Likewise.
54076         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
54077         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
54078         * tests/unictype/test-pr_uppercase.c: Likewise.
54079         * tests/unictype/test-pr_variation_selector.c: Likewise.
54080         * tests/unictype/test-pr_white_space.c: Likewise.
54081         * tests/unictype/test-pr_xid_continue.c: Likewise.
54082         * tests/unictype/test-pr_xid_start.c: Likewise.
54083         * tests/unictype/test-pr_zero_width.c: Likewise.
54084         * tests/unictype/test-sy_c_whitespace.c: Likewise.
54085         * tests/unictype/test-sy_java_whitespace.c: Likewise.
54086
54087 2007-11-12  Bruno Haible  <bruno@clisp.org>
54088
54089         Unicode character classification functions.
54090         * lib/unictype.h: New file.
54091         * modules/unictype/base: New file.
54092         * modules/unictype/category-L: New file.
54093         * modules/unictype/category-Lu: New file.
54094         * modules/unictype/category-Ll: New file.
54095         * modules/unictype/category-Lt: New file.
54096         * modules/unictype/category-Lm: New file.
54097         * modules/unictype/category-Lo: New file.
54098         * modules/unictype/category-M: New file.
54099         * modules/unictype/category-Mn: New file.
54100         * modules/unictype/category-Mc: New file.
54101         * modules/unictype/category-Me: New file.
54102         * modules/unictype/category-N: New file.
54103         * modules/unictype/category-Nd: New file.
54104         * modules/unictype/category-Nl: New file.
54105         * modules/unictype/category-No: New file.
54106         * modules/unictype/category-P: New file.
54107         * modules/unictype/category-Pc: New file.
54108         * modules/unictype/category-Pd: New file.
54109         * modules/unictype/category-Ps: New file.
54110         * modules/unictype/category-Pe: New file.
54111         * modules/unictype/category-Pi: New file.
54112         * modules/unictype/category-Pf: New file.
54113         * modules/unictype/category-Po: New file.
54114         * modules/unictype/category-S: New file.
54115         * modules/unictype/category-Sm: New file.
54116         * modules/unictype/category-Sc: New file.
54117         * modules/unictype/category-Sk: New file.
54118         * modules/unictype/category-So: New file.
54119         * modules/unictype/category-Z: New file.
54120         * modules/unictype/category-Zs: New file.
54121         * modules/unictype/category-Zl: New file.
54122         * modules/unictype/category-Zp: New file.
54123         * modules/unictype/category-C: New file.
54124         * modules/unictype/category-Cc: New file.
54125         * modules/unictype/category-Cf: New file.
54126         * modules/unictype/category-Cs: New file.
54127         * modules/unictype/category-Co: New file.
54128         * modules/unictype/category-Cn: New file.
54129         * modules/unictype/category-or: New file.
54130         * modules/unictype/category-of: New file.
54131         * modules/unictype/category-test: New file.
54132         * modules/unictype/category-test-withtable: New file.
54133         * modules/unictype/category-byname: New file.
54134         * modules/unictype/category-none: New file.
54135         * modules/unictype/category-and: New file.
54136         * modules/unictype/category-and-not: New file.
54137         * modules/unictype/category-name: New file.
54138         * modules/unictype/combining-class: New file.
54139         * modules/unictype/category-all: New file.
54140         * modules/unictype/bidicategory-all: New file.
54141         * modules/unictype/bidicategory-byname: New file.
54142         * modules/unictype/bidicategory-name: New file.
54143         * modules/unictype/bidicategory-of: New file.
54144         * modules/unictype/bidicategory-test: New file.
54145         * modules/unictype/decimal-digit: New file.
54146         * modules/unictype/digit: New file.
54147         * modules/unictype/numeric: New file.
54148         * modules/unictype/mirror: New file.
54149         * modules/unictype/property-white-space: New file.
54150         * modules/unictype/property-alphabetic: New file.
54151         * modules/unictype/property-other-alphabetic: New file.
54152         * modules/unictype/property-not-a-character: New file.
54153         * modules/unictype/property-default-ignorable-code-point: New file.
54154         * modules/unictype/property-other-default-ignorable-code-point: New
54155         file.
54156         * modules/unictype/property-deprecated: New file.
54157         * modules/unictype/property-logical-order-exception: New file.
54158         * modules/unictype/property-variation-selector: New file.
54159         * modules/unictype/property-private-use: New file.
54160         * modules/unictype/property-unassigned-code-value: New file.
54161         * modules/unictype/property-uppercase: New file.
54162         * modules/unictype/property-other-uppercase: New file.
54163         * modules/unictype/property-lowercase: New file.
54164         * modules/unictype/property-other-lowercase: New file.
54165         * modules/unictype/property-titlecase: New file.
54166         * modules/unictype/property-soft-dotted: New file.
54167         * modules/unictype/property-id-start: New file.
54168         * modules/unictype/property-other-id-start: New file.
54169         * modules/unictype/property-id-continue: New file.
54170         * modules/unictype/property-other-id-continue: New file.
54171         * modules/unictype/property-xid-start: New file.
54172         * modules/unictype/property-xid-continue: New file.
54173         * modules/unictype/property-pattern-white-space: New file.
54174         * modules/unictype/property-pattern-syntax: New file.
54175         * modules/unictype/property-join-control: New file.
54176         * modules/unictype/property-grapheme-base: New file.
54177         * modules/unictype/property-grapheme-extend: New file.
54178         * modules/unictype/property-other-grapheme-extend: New file.
54179         * modules/unictype/property-grapheme-link: New file.
54180         * modules/unictype/property-bidi-control: New file.
54181         * modules/unictype/property-bidi-left-to-right: New file.
54182         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
54183         * modules/unictype/property-bidi-arabic-right-to-left: New file.
54184         * modules/unictype/property-bidi-european-digit: New file.
54185         * modules/unictype/property-bidi-eur-num-separator: New file.
54186         * modules/unictype/property-bidi-eur-num-terminator: New file.
54187         * modules/unictype/property-bidi-arabic-digit: New file.
54188         * modules/unictype/property-bidi-common-separator: New file.
54189         * modules/unictype/property-bidi-block-separator: New file.
54190         * modules/unictype/property-bidi-segment-separator: New file.
54191         * modules/unictype/property-bidi-whitespace: New file.
54192         * modules/unictype/property-bidi-non-spacing-mark: New file.
54193         * modules/unictype/property-bidi-boundary-neutral: New file.
54194         * modules/unictype/property-bidi-pdf: New file.
54195         * modules/unictype/property-bidi-embedding-or-override: New file.
54196         * modules/unictype/property-bidi-other-neutral: New file.
54197         * modules/unictype/property-hex-digit: New file.
54198         * modules/unictype/property-ascii-hex-digit: New file.
54199         * modules/unictype/property-ideographic: New file.
54200         * modules/unictype/property-unified-ideograph: New file.
54201         * modules/unictype/property-radical: New file.
54202         * modules/unictype/property-ids-binary-operator: New file.
54203         * modules/unictype/property-ids-trinary-operator: New file.
54204         * modules/unictype/property-zero-width: New file.
54205         * modules/unictype/property-space: New file.
54206         * modules/unictype/property-non-break: New file.
54207         * modules/unictype/property-iso-control: New file.
54208         * modules/unictype/property-format-control: New file.
54209         * modules/unictype/property-dash: New file.
54210         * modules/unictype/property-hyphen: New file.
54211         * modules/unictype/property-punctuation: New file.
54212         * modules/unictype/property-line-separator: New file.
54213         * modules/unictype/property-paragraph-separator: New file.
54214         * modules/unictype/property-quotation-mark: New file.
54215         * modules/unictype/property-sentence-terminal: New file.
54216         * modules/unictype/property-terminal-punctuation: New file.
54217         * modules/unictype/property-currency-symbol: New file.
54218         * modules/unictype/property-math: New file.
54219         * modules/unictype/property-other-math: New file.
54220         * modules/unictype/property-paired-punctuation: New file.
54221         * modules/unictype/property-left-of-pair: New file.
54222         * modules/unictype/property-combining: New file.
54223         * modules/unictype/property-composite: New file.
54224         * modules/unictype/property-decimal-digit: New file.
54225         * modules/unictype/property-numeric: New file.
54226         * modules/unictype/property-diacritic: New file.
54227         * modules/unictype/property-extender: New file.
54228         * modules/unictype/property-ignorable-control: New file.
54229         * modules/unictype/property-test: New file.
54230         * modules/unictype/property-byname: New file.
54231         * modules/unictype/property-all: New file.
54232         * modules/unictype/scripts: New file.
54233         * modules/unictype/scripts-all: New file.
54234         * modules/unictype/block-of: New file.
54235         * modules/unictype/block-test: New file.
54236         * modules/unictype/block-list: New file.
54237         * modules/unictype/block-all: New file.
54238         * modules/unictype/syntax-c-whitespace: New file.
54239         * modules/unictype/syntax-java-whitespace: New file.
54240         * modules/unictype/syntax-c-ident: New file.
54241         * modules/unictype/syntax-java-ident: New file.
54242         * modules/unictype/ctype-alnum: New file.
54243         * modules/unictype/ctype-alpha: New file.
54244         * modules/unictype/ctype-cntrl: New file.
54245         * modules/unictype/ctype-digit: New file.
54246         * modules/unictype/ctype-graph: New file.
54247         * modules/unictype/ctype-lower: New file.
54248         * modules/unictype/ctype-print: New file.
54249         * modules/unictype/ctype-punct: New file.
54250         * modules/unictype/ctype-space: New file.
54251         * modules/unictype/ctype-upper: New file.
54252         * modules/unictype/ctype-xdigit: New file.
54253         * modules/unictype/ctype-blank: New file.
54254         * lib/unictype/bidi_byname.c: New file.
54255         * lib/unictype/bidi_name.c: New file.
54256         * lib/unictype/bidi_of.c: New file.
54257         * lib/unictype/bidi_test.c: New file.
54258         * lib/unictype/bitmap.h: New file.
54259         * lib/unictype/block_test.c: New file.
54260         * lib/unictype/blocks.c: New file.
54261         * lib/unictype/categ_C.c: New file.
54262         * lib/unictype/categ_Cc.c: New file.
54263         * lib/unictype/categ_Cf.c: New file.
54264         * lib/unictype/categ_Cn.c: New file.
54265         * lib/unictype/categ_Co.c: New file.
54266         * lib/unictype/categ_Cs.c: New file.
54267         * lib/unictype/categ_L.c: New file.
54268         * lib/unictype/categ_Ll.c: New file.
54269         * lib/unictype/categ_Lm.c: New file.
54270         * lib/unictype/categ_Lo.c: New file.
54271         * lib/unictype/categ_Lt.c: New file.
54272         * lib/unictype/categ_Lu.c: New file.
54273         * lib/unictype/categ_M.c: New file.
54274         * lib/unictype/categ_Mc.c: New file.
54275         * lib/unictype/categ_Me.c: New file.
54276         * lib/unictype/categ_Mn.c: New file.
54277         * lib/unictype/categ_N.c: New file.
54278         * lib/unictype/categ_Nd.c: New file.
54279         * lib/unictype/categ_Nl.c: New file.
54280         * lib/unictype/categ_No.c: New file.
54281         * lib/unictype/categ_P.c: New file.
54282         * lib/unictype/categ_Pc.c: New file.
54283         * lib/unictype/categ_Pd.c: New file.
54284         * lib/unictype/categ_Pe.c: New file.
54285         * lib/unictype/categ_Pf.c: New file.
54286         * lib/unictype/categ_Pi.c: New file.
54287         * lib/unictype/categ_Po.c: New file.
54288         * lib/unictype/categ_Ps.c: New file.
54289         * lib/unictype/categ_S.c: New file.
54290         * lib/unictype/categ_Sc.c: New file.
54291         * lib/unictype/categ_Sk.c: New file.
54292         * lib/unictype/categ_Sm.c: New file.
54293         * lib/unictype/categ_So.c: New file.
54294         * lib/unictype/categ_Z.c: New file.
54295         * lib/unictype/categ_Zl.c: New file.
54296         * lib/unictype/categ_Zp.c: New file.
54297         * lib/unictype/categ_Zs.c: New file.
54298         * lib/unictype/categ_and.c: New file.
54299         * lib/unictype/categ_and_not.c: New file.
54300         * lib/unictype/categ_byname.c: New file.
54301         * lib/unictype/categ_name.c: New file.
54302         * lib/unictype/categ_none.c: New file.
54303         * lib/unictype/categ_of.c: New file.
54304         * lib/unictype/categ_or.c: New file.
54305         * lib/unictype/categ_test.c: New file.
54306         * lib/unictype/combining.c: New file.
54307         * lib/unictype/ctype_alnum.c: New file.
54308         * lib/unictype/ctype_alpha.c: New file.
54309         * lib/unictype/ctype_blank.c: New file.
54310         * lib/unictype/ctype_cntrl.c: New file.
54311         * lib/unictype/ctype_digit.c: New file.
54312         * lib/unictype/ctype_graph.c: New file.
54313         * lib/unictype/ctype_lower.c: New file.
54314         * lib/unictype/ctype_print.c: New file.
54315         * lib/unictype/ctype_punct.c: New file.
54316         * lib/unictype/ctype_space.c: New file.
54317         * lib/unictype/ctype_upper.c: New file.
54318         * lib/unictype/ctype_xdigit.c: New file.
54319         * lib/unictype/decdigit.c: New file.
54320         * lib/unictype/digit.c: New file.
54321         * lib/unictype/identsyntaxmap.h: New file.
54322         * lib/unictype/mirror.c: New file.
54323         * lib/unictype/numeric.c: New file.
54324         * lib/unictype/pr_alphabetic.c: New file.
54325         * lib/unictype/pr_ascii_hex_digit.c: New file.
54326         * lib/unictype/pr_bidi_arabic_digit.c: New file.
54327         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
54328         * lib/unictype/pr_bidi_block_separator.c: New file.
54329         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
54330         * lib/unictype/pr_bidi_common_separator.c: New file.
54331         * lib/unictype/pr_bidi_control.c: New file.
54332         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
54333         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
54334         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
54335         * lib/unictype/pr_bidi_european_digit.c: New file.
54336         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
54337         * lib/unictype/pr_bidi_left_to_right.c: New file.
54338         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
54339         * lib/unictype/pr_bidi_other_neutral.c: New file.
54340         * lib/unictype/pr_bidi_pdf.c: New file.
54341         * lib/unictype/pr_bidi_segment_separator.c: New file.
54342         * lib/unictype/pr_bidi_whitespace.c: New file.
54343         * lib/unictype/pr_byname.c: New file.
54344         * lib/unictype/pr_byname.gperf: New file.
54345         * lib/unictype/pr_combining.c: New file.
54346         * lib/unictype/pr_composite.c: New file.
54347         * lib/unictype/pr_currency_symbol.c: New file.
54348         * lib/unictype/pr_dash.c: New file.
54349         * lib/unictype/pr_decimal_digit.c: New file.
54350         * lib/unictype/pr_default_ignorable_code_point.c: New file.
54351         * lib/unictype/pr_deprecated.c: New file.
54352         * lib/unictype/pr_diacritic.c: New file.
54353         * lib/unictype/pr_extender.c: New file.
54354         * lib/unictype/pr_format_control.c: New file.
54355         * lib/unictype/pr_grapheme_base.c: New file.
54356         * lib/unictype/pr_grapheme_extend.c: New file.
54357         * lib/unictype/pr_grapheme_link.c: New file.
54358         * lib/unictype/pr_hex_digit.c: New file.
54359         * lib/unictype/pr_hyphen.c: New file.
54360         * lib/unictype/pr_id_continue.c: New file.
54361         * lib/unictype/pr_id_start.c: New file.
54362         * lib/unictype/pr_ideographic.c: New file.
54363         * lib/unictype/pr_ids_binary_operator.c: New file.
54364         * lib/unictype/pr_ids_trinary_operator.c: New file.
54365         * lib/unictype/pr_ignorable_control.c: New file.
54366         * lib/unictype/pr_iso_control.c: New file.
54367         * lib/unictype/pr_join_control.c: New file.
54368         * lib/unictype/pr_left_of_pair.c: New file.
54369         * lib/unictype/pr_line_separator.c: New file.
54370         * lib/unictype/pr_logical_order_exception.c: New file.
54371         * lib/unictype/pr_lowercase.c: New file.
54372         * lib/unictype/pr_math.c: New file.
54373         * lib/unictype/pr_non_break.c: New file.
54374         * lib/unictype/pr_not_a_character.c: New file.
54375         * lib/unictype/pr_numeric.c: New file.
54376         * lib/unictype/pr_other_alphabetic.c: New file.
54377         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
54378         * lib/unictype/pr_other_grapheme_extend.c: New file.
54379         * lib/unictype/pr_other_id_continue.c: New file.
54380         * lib/unictype/pr_other_id_start.c: New file.
54381         * lib/unictype/pr_other_lowercase.c: New file.
54382         * lib/unictype/pr_other_math.c: New file.
54383         * lib/unictype/pr_other_uppercase.c: New file.
54384         * lib/unictype/pr_paired_punctuation.c: New file.
54385         * lib/unictype/pr_paragraph_separator.c: New file.
54386         * lib/unictype/pr_pattern_syntax.c: New file.
54387         * lib/unictype/pr_pattern_white_space.c: New file.
54388         * lib/unictype/pr_private_use.c: New file.
54389         * lib/unictype/pr_punctuation.c: New file.
54390         * lib/unictype/pr_quotation_mark.c: New file.
54391         * lib/unictype/pr_radical.c: New file.
54392         * lib/unictype/pr_sentence_terminal.c: New file.
54393         * lib/unictype/pr_soft_dotted.c: New file.
54394         * lib/unictype/pr_space.c: New file.
54395         * lib/unictype/pr_terminal_punctuation.c: New file.
54396         * lib/unictype/pr_test.c: New file.
54397         * lib/unictype/pr_titlecase.c: New file.
54398         * lib/unictype/pr_unassigned_code_value.c: New file.
54399         * lib/unictype/pr_unified_ideograph.c: New file.
54400         * lib/unictype/pr_uppercase.c: New file.
54401         * lib/unictype/pr_variation_selector.c: New file.
54402         * lib/unictype/pr_white_space.c: New file.
54403         * lib/unictype/pr_xid_continue.c: New file.
54404         * lib/unictype/pr_xid_start.c: New file.
54405         * lib/unictype/pr_zero_width.c: New file.
54406         * lib/unictype/scripts.c: New file.
54407         * lib/unictype/sy_c_ident.c: New file.
54408         * lib/unictype/sy_c_whitespace.c: New file.
54409         * lib/unictype/sy_java_ident.c: New file.
54410         * lib/unictype/sy_java_whitespace.c: New file.
54411
54412         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
54413         Unicode 5.0.0.
54414         * lib/unictype/blocks.h: Likewise.
54415         * lib/unictype/categ_C.h: Likewise.
54416         * lib/unictype/categ_Cc.h: Likewise.
54417         * lib/unictype/categ_Cf.h: Likewise.
54418         * lib/unictype/categ_Cn.h: Likewise.
54419         * lib/unictype/categ_Co.h: Likewise.
54420         * lib/unictype/categ_Cs.h: Likewise.
54421         * lib/unictype/categ_L.h: Likewise.
54422         * lib/unictype/categ_Ll.h: Likewise.
54423         * lib/unictype/categ_Lm.h: Likewise.
54424         * lib/unictype/categ_Lo.h: Likewise.
54425         * lib/unictype/categ_Lt.h: Likewise.
54426         * lib/unictype/categ_Lu.h: Likewise.
54427         * lib/unictype/categ_M.h: Likewise.
54428         * lib/unictype/categ_Mc.h: Likewise.
54429         * lib/unictype/categ_Me.h: Likewise.
54430         * lib/unictype/categ_Mn.h: Likewise.
54431         * lib/unictype/categ_N.h: Likewise.
54432         * lib/unictype/categ_Nd.h: Likewise.
54433         * lib/unictype/categ_Nl.h: Likewise.
54434         * lib/unictype/categ_No.h: Likewise.
54435         * lib/unictype/categ_P.h: Likewise.
54436         * lib/unictype/categ_Pc.h: Likewise.
54437         * lib/unictype/categ_Pd.h: Likewise.
54438         * lib/unictype/categ_Pe.h: Likewise.
54439         * lib/unictype/categ_Pf.h: Likewise.
54440         * lib/unictype/categ_Pi.h: Likewise.
54441         * lib/unictype/categ_Po.h: Likewise.
54442         * lib/unictype/categ_Ps.h: Likewise.
54443         * lib/unictype/categ_S.h: Likewise.
54444         * lib/unictype/categ_Sc.h: Likewise.
54445         * lib/unictype/categ_Sk.h: Likewise.
54446         * lib/unictype/categ_Sm.h: Likewise.
54447         * lib/unictype/categ_So.h: Likewise.
54448         * lib/unictype/categ_Z.h: Likewise.
54449         * lib/unictype/categ_Zl.h: Likewise.
54450         * lib/unictype/categ_Zp.h: Likewise.
54451         * lib/unictype/categ_Zs.h: Likewise.
54452         * lib/unictype/categ_of.h: Likewise.
54453         * lib/unictype/combining.h: Likewise.
54454         * lib/unictype/ctype_alnum.h: Likewise.
54455         * lib/unictype/ctype_alpha.h: Likewise.
54456         * lib/unictype/ctype_blank.h: Likewise.
54457         * lib/unictype/ctype_cntrl.h: Likewise.
54458         * lib/unictype/ctype_digit.h: Likewise.
54459         * lib/unictype/ctype_graph.h: Likewise.
54460         * lib/unictype/ctype_lower.h: Likewise.
54461         * lib/unictype/ctype_print.h: Likewise.
54462         * lib/unictype/ctype_punct.h: Likewise.
54463         * lib/unictype/ctype_space.h: Likewise.
54464         * lib/unictype/ctype_upper.h: Likewise.
54465         * lib/unictype/ctype_xdigit.h: Likewise.
54466         * lib/unictype/decdigit.h: Likewise.
54467         * lib/unictype/digit.h: Likewise.
54468         * lib/unictype/mirror.h: Likewise.
54469         * lib/unictype/numeric.h: Likewise.
54470         * lib/unictype/pr_alphabetic.h: Likewise.
54471         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
54472         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
54473         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
54474         * lib/unictype/pr_bidi_block_separator.h: Likewise.
54475         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
54476         * lib/unictype/pr_bidi_common_separator.h: Likewise.
54477         * lib/unictype/pr_bidi_control.h: Likewise.
54478         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
54479         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
54480         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
54481         * lib/unictype/pr_bidi_european_digit.h: Likewise.
54482         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
54483         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
54484         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
54485         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
54486         * lib/unictype/pr_bidi_pdf.h: Likewise.
54487         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
54488         * lib/unictype/pr_bidi_whitespace.h: Likewise.
54489         * lib/unictype/pr_combining.h: Likewise.
54490         * lib/unictype/pr_composite.h: Likewise.
54491         * lib/unictype/pr_currency_symbol.h: Likewise.
54492         * lib/unictype/pr_dash.h: Likewise.
54493         * lib/unictype/pr_decimal_digit.h: Likewise.
54494         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
54495         * lib/unictype/pr_deprecated.h: Likewise.
54496         * lib/unictype/pr_diacritic.h: Likewise.
54497         * lib/unictype/pr_extender.h: Likewise.
54498         * lib/unictype/pr_format_control.h: Likewise.
54499         * lib/unictype/pr_grapheme_base.h: Likewise.
54500         * lib/unictype/pr_grapheme_extend.h: Likewise.
54501         * lib/unictype/pr_grapheme_link.h: Likewise.
54502         * lib/unictype/pr_hex_digit.h: Likewise.
54503         * lib/unictype/pr_hyphen.h: Likewise.
54504         * lib/unictype/pr_id_continue.h: Likewise.
54505         * lib/unictype/pr_id_start.h: Likewise.
54506         * lib/unictype/pr_ideographic.h: Likewise.
54507         * lib/unictype/pr_ids_binary_operator.h: Likewise.
54508         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
54509         * lib/unictype/pr_ignorable_control.h: Likewise.
54510         * lib/unictype/pr_iso_control.h: Likewise.
54511         * lib/unictype/pr_join_control.h: Likewise.
54512         * lib/unictype/pr_left_of_pair.h: Likewise.
54513         * lib/unictype/pr_line_separator.h: Likewise.
54514         * lib/unictype/pr_logical_order_exception.h: Likewise.
54515         * lib/unictype/pr_lowercase.h: Likewise.
54516         * lib/unictype/pr_math.h: Likewise.
54517         * lib/unictype/pr_non_break.h: Likewise.
54518         * lib/unictype/pr_not_a_character.h: Likewise.
54519         * lib/unictype/pr_numeric.h: Likewise.
54520         * lib/unictype/pr_other_alphabetic.h: Likewise.
54521         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
54522         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
54523         * lib/unictype/pr_other_id_continue.h: Likewise.
54524         * lib/unictype/pr_other_id_start.h: Likewise.
54525         * lib/unictype/pr_other_lowercase.h: Likewise.
54526         * lib/unictype/pr_other_math.h: Likewise.
54527         * lib/unictype/pr_other_uppercase.h: Likewise.
54528         * lib/unictype/pr_paired_punctuation.h: Likewise.
54529         * lib/unictype/pr_paragraph_separator.h: Likewise.
54530         * lib/unictype/pr_pattern_syntax.h: Likewise.
54531         * lib/unictype/pr_pattern_white_space.h: Likewise.
54532         * lib/unictype/pr_private_use.h: Likewise.
54533         * lib/unictype/pr_punctuation.h: Likewise.
54534         * lib/unictype/pr_quotation_mark.h: Likewise.
54535         * lib/unictype/pr_radical.h: Likewise.
54536         * lib/unictype/pr_sentence_terminal.h: Likewise.
54537         * lib/unictype/pr_soft_dotted.h: Likewise.
54538         * lib/unictype/pr_space.h: Likewise.
54539         * lib/unictype/pr_terminal_punctuation.h: Likewise.
54540         * lib/unictype/pr_titlecase.h: Likewise.
54541         * lib/unictype/pr_unassigned_code_value.h: Likewise.
54542         * lib/unictype/pr_unified_ideograph.h: Likewise.
54543         * lib/unictype/pr_uppercase.h: Likewise.
54544         * lib/unictype/pr_variation_selector.h: Likewise.
54545         * lib/unictype/pr_white_space.h: Likewise.
54546         * lib/unictype/pr_xid_continue.h: Likewise.
54547         * lib/unictype/pr_xid_start.h: Likewise.
54548         * lib/unictype/pr_zero_width.h: Likewise.
54549         * lib/unictype/scripts.h: Likewise.
54550         * lib/unictype/scripts_byname.gperf: Likewise.
54551         * lib/unictype/sy_c_ident.h: Likewise.
54552         * lib/unictype/sy_c_whitespace.h: Likewise.
54553         * lib/unictype/sy_java_ident.h: Likewise.
54554         * lib/unictype/sy_java_whitespace.h: Likewise.
54555
54556         * lib/unictype/Makefile: New file.
54557         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
54558         glibc.
54559         * lib/unictype/3level.h: New file, copied from glibc.
54560         * lib/unictype/3levelbit.h: New file.
54561
54562 2007-11-11  Bruno Haible  <bruno@clisp.org>
54563
54564         * modules/gperf: New file.
54565         * modules/iconv_open (Depends-on): Add it.
54566         (Makefile.am): Remove the GPERF definition.
54567
54568 2007-11-11  Bruno Haible  <bruno@clisp.org>
54569
54570         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
54571         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
54572
54573 2007-11-11  Bruno Haible  <bruno@clisp.org>
54574
54575         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
54576         (usage): Remove function.
54577
54578 2007-11-11  Bruno Haible  <bruno@clisp.org>
54579
54580         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
54581         gl_FUNC_CEILF_LIBS.
54582         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
54583         gl_FUNC_CEIL_LIBS.
54584         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
54585         gl_FUNC_CEILL_LIBS.
54586         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
54587         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
54588         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
54589
54590 2007-11-11  Bruno Haible  <bruno@clisp.org>
54591
54592         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
54593         roundf were declared but do not exist on functions.
54594         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
54595         roundl were declared but do not exist on functions.
54596         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
54597         HAVE_FLOORL_AND_CEILL, respectively.
54598         Needed for Sun C on Solaris 10.
54599
54600 2007-11-11  Bruno Haible  <bruno@clisp.org>
54601
54602         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
54603         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
54604         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
54605         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
54606         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
54607         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
54608         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
54609         HAVE_DECL_ROUNDF.
54610         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
54611         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
54612         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
54613         of HAVE_DECL_ROUND*.
54614         * modules/math (Makefile.am): Update.
54615
54616 2007-11-10  Bruno Haible  <bruno@clisp.org>
54617
54618         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
54619         ptrdiff_t as m4/intl.m4.
54620
54621 2007-11-10  Jim Meyering  <meyering@redhat.com>
54622
54623         Avoid link failure for the argmatch test.
54624         * tests/test-argmatch.c (usage): Define function to avoid a link
54625         failure: argmatch_die requires a usage function.
54626
54627 2007-11-09  Bruno Haible  <bruno@clisp.org>
54628
54629         * doc/functions/snprintf.texi: Mention BeOS deficiency.
54630         * doc/functions/vsnprintf.texi: Likewise.
54631         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
54632         with a size argument < 2.
54633
54634 2007-11-09  Bruno Haible  <bruno@clisp.org>
54635
54636         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
54637         buffer. Fixes an inefficiency introduced on 2007-11-03.
54638
54639 2007-11-09  Bruno Haible  <bruno@clisp.org>
54640
54641         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
54642         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
54643
54644 2007-11-08  Jim Meyering  <meyering@redhat.com>
54645
54646         Change cache variable name prefix "jm_" to "gl_" everywhere.
54647         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
54648         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
54649         * m4/uptime.m4: s/gl_/jm_/
54650
54651 2007-11-07  Bruno Haible  <bruno@clisp.org>
54652
54653         Update to GNU gettext 0.17.
54654         * m4/intl.m4: Update to GNU gettext 0.17.
54655         * m4/po.m4: Likewise.
54656         * modules/gettext (Files): Remove m4/ulonglong.m4.
54657         (configure.ac): Require gettext infrastructure from version 0.17.
54658
54659 2007-11-06  Bruno Haible  <bruno@clisp.org>
54660
54661         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
54662         symbolic values are not defined in a public header.
54663         * lib/freadable.c (freadable) [QNX]: Likewise.
54664         * lib/freadahead.c (freadahead) [QNX]: Likewise.
54665         * lib/freading.c (freading) [QNX]: Likewise.
54666         * lib/fseterr.c (fseterr) [QNX]: Likewise.
54667         * lib/fwritable.c (fwritable) [QNX]: Likewise.
54668         * lib/fwriting.c (fwriting) [QNX]: Likewise.
54669         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
54670         Reported by Alain Magloire.
54671
54672         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
54673
54674 2007-11-05  Bruno Haible  <bruno@clisp.org>
54675
54676         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
54677         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
54678         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
54679         Reported by Eric Blake.
54680
54681 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54682             Bruno Haible  <bruno@clisp.org>
54683
54684         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
54685         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
54686         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
54687         (malloc): Undefine also before including <stdlib.h>.
54688         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
54689         Needed on OSF/1 4.0.
54690
54691 2007-11-05  Jim Meyering  <meyering@redhat.com>
54692
54693         git-version-gen: sync from coreutils.
54694         * build-aux/git-version-gen: Add comments.
54695         Change the first '-' to '.' in the snapshot version string,
54696         e.g., 6.9-377-08144 -> 6.9.377-08144
54697         Remove first parameter.
54698         Don't declare a version "-dirty" merely because a time
54699         stamp has changed.
54700
54701 2007-11-04  Bruno Haible  <bruno@clisp.org>
54702
54703         * lib/lock.h: Protect all macro definitions containing an 'if'
54704         statement through a "do { ... } while (0)".
54705         * lib/tls.h: Likewise.
54706
54707 2007-11-04  Bruno Haible  <bruno@clisp.org>
54708
54709         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
54710
54711 2007-11-04  Bruno Haible  <bruno@clisp.org>
54712
54713         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
54714         * modules/fprintf-posix (Depends-on): Add nocrash.
54715         * modules/snprintf-posix (Depends-on): Likewise.
54716         * modules/sprintf-posix (Depends-on): Likewise.
54717         * modules/vasnprintf-posix (Depends-on): Likewise.
54718         * modules/vasprintf-posix (Depends-on): Likewise.
54719         * modules/vfprintf-posix (Depends-on): Likewise.
54720         * modules/vsnprintf-posix (Depends-on): Likewise.
54721         * modules/vsprintf-posix (Depends-on): Likewise.
54722         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54723         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54724         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54725         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54726         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54727         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54728         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54729
54730 2007-11-04  Bruno Haible  <bruno@clisp.org>
54731
54732         * modules/nocrash: New file.
54733         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
54734         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
54735
54736 2007-11-04  Bruno Haible  <bruno@clisp.org>
54737
54738         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
54739         precision handling.
54740         * tests/test-vasprintf-posix.c (test_function): Likewise.
54741         * tests/test-snprintf-posix.h (test_function): Likewise.
54742         * tests/test-sprintf-posix.h (test_function): Likewise.
54743
54744         Fix *printf behaviour for large precisions on mingw and BeOS.
54745         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
54746         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
54747         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
54748         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54749         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54750         gl_PRINTF_PRECISION and test its result. Invoke
54751         gl_PREREQ_VASNPRINTF_PRECISION.
54752         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54753         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54754         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54755         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54756         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54757         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54758         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54759         * doc/functions/fprintf.texi: Update.
54760         * doc/functions/printf.texi: Update.
54761         * doc/functions/snprintf.texi: Update.
54762         * doc/functions/sprintf.texi: Update.
54763         * doc/functions/vfprintf.texi: Update.
54764         * doc/functions/vprintf.texi: Update.
54765         * doc/functions/vsnprintf.texi: Update.
54766         * doc/functions/vsprintf.texi: Update.
54767
54768 2007-11-04  Bruno Haible  <bruno@clisp.org>
54769
54770         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
54771
54772 2007-11-04  Bruno Haible  <bruno@clisp.org>
54773
54774         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
54775         Reported by Sylvain Beucler <beuc@gnu.org>.
54776
54777 2007-11-03  Bruno Haible  <bruno@clisp.org>
54778
54779         * tests/test-fprintf-posix2.sh: New file.
54780         * tests/test-fprintf-posix2.c: New file.
54781         * modules/fprintf-posix-tests (Files): Add them.
54782         (TESTS): Add test-fprintf-posix2.sh.
54783         (configure.ac): Check for getrlimit and setrlimit.
54784         (check_PROGRAMS): Add test-fprintf-posix2.
54785
54786         * tests/test-printf-posix2.sh: New file.
54787         * tests/test-printf-posix2.c: New file.
54788         * modules/printf-posix-tests (Files): Add them.
54789         (TESTS): Add test-printf-posix2.sh.
54790         (configure.ac): Check for getrlimit and setrlimit.
54791         (check_PROGRAMS): Add test-printf-posix2.
54792
54793         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
54794         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
54795         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
54796         (decode_double): New function, copied from decode_long_double.
54797         (scale10_round_decimal_decoded): New function, extracted from
54798         scale10_round_decimal_long_double.
54799         (scale10_round_decimal_long_double): Use it.
54800         (scale10_round_decimal_double): New function.
54801         (floorlog10): New function.
54802         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
54803         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
54804         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54805         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54806         gl_PRINTF_ENOMEM and test its result. Invoke
54807         gl_PREREQ_VASNPRINTF_ENOMEM.
54808         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54809         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54810         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54811         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54812         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54813         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54814         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54815         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
54816         * modules/snprintf-posix (Depends-on): Likewise.
54817         * modules/sprintf-posix (Depends-on): Likewise.
54818         * modules/vasnprintf-posix (Depends-on): Likewise.
54819         * modules/vasprintf-posix (Depends-on): Likewise.
54820         * modules/vfprintf-posix (Depends-on): Likewise.
54821         * modules/vsnprintf-posix (Depends-on): Likewise.
54822         * modules/vsprintf-posix (Depends-on): Likewise.
54823         * doc/functions/fprintf.texi: Update.
54824         * doc/functions/printf.texi: Update.
54825         * doc/functions/snprintf.texi: Update.
54826         * doc/functions/sprintf.texi: Update.
54827         * doc/functions/vfprintf.texi: Update.
54828         * doc/functions/vprintf.texi: Update.
54829         * doc/functions/vsnprintf.texi: Update.
54830         * doc/functions/vsprintf.texi: Update.
54831
54832 2007-11-03  Bruno Haible  <bruno@clisp.org>
54833
54834         * modules/frexp-nolibm-tests: New file.
54835
54836         * modules/frexp-nolibm: New file.
54837         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
54838
54839 2007-11-03  Bruno Haible  <bruno@clisp.org>
54840
54841         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
54842         value is C99 compliant.
54843         Needed for OSF/1 5.1.
54844
54845 2007-11-03  Bruno Haible  <bruno@clisp.org>
54846
54847         Fix out-of-memory handling of vasnprintf.
54848         * lib/printf-parse.c: Include <errno.h>.
54849         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
54850         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
54851         is already set.
54852
54853 2007-11-02  Eric Blake  <ebb9@byu.net>
54854
54855         Fix tests on cygwin.
54856         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
54857
54858 2007-11-01  Bruno Haible  <bruno@clisp.org>
54859
54860         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
54861         warning.
54862         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
54863         needed for POSIX compatibility.
54864
54865 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54866
54867         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
54868         for compatibility with GNU.
54869
54870 2007-11-01  Bruno Haible  <bruno@clisp.org>
54871
54872         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
54873         (putenv): Renamed from rpl_putenv. Change argument type from
54874         'const char *' to 'char *'.
54875         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
54876         of defining putenv in config.h, just set REPLACE_PUTENV.
54877         * modules/putenv (Depends-on): Add stdlib.
54878         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54879         (Include): Use <stdlib.h>.
54880         * lib/stdlib.in.h (putenv): New declaration.
54881         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
54882         REPLACE_PUTENV.
54883         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
54884         REPLACE_PUTENV.
54885         Needed for MacOS X 10.5.0.
54886         Reported by Peter O'Gorman <peter@pogma.com>.
54887
54888 2007-11-01  Jim Meyering  <meyering@redhat.com>
54889
54890         Treat an empty date string exactly like "0".
54891         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
54892         if the remaining date string (to be parsed) is empty, use "0".
54893         Reported by Mischa Molhoek and discussed in this thread:
54894         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
54895
54896 2007-10-31  Bruno Haible  <bruno@clisp.org>
54897
54898         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
54899         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
54900         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
54901         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
54902         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
54903         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
54904
54905 2007-10-31  Bruno Haible  <bruno@clisp.org>
54906
54907         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
54908         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
54909         (AC_TYPE_LONG_LONG_INT): Use it.
54910         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
54911         it as well.
54912         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
54913         to m4/longlong.m4.
54914         * modules/stdint (Files): Remove m4/ulonglong.m4.
54915         * modules/strtoull (Files): Use m4/longlong.m4 instead of
54916         m4/ulonglong.m4.
54917         * modules/strtoumax (Files): Likewise.
54918
54919 2007-10-30  Bruno Haible  <bruno@clisp.org>
54920
54921         * modules/xvasprintf-posix: New file.
54922         Suggested by Eric Blake.
54923
54924 2007-10-30  Bruno Haible  <bruno@clisp.org>
54925
54926         * modules/xprintf-posix-tests: New file.
54927         * tests/test-xprintf-posix.sh: New file.
54928         * tests/test-xprintf-posix.c: New file.
54929         * tests/test-xfprintf-posix.c: New file.
54930
54931         * modules/xprintf-posix: New file.
54932
54933 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54934
54935         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
54936         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
54937         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
54938
54939 2007-10-29  Bruno Haible  <bruno@clisp.org>
54940
54941         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
54942         contain the special marker '_cv_'.
54943         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
54944         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
54945         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
54946         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
54947         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
54948         Reported by Ralf Wildenhues.
54949
54950 2007-10-29  Bruno Haible  <bruno@clisp.org>
54951
54952         * gnulib-tool (func_import): When --lgpl is not specified, set
54953         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
54954         GPLv3.
54955         Reported by Simon Josefsson.
54956
54957 2007-10-28  Bruno Haible  <bruno@clisp.org>
54958
54959         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
54960         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
54961         HAVE_DECL_ISFINITE.
54962         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54963         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
54964         HAVE_DECL_ISFINITE.
54965
54966 2007-10-28  Bruno Haible  <bruno@clisp.org>
54967
54968         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
54969         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
54970
54971 2007-10-28  Bruno Haible  <bruno@clisp.org>
54972
54973         Fix link errors with Sun C 5.0 on Solaris 10.
54974         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
54975         function is declared but not present in the compiler's libm.
54976         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
54977         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
54978         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
54979         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
54980         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
54981         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
54982         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
54983         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54984         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
54985         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
54986         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
54987         HAVE_DECL_FLOORL.
54988
54989 2007-10-28  Bruno Haible  <bruno@clisp.org>
54990
54991         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
54992         gl_FUNC_FLOORL. Cache the result.
54993         (gl_FUNC_FLOORL): Use it.
54994         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
54995         gl_FUNC_CEILL. Cache the result.
54996         (gl_FUNC_CEILL): Use it.
54997
54998         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
54999         gl_FUNC_FLOOR. Cache the result.
55000         (gl_FUNC_FLOOR): Use it.
55001         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
55002         gl_FUNC_CEIL. Cache the result.
55003         (gl_FUNC_CEIL): Use it.
55004
55005         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
55006         gl_FUNC_FLOORF. Cache the result.
55007         (gl_FUNC_FLOORF): Use it.
55008         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
55009         gl_FUNC_CEILF. Cache the result.
55010         (gl_FUNC_CEILF): Use it.
55011
55012 2007-10-28  Bruno Haible  <bruno@clisp.org>
55013
55014         * gnulib-tool: Allow specifying the LGPL version number through
55015         --lgpl=2 or --lgpl=3.
55016         (func_usage): Document --lgpl with argument.
55017         Handle --lgpl=... arguments.
55018         (func_import): Recognize also gl_LGPL calls with an argument. When
55019         --lgpl=2 is used and the module's license is just LGPL, report an
55020         error. Set sed_transform_lib_file according to the lgpl variable. In
55021         the generated files, use --lgpl or gl_LGPL invocations with argument,
55022         if necessary.
55023         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
55024         an LGPv2+ license.
55025         * doc/gnulib-tool.texi (Modified imports): Update explanation of
55026         gl_LGPL macro.
55027
55028 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55029             Bruno Haible  <bruno@clisp.org>
55030
55031         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
55032         (u16_uctomb_aux): Likewise.
55033         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
55034         !HAVE_INLINE.
55035         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
55036
55037 2007-10-28  Bruno Haible  <bruno@clisp.org>
55038
55039         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
55040         Invoke AM_GETTEXT_OPTION if it exists.
55041         * modules/vasprintf: Likewise.
55042         * modules/verror: Likewise.
55043         * modules/xprintf: Likewise.
55044         * modules/xvasprintf: Likewise.
55045
55046 2007-10-27  Ben Pfaff  <blp@gnu.org>
55047
55048         * lib/math.in.h: Define isfinite macro and prototypes for
55049         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
55050         implementations.
55051         * m4/math_h.m4: New substitutions for isfinite module.
55052         * lib/isfinite.c: New file.
55053         * m4/isfinite.m4: New file.
55054         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
55055         * modules/isfinite: New file.
55056         * modules/isfinite-tests: New file.
55057         * tests/tests-isfinite.c: New file.
55058         * doc/functions/isfinite.texi: Mention isfinite module.
55059         * MODULES.html.sh: Mention new module.
55060
55061 2007-10-27  Ben Pfaff  <blp@gnu.org>
55062
55063         Ralf Wildenhues reported that Tru64 4.0D declares the round
55064         functions but does not have definitions.
55065         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
55066         cannot be found in any library, set the output variable to
55067         "missing" instead of "".
55068         * m4/round.m4: Also use our substitute if we cannot find round in
55069         any library, even if it is declared.
55070         * m4/roundf.m4: Likewise for roundf.
55071         * m4/roundl.m4: Likewise for roundl.
55072         * lib/math.in.h: Undefine roundf, round, roundl before defining
55073         their replacements, to allow for hypothetical systems where these
55074         may be defined as macros but not available in libraries.
55075
55076 2007-10-27  Bruno Haible  <bruno@clisp.org>
55077
55078         * doc/gnulib.texi: Invoke @firstparagraphindent.
55079         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
55080         changes in gnulib.
55081         (Source changes): New section.
55082
55083 2007-10-26  Bruno Haible  <bruno@clisp.org>
55084
55085         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
55086         borrowed from autoconf.
55087
55088 2007-10-26  Bruno Haible  <bruno@clisp.org>
55089
55090         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
55091         strerror returned the empty string. Needed on HP-UX 11.00.
55092
55093 2007-10-24  Micah Cowan  <micah@cowan.name>
55094
55095         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
55096         * build-aux/bootstrap: Remove support for now-unnecessary option,
55097         --cvs-user, and envvars CVS_USER, CVS_RSH.
55098
55099 2007-10-24  Jim Meyering  <meyering@redhat.com>
55100
55101         Avoid diagnostics from sha1sum when there is no cached checksum.
55102         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
55103         if the po.s1 file hasn't been created yet.
55104
55105         * build-aux/bootstrap: Sync from coreutils:
55106         2007-10-24  Jim Meyering  <meyering@redhat.com>
55107         Get gnulib from the git repository, not from an obsolete cvs one.
55108         * build-aux/bootstrap: Suggestion from Micah Cowan.
55109         2007-10-04  Jim Meyering  <jim@meyering.net>
55110         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
55111         (update_po_files): Work also when there are no .po files in po/.
55112
55113 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55114
55115         * README: Append ".git" to git and cg examples.
55116         Problem reported by Benoit Sigoure.
55117
55118 2007-10-23  Micah Cowan  <micah@cowan.name>
55119
55120         * users.txt: Add wget.
55121
55122 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55123
55124         Fix linking of some unistdio tests on FreeBSD.
55125         * modules/unistdio/u16-vsnprintf-tests
55126         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
55127         * modules/unistdio/u16-vsprintf-tests
55128         (test_u16_vsnprintf1_LDADD): Likewise.
55129         * modules/unistdio/u32-vsnprintf-tests
55130         (test_u32_vsnprintf1_LDADD): Likewise.
55131         * modules/unistdio/u32-vsprintf-tests
55132         (test_u32_vsprintf1_LDADD): Likewise.
55133         * modules/unistdio/u8-vsnprintf-tests
55134         (test_u8_vsnprintf1_LDADD): Likewise.
55135         * modules/unistdio/u8-vsprintf-tests
55136         (test_u8_vsprintf1_LDADD): Likewise.
55137         * modules/unistdio/ulc-vsnprintf-tests
55138         (test_ulc_vsnprintf1_LDADD): Likewise.
55139         * modules/unistdio/ulc-vsprintf-tests
55140         (test_ulc_vsprintf1_LDADD): Likewise.
55141
55142         Fix linking of some uniconv tests on FreeBSD.
55143         * modules/uniconv/u16-conv-from-enc-tests
55144         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
55145         * modules/uniconv/u16-conv-to-enc-tests
55146         (test_u16_conv_to_enc_LDADD): Likewise.
55147         * modules/uniconv/u16-strconv-from-enc-tests
55148         (test_u16_strconv_from_enc_LDADD): Likewise.
55149         * modules/uniconv/u16-strconv-to-enc-tests
55150         (test_u16_strconv_to_enc_LDADD): Likewise.
55151         * modules/uniconv/u32-conv-from-enc-tests
55152         (test_u32_conv_from_enc_LDADD): Likewise.
55153         * modules/uniconv/u32-conv-to-enc-tests
55154         (test_u32_conv_to_enc_LDADD): Likewise.
55155         * modules/uniconv/u32-strconv-from-enc-tests
55156         (test_u32_strconv_from_enc_LDADD): Likewise.
55157         * modules/uniconv/u32-strconv-to-enc-tests
55158         (test_u32_strconv_to_enc_LDADD): Likewise.
55159         * modules/uniconv/u8-conv-from-enc-tests
55160         (test_u8_conv_from_enc_LDADD): Likewise.
55161         * modules/uniconv/u8-conv-to-enc-tests
55162         (test_u8_conv_to_enc_LDADD): Likewise.
55163         * modules/uniconv/u8-strconv-from-enc-tests
55164         (test_u8_strconv_from_enc_LDADD): Likewise.
55165         * modules/uniconv/u8-strconv-to-enc-tests
55166         (test_u8_strconv_to_enc_LDADD): Likewise.
55167
55168 2007-10-22  Bruno Haible  <bruno@clisp.org>
55169
55170         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
55171         size.
55172
55173 2007-10-22  Eric Blake  <ebb9@byu.net>
55174
55175         Tweak x*printf documentation.
55176         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
55177         variable name and comments.
55178         Suggested by Bruno Haible.
55179
55180 2007-10-22  Bruno Haible  <bruno@clisp.org>
55181
55182         * lib/acl.c (copy_acl): Fix file name in comment.
55183
55184 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55185
55186         Fix Tru64 problem with stdbool.h.
55187         * lib/stdbool.in.h (false, true):
55188         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
55189         Don't declare as an enum in this situation; it runs afoul of Tru64.
55190         Problem reported by Steven M. Schweda in
55191         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
55192
55193 2007-10-22  Eric Blake  <ebb9@byu.net>
55194
55195         Also wrap vf?printf.
55196         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
55197         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
55198         (xvprintf, xvfprintf): New functions.
55199
55200 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55201
55202         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
55203         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
55204
55205         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
55206         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
55207
55208 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55209
55210         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
55211         by Bruno Haible.
55212
55213 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55214
55215         * lib/getloadavg.c
55216         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
55217         Undef `sys' after including sys/table.h, for Tru64 4.0D.
55218
55219         * tests/test-i-ring.c: Work for C89.
55220
55221 2007-10-22  Bruno Haible  <bruno@clisp.org>
55222
55223         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
55224         -1u, in preprocessor expression, so that we don't test for the bug
55225         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
55226         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
55227
55228 2007-10-22  Eric Blake  <ebb9@byu.net>
55229
55230         * tests/test-yesno.sh: Silence stderr during test.
55231
55232 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55233
55234         * modules/crypto/gc-camellia: New file.
55235
55236         * m4/gc-camellia.m4: New file.
55237
55238         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
55239
55240         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
55241
55242 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55243
55244         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
55245         --help to stdout.  Reported by sms@antinode.org (Steven
55246         M. Schweda).
55247
55248 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55249
55250         * users.txt: Fix link to libksba.
55251
55252 2007-10-21  Ben Pfaff  <blp@gnu.org>
55253
55254         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
55255         round.c roundf implementation that depends on floorf and ceilf to
55256         be tested unconditionally.
55257
55258 2007-10-21  Ben Pfaff  <blp@gnu.org>
55259
55260         * m4/check-libm-func.m4: Removed.
55261         * m4/check-math-lib.m4: New file.
55262         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
55263         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
55264         definition and lack of AC_LIBOBJ([roundf]).
55265         * m4/roundl.m4: Ditto, and similarly for roundl.
55266         * modules/round: Reference new m4 file.
55267         * modules/roundf: Ditto.
55268         * modules/roundl: Ditto.
55269         * tests/test-round2.c (main): Use ROUND instead of round.
55270         Bug report from Bruno Haible.
55271
55272 2007-10-21  Bruno Haible  <bruno@clisp.org>
55273
55274         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
55275         context.
55276
55277 2007-10-21  Bruno Haible  <bruno@clisp.org>
55278
55279         * tests/test-wcwidth.c (main): Allow negative result for some control
55280         characters.
55281
55282         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
55283         Needed on OSF/1 5.1.
55284
55285 2007-10-21  Bruno Haible  <bruno@clisp.org>
55286
55287         * tests/test-floorf1.c: Include isnanf.h.
55288         (main): Use isnanf() instead of isnan().
55289         * tests/test-ceilf1.c: Include isnanf.h.
55290         (main): Use isnanf() instead of isnan().
55291         * tests/test-truncf1.c: Include isnanf.h.
55292         (main): Use isnanf() instead of isnan().
55293         * tests/test-roundf1.c: Include isnanf.h.
55294         (main): Use isnanf() instead of isnan().
55295
55296 2007-10-21  Eric Blake  <ebb9@byu.net>
55297
55298         * users.txt: Update URL for m4.
55299
55300 2007-10-21  Bruno Haible  <bruno@clisp.org>
55301
55302         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
55303
55304 2007-10-21  Bruno Haible  <bruno@clisp.org>
55305
55306         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
55307         Git's management files if the CVS files are not present.
55308
55309 2007-10-20  Bruno Haible  <bruno@clisp.org>
55310
55311         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
55312         gcc-3.4.x.
55313
55314 2007-10-20  Ben Pfaff  <blp@gnu.org>
55315
55316         * lib/math.in.h: Declare round, roundf, roundl if we are providing
55317         implementations.
55318         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
55319         * lib/round.c: New file.
55320         * lib/roundf.c: New file.
55321         * lib/roundl.c: New file.
55322         * m4/round.m4: New file.
55323         * m4/roundf.m4: New file.
55324         * m4/roundl.m4: New file.
55325         * m4/check-libm-func-m4: New file.
55326         * modules/math: Replace round, roundf, roundl related @VARS@ in
55327         math.in.h.
55328         * modules/round: New file.
55329         * modules/round-tests: New file.
55330         * modules/roundf: New file.
55331         * modules/roundf-tests: New file.
55332         * modules/roundl: New file.
55333         * modules/roundl-tests: New file.
55334         * tests/test-round1.c: New file.
55335         * tests/test-round2.c: New file.
55336         * tests/test-roundf1.c: New file.
55337         * tests/test-roundf2.c: New file.
55338         * tests/test-roundl.c: New file.
55339         * doc/functions/round.texi: Mention round module.
55340         * doc/functions/roundf.texi: Mention roundf module.
55341         * doc/functions/roundl.texi: Mention roundl module.
55342         * MODULES.html.sh: Mention new modules.
55343         Thanks to Bruno Haible for suggestions.
55344
55345 2007-10-20  Jim Meyering  <meyering@redhat.com>
55346
55347         * lib/xprintf.c: Include <config.h> unconditionally.
55348
55349         Change xprintf's license to GPL.
55350         * modules/xprintf (License): s/LGPL/GPL/, since this module
55351         depends on modules (exit and exitfail) which are GPL.
55352         Suggestion from Bruno Haible.
55353
55354         xprintf fixes.
55355         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
55356         Use a clearer diagnostic.
55357         Patch from Bruno Haible.
55358
55359 2007-10-20  Bruno Haible  <bruno@clisp.org>
55360
55361         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
55362         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
55363         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55364
55365 2007-10-20  Bruno Haible  <bruno@clisp.org>
55366
55367         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
55368         precision in the comparison result > x - 1 or similar.
55369         * tests/test-ceilf2.c (correct_result_p): Likewise.
55370         * tests/test-truncf2.c (correct_result_p): Likewise.
55371         * tests/test-trunc2.c (correct_result_p): Likewise.
55372         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55373
55374 2007-10-20  Bruno Haible  <bruno@clisp.org>
55375
55376         * modules/ceil: New file.
55377         * m4/ceil.m4: New file.
55378         * doc/functions/ceil.texi: Mention the 'ceil' module.
55379
55380 2007-10-20  Bruno Haible  <bruno@clisp.org>
55381
55382         * modules/floor: New file.
55383         * m4/floor.m4: New file.
55384         * doc/functions/floor.texi: Mention the 'floor' module.
55385
55386 2007-10-20  Bruno Haible  <bruno@clisp.org>
55387
55388         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
55389         of %a.
55390         * modules/floorf-tests (Depends-on): Likewise.
55391         * modules/truncf-tests (Depends-on): Likewise.
55392         * modules/trunc-tests (Depends-on): Likewise.
55393         Reported by Ben Pfaff.
55394
55395 2007-10-19  Jim Meyering  <meyering@redhat.com>
55396
55397         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
55398         Don't bother testing specific errno values.  Just test ferror.
55399
55400         New module: xprintf
55401         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
55402
55403 2007-10-19  Bruno Haible  <bruno@clisp.org>
55404
55405         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
55406         syntax.
55407         * modules/javaexec (Makefile.am): Likewise.
55408         * modules/relocatable-prog (Makefile.am): Likewise.
55409         Suggested by Jim Meyering.
55410
55411 2007-10-18  Bruno Haible  <bruno@clisp.org>
55412
55413         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
55414         Reported by Jim Meyering.
55415
55416 2007-10-18  Eric Blake  <ebb9@byu.net>
55417
55418         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
55419
55420 2007-10-18  Bruno Haible  <bruno@clisp.org>
55421
55422         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
55423         the format string into writable memory. Needed in Fortify conditions.
55424
55425 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
55426             Bruno Haible  <bruno@clisp.org>
55427
55428         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
55429         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
55430         * modules/trim (Depends-on): Add mbchar.
55431         (configure.ac): Add gl_FUNC_MBRTOWC.
55432         (Makefile.am): Augment lib_SOURCES.
55433
55434 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
55435
55436         Modify glob.c to use fstatat and dirfd, to simplify it.
55437         Suggested by Eric Blake.
55438         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
55439         Don't include <stdbool.h>; not used.
55440         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
55441         (link_exists_p): Simplify implementation, since we can now assume
55442         dirfd and fstatat.
55443         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
55444
55445 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55446
55447         * gnulib-tool (func_get_dependencies): Fix sed script to
55448         match only tests.
55449
55450 2007-10-17  Bruno Haible  <bruno@clisp.org>
55451
55452         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
55453         allow locale names without encoding suffix.
55454         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
55455         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55456
55457 2007-10-16  Bruno Haible  <bruno@clisp.org>
55458
55459         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
55460         * lib/getgroups.c (getgroups): Likewise.
55461         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
55462
55463 2007-10-16  Bruno Haible  <bruno@clisp.org>
55464
55465         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
55466         * modules/malloc-posix (License): Likewise.
55467         * modules/realloc-posix (License): Likewise.
55468         * modules/calloc-posix (License): Likewise.
55469         * modules/intprops (License): Change from GPL to LGPL, with
55470         Paul Eggert's approval.
55471
55472 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55473
55474         Merge glibc changes into lib/glob.c.
55475
55476         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
55477         2007-10-15 04:59:03 UTC.  Here are the changes:
55478
55479         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
55480
55481         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
55482
55483         * lib/glob.c: Add some branch prediction throughout.
55484
55485         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
55486
55487         [BZ #5103]
55488         * lib/glob.c (glob): Recognize patterns starting \/.
55489
55490         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
55491
55492         [BZ #3996]
55493         * lib/glob.c (attribute_hidden): Define if not defined.
55494         (glob): Unescape dirname, filename or username when needed and not
55495         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
55496         is NULL.  Handle unescaped [ in pattern without closing ].
55497         Don't pass GLOB_CHECK down to recursive glob for directories.
55498         (__glob_pattern_type): New function.
55499         (__glob_pattern_p): Implement using __glob_pattern_type.
55500         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
55501         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
55502         Remove unreachable code.
55503
55504         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
55505
55506         * lib/glob.c (glob_in_dir): Add some comments and asserts to
55507         explain why there are no leaks.
55508
55509         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
55510
55511         [BZ #3253]
55512         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
55513         time, rather allocate increasingly bigger arrays of pointers, if
55514         possible with alloca, if too large with malloc.
55515
55516 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55517
55518         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
55519         Problem reported by H.Merijn Brand in
55520         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
55521         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
55522         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
55523
55524 2007-10-15  Bruno Haible  <bruno@clisp.org>
55525
55526         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
55527         with explicit rpl_ prefix.
55528         * lib/fopen.c (fopen): Likewise.
55529         * lib/freopen.c (freopen): Likewise.
55530         * lib/iconv.c (iconv): Likewise.
55531         * lib/iconv_close.c (iconv_close): Likewise.
55532
55533 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55534
55535         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
55536
55537 2007-10-15  Bruno Haible  <bruno@clisp.org>
55538
55539         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
55540         <stddef.h> instead of <stdlib.h> since we only need NULL.
55541         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55542
55543 2007-10-15  Bruno Haible  <bruno@clisp.org>
55544
55545         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
55546         Replace paragraph talking about LIBOBJS.
55547         Reported by Colin Watson <cjwatson@debian.org>.
55548
55549 2007-10-15  Bruno Haible  <bruno@clisp.org>
55550
55551         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
55552         <stdlib.h> before using NULL.
55553
55554 2007-10-15  Simon Josefsson  <simon@josefsson.org>
55555
55556         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
55557         Reported by Albert Chin <china@thewrittenword.com>.
55558
55559 2007-10-14  Bruno Haible  <bruno@clisp.org>
55560
55561         * modules/iconv_open-utf-tests: New file.
55562         * tests/test-iconv-utf.c: New file.
55563
55564         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
55565         * modules/iconv_open-utf: New file.
55566         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
55567         (iconv, iconv_close): New declarations.
55568         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
55569         be defined.
55570         (iconv_open): Add special handling of conversion between UTF-8 and
55571         UTF-{16,32}{BE,LE}.
55572         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
55573         * lib/iconv_close.c: New file.
55574         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
55575         gl_FUNC_ICONV_OPEN.
55576         (gl_FUNC_ICONV_OPEN): Use it.
55577         (gl_FUNC_ICONV_OPEN_UTF): New macro.
55578         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
55579         and REPLACE_ICONV_UTF.
55580         * modules/iconv_open (Depends-on): Add c-strcase.
55581         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
55582         ICONV_CONST.
55583         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
55584
55585 2007-10-13  Albert Chin  <china@thewrittenword.com>
55586             Bruno Haible  <bruno@clisp.org>
55587
55588         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
55589         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
55590
55591 2007-10-13  Bruno Haible  <bruno@clisp.org>
55592
55593         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
55594         defined, use the ISO C99 inline semantics.
55595         * lib/argp.h (ARGP_EI): Likewise.
55596
55597 2007-10-13  Bruno Haible  <bruno@clisp.org>
55598
55599         Handle 'inline' change in gcc 4.3.0.
55600         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
55601         argp_fmtstream_write, argp_fmtstream_set_lmargin,
55602         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
55603         argp_fmtstream_point): Disable 'extern' declaration if the function
55604         definition is going to be provided inline.
55605         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
55606         semantics, not the ISO C99 inline semantics.
55607         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
55608         'extern' declaration if the function definition is going to be provided
55609         inline.
55610         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
55611         the GNU C inline semantics, not the ISO C99 inline semantics. With
55612         GCC 4.2, avoid a warning.
55613
55614 2007-10-13  Bruno Haible  <bruno@clisp.org>
55615
55616         * lib/freading.h (freading): Enable the use of __freading for
55617         glibc >= 2.7.
55618         * lib/freading.c (freading): Likewise.
55619
55620 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55621
55622         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
55623         "warning: C99 inline functions are not supported; using GNU89".
55624
55625 2007-10-12  Bruno Haible  <bruno@clisp.org>
55626
55627         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
55628         of 2.
55629         * tests/test-ceilf2.c: New file.
55630         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
55631
55632         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
55633         * modules/ceilf-tests: Update.
55634
55635 2007-10-12  Bruno Haible  <bruno@clisp.org>
55636
55637         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
55638         of 2.
55639         * tests/test-floorf2.c: New file.
55640         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
55641
55642         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
55643         * modules/floorf-tests: Update.
55644
55645 2007-10-12  Bruno Haible  <bruno@clisp.org>
55646
55647         * tests/test-trunc2.c: New file.
55648         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
55649
55650         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
55651         * modules/trunc-tests: Update.
55652
55653 2007-10-12  Bruno Haible  <bruno@clisp.org>
55654
55655         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
55656         of 2.
55657         * tests/test-truncf2.c: New file.
55658         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
55659
55660         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
55661         * modules/truncf-tests: Update.
55662
55663 2007-10-11  Eric Blake  <ebb9@byu.net>
55664
55665         Don't claim strerror is broken on Interix.
55666         * doc/functions/strerror.texi (strerror): Known broken systems are
55667         now Solaris 8, and not Interix.
55668         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
55669         Interix on cross-compile.
55670         Reported by Martin Koeppe in
55671         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
55672
55673 2007-10-11  Bruno Haible  <bruno@clisp.org>
55674
55675         * modules/i-ring-tests: New file.
55676         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
55677         instead of assert.
55678
55679 2007-10-11  Bruno Haible  <bruno@clisp.org>
55680
55681         * modules/filenamecat-tests: New file.
55682         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
55683         * lib/filenamecat.c: Remove test code.
55684
55685 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55686
55687         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
55688
55689         * lib/strerror.c: Include <string.h> always, to test interface,
55690         and to remove the need for the dummy.
55691         Include intprops.h to compute width instead of doing it ourselves
55692         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
55693         (strerror): Define it to return NULL if there's no system strerror.
55694         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
55695         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
55696         ancient pre-strerror Unix systems well any more.  Saying "unknown
55697         system error" is enough.
55698         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
55699         simpler strerror.c implementation.
55700         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
55701         Simplify the tests to reflect the simpler strerror implementation.
55702         * modules/strerror (Depends-on): Add intprops.
55703
55704 2007-10-09  Eric Blake  <ebb9@byu.net>
55705
55706         Silence test-fpending.
55707         * modules/fpending-tests (Files): Add wrapper script.
55708         * tests/test-fpending.sh: New file.
55709
55710 2007-10-09  Bruno Haible  <bruno@clisp.org>
55711
55712         * MODULES.html.sh (func_module): Don't create a hyperlink for
55713         function names like 'printf_frexp'.
55714         (Misc): Add crc, memxor.
55715         (Characteristics of floating types): New section.
55716         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
55717         isnanf-nolibm, signbit, trunc, truncf, truncl.
55718         (Enhancements for ISO C 99 functions): New subsection Input/output.
55719         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
55720         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
55721         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
55722         (Compatibility checks for POSIX:2001 functions): Add clock-time.
55723         (Enhancements for POSIX:2001 functions): Add chdir-long.
55724         (File system functions): Add areadlink, chdir-safer, read-file.
55725         Remove cycle-check.
55726         (File system as inode set): New section.
55727         (Date and time): Add gethrxtime.
55728         (Multithreading): Add openmp.
55729         (Internationalization functions): Add localename.
55730         (Unicode string functions): Add unistr/u*-mbsnlen.
55731         (Support for maintaining and releasing projects): Add git-version-gen.
55732         (Lone files): Remove directories.
55733
55734 2007-10-08  Ben Pfaff  <blp@gnu.org>
55735
55736         * lib/xmalloca.h: Fix typo in comment.
55737
55738 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55739
55740         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
55741         when avoiding problems with integer overflow.  Use a portable test
55742         instead.
55743
55744 2007-10-08  Simon Josefsson  <simon@josefsson.org>
55745
55746         * modules/dummy (License): Change to LGPLv2+.
55747         * modules/float (License): Likewise
55748         * modules/realloc (License): Likewise
55749         * modules/stdlib (License): Likewise
55750
55751 2007-10-07  Bruno Haible  <bruno@clisp.org>
55752
55753         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
55754         * floor.c (TWO_MANT_DIG): Likewise.
55755         * ceil.c (TWO_MANT_DIG): Likewise.
55756         Reported by Ben Pfaff.
55757
55758 2007-10-07  Bruno Haible  <bruno@clisp.org>
55759
55760         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
55761         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
55762         * lib/frexp.c (FUNC): Likewise.
55763         * lib/printf-frexp.h (printf_frexp): Likewise.
55764         * lib/printf-frexpl.h (printf_frexpl): Likewise.
55765         * lib/printf-frexp.c (FUNC): Likewise.
55766         Suggested by Jim Meyering.
55767
55768 2007-10-07  Jim Meyering  <meyering@redhat.com>
55769
55770         Make xnanosleep's integer overflow test more robust.
55771         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
55772         so that gcc-4.3.0 doesn't optimize away this test for overflow.
55773
55774 2007-10-07  Bruno Haible  <bruno@clisp.org>
55775
55776         * NEWS: Mention the license change.
55777
55778         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
55779         abbreviations in the modules files.
55780
55781         Change copyright notice from GPLv2+ to GPLv3+.
55782         * README: Change copyright notice.
55783         * MODULES.html.sh: Likewise.
55784         * build-aux/bootstrap.conf: Likewise.
55785         * build-aux/config.libpath: Likewise.
55786         * build-aux/csharpcomp.sh.in: Likewise.
55787         * build-aux/csharpexec.sh.in: Likewise.
55788         * build-aux/install-reloc: Likewise.
55789         * build-aux/javacomp.sh.in: Likewise.
55790         * build-aux/javaexec.sh.in: Likewise.
55791         * build-aux/ldd.sh.in: Likewise.
55792         * build-aux/reloc-ldflags: Likewise.
55793         * build-aux/relocatable.sh.in: Likewise.
55794         * build-aux/x-to-1.in: Likewise.
55795         * check-module: Likewise.
55796         * config/srclistvars.sh: Likewise.
55797         * gnulib-tool: Likewise.
55798         * lib/acl-internal.h: Likewise.
55799         * lib/acl.c: Likewise.
55800         * lib/acl.h: Likewise.
55801         * lib/acl_entries.c: Likewise.
55802         * lib/areadlink-with-size.c: Likewise.
55803         * lib/areadlink.c: Likewise.
55804         * lib/areadlink.h: Likewise.
55805         * lib/argmatch.c: Likewise.
55806         * lib/argmatch.h: Likewise.
55807         * lib/argp-ba.c: Likewise.
55808         * lib/argp-eexst.c: Likewise.
55809         * lib/argp-fmtstream.c: Likewise.
55810         * lib/argp-fmtstream.h: Likewise.
55811         * lib/argp-fs-xinl.c: Likewise.
55812         * lib/argp-help.c: Likewise.
55813         * lib/argp-namefrob.h: Likewise.
55814         * lib/argp-parse.c: Likewise.
55815         * lib/argp-pin.c: Likewise.
55816         * lib/argp-pv.c: Likewise.
55817         * lib/argp-pvh.c: Likewise.
55818         * lib/argp-xinl.c: Likewise.
55819         * lib/argp.h: Likewise.
55820         * lib/at-func.c: Likewise.
55821         * lib/atanl.c: Likewise.
55822         * lib/backupfile.c: Likewise.
55823         * lib/backupfile.h: Likewise.
55824         * lib/basename.c: Likewise.
55825         * lib/binary-io.h: Likewise.
55826         * lib/byteswap.in.h: Likewise.
55827         * lib/c-stack.c: Likewise.
55828         * lib/c-stack.h: Likewise.
55829         * lib/c-strcasestr.c: Likewise.
55830         * lib/c-strcasestr.h: Likewise.
55831         * lib/c-strstr.c: Likewise.
55832         * lib/c-strstr.h: Likewise.
55833         * lib/c-strtod.c: Likewise.
55834         * lib/calloc.c: Likewise.
55835         * lib/canon-host.c: Likewise.
55836         * lib/canon-host.h: Likewise.
55837         * lib/canonicalize-lgpl.c: Likewise.
55838         * lib/canonicalize.c: Likewise.
55839         * lib/canonicalize.h: Likewise.
55840         * lib/ceil.c: Likewise.
55841         * lib/ceilf.c: Likewise.
55842         * lib/ceill.c: Likewise.
55843         * lib/chdir-long.c: Likewise.
55844         * lib/chdir-long.h: Likewise.
55845         * lib/chdir-safer.c: Likewise.
55846         * lib/chdir-safer.h: Likewise.
55847         * lib/chown.c: Likewise.
55848         * lib/classpath.c: Likewise.
55849         * lib/classpath.h: Likewise.
55850         * lib/clean-temp.c: Likewise.
55851         * lib/clean-temp.h: Likewise.
55852         * lib/cloexec.c: Likewise.
55853         * lib/close-stream.c: Likewise.
55854         * lib/closein.c: Likewise.
55855         * lib/closein.h: Likewise.
55856         * lib/closeout.c: Likewise.
55857         * lib/closeout.h: Likewise.
55858         * lib/concat-filename.c: Likewise.
55859         * lib/copy-file.c: Likewise.
55860         * lib/copy-file.h: Likewise.
55861         * lib/count-one-bits.h: Likewise.
55862         * lib/crc.c: Likewise.
55863         * lib/crc.h: Likewise.
55864         * lib/creat-safer.c: Likewise.
55865         * lib/csharpcomp.c: Likewise.
55866         * lib/csharpcomp.h: Likewise.
55867         * lib/csharpexec.c: Likewise.
55868         * lib/csharpexec.h: Likewise.
55869         * lib/cycle-check.c: Likewise.
55870         * lib/cycle-check.h: Likewise.
55871         * lib/diacrit.c: Likewise.
55872         * lib/diacrit.h: Likewise.
55873         * lib/diffseq.h: Likewise.
55874         * lib/dirchownmod.c: Likewise.
55875         * lib/dirent.in.h: Likewise.
55876         * lib/dirfd.c: Likewise.
55877         * lib/dirfd.h: Likewise.
55878         * lib/dirname.c: Likewise.
55879         * lib/dirname.h: Likewise.
55880         * lib/dummy.c: Likewise.
55881         * lib/dup-safer.c: Likewise.
55882         * lib/dup2.c: Likewise.
55883         * lib/eealloc.h: Likewise.
55884         * lib/error.c: Likewise.
55885         * lib/error.h: Likewise.
55886         * lib/euidaccess.c: Likewise.
55887         * lib/exclude.c: Likewise.
55888         * lib/exclude.h: Likewise.
55889         * lib/execute.c: Likewise.
55890         * lib/execute.h: Likewise.
55891         * lib/exitfail.c: Likewise.
55892         * lib/exitfail.h: Likewise.
55893         * lib/expl.c: Likewise.
55894         * lib/fatal-signal.c: Likewise.
55895         * lib/fatal-signal.h: Likewise.
55896         * lib/fbufmode.c: Likewise.
55897         * lib/fbufmode.h: Likewise.
55898         * lib/fchdir.c: Likewise.
55899         * lib/fchmodat.c: Likewise.
55900         * lib/fchownat.c: Likewise.
55901         * lib/fcntl--.h: Likewise.
55902         * lib/fcntl-safer.h: Likewise.
55903         * lib/fcntl.in.h: Likewise.
55904         * lib/fd-safer.c: Likewise.
55905         * lib/fflush.c: Likewise.
55906         * lib/file-has-acl.c: Likewise.
55907         * lib/file-set.c: Likewise.
55908         * lib/file-type.c: Likewise.
55909         * lib/file-type.h: Likewise.
55910         * lib/fileblocks.c: Likewise.
55911         * lib/filemode.c: Likewise.
55912         * lib/filemode.h: Likewise.
55913         * lib/filename.h: Likewise.
55914         * lib/filenamecat.c: Likewise.
55915         * lib/filenamecat.h: Likewise.
55916         * lib/findprog.c: Likewise.
55917         * lib/findprog.h: Likewise.
55918         * lib/float.in.h: Likewise.
55919         * lib/floor.c: Likewise.
55920         * lib/floorf.c: Likewise.
55921         * lib/floorl.c: Likewise.
55922         * lib/fopen-safer.c: Likewise.
55923         * lib/fopen.c: Likewise.
55924         * lib/fpending.c: Likewise.
55925         * lib/fpending.h: Likewise.
55926         * lib/fprintf.c: Likewise.
55927         * lib/fprintftime.h: Likewise.
55928         * lib/fpucw.h: Likewise.
55929         * lib/fpurge.c: Likewise.
55930         * lib/fpurge.h: Likewise.
55931         * lib/freadable.c: Likewise.
55932         * lib/freadable.h: Likewise.
55933         * lib/freadahead.c: Likewise.
55934         * lib/freadahead.h: Likewise.
55935         * lib/freading.c: Likewise.
55936         * lib/freading.h: Likewise.
55937         * lib/free.c: Likewise.
55938         * lib/freopen.c: Likewise.
55939         * lib/frexp.c: Likewise.
55940         * lib/frexpl.c: Likewise.
55941         * lib/fseek.c: Likewise.
55942         * lib/fseterr.c: Likewise.
55943         * lib/fseterr.h: Likewise.
55944         * lib/fstatat.c: Likewise.
55945         * lib/fstrcmp.c: Likewise.
55946         * lib/fstrcmp.h: Likewise.
55947         * lib/fsusage.c: Likewise.
55948         * lib/fsusage.h: Likewise.
55949         * lib/ftell.c: Likewise.
55950         * lib/ftello.c: Likewise.
55951         * lib/fts-cycle.c: Likewise.
55952         * lib/fts.c: Likewise.
55953         * lib/fts_.h: Likewise.
55954         * lib/full-read.c: Likewise.
55955         * lib/full-read.h: Likewise.
55956         * lib/full-write.c: Likewise.
55957         * lib/full-write.h: Likewise.
55958         * lib/fwritable.c: Likewise.
55959         * lib/fwritable.h: Likewise.
55960         * lib/fwriteerror.c: Likewise.
55961         * lib/fwriteerror.h: Likewise.
55962         * lib/fwriting.c: Likewise.
55963         * lib/fwriting.h: Likewise.
55964         * lib/gcd.c: Likewise.
55965         * lib/gcd.h: Likewise.
55966         * lib/getcwd.c: Likewise.
55967         * lib/getdate.h: Likewise.
55968         * lib/getdate.y: Likewise.
55969         * lib/getdomainname.c: Likewise.
55970         * lib/getdomainname.h: Likewise.
55971         * lib/getgroups.c: Likewise.
55972         * lib/gethostname.c: Likewise.
55973         * lib/gethrxtime.c: Likewise.
55974         * lib/gethrxtime.h: Likewise.
55975         * lib/getloadavg.c: Likewise.
55976         * lib/getndelim2.c: Likewise.
55977         * lib/getndelim2.h: Likewise.
55978         * lib/getnline.c: Likewise.
55979         * lib/getnline.h: Likewise.
55980         * lib/getopt.c: Likewise.
55981         * lib/getopt.in.h: Likewise.
55982         * lib/getopt1.c: Likewise.
55983         * lib/getopt_int.h: Likewise.
55984         * lib/getpagesize.h: Likewise.
55985         * lib/getsubopt.c: Likewise.
55986         * lib/gettime.c: Likewise.
55987         * lib/getugroups.c: Likewise.
55988         * lib/getugroups.h: Likewise.
55989         * lib/getusershell.c: Likewise.
55990         * lib/gl_anyavltree_list1.h: Likewise.
55991         * lib/gl_anyavltree_list2.h: Likewise.
55992         * lib/gl_anyhash_list1.h: Likewise.
55993         * lib/gl_anyhash_list2.h: Likewise.
55994         * lib/gl_anylinked_list1.h: Likewise.
55995         * lib/gl_anylinked_list2.h: Likewise.
55996         * lib/gl_anyrbtree_list1.h: Likewise.
55997         * lib/gl_anyrbtree_list2.h: Likewise.
55998         * lib/gl_anytree_list1.h: Likewise.
55999         * lib/gl_anytree_list2.h: Likewise.
56000         * lib/gl_anytree_oset.h: Likewise.
56001         * lib/gl_anytreehash_list1.h: Likewise.
56002         * lib/gl_anytreehash_list2.h: Likewise.
56003         * lib/gl_array_list.c: Likewise.
56004         * lib/gl_array_list.h: Likewise.
56005         * lib/gl_array_oset.c: Likewise.
56006         * lib/gl_array_oset.h: Likewise.
56007         * lib/gl_avltree_list.c: Likewise.
56008         * lib/gl_avltree_list.h: Likewise.
56009         * lib/gl_avltree_oset.c: Likewise.
56010         * lib/gl_avltree_oset.h: Likewise.
56011         * lib/gl_avltreehash_list.c: Likewise.
56012         * lib/gl_avltreehash_list.h: Likewise.
56013         * lib/gl_carray_list.c: Likewise.
56014         * lib/gl_carray_list.h: Likewise.
56015         * lib/gl_linked_list.c: Likewise.
56016         * lib/gl_linked_list.h: Likewise.
56017         * lib/gl_linkedhash_list.c: Likewise.
56018         * lib/gl_linkedhash_list.h: Likewise.
56019         * lib/gl_list.c: Likewise.
56020         * lib/gl_list.h: Likewise.
56021         * lib/gl_oset.c: Likewise.
56022         * lib/gl_oset.h: Likewise.
56023         * lib/gl_rbtree_list.c: Likewise.
56024         * lib/gl_rbtree_list.h: Likewise.
56025         * lib/gl_rbtree_oset.c: Likewise.
56026         * lib/gl_rbtree_oset.h: Likewise.
56027         * lib/gl_rbtreehash_list.c: Likewise.
56028         * lib/gl_rbtreehash_list.h: Likewise.
56029         * lib/gl_sublist.c: Likewise.
56030         * lib/gl_sublist.h: Likewise.
56031         * lib/group-member.c: Likewise.
56032         * lib/group-member.h: Likewise.
56033         * lib/hard-locale.c: Likewise.
56034         * lib/hard-locale.h: Likewise.
56035         * lib/hash-pjw.c: Likewise.
56036         * lib/hash-pjw.h: Likewise.
56037         * lib/hash-triple.c: Likewise.
56038         * lib/hash.c: Likewise.
56039         * lib/hash.h: Likewise.
56040         * lib/human.c: Likewise.
56041         * lib/human.h: Likewise.
56042         * lib/i-ring.c: Likewise.
56043         * lib/i-ring.h: Likewise.
56044         * lib/idcache.c: Likewise.
56045         * lib/imaxabs.c: Likewise.
56046         * lib/imaxdiv.c: Likewise.
56047         * lib/inet_pton.c: Likewise.
56048         * lib/inet_pton.h: Likewise.
56049         * lib/intprops.h: Likewise.
56050         * lib/inttostr.c: Likewise.
56051         * lib/inttostr.h: Likewise.
56052         * lib/inttypes.in.h: Likewise.
56053         * lib/isapipe.c: Likewise.
56054         * lib/isdir.c: Likewise.
56055         * lib/isnan.c: Likewise.
56056         * lib/isnan.h: Likewise.
56057         * lib/isnanf.c: Likewise.
56058         * lib/isnanf.h: Likewise.
56059         * lib/isnanl-nolibm.h: Likewise.
56060         * lib/isnanl.c: Likewise.
56061         * lib/isnanl.h: Likewise.
56062         * lib/javacomp.c: Likewise.
56063         * lib/javacomp.h: Likewise.
56064         * lib/javaexec.c: Likewise.
56065         * lib/javaexec.h: Likewise.
56066         * lib/javaversion.c: Likewise.
56067         * lib/javaversion.h: Likewise.
56068         * lib/javaversion.java: Likewise.
56069         * lib/lbrkprop.h: Likewise.
56070         * lib/lchmod.h: Likewise.
56071         * lib/lchown.c: Likewise.
56072         * lib/ldexpl.c: Likewise.
56073         * lib/linebreak.c: Likewise.
56074         * lib/linebreak.h: Likewise.
56075         * lib/linebuffer.c: Likewise.
56076         * lib/linebuffer.h: Likewise.
56077         * lib/locale.in.h: Likewise.
56078         * lib/logl.c: Likewise.
56079         * lib/long-options.c: Likewise.
56080         * lib/long-options.h: Likewise.
56081         * lib/lstat.c: Likewise.
56082         * lib/lstat.h: Likewise.
56083         * lib/math.in.h: Likewise.
56084         * lib/mbchar.c: Likewise.
56085         * lib/mbchar.h: Likewise.
56086         * lib/mbfile.h: Likewise.
56087         * lib/mbiter.h: Likewise.
56088         * lib/mbscasecmp.c: Likewise.
56089         * lib/mbscasestr.c: Likewise.
56090         * lib/mbschr.c: Likewise.
56091         * lib/mbscspn.c: Likewise.
56092         * lib/mbslen.c: Likewise.
56093         * lib/mbsncasecmp.c: Likewise.
56094         * lib/mbsnlen.c: Likewise.
56095         * lib/mbspbrk.c: Likewise.
56096         * lib/mbspcasecmp.c: Likewise.
56097         * lib/mbsrchr.c: Likewise.
56098         * lib/mbssep.c: Likewise.
56099         * lib/mbsspn.c: Likewise.
56100         * lib/mbsstr.c: Likewise.
56101         * lib/mbstok_r.c: Likewise.
56102         * lib/mbswidth.c: Likewise.
56103         * lib/mbswidth.h: Likewise.
56104         * lib/mbuiter.h: Likewise.
56105         * lib/memcasecmp.c: Likewise.
56106         * lib/memcasecmp.h: Likewise.
56107         * lib/memchr.c: Likewise.
56108         * lib/memcmp.c: Likewise.
56109         * lib/memcoll.c: Likewise.
56110         * lib/memcoll.h: Likewise.
56111         * lib/memcpy.c: Likewise.
56112         * lib/memrchr.c: Likewise.
56113         * lib/mkancesdirs.c: Likewise.
56114         * lib/mkdir-p.c: Likewise.
56115         * lib/mkdir-p.h: Likewise.
56116         * lib/mkdir.c: Likewise.
56117         * lib/mkdirat.c: Likewise.
56118         * lib/mkdtemp.c: Likewise.
56119         * lib/mkstemp-safer.c: Likewise.
56120         * lib/mkstemp.c: Likewise.
56121         * lib/modechange.c: Likewise.
56122         * lib/modechange.h: Likewise.
56123         * lib/mountlist.c: Likewise.
56124         * lib/mountlist.h: Likewise.
56125         * lib/mpsort.c: Likewise.
56126         * lib/nanosleep.c: Likewise.
56127         * lib/obstack.c: Likewise.
56128         * lib/obstack.h: Likewise.
56129         * lib/open-safer.c: Likewise.
56130         * lib/open.c: Likewise.
56131         * lib/openat-die.c: Likewise.
56132         * lib/openat-priv.h: Likewise.
56133         * lib/openat-proc.c: Likewise.
56134         * lib/openat.c: Likewise.
56135         * lib/openat.h: Likewise.
56136         * lib/pagealign_alloc.c: Likewise.
56137         * lib/pagealign_alloc.h: Likewise.
56138         * lib/physmem.c: Likewise.
56139         * lib/physmem.h: Likewise.
56140         * lib/pipe-safer.c: Likewise.
56141         * lib/pipe.c: Likewise.
56142         * lib/pipe.h: Likewise.
56143         * lib/posixtm.c: Likewise.
56144         * lib/posixtm.h: Likewise.
56145         * lib/posixver.c: Likewise.
56146         * lib/printf-frexp.c: Likewise.
56147         * lib/printf-frexp.h: Likewise.
56148         * lib/printf-frexpl.c: Likewise.
56149         * lib/printf-frexpl.h: Likewise.
56150         * lib/printf.c: Likewise.
56151         * lib/progname.c: Likewise.
56152         * lib/progname.h: Likewise.
56153         * lib/progreloc.c: Likewise.
56154         * lib/putenv.c: Likewise.
56155         * lib/quote.c: Likewise.
56156         * lib/quote.h: Likewise.
56157         * lib/quotearg.c: Likewise.
56158         * lib/quotearg.h: Likewise.
56159         * lib/raise.c: Likewise.
56160         * lib/readline.c: Likewise.
56161         * lib/readline.h: Likewise.
56162         * lib/readlink.c: Likewise.
56163         * lib/readtokens.c: Likewise.
56164         * lib/readtokens.h: Likewise.
56165         * lib/readtokens0.c: Likewise.
56166         * lib/readtokens0.h: Likewise.
56167         * lib/readutmp.c: Likewise.
56168         * lib/readutmp.h: Likewise.
56169         * lib/realloc.c: Likewise.
56170         * lib/relocwrapper.c: Likewise.
56171         * lib/rename-dest-slash.c: Likewise.
56172         * lib/rename.c: Likewise.
56173         * lib/rmdir.c: Likewise.
56174         * lib/rpmatch.c: Likewise.
56175         * lib/safe-read.c: Likewise.
56176         * lib/safe-read.h: Likewise.
56177         * lib/safe-write.c: Likewise.
56178         * lib/safe-write.h: Likewise.
56179         * lib/same-inode.h: Likewise.
56180         * lib/same.c: Likewise.
56181         * lib/same.h: Likewise.
56182         * lib/save-cwd.c: Likewise.
56183         * lib/save-cwd.h: Likewise.
56184         * lib/savedir.c: Likewise.
56185         * lib/savedir.h: Likewise.
56186         * lib/savewd.c: Likewise.
56187         * lib/savewd.h: Likewise.
56188         * lib/search.in.h: Likewise.
56189         * lib/setenv.c: Likewise.
56190         * lib/setenv.h: Likewise.
56191         * lib/settime.c: Likewise.
56192         * lib/sh-quote.c: Likewise.
56193         * lib/sh-quote.h: Likewise.
56194         * lib/sig2str.c: Likewise.
56195         * lib/sig2str.h: Likewise.
56196         * lib/signal.in.h: Likewise.
56197         * lib/signbitd.c: Likewise.
56198         * lib/signbitf.c: Likewise.
56199         * lib/signbitl.c: Likewise.
56200         * lib/sigprocmask.c: Likewise.
56201         * lib/sincosl.c: Likewise.
56202         * lib/sleep.c: Likewise.
56203         * lib/sprintf.c: Likewise.
56204         * lib/sqrtl.c: Likewise.
56205         * lib/stat-time.h: Likewise.
56206         * lib/stdio--.h: Likewise.
56207         * lib/stdio-safer.h: Likewise.
56208         * lib/stdlib--.h: Likewise.
56209         * lib/stdlib-safer.h: Likewise.
56210         * lib/stdlib.in.h: Likewise.
56211         * lib/stpcpy.c: Likewise.
56212         * lib/stpncpy.c: Likewise.
56213         * lib/strchrnul.c: Likewise.
56214         * lib/strcspn.c: Likewise.
56215         * lib/strerror.c: Likewise.
56216         * lib/strftime.c: Likewise.
56217         * lib/strftime.h: Likewise.
56218         * lib/striconveh.c: Likewise.
56219         * lib/striconveh.h: Likewise.
56220         * lib/striconveha.c: Likewise.
56221         * lib/striconveha.h: Likewise.
56222         * lib/stripslash.c: Likewise.
56223         * lib/strnlen1.c: Likewise.
56224         * lib/strnlen1.h: Likewise.
56225         * lib/strtod.c: Likewise.
56226         * lib/strtoimax.c: Likewise.
56227         * lib/strtok_r.c: Likewise.
56228         * lib/strtol.c: Likewise.
56229         * lib/strtoll.c: Likewise.
56230         * lib/strtoul.c: Likewise.
56231         * lib/strtoull.c: Likewise.
56232         * lib/sysexits.in.h: Likewise.
56233         * lib/tempname.c: Likewise.
56234         * lib/tempname.h: Likewise.
56235         * lib/timespec.h: Likewise.
56236         * lib/tls.c: Likewise.
56237         * lib/tls.h: Likewise.
56238         * lib/tmpdir.c: Likewise.
56239         * lib/tmpdir.h: Likewise.
56240         * lib/tmpfile-safer.c: Likewise.
56241         * lib/tmpfile.c: Likewise.
56242         * lib/trigl.c: Likewise.
56243         * lib/trigl.h: Likewise.
56244         * lib/trim.c: Likewise.
56245         * lib/trim.h: Likewise.
56246         * lib/trunc.c: Likewise.
56247         * lib/truncf.c: Likewise.
56248         * lib/truncl.c: Likewise.
56249         * lib/tsearch.c: Likewise.
56250         * lib/unicodeio.c: Likewise.
56251         * lib/unicodeio.h: Likewise.
56252         * lib/unistd--.h: Likewise.
56253         * lib/unistd-safer.h: Likewise.
56254         * lib/unistdio/ulc-fprintf.c: Likewise.
56255         * lib/unistdio/ulc-vfprintf.c: Likewise.
56256         * lib/unlinkdir.c: Likewise.
56257         * lib/unlinkdir.h: Likewise.
56258         * lib/unlocked-io.h: Likewise.
56259         * lib/unsetenv.c: Likewise.
56260         * lib/userspec.c: Likewise.
56261         * lib/utime.c: Likewise.
56262         * lib/utimecmp.c: Likewise.
56263         * lib/utimecmp.h: Likewise.
56264         * lib/utimens.c: Likewise.
56265         * lib/verify.h: Likewise.
56266         * lib/verror.c: Likewise.
56267         * lib/verror.h: Likewise.
56268         * lib/version-etc-fsf.c: Likewise.
56269         * lib/version-etc.c: Likewise.
56270         * lib/version-etc.h: Likewise.
56271         * lib/vfprintf.c: Likewise.
56272         * lib/vprintf.c: Likewise.
56273         * lib/vsprintf.c: Likewise.
56274         * lib/w32spawn.h: Likewise.
56275         * lib/wait-process.c: Likewise.
56276         * lib/wait-process.h: Likewise.
56277         * lib/wcwidth.c: Likewise.
56278         * lib/write-any-file.c: Likewise.
56279         * lib/xalloc-die.c: Likewise.
56280         * lib/xalloc.h: Likewise.
56281         * lib/xasprintf.c: Likewise.
56282         * lib/xgetcwd.c: Likewise.
56283         * lib/xgetcwd.h: Likewise.
56284         * lib/xgetdomainname.c: Likewise.
56285         * lib/xgetdomainname.h: Likewise.
56286         * lib/xgethostname.c: Likewise.
56287         * lib/xmalloc.c: Likewise.
56288         * lib/xmalloca.c: Likewise.
56289         * lib/xmalloca.h: Likewise.
56290         * lib/xmemcoll.c: Likewise.
56291         * lib/xnanosleep.c: Likewise.
56292         * lib/xreadlink.c: Likewise.
56293         * lib/xreadlink.h: Likewise.
56294         * lib/xsetenv.c: Likewise.
56295         * lib/xsetenv.h: Likewise.
56296         * lib/xstriconv.c: Likewise.
56297         * lib/xstriconv.h: Likewise.
56298         * lib/xstrndup.c: Likewise.
56299         * lib/xstrndup.h: Likewise.
56300         * lib/xstrtod.c: Likewise.
56301         * lib/xstrtod.h: Likewise.
56302         * lib/xstrtol-error.c: Likewise.
56303         * lib/xstrtol.c: Likewise.
56304         * lib/xstrtol.h: Likewise.
56305         * lib/xtime.h: Likewise.
56306         * lib/xvasprintf.c: Likewise.
56307         * lib/xvasprintf.h: Likewise.
56308         * lib/yesno.c: Likewise.
56309         * lib/yesno.h: Likewise.
56310         * posix-modules: Likewise.
56311         * tests/test-alloca-opt.c: Likewise.
56312         * tests/test-arcfour.c: Likewise.
56313         * tests/test-arctwo.c: Likewise.
56314         * tests/test-argmatch.c: Likewise.
56315         * tests/test-argp-2.sh: Likewise.
56316         * tests/test-argp.c: Likewise.
56317         * tests/test-arpa_inet.c: Likewise.
56318         * tests/test-array_list.c: Likewise.
56319         * tests/test-array_oset.c: Likewise.
56320         * tests/test-atexit.c: Likewise.
56321         * tests/test-avltree_list.c: Likewise.
56322         * tests/test-avltree_oset.c: Likewise.
56323         * tests/test-avltreehash_list.c: Likewise.
56324         * tests/test-base64.c: Likewise.
56325         * tests/test-binary-io.c: Likewise.
56326         * tests/test-byteswap.c: Likewise.
56327         * tests/test-c-ctype.c: Likewise.
56328         * tests/test-c-strcasecmp.c: Likewise.
56329         * tests/test-c-strcasestr.c: Likewise.
56330         * tests/test-c-strncasecmp.c: Likewise.
56331         * tests/test-c-strstr.c: Likewise.
56332         * tests/test-canonicalize-lgpl.c: Likewise.
56333         * tests/test-canonicalize.c: Likewise.
56334         * tests/test-carray_list.c: Likewise.
56335         * tests/test-ceilf.c: Likewise.
56336         * tests/test-ceill.c: Likewise.
56337         * tests/test-count-one-bits.c: Likewise.
56338         * tests/test-crc.c: Likewise.
56339         * tests/test-dirname.c: Likewise.
56340         * tests/test-fbufmode.c: Likewise.
56341         * tests/test-fcntl.c: Likewise.
56342         * tests/test-fflush.c: Likewise.
56343         * tests/test-floorf.c: Likewise.
56344         * tests/test-floorl.c: Likewise.
56345         * tests/test-fopen.c: Likewise.
56346         * tests/test-fprintf-posix.c: Likewise.
56347         * tests/test-fprintf-posix.h: Likewise.
56348         * tests/test-fpurge.c: Likewise.
56349         * tests/test-freadable.c: Likewise.
56350         * tests/test-freadahead.c: Likewise.
56351         * tests/test-freading.c: Likewise.
56352         * tests/test-freopen.c: Likewise.
56353         * tests/test-frexp.c: Likewise.
56354         * tests/test-frexpl.c: Likewise.
56355         * tests/test-fseek.c: Likewise.
56356         * tests/test-fseeko.c: Likewise.
56357         * tests/test-fseterr.c: Likewise.
56358         * tests/test-fstrcmp.c: Likewise.
56359         * tests/test-ftell.c: Likewise.
56360         * tests/test-ftello.c: Likewise.
56361         * tests/test-fwritable.c: Likewise.
56362         * tests/test-fwriting.c: Likewise.
56363         * tests/test-getaddrinfo.c: Likewise.
56364         * tests/test-getpass.c: Likewise.
56365         * tests/test-gettimeofday.c: Likewise.
56366         * tests/test-hmac-md5.c: Likewise.
56367         * tests/test-hmac-sha1.c: Likewise.
56368         * tests/test-iconv.c: Likewise.
56369         * tests/test-iconvme.c: Likewise.
56370         * tests/test-inttypes.c: Likewise.
56371         * tests/test-isnan.c: Likewise.
56372         * tests/test-isnanf.c: Likewise.
56373         * tests/test-isnanl-nolibm.c: Likewise.
56374         * tests/test-isnanl.c: Likewise.
56375         * tests/test-isnanl.h: Likewise.
56376         * tests/test-ldexpl.c: Likewise.
56377         * tests/test-linked_list.c: Likewise.
56378         * tests/test-linkedhash_list.c: Likewise.
56379         * tests/test-locale.c: Likewise.
56380         * tests/test-localename.c: Likewise.
56381         * tests/test-lock.c: Likewise.
56382         * tests/test-lseek.c: Likewise.
56383         * tests/test-malloca.c: Likewise.
56384         * tests/test-math.c: Likewise.
56385         * tests/test-mbscasecmp.c: Likewise.
56386         * tests/test-mbscasestr1.c: Likewise.
56387         * tests/test-mbscasestr2.c: Likewise.
56388         * tests/test-mbscasestr3.c: Likewise.
56389         * tests/test-mbscasestr4.c: Likewise.
56390         * tests/test-mbschr.c: Likewise.
56391         * tests/test-mbscspn.c: Likewise.
56392         * tests/test-mbsncasecmp.c: Likewise.
56393         * tests/test-mbspbrk.c: Likewise.
56394         * tests/test-mbspcasecmp.c: Likewise.
56395         * tests/test-mbsrchr.c: Likewise.
56396         * tests/test-mbsspn.c: Likewise.
56397         * tests/test-mbsstr1.c: Likewise.
56398         * tests/test-mbsstr2.c: Likewise.
56399         * tests/test-mbsstr3.c: Likewise.
56400         * tests/test-md5.c: Likewise.
56401         * tests/test-memmem.c: Likewise.
56402         * tests/test-netinet_in.c: Likewise.
56403         * tests/test-open.c: Likewise.
56404         * tests/test-printf-frexp.c: Likewise.
56405         * tests/test-printf-frexpl.c: Likewise.
56406         * tests/test-printf-posix.c: Likewise.
56407         * tests/test-printf-posix.h: Likewise.
56408         * tests/test-rbtree_list.c: Likewise.
56409         * tests/test-rbtree_oset.c: Likewise.
56410         * tests/test-rbtreehash_list.c: Likewise.
56411         * tests/test-read-file.c: Likewise.
56412         * tests/test-rijndael.c: Likewise.
56413         * tests/test-search.c: Likewise.
56414         * tests/test-signbit.c: Likewise.
56415         * tests/test-sleep.c: Likewise.
56416         * tests/test-snprintf-posix.c: Likewise.
56417         * tests/test-snprintf-posix.h: Likewise.
56418         * tests/test-snprintf.c: Likewise.
56419         * tests/test-sprintf-posix.c: Likewise.
56420         * tests/test-sprintf-posix.h: Likewise.
56421         * tests/test-stat-time.c: Likewise.
56422         * tests/test-stdbool.c: Likewise.
56423         * tests/test-stdint.c: Likewise.
56424         * tests/test-stdio.c: Likewise.
56425         * tests/test-stdlib.c: Likewise.
56426         * tests/test-stpncpy.c: Likewise.
56427         * tests/test-strcasestr.c: Likewise.
56428         * tests/test-striconv.c: Likewise.
56429         * tests/test-striconveh.c: Likewise.
56430         * tests/test-striconveha.c: Likewise.
56431         * tests/test-string.c: Likewise.
56432         * tests/test-sys_select.c: Likewise.
56433         * tests/test-sys_socket.c: Likewise.
56434         * tests/test-sys_stat.c: Likewise.
56435         * tests/test-sys_time.c: Likewise.
56436         * tests/test-sysexits.c: Likewise.
56437         * tests/test-time.c: Likewise.
56438         * tests/test-tls.c: Likewise.
56439         * tests/test-trunc.c: Likewise.
56440         * tests/test-truncf.c: Likewise.
56441         * tests/test-truncl.c: Likewise.
56442         * tests/test-unistd.c: Likewise.
56443         * tests/test-vasnprintf-posix.c: Likewise.
56444         * tests/test-vasnprintf-posix2.c: Likewise.
56445         * tests/test-vasnprintf.c: Likewise.
56446         * tests/test-vasprintf-posix.c: Likewise.
56447         * tests/test-vasprintf.c: Likewise.
56448         * tests/test-verify.c: Likewise.
56449         * tests/test-vfprintf-posix.c: Likewise.
56450         * tests/test-vprintf-posix.c: Likewise.
56451         * tests/test-vsnprintf-posix.c: Likewise.
56452         * tests/test-vsnprintf.c: Likewise.
56453         * tests/test-vsprintf-posix.c: Likewise.
56454         * tests/test-wchar.c: Likewise.
56455         * tests/test-wctype.c: Likewise.
56456         * tests/test-wcwidth.c: Likewise.
56457         * tests/test-xstrtol.c: Likewise.
56458         * tests/test-xvasprintf.c: Likewise.
56459         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
56460         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
56461         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
56462         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
56463         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
56464         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
56465         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
56466         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
56467         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
56468         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
56469         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
56470         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
56471         * tests/uniname/test-uninames.c: Likewise.
56472         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
56473         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
56474         * tests/unistdio/test-u16-printf1.h: Likewise.
56475         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
56476         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
56477         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
56478         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
56479         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
56480         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
56481         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
56482         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
56483         * tests/unistdio/test-u32-printf1.h: Likewise.
56484         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
56485         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
56486         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
56487         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
56488         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
56489         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
56490         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
56491         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
56492         * tests/unistdio/test-u8-printf1.h: Likewise.
56493         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
56494         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
56495         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
56496         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
56497         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
56498         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
56499         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
56500         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
56501         * tests/unistdio/test-ulc-printf1.h: Likewise.
56502         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
56503         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
56504         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
56505         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
56506         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
56507         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
56508         * tests/uniwidth/test-u16-strwidth.c: Likewise.
56509         * tests/uniwidth/test-u16-width.c: Likewise.
56510         * tests/uniwidth/test-u32-strwidth.c: Likewise.
56511         * tests/uniwidth/test-u32-width.c: Likewise.
56512         * tests/uniwidth/test-u8-strwidth.c: Likewise.
56513         * tests/uniwidth/test-u8-width.c: Likewise.
56514         * tests/uniwidth/test-uc_width.c: Likewise.
56515         * config/srclist-update: Likewise.
56516         (fixlicense): Update to GPLv3+.
56517
56518         Change copyright notice from LGPLv2.1+ to LGPLv3+.
56519         * tests/test-tsearch.c: Change copyright notice.
56520
56521         Change copyright notice from LGPLv2.0+ to LGPLv3+.
56522         * lib/c-strcaseeq.h: Change copyright notice.
56523         * lib/streq.h: Likewise.
56524         * lib/uniconv.h: Likewise.
56525         * lib/uniconv/u-conv-from-enc.h: Likewise.
56526         * lib/uniconv/u-conv-to-enc.h: Likewise.
56527         * lib/uniconv/u-strconv-from-enc.h: Likewise.
56528         * lib/uniconv/u-strconv-to-enc.h: Likewise.
56529         * lib/uniconv/u16-conv-from-enc.c: Likewise.
56530         * lib/uniconv/u16-conv-to-enc.c: Likewise.
56531         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
56532         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
56533         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
56534         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
56535         * lib/uniconv/u32-conv-from-enc.c: Likewise.
56536         * lib/uniconv/u32-conv-to-enc.c: Likewise.
56537         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
56538         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
56539         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
56540         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
56541         * lib/uniconv/u8-conv-from-enc.c: Likewise.
56542         * lib/uniconv/u8-conv-to-enc.c: Likewise.
56543         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
56544         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
56545         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
56546         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
56547         * lib/uniname.h: Likewise.
56548         * lib/uniname/uniname.c: Likewise.
56549         * lib/unistdio.h: Likewise.
56550         * lib/unistdio/u-asnprintf.h: Likewise.
56551         * lib/unistdio/u-asprintf.h: Likewise.
56552         * lib/unistdio/u-printf-args.c: Likewise.
56553         * lib/unistdio/u-printf-args.h: Likewise.
56554         * lib/unistdio/u-printf-parse.h: Likewise.
56555         * lib/unistdio/u-snprintf.h: Likewise.
56556         * lib/unistdio/u-sprintf.h: Likewise.
56557         * lib/unistdio/u-vasprintf.h: Likewise.
56558         * lib/unistdio/u-vsnprintf.h: Likewise.
56559         * lib/unistdio/u-vsprintf.h: Likewise.
56560         * lib/unistdio/u16-asnprintf.c: Likewise.
56561         * lib/unistdio/u16-asprintf.c: Likewise.
56562         * lib/unistdio/u16-printf-parse.c: Likewise.
56563         * lib/unistdio/u16-snprintf.c: Likewise.
56564         * lib/unistdio/u16-sprintf.c: Likewise.
56565         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
56566         * lib/unistdio/u16-u16-asprintf.c: Likewise.
56567         * lib/unistdio/u16-u16-snprintf.c: Likewise.
56568         * lib/unistdio/u16-u16-sprintf.c: Likewise.
56569         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
56570         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
56571         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
56572         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
56573         * lib/unistdio/u16-vasnprintf.c: Likewise.
56574         * lib/unistdio/u16-vasprintf.c: Likewise.
56575         * lib/unistdio/u16-vsnprintf.c: Likewise.
56576         * lib/unistdio/u16-vsprintf.c: Likewise.
56577         * lib/unistdio/u32-asnprintf.c: Likewise.
56578         * lib/unistdio/u32-asprintf.c: Likewise.
56579         * lib/unistdio/u32-printf-parse.c: Likewise.
56580         * lib/unistdio/u32-snprintf.c: Likewise.
56581         * lib/unistdio/u32-sprintf.c: Likewise.
56582         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
56583         * lib/unistdio/u32-u32-asprintf.c: Likewise.
56584         * lib/unistdio/u32-u32-snprintf.c: Likewise.
56585         * lib/unistdio/u32-u32-sprintf.c: Likewise.
56586         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
56587         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
56588         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
56589         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
56590         * lib/unistdio/u32-vasnprintf.c: Likewise.
56591         * lib/unistdio/u32-vasprintf.c: Likewise.
56592         * lib/unistdio/u32-vsnprintf.c: Likewise.
56593         * lib/unistdio/u32-vsprintf.c: Likewise.
56594         * lib/unistdio/u8-asnprintf.c: Likewise.
56595         * lib/unistdio/u8-asprintf.c: Likewise.
56596         * lib/unistdio/u8-printf-parse.c: Likewise.
56597         * lib/unistdio/u8-snprintf.c: Likewise.
56598         * lib/unistdio/u8-sprintf.c: Likewise.
56599         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
56600         * lib/unistdio/u8-u8-asprintf.c: Likewise.
56601         * lib/unistdio/u8-u8-snprintf.c: Likewise.
56602         * lib/unistdio/u8-u8-sprintf.c: Likewise.
56603         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
56604         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
56605         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
56606         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
56607         * lib/unistdio/u8-vasnprintf.c: Likewise.
56608         * lib/unistdio/u8-vasprintf.c: Likewise.
56609         * lib/unistdio/u8-vsnprintf.c: Likewise.
56610         * lib/unistdio/u8-vsprintf.c: Likewise.
56611         * lib/unistdio/ulc-asnprintf.c: Likewise.
56612         * lib/unistdio/ulc-asprintf.c: Likewise.
56613         * lib/unistdio/ulc-printf-parse.c: Likewise.
56614         * lib/unistdio/ulc-snprintf.c: Likewise.
56615         * lib/unistdio/ulc-sprintf.c: Likewise.
56616         * lib/unistdio/ulc-vasnprintf.c: Likewise.
56617         * lib/unistdio/ulc-vasprintf.c: Likewise.
56618         * lib/unistdio/ulc-vsnprintf.c: Likewise.
56619         * lib/unistdio/ulc-vsprintf.c: Likewise.
56620         * lib/unistr.h: Likewise.
56621         * lib/unistr/u-cpy-alloc.h: Likewise.
56622         * lib/unistr/u-cpy.h: Likewise.
56623         * lib/unistr/u-endswith.h: Likewise.
56624         * lib/unistr/u-move.h: Likewise.
56625         * lib/unistr/u-set.h: Likewise.
56626         * lib/unistr/u-startswith.h: Likewise.
56627         * lib/unistr/u-stpcpy.h: Likewise.
56628         * lib/unistr/u-stpncpy.h: Likewise.
56629         * lib/unistr/u-strcat.h: Likewise.
56630         * lib/unistr/u-strcpy.h: Likewise.
56631         * lib/unistr/u-strcspn.h: Likewise.
56632         * lib/unistr/u-strdup.h: Likewise.
56633         * lib/unistr/u-strlen.h: Likewise.
56634         * lib/unistr/u-strncat.h: Likewise.
56635         * lib/unistr/u-strncpy.h: Likewise.
56636         * lib/unistr/u-strnlen.h: Likewise.
56637         * lib/unistr/u-strpbrk.h: Likewise.
56638         * lib/unistr/u-strspn.h: Likewise.
56639         * lib/unistr/u-strstr.h: Likewise.
56640         * lib/unistr/u-strtok.h: Likewise.
56641         * lib/unistr/u16-check.c: Likewise.
56642         * lib/unistr/u16-chr.c: Likewise.
56643         * lib/unistr/u16-cmp.c: Likewise.
56644         * lib/unistr/u16-cpy-alloc.c: Likewise.
56645         * lib/unistr/u16-cpy.c: Likewise.
56646         * lib/unistr/u16-endswith.c: Likewise.
56647         * lib/unistr/u16-mblen.c: Likewise.
56648         * lib/unistr/u16-mbsnlen.c: Likewise.
56649         * lib/unistr/u16-mbtouc-aux.c: Likewise.
56650         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
56651         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
56652         * lib/unistr/u16-mbtouc.c: Likewise.
56653         * lib/unistr/u16-mbtoucr.c: Likewise.
56654         * lib/unistr/u16-move.c: Likewise.
56655         * lib/unistr/u16-next.c: Likewise.
56656         * lib/unistr/u16-prev.c: Likewise.
56657         * lib/unistr/u16-set.c: Likewise.
56658         * lib/unistr/u16-startswith.c: Likewise.
56659         * lib/unistr/u16-stpcpy.c: Likewise.
56660         * lib/unistr/u16-stpncpy.c: Likewise.
56661         * lib/unistr/u16-strcat.c: Likewise.
56662         * lib/unistr/u16-strchr.c: Likewise.
56663         * lib/unistr/u16-strcmp.c: Likewise.
56664         * lib/unistr/u16-strcpy.c: Likewise.
56665         * lib/unistr/u16-strcspn.c: Likewise.
56666         * lib/unistr/u16-strdup.c: Likewise.
56667         * lib/unistr/u16-strlen.c: Likewise.
56668         * lib/unistr/u16-strmblen.c: Likewise.
56669         * lib/unistr/u16-strmbtouc.c: Likewise.
56670         * lib/unistr/u16-strncat.c: Likewise.
56671         * lib/unistr/u16-strncmp.c: Likewise.
56672         * lib/unistr/u16-strncpy.c: Likewise.
56673         * lib/unistr/u16-strnlen.c: Likewise.
56674         * lib/unistr/u16-strpbrk.c: Likewise.
56675         * lib/unistr/u16-strrchr.c: Likewise.
56676         * lib/unistr/u16-strspn.c: Likewise.
56677         * lib/unistr/u16-strstr.c: Likewise.
56678         * lib/unistr/u16-strtok.c: Likewise.
56679         * lib/unistr/u16-to-u32.c: Likewise.
56680         * lib/unistr/u16-to-u8.c: Likewise.
56681         * lib/unistr/u16-uctomb-aux.c: Likewise.
56682         * lib/unistr/u16-uctomb.c: Likewise.
56683         * lib/unistr/u32-check.c: Likewise.
56684         * lib/unistr/u32-chr.c: Likewise.
56685         * lib/unistr/u32-cmp.c: Likewise.
56686         * lib/unistr/u32-cpy-alloc.c: Likewise.
56687         * lib/unistr/u32-cpy.c: Likewise.
56688         * lib/unistr/u32-endswith.c: Likewise.
56689         * lib/unistr/u32-mblen.c: Likewise.
56690         * lib/unistr/u32-mbsnlen.c: Likewise.
56691         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
56692         * lib/unistr/u32-mbtouc.c: Likewise.
56693         * lib/unistr/u32-mbtoucr.c: Likewise.
56694         * lib/unistr/u32-move.c: Likewise.
56695         * lib/unistr/u32-next.c: Likewise.
56696         * lib/unistr/u32-prev.c: Likewise.
56697         * lib/unistr/u32-set.c: Likewise.
56698         * lib/unistr/u32-startswith.c: Likewise.
56699         * lib/unistr/u32-stpcpy.c: Likewise.
56700         * lib/unistr/u32-stpncpy.c: Likewise.
56701         * lib/unistr/u32-strcat.c: Likewise.
56702         * lib/unistr/u32-strchr.c: Likewise.
56703         * lib/unistr/u32-strcmp.c: Likewise.
56704         * lib/unistr/u32-strcpy.c: Likewise.
56705         * lib/unistr/u32-strcspn.c: Likewise.
56706         * lib/unistr/u32-strdup.c: Likewise.
56707         * lib/unistr/u32-strlen.c: Likewise.
56708         * lib/unistr/u32-strmblen.c: Likewise.
56709         * lib/unistr/u32-strmbtouc.c: Likewise.
56710         * lib/unistr/u32-strncat.c: Likewise.
56711         * lib/unistr/u32-strncmp.c: Likewise.
56712         * lib/unistr/u32-strncpy.c: Likewise.
56713         * lib/unistr/u32-strnlen.c: Likewise.
56714         * lib/unistr/u32-strpbrk.c: Likewise.
56715         * lib/unistr/u32-strrchr.c: Likewise.
56716         * lib/unistr/u32-strspn.c: Likewise.
56717         * lib/unistr/u32-strstr.c: Likewise.
56718         * lib/unistr/u32-strtok.c: Likewise.
56719         * lib/unistr/u32-to-u16.c: Likewise.
56720         * lib/unistr/u32-to-u8.c: Likewise.
56721         * lib/unistr/u32-uctomb.c: Likewise.
56722         * lib/unistr/u8-check.c: Likewise.
56723         * lib/unistr/u8-chr.c: Likewise.
56724         * lib/unistr/u8-cmp.c: Likewise.
56725         * lib/unistr/u8-cpy-alloc.c: Likewise.
56726         * lib/unistr/u8-cpy.c: Likewise.
56727         * lib/unistr/u8-endswith.c: Likewise.
56728         * lib/unistr/u8-mblen.c: Likewise.
56729         * lib/unistr/u8-mbsnlen.c: Likewise.
56730         * lib/unistr/u8-mbtouc-aux.c: Likewise.
56731         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
56732         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
56733         * lib/unistr/u8-mbtouc.c: Likewise.
56734         * lib/unistr/u8-mbtoucr.c: Likewise.
56735         * lib/unistr/u8-move.c: Likewise.
56736         * lib/unistr/u8-next.c: Likewise.
56737         * lib/unistr/u8-prev.c: Likewise.
56738         * lib/unistr/u8-set.c: Likewise.
56739         * lib/unistr/u8-startswith.c: Likewise.
56740         * lib/unistr/u8-stpcpy.c: Likewise.
56741         * lib/unistr/u8-stpncpy.c: Likewise.
56742         * lib/unistr/u8-strcat.c: Likewise.
56743         * lib/unistr/u8-strchr.c: Likewise.
56744         * lib/unistr/u8-strcmp.c: Likewise.
56745         * lib/unistr/u8-strcpy.c: Likewise.
56746         * lib/unistr/u8-strcspn.c: Likewise.
56747         * lib/unistr/u8-strdup.c: Likewise.
56748         * lib/unistr/u8-strlen.c: Likewise.
56749         * lib/unistr/u8-strmblen.c: Likewise.
56750         * lib/unistr/u8-strmbtouc.c: Likewise.
56751         * lib/unistr/u8-strncat.c: Likewise.
56752         * lib/unistr/u8-strncmp.c: Likewise.
56753         * lib/unistr/u8-strncpy.c: Likewise.
56754         * lib/unistr/u8-strnlen.c: Likewise.
56755         * lib/unistr/u8-strpbrk.c: Likewise.
56756         * lib/unistr/u8-strrchr.c: Likewise.
56757         * lib/unistr/u8-strspn.c: Likewise.
56758         * lib/unistr/u8-strstr.c: Likewise.
56759         * lib/unistr/u8-strtok.c: Likewise.
56760         * lib/unistr/u8-to-u16.c: Likewise.
56761         * lib/unistr/u8-to-u32.c: Likewise.
56762         * lib/unistr/u8-uctomb-aux.c: Likewise.
56763         * lib/unistr/u8-uctomb.c: Likewise.
56764         * lib/unitypes.h: Likewise.
56765         * lib/uniwidth.h: Likewise.
56766         * lib/uniwidth/cjk.h: Likewise.
56767         * lib/uniwidth/u16-strwidth.c: Likewise.
56768         * lib/uniwidth/u16-width.c: Likewise.
56769         * lib/uniwidth/u32-strwidth.c: Likewise.
56770         * lib/uniwidth/u32-width.c: Likewise.
56771         * lib/uniwidth/u8-strwidth.c: Likewise.
56772         * lib/uniwidth/u8-width.c: Likewise.
56773         * lib/uniwidth/width.c: Likewise.
56774
56775 2007-10-07  Bruno Haible  <bruno@clisp.org>
56776
56777         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
56778         The file is still under LGPL (see modules/inttypes).
56779
56780 2007-10-06  Bruno Haible  <bruno@clisp.org>
56781
56782         * modules/trunc (Dependencies): Add 'extensions'.
56783         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
56784         Reported by Ben Pfaff <blp@gnu.org>.
56785
56786 2007-10-06  Bruno Haible  <bruno@clisp.org>
56787
56788         * modules/freopen-tests: New file.
56789         * tests/test-freopen.c: New file.
56790
56791         * modules/fopen-tests: New file.
56792         * tests/test-fopen.c: New file.
56793
56794         * modules/fopen: New file.
56795         * lib/fopen.c: New file.
56796         * m4/fopen.m4: New file.
56797         * modules/freopen: New file.
56798         * lib/freopen.c: New file.
56799         * m4/freopen.m4: New file.
56800         * lib/stdio.in.h (fopen, freopen): New declarations.
56801         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
56802         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56803         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
56804         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56805         * doc/functions/fopen.texi: Mention the 'fopen' module.
56806         * doc/functions/freopen.texi: Mention the 'freopen' module.
56807
56808 2007-10-06  Bruno Haible  <bruno@clisp.org>
56809
56810         * modules/open-tests: New file.
56811         * tests/test-open.c: New file.
56812
56813         * modules/open: New file.
56814         * lib/open.c: New file.
56815         * m4/open.m4: New file.
56816         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
56817         lib/open.c does.
56818         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
56819         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
56820         macros.
56821         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
56822         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
56823         REPLACE_OPEN.
56824         * doc/functions/open.texi: Mention the 'open' module.
56825
56826 2007-10-04  Bruno Haible  <bruno@clisp.org>
56827
56828         * modules/ceill-tests: New file.
56829         * tests/test-ceill.c: New file.
56830
56831         * modules/ceill: New file.
56832         * lib/ceill.c: Replace entire file.
56833         * m4/ceill.m4: New file.
56834         * lib/math.in.h (ceill): Replace declaration.
56835         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
56836         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
56837         * doc/functions/ceill.texi: Mention the 'ceill' module.
56838         * modules/mathl (Files): Remove lib/ceill.c.
56839         (Depends-on): Add ceill.
56840
56841 2007-10-04  Bruno Haible  <bruno@clisp.org>
56842
56843         * modules/ceilf-tests: New file.
56844         * tests/test-ceilf.c: New file.
56845
56846         * modules/ceilf: New file.
56847         * lib/ceil.c: New file.
56848         * lib/ceilf.c: New file.
56849         * m4/ceilf.m4: New file.
56850         * lib/math.in.h (ceilf): New declaration.
56851         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
56852         HAVE_DECL_CEILF.
56853         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
56854         HAVE_DECL_CEILF.
56855         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
56856
56857 2007-10-04  Bruno Haible  <bruno@clisp.org>
56858
56859         * modules/floorl-tests: New file.
56860         * tests/test-floorl.c: New file.
56861
56862         * modules/floorl: New file.
56863         * lib/floorl.c: Replace entire file.
56864         * m4/floorl.m4: New file.
56865         * lib/math.in.h (floorl): Replace declaration.
56866         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
56867         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
56868         * doc/functions/floorl.texi: Mention the 'floorl' module.
56869         * modules/mathl (Files): Remove lib/floorl.c.
56870         (Depends-on): Add floorl.
56871
56872 2007-10-04  Bruno Haible  <bruno@clisp.org>
56873
56874         * modules/floorf-tests: New file.
56875         * tests/test-floorf.c: New file.
56876
56877         * modules/floorf: New file.
56878         * lib/floor.c: New file.
56879         * lib/floorf.c: New file.
56880         * m4/floorf.m4: New file.
56881         * lib/math.in.h (floorf): New declaration.
56882         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
56883         HAVE_DECL_FLOORF.
56884         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
56885         HAVE_DECL_FLOORF.
56886         * doc/functions/floorf.texi: Mention the 'floorf' module.
56887
56888 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
56889             Bruno Haible  <bruno@clisp.org>
56890
56891         Advertise for the Git server instead of the CVS server.
56892         * doc/gnulib-intro.texi (Steady Development): Mention the Git
56893         repository instead of the CVS one.
56894         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
56895         about all VCS systems generically.
56896         * doc/gnulib.texi (Introduction): Capitalize `Git'.
56897
56898 2007-10-04  Bruno Haible  <bruno@clisp.org>
56899
56900         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
56901         means.
56902         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
56903
56904 2007-10-04  Bruno Haible  <bruno@clisp.org>
56905
56906         * modules/truncl-tests: New file.
56907         * tests/test-truncl.c: New file.
56908
56909         * modules/truncl: New file.
56910         * lib/truncl.c: New file.
56911         * m4/truncl.m4: New file.
56912         * lib/math.in.h (truncl): New declaration.
56913         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
56914         HAVE_DECL_TRUNCL.
56915         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
56916         HAVE_DECL_TRUNCL.
56917         * doc/functions/truncl.texi: Mention the 'truncl' module.
56918
56919 2007-10-04  Bruno Haible  <bruno@clisp.org>
56920
56921         * modules/truncf-tests: New file.
56922         * tests/test-truncf.c: New file.
56923
56924         * modules/truncf: New file.
56925         * lib/trunc.c: Make paramerizable through USE_* macros.
56926         * lib/truncf.c: New file.
56927         * m4/truncf.m4: New file.
56928         * lib/math.in.h (truncf): New declaration.
56929         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
56930         HAVE_DECL_TRUNCF.
56931         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
56932         HAVE_DECL_TRUNCF.
56933         * doc/functions/truncf.texi: Mention the 'truncf' module.
56934
56935 2007-10-03  Bruno Haible  <bruno@clisp.org>
56936
56937         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56938         augmentation also for tests modules.
56939         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
56940         * modules/atexit-tests (Makefile.am): Likewise.
56941         * modules/binary-io-tests (Makefile.am): Likewise.
56942         * modules/c-strcase-tests (Makefile.am): Likewise.
56943         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
56944         * modules/canonicalize-tests (Makefile.am): Likewise.
56945         * modules/closein-tests (Makefile.am): Likewise.
56946         * modules/fprintf-posix-tests (Makefile.am): Likewise.
56947         * modules/freadahead-tests (Makefile.am): Likewise.
56948         * modules/fseek-tests (Makefile.am): Likewise.
56949         * modules/fseeko-tests (Makefile.am): Likewise.
56950         * modules/ftell-tests (Makefile.am): Likewise.
56951         * modules/ftello-tests (Makefile.am): Likewise.
56952         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
56953         * modules/isnanl-tests (Makefile.am): Likewise.
56954         * modules/lseek-tests (Makefile.am): Likewise.
56955         * modules/mbscasecmp-tests (Makefile.am): Likewise.
56956         * modules/mbscasestr-tests (Makefile.am): Likewise.
56957         * modules/mbschr-tests (Makefile.am): Likewise.
56958         * modules/mbscspn-tests (Makefile.am): Likewise.
56959         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
56960         * modules/mbspbrk-tests (Makefile.am): Likewise.
56961         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
56962         * modules/mbsrchr-tests (Makefile.am): Likewise.
56963         * modules/mbsspn-tests (Makefile.am): Likewise.
56964         * modules/mbsstr-tests (Makefile.am): Likewise.
56965         * modules/printf-posix-tests (Makefile.am): Likewise.
56966         * modules/snprintf-posix-tests (Makefile.am): Likewise.
56967         * modules/sprintf-posix-tests (Makefile.am): Likewise.
56968         * modules/tsearch-tests (Makefile.am): Likewise.
56969         * modules/uniname/uniname-tests (Makefile.am): Likewise.
56970         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
56971         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
56972         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
56973         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
56974         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
56975         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
56976         * modules/vprintf-posix-tests (Makefile.am): Likewise.
56977         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
56978         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
56979         * modules/xstrtoimax-tests (Makefile.am): Likewise.
56980         * modules/xstrtol-tests (Makefile.am): Likewise.
56981         * modules/xstrtoumax-tests (Makefile.am): Likewise.
56982         * modules/yesno-tests (Makefile.am): Likewise.
56983
56984 2007-10-03  Bruno Haible  <bruno@clisp.org>
56985
56986         * modules/trunc-tests: New file.
56987         * tests/test-trunc.c: New file.
56988
56989         * modules/trunc: New file.
56990         * lib/trunc.c: New file.
56991         * m4/trunc.m4: New file.
56992         * lib/math.in.h (trunc): New declaration.
56993         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
56994         HAVE_DECL_TRUNC.
56995         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
56996         HAVE_DECL_TRUNC.
56997         * doc/functions/trunc.texi: Mention the 'trunc' module.
56998
56999 2007-10-03  Bruno Haible  <bruno@clisp.org>
57000
57001         * tests/test-fpending.c: New file, mostly copied
57002         from coreutils/lib/t-fpending.c.
57003         * modules/fpending-tests: New file.
57004
57005 2007-10-03  Bruno Haible  <bruno@clisp.org>
57006
57007         Port the stdio extensions to QNX (untested).
57008         * lib/fseterr.c (fseterr): Add support for QNX.
57009         * lib/fbufmode.c (fbufmode): Likewise.
57010         * lib/freadable.c (freadable): Likewise.
57011         * lib/fwritable.c (fwritable): Likewise.
57012         * lib/freading.c (freading): Likewise.
57013         * lib/fwriting.c (fwriting): Likewise.
57014         * lib/freadahead.c (freadahed): Likewise.
57015         * lib/fpurge.c (fpurge): Likewise.
57016         * lib/fseeko.c (rpl_fseeko): Likewise.
57017
57018 2007-10-03  Bruno Haible  <bruno@clisp.org>
57019             Jim Meyering  <jim@meyering.net>
57020             Eric Blake  <ebb9@byu.net>
57021
57022         * doc/relocatable.texi: Use @command instead of @program.
57023
57024 2007-10-02  Jim Meyering  <jim@meyering.net>
57025
57026         Perform one more "_.h" -> ".in.h" substitution.
57027         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
57028         instead of unistd_.h here, too.
57029
57030 2007-10-01  Bruno Haible  <bruno@clisp.org>
57031
57032         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
57033         Needed for the alloca-opt module.
57034
57035 2007-09-30  Bruno Haible  <bruno@clisp.org>
57036
57037         * lib/alloca.in.h: Renamed from lib/alloca_.h.
57038         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
57039         alloca_.h.
57040         * lib/argz.in.h: Renamed from lib/argz_.h.
57041         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
57042         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
57043         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
57044         byteswap_.h.
57045         * lib/dirent.in.h: Renamed from lib/dirent_.h.
57046         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
57047         dirent_.h.
57048         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
57049         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
57050         fcntl_.h.
57051         * lib/float.in.h: Renamed from lib/float_.h.
57052         * modules/float (Files, Makefile.am): Use float.in.h instead of
57053         float_.h.
57054         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
57055         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
57056         fnmatch_.h.
57057         * lib/getopt.in.h: Renamed from lib/getopt_.h.
57058         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
57059         getopt_.h.
57060         * lib/glob.in.h: Renamed from lib/glob_.h.
57061         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
57062         * lib/iconv.in.h: Renamed from lib/iconv_.h.
57063         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
57064         iconv_.h.
57065         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
57066         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
57067         inttypes_.h.
57068         * lib/locale.in.h: Renamed from lib/locale_.h.
57069         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
57070         locale_.h.
57071         * lib/math.in.h: Renamed from lib/math_.h.
57072         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
57073         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
57074         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
57075         of netinet_in_.h. Add dependency.
57076         * lib/poll.in.h: Renamed from lib/poll_.h.
57077         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
57078         * lib/search.in.h: Renamed from lib/search_.h.
57079         * modules/search (Files, Makefile.am): Use search.in.h instead of
57080         search_.h.
57081         * lib/signal.in.h: Renamed from lib/signal_.h.
57082         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
57083         _signal.h.
57084         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
57085         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
57086         stdbool_.h.
57087         * lib/stdint.in.h: Renamed from lib/stdint_.h.
57088         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
57089         stdint_.h.
57090         * lib/stdio.in.h: Renamed from lib/stdio_.h.
57091         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
57092         stdio_.h.
57093         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
57094         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
57095         stdlib_.h.
57096         * lib/string.in.h: Renamed from lib/string_.h.
57097         * modules/string (Files, Makefile.am): Use string.in.h instead of
57098         string_.h.
57099         * doc/gnulib-tool.texi (Initial import): Update.
57100         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
57101         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
57102         of sys_select_.h. Add dependency.
57103         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
57104         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
57105         of sys_socket_.h.
57106         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
57107         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
57108         sys_stat_.h.
57109         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
57110         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
57111         sys_time_.h.
57112         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
57113         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
57114         sysexits_.h.
57115         * lib/time.in.h: Renamed from lib/time_.h.
57116         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
57117         * lib/unistd.in.h: Renamed from lib/unistd_.h.
57118         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
57119         unistd_.h.
57120         * lib/wchar.in.h: Renamed from lib/wchar_.h.
57121         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
57122         wchar_.h.
57123         * lib/wctype.in.h: Renamed from lib/wctype_.h.
57124         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
57125         wctype_.h.
57126         * build-aux/bootstrap (slurp): Update.
57127         * lib/.cppi-disable: Update.
57128
57129 2007-09-30  Bruno Haible  <bruno@clisp.org>
57130
57131         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
57132         Needed on BeOS.
57133
57134 2007-09-30  Bruno Haible  <bruno@clisp.org>
57135
57136         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
57137
57138 2007-09-29  Bruno Haible  <bruno@clisp.org>
57139
57140         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
57141
57142 2007-09-29  Bruno Haible  <bruno@clisp.org>
57143
57144         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
57145         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
57146         * build-aux/install-reloc: Compile also areadlink.c.
57147         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
57148
57149 2007-09-29  Bruno Haible  <bruno@clisp.org>
57150
57151         * gnulib-tool (func_emit_initmacro_done): Indentation.
57152
57153 2007-09-29  Bruno Haible  <bruno@clisp.org>
57154
57155         * README: Add CVS checkout update instructions.
57156         Info from Bob Proulx <bob@proulx.com>.
57157
57158 2007-09-28  Eric Blake  <ebb9@byu.net>
57159
57160         Provide move-if-change.
57161         * build-aux/move-if-change: New file, based on best practice
57162         rather than any canonical upstream location.
57163
57164 2007-09-28  Jim Meyering  <jim@meyering.net>
57165
57166         Fix canonicalize loop-detection corner case.
57167         Do not attempt to stat the symlink values stored via seen_triple.
57168         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
57169         on linux-2.6.18, (but not 2.6.22).
57170         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
57171         triple_compare.  The former compares dev,ino,filename, while the latter
57172         would actually stat dirname(filename) when dev and ino were equal.
57173         * lib/hash-triple.c: Install <string.h>.
57174         (STREQ): Define.
57175         (triple_compare_ino_str): New function.
57176         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
57177
57178 2007-09-28  Eric Blake  <ebb9@byu.net>
57179
57180         Enforce that AC_REPLACE_FUNCS files exist.
57181         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
57182         override check for typos.
57183
57184         Fix test-closein on Solaris 10.
57185         * tests/test-closein.c (main): Don't assume stdin can be inherited
57186         closed on all systems.
57187         * tests/test-closein.sh: Likewise.
57188         Reported by Piotr Tarnowski.
57189
57190 2007-09-28  Jim Meyering  <jim@meyering.net>
57191
57192         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
57193
57194 2007-09-27  Jim Meyering  <jim@meyering.net>
57195
57196         canonicalize: Avoid a false-positive cycle failure.
57197         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
57198         Sort.  Remove cycle-check.
57199         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
57200         not cycle-check.h.
57201         (seen_triple): New function.
57202         (canonicalize_filename_mode): Use it instead of cycle-check.
57203         * tests/test-canonicalize.c: Add a test for this bug.
57204         * tests/test-canonicalize.sh: Set up and run the test.
57205
57206         New module, file-set, from coreutils.
57207         * modules/file-set: Define it.
57208         * lib/file-set.c, lib/file-set.h: Implement.
57209
57210         New module, hash-triple, from coreutils.
57211         * modules/hash-triple: Define it.
57212         * lib/hash-triple.c, lib/hash-triple.h: Implement.
57213
57214 2007-09-25  Eric Blake  <ebb9@byu.net>
57215
57216         Fix strerror on Interix.
57217         * lib/string_.h (strerror): Declare replacement.
57218         * doc/functions/strerror.texi (strerror): Document the Interix
57219         shortcoming.
57220         * modules/string (Makefile.am): Support new hooks.
57221         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
57222         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
57223         gl_FUNC_STRERROR_SEPARATE.
57224         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
57225         * lib/strerror.c (rpl_strerror): Provide replacement.
57226         * modules/strerror (Depends-on): Add string.
57227         (configure.ac): Detect use of module.
57228         * tests/test-strerror.c: New file.
57229         * modules/strerror-tests: New test module.
57230         * modules/argp (Depends-on): Add strerror.
57231         * modules/error (Depends-on): Likewise.
57232         Reported by Martin Koeppe.
57233
57234 2007-09-24  Bruno Haible  <bruno@clisp.org>
57235
57236         * README: Update git instructions.
57237
57238 2007-09-24  Eric Blake  <ebb9@byu.net>
57239
57240         Revert fpending breakage from 2007-09-08.
57241         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
57242         __fpending.c.
57243
57244 2007-09-24  Jim Meyering  <jim@meyering.net>
57245
57246         filenamecat.c: Add a test.
57247         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
57248         showing how the function works when DIR is the empty string.
57249
57250 2007-09-21  Simon Josefsson  <simon@josefsson.org>
57251
57252         * tests/test-canonicalize.sh: Turn on executable bit.
57253
57254 2007-09-19  Eric Blake  <ebb9@byu.net>
57255
57256         * README: Update CVS instructions.
57257
57258 2007-09-18  Bruno Haible  <bruno@clisp.org>
57259
57260         * modules/areadlink: New file.
57261         * lib/areadlink.h (areadlink): New declaration.
57262         * lib/areadlink.c: New file, based on lib/xreadlink.c.
57263
57264 2007-09-17  Jim Meyering  <jim@meyering.net>
57265
57266         * lib/savewd.c (ESTALE) [!defined]: Define.
57267         Reported to be required on Interix by Martin Koeppe.
57268
57269 2007-09-17  Bruno Haible  <bruno@clisp.org>
57270
57271         * gnulib-tool (func_version): Use $version.
57272
57273 2007-09-16  Bruno Haible  <bruno@clisp.org>
57274
57275         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
57276         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
57277         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
57278         Reported by Greg Schafer <gschafer@zip.com.au>.
57279
57280 2007-09-15  Bruno Haible  <bruno@clisp.org>
57281
57282         * gnulib-tool (sed): Try a little harder to make bash understand the
57283         alias.
57284         Reported by Bruce Korb <bruce.korb@gmail.com>.
57285
57286 2007-09-13  Eric Blake  <ebb9@byu.net>
57287
57288         * ChangeLog: Remove conflict markers.
57289
57290 2007-09-13  Simon Josefsson  <simon@josefsson.org>
57291
57292         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
57293         Reported by Bruno Haible <bruno@clisp.org>.
57294
57295 2007-09-12  Bruno Haible  <bruno@clisp.org>
57296
57297         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
57298         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
57299         is not defined.
57300
57301 2007-09-12  Eric Blake  <ebb9@byu.net>
57302
57303         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
57304         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
57305         Autoconf definition.
57306         * modules/euidaccess (Depends-on): Add extensions, for
57307         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
57308         * modules/fnmatch (Depends-on): Likewise.
57309         * modules/getaddrinfo (Depends-on): Likewise.
57310         * modules/getdelim (Depends-on): Likewise.
57311         * modules/getline (Depends-on): Likewise.
57312         * modules/getsubopt (Depends-on): Likewise.
57313         * modules/gettext (Depends-on): Likewise.
57314         * modules/group-member (Depends-on): Likewise.
57315         * modules/mbchar (Depends-on): Likewise.
57316         * modules/memmem (Depends-on): Likewise.
57317         * modules/mempcpy (Depends-on): Likewise.
57318         * modules/memrchr (Depends-on): Likewise.
57319         * modules/pagealign_alloc (Depends-on): Likewise.
57320         * modules/readutmp (Depends-on): Likewise.
57321         * modules/stpcpy (Depends-on): Likewise.
57322         * modules/stpncpy (Depends-on): Likewise.
57323         * modules/strchrnul (Depends-on): Likewise.
57324         * modules/strndup (Depends-on): Likewise.
57325         * modules/strsep (Depends-on): Likewise.
57326         * modules/strverscmp (Depends-on): Likewise.
57327         * modules/vasprintf (Depends-on): Likewise.
57328         * modules/wcwidth (Depends-on): Likewise.
57329         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
57330         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
57331         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
57332         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
57333         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
57334         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57335         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
57336         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
57337         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
57338         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
57339         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57340         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
57341         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
57342         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
57343         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
57344         * m4/readutmp.m4 (gl_READUTMP): Likewise.
57345         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57346         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
57347         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
57348         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
57349         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57350         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
57351         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
57352         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
57353         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
57354         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57355         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
57356         so that lock.m4 can be used in gettext without extensions module.
57357
57358 2007-09-11  Bruno Haible  <bruno@clisp.org>
57359
57360         * m4/isc-posix.m4: Remove file.
57361         Suggested by Eric Blake.
57362
57363 2007-09-11  Eric Blake  <ebb9@byu.net>
57364
57365         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
57366
57367 2007-09-10  Bruno Haible  <bruno@clisp.org>
57368
57369         * posix-modules: Fix typo in error message.
57370         Reported by Matt <mkraai@beckman.com>.
57371
57372 2007-09-09  Bruno Haible  <bruno@clisp.org>
57373
57374         * doc/functions/getdelim.texi: Update list of platforms lacking the
57375         function.
57376         * doc/functions/getline.texi: Likewise.
57377
57378 2007-09-09  Jim Meyering  <jim@meyering.net>
57379
57380         * lib/hash.c (hash_initialize): Detect calloc failure.
57381         Reported by Bruno Haible.
57382
57383 2007-09-09  Bruno Haible  <bruno@clisp.org>
57384
57385         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
57386         malloc or realloc fails.
57387
57388 2007-09-09  Bruno Haible  <bruno@clisp.org>
57389
57390         * modules/getcwd (Depends-on): Add malloc-posix.
57391         * modules/glob (Depends-on): Likewise.
57392         * modules/putenv (Depends-on): Likewise.
57393         * modules/strdup (Depends-on): Likewise.
57394         * modules/getdelim (Depends-on): Add realloc-posix.
57395         * modules/read-file (Depends-on): Likewise.
57396
57397 2007-09-09  Bruno Haible  <bruno@clisp.org>
57398
57399         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
57400         (gl_FUNC_MALLOC_POSIX): Require it.
57401         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
57402         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
57403         * modules/realloc (Files): Add m4/malloc.m4.
57404         * modules/calloc (Files): Likewise.
57405
57406 2007-09-09  Bruno Haible  <bruno@clisp.org>
57407
57408         * modules/malloc-posix: New file.
57409         * modules/malloc (Depends-on): Add malloc-posix.
57410         * lib/malloc.c: Include errno.h.
57411         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
57412         and a POSIX-compatible malloc into a single function. Set ENOMEM
57413         when returning NULL.
57414         * m4/malloc.m4: New file.
57415         * doc/functions/malloc.texi: Mention the malloc-posix module.
57416         * lib/stdlib_.h (malloc): New declaration.
57417         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57418         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
57419         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
57420         and HAVE_MALLOC_POSIX.
57421
57422 2007-09-09  Bruno Haible  <bruno@clisp.org>
57423
57424         * modules/realloc-posix: New file.
57425         * modules/realloc (Depends-on): Add realloc-posix.
57426         * lib/realloc.c: Include errno.h.
57427         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
57428         and a POSIX-compatible realloc into a single function. Set ENOMEM
57429         when returning NULL.
57430         * m4/realloc.m4: New file.
57431         * doc/functions/realloc.texi: Mention the realloc-posix module.
57432         * lib/stdlib_.h (realloc): New declaration.
57433         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57434         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
57435         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
57436         and HAVE_REALLOC_POSIX.
57437
57438 2007-09-09  Bruno Haible  <bruno@clisp.org>
57439
57440         * modules/calloc-posix: New file.
57441         * modules/calloc (Depends-on): Add calloc-posix.
57442         * lib/calloc.c: Include errno.h.
57443         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
57444         and a POSIX-compatible calloc into a single function. Set ENOMEM
57445         when returning NULL.
57446         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
57447         * doc/functions/calloc.texi: Mention the calloc-posix module.
57448         * lib/stdlib_.h (calloc): New declaration.
57449         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57450         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
57451         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
57452         and HAVE_CALLOC_POSIX.
57453
57454 2007-09-09  Bruno Haible  <bruno@clisp.org>
57455
57456         Allow for modules to show an arbitrary notice.
57457         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
57458         * gnulib-tool: New option --extract-notice.
57459         (func_usage): Document it.
57460         (sed_extract_prog): Update.
57461         (func_get_notice): New function.
57462         (func_modules_notice): New function.
57463         (func_import, func_create_testdir): Invoke it.
57464         Suggested by Jim Meyering.
57465
57466 2007-09-09  Bruno Haible  <bruno@clisp.org>
57467
57468         * gnulib-tool: New options --verbose, --quiet.
57469         (func_usage): Document them.
57470         (verbose): New variable.
57471         (func_execute_command): New function.
57472         (func_import): Don't show the module list and the file list if
57473         $verbose < 0.
57474         (func_create_testdir): Likewise. Use func_execute_command.
57475         (func_create_megatestdir): Use func_execute_command.
57476
57477 2007-09-08  Bruno Haible  <bruno@clisp.org>
57478
57479         * gnulib-tool (func_import): Prefer rsync over wget when available,
57480         for fetching the PO files.
57481
57482 2007-09-08  Bruno Haible  <bruno@clisp.org>
57483
57484         * posix-modules: New file. Portions copied from gnulib-tool.
57485         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
57486
57487 2007-09-08  Jim Meyering  <jim@meyering.net>
57488
57489         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
57490         * lib/fpending.h: Rename from __fpending.h.
57491         * lib/fpending.c: Rename from __fpending.c.
57492         Include "fpending.h", not "__fpending.h".
57493         * lib/__fpending.h, lib/__fpending.c: Remove files.
57494         * modules/fpending (Files): Reflect new file names.
57495         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
57496
57497 2007-09-08  Bruno Haible  <bruno@clisp.org>
57498
57499         * m4/inttypes-h.m4: Remove stub file.
57500
57501 2007-09-07  Simon Josefsson  <simon@josefsson.org>
57502
57503         * doc/headers/stdint.texi: Discuss #include_next issue.
57504
57505 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57506
57507         * build-aux/bootstrap: Remove obsolete comment about wget --help.
57508
57509 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57510
57511         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
57512         in variable name.
57513
57514 2007-09-03  Jim Meyering  <jim@meyering.net>
57515
57516         New module: git-version-gen.
57517         * modules/git-version-gen: New file.
57518
57519         Import changes from coreutils for bootstrap script.
57520
57521         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
57522
57523         bootstrap: uses rsync to download the .po files
57524         * build-aux/bootstrap (po_download_command_format): New global.
57525         (download_po_files): Use rsync.
57526         (update_po_files): Don't remove .po files after download,
57527         so future rsync runs can take advantage of the copies.
57528
57529         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
57530
57531         Solve the unnecessary-.po-file-regeneration problem once and for all.
57532         * build-aux/bootstrap (download_po_files): New function, renamed from
57533         get_translations.  Now, downloads, but doesn't update LINGUAS.
57534         (update_po_files): New function.
57535
57536         bootstrap: Ignore more.
57537         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
57538         uniwidth to e.g., lib/.gitignore.
57539         (slurp): Handle the sys_stat_.h -> sys mapping, too.
57540
57541         * build-aux/bootstrap: New setting: vc_ignore.
57542         (insert_sorted_if_absent): Create $file if absent.
57543         Adapt to new, possibly empty, list: $vc_ignore.
57544
57545         bootstrap: generate more ignorable names
57546         * build-aux/bootstrap (slurp): When generating ignorable names,
57547         also map .sin to .sed, .gperf to .c, and .y to .c.
57548
57549 2007-09-03  Jim Meyering  <jim@meyering.net>
57550
57551         * build-aux/git-version-gen: New file, from coreutils.  For details, see
57552         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
57553
57554 2007-09-02  Bruno Haible  <bruno@clisp.org>
57555
57556         Fix mis-recognition of 'mcs' on QNX 6.
57557         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
57558         output contains the string "Mono".
57559         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
57560         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
57561
57562 2007-09-01  Bruno Haible  <bruno@clisp.org>
57563
57564         Fix collision between uniwidth/* and linebreak modules.
57565         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
57566         u32_width): Remove declarations.
57567         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
57568         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
57569         streq3, streq2, streq1, streq0): Remove functions.
57570         (STREQ): Remove macro.
57571         (is_cjk_encoding): Remove function.
57572         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
57573         (uc_width, u8_width, u16_width, u32_width): Remove functions.
57574         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
57575         * NEWS: Document the change.
57576
57577 2007-09-01  Bruno Haible  <bruno@clisp.org>
57578
57579         * lib/streq.h: Add double-inclusion guard.
57580
57581 2007-09-01  Karl Berry  <karl@gnu.org>
57582
57583         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
57584
57585 2007-08-28  Jim Meyering  <jim@meyering.net>
57586
57587         Rename mreadlink_with_size to areadlink_with_size.
57588         * NEWS: Document the change.
57589         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
57590         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
57591         * lib/mreadlink.h: Rename this to...
57592         * lib/areadlink.h: ...this.
57593         * modules/mreadlink-with-size: Rename this to...
57594         * modules/areadlink-with-size: ...this.
57595         * lib/canonicalize.c: Reflect the renaming.
57596         * modules/canonicalize: Likewise.
57597
57598 2007-08-26  Bruno Haible  <bruno@clisp.org>
57599
57600         * gnulib-tool (func_import): When deciding which files to remove,
57601         consider also dangling symbolic links.
57602         Reported by Eric Blake.
57603
57604 2007-08-26  Bruno Haible  <bruno@clisp.org>
57605
57606         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
57607
57608 2007-08-23  Simon Josefsson  <simon@josefsson.org>
57609
57610         * lib/readline.c: Don't include getline.h, the prototype is now
57611         found in stdio.h.
57612
57613 2007-08-23  Jim Meyering  <jim@meyering.net>
57614
57615         Getdelim touchup.
57616         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
57617         around the funlockfile call, since funlockfile never sets errno.
57618         Don't set errno upon failed realloc.
57619
57620 2007-08-22  Eric Blake  <ebb9@byu.net>
57621
57622         Getline touchups.
57623         * lib/getdelim.c (getdelim): Revert regression that required *n to
57624         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
57625         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
57626         getdelim, rather than whether implementation is missing.
57627         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
57628         * lib/stdio_.h (getline): Also declare if replacement is
57629         required.
57630         * doc/functions/getdelim.texi: New file.
57631         * doc/functions/getline.texi: Likewise.
57632         * doc/gnulib.texi (Function Substitutes): Add new files.
57633         Reported by Bruno Haible.
57634
57635 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
57636
57637         * users.txt: Add Guile.
57638
57639 2007-08-22  Eric Blake  <ebb9@byu.net>
57640
57641         * tests/test-getdelim.c (main): Use remove, not unlink.
57642         * tests/test-getline.c (main): Likewise.
57643
57644         Move getline and getdelim into stdio.h, per POSIX 200x.
57645         * modules/getline (Files): Remove getline.h.
57646         (Depends-on): Add stdio.
57647         (configure.ac): Add module indicator.
57648         * modules/getdelim (Files): Remove getdelim.h.
57649         (Depends-on): Add stdio.
57650         (configure.ac): Add module indicator.
57651         * modules/stdio (Makefile.am): Work with new indicators.
57652         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
57653         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
57654         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57655         * lib/getdelim.h: Delete.
57656         * lib/getline.h: Delete.
57657         * lib/stdio_.h (getdelim, getline): Declare.
57658         * modules/getdelim-tests: New module.
57659         * modules/getline-tests: Likewise.
57660         * tests/test-getdelim.c: New file.
57661         * tests/test-getline.c: Likewise.
57662         * NEWS: Document the change.
57663         * lib/getline.c: Update choice of header.
57664         * lib/csharpcomp.c: Likewise.
57665         * lib/getpass.c: Likewise.
57666         * lib/javacomp.c: Likewise.
57667         * lib/javaversion.c: Likewise.
57668         * lib/yesno.c: Likewise.
57669         * lib/getdelim.c: Likewise.
57670         (getdelim): Set errno on failure, and avoid memory leak.
57671
57672 2007-08-19  Bruno Haible  <bruno@clisp.org>
57673
57674         * modules/closein (Depends-on): Add freadahead.
57675         * lib/closein.c: Include freadahead.h.
57676         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
57677         is zero.
57678
57679 2007-08-19  Bruno Haible  <bruno@clisp.org>
57680
57681         * modules/freadahead-tests: New file.
57682         * tests/test-freadahead.sh: New file.
57683         * tests/test-freadahead.c: New file.
57684
57685         * modules/freadahead: New file.
57686         * lib/freadahead.h: New file.
57687         * lib/freadahead.c: New file.
57688         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
57689         fbufmode, fpurge, freadable, fwritable.
57690
57691 2007-08-19  Eric Blake  <ebb9@byu.net>
57692
57693         Test yesno in combination with closein.
57694         * lib/yesno.c (yesno): Document use of stdin.
57695         * modules/yesno-tests (Files): New module.
57696         * tests/test-yesno.c (main): New file.
57697         * tests/test-yesno.sh: Likewise.
57698
57699 2007-08-19  Bruno Haible  <bruno@clisp.org>
57700
57701         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
57702         * lib/fseeko.c (rpl_fseeko): Likewise.
57703         * lib/fseterr.c (fseterr): Likewise.
57704
57705 2007-08-19  Bruno Haible  <bruno@clisp.org>
57706
57707         * tests/test-lseek.c (main): Disable a test for BeOS.
57708         * doc/functions/lseek.texi: Document the BeOS bug.
57709
57710 2007-08-19  Bruno Haible  <bruno@clisp.org>
57711             Eric Blake  <ebb9@byu.net>
57712
57713         * lib/lseek.c: Include <sys/stat.h>.
57714         (rpl_lseek): Add workaround code also for Unix platforms.
57715         Needed for BeOS.
57716         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
57717         * doc/functions/lseek.texi: Document BeOS definiency.
57718
57719 2007-08-18  Bruno Haible  <bruno@clisp.org>
57720
57721         * modules/fstrcmp-tests: New file.
57722         * tests/test-fstrcmp.c: New file.
57723
57724 2007-08-18  Bruno Haible  <bruno@clisp.org>
57725
57726         * modules/fstrcmp: New file, from GNU gettext with modifications.
57727         * lib/fstrcmp.h: New file, from GNU gettext.
57728         * lib/fstrcmp.c: New file, from GNU gettext.
57729         * MODULES.html.sh (String handling): Add fstrcmp.
57730
57731 2007-08-18  Bruno Haible  <bruno@clisp.org>
57732
57733         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
57734         'bool'.
57735         (diag, compareseq): Remove const from the ctxt argument.
57736         (USE_HEURISTIC): Undefine at the end.
57737
57738 2007-08-18  Jim Meyering  <jim@meyering.net>
57739
57740         New file: lib/idcache.h
57741         * NEWS: Mention the addition.
57742         * modules/idcache (Files): Add lib/idcache.h
57743         * lib/idcache.c: Include "idcache.h".
57744         Don't include <sys/types.h>.
57745         Add a FIXME comment.
57746         Move file-scoped "static" declarations to the top.
57747         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
57748
57749 2007-08-17  Bruno Haible  <bruno@clisp.org>
57750         and Paul Eggert  <eggert@cs.ucla.edu>
57751
57752         * MODULES.html.sh: Add diffseq.
57753         * modules/diffseq: New file.
57754         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
57755         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
57756
57757 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57758
57759         Import changes from coreutils for bootstrap script.
57760
57761         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
57762
57763         * build-aux/bootstrap (slurp): Work even in environments where
57764         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
57765         current code does not slurp files whose names start with ".", and
57766         this looks like it might be a troublesome area.
57767
57768         2007-07-11  Jim Meyering  <jim@meyering.net>
57769
57770         If there's a GPL vN copyright comment, require that N == 3.
57771
57772         2007-07-08  Jim Meyering  <jim@meyering.net>
57773
57774         Run the coreutils-specific code only if tests/Makefile.am.in exists.
57775         * build-aux/bootstrap (mam_template): Move definition out of loop.
57776
57777         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
57778
57779         * build-aux/bootstrap (symlink_to_dir): Rename function from
57780         symlink_to_gnulib.  Add a directory parameter.  Update all
57781         callers.
57782         (cp_mark_as_generated): Also check for -- and link to -- files in
57783         gl/.
57784
57785         2007-07-08  Jim Meyering  <jim@meyering.net>
57786
57787         Adapt to deeper hierarchy in gnulib.
57788         * build-aux/bootstrap (symlink_to_dir): If the destination
57789         directory doesn't exist, create it. This is required at least for
57790         "lib/uniwidth/cjk.h".
57791
57792         2007-05-15  Jim Meyering  <jim@meyering.net>
57793
57794         * build-aux/bootstrap: Now that generated Makefile.am files
57795         are no longer under version control, they must be created at
57796         bootstrap time.
57797
57798 2007-08-14  Ben Pfaff  <blp@gnu.org>
57799
57800         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
57801
57802 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57803
57804         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
57805         given the changes below.
57806         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
57807         even on hosts that have padding bits beyond the supported 64.
57808
57809 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57810
57811         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
57812         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
57813         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
57814         depends on it.
57815         (xstrtol_error): Remove.
57816         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
57817         but with a different signature.
57818         (ATTRIBUTE_NORETURN, __attribute__): New macros.
57819         * lib/xstrtol-error.c: Include exitfail.h.
57820         (xstrtol_fatal): New function, with a different signature from the
57821         old xstrtol_error, so that the caller need not worry about passing
57822         in an exit status, or about storage management of the option argument.
57823         (xstrtol_error): Now a static function.  Redo signature to
57824         implement xstrtol_fatal.  Output the correct number of hyphens in
57825         front of the option so that the caller need not worry about
57826         storage management.
57827         (N_): New macro.
57828         (_): Remove; not used now.
57829         * modules/xstrtol: Depend on getopt.
57830         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
57831         of old STRTOL_FATAL_ERROR macro.
57832         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
57833         of test program.
57834         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
57835         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
57836
57837 2007-08-08  Eric Blake  <ebb9@byu.net>
57838
57839         * lib/xstrtol-error.c: Add missing include.
57840
57841         Move xstrtol messages into gnulib domain, when --pobase is used.
57842         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
57843         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
57844         * modules/xstrtol (Files): Distribute new file.
57845         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
57846         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
57847         * tests/test-xstrtol.c: ...into new file.
57848         * tests/test-xstrtoul.c: Also test xstrtoul.
57849         * tests/test-xstrtoimax.c: Also test xstrtoimax.
57850         * tests/test-xstrtoumax.c: Also test xstrtoumax.
57851         * tests/test-xstrtol.sh: Drive the tests.
57852         * tests/test-xstrtoimax.sh: Likewise.
57853         * tests/test-xstrtoumax.sh: Likewise.
57854         * modules/xstrtol-tests: New module.
57855         * modules/xstrtoimax-tests: Likewise.
57856         * modules/xstrtoumax-tests: Likewise.
57857
57858 2007-08-08  Jim Meyering  <jim@meyering.net>
57859
57860         New function: mfile_name_concat.
57861         * lib/filenamecat.c (mfile_name_concat): New function, just like
57862         file_name_concat, but return NULL upon failure rather than exiting
57863         with a diagnostic.
57864         * lib/filenamecat.h: Declare it.
57865
57866 2007-08-07  Bruno Haible  <bruno@clisp.org>
57867
57868         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
57869         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
57870         warning from gcc.
57871         Reported by Eric Blake.
57872
57873 2007-08-07  Simon Josefsson  <simon@josefsson.org>
57874
57875         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
57876         * modules/crypto/arcfour (License): Likewise.
57877         * modules/crypto/des-tests (License): Likewise.
57878         * modules/crypto/gc-arctwo-tests (License): Likewise.
57879         * modules/crypto/gc-des-tests (License): Likewise.
57880         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
57881         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
57882         * modules/crypto/gc-md2-tests (License): Likewise.
57883         * modules/crypto/gc-md4-tests (License): Likewise.
57884         * modules/crypto/gc-md5-tests (License): Likewise.
57885         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
57886         * modules/crypto/gc-rijndael-tests (License): Likewise.
57887         * modules/crypto/gc-sha1-tests (License): Likewise.
57888         * modules/crypto/gc-tests (License): Likewise.
57889         * modules/crypto/hmac-md5 (License): Likewise.
57890         * modules/crypto/hmac-sha1 (License): Likewise.
57891         * modules/crypto/md2-tests (License): Likewise.
57892         * modules/crypto/md4-tests (License): Likewise.
57893         * modules/crypto/md5 (License): Likewise.
57894         * modules/crypto/rijndael (License): Likewise.
57895         * modules/crypto/sha1 (License): Likewise.
57896         * modules/memxor (License): Likewise.
57897
57898 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
57899         and Bruno Haible  <bruno@clisp.org>
57900
57901         * NEWS: Describe interface changes to human, xstrtol.
57902         * lib/human.h: Include <xstrtol.h>.
57903         (human_options): Return enum strtol_error, not int.  Remove
57904         bool arg; take int * instead.
57905         * lib/human.c: Don't include "gettext.h".
57906         (_): Remove; no longer used.
57907         Don't include <xstrtol.h>, since human.h does it.
57908         (human_options): Adjust to abovementioned interface changes.
57909         Do not report error to stderr; that's now the caller's
57910         responsibility.
57911         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
57912         interface change.
57913         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
57914         Str, Argument_type_string.  All uses changed.  Put " argument"
57915         in diagnostics to make them clearer.  Change wording of suffix
57916         message for clarity.
57917         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
57918         Argument_type_string.
57919         (STRTOL_FATAL_WARN): Remove; no longer used.
57920         * modules/human (Depends-on): Remove gettext-h.
57921
57922 2007-08-06  Simon Josefsson  <simon@josefsson.org>
57923
57924         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
57925
57926 2007-07-31  Bruno Haible  <bruno@clisp.org>
57927
57928         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
57929         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
57930         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
57931
57932 2007-07-31  Bruno Haible  <bruno@clisp.org>
57933
57934         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
57935         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
57936
57937 2007-07-30  Bruno Haible  <bruno@clisp.org>
57938
57939         * modules/base64 (License): Use the synonymous term "LGPLv2+".
57940         * modules/c-ctype (License): Likewise.
57941         * modules/c-strcase (License): Likewise.
57942         * modules/check-version (License): Likewise.
57943         * modules/iconv (License): Likewise.
57944         * modules/iconv_open (License): Likewise.
57945         * modules/read-file (License): Likewise.
57946         * modules/striconv (License): Likewise.
57947         * modules/strverscmp (License): Likewise.
57948         * modules/vasprintf (License): Likewise.
57949         * modules/crypto/des (License): Likewise.
57950         * modules/crypto/gc (License): Likewise.
57951         * modules/crypto/gc-arcfour (License): Likewise.
57952         * modules/crypto/gc-arctwo (License): Likewise.
57953         * modules/crypto/gc-des (License): Likewise.
57954         * modules/crypto/gc-hmac-md5 (License): Likewise.
57955         * modules/crypto/gc-hmac-sha1 (License): Likewise.
57956         * modules/crypto/gc-md2 (License): Likewise.
57957         * modules/crypto/gc-md4 (License): Likewise.
57958         * modules/crypto/gc-md5 (License): Likewise.
57959         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
57960         * modules/crypto/gc-random (License): Likewise.
57961         * modules/crypto/gc-rijndael (License): Likewise.
57962         * modules/crypto/gc-sha1 (License): Likewise.
57963         * modules/crypto/md2 (License): Likewise.
57964         * modules/crypto/md4 (License): Likewise.
57965
57966 2007-07-30  Jim Meyering  <jim@meyering.net>
57967
57968         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
57969         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
57970         it has valid stat data.  This bug would cause du not to count the
57971         sizes of inaccessible directories.
57972         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
57973         in <http://bugzilla.redhat.com/250077>.
57974
57975 2007-07-25  Peter O'Gorman  <peter@pogma.com>
57976             Bruno Haible  <bruno@clisp.org>
57977
57978         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
57979         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
57980         #include_next, gives a diagnostic about it, but reports no error in
57981         the exit code.
57982         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
57983
57984 2007-07-24  Ben Pfaff  <blp@gnu.org>
57985
57986         Improve name: "count-one-bits" is better than "popcount".
57987         * MODULES.html.sh: Update name.
57988         * lib/popcount.h: Renamed lib/count-one-bits.h.
57989         (popcount): Renamed count_one_bits.
57990         (popcountl): Renamed count_one_bits_l.
57991         (popcountll): Renamed count_one_bits_ll.
57992         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
57993         * modules/popcount: Renamed module/count-one-bits.
57994         * modules/popcount-tests: Renamed module/count-one-bits-tests.
57995         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
57996
57997 2007-07-23  Ben Pfaff  <blp@gnu.org>
57998
57999         * lib/popcount.h (popcount32): Reduce size of constants, to allow
58000         better code generation, and add U to large constants to avoid
58001         warnings, in non-GCC case.
58002         Suggested by Bruno Haible.
58003
58004 2007-07-23  Ben Pfaff  <blp@gnu.org>
58005
58006         * lib/popcount.h: Use verify_true instead of if...abort.
58007         * modules/popcount: Depend on verify module.
58008         Suggested by Jim Meyering.
58009
58010 2007-07-23  Bruno Haible  <bruno@clisp.org>
58011
58012         * gnulib-tool (func_import): Create a .cvsignore file also when the
58013         directory is not yet in CVS but the toplevel directory is. When
58014         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
58015         Reported by Karl Berry.
58016
58017 2007-07-22  Ben Pfaff  <blp@gnu.org>
58018
58019         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
58020         case.
58021         Suggested by Eric Blake.
58022
58023 2007-07-22  Ben Pfaff  <blp@gnu.org>
58024
58025         New module: popcount.
58026         * MODULES.html.sh: Add popcount.
58027         * modules/popcount: New file.
58028         * modules/popcount-tests: New file.
58029         * tests/test-popcount.c: New file.
58030         * lib/popcount.h: New file.
58031         * m4/popcount.m4: New file.
58032
58033 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58034
58035         * build-aux/announce-gen: Update to GPLv3.
58036
58037         * build-aux/config.guess: Update from config.
58038
58039 2007-07-21  Bruno Haible  <bruno@clisp.org>
58040
58041         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
58042         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
58043
58044 2007-07-20  Jim Meyering  <jim@meyering.net>
58045
58046         * check-module: Diagnose a self-dependency.
58047
58048 2007-07-19  Bruno Haible  <bruno@clisp.org>
58049
58050         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
58051         empty.
58052         Reported by Eric Blake.
58053
58054 2007-07-18  Bruno Haible  <bruno@clisp.org>
58055
58056         * gnulib-tool: New options --po-base, --po-domain.
58057         (func_usage): Document them.
58058         (pobase, po_domain): New variables.
58059         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
58060         DEFAULT_TEXT_DOMAIN.
58061         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
58062         (func_import): Consider pobase and po_domain. Create a po/ directory.
58063         (func_create_testdir): Set pobase and po_domain to empty.
58064         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
58065         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
58066
58067 2007-07-18  Bruno Haible  <bruno@clisp.org>
58068
58069         * gnulib-tool (func_get_automake_snippet): Synthesize also an
58070         EXTRA_DIST augmentation for files in build-aux/.
58071
58072 2007-07-16  Bruno Haible  <bruno@clisp.org>
58073
58074         * modules/lseek (License): Use the synonymous term "LGPLv2+".
58075         * modules/getdelim (License): Likewise.
58076
58077 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58078
58079         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
58080         * modules/d-type (License): Likewise.
58081         * modules/extensions (License): Likewise.
58082         * modules/fnmatch (License): Likewise.
58083         * modules/fseeko (License): Likewise.
58084         * modules/getaddrinfo (License): Likewise.
58085         * modules/getline (License): Likewise.
58086         * modules/getlogin_r (License): Likewise.
58087         * modules/getpass (License): Likewise.
58088         * modules/gettimeofday (License): Likewise.
58089         * modules/glob (License): Likewise.
58090         * modules/inet_ntop (License): Likewise.
58091         * modules/malloc (License): Likewise.
58092         * modules/malloca (License): Likewise.
58093         * modules/memmem (License): Likewise.
58094         * modules/mempcpy (License): Likewise.
58095         * modules/memset (License): Likewise.
58096         * modules/minmax (License): Likewise.
58097         * modules/mktime (License): Likewise.
58098         * modules/netinet_in (License): Likewise.
58099         * modules/pathmax (License): Likewise.
58100         * modules/poll (License): Likewise.
58101         * modules/regex (License): Likewise.
58102         * modules/snprintf (License): Likewise.
58103         * modules/stdbool (License): Likewise.
58104         * modules/stdint (License): Likewise.
58105         * modules/stdio (License): Likewise.
58106         * modules/strcase (License): Likewise.
58107         * modules/strcasestr (License): Likewise.
58108         * modules/strdup (License): Likewise.
58109         * modules/string (License): Likewise.
58110         * modules/strndup (License): Likewise.
58111         * modules/strnlen (License): Likewise.
58112         * modules/strpbrk (License): Likewise.
58113         * modules/strptime (License): Likewise.
58114         * modules/strsep (License): Likewise.
58115         * modules/sys_select (License): Likewise.
58116         * modules/sys_socket (License): Likewise.
58117         * modules/sys_stat (License): Likewise.
58118         * modules/sys_time (License): Likewise.
58119         * modules/time (License): Likewise.
58120         * modules/time_r (License): Likewise.
58121         * modules/timegm (License): Likewise.
58122         * modules/unistd (License): Likewise.
58123         * modules/vsnprintf (License): Likewise.
58124         * modules/wctype (License): Likewise.
58125
58126 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58127
58128         * modules/argz (License): LGPLv2+.
58129
58130 2007-07-15  Karl Berry  <karl@gnu.org>
58131
58132         * doc/gnulib.texi: revise node structure per new fdl.texi.
58133
58134 2007-07-14  Bruno Haible  <bruno@clisp.org>
58135
58136         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
58137         the output file.
58138         * lib/uniname/uninames.h: Regenerated.
58139
58140 2007-07-14  Karl Berry  <karl@gnu.org>
58141
58142         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
58143         omitting sectioning and index commands.
58144
58145 2007-07-13  Bruno Haible  <bruno@clisp.org>
58146
58147         New gnulib-tool option --more-symlinks.
58148         * gnulib-tool (func_usage): Document --more-symlinks.
58149         (do_copyrights): New variable.
58150         Recognize option --more-symlinks.
58151         (func_import): Don't add a copyright notice transform to
58152         sed_transform_lib_file if do_copyrights is empty.
58153
58154 2007-07-13  Bruno Haible  <bruno@clisp.org>
58155
58156         * lib/vasnprintf.c (decimal_point_char): Define also if
58157         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
58158         && !NEED_PRINTF_DIRECTIVE_A.
58159         Reported by Clemens Koller <clemens.koller@anagramm.de> via
58160         Gary V. Vaughan <gary@gnu.org>.
58161
58162 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
58163
58164         * lib/inttypes_.h: Undo previous change, since it was fixed
58165         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
58166
58167 2007-07-13  Bruno Haible  <bruno@clisp.org>
58168
58169         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
58170         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
58171
58172 2007-07-13  Jim Meyering  <jim@meyering.net>
58173
58174         df: Don't fail for Tru64's "file-on-file mount".
58175         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
58176         so we fall through and use statfs instead.  Details here:
58177         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
58178         Reported by Albert Chin.
58179
58180 2007-07-13  Bruno Haible  <bruno@clisp.org>
58181
58182         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
58183         * modules/configmake (License): Likewise.
58184         * modules/gettext (License): Likewise.
58185         * modules/gettext-h (License): Likewise.
58186         * modules/include_next (License): Likewise.
58187         * modules/link-warning (License): Likewise.
58188         * modules/localcharset (License): Likewise.
58189         * modules/localename (License): Likewise.
58190         * modules/lock (License): Likewise.
58191         * modules/relocatable-lib-lgpl (License): Likewise.
58192         * modules/size_max (License): Likewise.
58193         * modules/vasnprintf (License): Likewise.
58194         * modules/wchar (License): Likewise.
58195         * modules/xsize (License): Likewise.
58196
58197 2007-07-13  Bruno Haible  <bruno@clisp.org>
58198
58199         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
58200         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
58201
58202 2007-07-12  Bruno Haible  <bruno@clisp.org>
58203
58204         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
58205         in the modules files.
58206
58207 2007-07-11  Karl Berry  <karl@gnu.org>
58208
58209         * MODULES.html.sh (func_module): use
58210          sed -e '\|^'"${includefile}"'$|d'
58211          instead of /.../d, to avoid errors on $includefile's containing /.
58212
58213 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58214
58215         * gnulib-tool (func_import): Avoid duplication of --avoid
58216         statements
58217         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
58218         names to `_' in variable names.
58219
58220 2007-07-10  Eric Blake  <ebb9@byu.net>
58221
58222         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
58223         * NEWS: Document this change.
58224
58225 2007-07-08  Bruno Haible  <bruno@clisp.org>
58226
58227         Update to Unicode 5.0.
58228         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
58229         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
58230         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
58231         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
58232         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
58233         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
58234         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
58235         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
58236         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
58237         U+10A3F, U+1D242..U+1D244.
58238         (nonspacing_table_ind): Update.
58239         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
58240         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
58241
58242 2007-07-08  Bruno Haible  <bruno@clisp.org>
58243
58244         Update to Unicode 5.0.
58245         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
58246         code transform. Extend the name index field of unicode_name_to_code and
58247         unicode_code_to_name from 16 to 24 bits.
58248         * lib/uniname/uniname.c (unicode_character_name,
58249         unicode_name_character): Add the range 0x12xxx to the code transform.
58250         * lib/uniname/uninames.h: Regenerated.
58251         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
58252
58253 2007-07-07  Bruno Haible  <bruno@clisp.org>
58254
58255         * modules/wcwidth-tests: New file.
58256         * tests/test-wcwidth.c: New file.
58257
58258         Work around MacOS X wcwidth() bug.
58259         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
58260         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
58261         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
58262         original wcwidth in non-UTF-8 locales.
58263         * modules/wcwidth (Depends-on): Add localcharset, streq,
58264         uniwidth/width.
58265         * doc/functions/wcwidth.texi: Update.
58266
58267 2007-07-07  Bruno Haible  <bruno@clisp.org>
58268
58269         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
58270         (wcwidth): New declaration.
58271         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
58272         macros.
58273         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
58274         here. Prepare for creating <wchar.h> unconditionally.
58275         * modules/wchar (Depends-on): Add link-warning.
58276         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
58277         REPLACE_WCWIDTH, and GL_LINK_WARNING.
58278         * lib/wcwidth.h: Remove file.
58279         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
58280         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
58281         * modules/wcwidth (Files): Remove lib/wcwidth.h.
58282         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
58283         (Include): Replace wcwidth.h with <wchar.h>.
58284         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
58285         * lib/mbchar.h: Don't include wcwidth.h.
58286         * lib/mbswidth.c: Likewise.
58287         * NEWS: Mention the change.
58288
58289 2007-07-07  Bruno Haible  <bruno@clisp.org>
58290
58291         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
58292         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
58293         definition with an external declaration.
58294         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
58295         defined as a function. Remove AC_C_INLINE requirement.
58296         * modules/wcwidth (Files): Add lib/wcwidth.c.
58297         (Makefile.am): Remove redundant statement.
58298
58299 2007-07-07  Bruno Haible  <bruno@clisp.org>
58300
58301         * MODULES.html.sh (Unicode string functions): Add the new modules.
58302
58303         * tests/uniwidth/test-u32-strwidth.c: New file.
58304         * modules/uniwidth/u32-strwidth-tests: New file.
58305
58306         * lib/uniwidth/u32-strwidth.c: New file.
58307         * modules/uniwidth/u32-strwidth: New file.
58308
58309         * tests/uniwidth/test-u16-strwidth.c: New file.
58310         * modules/uniwidth/u16-strwidth-tests: New file.
58311
58312         * lib/uniwidth/u16-strwidth.c: New file.
58313         * modules/uniwidth/u16-strwidth: New file.
58314
58315         * tests/uniwidth/test-u8-strwidth.c: New file.
58316         * modules/uniwidth/u8-strwidth-tests: New file.
58317
58318         * lib/uniwidth/u8-strwidth.c: New file.
58319         * modules/uniwidth/u8-strwidth: New file.
58320
58321         * tests/uniwidth/test-u32-width.c: New file.
58322         * modules/uniwidth/u32-width-tests: New file.
58323
58324         * lib/uniwidth/u32-width.c: New file.
58325         * modules/uniwidth/u32-width: New file.
58326
58327         * tests/uniwidth/test-u16-width.c: New file.
58328         * modules/uniwidth/u16-width-tests: New file.
58329
58330         * lib/uniwidth/u16-width.c: New file.
58331         * modules/uniwidth/u16-width: New file.
58332
58333         * tests/uniwidth/test-u8-width.c: New file.
58334         * modules/uniwidth/u8-width-tests: New file.
58335
58336         * lib/uniwidth/u8-width.c: New file.
58337         * modules/uniwidth/u8-width: New file.
58338
58339         * tests/uniwidth/test-uc_width.c: New file.
58340         * modules/uniwidth/width-tests: New file.
58341
58342         * lib/uniwidth/width.c: New file, from GNU libiconv.
58343         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
58344         * modules/uniwidth/width: New file.
58345
58346         * lib/uniwidth.h: New file, from GNU libiconv.
58347         * modules/uniwidth/base: New file.
58348
58349 2007-07-07  Bruno Haible  <bruno@clisp.org>
58350
58351         * lib/uniname.h: New file, from GNU gettext.
58352         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
58353         * lib/uniname/uninames.h: New file, from GNU gettext.
58354         * lib/uniname/uniname.c: New file, from GNU gettext.
58355         * tests/uniname/test-uninames.sh: New file.
58356         * tests/uniname/test-uninames.c: New file, from GNU gettext.
58357         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
58358         * modules/uniname/base: New file.
58359         * modules/uniname/uniname: New file.
58360         * modules/uniname/uniname-tests: New file.
58361         * MODULES.html.sh (Unicode string functions): Add the new modules.
58362
58363 2007-07-06  Bruno Haible  <bruno@clisp.org>
58364
58365         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
58366
58367 2007-07-06  Bruno Haible  <bruno@clisp.org>
58368
58369         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
58370         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
58371         includes <cygwin/sys_time.h> which includes <sys/select.h> which
58372         include <sys/time.h>.
58373         Reported by Eric Blake.
58374
58375 2007-07-06  Eric Blake  <ebb9@byu.net>
58376
58377         Fix testing canonicalize on cygwin.
58378         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58379         Revert patch from 2007-06-19.
58380         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
58381         canonicalize module is also in use.
58382         * tests/test-canonicalize.c: New file.
58383         * tests/test-canonicalize.sh: Likewise.
58384         * modules/canonicalize-tests: Likewise.
58385
58386 2007-07-06  Jim Meyering  <jim@meyering.net>
58387
58388         * lib/getugroups.c (getugroups): Detect getgrent failure.
58389         Adjust comment to reflect reality: this function may return -1.
58390
58391 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
58392
58393         * build-aux/bootstrap (TP_URL,get_translations): Update to use
58394         the new TP address.
58395         (usage): Fix typo
58396         (gnulib_mk): New variable.
58397
58398 2007-07-05  Jim Meyering  <jim@meyering.net>
58399
58400         Don't let endgrent clobber errno, no matter how improbable.
58401         * lib/getugroups.c (getugroups): Save and restore errno around
58402         endgrent call.
58403
58404         Close the group DB even when failing with 2^31 or more members.
58405         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
58406
58407 2007-07-04  Jim Meyering  <jim@meyering.net>
58408
58409         * lib/getugroups.h: New file.
58410         * lib/getugroups.c: Include "getugroups.h".
58411         Remove uses of "register" keyword.
58412         Move local variable, "cp", down into scope where used.
58413         Give "username" parameter the "const" attribute.
58414         * modules/getugroups (Files): Add lib/getugroups.h
58415
58416 2007-07-04  Karl Berry  <karl@gnu.org>
58417
58418         * MODULES.html.sh (func_all_modules): Complete rename of
58419         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
58420
58421 2007-07-02  Bruno Haible  <bruno@clisp.org>
58422
58423         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
58424         mode, when inttypes.h comes from gnulib.
58425         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58426
58427 2007-07-02  Simon Josefsson  <simon@josefsson.org>
58428
58429         * NEWS: Mention lgpl module name change.
58430
58431         * modules/lgpl-2.1: Renamed from lgpl.
58432
58433         * NEWS: Mention gpl module name change.
58434
58435         * modules/gpl-3.0: New file, based on gpl-2.0.
58436
58437         * modules/gpl-2.0: Renamed from gpl.
58438
58439         * modules/gpl: Fix filename, doc/gpl.texi is now found at
58440         doc/gpl-2.0.texi.
58441
58442 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
58443
58444         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
58445         #define __STDC_LIMIT_MACROS temporarily while including
58446         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
58447         Problem reported by Joel E. Denny in
58448         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
58449
58450 2007-07-01  Bruno Haible  <bruno@clisp.org>
58451
58452         * lib/unistdio.h: New file.
58453         * lib/unistdio/u-asnprintf.h: New file.
58454         * lib/unistdio/u-asprintf.h: New file.
58455         * lib/unistdio/u-printf-args.c: New file.
58456         * lib/unistdio/u-printf-args.h: New file.
58457         * lib/unistdio/u-printf-parse.h: New file.
58458         * lib/unistdio/u-snprintf.h: New file.
58459         * lib/unistdio/u-sprintf.h: New file.
58460         * lib/unistdio/u-vasprintf.h: New file.
58461         * lib/unistdio/u-vsnprintf.h: New file.
58462         * lib/unistdio/u-vsprintf.h: New file.
58463         * lib/unistdio/ulc-asnprintf.c: New file.
58464         * lib/unistdio/ulc-asprintf.c: New file.
58465         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
58466         * lib/unistdio/ulc-printf-parse.c: New file.
58467         * lib/unistdio/ulc-snprintf.c: New file.
58468         * lib/unistdio/ulc-sprintf.c: New file.
58469         * lib/unistdio/ulc-vasnprintf.c: New file.
58470         * lib/unistdio/ulc-vasprintf.c: New file.
58471         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
58472         * lib/unistdio/ulc-vsnprintf.c: New file.
58473         * lib/unistdio/ulc-vsprintf.c: New file.
58474         * lib/unistdio/u8-asnprintf.c: New file.
58475         * lib/unistdio/u8-asprintf.c: New file.
58476         * lib/unistdio/u8-printf-parse.c: New file.
58477         * lib/unistdio/u8-snprintf.c: New file.
58478         * lib/unistdio/u8-sprintf.c: New file.
58479         * lib/unistdio/u8-vasnprintf.c: New file.
58480         * lib/unistdio/u8-vasprintf.c: New file.
58481         * lib/unistdio/u8-vsnprintf.c: New file.
58482         * lib/unistdio/u8-vsprintf.c: New file.
58483         * lib/unistdio/u8-u8-asnprintf.c: New file.
58484         * lib/unistdio/u8-u8-asprintf.c: New file.
58485         * lib/unistdio/u8-u8-snprintf.c: New file.
58486         * lib/unistdio/u8-u8-sprintf.c: New file.
58487         * lib/unistdio/u8-u8-vasnprintf.c: New file.
58488         * lib/unistdio/u8-u8-vasprintf.c: New file.
58489         * lib/unistdio/u8-u8-vsnprintf.c: New file.
58490         * lib/unistdio/u8-u8-vsprintf.c: New file.
58491         * lib/unistdio/u16-asnprintf.c: New file.
58492         * lib/unistdio/u16-asprintf.c: New file.
58493         * lib/unistdio/u16-printf-parse.c: New file.
58494         * lib/unistdio/u16-snprintf.c: New file.
58495         * lib/unistdio/u16-sprintf.c: New file.
58496         * lib/unistdio/u16-vasnprintf.c: New file.
58497         * lib/unistdio/u16-vasprintf.c: New file.
58498         * lib/unistdio/u16-vsnprintf.c: New file.
58499         * lib/unistdio/u16-vsprintf.c: New file.
58500         * lib/unistdio/u16-u16-asnprintf.c: New file.
58501         * lib/unistdio/u16-u16-asprintf.c: New file.
58502         * lib/unistdio/u16-u16-snprintf.c: New file.
58503         * lib/unistdio/u16-u16-sprintf.c: New file.
58504         * lib/unistdio/u16-u16-vasnprintf.c: New file.
58505         * lib/unistdio/u16-u16-vasprintf.c: New file.
58506         * lib/unistdio/u16-u16-vsnprintf.c: New file.
58507         * lib/unistdio/u16-u16-vsprintf.c: New file.
58508         * lib/unistdio/u32-asnprintf.c: New file.
58509         * lib/unistdio/u32-asprintf.c: New file.
58510         * lib/unistdio/u32-printf-parse.c: New file.
58511         * lib/unistdio/u32-snprintf.c: New file.
58512         * lib/unistdio/u32-sprintf.c: New file.
58513         * lib/unistdio/u32-vasnprintf.c: New file.
58514         * lib/unistdio/u32-vasprintf.c: New file.
58515         * lib/unistdio/u32-vsnprintf.c: New file.
58516         * lib/unistdio/u32-vsprintf.c: New file.
58517         * lib/unistdio/u32-u32-asnprintf.c: New file.
58518         * lib/unistdio/u32-u32-asprintf.c: New file.
58519         * lib/unistdio/u32-u32-snprintf.c: New file.
58520         * lib/unistdio/u32-u32-sprintf.c: New file.
58521         * lib/unistdio/u32-u32-vasnprintf.c: New file.
58522         * lib/unistdio/u32-u32-vasprintf.c: New file.
58523         * lib/unistdio/u32-u32-vsnprintf.c: New file.
58524         * lib/unistdio/u32-u32-vsprintf.c: New file.
58525         * tests/unistdio/test-ulc-asnprintf1.c: New file.
58526         * tests/unistdio/test-ulc-asnprintf1.h: New file.
58527         * tests/unistdio/test-ulc-printf1.h: New file.
58528         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
58529         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
58530         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
58531         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
58532         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
58533         * tests/unistdio/test-ulc-vasprintf1.c: New file.
58534         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
58535         * tests/unistdio/test-ulc-vsprintf1.c: New file.
58536         * tests/unistdio/test-u8-asnprintf1.c: New file.
58537         * tests/unistdio/test-u8-asnprintf1.h: New file.
58538         * tests/unistdio/test-u8-printf1.h: New file.
58539         * tests/unistdio/test-u8-vasnprintf1.c: New file.
58540         * tests/unistdio/test-u8-vasnprintf2.c: New file.
58541         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
58542         * tests/unistdio/test-u8-vasnprintf3.c: New file.
58543         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
58544         * tests/unistdio/test-u8-vasprintf1.c: New file.
58545         * tests/unistdio/test-u8-vsnprintf1.c: New file.
58546         * tests/unistdio/test-u8-vsprintf1.c: New file.
58547         * tests/unistdio/test-u16-asnprintf1.c: New file.
58548         * tests/unistdio/test-u16-asnprintf1.h: New file.
58549         * tests/unistdio/test-u16-printf1.h: New file.
58550         * tests/unistdio/test-u16-vasnprintf1.c: New file.
58551         * tests/unistdio/test-u16-vasnprintf2.c: New file.
58552         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
58553         * tests/unistdio/test-u16-vasnprintf3.c: New file.
58554         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
58555         * tests/unistdio/test-u16-vasprintf1.c: New file.
58556         * tests/unistdio/test-u16-vsnprintf1.c: New file.
58557         * tests/unistdio/test-u16-vsprintf1.c: New file.
58558         * tests/unistdio/test-u32-asnprintf1.c: New file.
58559         * tests/unistdio/test-u32-asnprintf1.h: New file.
58560         * tests/unistdio/test-u32-printf1.h: New file.
58561         * tests/unistdio/test-u32-vasnprintf1.c: New file.
58562         * tests/unistdio/test-u32-vasnprintf2.c: New file.
58563         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
58564         * tests/unistdio/test-u32-vasnprintf3.c: New file.
58565         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
58566         * tests/unistdio/test-u32-vasprintf1.c: New file.
58567         * tests/unistdio/test-u32-vsnprintf1.c: New file.
58568         * tests/unistdio/test-u32-vsprintf1.c: New file.
58569         * modules/unistdio/base: New file.
58570         * modules/unistdio/u-printf-args: New file.
58571         * modules/unistdio/ulc-asnprintf: New file.
58572         * modules/unistdio/ulc-asprintf: New file.
58573         * modules/unistdio/ulc-fprintf: New file.
58574         * modules/unistdio/ulc-printf-parse: New file.
58575         * modules/unistdio/ulc-snprintf: New file.
58576         * modules/unistdio/ulc-sprintf: New file.
58577         * modules/unistdio/ulc-vasnprintf: New file.
58578         * modules/unistdio/ulc-vasprintf: New file.
58579         * modules/unistdio/ulc-vfprintf: New file.
58580         * modules/unistdio/ulc-vsnprintf: New file.
58581         * modules/unistdio/ulc-vsprintf: New file.
58582         * modules/unistdio/u8-asnprintf: New file.
58583         * modules/unistdio/u8-asprintf: New file.
58584         * modules/unistdio/u8-printf-parse: New file.
58585         * modules/unistdio/u8-snprintf: New file.
58586         * modules/unistdio/u8-sprintf: New file.
58587         * modules/unistdio/u8-vasnprintf: New file.
58588         * modules/unistdio/u8-vasprintf: New file.
58589         * modules/unistdio/u8-vsnprintf: New file.
58590         * modules/unistdio/u8-vsprintf: New file.
58591         * modules/unistdio/u8-u8-asnprintf: New file.
58592         * modules/unistdio/u8-u8-asprintf: New file.
58593         * modules/unistdio/u8-u8-snprintf: New file.
58594         * modules/unistdio/u8-u8-sprintf: New file.
58595         * modules/unistdio/u8-u8-vasnprintf: New file.
58596         * modules/unistdio/u8-u8-vasprintf: New file.
58597         * modules/unistdio/u8-u8-vsnprintf: New file.
58598         * modules/unistdio/u8-u8-vsprintf: New file.
58599         * modules/unistdio/u16-asnprintf: New file.
58600         * modules/unistdio/u16-asprintf: New file.
58601         * modules/unistdio/u16-printf-parse: New file.
58602         * modules/unistdio/u16-snprintf: New file.
58603         * modules/unistdio/u16-sprintf: New file.
58604         * modules/unistdio/u16-vasnprintf: New file.
58605         * modules/unistdio/u16-vasprintf: New file.
58606         * modules/unistdio/u16-vsnprintf: New file.
58607         * modules/unistdio/u16-vsprintf: New file.
58608         * modules/unistdio/u16-u16-asnprintf: New file.
58609         * modules/unistdio/u16-u16-asprintf: New file.
58610         * modules/unistdio/u16-u16-snprintf: New file.
58611         * modules/unistdio/u16-u16-sprintf: New file.
58612         * modules/unistdio/u16-u16-vasnprintf: New file.
58613         * modules/unistdio/u16-u16-vasprintf: New file.
58614         * modules/unistdio/u16-u16-vsnprintf: New file.
58615         * modules/unistdio/u16-u16-vsprintf: New file.
58616         * modules/unistdio/u32-asnprintf: New file.
58617         * modules/unistdio/u32-asprintf: New file.
58618         * modules/unistdio/u32-printf-parse: New file.
58619         * modules/unistdio/u32-snprintf: New file.
58620         * modules/unistdio/u32-sprintf: New file.
58621         * modules/unistdio/u32-vasnprintf: New file.
58622         * modules/unistdio/u32-vasprintf: New file.
58623         * modules/unistdio/u32-vsnprintf: New file.
58624         * modules/unistdio/u32-vsprintf: New file.
58625         * modules/unistdio/u32-u32-asnprintf: New file.
58626         * modules/unistdio/u32-u32-asprintf: New file.
58627         * modules/unistdio/u32-u32-snprintf: New file.
58628         * modules/unistdio/u32-u32-sprintf: New file.
58629         * modules/unistdio/u32-u32-vasnprintf: New file.
58630         * modules/unistdio/u32-u32-vasprintf: New file.
58631         * modules/unistdio/u32-u32-vsnprintf: New file.
58632         * modules/unistdio/u32-u32-vsprintf: New file.
58633         * modules/unistdio/ulc-asnprintf-tests: New file.
58634         * modules/unistdio/ulc-vasnprintf-tests: New file.
58635         * modules/unistdio/ulc-vasprintf-tests: New file.
58636         * modules/unistdio/ulc-vsnprintf-tests: New file.
58637         * modules/unistdio/ulc-vsprintf-tests: New file.
58638         * modules/unistdio/u8-asnprintf-tests: New file.
58639         * modules/unistdio/u8-vasnprintf-tests: New file.
58640         * modules/unistdio/u8-vasprintf-tests: New file.
58641         * modules/unistdio/u8-vsnprintf-tests: New file.
58642         * modules/unistdio/u8-vsprintf-tests: New file.
58643         * modules/unistdio/u16-asnprintf-tests: New file.
58644         * modules/unistdio/u16-vasnprintf-tests: New file.
58645         * modules/unistdio/u16-vasprintf-tests: New file.
58646         * modules/unistdio/u16-vsnprintf-tests: New file.
58647         * modules/unistdio/u16-vsprintf-tests: New file.
58648         * modules/unistdio/u32-asnprintf-tests: New file.
58649         * modules/unistdio/u32-vasnprintf-tests: New file.
58650         * modules/unistdio/u32-vasprintf-tests: New file.
58651         * modules/unistdio/u32-vsnprintf-tests: New file.
58652         * modules/unistdio/u32-vsprintf-tests: New file.
58653         * MODULES.html.sh (Unicode string functions): Add the new modules.
58654
58655 2007-07-01  Bruno Haible  <bruno@clisp.org>
58656
58657         * lib/sprintf.c (sprintf): Limit the available length estimation,
58658         to avoid address wraparound.
58659         * lib/vsprintf.c (vsprintf): Likewise.
58660         * modules/sprintf-posix (Dependencies): Add stdint.
58661         * modules/vsprintf-posix (Dependencies): Likewise.
58662
58663 2007-07-01  Bruno Haible  <bruno@clisp.org>
58664
58665         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
58666         Windows PATH as well. Conservative double-quoting. Comments.
58667
58668 2007-07-01  Bruno Haible  <bruno@clisp.org>
58669             Eric Blake  <ebb9@byu.net>
58670             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58671
58672         * gnulib-tool (self_abspathname): Fix algorithm to cope with
58673         empty components in $PATH, denoting '.'.
58674
58675 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58676
58677         * gnulib-tool: Fix indentation.
58678         (func_create_megatestdir): Likewise.
58679         Report by Bruno Haible.
58680
58681 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58682
58683         Sync from Automake.
58684         * build-aux/gnupload: Fix shell portability issues with for loops.
58685         Report by Karl Berry.
58686
58687 2007-06-29  Simon Josefsson  <simon@josefsson.org>
58688
58689         * build-aux/maint.mk (POURL): Use translationproject.org.
58690
58691 2007-06-27  Simon Josefsson  <simon@josefsson.org>
58692             Bruno Haible  <bruno@clisp.org>
58693
58694         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
58695         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
58696         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
58697         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
58698         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
58699
58700 2007-06-27  Bruno Haible  <bruno@clisp.org>
58701
58702         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
58703         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
58704
58705 2007-06-26  Karl Berry  <karl@gnu.org>
58706
58707         * MODULES.html.sh: remove xreadlink-with-size.
58708
58709 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58710
58711         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
58712         method that I hope also handles the double-include problem noted
58713         by Bruno Haible in
58714         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
58715
58716 2007-06-23  Bruno Haible  <bruno@clisp.org>
58717
58718         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58719         Don't let the 'mostlyclean' target fail if the last subdirectory could
58720         not be removed.
58721         Reported by Karl Berry.
58722
58723 2007-06-23  Bruno Haible  <bruno@clisp.org>
58724
58725         * gnulib-tool (echo): Add a speedier workaround for ksh.
58726         * tests/test-echo.sh: Likewise.
58727
58728 2007-06-23  Bruno Haible  <bruno@clisp.org>
58729
58730         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
58731         * tests/test-echo.sh: Likewise.
58732
58733 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58734
58735         * gnulib-tool (IFS): Initialize early, so we don't set it to
58736         empty later.
58737         (self_abspathname): Rewrite algorithm to set it, reindent.
58738         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
58739         (func_create_megatestdir): Merge some sed scripts.
58740
58741 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58742
58743         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
58744         exposed by Sun Studio 11 cc on Solaris 8.
58745
58746 2007-06-22  Bruno Haible  <bruno@clisp.org>
58747
58748         * gnulib-tool (echo): Ensure the echo primitive does not interpret
58749         backslashes.
58750         * tests/test-echo.sh: New file.
58751
58752 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58753
58754         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
58755         simplify `sed_replace_build_aux' scripts, they are portable but
58756         echoing them with `echo' is not.
58757         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
58758
58759 2007-06-21  Karl Berry  <karl@gnu.org>
58760
58761         * config/srclist.txt: guess we can't handle the licenses via
58762         srclist at the moment.
58763
58764 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
58765
58766         * MODULES.html.sh: Add include_next.
58767         * modules/include_next: New file.
58768
58769 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
58770
58771         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
58772         INCLUDE_NEXT.
58773         (gl_CHECK_NEXT_HEADERS): New macro.
58774         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
58775         the obsolescent gl_ABSOLUTE_HEADER.
58776         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
58777         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
58778         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
58779         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58780         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
58781         * m4/math_h.m4 (gl_MATH_H): Likewise.
58782         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
58783         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
58784         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
58785         * m4/stdint.m4 (gl_STDINT_H): Likewise.
58786         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
58787         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
58788         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
58789         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58790         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58791         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
58792         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
58793         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
58794         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
58795         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
58796         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
58797         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58798         * m4/inttypes.m4 (gl_INTTYPES_H): Define
58799         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
58800         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
58801         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
58802         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
58803         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
58804         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
58805         * lib/float_.h: Likewise.
58806         * lib/inttypes_.h: Likewise.
58807         * lib/math_.h: Likewise.
58808         * lib/search_.h: Likewise.
58809         * lib/signal_.h: Likewise.
58810         * lib/stdint_.h: Likewise.
58811         * lib/stdio_.h: Likewise.
58812         * lib/stdlib_.h: Likewise.
58813         * lib/string_.h: Likewise.
58814         * lib/sys_stat_.h: Likewise.
58815         * lib/sys_time_.h: Likewise.
58816         * lib/time_.h: Likewise.
58817         * lib/unistd_.h: Likewise.
58818         * lib/wchar_.h: Likewise.
58819         * lib/wctype_.h: Likewise.
58820         * lib/dirent_.h: Likewise.
58821         * lib/iconv_.h: Likewise.
58822         * lib/locale_.h: Likewise.
58823         * lib/netinet_in_.h: Likewise.
58824         * lib/sys_select_.h: Likewise.
58825         * lib/sys_socket_.h: Likewise.
58826         * lib/sysexits_.h: Likewise.
58827         * modules/fcntl (Depends-on): Depend on include_next, not
58828         absolute_header.
58829         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
58830         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
58831         * modules/fchdir: Likewise.
58832         * modules/float: Likewise.
58833         * modules/iconv_open: Likewise.
58834         * modules/inttypes: Likewise.
58835         * modules/locale: Likewise.
58836         * modules/math: Likewise.
58837         * modules/netinet_in: Likewise.
58838         * modules/search: Likewise.
58839         * modules/signal: Likewise.
58840         * modules/stdint: Likewise.
58841         * modules/stdio: Likewise.
58842         * modules/stdlib: Likewise.
58843         * modules/string: Likewise.
58844         * modules/sys_select: Likewise.
58845         * modules/sys_socket: Likewise.
58846         * modules/sys_stat: Likewise.
58847         * modules/sys_time: Likewise.
58848         * modules/sysexits: Likewise.
58849         * modules/time: Likewise.
58850         * modules/unistd: Likewise.
58851         * modules/wchar: Likewise.
58852         * modules/wctype: Likewise.
58853         * modules/sys_stat: Change maintainer to "all".
58854         * modules/unistd: Likewise.
58855
58856 2007-06-20  Karl Berry  <karl@gnu.org>
58857
58858         * config/srclist.txt: track www changes in license files.
58859
58860 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
58861
58862         * build-aux/bootstrap: Remove stray dot.
58863         Make sure build_aux settings are honored when linking
58864         gnulib_extra_files.
58865
58866 2007-06-19  Eric Blake  <ebb9@byu.net>
58867
58868         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58869         Allow compilation on cygwin.
58870
58871 2007-06-19  Jim Meyering  <jim@meyering.net>
58872
58873         xreadlink-with-size: Remove module.  No longer used.
58874         Ex-callers now use xreadlink or mreadlink-with-size.
58875         * modules/xreadlink-with-size: Remove module.
58876         * lib/xreadlink-with-size.c: Remove file.
58877         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
58878         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
58879         just before the function definition *is* accurate.
58880
58881         Eliminate one way canonicalize_filename_mode could exit.
58882         * lib/canonicalize.c (canonicalize_filename_mode):
58883         Use mreadlink_with_size, not xreadlink_with_size.
58884
58885 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
58886
58887         Detect porting problems to FreeBSD/arm, which has time_t wider than
58888         long int.  Original problem reported for GNU diff by Xin Li in
58889         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
58890         * modules/getdate (Depends-on): Add intprops, verify.
58891         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
58892         is an integer type no wider than long int.
58893
58894 2007-06-18  Jim Meyering  <jim@meyering.net>
58895
58896         New module: mreadlink-with-size.
58897         * MODULES.html.sh: Add mreadlink-with-size.
58898         * modules/mreadlink-with-size: New module
58899         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
58900         not xreadlink-with-size.
58901         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
58902
58903 2007-06-16  Bruno Haible  <bruno@clisp.org>
58904
58905         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
58906         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
58907         Reported by Gary V. Vaughan <gary@gnu.org>.
58908
58909 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
58910
58911         Revamp lchown so that it lives in unistd.h where it belongs.
58912         * lib/lchown.h: Remove.
58913         * lib/dirchownmod.c: Don't include lib/lchown.h.
58914         * lib/fchownat.c: Likewise.
58915         * lib/openat.c: Likewise.
58916         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
58917         does not follow symlinks.
58918         (EOPNOTSUPP): Define if not defined.
58919         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
58920         is defined to 0.
58921         (lchown): New decl.
58922         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
58923         Do not check for lchown decl.
58924         Set REPLACE_LCHOWN.
58925         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
58926         REPLACE_LCHOWN.
58927         * modules/chown: Make it clear it follows symlinks.
58928         * modules/lchown: Make it clear it doesn't follow symlinks.
58929         (Files): Remove lib/lchown.h
58930         (Depends-on): Add unistd.
58931         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
58932         (Include): Include <unistd.h>, not "lchown.h".
58933         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
58934         REPLACE_LCHOWN.
58935
58936 2007-06-15  Jim Meyering  <jim@meyering.net>
58937
58938         Change license (GPL to LGPL) of fsusage and dependents.
58939         * modules/fsusage (License): Change to LGPL.
58940         * modules/full-read (License): Likewise.
58941         * modules/full-write (License): Likewise.
58942         * modules/safe-read (License): Likewise.
58943         * modules/safe-write (License): Likewise.
58944
58945 2007-06-14  Ben Pfaff  <blp@gnu.org>
58946
58947         Missing part of allocsa -> malloca transition.
58948         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
58949         gl_MALLOCA.
58950
58951 2007-06-12  Bruno Haible  <bruno@clisp.org>
58952
58953         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
58954         to ia64, x86_64, i386.
58955         Reported by Eric Blake.
58956
58957 2007-06-12  Bruno Haible  <bruno@clisp.org>
58958
58959         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
58960         cross-compiling to x86_64.
58961
58962 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
58963
58964         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
58965         glitch reported by Ralf Wildenhues in
58966         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
58967
58968         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
58969         Vin Shelton.
58970
58971 2007-06-11  Bruno Haible  <bruno@clisp.org>
58972
58973         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
58974         replacement string.
58975         Reported by Eric Blake.
58976
58977 2007-06-10  Bruno Haible  <bruno@clisp.org>
58978
58979         Prepare vasnprintf code for use with Unicode strings.
58980         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
58981         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
58982         TYPE_U32_STRING.
58983         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
58984         a_u32_string variants.
58985         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58986         * lib/printf-args.c: Don't include config.h and the specification
58987         header if PRINTF_FETCHARGS is already defined.
58988         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
58989         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
58990         TYPE_U16_STRING, TYPE_U32_STRING.
58991         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
58992         u16_directive, u16_directives, u32_directive, u32_directives): New
58993         types.
58994         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
58995         New declarations.
58996         * lib/printf-parse.c: Don't include config.h and the specification
58997         header if PRINTF_PARSE is already defined. Eliminate the set of
58998         parameters for WIDE_CHAR_VERSION; the user of this file must provide
58999         them now. Include c-ctype.h.
59000         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
59001         directive and CHAR_T_ONLY_ASCII.
59002         * lib/vasnprintf.c: Don't include config.h and the specification header
59003         if VASNPRINTF is already defined.
59004         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
59005         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
59006         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
59007         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
59008         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
59009         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
59010         code accordingly.
59011         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
59012         pad_ourselves also in this case, with the 'c' and 's' directives, and
59013         with a different notion of "width".
59014         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
59015
59016 2007-06-10  Bruno Haible  <bruno@clisp.org>
59017
59018         * modules/unistr/u32-mbsnlen: New file.
59019         * lib/unistr/u32-mbsnlen.c: New file.
59020
59021         * modules/unistr/u16-mbsnlen: New file.
59022         * lib/unistr/u16-mbsnlen.c: New file.
59023
59024         * modules/unistr/u8-mbsnlen: New file.
59025         * lib/unistr/u8-mbsnlen.c: New file.
59026
59027         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
59028         declarations.
59029
59030 2007-06-10  Bruno Haible  <bruno@clisp.org>
59031
59032         * lib/string_.h (mbsnlen): New declaration.
59033         * lib/mbsnlen.c: New file.
59034         * m4/mbsnlen.m4: New file.
59035         * modules/mbsnlen: New file.
59036         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
59037         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
59038         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
59039
59040 2007-06-10  Bruno Haible  <bruno@clisp.org>
59041
59042         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
59043
59044 2007-06-10  Bruno Haible  <bruno@clisp.org>
59045
59046         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
59047         * lib/mbuiter.h: Likewise.
59048
59049 2007-06-10  Bruno Haible  <bruno@clisp.org>
59050
59051         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
59052         declaration.
59053
59054 2007-06-10  Karl Berry  <karl@gnu.org>
59055
59056         * config/srclist.txt: remove gettext entries, Bruno prefers
59057         to update individually.
59058
59059 2007-06-10  Bruno Haible  <bruno@clisp.org>
59060
59061         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
59062         'maxlen'. Ensure only length + width bytes are allocated, not
59063         length + 1 + width.
59064
59065 2007-06-09  Bruno Haible  <bruno@clisp.org>
59066
59067         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
59068         (CHAR_T): Remove macro.
59069         (VASNPRINTF): Update.
59070
59071 2007-06-09  Bruno Haible  <bruno@clisp.org>
59072
59073         * MODULES.html.sh (Unicode string functions): Add the new modules.
59074
59075         * modules/uniconv/u32-conv-to-enc: New file.
59076         * lib/uniconv/u32-conv-to-enc.c: New file.
59077         * modules/uniconv/u32-conv-to-enc-tests: New file.
59078         * tests/uniconv/test-u32-conv-to-enc.c: New file.
59079
59080         * modules/uniconv/u16-conv-to-enc: New file.
59081         * lib/uniconv/u16-conv-to-enc.c: New file.
59082         * lib/uniconv/u-conv-to-enc.h: New file.
59083         * modules/uniconv/u16-conv-to-enc-tests: New file.
59084         * tests/uniconv/test-u16-conv-to-enc.c: New file.
59085
59086         * modules/uniconv/u8-conv-to-enc: New file.
59087         * lib/uniconv/u8-conv-to-enc.c: New file.
59088         * modules/uniconv/u8-conv-to-enc-tests: New file.
59089         * tests/uniconv/test-u8-conv-to-enc.c: New file.
59090
59091         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
59092         u32_conv_to_encoding): New declarations.
59093
59094 2007-06-09  Bruno Haible  <bruno@clisp.org>
59095
59096         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
59097
59098 2007-06-09  Bruno Haible  <bruno@clisp.org>
59099
59100         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
59101         * modules/malloca: Renamed from modules/allocsa, updated.
59102         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
59103         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
59104         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
59105         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
59106         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
59107         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
59108         * modules/xmalloca: Renamed from modules/xallocsa, updated.
59109         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
59110         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
59111         * modules/c-strcasestr (Depends-on): Update.
59112         * lib/c-strcasestr.c: Update.
59113         * modules/c-strstr (Depends-on): Update.
59114         * lib/c-strstr.c: Update.
59115         * modules/canonicalize-lgpl (Depends-on): Update.
59116         * lib/canonicalize-lgpl.c: Update.
59117         * modules/clean-temp (Depends-on): Update.
59118         * lib/clean-temp.c: Update.
59119         * modules/csharpcomp (Depends-on): Update.
59120         * lib/csharpcomp.c: Update.
59121         * modules/csharpexec (Depends-on): Update.
59122         * lib/csharpexec.c: Update.
59123         * modules/javacomp (Depends-on): Update.
59124         * lib/javacomp.c: Update.
59125         * modules/javaexec (Depends-on): Update.
59126         * lib/javaexec.c: Update.
59127         * modules/mbscasestr (Depends-on): Update.
59128         * lib/mbscasestr.c: Update.
59129         * modules/mbsstr (Depends-on): Update.
59130         * lib/mbsstr.c: Update.
59131         * modules/setenv (Depends-on): Update.
59132         * lib/setenv.c: Update.
59133         * modules/strcasestr (Depends-on): Update.
59134         * lib/strcasestr.c: Update.
59135         * modules/striconveha (Depends-on): Update.
59136         * lib/striconveha.c: Update.
59137         * modules/relocatable-prog-wrapper (Files): Update.
59138         * lib/relocwrapper.c: Update.
59139         * build-aux/install-reloc: Update.
59140         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
59141
59142 2007-06-08  Bruno Haible  <bruno@clisp.org>
59143
59144         Port to uClibc.
59145         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
59146         * lib/fpurge.c (fpurge): Likewise.
59147         * lib/freading.c (freading): Likewise.
59148         * lib/fseeko.c (rpl_fseeko): Likewise.
59149         * lib/fseterr.c (fseterr): Likewise.
59150         * lib/fwriting.c (fwriting): Likewise.
59151         * tests/test-fflush.c (main): Avoid a failure on uClibc.
59152
59153 2007-06-08  Bruno Haible  <bruno@clisp.org>
59154
59155         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
59156         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
59157         * modules/gettext (Files): Add m4/intlmacosx.m4.
59158
59159 2007-06-07  Bruno Haible  <bruno@clisp.org>
59160
59161         * modules/localename-tests: New file.
59162         * tests/test-localename.c: New file.
59163
59164         New module 'localename'.
59165         * lib/localename.h: New file.
59166         * lib/localename.c: New file, from GNU gettext.
59167         * m4/localename.m4: New file.
59168         * modules/localename: New file.
59169
59170 2007-06-07  Bruno Haible  <bruno@clisp.org>
59171
59172         Work around the lack of <wchar.h> on some builds of uClibc.
59173         * doc/headers/wchar.texi: Update.
59174         * lib/wchar_.h: Include <wchar.h> only if it exists.
59175         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
59176         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
59177         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
59178         doesn't exist.
59179         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
59180         * modules/mbfile (Depends-on): Add wchar.
59181         * modules/mbiter (Depends-on): Likewise.
59182         * modules/mbuiter (Depends-on): Likewise.
59183         Reported by Simon Josefsson.
59184
59185 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
59186
59187         Work around problem reported by Steven M. Schweda in
59188         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
59189         Tru64 5.1B with the Compaq compiler environment installed declares
59190         an 'isblank' function but does not define it in the C library.
59191         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
59192         * lib/regex_internal.h (isblank): Likewise.
59193         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
59194         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
59195
59196 2007-06-05  Bruno Haible  <bruno@clisp.org>
59197
59198         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
59199         ia64.
59200         * modules/printf-safe: New file.
59201         * modules/fprintf-posix (Depends-on): Add printf-safe.
59202         * modules/printf-posix (Depends-on): Likewise.
59203         * modules/snprintf-posix (Depends-on): Likewise.
59204         * modules/sprintf-posix (Depends-on): Likewise.
59205         * modules/vasnprintf-posix (Depends-on): Likewise.
59206         * modules/vasprintf-posix (Depends-on): Likewise.
59207         * modules/vfprintf-posix (Depends-on): Likewise.
59208         * modules/vprintf-posix (Depends-on): Likewise.
59209         * modules/vsnprintf-posix (Depends-on): Likewise.
59210         * modules/vsprintf-posix (Depends-on): Likewise.
59211         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
59212         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
59213         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
59214         "no" on i386, x86_64, ia64.
59215         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
59216         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59217         on i386, x86_64, ia64.
59218         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
59219         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59220         on i386, x86_64, ia64.
59221         * tests/test-vasnprintf-posix.c: Include float.h.
59222         (LDBL80_WORDS): New macro.
59223         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59224         on i386, x86_64, ia64.
59225         * tests/test-vasprintf-posix.c: Include float.h.
59226         (LDBL80_WORDS): New macro.
59227         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59228         on i386, x86_64, ia64.
59229         * tests/test-snprintf-posix.c: Include float.h.
59230         * tests/test-sprintf-posix.c: Likewise.
59231         * tests/test-vsnprintf-posix.c: Likewise.
59232         * tests/test-vsprintf-posix.c: Likewise.
59233
59234 2007-06-05  Bruno Haible  <bruno@clisp.org>
59235
59236         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
59237         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
59238         non-IEEE numbers on i386, x86_64, ia64.
59239         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
59240         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
59241         * tests/test-isnanl.h: Include float.h.
59242         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
59243
59244 2007-06-05  Bruno Haible  <bruno@clisp.org>
59245
59246         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
59247         also the %a / %A. Handle the %a / %A code before this extra handling.
59248
59249 2007-06-05  Bruno Haible  <bruno@clisp.org>
59250
59251         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
59252         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
59253
59254 2007-06-05  Bruno Haible  <bruno@clisp.org>
59255
59256         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
59257         typo in variable name.
59258
59259 2007-06-05  Eric Blake  <ebb9@byu.net>
59260
59261         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
59262         Reported by Simon Josefsson.
59263
59264 2007-06-04  Bruno Haible  <bruno@clisp.org>
59265
59266         Avoid test failures on some PowerPC platforms.
59267         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
59268         Define differently for PowerPC.
59269         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
59270         Reported by Gary V. Vaughan <gary@gnu.org>.
59271
59272 2007-06-02  Bruno Haible  <bruno@clisp.org>
59273
59274         Fix test-stdint failure on FreeBSD/ia64.
59275         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
59276         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
59277         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
59278         * doc/headers/stdint.texi: Update.
59279
59280 2007-06-01  Bruno Haible  <bruno@clisp.org>
59281
59282         * tests/test-binary-io.c (main): Pass a third argument to open().
59283         Reported by Gary V. Vaughan <gary@gnu.org>.
59284
59285 2007-06-01  Bruno Haible  <bruno@clisp.org>
59286
59287         * doc/functions/frexpl.texi: Update for mingw.
59288
59289 2007-06-01  Bruno Haible  <bruno@clisp.org>
59290
59291         * tests/test-lseek.c (main): Disable test of errno for invalid third
59292         argument.
59293         * doc/functions/lseek.texi: Update.
59294         Reported by Gary V. Vaughan <gary@gnu.org>.
59295
59296 2007-05-28  Bruno Haible  <bruno@clisp.org>
59297
59298         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
59299
59300 2007-05-31  Eric Blake  <ebb9@byu.net>
59301
59302         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
59303         cross compiling.
59304
59305 2007-05-30  Eric Blake  <ebb9@byu.net>
59306         and Bruno Haible  <bruno@clisp.org>
59307
59308         Work around mingw test failures exposed by m4-1.4.9b.
59309         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
59310         * tests/test-unistd.c: Disable uid_t and git_t tests for the
59311         moment.
59312
59313 2007-05-30  Bruno Haible  <bruno@clisp.org>
59314
59315         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
59316         assuming that they are closed. Needed on HP-UX 11.
59317
59318 2007-05-29  Bruno Haible  <bruno@clisp.org>
59319
59320         Fix a problem with #include_next.
59321         * lib/dirent_.h: Split the double-inclusion guard.
59322         * lib/fcntl_.h: Likewise.
59323         * lib/float_.h: Likewise.
59324         * lib/iconv_.h: Likewise.
59325         * lib/inttypes_.h: Likewise.
59326         * lib/locale_.h: Likewise.
59327         * lib/math_.h: Likewise.
59328         * lib/netinet_in_.h: Likewise.
59329         * lib/search_.h: Likewise.
59330         * lib/signal_.h: Likewise.
59331         * lib/stdint_.h: Likewise.
59332         * lib/stdio_.h: Likewise.
59333         * lib/stdlib_.h: Likewise.
59334         * lib/string_.h: Likewise.
59335         * lib/sys_select_.h: Likewise.
59336         * lib/sys_socket_.h: Likewise.
59337         * lib/sys_stat_.h: Likewise.
59338         * lib/sys_time_.h: Likewise.
59339         * lib/sysexits_.h: Likewise.
59340         * lib/time_.h: Likewise.
59341         * lib/unistd_.h: Likewise.
59342         * lib/wchar_.h: Likewise.
59343         * lib/wctype_.h: Likewise.
59344
59345 2007-05-29  Bruno Haible  <bruno@clisp.org>
59346
59347         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
59348         for the moment.
59349
59350 2007-05-29  Bruno Haible  <bruno@clisp.org>
59351
59352         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
59353         invocation.
59354         Reported by Eric Blake.
59355
59356 2007-05-29  Bruno Haible  <bruno@clisp.org>
59357
59358         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
59359         compiling case.
59360
59361 2007-05-29  Eric Blake  <ebb9@byu.net>
59362             Bruno Haible  <bruno@clisp.org>
59363
59364         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
59365         cross compiles.
59366
59367 2007-05-28  Eric Blake  <ebb9@byu.net>
59368
59369         * modules/closein-tests (test_closein_LDADD): Support test on
59370         cygwin with libtool.
59371
59372 2007-05-28  Bruno Haible  <bruno@clisp.org>
59373
59374         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
59375         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
59376         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
59377         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
59378         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
59379         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
59380         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
59381         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
59382         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
59383
59384 2007-05-28  Eric Blake  <ebb9@byu.net>
59385
59386         Unconditionally include <config.h> in unit tests.
59387         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
59388         * tests/test-allocsa.c, tests/test-arcfour.c,
59389         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
59390         tests/test-array_list.c, tests/test-array_oset.c,
59391         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
59392         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
59393         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
59394         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
59395         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
59396         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
59397         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
59398         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
59399         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
59400         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
59401         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
59402         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
59403         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
59404         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
59405         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
59406         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
59407         test-md5.c, test-memmem.c, test-printf-posix.c,
59408         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
59409         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
59410         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
59411         test-strcasestr.c, test-striconv.c, test-striconveh.c,
59412         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
59413         test-vasnprintf-posix2.c, test-vasnprintf.c,
59414         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
59415         test-vfprintf-posix.c, test-vprintf-posix.c,
59416         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
59417         test-xvasprintf.c: Likewise.
59418
59419 2007-05-28  Bruno Haible  <bruno@clisp.org>
59420
59421         * gnulib-tool (func_import): Remember the --with-tests command-line
59422         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
59423         Reported by Eric Blake.
59424
59425 2007-05-28  Bruno Haible  <bruno@clisp.org>
59426
59427         * modules/ftell-tests: New file.
59428         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
59429         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
59430
59431         * lib/ftell.c: New file.
59432         * modules/ftell: New file.
59433         * m4/ftell.m4: New file.
59434         * doc/functions/ftell.texi: Update.
59435         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
59436         REPLACE_FTELL.
59437         * lib/stdio_.h (rpl_ftell): New declaration.
59438         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
59439         REPLACE_FTELL.
59440
59441 2007-05-28  Eric Blake  <ebb9@byu.net>
59442
59443         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
59444
59445 2007-05-28  Bruno Haible  <bruno@clisp.org>
59446
59447         * modules/fseek-tests: New file.
59448         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
59449         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
59450
59451         * lib/fseek.c: New file.
59452         * modules/fseek: New file.
59453         * m4/fseek.m4: New file.
59454         * doc/functions/fseek.texi: Update.
59455         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
59456         REPLACE_FSEEK.
59457         * lib/stdio_.h (rpl_fseek): New declaration.
59458         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
59459         REPLACE_FSEEK.
59460
59461 2007-05-28  Bruno Haible  <bruno@clisp.org>
59462
59463         * lib/stdio_.h (fflush): More comments.
59464
59465 2007-05-28  Bruno Haible  <bruno@clisp.org>
59466
59467         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
59468         runtime test.
59469
59470 2007-05-28  Eric Blake  <ebb9@byu.net>
59471
59472         Improve lseek module.
59473         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
59474         * lib/unistd_.h (lseek): Scale back link warning message.
59475         * tests/test-lseek.c: Beef up test.
59476         * tests/test-lseek.sh: Exercise more facets of lseek.
59477         Reported by Bruno Haible.
59478
59479 2007-05-28  Bruno Haible  <bruno@clisp.org>
59480
59481         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
59482         to define.
59483
59484 2007-05-27  Bruno Haible  <bruno@clisp.org>
59485
59486         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
59487
59488 2007-05-27  Bruno Haible  <bruno@clisp.org>
59489
59490         * modules/openmp: New file.
59491         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
59492         Noah Misch.
59493
59494 2007-05-26  Bruno Haible  <bruno@clisp.org>
59495
59496         * modules/chdir-long (Depends-on): Add fchdir.
59497         * modules/chdir-safer (Depends-on): Likewise.
59498         * modules/fts (Depends-on): Likewise.
59499         * modules/fts-lgpl (Depends-on): Likewise.
59500         * modules/openat (Depends-on): Likewise.
59501         * modules/savewd (Depends-on): Likewise.
59502
59503 2007-05-24  Eric Blake  <ebb9@byu.net>
59504
59505         Fix lseek on mingw.
59506         * modules/lseek: New module.
59507         * m4/lseek.m4: New file.
59508         * lib/lseek.c: New file.
59509         * modules/lseek-tests: New file.
59510         * tests/test-lseek.c: New file.
59511         * tests/test-lseek.sh: New file.
59512         * MODULES.html.sh: Document lseek module.
59513         * modules/fflush (Depends-on): Add lseek, fseeko.
59514         * modules/fseeko (Depends-on): Likewise.
59515         * modules/ftello (Depends-on): Likewise.
59516         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
59517         broken.
59518         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
59519         broken.
59520         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
59521         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
59522         * lib/ftello.c (rpl_ftello): Likewise.
59523         * tests/test-fseeko.c (main): Test this.
59524         * tests/test-fseeko.sh: Likewise.
59525         * tests/test-ftello.c (main): Likewise.
59526         * tests/test-ftello.sh: Likewise.
59527         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
59528         implies replacing fseek.
59529         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
59530         HAVE_FTELLO.
59531         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
59532         * modules/unistd (Makefile.am): Likewise.
59533         * lib/unistd_.h (lseek): Declare a replacement.
59534         * doc/functions/lseek.texi (lseek): Document this fix.
59535         * doc/functions/fseek.texi (fseek): Likewise.
59536         * doc/functions/ftell.texi (ftell): Likewise.
59537
59538 2007-05-24  Bruno Haible  <bruno@clisp.org>
59539
59540         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
59541         in the printed representation of a NaN.
59542         * tests/test-vasprintf-posix.c (test_function): Likewise.
59543         * tests/test-snprintf-posix.h (test_function): Likewise.
59544         * tests/test-sprintf-posix.h (test_function): Likewise.
59545         Reported by Eric Blake.
59546
59547 2007-05-23  Eric Blake  <ebb9@byu.net>
59548
59549         Fix fseeko/ftello on cygwin 1.5.24.
59550         * doc/functions/fseeko.texi (fseeko): Document the fix.
59551         * doc/functions/ftello.texi (ftello): Document the fix.
59552         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
59553         * doc/functions/stdout.text (stdout): New file.
59554         * doc/functions/stderr.text (stderr): New file.
59555         * doc/gnulib.texi (Function Substitutes): Use new files.
59556         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
59557         prior to 1.7.0.
59558         * tests/test-ftello.c (main): Likewise for ftello.
59559         * tests/test-fseeko.sh: New file.
59560         * tests/test-ftello.sh: New file.
59561         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
59562         with seekable stdin.
59563         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
59564         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
59565         (gl_REPLACE_FSEEKO): New macro.
59566         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
59567         * modules/fseeko (Files): Distribute fseeko.c.
59568         * modules/ftello (Files): Distribute ftello.c.
59569         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
59570         mode.
59571         * lib/ftello.c (rpl_ftello): New file.
59572         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
59573         fseeko, ftello.
59574         (gl_STDIN_LARGE_OFFSET): New macro.
59575         * modules/stdio (Makefile.am): Perform the replacement.
59576         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
59577
59578 2007-05-23  Bruno Haible  <bruno@clisp.org>
59579
59580         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
59581         GNULIB_POSIXCHECK is defined.
59582
59583 2007-05-21  Bruno Haible  <bruno@clisp.org>
59584
59585         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
59586         Check also the output for NaN arguments. When cross-compiling, guess
59587         no on IRIX.
59588         * lib/vasnprintf.c: Update comments.
59589         * tests/test-vasnprintf-posix.c (strisnan): New function.
59590         (test_function): Use it.
59591         * tests/test-vasprintf-posix.c (strisnan): New function.
59592         (test_function): Use it.
59593         * tests/test-snprintf-posix.h (strisnan): New function.
59594         (test_function): Use it.
59595         * tests/test-sprintf-posix.h (strisnan): New function.
59596         (test_function): Use it.
59597         Reported by Eric Blake.
59598
59599 2007-05-20  Bruno Haible  <bruno@clisp.org>
59600
59601         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
59602         numbers that fails on BeOS.
59603         * doc/functions/frexpl.texi: Update.
59604
59605 2007-05-20  Jim Meyering  <jim@meyering.net>
59606
59607         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
59608         forced upon us by glibc-2.6.
59609
59610 2007-05-20  Bruno Haible  <bruno@clisp.org>
59611
59612         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
59613         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
59614         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
59615         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
59616         NEED_PRINTF_INFINITE.
59617         (is_infinitel): New function.
59618         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
59619         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
59620         gl_PREREQ_VASNPRINTF_INFINITE.
59621         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
59622         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59623         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
59624         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
59625         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
59626         gl_PREREQ_VASNPRINTF_INFINITE.
59627         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59628         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59629         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59630         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59631         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59632         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59633         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59634         * doc/functions/fprintf.texi: Update.
59635         * doc/functions/printf.texi: Update.
59636         * doc/functions/snprintf.texi: Update.
59637         * doc/functions/sprintf.texi: Update.
59638         * doc/functions/vfprintf.texi: Update.
59639         * doc/functions/vprintf.texi: Update.
59640         * doc/functions/vsnprintf.texi: Update.
59641         * doc/functions/vsprintf.texi: Update.
59642
59643 2007-05-20  Bruno Haible  <bruno@clisp.org>
59644
59645         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
59646         was not found in libc.
59647         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
59648
59649 2007-05-20  Bruno Haible  <bruno@clisp.org>
59650
59651         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59652         printed as "-nan" instead of "nan".
59653         * tests/test-vasprintf-posix.c (test_function): Likewise.
59654         * tests/test-snprintf-posix.h (test_function): Likewise.
59655         * tests/test-sprintf-posix.h (test_function): Likewise.
59656         Needed for HP-UX 11.
59657
59658 2007-05-20  Jim Meyering  <jim@meyering.net>
59659
59660         Fix buggy test for the fchownat-deref bug.
59661         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
59662         symlink required for the run-test.  Without it, this test would
59663         always declare that fchownat doesn't work, and client code would
59664         unnecessarily use the replacement function with fixed libc.
59665         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
59666         Reported by Greg Schafer.
59667
59668 2007-05-19  Bruno Haible  <bruno@clisp.org>
59669
59670         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
59671         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
59672         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
59673         Needed for IRIX 6.5 and Solaris 2.5.1.
59674
59675 2007-05-19  Bruno Haible  <bruno@clisp.org>
59676
59677         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
59678         (test_function): Skip tests involving -0.0 on platforms where
59679         -0.0 = 0.0.
59680         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
59681         (test_function): Skip tests involving -0.0 on platforms where
59682         -0.0 = 0.0.
59683         * tests/test-snprintf-posix.h (have_minus_zero): New function.
59684         (test_function): Skip tests involving -0.0 on platforms where
59685         -0.0 = 0.0.
59686         * tests/test-sprintf-posix.h (have_minus_zero): New function.
59687         (test_function): Skip tests involving -0.0 on platforms where
59688         -0.0 = 0.0.
59689         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
59690         tests.
59691         * tests/test-printf-posix.h (test_function): Likewise.
59692         * tests/test-printf-posix.output: Remove all -0.0 related results.
59693         Needed for IRIX 6.5.
59694
59695 2007-05-19  Bruno Haible  <bruno@clisp.org>
59696
59697         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59698         printed as "nan0x7fffffff" instead of "nan".
59699         * tests/test-vasprintf-posix.c (test_function): Likewise.
59700         * tests/test-snprintf-posix.h (test_function): Likewise.
59701         * tests/test-sprintf-posix.h (test_function): Likewise.
59702         * tests/test-fprintf-posix.h (NaN): Remove macro.
59703         (test_function): Remove all NaN related tests.
59704         * tests/test-printf-posix.h (NaN): Remove macro.
59705         (test_function): Remove all NaN related tests.
59706         * tests/test-printf-posix.output: Remove all NaN related results.
59707         Needed for IRIX 6.5.
59708
59709 2007-05-19  Bruno Haible  <bruno@clisp.org>
59710
59711         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
59712         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
59713
59714 2007-05-19  Bruno Haible  <bruno@clisp.org>
59715
59716         * lib/float_.h: New file.
59717         * m4/float_h.m4: New file.
59718         * modules/float: New file.
59719         * modules/isnanl (Dependencies): Add float.
59720         * modules/isnanl-nolibm (Dependencies): Likewise.
59721         * modules/mathl (Dependencies): Likewise.
59722         * modules/printf-frexpl (Dependencies): Likewise.
59723         * modules/signbit (Dependencies): Likewise.
59724         * modules/vasnprintf (Dependencies): Likewise.
59725         * doc/headers/float.texi: Update.
59726
59727 2007-05-19  Jim Meyering  <jim@meyering.net>
59728
59729         * lib/utimens.c (gl_futimens): Rename from futimens,
59730         now that glibc-2.6 declares futimens.
59731         * lib/utimens.h: Likewise.
59732
59733 2007-05-19  Bruno Haible  <bruno@clisp.org>
59734
59735         Avoid test failures on mingw.
59736         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
59737         * tests/test-printf-posix.sh: Likewise.
59738         * tests/test-vfprintf-posix.sh: Likewise.
59739         * tests/test-vprintf-posix.sh: Likewise.
59740
59741 2007-05-19  Bruno Haible  <bruno@clisp.org>
59742
59743         Fix *printf result for NaN, Inf, -0.0 on mingw.
59744         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
59745         * lib/vasnprintf.c: Include math.h and isnan.h.
59746         (is_infinite_or_zero): New function.
59747         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
59748         values in the %f, %F, %e, %E, %g, %G directives.
59749         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
59750         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59751         gl_PRINTF_INFINITE and test its result. Invoke
59752         gl_PREREQ_VASNPRINTF_INFINITE.
59753         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59754         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59755         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59756         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59757         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59758         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59759         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59760         * doc/functions/fprintf.texi: Update.
59761         * doc/functions/printf.texi: Update.
59762         * doc/functions/snprintf.texi: Update.
59763         * doc/functions/sprintf.texi: Update.
59764         * doc/functions/vfprintf.texi: Update.
59765         * doc/functions/vprintf.texi: Update.
59766         * doc/functions/vsnprintf.texi: Update.
59767         * doc/functions/vsprintf.texi: Update.
59768
59769 2007-05-19  Bruno Haible  <bruno@clisp.org>
59770
59771         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
59772         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
59773         Instead of multiplying with 10^k, set extra_zeroes to k.
59774         (scale10_round_long_double): Remove function.
59775
59776 2007-05-18  Bruno Haible  <bruno@clisp.org>
59777
59778         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
59779         introduced on 2007-05-06.
59780
59781 2007-05-18  Bruno Haible  <bruno@clisp.org>
59782
59783         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
59784         %g directives.
59785         * tests/test-vasprintf-posix.c (test_function): Likewise.
59786         * tests/test-snprintf-posix.h (test_function): Likewise.
59787         * tests/test-sprintf-posix.h (test_function): Likewise.
59788
59789 2007-05-18  Bruno Haible  <bruno@clisp.org>
59790
59791         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
59792         (strmatch): New function.
59793         (test_function): Test the %f directive on numbers of various exponents.
59794         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
59795         (strmatch): New function.
59796         (test_function): Test the %f directive on numbers of various exponents.
59797         * tests/test-snprintf-posix.h (strmatch): New function.
59798         (test_function): Test the %f directive on numbers of various exponents.
59799         * tests/test-sprintf-posix.h (strmatch): New function.
59800         (test_function): Test the %f directive on numbers of various exponents.
59801         * tests/test-snprintf-posix.c (SIZEOF): New macro.
59802         * tests/test-sprintf-posix.c (SIZEOF): New macro.
59803         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
59804         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
59805
59806 2007-05-18  Bruno Haible  <bruno@clisp.org>
59807
59808         Add support for 'long double' number output.
59809         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
59810         * lib/vasnprintf.c: Include math.h and float+.h.
59811         (mp_limb_t): New type.
59812         (GMP_LIMB_BITS): New macro.
59813         (mp_twolimb_t): New type.
59814         (GMP_TWOLIMB_BITS): New macro.
59815         (mpn_t): New type.
59816         (multiply, divide, convert_to_decimal, decode_long_double,
59817         scale10_round_long_double, scale10_round_decimal_long_double,
59818         floorlog10l): New functions.
59819         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
59820         for the %f, %F, %e, %E, %g, %G directives.
59821         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
59822         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59823         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
59824         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
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         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
59833         * modules/snprintf-posix (Depends-on): Likewise.
59834         * modules/sprintf-posix (Depends-on): Likewise.
59835         * modules/vasnprintf-posix (Depends-on): Likewise.
59836         * modules/vasprintf-posix (Depends-on): Likewise.
59837         * modules/vfprintf-posix (Depends-on): Likewise.
59838         * modules/vsnprintf-posix (Depends-on): Likewise.
59839         * modules/vsprintf-posix (Depends-on): Likewise.
59840         * modules/vasnprintf (Files): Add lib/float+.h.
59841         * doc/functions/fprintf.texi: Update.
59842         * doc/functions/printf.texi: Update.
59843         * doc/functions/snprintf.texi: Update.
59844         * doc/functions/sprintf.texi: Update.
59845         * doc/functions/vfprintf.texi: Update.
59846         * doc/functions/vprintf.texi: Update.
59847         * doc/functions/vsnprintf.texi: Update.
59848         * doc/functions/vsprintf.texi: Update.
59849
59850 2007-05-18  Bruno Haible  <bruno@clisp.org>
59851
59852         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
59853
59854 2007-05-18  Bruno Haible  <bruno@clisp.org>
59855
59856         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
59857         for printing 64-bit integers. Needed for mingw.
59858
59859 2007-05-18  Bruno Haible  <bruno@clisp.org>
59860
59861         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
59862         gl_FUNC_FREXPL_WORKS.
59863         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
59864
59865 2007-05-18  Bruno Haible  <bruno@clisp.org>
59866
59867         * modules/frexpl-nolibm-tests: New file.
59868
59869         * modules/frexpl-nolibm: New file.
59870         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
59871
59872 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
59873
59874         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
59875         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59876         GCC 4.2, which otherwise issues a lot of warnings.
59877         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
59878         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
59879         Likewise.
59880         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
59881         * modules/iconv_open (iconv.h): Likewise.
59882         * modules/locale (locale.h): Likewise.
59883         * modules/netinet_in (netinet/in.h): Likewise.
59884         * modules/sys_select (sys_select.h): Likewise.
59885         * modules/sys_socket (sys/socket.h): Likewise.
59886         * modules/sys_stat (sys/stat.h): Likewise.
59887         * modules/sysexits (sysexits.h): Likewise.
59888         * modules/unistd (unistd.h): Likewise.
59889
59890 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59891
59892         * modules/closein-tests (Makefile.am): Distribute
59893         `test-closein.sh'.
59894
59895 2007-05-17  Bruno Haible  <bruno@clisp.org>
59896
59897         * tests/test-printf-posix.output: Renamed from
59898         tests/test-fprintf-posix.out.
59899         * modules/fprintf-posix-tests: Update.
59900         * modules/printf-posix-tests: Update.
59901         * modules/vfprintf-posix-tests: Update.
59902         * modules/vprintf-posix-tests: Update.
59903         * tests/test-fprintf-posix.sh: Update.
59904         * tests/test-printf-posix.sh: Update.
59905         * tests/test-vfprintf-posix.sh: Update.
59906         * tests/test-vprintf-posix.sh: Update.
59907         Reported by Ralf Wildenhues.
59908
59909 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59910
59911         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
59912         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59913         GCC 4.2, which otherwise issues a lot of warnings.
59914         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
59915         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
59916         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
59917         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
59918         it should no longer be needed.
59919         * lib/string_.h: Likewise.
59920         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
59921         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
59922         * modules/inttypes (inttypes.h): Likewise.
59923         * modules/math (math.h): Likewise.
59924         * modules/search (search.h): Likewise.
59925         * modules/signal (signal.h): Likewise.
59926         * modules/stdint (stdint.h): Likewise.
59927         * modules/stdio (stdio.h): Likewise.
59928         * modules/stdlib (stdlib.h): Likewise.
59929         * modules/string (string.h): Likewise.
59930         * modules/sys_time (sys/time.h): Likewise.
59931         * modules/time (time.h): Likewise.
59932         * modules/wchar (wchar.h): Likewise.
59933         * modules/wctype (wtype.h): Likewise.
59934
59935 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59936
59937         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
59938
59939 2007-05-13  Bruno Haible  <bruno@clisp.org>
59940
59941         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
59942         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59943         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
59944         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59945         (gl_PREREQ_STRTOK_R): Don't require it here.
59946
59947 2007-05-13  Bruno Haible  <bruno@clisp.org>
59948
59949         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
59950         when used in C++ mode.
59951
59952 2007-05-12  Bruno Haible  <bruno@clisp.org>
59953
59954         * lib/linebuffer.h: Tweak doc.
59955         * lib/linebuffer.c: Likewise.
59956
59957 2007-05-12  James Youngman  <jay@gnu.org>
59958
59959         * lib/linebuffer.c (readlinebuffer_delim): New function,
59960         like readlinebuffer, but use a caller-specified delimiter.
59961         (readlinebuffer): Just call readlinebuffer_delim with '\n'
59962         as the delimiter.
59963         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
59964
59965 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59966
59967         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
59968         * modules/openat (Files): Remove openat-die.c.
59969         (Depends-on): Add openat-die.
59970         * modules/openat-die: New module.
59971
59972 2007-05-06  Bruno Haible  <bruno@clisp.org>
59973
59974         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
59975         Update with info about Cygwin.
59976         * doc/functions/fprintf.texi: Update.
59977         * doc/functions/printf.texi: Update.
59978         * doc/functions/snprintf.texi: Update.
59979         * doc/functions/sprintf.texi: Update.
59980         * doc/functions/vfprintf.texi: Update.
59981         * doc/functions/vprintf.texi: Update.
59982         * doc/functions/vsnprintf.texi: Update.
59983         * doc/functions/vsprintf.texi: Update.
59984         Reported by Eric Blake.
59985
59986 2007-05-06  Bruno Haible  <bruno@clisp.org>
59987
59988         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
59989         padding ourselves for the floating-point directives.
59990         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
59991         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
59992         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59993         gl_PRINTF_FLAG_ZERO and test its result. Invoke
59994         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
59995         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59996         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
59997         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59998         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59999         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60000         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60001         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60002         * tests/test-snprintf-posix.h (test_function): Also check the width
60003         and some flags in the %f directive.
60004         * tests/test-sprintf-posix.h (test_function): Likewise.
60005         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60006         * tests/test-vasprintf-posix.c (test_function): Likewise.
60007         * doc/functions/fprintf.texi: Update.
60008         * doc/functions/printf.texi: Update.
60009         * doc/functions/snprintf.texi: Update.
60010         * doc/functions/sprintf.texi: Update.
60011         * doc/functions/vfprintf.texi: Update.
60012         * doc/functions/vprintf.texi: Update.
60013         * doc/functions/vsnprintf.texi: Update.
60014         * doc/functions/vsprintf.texi: Update.
60015
60016 2007-05-06  Bruno Haible  <bruno@clisp.org>
60017
60018         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
60019         pass the ' flag character to sprintf or snprintf.
60020         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
60021         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
60022         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60023         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
60024         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
60025         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60026         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
60027         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60028         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60029         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60030         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60031         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60032         * tests/test-snprintf-posix.h (test_function): Also check the grouping
60033         flag.
60034         * tests/test-sprintf-posix.h (test_function): Likewise.
60035         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60036         * tests/test-vasprintf-posix.c (test_function): Likewise.
60037         * doc/functions/fprintf.texi: Update.
60038         * doc/functions/printf.texi: Update.
60039         * doc/functions/snprintf.texi: Update.
60040         * doc/functions/sprintf.texi: Update.
60041         * doc/functions/vfprintf.texi: Update.
60042         * doc/functions/vprintf.texi: Update.
60043         * doc/functions/vsnprintf.texi: Update.
60044         * doc/functions/vsprintf.texi: Update.
60045
60046 2007-05-01  Bruno Haible  <bruno@clisp.org>
60047
60048         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
60049
60050 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
60051
60052         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
60053         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
60054
60055 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60056
60057         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
60058         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
60059         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
60060
60061 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
60062
60063         * lib/argp-help.c (struct hol_entry): New member `ord'.
60064         (HOL_ENTRY_PTRCMP): Use ord for comparison
60065         (hol_sort): Initialize ord.
60066
60067 2007-05-01  Bruno Haible  <bruno@clisp.org>
60068
60069         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
60070         Reported by Eric Blake.
60071         * doc/gnulib.texi (Function Substitutes): Update.
60072
60073 2007-05-01  Bruno Haible  <bruno@clisp.org>
60074
60075         * doc/functions.texi: Remove file, now redundant through
60076         doc/functions/*.texi.
60077
60078 2007-05-01  Bruno Haible  <bruno@clisp.org>
60079
60080         * modules/argp (Depends-on): Add sleep.
60081
60082 2007-05-01  Bruno Haible  <bruno@clisp.org>
60083
60084         * modules/sleep-tests: New file.
60085         * tests/test-sleep.c: New file.
60086
60087         * modules/sleep: New file.
60088         * lib/sleep.c: New file.
60089         * m4/sleep.m4: New file.
60090         * lib/unistd_.h (sleep): New declaration.
60091         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
60092         HAVE_SLEEP.
60093         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
60094         * doc/functions/sleep.texi: Document the sleep module.
60095
60096 2007-05-01  Bruno Haible  <bruno@clisp.org>
60097
60098         * lib/sigprocmask.h: Remove file.
60099         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
60100         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
60101         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
60102         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
60103         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
60104         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
60105         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
60106         HAVE_SIGSET_T as a shell variable.
60107         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
60108         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
60109         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
60110         (Depends-on): Add signal. Remove verify.
60111         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
60112         (Include): Mention <signal.h> instead of sigprocmask.h.
60113         * NEWS: Mention the change.
60114         * lib/fatal-signal.c: Don't include sigprocmask.h.
60115
60116 2007-05-01  Bruno Haible  <bruno@clisp.org>
60117
60118         * modules/signal: New file.
60119         * lib/signal_.h: New file.
60120         * m4/signal_h.m4: New file.
60121
60122 2007-05-01  Bruno Haible  <bruno@clisp.org>
60123
60124         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
60125         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
60126         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
60127         HAVE_WCTYPE_CTMP_BUG into wctype.h.
60128
60129 2007-05-01  Bruno Haible  <bruno@clisp.org>
60130
60131         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
60132         configure time.
60133         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
60134         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
60135         * modules/sys_stat (Makefile.am): Substitute their values into
60136         sys/stat.h.
60137
60138 2007-05-01  Bruno Haible  <bruno@clisp.org>
60139
60140         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
60141         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
60142         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
60143
60144 2007-05-01  Bruno Haible  <bruno@clisp.org>
60145
60146         * doc/header/assert.texi: Undo last change: don't mention the gnulib
60147         'assert' module here.
60148
60149 2007-05-01  Bruno Haible  <bruno@clisp.org>
60150
60151         * doc/functions/*.texi: New files.
60152         * doc/functions/google-ranking.txt: New file.
60153         * doc/gnulib.texi (Function Substitutes): New chapter.
60154         (ctime, inet_ntoa): Remove sections.
60155         * doc/ctime.texi: Remove file.
60156         * doc/inet_ntoa.texi: Remove file.
60157         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
60158         dependencies.
60159         (%.info): New rule, specifying a --reference-limit.
60160
60161 2007-05-01  Bruno Haible  <bruno@clisp.org>
60162
60163         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
60164
60165 2007-05-01  Bruno Haible  <bruno@clisp.org>
60166
60167         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
60168         the portability of 'mkdir' to mingw systems.
60169
60170 2007-05-01  Bruno Haible  <bruno@clisp.org>
60171
60172         * doc/headers/google-ranking.txt: New file.
60173
60174 2007-04-30  Eric Blake  <ebb9@byu.net>
60175
60176         Prefer fseeko to fseek.
60177         * modules/getpass (Depends-on): Add fseeko.
60178         * lib/getpass.c (getpass): Use fseeko, not fseek.
60179
60180 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
60181
60182         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
60183         assumes the sorting is stable, while most qsort implementations
60184         are not.  Use argument addresses to ensure they never compare as
60185         equal.
60186
60187         * tests/test-argp-2.sh (usage-indent test): Fix output
60188         (func_compare): Restore diff options
60189         * tests/test-argp.c: Restore #include "progname.h"
60190
60191 2007-04-29  Bruno Haible  <bruno@clisp.org>
60192
60193         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
60194         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60195         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
60196         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60197         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
60198         (configure.ac): Define CHECK_SNPRINTF_POSIX.
60199         (TESTS, check_PROGRAMS): Add test-snprintf.
60200         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
60201         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
60202         (TESTS, check_PROGRAMS): Add test-vsnprintf.
60203         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
60204         assertions that fail on HP-UX, OSF/1, or IRIX.
60205         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
60206
60207 2007-04-29  Bruno Haible  <bruno@clisp.org>
60208
60209         * MODULES.html.sh (posix_functions): Remove 'contents'.
60210
60211 2007-04-29  Karl Berry  <karl@gnu.org>
60212
60213         * config/srclist.txt (gendocs_template_min): new entry.
60214
60215 2007-04-29  Bruno Haible  <bruno@clisp.org>
60216
60217         Work around fpurge bug on BSD systems.
60218         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
60219         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
60220         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
60221         fpurge to rpl_fpurge if the system already has this function.
60222         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
60223         the case where the system already has this function. Correct invariants
60224         on BSD systems.
60225         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
60226         BSD systems.
60227
60228 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
60229
60230         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
60231         proposed by Sven Verdoolaege.
60232
60233         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
60234         options.
60235         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
60236         (usage and help tests): Update
60237
60238 2007-04-29  Bruno Haible  <bruno@clisp.org>
60239
60240         * tests/test-fflush.c (main): Use a file of size 17, not 10.
60241         Print more information in case of failure. Disable a test on BeOS.
60242
60243 2007-04-29  Bruno Haible  <bruno@clisp.org>
60244
60245         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
60246         This helps debugging on systems on which no gdb is available.
60247
60248 2007-04-29  Bruno Haible  <bruno@clisp.org>
60249
60250         * lib/freading.h: Improve comments.
60251         * lib/fwriting.h: Likewise.
60252         * tests/test-freading.c (main): Don't check freading immediately after
60253         repositioning. Needed for glibc.
60254
60255 2007-04-29  Bruno Haible  <bruno@clisp.org>
60256
60257         * lib/freading.c (freading): Trivial simplification.
60258
60259 2007-04-28  Bruno Haible  <bruno@clisp.org>
60260
60261         * tests/test-fwriting.c (main): Also test the interaction between
60262         fflush and fwriting.
60263         * modules/fwriting-tests (Depends-on): Add fflush.
60264
60265         * tests/test-freading.c (main): Also test the interaction between
60266         fflush and freading.
60267         * modules/freading-tests (Depends-on): Add fflush.
60268
60269 2007-04-28  Bruno Haible  <bruno@clisp.org>
60270
60271         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
60272         fseeko and ftello.
60273         Suggested by Eric Blake.
60274
60275 2007-04-28  Jim Meyering  <jim@meyering.net>
60276
60277         Avoid false-negative in gl_STDINT_H's C99 conformance test.
60278         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
60279         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
60280
60281 2007-04-27  Eric Blake  <ebb9@byu.net>
60282
60283         * doc/headers/assert.texi (assert.h): Document assert module use.
60284
60285 2007-04-27  Bruno Haible  <bruno@clisp.org>
60286
60287         * doc/headers/*.texi: New files.
60288         * doc/gnulib.texi (Header File Substitutes): New chapter.
60289         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
60290         dependencies.
60291         (standards.info ,standards.html, standards.dvi): Update dependencies.
60292         (mostlyclean, clean): New targets.
60293
60294 2007-04-27  Bruno Haible  <bruno@clisp.org>
60295
60296         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
60297         * modules/sysexits (Files, Makefile.am): Update.
60298
60299         * lib/sys_socket_.h: Renamed from lib/socket_.h.
60300         * modules/sys_socket (Files, Makefile.am): Update.
60301
60302         * lib/sys_stat_.h: Renamed from lib/stat_.h.
60303         * modules/sys_stat (Files, Makefile.am): Update.
60304
60305 2007-04-27  Eric Blake  <ebb9@byu.net>
60306
60307         * lib/freading.h: Improve comments.
60308         * lib/fwriting.h: Likewise.
60309         * lib/fflush.c: Likewise.
60310
60311         Fix closein for mingw.
60312         * modules/closein-tests: Add tests for closein.
60313         * tests/test-closein.c: New file.
60314         * tests/test-closein.sh: Likewise.
60315         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
60316         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
60317
60318 2007-04-27  Bruno Haible  <bruno@clisp.org>
60319
60320         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
60321         version is < 6.
60322         * lib/math_.h [__DECC]: Likewise.
60323         * lib/stdio_.h [__DECC]: Likewise.
60324         * lib/stdlib_.h [__DECC]: Likewise.
60325         * lib/string_.h [__DECC]: Likewise.
60326         * lib/time_.h [__DECC]: Likewise.
60327         * lib/wchar_.h [__DECC]: Likewise.
60328         * lib/wctype_.h [__DECC]: Likewise.
60329
60330 2007-04-27  Bruno Haible  <bruno@clisp.org>
60331
60332         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
60333
60334 2007-04-27  Bruno Haible  <bruno@clisp.org>
60335
60336         * lib/fflush.c: Add comments.
60337         * modules/fpurge-tests (Depends-on): Add fflush.
60338         * modules/freadable-tests (Depends-on): Likewise.
60339         * modules/fwritable-tests (Depends-on): Likewise.
60340
60341 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
60342
60343         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
60344         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
60345         Report by Bruno Haible <bruno@clisp.org>.
60346
60347 2007-04-26  Eric Blake  <ebb9@byu.net>
60348
60349         Fix fflush on mingw.
60350         * modules/fflush (Depends-on): Add freading.
60351         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
60352         but unread data.
60353
60354 2007-04-26  Eric Blake  <ebb9@byu.net>
60355         and Bruno Haible  <bruno@clisp.org>
60356
60357         Implement freading and fwriting.
60358         * lib/freading.c: New file.
60359         * lib/freading.h: Likewise.
60360         * m4/freading.m4: Likewise.
60361         * modules/freading: Likewise.
60362         * modules/freading-tests: Likewise.
60363         * tests/test-freading.c: Likewise.
60364         * lib/fwriting.c: New file.
60365         * lib/fwriting.h: Likewise.
60366         * m4/fwriting.m4: Likewise.
60367         * modules/fwriting: Likewise.
60368         * modules/fwriting-tests: Likewise.
60369         * tests/test-fwriting.c: Likewise.
60370         * MODULES.html.sh (File stream based Input/Output): Mention them.
60371
60372 2007-04-26  Bruno Haible  <bruno@clisp.org>
60373
60374         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
60375         'long' when we assume it.
60376         Suggested by Eric Blake.
60377
60378 2007-04-26  Bruno Haible  <bruno@clisp.org>
60379
60380         Ensure fseeko, ftello are declared on glibc systems.
60381         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
60382         * modules/fseeko (configure.ac-early): Likewise.
60383         * modules/ftello (configure.ac-early): Likewise.
60384         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
60385         AC_FUNC_FSEEKO for this.
60386         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
60387         (gl_CHECK_FSEEKO): Remove macro.
60388
60389 2007-04-26  Bruno Haible  <bruno@clisp.org>
60390
60391         * tests/test-fflush.c (main): Also check the ftell result after
60392         fflush and fseek/fseeko.
60393         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
60394         file descriptor position cache in the stream.
60395         * lib/fseeko.c (rpl_fseeko): Likewise.
60396
60397 2007-04-26  Bruno Haible  <bruno@clisp.org>
60398
60399         * modules/fflush-tests (Depends-on): Add fseeko.
60400
60401 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
60402             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60403
60404         * lib/argz_.h: ensure error_t definition is obtained in same
60405         mechanism system argz.h would have.
60406         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
60407         argz facilities are known bad.  Err on the side of caution if
60408         cross-compiling.
60409
60410 2007-04-25  Eric Blake  <ebb9@byu.net>
60411
60412         * lib/fpurge.c (includes): Use stdlib.h for free.
60413         * tests/test-fflush.c (main): Also test fflush-fseeko.
60414
60415 2007-04-25  Bruno Haible  <bruno@clisp.org>
60416
60417         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
60418         * lib/fseeko.c: New file.
60419         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
60420         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
60421         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
60422         gl_FUNC_FSEEKO.
60423         (gl_FUNC_FSEEKO): Invoke it.
60424         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
60425         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
60426         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
60427
60428 2007-04-25  Bruno Haible  <bruno@clisp.org>
60429
60430         * modules/fflush (Depends-on): Add ftello.
60431
60432 2007-04-25  Bruno Haible  <bruno@clisp.org>
60433
60434         * modules/ftello-tests: New file.
60435         * tests/test-ftello.c: New file.
60436
60437         * modules/ftello: New file.
60438         * m4/ftello.m4: New file.
60439         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
60440         HAVE_FTELLO.
60441         * lib/stdio_.h (ftello): New declaration.
60442         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
60443         HAVE_FTELLO.
60444
60445 2007-04-25  Bruno Haible  <bruno@clisp.org>
60446
60447         * modules/fseeko-tests: New file.
60448         * tests/test-fseeko.c: New file.
60449
60450         * modules/fseeko: New file.
60451         * m4/fseeko.m4: New file.
60452         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
60453         HAVE_FSEEKO.
60454         * lib/stdio_.h (fseeko): New declaration.
60455         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
60456         HAVE_FSEEKO.
60457
60458 2007-04-25  Bruno Haible  <bruno@clisp.org>
60459
60460         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
60461
60462 2007-04-25  Bruno Haible  <bruno@clisp.org>
60463
60464         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
60465         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
60466         * tests/test-unistd.c: Likewise.
60467         * tests/test-fcntl.c: Likewise.
60468
60469 2007-04-23  Eric Blake  <ebb9@byu.net>
60470
60471         * lib/fflush.c: Fix missing include.
60472         Reported by Bruno Haible.
60473
60474 2007-04-23  Bruno Haible  <bruno@clisp.org>
60475
60476         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
60477         Reported by Eric Blake.
60478
60479 2007-04-23  Bruno Haible  <bruno@clisp.org>
60480
60481         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
60482
60483 2007-04-23  Bruno Haible  <bruno@clisp.org>
60484
60485         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
60486
60487 2007-04-23  Bruno Haible  <bruno@clisp.org>
60488
60489         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
60490         Needed on HP-UX 11.
60491
60492 2007-04-16  Eric Blake  <ebb9@byu.net>
60493
60494         Make fflush rely on fpurge.
60495         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
60496         open coding all variants.
60497         * modules/fflush (Depends-on): Add fpurge and unistd.
60498         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
60499         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
60500
60501         Fix --with-tests compilation on cygwin.
60502         * modules/argmatch-tests (Makefile.am): List gnulib library first
60503         in LDADD.
60504         * modules/argp-tests (Makefile.am): Likewise.
60505         * modules/array-list-tests (Makefile.am): Likewise.
60506         * modules/array-oset-tests (Makefile.am): Likewise.
60507         * modules/avltree-list-tests (Makefile.am): Likewise.
60508         * modules/avltree-oset-tests (Makefile.am): Likewise.
60509         * modules/avltreehash-list-tests (Makefile.am): Likewise.
60510         * modules/carray-list-tests (Makefile.am): Likewise.
60511         * modules/dirname-tests (Makefile.am): Likewise.
60512         * modules/frexp-tests (Makefile.am): Likewise.
60513         * modules/isnanl-tests (Makefile.am): Likewise.
60514         * modules/linked-list-tests (Makefile.am): Likewise.
60515         * modules/linkedhash-list-tests (Makefile.am): Likewise.
60516         * modules/lock-tests (Makefile.am): Likewise.
60517         * modules/rbtree-list-tests (Makefile.am): Likewise.
60518         * modules/rbtree-oset-tests (Makefile.am): Likewise.
60519         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
60520         * modules/tls-tests (Makefile.am): Likewise.
60521         * modules/tsearch-tests (Makefile.am): Likewise.
60522         * modules/xvasprintf-tests (Makefile.am): Likewise.
60523
60524         Fix fpurge for cygwin.
60525         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
60526         value.
60527         * modules/fpurge-tests (Depends-on): Clean up trash.
60528
60529 2007-04-16  Simon Josefsson  <simon@josefsson.org>
60530
60531         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
60532
60533         * m4/autobuild.m4: Re-indent.
60534
60535 2007-04-13  Bruno Haible  <bruno@clisp.org>
60536
60537         * modules/fpurge-tests: New file.
60538         * tests/test-fpurge.c: New file.
60539
60540         * modules/fpurge: New file.
60541         * lib/fpurge.h: New file.
60542         * lib/fpurge.c: New file.
60543         * m4/fpurge.m4: New file.
60544
60545 2007-04-13  Bruno Haible  <bruno@clisp.org>
60546
60547         * modules/fbufmode-tests: New file.
60548         * tests/test-fbufmode.c: New file.
60549
60550         * modules/fbufmode: New file.
60551         * lib/fbufmode.h: New file.
60552         * lib/fbufmode.c: New file.
60553         * m4/fbufmode.m4: New file.
60554
60555 2007-04-13  Bruno Haible  <bruno@clisp.org>
60556
60557         * modules/fwritable-tests: New file.
60558         * tests/test-fwritable.c: New file.
60559
60560         * modules/fwritable: New file.
60561         * lib/fwritable.h: New file.
60562         * lib/fwritable.c: New file.
60563         * m4/fwritable.m4: New file.
60564
60565 2007-04-13  Bruno Haible  <bruno@clisp.org>
60566
60567         * modules/freadable-tests: New file.
60568         * tests/test-freadable.c: New file.
60569
60570         * modules/freadable: New file.
60571         * lib/freadable.h: New file.
60572         * lib/freadable.c: New file.
60573         * m4/freadable.m4: New file.
60574
60575 2007-04-13  Bruno Haible  <bruno@clisp.org>
60576
60577         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
60578         MOSTLYCLEANFILES.
60579
60580 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60581
60582         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
60583         gzip bootstrap.conf to avoid dragging in i18n machinery.
60584         (gnulib_tool_option): Use it.
60585
60586 2007-04-13  Bruno Haible  <bruno@clisp.org>
60587
60588         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
60589         %F directives.
60590         * tests/test-vasprintf-posix.c (test_function): Likewise.
60591         * tests/test-snprintf-posix.h (test_function): Likewise.
60592         * tests/test-sprintf-posix.h (test_function): Likewise.
60593         * tests/test-fprintf-posix.h (test_function): Likewise.
60594         * tests/test-printf-posix.h (test_function): Likewise.
60595         * tests/test-fprintf-posix.out: Likewise.
60596
60597 2007-04-13  Bruno Haible  <bruno@clisp.org>
60598
60599         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
60600         * modules/tls-tests (configure.ac): Likewise.
60601         Reported by Arto C. Nirkko <anirkko@insel.ch>.
60602
60603 2007-04-13  Bruno Haible  <bruno@clisp.org>
60604
60605         * lib/tls.c (glthread_tls_get): Fix return type.
60606         Patch by Arto C. Nirkko <anirkko@insel.ch>.
60607
60608 2007-04-12  Eric Blake  <ebb9@byu.net>
60609
60610         * modules/gettime (Depends-on): Remove gettime.
60611         Reported by Dmitry V. Levin.
60612
60613 2007-04-12  Bruno Haible  <bruno@clisp.org>
60614
60615         * modules/fflush (Include): Mention <stdio.h>.
60616         * modules/strtoimax (Include): Mention <inttypes.h>.
60617         * modules/strtoumax (Include): Likewise.
60618
60619 2007-04-12  Eric Blake  <ebb9@byu.net>
60620
60621         * .cvsignore: New file.
60622         * .gitignore: Likewise.
60623
60624 2007-04-12  Bruno Haible  <bruno@clisp.org>
60625
60626         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
60627         not before, since $(LDADD) often contains libgnu.a.
60628         * modules/striconv-tests (test_striconv_LDADD): Likewise.
60629         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
60630         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
60631         Needed on Cygwin.
60632
60633 2007-04-12  Eric Blake  <ebb9@byu.net>
60634
60635         Work around glibc's failure to flush stdin on fclose.
60636         * lib/closein.c (close_stdin): Flush stdin before closing.
60637
60638         Work around glibc's failure to reset seekable stdin on exit.
60639         * modules/closein: New module.
60640         * lib/closein.c: New file.
60641         * lib/closein.h: Likewise.
60642         * m4/closein.m4: Likewise.
60643         * MODULES.html.sh (File stream based Input/Output): Document it.
60644
60645 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60646
60647         * gnulib-tool: Rename generated 'autobuild' script to
60648         'do-autobuild' in --create-megatestdir output.
60649
60650         * doc/gnulib.texi (Build robot for gnulib): Fix.
60651
60652 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60653
60654         * modules/sysexits (Depends-on): Add absolute-header.
60655
60656 2007-04-12  Eric Blake  <ebb9@byu.net>
60657
60658         No need to preserve errno on success.
60659         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
60660         Reported by Bruno Haible.
60661
60662 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60663
60664         * MODULES.html.sh (Support for maintaining and releasing
60665         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
60666
60667 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60668
60669         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
60670
60671 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60672
60673         * modules/autobuild: New module.
60674
60675         * m4/autobuild.m4: New file.
60676
60677 2007-04-11  Bruno Haible  <bruno@clisp.org>
60678
60679         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
60680         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
60681         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
60682         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
60683         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60684         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60685         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60686         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60687         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60688         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60689         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
60690         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60691         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60692         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
60693         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60694         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60695         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
60696         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60697         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60698         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
60699         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60700         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60701         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
60702         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60703         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60704         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
60705         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60706         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60707         Reported by Eric Blake.
60708
60709 2007-04-11  Bruno Haible  <bruno@clisp.org>
60710
60711         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
60712
60713 2007-04-10  Bruno Haible  <bruno@clisp.org>
60714
60715         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
60716         for NaN and Infinity. Needed on FreeBSD 6.1.
60717         * tests/test-vasnprintf-posix.c (test_function): Undo last change
60718         regarding results for "%010a" of Infinity and NaN.
60719         * tests/test-vasprintf-posix.c (test_function): Likewise.
60720         * tests/test-snprintf-posix.h (test_function): Likewise.
60721         * tests/test-sprintf-posix.h (test_function): Likewise.
60722         * tests/test-fprintf-posix.h (test_function): Likewise.
60723         * tests/test-printf-posix.h (test_function): Likewise.
60724         * tests/test-fprintf-posix.out: Likewise.
60725
60726 2007-04-10  Bruno Haible  <bruno@clisp.org>
60727
60728         * modules/locale-tests: New file.
60729         * tests/test-locale.c: New file.
60730
60731         * modules/locale: New file.
60732         * lib/locale_.h: New file.
60733         * m4/locale_h.m4: New file.
60734
60735 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
60736             Bruno Haible  <bruno@clisp.org>
60737
60738         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
60739         be determined, test for availability of the copysignf, copysign,
60740         copysignl functions.
60741         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
60742         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
60743         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
60744
60745 2007-04-09  Eric Blake  <ebb9@byu.net>
60746
60747         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
60748         * modules/stdio (Makefile.am): Support fflush.
60749         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
60750         * modules/fflush: New file.
60751         * lib/fflush.c: Likewise.
60752         * m4/fflush.m4: Likewise.
60753         * modules/fflush-tests: New test.
60754         * tests/test-fflush.c: Likewise.
60755         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
60756
60757 2007-04-06  Bruno Haible  <bruno@clisp.org>
60758
60759         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
60760         (VASNPRINTF): Use signbit for faster determination whether to print a
60761         minus sign.
60762         * modules/vasnprintf (Files): Remove lib/float+.h.
60763         * modules/fprintf-posix (Depends-on): Add signbit.
60764         * modules/snprintf-posix (Depends-on): Likewise.
60765         * modules/sprintf-posix (Depends-on): Likewise.
60766         * modules/vasnprintf-posix (Depends-on): Likewise.
60767         * modules/vasprintf-posix (Depends-on): Likewise.
60768         * modules/vfprintf-posix (Depends-on): Likewise.
60769         * modules/vsnprintf-posix (Depends-on): Likewise.
60770         * modules/vsprintf-posix (Depends-on): Likewise.
60771
60772 2007-04-06  Bruno Haible  <bruno@clisp.org>
60773
60774         * tests/test-frexp.c (main): Test also the sign bit of zero results.
60775         * tests/test-frexpl.c (main): Likewise.
60776         * tests/test-ldexpl.c (main): Likewise.
60777         * modules/frexp-tests (Depends-on): Add signbit.
60778         * modules/frexpl-tests (Depdends-on): Likewise.
60779         * modules/ldexpl-tests (Depdends-on): Likewise.
60780
60781 2007-04-06  Bruno Haible  <bruno@clisp.org>
60782
60783         * modules/signbit-tests: New file.
60784         * tests/test-signbit.c: New file.
60785
60786         * modules/signbit: New file.
60787         * lib/signbitf.c: New file.
60788         * lib/signbitd.c: New file.
60789         * lib/signbitl.c: New file.
60790         * m4/signbit.m4: New file.
60791         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
60792         (signbit): New macro.
60793         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
60794         REPLACE_SIGNBIT.
60795         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
60796         REPLACE_FREXPL into math.h.
60797
60798 2007-04-06  Bruno Haible  <bruno@clisp.org>
60799
60800         * modules/isnanf-nolibm-tests: New file.
60801         * tests/test-isnanf.c: New file.
60802
60803         * modules/isnanf-nolibm: New file.
60804         * lib/isnanf.h: New file.
60805         * lib/isnanf.c: New file.
60806         * lib/isnan.c: Consider the USE_FLOAT macro.
60807         * m4/isnanf.m4: New file.
60808
60809 2007-04-06  Bruno Haible  <bruno@clisp.org>
60810
60811         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
60812         (Link): New section.
60813
60814         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
60815
60816 2007-04-06  Bruno Haible  <bruno@clisp.org>
60817
60818         Assume the 'long double' type.
60819         * m4/longdouble.m4: Remove file.
60820         * config/srclist.txt: Don't mention longdouble.m4.
60821         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
60822         * lib/float+.h: Likewise.
60823         * lib/frexp.c: Likewise.
60824         * lib/printf-args.h: Likewise.
60825         * lib/printf-args.c: Likewise.
60826         * lib/printf-frexp.c: Likewise.
60827         * lib/printf-parse.c: Likewise.
60828         * lib/vasnprintf.c: Likewise.
60829         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
60830         * m4/intl.m4: Likewise.
60831         * m4/isnanl.m4: Likewise.
60832         * m4/printf.m4: Likewise.
60833         * m4/printf-frexpl.m4: Likewise.
60834         * m4/vasnprintf.m4: Likewise.
60835         * modules/allocsa (Files): Remove m4/longdouble.m4.
60836         * modules/gettext (Files): Likewise.
60837         * modules/relocatable-prog-wrapper (Files): Likewise.
60838         * modules/vasnprintf (Files): Likewise.
60839         * modules/isnanl (Files): Likewise.
60840         (Include): Simplify.
60841         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
60842         (Include): Simplify.
60843         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
60844         (Include): Simplify.
60845         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
60846         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60847         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
60848         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60849         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60850         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60851         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
60852         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60853         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60854         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60855         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
60856         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60857         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
60858         * tests/test-isnanl.c: Likewise.
60859         * tests/test-snprintf-posix.h: Likewise.
60860         * tests/test-sprintf-posix.h: Likewise.
60861         * tests/test-vasnprintf-posix.c: Likewise.
60862         * tests/test-vasnprintf-posix2.c: Likewise.
60863         * tests/test-vasprintf-posix.c: Likewise.
60864
60865 2007-04-06  Bruno Haible  <bruno@clisp.org>
60866
60867         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
60868         * lib/math_.h [__DECC]: Include the overridden include file through
60869         #include_next, outside the double-inclusion guard.
60870         * lib/stdio_.h [__DECC]: Likewise.
60871         * lib/stdlib_.h [__DECC]: Likewise.
60872         * lib/string_.h [__DECC]: Likewise.
60873         * lib/time_.h [__DECC]: Likewise.
60874         * lib/wchar_.h [__DECC]: Likewise.
60875         * lib/wctype_.h [__DECC]: Likewise.
60876         * lib/inttypes_.h [__DECC]: Likewise.
60877         Reported by Albert Chin <china@thewrittenword.com> in
60878         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
60879
60880 2007-04-04  Eric Blake  <ebb9@byu.net>
60881
60882         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
60883         1.5.x.
60884
60885 2007-04-04  Bruno Haible  <bruno@clisp.org>
60886
60887         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
60888         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
60889
60890 2007-04-04  Bruno Haible  <bruno@clisp.org>
60891
60892         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
60893         results for "%010a" of Infinity and NaN.
60894         * tests/test-vasprintf-posix.c (test_function): Likewise.
60895         * tests/test-snprintf-posix.h (test_function): Likewise.
60896         * tests/test-sprintf-posix.h (test_function): Likewise.
60897         * tests/test-fprintf-posix.h (test_function): Remove these tests.
60898         * tests/test-printf-posix.h (test_function): Likewise.
60899         * tests/test-fprintf-posix.out: Update.
60900         Needed for FreeBSD 6.1.
60901
60902 2007-04-04  Bruno Haible  <bruno@clisp.org>
60903
60904         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
60905         directly used by the gnulib modules nor by gnulib-tool.
60906
60907 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
60908
60909         * DEPENDENCIES: Give overall description of version dependency
60910         desirability.  Use more-typical names for apps.
60911         Add shell, coreutils, diffutils, grep, tar, gzip.
60912
60913 2007-04-04  Simon Josefsson  <simon@josefsson.org>
60914
60915         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
60916
60917 2007-04-04  Karl Berry  <karl@gnu.org>
60918
60919         * MODULES.html.sh (func_module): missing '.
60920
60921 2007-04-03  Bruno Haible  <bruno@clisp.org>
60922
60923         * modules/argmatch-tests (Makefile.am): New variable
60924         test_argmatch_LDADD.
60925         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
60926         * modules/array-list-tests (Makefile.am): New variable
60927         test_array_list_LDADD.
60928         * modules/array-oset-tests (Makefile.am): New variable
60929         test_array_oset_LDADD.
60930         * modules/avltree-list-tests (Makefile.am): New variable
60931         test_avltree_list_LDADD.
60932         * modules/avltree-oset-tests (Makefile.am): New variable
60933         test_avltree_oset_LDADD.
60934         * modules/avltreehash-list-tests (Makefile.am): New variable
60935         test_avltreehash_list_LDADD.
60936         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
60937         test_canonicalize_lgpl_LDADD.
60938         * modules/carray-list-tests (Makefile.am): New variable
60939         test_carray_list_LDADD.
60940         * modules/dirname-tests (Makefile.am): New variable
60941         test_dirname_LDADD.
60942         * modules/linked-list-tests (Makefile.am): New variable
60943         test_linked_list_LDADD.
60944         * modules/linkedhash-list-tests (Makefile.am): New variable
60945         test_linkedhash_list_LDADD.
60946         * modules/rbtree-list-tests (Makefile.am): New variable
60947         test_rbtree_list_LDADD.
60948         * modules/rbtree-oset-tests (Makefile.am): New variable
60949         test_rbtree_oset_LDADD.
60950         * modules/rbtreehash-list-tests (Makefile.am): New variable
60951         test_rbtreehash_list_LDADD.
60952         * modules/xvasprintf-tests (Makefile.am): New variable
60953         test_xvasprintf_LDADD.
60954         Reported by Eric Blake.
60955
60956 2007-04-03  Eric Blake  <ebb9@byu.net>
60957
60958         * DEPENDENCIES: Weaken m4 requirements.
60959
60960 2007-04-03  Bruno Haible  <bruno@clisp.org>
60961
60962         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
60963         * modules/isnanl-tests (configure.ac): Likewise.
60964
60965 2007-04-03  Ben Pfaff  <blp@gnu.org>
60966
60967         * modules/iconv_open: Add $(srcdir)/ to source directory
60968         references in Makefile fragments that call gperf, to fix VPATH
60969         builds.
60970
60971 2007-04-03  Bruno Haible  <bruno@clisp.org>
60972
60973         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
60974         * lib/ldexpl.c: Undo last change.
60975
60976 2007-04-03  Bruno Haible  <bruno@clisp.org>
60977
60978         * modules/printf-frexpl (Depends-on): Undo last change.
60979         (Files): Add m4/ldexpl.m4.
60980
60981 2007-04-03  Bruno Haible  <bruno@clisp.org>
60982
60983         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
60984         * modules/isnanl (Link): New section.
60985
60986         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
60987         * modules/frexp (Link): New section.
60988
60989         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
60990         * modules/frexpl (Link): New section.
60991
60992         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
60993         * modules/ldexpl (Link): New section.
60994
60995 2007-04-03  Bruno Haible  <bruno@clisp.org>
60996
60997         * modules/TEMPLATE-EXTENDED: New file.
60998         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
60999
61000 2007-04-03  Bruno Haible  <bruno@clisp.org>
61001
61002         * DEPENDENCIES: New file.
61003         Suggested by Simon Josefsson.
61004
61005 2007-04-03  Bruno Haible  <bruno@clisp.org>
61006
61007         * doc/gnulib.texi: Escape @.
61008
61009 2007-04-03  James Youngman  <jay@gnu.org>
61010         and Paul Eggert  <eggert@cs.ucla.edu>
61011
61012         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
61013         birthtime on all systems that have birthtime, not just those which
61014         use st_birthtimensec rather than st_birthtim.  Putting zero in
61015         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
61016         that the birth time is not available for files on an NFS mount.
61017
61018 2007-04-03  Simon Josefsson  <simon@josefsson.org>
61019
61020         * modules/memxor: Move back from crypto/, suggested by Bruno.
61021         * modules/crypto/hmac-sha1: Fix memxor dependency.
61022
61023         * modules/crypto/gc: Moved from ../.
61024
61025 2007-04-02  Eric Blake  <ebb9@byu.net>
61026
61027         * lib/ldexpl.c (includes): Avoid libm.
61028
61029         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
61030
61031 2007-04-02  Bruno Haible  <bruno@clisp.org>
61032
61033         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
61034         on IRIX.
61035
61036 2007-04-02  Bruno Haible  <bruno@clisp.org>
61037
61038         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
61039         x86 or x86_64 platforms running MacOS X.
61040         Reported by Ryan Schmidt <@ryandesign.com>.
61041
61042 2007-04-02  Bruno Haible  <bruno@clisp.org>
61043
61044         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
61045         i386.
61046
61047 2007-04-01  Simon Josefsson  <simon@josefsson.org>
61048
61049         * modules/crypto/arcfour: Moved from ../.
61050         * modules/crypto/arcfour-tests: Moved from ../.
61051         * modules/crypto/arctwo: Moved from ../.
61052         * modules/crypto/arctwo-tests: Moved from ../.
61053         * modules/crypto/des: Moved from ../.
61054         * modules/crypto/des-tests: Moved from ../.
61055         * modules/crypto/gc-arcfour: Moved from ../.
61056         * modules/crypto/gc-arcfour-tests: Moved from ../.
61057         * modules/crypto/gc-arctwo: Moved from ../.
61058         * modules/crypto/gc-arctwo-tests: Moved from ../.
61059         * modules/crypto/gc-des: Moved from ../.
61060         * modules/crypto/gc-des-tests: Moved from ../.
61061         * modules/crypto/gc-hmac-md5: Moved from ../.
61062         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
61063         * modules/crypto/gc-hmac-sha1: Moved from ../.
61064         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
61065         * modules/crypto/gc-md2: Moved from ../.
61066         * modules/crypto/gc-md2-tests: Moved from ../.
61067         * modules/crypto/gc-md4: Moved from ../.
61068         * modules/crypto/gc-md4-tests: Moved from ../.
61069         * modules/crypto/gc-md5: Moved from ../.
61070         * modules/crypto/gc-md5-tests: Moved from ../.
61071         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
61072         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
61073         * modules/crypto/gc-random: Moved from ../.
61074         * modules/crypto/gc-rijndael: Moved from ../.
61075         * modules/crypto/gc-rijndael-tests: Moved from ../.
61076         * modules/crypto/gc-sha1: Moved from ../.
61077         * modules/crypto/gc-sha1-tests: Moved from ../.
61078         * modules/crypto/gc-tests: Moved from ../.
61079         * modules/crypto/hmac-md5: Moved from ../.
61080         * modules/crypto/hmac-md5-tests: Moved from ../.
61081         * modules/crypto/hmac-sha1: Moved from ../.
61082         * modules/crypto/hmac-sha1-tests: Moved from ../.
61083         * modules/crypto/md2: Moved from ../.
61084         * modules/crypto/md2-tests: Moved from ../.
61085         * modules/crypto/md4: Moved from ../.
61086         * modules/crypto/md4-tests: Moved from ../.
61087         * modules/crypto/md5: Moved from ../.
61088         * modules/crypto/md5-tests: Moved from ../.
61089         * modules/crypto/memxor: Moved from ../.
61090         * modules/crypto/rijndael: Moved from ../.
61091         * modules/crypto/rijndael-tests: Moved from ../.
61092         * modules/crypto/sha1: Moved from ../.
61093
61094 2007-03-30  James Youngman  <jay@gnu.org>
61095
61096         * tests/test-stat-time.c (prepare_test): use chmod() rather than
61097         rename() to change the ctime of a file (because ctime is unaffected
61098         by rename on jfs2 on AIX 5.1).
61099         (main): Start by doing cleanup, in case a previous run failed leaving
61100         test files behind.
61101
61102 2007-03-31  Bruno Haible  <bruno@clisp.org>
61103
61104         Support old proprietary implementations of iconv.
61105         * modules/iconv_open: New file.
61106         * lib/iconv_.h: New file.
61107         * m4/iconv_h.m4: New file.
61108         * lib/iconv_open.c: New file.
61109         * lib/iconv_open-aix.gperf: New file.
61110         * lib/iconv_open-hpux.gperf: New file.
61111         * lib/iconv_open-irix.gperf: New file.
61112         * lib/iconv_open-osf.gperf: New file.
61113         * m4/iconv_open.m4: New file.
61114         * modules/linebreak (Depends-on): Add iconv_open.
61115         * modules/striconv (Depends-on): Likewise.
61116         * modules/striconveh (Depends-on): Likewise.
61117         * modules/unicodeio (Depends-on): Likewise.
61118         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
61119         (iconv_t)(-1).
61120         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
61121         conversion if cd is (iconv_t)(-1).
61122         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
61123         is not possible.
61124
61125 2007-03-31  Bruno Haible  <bruno@clisp.org>
61126
61127         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61128         work on Solaris either. Protect also second use of "autodetect_jp".
61129
61130 2007-03-31  Bruno Haible  <bruno@clisp.org>
61131
61132         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
61133         the function is not present.
61134
61135 2007-03-31  Bruno Haible  <bruno@clisp.org>
61136
61137         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
61138         the function is not present.
61139
61140 2007-03-31  Bruno Haible  <bruno@clisp.org>
61141
61142         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
61143         a bug in HP-UX iconv_open().
61144
61145 2007-03-31  Bruno Haible  <bruno@clisp.org>
61146
61147         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
61148         (Mathematics <math.h>): New section, add fpieee.
61149         (Input/output <stdio.h>): Add fseterr.
61150         (Mathematics <math.h>): New section, add printf-frexp.
61151         (Container data structures): Add sublist.
61152         (Core language properties): Add fpucw, inline.
61153         (Functions for greatest-width integer types <inttypes.h>): Add
61154         imaxabs, imaxdiv, inttypes.
61155         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
61156         isnanl-nolibm, ldexp.
61157         (Mathematics <math.h>): New section, add printf-frexpl.
61158         (Support for systems lacking POSIX:2001): Add fprintf-posix,
61159         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
61160         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
61161         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
61162         (Unicode string functions): Add unistr/u*-mbtoucr.
61163         (Java): Add javacomp-script, javaexec-script.
61164         (C#): Add csharpcomp-script, csharpexec-script.
61165         (Support for building libraries and executables): Add havelib,
61166         relocatable-*.
61167         (Support for maintaining and releasing projects): Renamed from
61168         'Support for maintaining and release projects'. Add announce-gen.
61169
61170 2007-03-31  Bruno Haible  <bruno@clisp.org>
61171
61172         * README: Talk primarily about git.
61173         (git and CVS): Renamed from CVS.
61174         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
61175         gnulib is available through git.
61176         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
61177
61178 2007-03-30  Bruno Haible  <bruno@clisp.org>
61179
61180         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
61181         * lib/poll_.h: Likewise.
61182         * lib/stat_.h: Likewise.
61183         * lib/sys_time_.h: Likewise.
61184         * lib/sysexit_.h: Likewise.
61185         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
61186         * lib/stdbool_.h: Likewise.
61187         * lib/byteswap_.h: Add double-inclusion guard.
61188
61189 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
61190
61191         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
61192
61193 2007-03-30  Karl Berry  <karl@gnu.org>
61194
61195         * config/srclist-update: double space after USA in the license
61196         substitution, since that's how it's usually (?) written.
61197
61198 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
61199
61200         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
61201         reported by Bruno Haible.
61202
61203 2007-03-29  Bruno Haible  <bruno@clisp.org>
61204
61205         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
61206         a bug in AIX iconv().
61207
61208 2007-03-29  Bruno Haible  <bruno@clisp.org>
61209
61210         * modules/ldexpl-tests: New file.
61211         * tests/test-ldexpl.c: New file.
61212
61213 2007-03-29  Bruno Haible  <bruno@clisp.org>
61214
61215         * lib/ldexpl.c: Include fpucw.h.
61216         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
61217         multiplication.
61218         * modules/ldexpl (Depends-on): Add fpucw.
61219
61220 2007-03-29  Bruno Haible  <bruno@clisp.org>
61221
61222         * modules/ldexpl: New file.
61223         * m4/ldexpl.m4: New file.
61224         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
61225         set.
61226         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
61227         REPLACE_LDEXPL.
61228         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
61229         REPLACE_LDEXPL.
61230         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
61231         gl_FUNC_LDEXPL_WORKS.
61232         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
61233         * modules/mathl (Files): Remove lib/ldexpl.c.
61234         (Depends-on): Add ldexpl.
61235
61236 2007-03-29  Bruno Haible  <bruno@clisp.org>
61237
61238         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
61239
61240 2007-03-29  Bruno Haible  <bruno@clisp.org>
61241
61242         * tests/test-striconveh.c (main): Don't assume that a direct conversion
61243         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
61244         and possibly also HP-UX.
61245         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61246         work on AIX, IRIX, HP-UX, OSF/1.
61247         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
61248         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
61249         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
61250         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
61251         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
61252         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
61253
61254 2007-03-29  Bruno Haible  <bruno@clisp.org>
61255
61256         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
61257
61258 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61259
61260         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
61261         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
61262
61263 2007-03-29  Eric Blake  <ebb9@byu.net>
61264
61265         * lib/acl-internal.h: Remove redundant include.
61266         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
61267         Cygwin when a file is locked.
61268
61269 2007-03-29  Bruno Haible  <bruno@clisp.org>
61270
61271         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
61272         file.
61273         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
61274
61275 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61276
61277         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
61278         try to remove a parent directory if the child couldn't be removed
61279         (except for the first rmdir, which could fail because the child
61280         doesn't exist).  Problem reported by Jeff Blaine in
61281         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
61282
61283 2007-03-28  Bruno Haible  <bruno@clisp.org>
61284
61285         * lib/striconveh.c (utf8conv_carefully): New function.
61286         (mem_cd_iconveh_internal): Invoke it.
61287
61288 2007-03-28  Bruno Haible  <bruno@clisp.org>
61289
61290         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
61291         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
61292         input.
61293         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
61294         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
61295         unistr/u8-uctomb.
61296
61297 2007-03-28  Bruno Haible  <bruno@clisp.org>
61298
61299         * modules/unistr/u8-mbtoucr: New file.
61300         * lib/unistr/u8-mbtoucr.c: New file.
61301         * modules/unistr/u16-mbtoucr: New file.
61302         * lib/unistr/u16-mbtoucr.c: New file.
61303         * modules/unistr/u16-mbtoucr: New file.
61304         * lib/unistr/u16-mbtoucr.c: New file.
61305         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
61306
61307 2007-03-27  Simon Josefsson  <simon@josefsson.org>
61308             Bruno Haible  <bruno@clisp.org>
61309
61310         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
61311         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
61312         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
61313
61314         * m4/stdio_h.m4: Add stubs for vasprintf too.
61315
61316         * modules/stdio: Support vasprintf in sed command.
61317
61318         * modules/vasprintf: Depend on stdio for prototypes.  Remove
61319         vasprintf.h.  Add stdio module indicator.
61320
61321         * lib/stdio_.h: Declare asprintf and vasprintf, based on
61322         vasprintf.h.
61323
61324         * lib/vasprintf.h: File removed.
61325
61326         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
61327         * lib/vasprintf.c: Ditto.
61328         * lib/xvasprintf.c: Ditto.
61329         * tests/test-vasprintf-posix.c: Ditto.
61330         * tests/test-vasprintf.c: Ditto.
61331
61332 2007-03-27  Bruno Haible  <bruno@clisp.org>
61333
61334         Make vasnprintf multithread-safe.
61335         * lib/vasnprintf.c (decimal_point_char): New function.
61336         (VASNPRINTF): Use it.
61337         Suggested by Simon Josefsson.
61338
61339 2007-03-27  Eric Blake  <ebb9@byu.net>
61340
61341         Support sub-second birthtime on cygwin.
61342         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
61343         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
61344         (get_stat_birthtime): Also work with st_birthtim.
61345
61346 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
61347
61348         * lib/stat-time.h (USE_BIRTHTIME): Remove.
61349         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
61350         (get_stat_birthtime_ns): Do not try to use "spare" fields.
61351         (get_stat_birthtime_ns): Simplify compile-time tests.
61352         (get_stat_birthtime): Change the API to look like
61353         get_stat_mtime etc., except return a negative tv_nsec on error.
61354         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
61355         Don't check for "spare" fields.
61356         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
61357         or for struct stat.st_birthtime, as these tests aren't used.
61358         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
61359
61360 2007-03-27  Bruno Haible  <bruno@clisp.org>
61361
61362         * lib/stat-time.h: Include <sys/stat.h>.
61363
61364 2007-03-27  James Youngman  <jay@gnu.org>
61365
61366         * lib/stat-time.h (get_stat_birthtime): New function for
61367           retrieving st_birthtime as provided by UFS2 (hence *BSD).
61368         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
61369           and its variants.
61370         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
61371         * modules/stat-time-test: New file.
61372         * tests/test-stat-time.c: New test, devised by Bruno Haible.
61373
61374 2007-03-26  Bruno Haible  <bruno@clisp.org>
61375
61376         Better support of signalling NaNs.
61377         * lib/atanl.c: Include isnanl.h.
61378         (atanl): Perform test for NaN at the beginning of the function and
61379         through a call to isnanl.
61380         * lib/cosl.c: Include isnanl.h.
61381         (cosl): Perform test for NaN at the beginning of the function and
61382         through a call to isnanl.
61383         * lib/ldexpl.c: Include isnanl.h.
61384         (ldexpl): Perform test for NaN through a call to isnanl.
61385         * lib/logl.c: Include isnanl.h.
61386         (logl): Perform test for NaN at the beginning of the function and
61387         through a call to isnanl.
61388         * lib/sinl.c: Include isnanl.h.
61389         (sinl): Perform test for NaN at the beginning of the function and
61390         through a call to isnanl.
61391         * lib/sqrtl.c: Include isnanl.h.
61392         (sqrtl): Perform test for NaN at the beginning of the function and
61393         through a call to isnanl.
61394         * lib/tanl.c: Include isnanl.h.
61395         (tanl): Perform test for NaN at the beginning of the function and
61396         through a call to isnanl.
61397         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
61398         * modules/mathl (Depends-on): Add isnanl.
61399
61400 2007-03-26  Eric Blake  <ebb9@byu.net>
61401
61402         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
61403         regression in logic sense of previous patch.
61404
61405 2007-03-26  Bruno Haible  <bruno@clisp.org>
61406
61407         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
61408         unportable shell command "if ! ...".
61409         Reported by Ralf Wildenhues.
61410
61411 2007-03-25  Bruno Haible  <bruno@clisp.org>
61412
61413         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
61414         <sysexits.h> file, and only add EX_CONFIG.
61415         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
61416         absolute file name and whether it is sufficient. Substitute also
61417         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
61418         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
61419         ABSOLUTE_SYSEXITS_H into sysexits.h.
61420
61421 2007-03-25  Bruno Haible  <bruno@clisp.org>
61422
61423         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
61424         hints is NULL.
61425
61426 2007-03-25  Bruno Haible  <bruno@clisp.org>
61427
61428         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
61429         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
61430
61431 2007-03-25  Bruno Haible  <bruno@clisp.org>
61432
61433         * lib/vasnprintf.c: Include langinfo.h.
61434         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
61435         multithread-safe.
61436         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
61437         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
61438         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61439         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61440         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61441         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61442         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61443         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
61444         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61445         Reported by Simon Josefsson.
61446
61447 2007-03-25  Bruno Haible  <bruno@clisp.org>
61448
61449         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
61450         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
61451         * modules/vasnprintf (Depends-on): Add stdint.
61452
61453 2007-03-25  Bruno Haible  <bruno@clisp.org>
61454
61455         * modules/fpieee: New file.
61456         * m4/fpieee.m4: New file.
61457         * modules/isnan-nolibm (Depends-on): Add fpieee.
61458         * modules/isnanl-nolibm (Depends-on): Add fpieee.
61459         * modules/isnanl (Depends-on): Add fpieee.
61460
61461 2007-03-25  Bruno Haible  <bruno@clisp.org>
61462
61463         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
61464
61465 2007-03-25  Bruno Haible  <bruno@clisp.org>
61466
61467         Avoid test failures on IRIX 6.5.
61468         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
61469         (main): Use it.
61470         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
61471         macros.
61472         (main): Use them.
61473
61474 2007-03-25  Bruno Haible  <bruno@clisp.org>
61475
61476         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
61477         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
61478         exists but doesn't work.
61479         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
61480         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
61481         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
61482         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
61483         math.h.
61484
61485 2007-03-25  Bruno Haible  <bruno@clisp.org>
61486
61487         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
61488         returns inf. Needed on IRIX 6.5.
61489
61490 2007-03-25  Bruno Haible  <bruno@clisp.org>
61491
61492         * tests/test-frexpl.c: Include isnanl-nolibm.h.
61493         (main): Use isnanl instead of x != x idiom.
61494         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
61495
61496         * tests/test-frexp.c: Include isnan.h.
61497         (main): Use isnan instead of x != x idiom.
61498         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
61499
61500 2007-03-25  Bruno Haible  <bruno@clisp.org>
61501
61502         * tests/test-frexp.c (NaN): New function/macro.
61503         (main): Use it instead of 0.0 / 0.0.
61504         * tests/test-isnan.c (NaN): New function/macro.
61505         (main): Use it instead of 0.0 / 0.0.
61506         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
61507         (test_function): Use it instead of 0.0 / 0.0.
61508         * tests/test-vasprintf-posix.c (NaN): New function/macro.
61509         (test_function): Use it instead of 0.0 / 0.0.
61510         * tests/test-snprintf-posix.h (NaN): New function/macro.
61511         (test_function): Use it instead of 0.0 / 0.0.
61512         * tests/test-sprintf-posix.h (NaN): New function/macro.
61513         (test_function): Use it instead of 0.0 / 0.0.
61514         * tests/test-fprintf-posix.h (NaN): New function/macro.
61515         (test_function): Use it instead of 0.0 / 0.0.
61516         * tests/test-printf-posix.h (NaN): New function/macro.
61517         (test_function): Use it instead of 0.0 / 0.0.
61518
61519         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
61520
61521 2007-03-25  Bruno Haible  <bruno@clisp.org>
61522
61523         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
61524
61525 2007-03-25  Bruno Haible  <bruno@clisp.org>
61526
61527         * lib/regexec.c (merge_state_with_log): Make static.
61528
61529 2007-03-25  Bruno Haible  <bruno@clisp.org>
61530
61531         * lib/trigl.c (kernel_rem_pio2): Make static.
61532
61533 2007-03-25  Bruno Haible  <bruno@clisp.org>
61534
61535         * lib/sincosl.c (sincosl_table): Make static.
61536
61537 2007-03-25  Bruno Haible  <bruno@clisp.org>
61538
61539         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
61540         if the compiler does not support C99.
61541
61542 2007-03-25  Bruno Haible  <bruno@clisp.org>
61543
61544         * modules/time (Makefile.am): Ensure all rule action lines start with a
61545         tab.
61546
61547 2007-03-24  Bruno Haible  <bruno@clisp.org>
61548
61549         * modules/tsearch-tests: New file.
61550         * tests/test-tsearch.sh: New file.
61551         * tests/test-tsearch.c: New file, mostly copied from glibc.
61552
61553         * modules/search-tests: New file.
61554         * tests/test-search.c: New file.
61555
61556         * modules/search: New file.
61557         * lib/search_.h: New file, incorporating lib/tsearch.h.
61558         * m4/search_h.m4: New file.
61559         * lib/tsearch.h: Remove file.
61560         * lib/tsearch.c: Include search.h instead of tsearch.h.
61561         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
61562         HAVE_TSEARCH.
61563         * modules/tsearch (Files): Remove lib/tsearch.h.
61564         (Depends-on): Add search.
61565         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
61566         (Include): Change tsearch.h into search.h.
61567
61568 2007-03-24  Bruno Haible  <bruno@clisp.org>
61569
61570         * modules/fpucw: New file.
61571         * lib/fpucw.h: New file.
61572         * lib/frexp.c: Include fpucw.h.
61573         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61574         (FUNC): Use them.
61575         * lib/printf-frexp.c: Include fpucw.h.
61576         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61577         (FUNC): Use them.
61578         * lib/vasnprintf.c: Include fpucw.h.
61579         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
61580         'long double' calculations.
61581         * tests/test-frexpl.c: Include fpucw.h.
61582         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61583         * tests/test-printf-frexpl.c: Include fpucw.h.
61584         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61585         * modules/frexpl (Depends-on): Add fpucw.
61586         * modules/printf-frexpl (Depends-on): Likewise.
61587         * modules/fprintf-posix (Depends-on): Likewise.
61588         * modules/snprintf-posix (Depends-on): Likewise.
61589         * modules/sprintf-posix (Depends-on): Likewise.
61590         * modules/vasnprintf-posix (Depends-on): Likewise.
61591         * modules/vasprintf-posix (Depends-on): Likewise.
61592         * modules/vfprintf-posix (Depends-on): Likewise.
61593         * modules/vsnprintf-posix (Depends-on): Likewise.
61594         * modules/vsprintf-posix (Depends-on): Likewise.
61595         * modules/frexpl-tests (Depends-on): Likewise.
61596         * modules/printf-frexpl-tests (Depends-on): Likewise.
61597
61598 2007-03-24  Bruno Haible  <bruno@clisp.org>
61599
61600         * lib/float+.h: New file.
61601         * lib/isnan.c: Include float+.h.
61602         (SIZE): New macro.
61603         (FUNC): Compare only SIZE bytes of the value.
61604         * lib/vasnprintf.c: Include float+.h.
61605         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
61606         SIZEOF_LDBL or SIZEOF_DBL bytes.
61607         * modules/isnan-nolibm (Files): Add lib/float+.h.
61608         * modules/isnanl-nolibm (Files): Add lib/float+.h.
61609         * modules/isnanl (Files): Add lib/float+.h.
61610         * modules/vasnprintf (Files): Add lib/float+.h.
61611
61612 2007-03-24  Bruno Haible  <bruno@clisp.org>
61613
61614         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
61615         include isnanl-nolibm.h.
61616
61617 2007-03-24  Bruno Haible  <bruno@clisp.org>
61618
61619         * tests/test-read-file.c (main): Don't produce spurious output for
61620         expected situations. Make the test fail if it encountered unexpected
61621         results.
61622
61623 2007-03-24  Bruno Haible  <bruno@clisp.org>
61624
61625         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
61626         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
61627
61628 2007-03-24  Bruno Haible  <bruno@clisp.org>
61629
61630         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
61631
61632 2007-03-24  Bruno Haible  <bruno@clisp.org>
61633
61634         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
61635         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
61636
61637         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
61638         * modules/utf8-ucs4: Turn into a symbolic link to module
61639         unistr/u8-mbtouc.
61640
61641         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
61642         utf8-ucs4-unsafe.
61643         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
61644         unistr/u8-mbtouc-unsafe.
61645
61646         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
61647         * modules/utf16-ucs4: Turn into a symbolic link to module
61648         unistr/u16-mbtouc.
61649
61650         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
61651         utf16-ucs4-unsafe.
61652         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
61653         unistr/u16-mbtouc-unsafe.
61654
61655         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
61656         * modules/ucs4-utf8: Turn into a symbolic link to module
61657         unistr/u8-ubtomb.
61658
61659         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
61660         * modules/ucs4-utf16: Turn into a symbolic link to module
61661         unistr/u16-ubtomb.
61662
61663 2007-03-24  Bruno Haible  <bruno@clisp.org>
61664
61665         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
61666         Enable the function only if HAVE_INLINE.
61667         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
61668         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61669         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
61670         Enable the function only if HAVE_INLINE.
61671         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
61672         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61673         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
61674         Enable the function only if HAVE_INLINE.
61675         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
61676         Enable the function only if HAVE_INLINE.
61677         * modules/utf8-ucs4: Update.
61678         * modules/utf8-ucs4-unsafe: Update.
61679         * modules/utf16-ucs4: Update.
61680         * modules/utf16-ucs4-unsafe: Update.
61681         * modules/ucs4-utf8: Update.
61682         * modules/ucs4-utf16: Update.
61683
61684 2007-03-24  Bruno Haible  <bruno@clisp.org>
61685
61686         * lib/utf8-ucs4.h: Remove file.
61687         * lib/utf8-ucs4-unsafe.h: Remove file.
61688         * lib/utf16-ucs4.h: Remove file.
61689         * lib/utf16-ucs4-unsafe.h: Remove file.
61690         * lib/ucs4-utf8.h: Remove file.
61691         * lib/ucs4-utf16.h: Remove file.
61692         * lib/unistr.h: Include their previous contents.
61693         * m4/utf-ucs4.m4: Remove file.
61694         * m4/ucs4-utf.m4: Remove file.
61695         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
61696         (Depends-on): Add unistr/base.
61697         (configure.ac): Remove gl_UTF_UCS4.
61698         (Makefile.am): Update.
61699         (Include): Change to unistr.h.
61700         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
61701         (Depends-on): Add unistr/base.
61702         (configure.ac): Remove gl_UTF_UCS4.
61703         (Makefile.am): Update.
61704         (Include): Change to unistr.h.
61705         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
61706         (Depends-on): Add unistr/base.
61707         (configure.ac): Remove gl_UTF_UCS4.
61708         (Makefile.am): Update.
61709         (Include): Change to unistr.h.
61710         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
61711         (Depends-on): Add unistr/base.
61712         (configure.ac): Remove gl_UTF_UCS4.
61713         (Makefile.am): Update.
61714         (Include): Change to unistr.h.
61715         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
61716         (Depends-on): Add unistr/base.
61717         (configure.ac): Remove gl_UCS4_UTF.
61718         (Makefile.am): Update.
61719         (Include): Change to unistr.h.
61720         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
61721         (Depends-on): Add unistr/base.
61722         (configure.ac): Remove gl_UCS4_UTF.
61723         (Makefile.am): Update.
61724         (Include): Change to unistr.h.
61725         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
61726         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
61727         utf8-ucs4-unsafe.h.
61728         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
61729         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
61730         utf16-ucs4-unsafe.h.
61731         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
61732         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
61733         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
61734         * lib/unistr/u8-strchr.c: Likewise.
61735         * lib/unistr/u8-strrchr.c: Likewise.
61736         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
61737         * lib/unistr/u16-strchr.c: Likewise.
61738         * lib/unistr/u16-strrchr.c: Likewise.
61739         * lib/striconveh.c: Update.
61740         * lib/linebreak.c: Update.
61741
61742 2007-03-24  Bruno Haible  <bruno@clisp.org>
61743
61744         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
61745         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
61746
61747 2007-03-22  Bruno Haible  <bruno@clisp.org>
61748
61749         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
61750
61751 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
61752
61753         * MODULES.html.sh (File system functions): New module write-any-file.
61754         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
61755         * m4/write-any-file.m4: New files.
61756
61757 2007-03-23  Eric Blake  <ebb9@byu.net>
61758
61759         * gnulib-tool: Rearrange space-tab sequences, since some editors
61760         like to eat them.
61761
61762 2007-03-23  Eric Blake  <ebb9@byu.net>
61763
61764         * lib/version-etc.c (version_etc_va): Update license wording to
61765         be more concise.  Recommended by Richard Stallman.
61766
61767 2007-03-22  Bruno Haible  <bruno@clisp.org>
61768
61769         * lib/poll.c (MSG_PEEK): New fallback definition.
61770
61771 2007-03-22  Bruno Haible  <bruno@clisp.org>
61772
61773         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
61774         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
61775         (main): Update.
61776         Fixes a compilation error on BeOS.
61777
61778 2007-03-22  Bruno Haible  <bruno@clisp.org>
61779
61780         * modules/frexpl-tests: New file.
61781         * tests/test-frexpl.c: New file.
61782
61783         * modules/frexpl: New file.
61784         * m4/frexpl.m4: New file.
61785         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
61786         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
61787         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
61788         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
61789         (Depends-on): Add frexpl. Remove isnanl-nolibm.
61790         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
61791
61792 2007-03-22  Bruno Haible  <bruno@clisp.org>
61793
61794         * lib/frexpl.c: Share code with lib/frexp.c.
61795         * modules/mathl (Files): Add lib/frexp.c.
61796         (Depends-on): Add isnanl-nolibm.
61797
61798 2007-03-22  Bruno Haible  <bruno@clisp.org>
61799
61800         * modules/printf-frexp (Files): Add m4/frexp.m4.
61801         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
61802         only if the found frexp function actually works.
61803
61804 2007-03-22  Bruno Haible  <bruno@clisp.org>
61805
61806         * lib/frexp.c: Remove older implementation that uses divisions.
61807
61808 2007-03-21  Bruno Haible  <bruno@clisp.org>
61809
61810         * modules/frexp-tests: New file.
61811         * tests/test-frexp.c: New file.
61812
61813         * modules/frexp: New file.
61814         * lib/frexp.c: New file.
61815         * m4/frexp.m4: New file.
61816         * lib/math_.h (frexp): New declaration.
61817         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
61818         REPLACE_FREXP.
61819         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
61820
61821 2007-03-21  Bruno Haible  <bruno@clisp.org>
61822
61823         * modules/isnanl-tests: New file.
61824         * tests/test-isnanl.c: New file.
61825
61826         * modules/isnanl: New file.
61827         * lib/isnanl.h: New file.
61828         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
61829         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
61830         gl_FUNC_ISNANL_WORKS.
61831         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
61832         New macros.
61833
61834 2007-03-21  Bruno Haible  <bruno@clisp.org>
61835
61836         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
61837         lib/isnanl.h.
61838         (Include): Update.
61839         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
61840         * lib/vasnprintf.c: Update.
61841         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
61842         tests/test-isnanl.h, remove tests/test-isnanl.c.
61843         (Makefile.am): Update.
61844         * tests/test-isnanl-nolibm.c: New file.
61845         * tests/test-isnanl.h: New file.
61846         * tests/test-isnanl.c: Remove file.
61847
61848 2007-03-21  Jim Meyering  <jim@meyering.net>
61849
61850         When trying to open ".", treat ESTALE like EACCES.
61851         * lib/savewd.c (savewd_save): Resort to forking not just upon
61852         failure with EACCES, but also when errno is ESTALE.
61853
61854 2007-03-20  Bruno Haible  <bruno@clisp.org>
61855
61856         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
61857         Needed on AIX 5.1. Reported by Matthew Woehlke.
61858
61859 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61860
61861         Suggestions by Bruno Haible:
61862         * lib/acl-internal.h: Include "gettext.h" rather than rolling
61863         our own.
61864         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
61865         * modules/acl (Depends-on): Add gettext.
61866
61867 2007-03-19  Bruno Haible  <bruno@clisp.org>
61868
61869         * modules/iconvme: Remove file.
61870         * lib/iconvme.h: Remove file.
61871         * lib/iconvme.c: Remove file.
61872         * m4/iconvme.m4: Remove file.
61873
61874 2007-03-19  Bruno Haible  <bruno@clisp.org>
61875
61876         * doc/relocatable-maint.texi: Break long shell script line.
61877         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61878
61879 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61880
61881         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
61882         handle file_has_acl.
61883         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
61884         * lib/acl.c: Move header inclusions and related macro defns into
61885         lib/acl-internal.h.
61886         (S_ISLNK): Remove defn, since that's now done for us.
61887         (file_has_acl): Move to lib/file-has-acl.c.
61888         Call acl_trivial if available.  This is the crucial part of the fix.
61889         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
61890         shared within the library.  Rewrite a bit, partly to make it compatible
61891         with the GNU coding style.
61892         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
61893         Remove unnecessary double-quotes.
61894         Don't test for acl_to_text; the build will catch that.
61895         Replace acl_entries if it doesn't exist and it is needed.
61896         Check for -lsec and acl_trivial (as used on Solaris 10).
61897         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
61898         lib/file-has-acl.c.
61899         (Depends-on): Add sys_stat, for S_ISLNK.
61900
61901 2007-03-19  Ben Pfaff  <blp@gnu.org>
61902
61903         * doc/gnulib.texi: Fix typos.
61904         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61905
61906 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61907
61908         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
61909         If size is zero here, buf must be zero.
61910
61911 2007-03-19  Simon Josefsson  <simon@josefsson.org>
61912
61913         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
61914         <bruno@clisp.org>.
61915
61916 2007-03-18  Bruno Haible  <bruno@clisp.org>
61917
61918         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
61919         Suggested by Eric Blake.
61920
61921 2007-03-18  Ben Pfaff  <blp@gnu.org>
61922
61923         * doc/relocatable.texi: Recommend using as prefix a directory
61924         that does not exist and will never be created.  Based on
61925         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
61926         and others.
61927
61928 2007-03-17  Bruno Haible  <bruno@clisp.org>
61929
61930         * lib/fchownat.c: Include lchown.h.
61931
61932 2007-03-17  Bruno Haible  <bruno@clisp.org>
61933
61934         Fix endless loop when the given allocated size was > INT_MAX.
61935         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
61936         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
61937         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
61938         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
61939         * lib/sprintf.c (sprintf): Likewise.
61940
61941 2007-03-17  Bruno Haible  <bruno@clisp.org>
61942
61943         * tests/test-argp-2.sh (func_compare): Output a context diff.
61944
61945 2007-03-17  Bruno Haible  <bruno@clisp.org>
61946
61947         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
61948         locale's decimal-point character.
61949
61950 2007-03-17  Bruno Haible  <bruno@clisp.org>
61951
61952         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
61953         before comparing it. Needed because on some platforms (e.g. x86) a
61954         'long double' occupies less bytes than sizeof (long double).
61955
61956 2007-03-17  Bruno Haible  <bruno@clisp.org>
61957
61958         * tests/test-crc.c (main): Make printf statements 64-bit clean.
61959         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
61960         * tests/test-getaddrinfo.c (simple): Likewise.
61961         * tests/test-read-file.c (main): Likewise.
61962
61963 2007-03-17  Bruno Haible  <bruno@clisp.org>
61964
61965         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
61966
61967 2007-03-17  Bruno Haible  <bruno@clisp.org>
61968
61969         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
61970         unused variable.
61971
61972 2007-03-17  Bruno Haible  <bruno@clisp.org>
61973
61974         * tests/test-c-strcasecmp.c: Include c-strcase.h.
61975         * tests/test-c-strncasecmp.c: Likewise.
61976
61977 2007-03-17  Bruno Haible  <bruno@clisp.org>
61978
61979         * modules/stdlib (Depends-on): Add unistd.
61980         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
61981         Needed for MacOS X 10.3.
61982
61983 2007-03-17  Bruno Haible  <bruno@clisp.org>
61984
61985         * lib/unistr/u-strdup.h: Include <stdlib.h>.
61986
61987 2007-03-17  Bruno Haible  <bruno@clisp.org>
61988
61989         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
61990
61991 2007-03-17  Bruno Haible  <bruno@clisp.org>
61992
61993         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
61994         to reflect files copied from gnulib (with or without modifications).
61995         Suggested by Jim Meyering.
61996
61997 2007-03-17  Eric Blake  <ebb9@byu.net>
61998
61999         * NEWS: Document stdlib change from 2007-02-18.
62000
62001 2007-03-17  Jim Meyering  <jim@meyering.net>
62002
62003         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
62004         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
62005         someone uses a name containing shell meta-characters.
62006         Reported by Alfred M. Szmidt.
62007
62008         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
62009
62010 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
62011
62012         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
62013         and copy gettext configuration files only if configure.ac contains
62014         a use of AM_GNU_GETTEXT_VERSION.
62015
62016 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
62017
62018         * build-aux/bootstrap (gnulib_name): New variable.
62019         (gnulib_tool_options): Use it.
62020
62021 2007-03-13  Simon Josefsson  <simon@josefsson.org>
62022
62023         * tests/test-des.c: Use new namespace.
62024
62025 2007-03-15  Bruno Haible  <bruno@clisp.org>
62026
62027         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
62028         Reported by James Youngman <jay@gnu.org>.
62029
62030 2007-03-15  Bruno Haible  <bruno@clisp.org>
62031
62032         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
62033         declared prototype. Needed with cc on OSF/1 5.1.
62034
62035 2007-03-15  Bruno Haible  <bruno@clisp.org>
62036
62037         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
62038         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
62039         (struct gl_list_implementation): Add dispose_fn argument to the
62040         'create_empty', 'create' methods.
62041         (struct gl_list_impl_base): Add field 'dispose_fn'.
62042         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
62043         argument.
62044         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
62045         dispose_fn argument.
62046         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
62047         dispose_fn on the dropped values.
62048         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
62049         dispose_fn argument.
62050         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
62051         dropped values.
62052         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
62053         (gl_tree_remove_node): Call dispose_fn on the dropped value.
62054         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
62055         (gl_tree_remove_node): Call dispose_fn on the dropped value.
62056         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
62057         argument.
62058         (gl_tree_list_free): Call dispose_fn on the dropped values.
62059         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
62060         the dropped values.
62061         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
62062         Add dispose_fn argument.
62063         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
62064         Call dispose_fn on the dropped values.
62065         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
62066         Add dispose_fn argument.
62067         (gl_sublist_create): Initialize the 'dispose_fn' field.
62068         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
62069         * tests/test-array_list.c (main): Update.
62070         * tests/test-carray_list.c (main): Update.
62071         * tests/test-avltree_list.c (main): Update.
62072         * tests/test-rbtree_list.c (main): Update.
62073         * tests/test-avltreehash_list.c (main): Update.
62074         * tests/test-rbtreehash_list.c (main): Update.
62075         * tests/test-linked_list.c (main): Update.
62076         * tests/test-linkedhash_list.c (main): Update.
62077         * tests/test-array_oset.c (main): Update.
62078
62079 2007-03-15  Bruno Haible  <bruno@clisp.org>
62080
62081         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
62082         (gl_oset_create_empty): Add dispose_fn argument.
62083         (struct gl_oset_implementation): Add dispose_fn argument to
62084         'create_empty' method.
62085         (struct gl_oset_impl_base): Add dispose_fn field.
62086         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
62087         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
62088         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
62089         values.
62090         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
62091         (gl_tree_oset_free): Call dispose_fn on the dropped values.
62092         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
62093         dropped value.
62094         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
62095         dropped value.
62096         * tests/test-array_oset.c (main): Update.
62097         * tests/test-avltree_oset.c (main): Update.
62098         * tests/test-rbtree_oset.c (main): Update.
62099         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
62100
62101 2007-03-13  Bruno Haible  <bruno@clisp.org>
62102
62103         * tests/test-stdbool.c (i): Update after last patch.
62104
62105 2007-03-12  Bruno Haible  <bruno@clisp.org>
62106
62107         * lib/quotearg.c: Include <wctype.h> early, before the definition of
62108         the iswprint macro. Needed on Solaris 2.5.1.
62109
62110 2007-03-12  Bruno Haible  <bruno@clisp.org>
62111
62112         * tests/test-printf-frexp.c (main): Declare x as volatile.
62113
62114 2007-03-12  Simon Josefsson  <simon@josefsson.org>
62115
62116         * doc/gnulib.texi (Build robot for gnulib): New section.
62117
62118 2007-03-12  Jim Meyering  <jim@meyering.net>
62119
62120         * build-aux/bootstrap: New file.
62121         * build-aux/bootstrap.conf: New file, from coreutils.
62122
62123 2007-03-11  Bruno Haible  <bruno@clisp.org>
62124
62125         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
62126
62127 2007-03-12  Simon Josefsson  <simon@josefsson.org>
62128
62129         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
62130         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
62131         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
62132
62133 2007-03-11  Bruno Haible  <bruno@clisp.org>
62134
62135         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
62136         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
62137
62138 2007-03-11  Bruno Haible  <bruno@clisp.org>
62139
62140         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
62141         formula. Needed for SunPRO C 5.0.
62142
62143 2007-03-11  Bruno Haible  <bruno@clisp.org>
62144
62145         * modules/long-options (Depends-on): Add getopt.
62146
62147 2007-03-11  Bruno Haible  <bruno@clisp.org>
62148
62149         * modules/modechange (Depends-on): Add stdbool.
62150
62151 2007-03-11  Bruno Haible  <bruno@clisp.org>
62152
62153         * modules/i-ring (Depends-on): Add stdbool.
62154
62155 2007-03-11  Bruno Haible  <bruno@clisp.org>
62156
62157         * modules/gc-des (Depends-on): Add stdbool.
62158
62159 2007-03-11  Bruno Haible  <bruno@clisp.org>
62160
62161         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
62162
62163 2007-03-11  Bruno Haible  <bruno@clisp.org>
62164
62165         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
62166
62167 2007-03-11  Bruno Haible  <bruno@clisp.org>
62168
62169         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
62170
62171 2007-03-11  Bruno Haible  <bruno@clisp.org>
62172
62173         * lib/vasnprintf.c (sprintf): Undefine.
62174
62175 2007-03-11  Bruno Haible  <bruno@clisp.org>
62176
62177         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
62178         initializers in SunPRO C and Compaq C compilers.
62179
62180 2007-03-11  Bruno Haible  <bruno@clisp.org>
62181
62182         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
62183         decrementing code ANSI C compliant.
62184
62185 2007-03-11  Bruno Haible  <bruno@clisp.org>
62186
62187         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
62188         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
62189
62190 2007-03-11  Bruno Haible  <bruno@clisp.org>
62191
62192         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
62193         <stdbool.h> substitute doesn't pass.
62194
62195 2007-03-11  Bruno Haible  <bruno@clisp.org>
62196
62197         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
62198
62199 2007-03-11  Bruno Haible  <bruno@clisp.org>
62200
62201         * gnulib-tool (func_create_megatestdir): Create also an autobuild
62202         script, for submission to autobuild.josefsson.org.
62203
62204 2007-03-10  Bruno Haible  <bruno@clisp.org>
62205
62206         * modules/canonicalize-lgpl-tests: New file.
62207         * tests/test-canonicalize-lgpl.sh: New file.
62208         * tests/test-canonicalize-lgpl.c: New file.
62209
62210         * modules/c-strcase-tests: New file.
62211         * tests/test-c-strcase.sh: New file.
62212         * tests/test-c-strcasecmp.c: New file.
62213         * tests/test-c-strncasecmp.c: New file.
62214
62215         * modules/atexit-tests: New file.
62216         * tests/test-atexit.sh: New file.
62217         * tests/test-atexit.c: New file.
62218
62219 2007-03-10  Bruno Haible  <bruno@clisp.org>
62220
62221         * tests/test-binary-io.sh: Use temporary filenames that are not so
62222         likely to clash with those of other tests (in a parallel make).
62223         * tests/test-binary-io.c: Likewise.
62224
62225 2007-03-10  Bruno Haible  <bruno@clisp.org>
62226
62227         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
62228         fallback; use #error instead.
62229         Suggested by Simon Josefsson.
62230
62231 2007-03-10  Bruno Haible  <bruno@clisp.org>
62232
62233         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
62234         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
62235         first and the last.
62236
62237 2007-03-10  Bruno Haible  <bruno@clisp.org>
62238
62239         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
62240
62241 2007-03-10  Bruno Haible  <bruno@clisp.org>
62242
62243         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
62244         "make distcheck".
62245         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
62246         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
62247         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
62248
62249 2007-03-10  Bruno Haible  <bruno@clisp.org>
62250
62251         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
62252         variable.
62253         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
62254         variable.
62255
62256 2007-03-09  Eric Blake  <ebb9@byu.net>
62257         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
62258
62259         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
62260         types are not being provided by gnulib.
62261         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
62262         types are supported.
62263
62264 2007-03-10  Bruno Haible  <bruno@clisp.org>
62265
62266         * lib/stdio_.h (__attribute__): New macro.
62267         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
62268         vsprintf): Specify __attribute__ __format__ for GCC.
62269         Suggested by Eric Blake.
62270
62271 2007-03-09  Bruno Haible  <bruno@clisp.org>
62272
62273         * modules/printf-posix-tests: New file.
62274         * tests/test-printf-posix.sh: New file.
62275         * tests/test-printf-posix.c: New file.
62276
62277         * modules/printf-posix: New file.
62278         * lib/printf.c: New file.
62279         * m4/printf-posix-rpl.m4: New file.
62280         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
62281         REPLACE_PRINTF.
62282         * lib/stdio_.h (printf): New declaration.
62283         (format, __format__, ____printf____, ____scanf____, ____strftime____,
62284         ____strfmon____): New macros.
62285         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
62286         REPLACE_PRINTF.
62287
62288 2007-03-09  Bruno Haible  <bruno@clisp.org>
62289
62290         * tests/test-vasnprintf-posix2.sh: New file.
62291         * tests/test-vasnprintf-posix2.c: New file.
62292         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
62293         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
62294         (Makefile.am): Activate test-vasnprintf-posix2.sh.
62295
62296         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
62297         a locale dependent decimal point, rather than always '.'.
62298
62299 2007-03-09  Eric Blake  <ebb9@byu.net>
62300
62301         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
62302         spite of platforms like Tandem/NSK that define it to -1.
62303
62304 2007-03-08  Bruno Haible  <bruno@clisp.org>
62305
62306         * modules/vprintf-posix-tests: New file.
62307         * tests/test-vprintf-posix.sh: New file.
62308         * tests/test-vprintf-posix.c: New file.
62309         * tests/test-printf-posix.h: New file.
62310
62311         * modules/vprintf-posix: New file.
62312         * lib/vprintf.c: New file.
62313         * m4/vprintf-posix.m4: New file.
62314         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
62315         REPLACE_VPRINTF.
62316         * lib/stdio_.h (vprintf): New declaration.
62317         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
62318         REPLACE_VPRINTF.
62319
62320 2007-03-08  Bruno Haible  <bruno@clisp.org>
62321
62322         * modules/fprintf-posix-tests: New file.
62323         * tests/test-fprintf-posix.sh: New file.
62324         * tests/test-fprintf-posix.c: New file.
62325
62326         * modules/fprintf-posix: New file.
62327         * lib/fprintf.c: New file.
62328         * m4/fprintf-posix.m4: New file.
62329         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
62330         REPLACE_FPRINTF.
62331         * lib/stdio_.h (fprintf): New declaration.
62332         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
62333         REPLACE_FPRINTF.
62334
62335 2007-03-08  Bruno Haible  <bruno@clisp.org>
62336
62337         * modules/vfprintf-posix-tests: New file.
62338         * tests/test-vfprintf-posix.sh: New file.
62339         * tests/test-vfprintf-posix.c: New file.
62340         * tests/test-fprintf-posix.h: New file.
62341         * tests/test-fprintf-posix.out: New file.
62342
62343         * modules/vfprintf-posix: New file.
62344         * lib/vfprintf.c: New file.
62345         * m4/vfprintf-posix.m4: New file.
62346         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
62347         REPLACE_VFPRINTF.
62348         * lib/stdio_.h (vfprintf): New declaration.
62349         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
62350         REPLACE_VFPRINTF.
62351
62352 2007-03-08  Bruno Haible  <bruno@clisp.org>
62353
62354         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
62355
62356 2007-03-08  Bruno Haible  <bruno@clisp.org>
62357
62358         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
62359         instead of 'expr' invocations.
62360         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62361         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62362         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62363         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62364         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62365         Suggested by Paul Eggert.
62366
62367 2007-03-08  Bruno Haible  <bruno@clisp.org>
62368
62369         * modules/fseterr-tests: New file.
62370         * tests/test-fseterr.c: New file.
62371
62372         * modules/fseterr: New file.
62373         * lib/fseterr.h: New file.
62374         * lib/fseterr.c: New file.
62375
62376 2007-03-08  Bruno Haible  <bruno@clisp.org>
62377
62378         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
62379         * lib/getopt_.h: Likewise.
62380         * lib/mbswidth.h: Likewise.
62381         * lib/setenv.h: Likewise.
62382         * lib/vasnprintf.h: Likewise.
62383         * lib/vasprintf.h: Likewise.
62384         * lib/verror.h: Likewise.
62385         * lib/xsetenv.h: Likewise.
62386         * lib/xvasprintf.h: Likewise.
62387
62388 2007-03-08  Jim Meyering  <jim@meyering.net>
62389
62390         * users.txt: Add parted.
62391
62392         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
62393
62394 2007-03-07  Bruno Haible  <bruno@clisp.org>
62395
62396         * m4/printf.m4: Make the shell script snippets copy&pastable.
62397
62398 2007-03-02  Bruno Haible  <bruno@clisp.org>
62399
62400         * lib/netinet_in_.h: New file.
62401         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
62402         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
62403         * modules/netinet_in (Files): Add lib/netinet_in_.h.
62404         (Depends-on): Add absolute-header.
62405         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
62406         into netinet/in.h.
62407
62408 2007-03-03  Bruno Haible  <bruno@clisp.org>
62409
62410         * lib/sys_select_.h: New file.
62411         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
62412         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
62413         * modules/sys_select (Files): Add lib/sys_select_.h.
62414         (Depends-on): Add absolute-header.
62415         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
62416         into sys/select.h.
62417
62418 2007-03-02  Bruno Haible  <bruno@clisp.org>
62419
62420         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
62421         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
62422         values.
62423         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
62424         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
62425         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
62426         * modules/sys_socket (Depends-on): Add absolute-header.
62427         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
62428         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
62429         (Include): Remove requirement of inclusion of <sys/types.h>.
62430
62431 2007-03-02  Bruno Haible  <bruno@clisp.org>
62432
62433         * lib/byteswap_.h (bswap_32): Fix formula.
62434
62435 2007-03-06  Bruno Haible  <bruno@clisp.org>
62436
62437         * modules/sprintf-posix-tests: New file.
62438         * tests/test-sprintf-posix.c: New file.
62439
62440         * modules/sprintf-posix: New file.
62441         * lib/sprintf.c: New file.
62442         * m4/sprintf-posix.m4: New file.
62443         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
62444         REPLACE_SPRINTF.
62445         * lib/stdio_.h (sprintf): New declaration.
62446         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
62447         REPLACE_SPRINTF.
62448
62449 2007-03-06  Bruno Haible  <bruno@clisp.org>
62450
62451         * modules/vsprintf-posix-tests: New file.
62452         * tests/test-vsprintf-posix.c: New file.
62453         * tests/test-sprintf-posix.h: New file.
62454
62455         * modules/vsprintf-posix: New file.
62456         * lib/vsprintf.c: New file.
62457         * m4/vsprintf-posix.m4: New file.
62458         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
62459         REPLACE_VSPRINTF.
62460         * lib/stdio_.h (vsprintf): New declaration.
62461         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
62462         REPLACE_VSPRINTF.
62463
62464 2007-03-06  Bruno Haible  <bruno@clisp.org>
62465
62466         * modules/vsnprintf (Depend-on): Remove minmax.
62467
62468 2007-03-06  Bruno Haible  <bruno@clisp.org>
62469
62470         * modules/snprintf-posix-tests: New file.
62471         * tests/test-snprintf-posix.c: New file.
62472
62473         * modules/snprintf-posix: New file.
62474         * m4/snprintf-posix.m4: New file.
62475         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
62476         gl_FUNC_SNPRINTF.
62477         (gl_FUNC_SNPRINTF): Invoke it.
62478         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
62479         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
62480         is set.
62481         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
62482
62483 2007-03-06  Bruno Haible  <bruno@clisp.org>
62484
62485         * modules/vsnprintf-posix-tests: New file.
62486         * tests/test-vsnprintf-posix.c: New file.
62487         * tests/test-snprintf-posix.h: New file.
62488
62489         * modules/vsnprintf-posix: New file.
62490         * m4/vsnprintf-posix.m4: New file.
62491         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
62492         gl_FUNC_VSNPRINTF.
62493         (gl_FUNC_VSNPRINTF): Invoke it.
62494         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
62495         * lib/stdio_.h (vsnprintf): Define as a replacement if
62496         REPLACE_VSNPRINTF is set.
62497         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
62498
62499 2007-03-06  Bruno Haible  <bruno@clisp.org>
62500
62501         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
62502         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
62503
62504 2007-03-06  Bruno Haible  <bruno@clisp.org>
62505
62506         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
62507         (asinl): Declare also if HAVE_DECL_ASINL is set.
62508         (atanl): Declare also if HAVE_DECL_ATANL is set.
62509         (ceill): Declare also if HAVE_DECL_CEILL is set.
62510         (cosl): Declare also if HAVE_DECL_COSL is set.
62511         (expl): Declare also if HAVE_DECL_EXPL is set.
62512         (floorl): Declare also if HAVE_DECL_FLOORL is set.
62513         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
62514         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
62515         (logl): Declare also if HAVE_DECL_LOGL is set.
62516         (sinl): Declare also if HAVE_DECL_SINL is set.
62517         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
62518         (tanl): Declare also if HAVE_DECL_TANL is set.
62519         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
62520         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
62521         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
62522         declaration of frexpl, ldexpl.
62523         * modules/printf-frexpl (Depends-on): Add math.
62524         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
62525
62526 2007-03-05  Bruno Haible  <bruno@clisp.org>
62527
62528         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
62529         frexpl and ldexpl are declared.
62530         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
62531
62532 2007-03-05  Bruno Haible  <bruno@clisp.org>
62533
62534         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
62535         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
62536
62537 2007-03-05  Bruno Haible  <bruno@clisp.org>
62538
62539         * lib/stdio_.h: Include <stddef.h>.
62540
62541 2007-03-05  Bruno Haible  <bruno@clisp.org>
62542
62543         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
62544
62545 2007-03-05  Bruno Haible  <bruno@clisp.org>
62546
62547         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
62548         NetBSD 4, from Ralf Wildenhues.
62549
62550 2007-03-04  Bruno Haible  <bruno@clisp.org>
62551
62552         * lib/vasprintf.h: Update #if logic for the case when the functions
62553         exist but are overridden.
62554
62555 2007-03-04  Bruno Haible  <bruno@clisp.org>
62556
62557         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
62558         implementations: glibc-2.4 and MacOS X 10.3.
62559         * tests/test-vasnprintf-posix.c (test_function): Test also the case
62560         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
62561         * tests/test-vasprintf-posix.c (test_function): Likewise.
62562
62563 2007-03-04  Bruno Haible  <bruno@clisp.org>
62564
62565         * modules/vasprintf-posix-tests: New file.
62566         * tests/test-vasprintf-posix.c: New file.
62567
62568         * modules/vasprintf-posix: New file.
62569         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
62570         defined.
62571         * m4/vasprintf-posix.m4: New file.
62572         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
62573         gl_FUNC_VASPRINTF.
62574         (gl_FUNC_VASPRINTF): Invoke it.
62575         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
62576         here.
62577         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
62578
62579 2007-03-04  Bruno Haible  <bruno@clisp.org>
62580
62581         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
62582         REPLACE_GETTIMEOFDAY.
62583         * modules/sys_time (Makefile.am): Likewise.
62584         * m4/sys_time_h.m4: Likewise.
62585         * m4/gettimeofday.m4: Likewise.
62586
62587 2007-03-04  Bruno Haible  <bruno@clisp.org>
62588
62589         * modules/vasnprintf-posix-tests: New file.
62590         * tests/test-vasnprintf-posix.c: New file.
62591
62592         * modules/vasnprintf-posix: New file.
62593         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
62594         printf-frexpl.h.
62595         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
62596         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
62597         REPLACE_VASNPRINTF is defined.
62598         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
62599         gl_FUNC_VASNPRINTF.
62600         (gl_FUNC_VASNPRINTF): Invoke it.
62601         * m4/vasnprintf-posix.m4: New file.
62602         * m4/printf.m4: New file.
62603
62604 2007-03-04  Bruno Haible  <bruno@clisp.org>
62605
62606         Compile progreloc.c only if --enable-relocatable is specified.
62607         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
62608         if --enable-relocatable was specified.
62609         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
62610         lib_SOURCES.
62611
62612 2007-03-04  Jim Meyering  <jim@meyering.net>
62613
62614         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
62615         Use it consistently, rather than enumerating errno constants.
62616
62617 2007-03-04  Bruno Haible  <bruno@clisp.org>
62618
62619         * modules/xvasprintf-tests: New file.
62620         * tests/test-xvasprintf.c: New file.
62621
62622         * modules/vasprintf-tests: New file.
62623         * tests/test-vasprintf.c: New file.
62624
62625         * modules/vasnprintf-tests: New file.
62626         * tests/test-vasnprintf.c: New file.
62627
62628         * modules/vsnprintf-tests: New file.
62629         * tests/test-vsnprintf.c: New file.
62630
62631         * modules/snprintf-tests: New file.
62632         * tests/test-snprintf.c: New file.
62633
62634 2007-03-04  Bruno Haible  <bruno@clisp.org>
62635
62636         Compile relocatable.c only if --enable-relocatable is specified.
62637         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
62638         gl_RELOCATABLE_LIBRARY.
62639         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
62640         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
62641         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
62642         gl_RELOCATABLE_LIBRARY.
62643         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
62644         (Makefile.am): Remove lib_SOURCES.
62645         * modules/relocatable-lib-lgpl (configure.ac): Invoke
62646         gl_RELOCATABLE_LIBRARY.
62647         (Makefile.am): Remove lib_SOURCES.
62648         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
62649         always.
62650         * modules/relocatable-prog-wrapper (configure.ac): Invoke
62651         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
62652
62653 2007-03-04  Bruno Haible  <bruno@clisp.org>
62654
62655         * modules/argmatch-tests: New file.
62656         * tests/test-argmatch.c: New file.
62657
62658         * tests/test-allocsa.c (main): Halve the number of loop runs.
62659
62660         * modules/alloca-opt-tests: New file.
62661         * tests/test-alloca-opt.c: New file.
62662
62663 2007-03-04  Jim Meyering  <jim@meyering.net>
62664
62665         Work around difference between Linux ACLs and Solaris 10 ZFS.
62666         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
62667         for EINVAL.
62668
62669 2007-03-03  Bruno Haible  <bruno@clisp.org>
62670
62671         * modules/relocatable-prog (Depends-on): Add back progreloc's
62672         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
62673
62674 2007-03-03  Bruno Haible  <bruno@clisp.org>
62675
62676         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
62677         * modules/relocatable-lib: New file.
62678
62679 2007-03-03  Bruno Haible  <bruno@clisp.org>
62680
62681         * modules/relocatable-prog: Renamed from modules/relocatable.
62682         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
62683
62684 2007-03-03  Bruno Haible  <bruno@clisp.org>
62685
62686         * modules/relocatable-script (Files): Add doc/relocatable.texi,
62687         m4/relocatable-lib.m4.
62688         (Depends-on): Remove 'relocatable'.
62689         (configure.ac): Add gl_RELOCATABLE_NOP.
62690
62691 2007-03-03  Bruno Haible  <bruno@clisp.org>
62692
62693         * modules/relocatable-prog-wrapper: New file.
62694         * modules/relocatable (Depends-on): Add it. Remove all other
62695         dependencies except progname.
62696         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
62697
62698         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
62699         (gl_FUNC_STRERROR): Nop.
62700         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
62701
62702         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
62703         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
62704
62705         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
62706         (gl_FUNC_READLINK): Update.
62707
62708         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
62709
62710 2007-03-03  Bruno Haible  <bruno@clisp.org>
62711
62712         * lib/xreadlink.c: Include <unistd.h> unconditionally.
62713         * modules/xreadlink (Depends-on): Add unistd.
62714         * modules/xreadlink-with-size (Depends-on): Likewise.
62715
62716 2007-03-03  Bruno Haible  <bruno@clisp.org>
62717
62718         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
62719         extracted from gt_FUNC_SETENV.
62720         (gt_FUNC_SETENV): Remove macro.
62721         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
62722         remove gt_FUNC_SETENV.
62723
62724 2007-03-03  Bruno Haible  <bruno@clisp.org>
62725
62726         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
62727         ENABLE_RELOCATABLE here.
62728         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
62729
62730 2007-03-03  Bruno Haible  <bruno@clisp.org>
62731
62732         * modules/rbtreehash-list-tests (Depends-on): Add progname.
62733         * tests/test-rbtreehash_list.c: Include progname.h.
62734         (main): Call set_program_name.
62735
62736         * modules/rbtree-oset-tests (Depends-on): Add progname.
62737         * tests/test-rbtree_oset.c: Include progname.h.
62738         (main): Call set_program_name.
62739
62740         * modules/rbtree-list-tests (Depends-on): Add progname.
62741         * tests/test-rbtree_list.c: Include progname.h.
62742         (main): Call set_program_name.
62743
62744         * modules/linked-list-tests (Depends-on): Add progname.
62745         * tests/test-linked_list.c: Include progname.h.
62746         (main): Call set_program_name.
62747
62748 2007-03-03  Bruno Haible  <bruno@clisp.org>
62749
62750         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
62751         All uses of __restrict changed to _Restrict_.
62752         * lib/glob_.h (__restrict): Remove macro.
62753
62754 2007-03-02  Bruno Haible  <bruno@clisp.org>
62755
62756         * modules/gettext (configure.ac): Require gettext infrastructure
62757         from version 0.16.1.
62758
62759 2007-03-02  Bruno Haible  <bruno@clisp.org>
62760
62761         * modules/linkedhash-list-tests (Depends-on): Add progname.
62762         * tests/test-linkedhash_list.c: Include progname.h.
62763         (main): Call set_program_name.
62764
62765         * modules/carray-list-tests (Depends-on): Add progname.
62766         * tests/test-carray_list.c: Include progname.h.
62767         (main): Call set_program_name.
62768
62769         * modules/avltreehash-list-tests (Depends-on): Add progname.
62770         * tests/test-avltreehash_list.c: Include progname.h.
62771         (main): Call set_program_name.
62772
62773         * modules/avltree-oset-tests (Depends-on): Add progname.
62774         * tests/test-avltree_oset.c: Include progname.h.
62775         (main): Call set_program_name.
62776
62777         * modules/avltree-list-tests (Depends-on): Add progname.
62778         * tests/test-avltree_list.c: Include progname.h.
62779         (main): Call set_program_name.
62780
62781         * modules/array-oset-tests (Depends-on): Add progname.
62782         * tests/test-array_oset.c: Include progname.h.
62783         (main): Call set_program_name.
62784
62785         * modules/array-list-tests (Depends-on): Add progname.
62786         * tests/test-array_list.c: Include progname.h.
62787         (main): Call set_program_name.
62788
62789         * modules/argp-tests (Depends-on): Add progname.
62790         * tests/test-argp.c: Include argp.h first. Include progname.h.
62791         (main): Call set_program_name.
62792
62793 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
62794
62795         * doc/gnulib-tool.texi (Initial import): Reword description of
62796         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
62797         limited effect even if defined after the first system include.
62798
62799 2007-03-01  Bruno Haible  <bruno@clisp.org>
62800
62801         * build-aux/config.libpath: Update to libtool-1.5.22.
62802         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
62803
62804 2007-03-01  Bruno Haible  <bruno@clisp.org>
62805
62806         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
62807         foo_CFLAGS.
62808         Reported by Ralf Wildenhues.
62809
62810 2007-03-01  Bruno Haible  <bruno@clisp.org>
62811
62812         * build-aux/install-reloc: Remove object files left over by some
62813         compilers.
62814         Reported by Ralf Wildenhues.
62815
62816 2007-03-01  Bruno Haible  <bruno@clisp.org>
62817
62818         * build-aux/install-reloc: Break long lines.
62819
62820 2007-03-01  Bruno Haible  <bruno@clisp.org>
62821
62822         * doc/relocatable.texi: Document that it may not work on OpenBSD.
62823         Reported by Ralf Wildenhues.
62824
62825 2007-03-01  Bruno Haible  <bruno@clisp.org>
62826
62827         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
62828         include ordering constraints.
62829
62830 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62831
62832         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
62833         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
62834         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
62835         as another example.
62836         * lib/time_.h: Fix misspelling.
62837         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62838         Require gl_HEADER_TIME_H_DEFAULTS.
62839         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
62840         * m4/time_r.m4 (gl_TIME_R): Likewise.
62841         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
62842
62843 2007-03-01  Bruno Haible  <bruno@clisp.org>
62844
62845         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
62846         * m4/utimens.m4 (gl_UTIMENS): Likewise.
62847
62848 2007-03-01  Jim Meyering  <jim@meyering.net>
62849
62850         * modules/xreadlink (Maintainer): Add my name.
62851         * modules/xreadlink-with-size (Depends-on): Alphabetize.
62852
62853 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
62854             Bruno Haible  <bruno@clisp.org>
62855
62856         * build-aux/install-reloc: Compile also c-ctype.c.
62857         * build-aux/relocatable.sh.in: New file.
62858         * doc/relocatable.texi: New file.
62859         * doc/relocatable-maint.texi: New file.
62860         * doc/gnulib.texi: Include relocatable-maint.texi.
62861         * lib/progreloc.c: Include unistd.h unconditionally.
62862         * lib/relocwrapper.c: Include unistd.h unconditionally.
62863         Include c-ctype.h.
62864         (add_dotbin): Use c_tolower.
62865         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
62866         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
62867         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
62868         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
62869         to m4/relocatable-lib.m4.
62870         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
62871         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
62872         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
62873         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
62874         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
62875         * modules/relocatable: New file.
62876         * modules/relocatable-lib: New file.
62877         * modules/relocatable-script: New file.
62878
62879 2007-02-28  Bruno Haible  <bruno@clisp.org>
62880
62881         Import --enable-relocatable infrastructure.
62882         * build-aux/config.libpath: New file, from GNU gettext.
62883         * build-aux/install-reloc: New file, from GNU gettext.
62884         * build-aux/reloc-ldflags: New file, from GNU gettext.
62885         * lib/relocatable.h: New file, from GNU gettext.
62886         * lib/relocatable.c: New file, from GNU gettext.
62887         * lib/relocwrapper.c: New file, from GNU gettext.
62888         * m4/relocatable.m4: New file, from GNU gettext.
62889
62890 2007-02-28  Bruno Haible  <bruno@clisp.org>
62891
62892         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
62893
62894         * modules/xreadlink: New file, from GNU gettext with modifications.
62895         * lib/xreadlink.c: New file, from GNU gettext.
62896         * lib/xreadlink.h: Add comments.
62897         (xreadlink): New declaration.
62898
62899         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
62900         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
62901         lib/xreadlink-with-size.c.
62902         (configure.ac): Remove gl_XREADLINK invocation.
62903         (Makefile.am): Augment lib_SOURCES.
62904         * m4/xreadlink.m4: Remove file.
62905         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
62906         (xreadlink_with_size): Renamed from xreadink.
62907         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
62908         * modules/canonicalize (Depends-on): Replace xreadlink with
62909         xreadlink-with-size.
62910         * lib/canonicalize.c (canonicalize_filename_mode): Update.
62911
62912 2007-02-25  Jim Meyering  <jim@meyering.net>
62913
62914         * build-aux/announce-gen: When complaining about excess arguments,
62915         list them.
62916
62917 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62918
62919         * README: Document signed integer overflow situation more
62920         accurately.
62921
62922 2007-02-25  Bruno Haible  <bruno@clisp.org>
62923
62924         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
62925         'a' or 'A' conversion.
62926
62927 2007-02-25  Bruno Haible  <bruno@clisp.org>
62928
62929         * modules/filename: Renamed from modules/pathname.
62930         (Files): Replace lib/pathname.h with lib/filename.h. Replace
62931         lib/concatpath.c with lib/concat-filename.c.
62932         (Makefile.am): Update.
62933         (Include): Replace pathname.h with filename.h.
62934         * lib/filename.h: Renamed from lib/pathname.h.
62935         (concatenated_filename): Renamed from concatenated_pathname.
62936         * lib/concat-filename.c: Renamed from lib/concatpath.c.
62937         (concatenated_filename): Renamed from concatenated_pathname.
62938         * lib/findprog.c: Include filename.h instead of pathname.h.
62939         (find_in_path): Update.
62940         * lib/javacomp.c: Include filename.h instead of pathname.h.
62941         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
62942         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
62943         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
62944         is_oldgcj_14_13_usable, is_javac_usable): Update.
62945         * lib/javaexec.c: Include filename.h instead of pathname.h.
62946         (execute_java_class): Update.
62947         * modules/findprog: Update.
62948         * modules/javacomp: Update.
62949         * modules/javaexec: Update.
62950         * MODULES.html.sh (File system functions): Add 'filename', remove
62951         'pathname'.
62952
62953 2007-02-25  Bruno Haible  <bruno@clisp.org>
62954
62955         * modules/printf-frexpl-tests: New file.
62956         * tests/test-printf-frexpl.c: New file.
62957
62958         * modules/printf-frexpl: New file.
62959         * lib/printf-frexpl.h: New file.
62960         * lib/printf-frexpl.c: New file.
62961         * m4/printf-frexpl.m4: New file.
62962
62963 2007-02-25  Bruno Haible  <bruno@clisp.org>
62964
62965         * modules/printf-frexp-tests: New file.
62966         * tests/test-printf-frexp.c: New file.
62967
62968         * modules/printf-frexp: New file.
62969         * lib/printf-frexp.h: New file.
62970         * lib/printf-frexp.c: New file.
62971         * m4/printf-frexp.m4: New file.
62972
62973 2007-02-25  Bruno Haible  <bruno@clisp.org>
62974
62975         Assume automake >= 1.10 for the tests.
62976         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
62977         * modules/arctwo-tests: Likewise.
62978         * modules/argp-tests: Likewise.
62979         * modules/avltree-list-tests: Likewise.
62980         * modules/avltree-oset-tests: Likewise.
62981         * modules/avltreehash-list-tests: Likewise.
62982         * modules/carray-list-tests: Likewise.
62983         * modules/crc-tests: Likewise.
62984         * modules/des-tests: Likewise.
62985         * modules/gc-arcfour-tests: Likewise.
62986         * modules/gc-arctwo-tests: Likewise.
62987         * modules/gc-des-tests: Likewise.
62988         * modules/gc-hmac-md5-tests: Likewise.
62989         * modules/gc-hmac-sha1-tests: Likewise.
62990         * modules/gc-md2-tests: Likewise.
62991         * modules/gc-md4-tests: Likewise.
62992         * modules/gc-md5-tests: Likewise.
62993         * modules/gc-pbkdf2-sha1-tests: Likewise.
62994         * modules/gc-rijndael-tests: Likewise.
62995         * modules/gc-sha1-tests: Likewise.
62996         * modules/gc-tests: Likewise.
62997         * modules/getaddrinfo-tests: Likewise.
62998         * modules/hmac-md5-tests: Likewise.
62999         * modules/hmac-sha1-tests: Likewise.
63000         * modules/linked-list-tests: Likewise.
63001         * modules/linkedhash-list-tests: Likewise.
63002         * modules/lock-tests: Likewise.
63003         * modules/md2-tests: Likewise.
63004         * modules/md4-tests: Likewise.
63005         * modules/md5-tests: Likewise.
63006         * modules/rbtree-list-tests: Likewise.
63007         * modules/rbtree-oset-tests: Likewise.
63008         * modules/rbtreehash-list-tests: Likewise.
63009         * modules/read-file-tests: Likewise.
63010         * modules/rijndael-tests: Likewise.
63011         * modules/stdint-tests: Likewise.
63012         * modules/tls-tests: Likewise.
63013
63014 2007-02-24  Bruno Haible  <bruno@clisp.org>
63015
63016         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
63017         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
63018         function; instead check whether isnan with a double argument links.
63019         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
63020         function; instead check whether isnan with a 'long double' argument
63021         links.
63022         Reported by Eric Blake <ebb9@byu.net>.
63023
63024 2007-02-24  Bruno Haible  <bruno@clisp.org>
63025
63026         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
63027         defined.
63028         * lib/isnanl.c: Remove all code. Just include isnan.c.
63029         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
63030
63031 2007-02-25  Jim Meyering  <jim@meyering.net>
63032
63033         Avoid conflicting types for 'unsetenv' on FreeBSD.
63034         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
63035         conflicting with FreeBSD's (5.0 and 6.1) function declaration
63036         in stdlib.h.
63037
63038 2007-02-24  Bruno Haible  <bruno@clisp.org>
63039
63040         * modules/isnanl-nolibm-tests: New file.
63041         * tests/test-isnanl.c: New file.
63042
63043         * modules/isnanl-nolibm: New file.
63044         * lib/isnanl.h: New file.
63045         * lib/isnanl.c: New file.
63046         * m4/isnanl.m4: New file.
63047
63048 2007-02-24  Bruno Haible  <bruno@clisp.org>
63049
63050         * modules/isnan-nolibm-tests: New file.
63051         * tests/test-isnan.c: New file.
63052
63053         * modules/isnan-nolibm: New file.
63054         * lib/isnan.h: New file.
63055         * lib/isnan.c: New file.
63056         * m4/isnan.m4: New file.
63057
63058 2007-02-24  Bruno Haible  <bruno@clisp.org>
63059
63060         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
63061         assume that an exponent fits in 20 bits.
63062
63063 2007-02-24  Jim Meyering  <jim@meyering.net>
63064
63065         * m4/regex.m4: Update the description of the configure-time option,
63066         --without-included-regex, to state accurately what the defaults are,
63067         and perhaps to give people an idea why using this option is risky.
63068
63069 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
63070
63071         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
63072         loops on small arguments.  This attempts to avoid the problem
63073         Bruno Haible reported for AIX 4.3.2 in
63074         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
63075
63076 2007-02-23  Bruno Haible  <bruno@clisp.org>
63077
63078         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
63079         Needed for help2man.
63080
63081 2007-02-23  Karl Berry  <karl@gnu.org>
63082
63083         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
63084         exists, foo.h should be cvs-ignored, not committed.
63085
63086 2007-02-23  Eric Blake  <ebb9@byu.net>
63087
63088         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
63089         * lib/stat-time.h (includes): Likewise.
63090         * lib/utimecmp.c (includes): Likewise.
63091         * lib/utimens.h (includes): Likewise.
63092         * lib/getdate.y (includes): Also include "timespec.h" for use
63093         internal to the module.
63094         * modules/utimens (Depends-on): Revert yesterday's patch.
63095         * modules/nanosleep (Depends-on): Add missing dependency.
63096
63097 2007-02-22  Bruno Haible  <bruno@clisp.org>
63098
63099         * lib/glob.c: Don't include getlogin_r.h.
63100
63101 2007-02-22  Jim Meyering  <jim@meyering.net>
63102
63103         * modules/utimens (Depends-on): Add timespec, required for
63104         utimens.h's inclusion of timespec.h.
63105
63106 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
63107
63108         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
63109         long unreadable paths in GNU/Linux.  Problem reported by Andreas
63110         Schwab in
63111         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
63112         I'll try to think of a better way to fix the Solaris problem.
63113
63114         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
63115         like glibc; on Solaris 10, it fails with errno == EINVAL.
63116         POSIX says the behavior is unspecified if the first argument is NULL,
63117         so play it safe and never pass NULL to the system getcwd.
63118
63119 2007-02-21  Jim Meyering  <jim@meyering.net>
63120
63121         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
63122         of gettimeofday.  It would conflict with the one now always
63123         provided via sys_time_.h.  Reported by Matthew Woehlke, as
63124         an IRIX 6.5 build failure.
63125
63126 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
63127
63128         Minor fixups to port to Solaris 10 with Sun C 5.8.
63129         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
63130         * modules/getcwd (Depends-on): Add dirfd.
63131         * lib/putenv.c (putenv): #undef it.
63132         (rpl_putenv): New decl.
63133         (malloc, free): Include <stdlib.h> rather than prototyping separately.
63134
63135 2007-02-20  Bruno Haible  <bruno@clisp.org>
63136
63137         * modules/stdio-tests: New file.
63138         * tests/test-stdio.c: New file.
63139
63140         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
63141         (Depends-on): Add stdio.
63142         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
63143         (Include): Use <stdio.h> instead of vsnprintf.h.
63144         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
63145         HAVE_DECL_VSNPRINTF.
63146         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
63147
63148         * modules/snprintf (Files): Remove lib/snprintf.h.
63149         (Depends-on): Add stdio.
63150         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
63151         (Include): Use <stdio.h> instead of snprintf.h.
63152         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
63153         HAVE_DECL_SNPRINTF.
63154         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
63155         * lib/getaddrinfo.c: Likewise.
63156
63157         * modules/stdio: New file.
63158         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
63159         * lib/snprintf.h: Remove file.
63160         * lib/vsnprintf.h: Remove file.
63161         * lib/.cppi-disable: Remove snprintf.h.
63162         * m4/stdio_h.m4: New file.
63163         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
63164
63165 2007-02-20  Jim Meyering  <jim@meyering.net>
63166
63167         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
63168         used by e.g., mingw.  From Bruno Haible.
63169
63170 2007-02-19  Bruno Haible  <bruno@clisp.org>
63171
63172         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
63173         warnings.
63174         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63175
63176 2007-02-19  Bruno Haible  <bruno@clisp.org>
63177
63178         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
63179         from mingw users.
63180
63181 2007-02-19  Bruno Haible  <bruno@clisp.org>
63182
63183         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
63184         warnings.
63185         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
63186
63187 2007-02-19  Jim Meyering  <jim@meyering.net>
63188
63189         Don't use FD after a successful "fdopendir (fd)".
63190         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
63191         Reset it by calling dirfd on the just-obtained DIR*.
63192
63193         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
63194         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
63195
63196 2007-02-18  Bruno Haible  <bruno@clisp.org>
63197
63198         * lib/readlink.c: Include <unistd.h>.
63199         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
63200         HAVE_READLINK.
63201         * modules/readlink (Depends-on): Add unistd.
63202         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63203         (Include): Add <unistd.h>.
63204
63205         * lib/getlogin_r.h: Remove file.
63206         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
63207         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
63208         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
63209         HAVE_DECL_GETLOGIN_R.
63210         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
63211         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63212         (Include): Use <unistd.h> instead of getlogin_r.h.
63213
63214         * lib/getcwd.h: Remove file.
63215         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
63216         * lib/xgetcwd.c: Likewise.
63217         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
63218         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
63219         * modules/getcwd (Files): Remove lib/getcwd.h.
63220         (Depends-on): Add unistd.
63221         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63222         (Include): Use <unistd.h> instad of getcwd.h.
63223
63224         * lib/ftruncate.c: Include <unistd.h> first.
63225         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
63226         Set HAVE_FTRUNCATE.
63227         * modules/ftruncate (Depends-on): Add unistd.
63228         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63229
63230         * lib/fchdir.c: Include <unistd.h> first.
63231         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
63232         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
63233         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
63234         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63235         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
63236
63237         * lib/dup2.c: Include <unistd.h> first.
63238         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
63239         HAVE_DUP2.
63240         * modules/dup2 (Depends-on): Add unistd.
63241         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63242
63243         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
63244         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
63245         REPLACE_CHOWN. Don't define chown as a macro here.
63246         * modules/chown (Depends-on): Add unistd.
63247         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63248
63249         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
63250         Add definition for GL_LINK_WARNING.
63251         (chown, dup2): New declarations.
63252         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
63253         link warning.
63254         (ftruncate): New declaration.
63255         (getcwd): New declaration, taken from old getcwd.h.
63256         (getlogin_r): New declaration, taken from old getlogin_r.h.
63257         (readlink): New declaration.
63258         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
63259         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
63260         (gl_PREREQ_UNISTD): Remove macro.
63261         (gl_UNISTD_MODULE_INDICATOR): New macro.
63262         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
63263         many new variables. Don't set UNISTD_H.
63264         * modules/unistd (Description): Change.
63265         (Depends-on): Add link-warning.
63266         (configure.ac): Update.
63267         (Makefile.am): Create unistd.h always. Substitute many new variables
63268         into it.
63269
63270 2007-02-18  Bruno Haible  <bruno@clisp.org>
63271
63272         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
63273         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
63274         HAVE_GETSUBOPT.
63275         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
63276         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
63277         * lib/getsubopt.h: Remove file.
63278         * modules/getsubopt (Files): Remove lib/getsubopt.h.
63279         (Depends-on): Add stdlib.
63280         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63281         (Includes): Use <stdlib.h> instead of getsubopt.h.
63282         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
63283         Set HAVE_GETSUBOPT.
63284         * lib/getsubopt.c: Don't include getsubopt.h.
63285
63286 2007-02-18  Bruno Haible  <bruno@clisp.org>
63287
63288         * modules/fchdir (Depends-on): Add dup2.
63289
63290 2007-02-18  Bruno Haible  <bruno@clisp.org>
63291
63292         * lib/stdlib_.h: Handle glibc's special invocation convention
63293         specially.
63294
63295 2007-02-18  Bruno Haible  <bruno@clisp.org>
63296
63297         * modules/stdlib-tests: New file.
63298         * tests/test-stdlib.c: New file.
63299
63300         * modules/mkstemp (Files): Remove lib/mkstemp.h.
63301         (Depends-on): Add stdlib.
63302         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63303         (Includes): Use <stdlib.h> instead of mkstemp.h.
63304         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
63305         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
63306         * lib/mkstemp.c: Don't include mkstemp.h.
63307         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
63308         * lib/stdlib--.h: Don't include mkstemp.h.
63309
63310         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
63311         (Depends-on): Add stdlib.
63312         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63313         (Includes): Use <stdlib.h> instead of mkdtemp.h.
63314         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
63315         HAVE_MKDTEMP.
63316         * lib/mkdtemp.c: Don't include mkdtemp.h.
63317         * lib/clean-temp.c: Don't include mkdtemp.h.
63318
63319         * modules/exit (Files): Remove lib/exit.h.
63320         (Depends-on): Add stdlib.
63321         (Makefile.am): Remove lib_SOURCES.
63322         (Include): Use <stdlib.h> instead of exit.h.
63323         * lib/argmatch.c: Don't include exit.h.
63324         * lib/execute.c: Likewise.
63325         * lib/pagealign_alloc.c: Likewise.
63326         * lib/pipe.c: Likewise.
63327         * lib/wait-process.c: Likewise.
63328         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
63329         * lib/exitfail.c: Likewise.
63330         * lib/savewd.c: Likewise.
63331         * lib/xsetenv.c: Likewise.
63332
63333         * modules/stdlib: New file.
63334         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
63335         and extra comments about mkstemp().
63336         * lib/exit.h: Remove file.
63337         * lib/mkdtemp.h: Remove file.
63338         * lib/mkstemp.h: Remove file.
63339         * m4/stdlib_h.m4: New file.
63340         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
63341
63342 2007-02-18  Bruno Haible  <bruno@clisp.org>
63343
63344         * modules/math-tests: New file.
63345         * tests/test-math.c: New file.
63346
63347         * modules/math: New file.
63348         * modules/mathl (Files): Remove lib/mathl.h.
63349         (Depends-on): Add math.
63350         (Makefile.am): Don't mention mathl.h.
63351         (Include): Use <math.h> instead of mathl.h.
63352         * lib/math_.h: New file.
63353         * lib/mathl.h: Remove file.
63354         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
63355         mathl.h.
63356         * lib/asinl.c: Likewise.
63357         * lib/atanl.c: Likewise.
63358         * lib/ceill.c: Likewise.
63359         * lib/cosl.c: Likewise.
63360         * lib/expl.c: Likewise.
63361         * lib/floorl.c: Likewise.
63362         * lib/frexpl.c: Likewise.
63363         * lib/ldexpl.c: Likewise.
63364         * lib/logl.c: Likewise.
63365         * lib/sincosl.c: Likewise.
63366         * lib/sinl.c: Likewise.
63367         * lib/sqrtl.c: Likewise.
63368         * lib/tanl.c: Likewise.
63369         * lib/trigl.c: Likewise.
63370         * m4/math_h.m4: New file.
63371         * MODULES.html.sh (Mathematics): Add math.
63372
63373 2007-02-17  Bruno Haible  <bruno@clisp.org>
63374
63375         * modules/wctype-tests: New file.
63376         * tests/test-wctype.c: New file.
63377
63378         * modules/wchar-tests: New file.
63379         * tests/test-wchar.c: New file.
63380
63381         * modules/unistd-tests: New file.
63382         * tests/test-unistd.c: New file.
63383
63384         * modules/time-tests: New file.
63385         * tests/test-time.c: New file.
63386
63387         * modules/sysexits-tests: New file.
63388         * tests/test-sysexits.c: New file.
63389
63390         * modules/sys_time-tests: New file.
63391         * tests/test-sys_time.c: New file.
63392
63393         * modules/sys_stat-tests: New file.
63394         * tests/test-sys_stat.c: New file.
63395
63396         * modules/sys_socket-tests: New file.
63397         * tests/test-sys_socket.c: New file.
63398
63399         * modules/sys_select-tests: New file.
63400         * tests/test-sys_select.c: New file.
63401
63402         * modules/string-tests: New file.
63403         * tests/test-string.c: New file.
63404
63405         * modules/stdbool-tests: New file.
63406         * tests/test-stdbool.c: New file.
63407
63408         * modules/netinet_in-tests: New file.
63409         * tests/test-netinet_in.c: New file.
63410
63411         * modules/inttypes-tests: New file.
63412         * tests/test-inttypes.c: New file.
63413
63414         * modules/fcntl-tests: New file.
63415         * tests/test-fcntl.c: New file.
63416
63417         * modules/byteswap-tests: New file.
63418         * tests/test-byteswap.c: New file.
63419
63420         * modules/arpa_inet-tests: New file.
63421         * tests/test-arpa_inet.c: New file.
63422
63423 2007-02-17  Bruno Haible  <bruno@clisp.org>
63424
63425         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
63426         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
63427         if the corresponding module is not enabled. Emit link warnings if
63428         the function is used nevertheless.
63429         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
63430         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
63431         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
63432         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
63433         * modules/inttypes (Depends-on): Add link-warning.
63434         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63435         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
63436         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
63437         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
63438         * modules/imaxdiv (configure.ac): Likewise.
63439         * modules/strtoimax (configure.ac): Likewise.
63440         * modules/strtoumax (configure.ac): Likewise.
63441
63442 2007-02-17  Bruno Haible  <bruno@clisp.org>
63443
63444         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
63445         gl_STRING_MODULE_INDICATOR_DEFAULTS.
63446         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
63447         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
63448
63449 2007-02-17  Bruno Haible  <bruno@clisp.org>
63450
63451         * modules/link-warning: New file.
63452         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
63453         * lib/string_.h (GL_LINK_WARNING): Remove definition.
63454         * modules/string (Depends-on): Add link-warning.
63455         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63456         string.h.
63457         * MODULES.html.sh (Support for building libraries and executables): Add
63458         link-warning.
63459
63460 2007-02-17  Bruno Haible  <bruno@clisp.org>
63461
63462         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
63463         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
63464         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
63465         long lines.
63466
63467 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
63468             Bruno Haible  <bruno@clisp.org>
63469
63470         * modules/tmpfile: New file.
63471         * lib/tmpfile.c: New file.
63472         * m4/tmpfile.m4: New file.
63473         * MODULES.html.sh (func_all_modules): New section "Input/output".
63474
63475 2007-02-15  Bruno Haible  <bruno@clisp.org>
63476
63477         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
63478         (supports_delete_on_close): New function.
63479         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
63480
63481 2007-02-14  Bruno Haible  <bruno@clisp.org>
63482
63483         * modules/mbspcasecmp-tests: New file.
63484         * tests/test-mbspcasecmp.sh: New file.
63485         * tests/test-mbspcasecmp.c: New file.
63486
63487         New module mbspcasecmp.
63488         * modules/mbspcasecmp: New file.
63489         * lib/mbspcasecmp.c: New file.
63490         * lib/string_.h (strncasecmp): Change warning message.
63491         (mbspcasecmp): New declaration.
63492         * m4/mbspcasecmp.m4: New file.
63493         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63494         GNULIB_MBSPCASECMP.
63495         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
63496         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
63497
63498 2007-02-14  Bruno Haible  <bruno@clisp.org>
63499
63500         * modules/mbsncasecmp-tests: New file.
63501         * tests/test-mbsncasecmp.sh: New file.
63502         * tests/test-mbsncasecmp.c: New file.
63503
63504         New module mbsncasecmp.
63505         * modules/mbsncasecmp: New file.
63506         * lib/mbsncasecmp.c: New file.
63507         * lib/string_.h (mbsncasecmp): New declaration.
63508         * m4/mbsncasecmp.m4: New file.
63509         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63510         GNULIB_MBSNCASECMP.
63511         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
63512         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
63513
63514 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
63515
63516         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
63517         Verify that it doesn't overlap with our flags.
63518         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
63519         do not have the desired effect in multibyte locales; instead, use
63520         mbscasecmp.
63521         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
63522         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
63523         we don't require GNU fnmatch ourselves (if our users require it, they
63524         should do so explicitly).
63525
63526         Fix regex code so it doesn't rely on strcasecmp.
63527         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
63528         Otherwise, include gnulib's langinfo.h.
63529         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
63530         undesirable behavior in non-C locales.  Instead, rely on localecharset.
63531         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
63532         * modules/regex (FILES): Remove m4/codeset.m4.
63533         (Depends-on): Add localcharset.  Remove strcase.
63534
63535 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63536
63537         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
63538         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
63539
63540 2007-02-13  Bruno Haible  <bruno@clisp.org>
63541
63542         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
63543         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63544
63545 2007-02-12  Bruno Haible  <bruno@clisp.org>
63546
63547         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63548         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
63549         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
63550         time warning rather than a link error.
63551
63552 2007-02-12  Bruno Haible  <bruno@clisp.org>
63553
63554         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
63555         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63556         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63557
63558 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63559
63560         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
63561         args, not 2.
63562
63563 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63564
63565         New module 'time', so that apps can include <time.h> as per
63566         POSIX and GNU instead of separate include files like time_r.h
63567         and timegm.h.  This implementation tries out a simpler approach
63568         for replacing decls in standard include files (as compared to
63569         the string module), somewhat as an experiment.
63570
63571         * config/srclist.txt: Comment out mktime.c for now.
63572         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
63573         since it doesn't apply any more.  Use generic wording instead.
63574         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
63575         'time'.
63576         * lib/time_.h, m4/time_h.m4, modules/time: New files.
63577         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
63578         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
63579         Don't include <sys/types.h>; no longer needed since we assume C89.
63580         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
63581         * lib/strftime.c: Likewise.
63582         * lib/time_r.c: Likewise.
63583         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
63584         * lib/nanosleep.c: Include <time.h> first, to check interface.
63585         * lib/strptime.c: Likewise.
63586         * lib/time_r.c: Likewise.
63587         * lib/timegm.c: Likewise.
63588         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
63589         needed.
63590         * lib/timegm.c: Don't include timegm.h; no longer needed.
63591         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
63592         time.h now handles any problems in that area.
63593         (struct timespec, nanosleep): Remove; time.h now arranges for these.
63594         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
63595         that time.h defines struct timespec.
63596         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
63597         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
63598         handles that.
63599         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
63600         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
63601         needed.  Set REPLACE_LOCALTIME.
63602         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
63603         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
63604         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
63605         nanosleep; time_h.m4 now does that.  Don't require
63606         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
63607         module handles this now.
63608         * modules/getdate (Depends-on): Remove timespec.  Add time.
63609         * modules/nanosleep (Depends-on): Likewise.
63610         * modules/stat-time (Depends-on): Likewise.
63611         * modules/nanosleep (Include): Include time.h, not timespec.h.
63612         * modules/strptime (Files): Remove lib/strptime.h.
63613         (Depends-on): Add extensions, time.
63614         (Include): Include time.h, not strptime.h.
63615         * modules/time_r (Files): Remove lib/time_r.h.
63616         (Depends-on): Add time.
63617         (Include): Include time.h, not time_r.h.
63618         * modules/timegm: Likewise.
63619         * modules/timespec (Description): Now does timespec-related decls
63620         of our own, instead of struct timespec itself.
63621         (Depends-on): Add time; remove extensions.
63622         (Maintainer): Add self.
63623         * modules/utimecmp (Depends-on): Add time; remove timespec.
63624         * modules/utimens (Depends-on): Likewise.
63625         * modules/xnanosleep (Depends-on): Likewise.
63626
63627 2007-02-11  Bruno Haible  <bruno@clisp.org>
63628
63629         * lib/c-strstr.c: Include allocsa.h.
63630         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63631         * lib/c-strcasestr.c: Include allocsa.h.
63632         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63633         * lib/strcasestr.c: Include allocsa.h.
63634         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63635         * lib/mbsstr.c: Include allocsa.h.
63636         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63637         allocsa/freesa instead of malloc/free.
63638         * lib/mbscasestr.c: Include allocsa.h.
63639         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63640         allocsa/freesa instead of malloc/free.
63641         * modules/c-strstr (Depends-on): Add allocsa.
63642         * modules/c-strcasestr (Depends-on): Likewise.
63643         * modules/strcasestr (Depends-on): Likewise.
63644         * modules/mbsstr (Depends-on): Likewise.
63645         * modules/mbscasestr (Depends-on): Likewise.
63646
63647 2007-02-11  Bruno Haible  <bruno@clisp.org>
63648
63649         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
63650
63651         * modules/mbsspn-tests: New file.
63652         * tests/test-mbsspn.sh: New file.
63653         * tests/test-mbsspn.c: New file.
63654
63655 2007-02-11  Bruno Haible  <bruno@clisp.org>
63656
63657         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
63658
63659         * modules/mbspbrk-tests: New file.
63660         * tests/test-mbspbrk.sh: New file.
63661         * tests/test-mbspbrk.c: New file.
63662
63663 2007-02-11  Bruno Haible  <bruno@clisp.org>
63664
63665         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
63666         unneeded cast.
63667
63668         * modules/mbscspn-tests: New file.
63669         * tests/test-mbscspn.sh: New file.
63670         * tests/test-mbscspn.c: New file.
63671
63672 2007-02-11  Bruno Haible  <bruno@clisp.org>
63673
63674         * modules/mbscasecmp-tests: New file.
63675         * tests/test-mbscasecmp.sh: New file.
63676         * tests/test-mbscasecmp.c: New file.
63677
63678 2007-02-11  Bruno Haible  <bruno@clisp.org>
63679
63680         Ensure O(n) worst-case complexity of mbscasestr.
63681         * lib/mbscasestr.c: Include stdbool.h.
63682         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63683         functions.
63684         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
63685         the bookkeeping indicates that it's worth it.
63686         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
63687
63688         * modules/mbscasestr-tests: New file.
63689         * tests/test-mbscasestr1.c: New file.
63690         * tests/test-mbscasestr2.sh: New file.
63691         * tests/test-mbscasestr2.c: New file.
63692         * tests/test-mbscasestr3.sh: New file.
63693         * tests/test-mbscasestr3.c: New file.
63694         * tests/test-mbscasestr4.sh: New file.
63695         * tests/test-mbscasestr4.c: New file.
63696         * m4/locale-tr.m4: New file.
63697
63698 2007-02-11  Bruno Haible  <bruno@clisp.org>
63699
63700         Ensure O(n) worst-case complexity of mbsstr.
63701         * lib/mbsstr.c: Include stdbool.h.
63702         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63703         functions.
63704         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
63705         bookkeeping indicates that it's worth it.
63706         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
63707
63708         * modules/mbsstr-tests: New file.
63709         * tests/test-mbsstr1.c: New file.
63710         * tests/test-mbsstr2.sh: New file.
63711         * tests/test-mbsstr2.c: New file.
63712         * tests/test-mbsstr3.sh: New file.
63713         * tests/test-mbsstr3.c: New file.
63714         * m4/locale-fr.m4: New file.
63715
63716 2007-02-11  Bruno Haible  <bruno@clisp.org>
63717
63718         * lib/mbsrchr.c (mbsrchr): Fix bug.
63719
63720         * modules/mbsrchr-tests: New file.
63721         * tests/test-mbsrchr.sh: New file.
63722         * tests/test-mbsrchr.c: New file.
63723
63724 2007-02-11  Bruno Haible  <bruno@clisp.org>
63725
63726         * lib/mbschr.c (mbschr): Fix bug.
63727
63728         * modules/mbschr-tests: New file.
63729         * tests/test-mbschr.sh: New file.
63730         * tests/test-mbschr.c: New file.
63731         * m4/locale-zh.m4: New file.
63732
63733 2007-02-11  Bruno Haible  <bruno@clisp.org>
63734
63735         Support for copying multibyte string iterators.
63736         * lib/mbiter.h: Include <string.h>.
63737         (mbiter_multi_copy): New function.
63738         (mbi_copy): New macro.
63739         * lib/mbuiter.h: Include <string.h>.
63740         (mbuiter_multi_copy): New function.
63741         (mbui_copy): New macro.
63742
63743 2007-02-11  Bruno Haible  <bruno@clisp.org>
63744
63745         New module mbslen.
63746         * modules/mbslen: New file.
63747         * lib/mbslen.c: New file.
63748         * lib/string_.h (mbslen): New declaration.
63749         * m4/mbslen.m4: New file.
63750         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63751         GNULIB_MBSLEN.
63752         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
63753         * MODULES.html.sh (Internationalization functions): Add mbslen.
63754
63755 2007-02-11  Bruno Haible  <bruno@clisp.org>
63756
63757         Ensure O(n) worst-case complexity of strcasestr substitute.
63758         * lib/strcasestr.c: Include stdbool.h.
63759         (knuth_morris_pratt): New function.
63760         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63761         bookkeeping indicates that it's worth it.
63762         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
63763
63764         * modules/strcasestr-tests: New file.
63765         * tests/test-strcasestr.c: New file.
63766
63767 2007-02-11  Bruno Haible  <bruno@clisp.org>
63768
63769         Ensure O(n) worst-case complexity of c_strcasestr.
63770         * lib/c-strcasestr.c: Include stdbool.h, string.h.
63771         (knuth_morris_pratt): New function.
63772         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
63773         the bookkeeping indicates that it's worth it.
63774         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
63775
63776         * modules/c-strcasestr-tests: New file.
63777         * tests/test-c-strcasestr.c: New file.
63778
63779 2007-02-11  Bruno Haible  <bruno@clisp.org>
63780
63781         Ensure O(n) worst-case complexity of c_strstr.
63782         * lib/c-strstr.c: Include stdbool.h, string.h.
63783         (knuth_morris_pratt): New function.
63784         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63785         bookkeeping indicates that it's worth it.
63786         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
63787
63788         * lib/c-strstr.c: Complete rewrite for maintainability.
63789
63790         * modules/c-strstr-tests: New file.
63791         * tests/test-c-strstr.c: New file.
63792
63793 2007-02-11  Bruno Haible  <bruno@clisp.org>
63794
63795         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
63796         5.2.1 and earlier, whereby \055 was treated just like the range
63797         delimiter '-'.
63798         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63799
63800 2007-02-08  Bruno Haible  <bruno@clisp.org>
63801
63802         * modules/regex (Depends-on): Add stdbool.
63803         Reported by Dalibor Topic <robilad@kaffe.org>.
63804
63805 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63806
63807         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
63808         Prefer returning from main to exiting from it.
63809         Remove unnecessary parens after sizeof.
63810
63811 2007-02-05  Bruno Haible  <bruno@clisp.org>
63812
63813         New module mbssep.
63814         * modules/mbssep: New file.
63815         * lib/mbssep.c: New file.
63816         * lib/string_.h (strsep): Add a conditional link warning.
63817         (mbssep): New declaration.
63818         * m4/mbssep.m4: New file.
63819         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63820         GNULIB_MBSSEP.
63821         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
63822         * MODULES.html.sh (Internationalization functions): Add mbssep.
63823
63824 2007-02-05  Bruno Haible  <bruno@clisp.org>
63825
63826         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
63827         Optimize search in case of 1 delimiter.
63828
63829 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63830
63831         * lib/acl.h: Include sys/types.h before sys/acl.h.
63832
63833 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63834
63835         Merge upstream fix for glibc bugzilla #3957:
63836
63837         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
63838
63839         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
63840         bit for RE_HAT_LISTS_NOT_NEWLINE.
63841         (build_charclass_op): Remove bogus comment.
63842
63843 2007-02-05  Simon Josefsson  <simon@josefsson.org>
63844
63845         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
63846
63847 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63848
63849         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
63850         * lib/memmem.c [!defined _LIBC]: Include config.h.
63851
63852 2007-02-04  Bruno Haible  <bruno@clisp.org>
63853
63854         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
63855         warning message.
63856
63857 2007-02-04  Bruno Haible  <bruno@clisp.org>
63858
63859         New module mbstok_r.
63860         * modules/mbstok_r: New file.
63861         * lib/mbstok_r.c: New file.
63862         * lib/string_.h (strtok_r): Change argument names to match the
63863         comments. Add a conditional link warning.
63864         (mbstok_r): New declaration.
63865         * m4/mbstok_r.m4: New file.
63866         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63867         GNULIB_MBSTOK_R.
63868         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
63869         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
63870
63871 2007-02-04  Bruno Haible  <bruno@clisp.org>
63872
63873         New module mbsspn.
63874         * modules/mbsspn: New file.
63875         * lib/mbsspn.c: New file.
63876         * lib/string_.h (strspn): Add a conditional link warning.
63877         (mbsspn): New declaration.
63878         * m4/mbsspn.m4: New file.
63879         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63880         GNULIB_MBSSPN.
63881         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
63882         * MODULES.html.sh (Internationalization functions): Add mbsspn.
63883
63884 2007-02-04  Bruno Haible  <bruno@clisp.org>
63885
63886         New module mbspbrk.
63887         * modules/mbspbrk: New file.
63888         * lib/mbspbrk.c: New file.
63889         * lib/string_.h (strpbrk): Add a conditional link warning.
63890         (mbspbrk): New declaration.
63891         * m4/mbspbrk.m4: New file.
63892         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63893         GNULIB_MBSPBRK.
63894         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
63895         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
63896
63897 2007-02-04  Bruno Haible  <bruno@clisp.org>
63898
63899         New module mbscspn.
63900         * modules/mbscspn: New file.
63901         * lib/mbscspn.c: New file.
63902         * lib/string_.h (strcspn): Add a conditional link warning.
63903         (mbscspn): New declaration.
63904         * m4/mbscspn.m4: New file.
63905         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63906         GNULIB_MBSCSPN.
63907         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
63908         * MODULES.html.sh (Internationalization functions): Add mbscspn.
63909
63910 2007-02-04  Bruno Haible  <bruno@clisp.org>
63911
63912         New module mbscasestr, reduced goal of strcasestr.
63913         * modules/mbscasestr: New file.
63914         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
63915         (mbscasestr): Renamed from strcasestr.
63916         * lib/strcasestr.c: Don't include mbuiter.h.
63917         (strcasestr): Remove support for multibyte locales.
63918         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
63919         Change the conditional link warning.
63920         (mbscasestr): New declaration.
63921         * m4/mbscasestr.m4: New file.
63922         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
63923         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
63924         REPLACE_STRCASESTR.
63925         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
63926         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63927         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63928         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
63929         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
63930         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63931         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
63932         (Depends-on): Remove mbuiter.
63933         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
63934
63935 2007-02-04  Bruno Haible  <bruno@clisp.org>
63936
63937         Simplify handling of strncasecmp.
63938         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
63939         the conditional link warning.
63940         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63941         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
63942         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
63943         * modules/strcase (configure.ac): Don't invoke
63944         gl_STRING_MODULE_INDICATOR.
63945         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
63946
63947 2007-02-04  Bruno Haible  <bruno@clisp.org>
63948
63949         New module mbscasecmp, reduced goal of strcasecmp.
63950         * modules/mbscasecmp: New file.
63951         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
63952         (mbscasecmp): Renamed from strcasecmp.
63953         * lib/strcasecmp.c: Don't include mbuiter.h.
63954         (strcasecmp): Remove support for multibyte locales.
63955         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
63956         Change the conditional link warning.
63957         (mbscasecmp): New declaration.
63958         * m4/mbscasecmp.m4: New file.
63959         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
63960         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
63961         REPLACE_STRCASECMP.
63962         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
63963         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63964         GNULIB_MBSCASECMP.
63965         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
63966         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
63967         * modules/strcase (Files): Remove m4/mbrtowc.m4.
63968         (Depends-on): Remove mbuiter.
63969         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
63970
63971 2007-02-04  Bruno Haible  <bruno@clisp.org>
63972
63973         New module mbsstr. Remove module strstr.
63974         * modules/mbsstr: New file.
63975         * modules/strstr: Remove file.
63976         * lib/mbsstr.c: Renamed from lib/strstr.c.
63977         (mbsstr): Renamed from strstr.
63978         * lib/string_.h (strstr): Remove declaration. Change the conditional
63979         link warning.
63980         (mbsstr): New declaration.
63981         * m4/mbsstr.m4: New file.
63982         * m4/strstr.m4: Remove file.
63983         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
63984         REPLACE_STRSTR.
63985         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
63986         Don't initialize GNULIB_STRSTR.
63987         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
63988         substitute GNULIB_STRSTR and REPLACE_STRSTR.
63989         * MODULES.html.sh (Internationalization functions): Add mbsstr.
63990         (Support for systems lacking ANSI C 89): Remove strstr.
63991
63992 2007-02-04  Bruno Haible  <bruno@clisp.org>
63993
63994         New module mbsrchr.
63995         * modules/mbsrchr: New file.
63996         * lib/mbsrchr.c: New file.
63997         * lib/string_.h (strrchr): Add a conditional link warning.
63998         (mbsrchr): New declaration.
63999         * m4/mbsrchr.m4: New file.
64000         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64001         GNULIB_MBSRCHR.
64002         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
64003         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
64004
64005 2007-02-04  Bruno Haible  <bruno@clisp.org>
64006
64007         New module mbschr.
64008         * modules/mbschr: New file.
64009         * lib/mbschr.c: New file.
64010         * lib/string_.h (strchr): Add a conditional link warning.
64011         (mbschr): New declaration.
64012         * m4/mbschr.m4: New file.
64013         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64014         GNULIB_MBSCHR.
64015         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
64016         * MODULES.html.sh (Internationalization functions): Add mbschr.
64017
64018 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
64019
64020         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
64021
64022         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
64023
64024 2007-02-04  Bruno Haible  <bruno@clisp.org>
64025
64026         New module description section 'configure.ac-early'.
64027         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
64028         (func_get_autoconf_early_snippet): New function.
64029         (func_import, func_create_testdir): Use it. Remove special cases for
64030         modules 'extensions' and 'lock'.
64031         * modules/extensions (configure.ac-early): Require
64032         gl_USE_SYSTEM_EXTENSIONS.
64033         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
64034
64035 2007-02-04  Bruno Haible  <bruno@clisp.org>
64036
64037         Make use of gcj-4.3's -fsource and -ftarget option.
64038         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
64039         and if so try the options -fsource and -ftarget.
64040         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
64041         source_version, ftarget_option, target_version arguments.
64042         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
64043         (is_envjavac_oldgcj_14_14_usable): Renamed from
64044         is_envjavac_gcj_14_14_usable.
64045         (is_envjavac_oldgcj_14_13_usable): Renamed from
64046         is_envjavac_gcj_14_13_usable.
64047         (is_gcj_present): Update.
64048         (is_gcj_43, is_gcj43_usable): New functions.
64049         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
64050         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
64051         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
64052         try the options -fsource and -ftarget.
64053
64054 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
64055
64056         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
64057         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
64058         larger value.
64059
64060 2007-02-03  Jim Meyering  <jim@meyering.net>
64061
64062         Give tools a better chance to allocate space for very large buffers.
64063         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
64064
64065         Make pwd and readlink work also when run with an unreadable parent dir
64066         on systems with openat support.
64067         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
64068         provided getcwd function, even when we have openat support.
64069         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
64070
64071 2007-02-02  Bruno Haible  <bruno@clisp.org>
64072
64073         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
64074         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
64075         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
64076         portability problems if one of these functions is only used on specific
64077         platforms.
64078         Reported by Paul Eggert.
64079
64080 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
64081
64082         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
64083         is causing more trouble than it's curing.
64084         * lib/regex_internal.h (__mempcpy): Remove.
64085         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
64086         (and make the code a tad smaller to boot).
64087         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
64088
64089 2007-02-02  Jim Meyering  <jim@meyering.net>
64090
64091         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
64092         section, not in the Makefile.am: one.
64093
64094 2007-02-02  Eric Blake  <ebb9@byu.net>
64095
64096         * lib/strchrnul.c: Always include config.h first.
64097
64098         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
64099         gnulib strstr is not necessary here.
64100
64101 2007-02-02  Simon Josefsson  <simon@josefsson.org>
64102
64103         * m4/socklen.m4: Fix typo.
64104
64105 2007-02-02  Eric Blake  <ebb9@byu.net>
64106
64107         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
64108         * modules/netinet_in (Makefile.am): Likewise.
64109
64110 2007-02-01  Bruno Haible  <bruno@clisp.org>
64111
64112         * lib/string_.h (GL_LINK_WARNING): New macro.
64113         (strcasecmp, strstr, strcasestr): If provided by the system,
64114         conditionally define as a macro that leads to a warning instead of to
64115         an error.
64116         (strncasecmp): Conditionally define as a macro that leads to a warning.
64117
64118 2007-02-01  Karl Berry  <karl@gnu.org>
64119
64120         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
64121
64122 2007-02-01  Bruno Haible  <bruno@clisp.org>
64123
64124         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
64125         renamings.
64126
64127 2007-02-01  Eric Blake  <ebb9@byu.net>
64128
64129         * modules/regex (Depends-on): Revert dependence on mempcpy.
64130         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
64131         module's definition of mempcpy.
64132         Reported by Paul Eggert.
64133
64134 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
64135
64136         * lib/string_.h: If the gnulib module XYZ is not present, undefine
64137         the symbol XYZ before redefining it.  This fixes a problem with
64138         programs that don't use XYZ, when compiled on systems that define
64139         XYZ to something else.
64140
64141 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
64142
64143         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
64144         occurs when "mkdir -m foo" creates a setgid directory that is (1)
64145         writeable to group or other and (2) is intended to have a special
64146         mode bit that is set or cleared.  In such a case, the directory
64147         should be neither group- nor other-writeable until the special
64148         mode bits are right.
64149
64150 2007-01-31  Eric Blake  <ebb9@byu.net>
64151
64152         * modules/mountlist (Depends-on): Add strstr.
64153
64154         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
64155         bug.
64156         * modules/string (Makefile.am): Remove redundant replacement.
64157         * modules/regex (Depends-on): Add mempcpy.
64158
64159 2007-01-31  Bruno Haible  <bruno@clisp.org>
64160
64161         New module description field 'Link'.
64162         * gnulib-tool (func_usage): Document --extract-link-directive.
64163         (sed_extract_prog): Recognize 'Link' directive.
64164         (func_get_link_directive): New function.
64165         (func_import): Show summary of link directives.
64166         Handle --extract-link-directive option.
64167         * modules/acl (Link): New section.
64168         * modules/clock-time (Link): New section.
64169         * modules/euidaccess (Link): New section.
64170         * modules/gettext (Link): New section.
64171         * modules/iconv (Link): New section.
64172         * modules/lock (Link): New section.
64173         * modules/nanosleep (Link): New section.
64174         * modules/readline (Link): New section.
64175
64176 2007-01-27  Bruno Haible  <bruno@clisp.org>
64177
64178         Enforce the use of gnulib modules for unportable <string.h> functions.
64179         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
64180         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
64181         (gl_HEADER_STRING_H_BODY): Require it.
64182         * lib/string_.h: If the gnulib module XYZ is not present, redefine
64183         the symbol XYZ to one that gives a link error.
64184         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
64185         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
64186         * modules/mempcpy (configure.ac): Likewise.
64187         * modules/memrchr (configure.ac): Likewise.
64188         * modules/stpcpy (configure.ac): Likewise.
64189         * modules/stpncpy (configure.ac): Likewise.
64190         * modules/strcase (configure.ac): Likewise.
64191         * modules/strcasestr (configure.ac): Likewise.
64192         * modules/strchrnul (configure.ac): Likewise.
64193         * modules/strdup (configure.ac): Likewise.
64194         * modules/strndup (configure.ac): Likewise.
64195         * modules/strnlen (configure.ac): Likewise.
64196         * modules/strpbrk (configure.ac): Likewise.
64197         * modules/strsep (configure.ac): Likewise.
64198         * modules/strstr (configure.ac): Likewise.
64199         * modules/strtok_r (configure.ac): Likewise.
64200
64201 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
64202
64203         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
64204
64205 2007-01-30  Jim Meyering  <jim@meyering.net>
64206
64207         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
64208
64209 2007-01-29  Bruno Haible  <bruno@clisp.org>
64210
64211         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
64212         * lib/execute.c: Likewise.
64213         * lib/pipe.c: Likewise.
64214         * lib/printf-args.h: Likewise.
64215         * lib/printf-args.c: Likewise.
64216         * lib/printf-parse.c: Likewise.
64217         * lib/vasnprintf.c: Likewise.
64218
64219 2007-01-29  Eric Blake  <ebb9@byu.net>
64220
64221         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
64222         declaration.
64223
64224 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
64225
64226         * lib/strptime.h (strptime): Use 'restrict' for args where
64227         POSIX requires this.
64228         * lib/strptime.c (strptime): Likewise.
64229         Change license notice from LGPL to GPL, since gnulib-tool will
64230         change this as needed.
64231         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
64232         defined.
64233         Include "strptime.h" first, to check interface.
64234         Do not #undef _LIBC and _NL_CURRENT.
64235         Do not include <stdlib.h>; no longer needed.
64236         Include "time_r.h" and declare ptime_locale_status
64237         only if _LIBC is not defined.
64238         (__P): Remove unused macro.
64239         (match_string): Bring back glibc version, but use it only if _LIBC
64240         is defined.
64241         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
64242         Remove unnecessary assertion and abort() call.
64243         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
64244         * m4/strptime.m4: Fix serial number comment.
64245         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
64246         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
64247         (Depends-on): Add time_r.
64248
64249 2007-01-29  Bruno Haible  <bruno@clisp.org>
64250
64251         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64252         strptime.
64253         * modules/strptime (Depends-on): Add stdbool.
64254         * lib/strptime.h: Include <time.h> always. Add comments.
64255
64256 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64257
64258         * modules/strptime: New file.
64259         * lib/strptime.h: New file.
64260         * lib/strptime.c: New file.
64261         * m4/strptime.m4: New file.
64262
64263 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
64264
64265         * MODULES.html.sh: New module mpsort.
64266         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
64267
64268         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
64269         a circularity problem with HP-UX ia64 reported by Bob Proulx in
64270         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
64271         All uses changed.
64272         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
64273         All uses changed.
64274         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
64275         to _Restrict_.
64276         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
64277         the parameter matches the prototype.
64278
64279 2007-01-28  Jim Meyering  <jim@meyering.net>
64280
64281         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
64282         sys/time.h here, reverting that part of the previous patch:
64283         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
64284
64285 2007-01-28  Bruno Haible  <bruno@clisp.org>
64286
64287         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
64288         value of $(SYS_TIME_H).
64289         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
64290         remove it conditionally, too. [added by Jim Meyering]
64291         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
64292         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64293         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
64294         GETTIMEOFDAY_REPLACEMENT to 1.
64295
64296 2007-01-28  Bruno Haible  <bruno@clisp.org>
64297
64298         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
64299         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
64300         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
64301         Set UNISTD_H instead of UNISTD_H2.
64302         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
64303
64304 2007-01-28  Bruno Haible  <bruno@clisp.org>
64305
64306         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
64307         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
64308
64309 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64310
64311         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
64312         (func_create_testdir): Ensure C locale for `grep' and `tr'
64313         character ranges.
64314         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
64315         ACLOCAL_AMFLAGS parsing state machine.
64316
64317 2007-01-27  Bruno Haible  <bruno@clisp.org>
64318
64319         * modules/unistr/base: Update.
64320
64321 2007-01-27  Bruno Haible  <bruno@clisp.org>
64322
64323         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
64324         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
64325         * modules/unistr/u32-mbtouc-unsafe: Renamed from
64326         modules/unistr/u32-mbtouc.
64327         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
64328         * lib/unistr.h: Update.
64329         * lib/linebreak.c: Update.
64330         * modules/unistr/u32-mbtouc: Renamed from
64331         modules/unistr/u32-mbtouc-safe.
64332         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
64333         * lib/unistr.h: Update.
64334         * lib/unistr/u32-to-u8.c: Update.
64335         * lib/unistr/u32-to-u16.c: Update.
64336
64337 2007-01-27  Bruno Haible  <bruno@clisp.org>
64338
64339         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
64340         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
64341         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
64342         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
64343         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
64344         * modules/unistr/u16-mbtouc-unsafe: Renamed from
64345         modules/unistr/u16-mbtouc.
64346         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
64347         * lib/unistr.h: Update.
64348         * lib/linebreak.c: Update.
64349         * modules/linebreak: Update.
64350         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
64351         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
64352         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
64353         * modules/unistr/u16-mbtouc: Renamed from
64354         modules/unistr/u16-mbtouc-safe.
64355         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
64356         * lib/unistr.h: Update.
64357         * lib/unistr/u16-to-u8.c: Update.
64358         * modules/unistr/u16-to-u8: Update.
64359         * lib/unistr/u16-to-u32.c: Update.
64360         * modules/unistr/u16-to-u32: Update.
64361
64362 2007-01-27  Bruno Haible  <bruno@clisp.org>
64363
64364         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
64365         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
64366         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
64367         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
64368         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
64369         * modules/unistr/u8-mbtouc-unsafe: Renamed from
64370         modules/unistr/u8-mbtouc.
64371         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
64372         * lib/unistr.h: Update.
64373         * lib/striconveh.c: Update.
64374         * modules/striconveh: Update.
64375         * lib/linebreak.c: Update.
64376         * modules/linebreak: Update.
64377         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
64378         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
64379         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
64380         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
64381         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
64382         * lib/unistr.h: Update.
64383         * lib/striconveh.c: Update.
64384         * modules/striconveh: Update.
64385         * lib/unistr/u8-to-u16.c: Update.
64386         * modules/unistr/u8-to-u16: Update.
64387         * lib/unistr/u8-to-u32.c: Update.
64388         * modules/unistr/u8-to-u32: Update.
64389
64390 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64391
64392         Sync from Libtool.
64393         * lib/argz.c: Do not include strings.h nor memory.h, include
64394         string.h unconditionally.  Patch by Simon Josefsson.
64395
64396 2007-01-27  Bruno Haible  <bruno@clisp.org>
64397
64398         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
64399         from gl_HEADER_STRING_H_BODY.
64400         (gl_HEADER_STRING_H_BODY): Require it.
64401         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
64402         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
64403         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
64404         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
64405         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64406         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
64407         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
64408         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
64409         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
64410         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
64411         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
64412         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
64413         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
64414         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
64415         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64416
64417 2007-01-27  Bruno Haible  <bruno@clisp.org>
64418
64419         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
64420         check_PROGRAMS into noinst_PROGRAMS.
64421         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
64422         check_PROGRAMS in this case.
64423         (func_import): Set for_test to false.
64424         (func_create_testdir): Set for_test to true.
64425
64426 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
64427             Bruno Haible  <bruno@clisp.org>
64428
64429         * modules/strcasestr (Files): Remove lib/strcasestr.h.
64430         (Depends-on): Add string.
64431         (Includes): Use <string.h> instead of strcasestr.h.
64432         * modules/string (Makefile.am): Also substitute the value of
64433         REPLACE_STRCASESTR.
64434         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
64435         assume strcasestr is declared in <string.h> not <strings.h>. Also
64436         set REPLACE_STRCASESTR.
64437         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
64438         REPLACE_STRCASESTR.
64439         * lib/strcasestr.h: Remove file.
64440         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
64441         * lib/string_.h (strcasestr): New declaration.
64442
64443 2007-01-27  Bruno Haible  <bruno@clisp.org>
64444
64445         * lib/string_.h: Use 'extern'.
64446
64447 2007-01-27  Jim Meyering  <jim@meyering.net>
64448
64449         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
64450         of set-but-not-used local, "q".
64451
64452         * lib/mempcpy.c: Include <config.h> before <string.h>.
64453         This fixes a compilation error on HP-UX, due to the system's
64454         "restrict"-using mempcpy prototype.
64455
64456 2007-01-26  Bruno Haible  <bruno@clisp.org>
64457
64458         Small optimization.
64459         * lib/javacomp.c: Include c-strstr.h.
64460          (is_envjavac_gcj): Use c_strstr instead of strstr.
64461         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
64462
64463 2007-01-26  Bruno Haible  <bruno@clisp.org>
64464
64465         * MODULES.html.sh (Unicode string functions): Add the new modules.
64466
64467         * modules/uniconv/u32-strconv-to-locale: New file.
64468         * lib/uniconv/u32-strconv-to-locale.c: New file.
64469
64470         * modules/uniconv/u16-strconv-to-locale: New file.
64471         * lib/uniconv/u16-strconv-to-locale.c: New file.
64472
64473         * modules/uniconv/u8-strconv-to-locale: New file.
64474         * lib/uniconv/u8-strconv-to-locale.c: New file.
64475
64476         * modules/uniconv/u32-strconv-from-locale: New file.
64477         * lib/uniconv/u32-strconv-from-locale.c: New file.
64478
64479         * modules/uniconv/u16-strconv-from-locale: New file.
64480         * lib/uniconv/u16-strconv-from-locale.c: New file.
64481
64482         * modules/uniconv/u8-strconv-from-locale: New file.
64483         * lib/uniconv/u8-strconv-from-locale.c: New file.
64484
64485         * modules/uniconv/u32-strconv-to-enc: New file.
64486         * lib/uniconv/u32-strconv-to-enc.c: New file.
64487         * modules/uniconv/u32-strconv-to-enc-tests: New file.
64488         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
64489
64490         * modules/uniconv/u16-strconv-to-enc: New file.
64491         * lib/uniconv/u16-strconv-to-enc.c: New file.
64492         * lib/uniconv/u-strconv-to-enc.h: New file.
64493         * modules/uniconv/u16-strconv-to-enc-tests: New file.
64494         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
64495
64496         * modules/uniconv/u8-strconv-to-enc: New file.
64497         * lib/uniconv/u8-strconv-to-enc.c: New file.
64498         * modules/uniconv/u8-strconv-to-enc-tests: New file.
64499         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
64500
64501         * modules/uniconv/u32-strconv-from-enc: New file.
64502         * lib/uniconv/u32-strconv-from-enc.c: New file.
64503         * modules/uniconv/u32-strconv-from-enc-tests: New file.
64504         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
64505
64506         * modules/uniconv/u16-strconv-from-enc: New file.
64507         * lib/uniconv/u16-strconv-from-enc.c: New file.
64508         * modules/uniconv/u16-strconv-from-enc-tests: New file.
64509         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
64510
64511         * modules/uniconv/u8-strconv-from-enc: New file.
64512         * lib/uniconv/u8-strconv-from-enc.c: New file.
64513         * lib/uniconv/u-strconv-from-enc.h: New file.
64514         * modules/uniconv/u8-strconv-from-enc-tests: New file.
64515         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
64516
64517         * modules/uniconv/u32-conv-from-enc: New file.
64518         * lib/uniconv/u32-conv-from-enc.c: New file.
64519         * modules/uniconv/u32-conv-from-enc-tests: New file.
64520         * tests/uniconv/test-u32-conv-from-enc.c: New file.
64521
64522         * modules/uniconv/u16-conv-from-enc: New file.
64523         * lib/uniconv/u16-conv-from-enc.c: New file.
64524         * lib/uniconv/u-conv-from-enc.h: New file.
64525         * modules/uniconv/u16-conv-from-enc-tests: New file.
64526         * tests/uniconv/test-u16-conv-from-enc.c: New file.
64527
64528         * modules/uniconv/u8-conv-from-enc: New file.
64529         * lib/uniconv/u8-conv-from-enc.c: New file.
64530         * modules/uniconv/u8-conv-from-enc-tests: New file.
64531         * tests/uniconv/test-u8-conv-from-enc.c: New file.
64532
64533         * modules/uniconv/base: New file.
64534         * lib/uniconv.h: New file.
64535
64536 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
64537
64538         * doc/gnulib-tool.texi (Initial import): Update to match current
64539         behavior with strdup module.
64540         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
64541         * lib/memmem.h: Remove; all uses removed.  This is now done
64542         by <string.h>.
64543         * lib/mempcpy.h: Likewise.
64544         * lib/memrchr.h: Likewise.
64545         * lib/stpcpy.h: Likewise.
64546         * lib/stpncpy.h: Likewise.
64547         * lib/strcase.h: Likewise.
64548         * lib/strchrnul.h: Likewise.
64549         * lib/strdup.h: Likewise.
64550         * lib/strndup.h: Likewise.
64551         * lib/strnlen.h: Likewise.
64552         * lib/strpbrk.h: Likewise.
64553         * lib/strsep.h: Likewise.
64554         * lib/strstr.h: Likewise.
64555         * lib/strtok_r.h: Likewise.
64556         * lib/string_.h: New file.
64557         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
64558         Rely on <string.h> instead.
64559         * lib/canon-host.c: Likewise.
64560         * lib/chdir-long.c: Likewise.
64561         * lib/concatpath.c: Likewise.
64562         * lib/exclude.c: Likewise.
64563         * lib/fchdir.c: Likewise.
64564         * lib/getaddrinfo.c: Likewise.
64565         * lib/getcwd.c: Likewise.
64566         * lib/getsubopt.c: Likewise.
64567         * lib/glob.c: Likewise.
64568         * lib/hard-locale.c: Likewise.
64569         * lib/iconvme.c: Likewise.
64570         * lib/javacomp.c: Likewise.
64571         * lib/mempcpy.c: Likewise.
64572         * lib/memrchr.c: Likewise.
64573         * lib/regex_internal.h: Likewise.
64574         * lib/stpncpy.c: Likewise.
64575         * lib/strcasecmp.c: Likewise.
64576         * lib/strchrnul.c: Likewise.
64577         * lib/strdup.c: Likewise.
64578         * lib/striconv.c: Likewise.
64579         * lib/striconveh.c: Likewise.
64580         * lib/striconveha.c: Likewise.
64581         * lib/strncasecmp.c: Likewise.
64582         * lib/strndup.c: Likewise.
64583         * lib/strnlen.c: Likewise.
64584         * lib/strsep.c: Likewise.
64585         * lib/strstr.c: Likewise.
64586         * lib/strtok_r.c: Likewise.
64587         * lib/userspec.c: Likewise.
64588         * lib/w32spawn.h: Likewise.
64589         * lib/xstrndup.c: Likewise.
64590         * lib/mountlist.c (strstr): Remove decl.
64591         * m4/string_h.m4: New file.
64592         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
64593         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
64594         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
64595         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
64596         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
64597         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
64598         Set REPLACE_STRCASECMP if necessary.
64599         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
64600         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
64601         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
64602         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
64603         HAVE_DECL_STRDUP if necessary.
64604         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
64605         since gl_FUNC_STRNDUP does that now.
64606         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
64607         Check for decl here...
64608         (gl_PREREQ_STRNLEN): ... not here.
64609         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
64610         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
64611         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
64612         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
64613         necessary.
64614         * modules/string: New file.
64615         * modules/memmem (Files): Remove special-purpose include file.
64616         (Depends-on): Add string.
64617         (Include): Include <string.h>, not the removed file.
64618         * modules/mempcpy: Likewise.
64619         * modules/memrchr: Likewise.
64620         * modules/stpcpy: Likewise.
64621         * modules/stpncpy: Likewise.
64622         * modules/strcase: Likewise.
64623         * modules/strchrnul: Likewise.
64624         * modules/strdup: Likewise.
64625         * modules/strndup: Likewise.
64626         * modules/strnlen: Likewise.
64627         * modules/strpbrk: Likewise.
64628         * modules/strsep: Likewise.
64629         * modules/strstr: Likewise.
64630         * modules/strtok_r: Likewise.
64631         * tests/test-dirname.c: Don't include "strdup.h", since
64632         <string.h> now suffices.
64633         * tests/test-memmem.c: Don't include "memmem.h", since
64634         <string.h> now suffices.
64635
64636 2007-01-25  Bruno Haible  <bruno@clisp.org>
64637
64638         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
64639         *resultp is 0.
64640
64641         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
64642         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
64643         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
64644         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
64645
64646         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
64647         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
64648         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
64649         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
64650         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
64651         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
64652
64653 2007-01-24  Bruno Haible  <bruno@clisp.org>
64654
64655         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
64656         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
64657         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
64658         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
64659         gl_FUNC_FTS_CORE.
64660         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
64661         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
64662         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64663         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
64664         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
64665         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
64666         gl_FUNC_FCHOWNAT.
64667         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
64668         gl_FUNC_STRFTIME.
64669         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
64670         Reported by Ralf Wildenhues.
64671
64672 2007-01-24  Bruno Haible  <bruno@clisp.org>
64673
64674         Drop AC_REQUIRE calls that are redundant with the module dependencies.
64675         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
64676         gl_GETADDRINFO.
64677         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
64678         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
64679         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
64680
64681 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
64682
64683         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
64684         Don't use 'exit'; just return from 'main'.
64685         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
64686
64687         * lib/fnmatch_.h: Readjust white space and comments to match
64688         glibc, to avoid spurious diffs.
64689
64690 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64691
64692         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
64693         2004-12-01 change by Jakub Jelinek, since this code won't compile
64694         if !LIBC.  Problem reported by Bob Proulx.
64695
64696 2007-01-23  Bruno Haible  <bruno@clisp.org>
64697
64698         * lib/striconveh.c: Include c-strcaseeq.h.
64699         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
64700         * modules/striconveh (Depends-on): Add c-strcaseeq.
64701
64702 2007-01-23  Bruno Haible  <bruno@clisp.org>
64703
64704         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
64705
64706         * modules/c-strcaseeq: New file.
64707         * lib/c-strcaseeq.h: New file.
64708
64709         * modules/streq: New file.
64710         * lib/streq.h: New file.
64711
64712 2007-01-23  Bruno Haible  <bruno@clisp.org>
64713
64714         * modules/striconveha-tests: New file.
64715         * tests/test-striconveha.c: New file.
64716
64717         * lib/striconveha.h: Include <stdbool.h>.
64718         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
64719         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
64720         (mem_iconveha_notranslit): Renamed from mem_iconveha.
64721         (mem_iconveha): New function.
64722         (str_iconveha_notranslit): Renamed from str_iconveha.
64723         (str_iconveha): New function.
64724         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
64725         c-strcase.
64726
64727 2007-01-23  Bruno Haible  <bruno@clisp.org>
64728
64729         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
64730         encodings without forgiving before trying any encoding with handler.
64731         (str_iconveha): Try all encodings without forgiving before trying any
64732         encoding with handler.
64733
64734 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64735
64736         Import the following changes from libc.
64737
64738         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64739
64740         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
64741
64742         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
64743
64744         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
64745         normal_bracket label.
64746
64747         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
64748
64749         [BZ #361]
64750         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
64751         to normal_bracket after fetching the next character.
64752
64753 2007-01-22  Bruno Haible  <bruno@clisp.org>
64754
64755         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
64756         argument.
64757         * lib/striconveh.c (iconv_carefully_1): New function.
64758         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
64759         argument.
64760         (str_cd_iconveh): Update.
64761         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
64762         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
64763         * tests/test-striconveh.c (MAGIC): New macro.
64764         (new_offsets): New function.
64765         (main): Test call with and without offsets.
64766
64767 2007-01-22  Bruno Haible  <bruno@clisp.org>
64768
64769         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
64770         * modules/sys_select (Makefile.am): Likewise.
64771         * modules/sys_socket (Makefile.am): Likewise.
64772         * modules/sys_time (Makefile.am): Likewise.
64773
64774 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
64775
64776         * modules/gettimeofday (License): Change from GPL to LGPL, since
64777         gettimeofday is a library function.
64778
64779 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64780
64781         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
64782
64783 2007-01-21  Bruno Haible  <bruno@clisp.org>
64784
64785         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
64786
64787 2007-01-21  Bruno Haible  <bruno@clisp.org>
64788
64789         * modules/striconveha: New file.
64790         * lib/striconveha.h: New file.
64791         * lib/striconveha.c: New file.
64792         * MODULES.html.sh (Internationalization functions): Add striconveha.
64793         * lib/striconv.c (str_iconv): Optimize the case of an empty input
64794         string.
64795         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
64796
64797 2007-01-21  Bruno Haible  <bruno@clisp.org>
64798
64799         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
64800         * lib/striconveh.c (str_iconveh): Likewise.
64801
64802 2007-01-21  Bruno Haible  <bruno@clisp.org>
64803
64804         * lib/striconveh.h (mem_iconveh): New declaration.
64805         * lib/striconveh.c (mem_iconveh): New function.
64806         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
64807
64808 2007-01-21  Bruno Haible  <bruno@clisp.org>
64809
64810         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
64811
64812         * lib/striconveh.h (mem_cd_iconveh): Change specification.
64813         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
64814         original result buffer.
64815         (str_cd_iconveh): Update.
64816         * tests/test-striconveh.c (main): Update.
64817
64818         * lib/striconv.h (mem_cd_iconv): Change specification.
64819         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
64820         result buffer.
64821         (str_cd_iconv): Update.
64822         * tests/test-striconv.c (main): Update.
64823
64824 2007-01-21  Bruno Haible  <bruno@clisp.org>
64825
64826         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
64827
64828 2007-01-20  Jim Meyering  <jim@meyering.net>
64829
64830         * lib/userspec.c (parse_with_separator): If a user or group string
64831         starts with "+", skip the corresponding name-to-ID look-up, since
64832         such a look-up must fail: user and group names may not include "+".
64833
64834 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
64835
64836         * lib/poll.c: Include sys/time.h and time.h unconditionally,
64837         since we now assume the sys_time module.
64838         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
64839         check for sys/time.h; no longer needed.
64840         * modules/poll (Depends-on): Depend on sys_time.
64841
64842 2007-01-18  Bruno Haible  <bruno@clisp.org>
64843
64844         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
64845         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64846
64847         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
64848         gettimeofday.
64849
64850         * tests/test-gettimeofday.c: Include <time.h>.
64851         (dummy): Remove variable.
64852
64853         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
64854         gl_HEADER_SYS_TIME_H.
64855         (gl_HEADER_SYS_TIME_H): New macro.
64856
64857         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
64858         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64859         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
64860         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
64861         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64862         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
64863         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
64864         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64865         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
64866         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
64867         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64868
64869         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
64870         last change; it caused a compilation error when cross-compiling to
64871         Cygwin.
64872
64873 2007-01-18  Jim Meyering  <jim@meyering.net>
64874
64875         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
64876         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
64877         than the race-prone "test -d sys || mkdir sys".
64878         (configure.ac): Use AC_PROG_MKDIR_P.
64879         * modules/sys_select: Likewise.
64880         * modules/sys_socket: Likewise.
64881         * modules/sys_time: Likewise.
64882
64883 2007-01-18  Eric Blake  <ebb9@byu.net>
64884
64885         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
64886         replace gettimeofday.
64887         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
64888         name, to avoid infinite recursion.
64889
64890 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
64891
64892         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
64893         module sys_time.
64894         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
64895         assume timespec.h defines struct timeval.
64896         * lib/settime.c: Likewise.
64897         * lib/utimens.c: Likewise.
64898         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
64899         since we now assume the gettimeofday module.
64900         * lib/tempname.c (__gen_tempname): Likewise.
64901         * lib/gettimeofday.h: Remove.
64902         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
64903         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
64904         Include <time.h>, for 'time()'.
64905         (localtime_buffer_addr): Also use this workaround if
64906         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
64907         to simplify the uses.  All uses changed.
64908         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
64909         that #undef is inside {}, and 'const' follows type name consistently.
64910         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
64911         (gettimeofday): Do not use the maximum possible value for
64912         tv->tv_usec, since that might break usages other than ls.c.
64913         Instead, we'll leave ls.c alone.  This undoes today's patch
64914         by Bruno.  Add a compile-time warning for 1s-clock resolution;
64915         we've never observed the problem but might as well keep the
64916         canary.
64917         * lib/nanosleep.c: Include timespec.h first, for interface check.
64918         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
64919         now assume the sys_time module.
64920         * lib/tempname.c: Likewise.
64921         * lib/timespec.h: Likewise.
64922         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
64923         needed.
64924         * lib/strftime.c: Likewise.
64925         * lib/timespec.h: Likewise.
64926         * lib/posixtm.c: Include posixtm.h first, for interface check.
64927         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
64928         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
64929         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
64930         * lib/sys_time_.h: New file.
64931         * lib/timespec.h (struct timespec): Use long int, not long.
64932         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64933         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
64934         Remove obsolescent call to AC_HEADER_TIME.
64935         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
64936         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64937         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64938         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
64939         Likewise.
64940         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
64941         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
64942         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
64943         into the sys_time module.  Check for gettimeofday just once.
64944         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
64945         for gettimeofday signature to just check the signature.  Merely
64946         compile it, since linking doesn't test signature.  Improve test for
64947         whether gettimeofday.o is actually needed.
64948         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
64949         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
64950         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
64951         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64952         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
64953         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
64954         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
64955         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
64956         than worrying about sys/time.h.
64957         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64958         Don't bother worrying about TIME_WITH_SYS_TIME.
64959         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
64960         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
64961         * m4/sys_time_h.m4: New file.
64962         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
64963         Don't include sys/time.h.  Return from main rather than exiting.
64964         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
64965         all uses changed.
64966         * modules/gethrxtime (Depends-on): Add sys_time.
64967         * modules/gettime (Depends-on): Likewise.
64968         * modules/gettimeofday (Depends-on): Likewise.
64969         * modules/nanosleep (Depends-on): Likewise.
64970         * modules/settime (Depends-on): Likewise.
64971         * modules/tempname (Depends-on): Likewise.
64972         * modules/utimens (Depends-on): Likewise.
64973         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
64974         (Include): Change back to <sys/time.h>.
64975         (Maintainer): Add self.
64976         * modules/sys_time: New file.
64977         * modules/tempname (Depends-on): Add gettimeofday.
64978         * tests/test-gettimeofday.c: Include <sys/time.h>
64979         rather than gettimeofday.h.
64980
64981 2007-01-17  Bruno Haible  <bruno@clisp.org>
64982
64983         * gnulib-tool (func_get_license): Revert last patch. Instead, let
64984         the license default to GPL.
64985         (func_create_testdir): Don't complain if a module is LGPL and its
64986         tests module depends on GPLed modules.
64987
64988 2007-01-17  Bruno Haible  <bruno@clisp.org>
64989
64990         * lib/gettimeofday.c (gettimeofday): Add code for the case
64991         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
64992         maximum possible value for tv->tv_usec, rather than the minimum one.
64993
64994 2005-10-08  Martin Lambers  <marlam@marlam.de>
64995 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64996 2007-01-16  Bruno Haible  <bruno@clisp.org>
64997
64998         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
64999         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
65000         gl_FUNC_GETTIMEOFDAY.
65001         (Include): Add gettimeofday.h.
65002         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
65003         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
65004         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
65005         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
65006         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
65007         * lib/gettimeofday.h: New file.
65008         * lib/gettimeofday.c: Include <sys/timeb.h>.
65009         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
65010         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65011         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
65012         fall back on time().
65013
65014         * tests/test-gettimeofday.c: New file.
65015         * modules/gettimeofday-tests: New file.
65016
65017 2007-01-16  Eric Blake  <ebb9@byu.net>
65018
65019         * modules/fnmatch (Depends-on): Depend on wchar.
65020         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
65021         * m4/fnmatch.m4: Likewise.
65022         * modules/mbchar (Makefile.am): Assume <wchar.h>.
65023         * m4/mbchar.m4: Likewise.
65024         * modules/mbswidth (Depends-on): Depend on wchar.
65025         * lib/mbswidth.c: Assume <wchar.h>.
65026         * m4/mbswidth.m4: Likewise.
65027         * modules/quotearg (Depends-on): Depend on wchar.
65028         * lib/quotearg.c: Assume <wchar.h>.
65029         * m4/quotearg.m4: Likewise.
65030         * modules/regex (Depends-on): Depend on wchar.
65031         * lib/regex_internal.h: Assume <wchar.h>.
65032         * m4/regex.m4: Likewise.
65033         * modules/stdint (Depends-on): Depend on wchar.
65034         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
65035         * m4/stdint.m4: Likewise.
65036         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
65037         * modules/strftime (Depends-on): Depend on wchar.
65038         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
65039         * modules/strtol (Depends-on): Depend on wchar.
65040         * lib/strtol.c: Assume <wchar.h>.
65041         * modules/wcwidth (Depends-on): Depend on wchar.
65042         * lib/wcwidth.h: Assume <wchar.h>.
65043         * m4/wcwidth.m4: Likewise.
65044
65045 2007-01-16  Bruno Haible  <bruno@clisp.org>
65046
65047         * modules/csharpexec-script: New, created from...
65048         * modules/csharpexec: ... this.
65049
65050 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
65051
65052         * modules/javaexec-script: New, created from...
65053         * modules/javaexec: ... this.
65054
65055 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65056
65057         * modules/poll (Dependencies): Add sys_select.
65058
65059 2007-01-15  Jim Meyering  <jim@meyering.net>
65060
65061         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
65062         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
65063         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
65064         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
65065
65066 2007-01-15  Bruno Haible  <bruno@clisp.org>
65067
65068         * modules/striconveh: New file.
65069         * lib/striconveh.h: New file.
65070         * lib/striconveh.c: New file.
65071         * MODULES.html.sh (Internationalization functions): Add striconveh.
65072
65073         * modules/striconveh-tests: New file.
65074         * tests/test-striconveh.c: New file.
65075
65076 2007-01-15  Bruno Haible  <bruno@clisp.org>
65077
65078         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
65079         not from GNU libiconv or GNU libc.
65080
65081 2007-01-15  Bruno Haible  <bruno@clisp.org>
65082
65083         * doc/gnulib-intro.texi (Copyright): Explain the different license
65084         terms for module descriptions, autoconf macros, tests, documentation.
65085
65086 2007-01-14  Bruno Haible  <bruno@clisp.org>
65087
65088         * modules/striconv-tests: New file.
65089         * tests/test-striconv.c: New file.
65090
65091 2007-01-14  Bruno Haible  <bruno@clisp.org>
65092
65093         * modules/iconv-tests: New file.
65094         * tests/test-iconv.c: New file.
65095
65096 2007-01-14  Bruno Haible  <bruno@clisp.org>
65097
65098         * gnulib-tool (func_get_license): For test modules, use the license of
65099         the main module.
65100
65101 2007-01-14  Bruno Haible  <bruno@clisp.org>
65102
65103         * modules/iconv (Include): Clarify that <iconv.h> can only be included
65104         if iconv is found to exist.
65105
65106 2007-01-14  Bruno Haible  <bruno@clisp.org>
65107
65108         * modules/c-ctype-tests: New file.
65109         * tests/test-c-ctype.c: New file.
65110
65111 2007-01-14  Bruno Haible  <bruno@clisp.org>
65112
65113         * modules/binary-io-tests: New file.
65114         * tests/test-binary-io.sh: New file.
65115         * tests/test-binary-io.c: New file.
65116
65117 2007-01-14  Bruno Haible  <bruno@clisp.org>
65118
65119         * modules/array-oset-tests: New file.
65120         * tests/test-array_oset.c: New file.
65121
65122 2007-01-14  Bruno Haible  <bruno@clisp.org>
65123
65124         * modules/array-list-tests: New file.
65125         * tests/test-array_list.c: New file.
65126
65127 2007-01-14  Bruno Haible  <bruno@clisp.org>
65128
65129         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
65130         and make.
65131         Reported by Simon Josefsson in
65132         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
65133
65134 2007-01-14  Bruno Haible  <bruno@clisp.org>
65135
65136         * modules/allocsa-tests: New file.
65137         * tests/test-allocsa.c: New file.
65138
65139 2007-01-14  Bruno Haible  <bruno@clisp.org>
65140
65141         * modules/fchdir (Depends-on): Add absolute-header.
65142         * modules/unistd (Depends-on): Likewise.
65143
65144 2006-12-30  Bruno Haible  <bruno@clisp.org>
65145
65146         * modules/fchdir: New file.
65147         * modules/unistd (Files): Add lib/unistd_.h.
65148         (Makefile.am): Generate unistd.h from unistd_.h.
65149         * lib/fchdir.c: New file.
65150         * lib/dirent_.h: New file.
65151         * lib/unistd_.h: New file.
65152         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
65153         * m4/fchdir.m4: New file.
65154         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
65155         (gl_HEADER_UNISTD): Invoke it.
65156         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
65157         function.
65158         * lib/backupfile.c (opendir, closedir): Undefine.
65159         * lib/chown.c (open, close): Undefine.
65160         * lib/clean-temp.c (open, close): Undefine.
65161         * lib/copy-file.c (open, close): Undefine.
65162         * lib/execute.c (open, close): Undefine.
65163         * lib/fsusage.c (open, close): Undefine.
65164         * lib/gc-gnulib.c (open, close): Undefine.
65165         * lib/getcwd.c (opendir, closedir): Undefine.
65166         * lib/glob.c (opendir, closedir): Undefine.
65167         * lib/javacomp.c (open, close): Undefine.
65168         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
65169         * lib/openat-proc.c (open, close): Undefine.
65170         * lib/pagealign_alloc.c (open, close): Undefine.
65171         * lib/pipe.c (open, close): Undefine.
65172         * lib/progreloc.c (open, close): Undefine.
65173         * lib/savedir.c (opendir, closedir): Undefine.
65174         * lib/utime.c (open, close): Undefine.
65175         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
65176
65177 2007-01-10  Bruno Haible  <bruno@clisp.org>
65178
65179         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
65180
65181 2007-01-12  Eric Blake  <ebb9@byu.net>
65182
65183         Provide a robust <wchar.h>.  Further simplifications are now
65184         possible in other modules, but not included here.
65185         * modules/wchar: New module.
65186         * m4/wchar.m4: New file.
65187         * lib/wchar_.h: Likewise.
65188         * modules/mbchar (Depends-on): Depend on wchar, as the first use
65189         of the new module.
65190         * MODULES.html.sh (Extended multibyte and wide character utilities):
65191         New section.
65192
65193 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
65194
65195         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
65196         to a reasonable default for memory allocation.
65197         (xreadlink): Don't allocate a huge buffer, to work around a buggy
65198         file system that reports garbage st_size values for symlinks.
65199         Problem reported by Liyang Hu.
65200
65201 2007-01-11  Simon Josefsson  <simon@josefsson.org>
65202
65203         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
65204         Emacs .#* auto-save files).
65205
65206 2007-01-11  Bruno Haible  <bruno@clisp.org>
65207
65208         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
65209         directory.
65210
65211 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65212
65213         Use @...@ consistently in lib/wctype_.h.
65214         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
65215         on it being set to 1 or 0.
65216         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
65217         go back to AC_SUBSTing it.
65218         * modules/wctype (Makefile.am): Undo previous change.
65219
65220 2007-01-10  Eric Blake  <ebb9@byu.net>
65221
65222         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
65223         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
65224         * modules/wctype (Makefile.am): Likewise.
65225         Reported by Chris McGuire.
65226
65227 2007-01-10  Jim Meyering  <jim@meyering.net>
65228
65229         fts.c: a small readability/maintainability improvement
65230         * lib/fts.c (fts_read): Make this code slightly more readable and
65231         maintainable by hoisting the "sp->fts_cur = p" assignments to
65232         immediately follow the statements that set P.  Derived from
65233         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
65234
65235 2007-01-10  Eric Blake  <ebb9@byu.net>
65236
65237         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
65238         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
65239         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65240         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
65241         Reported by Chris McGuire.
65242
65243 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65244
65245         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
65246         in sed script.
65247
65248 2007-01-09  Bruno Haible  <bruno@clisp.org>
65249
65250         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
65251         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
65252         variables.
65253         (func_module): Use them.
65254
65255 2007-01-09  Bruno Haible  <bruno@clisp.org>
65256
65257         * modules/unistr/base: New file.
65258         * lib/unistr.h: New file.
65259
65260         * modules/unistr/u8-to-u16: New file.
65261         * lib/unistr/u8-to-u16.c: New file.
65262
65263         * modules/unistr/u8-to-u32: New file.
65264         * lib/unistr/u8-to-u32.c: New file.
65265
65266         * modules/unistr/u16-to-u8: New file.
65267         * lib/unistr/u16-to-u8.c: New file.
65268
65269         * modules/unistr/u16-to-u32: New file.
65270         * lib/unistr/u16-to-u32.c: New file.
65271
65272         * modules/unistr/u32-to-u8: New file.
65273         * lib/unistr/u32-to-u8.c: New file.
65274
65275         * modules/unistr/u32-to-u16: New file.
65276         * lib/unistr/u32-to-u16.c: New file.
65277
65278         * modules/unistr/u8-check: New file.
65279         * modules/unistr/u16-check: New file.
65280         * modules/unistr/u32-check: New file.
65281         * lib/unistr/u8-check.c: New file.
65282         * lib/unistr/u16-check.c: New file.
65283         * lib/unistr/u32-check.c: New file.
65284
65285         * modules/unistr/u8-chr: New file.
65286         * modules/unistr/u16-chr: New file.
65287         * modules/unistr/u32-chr: New file.
65288         * lib/unistr/u8-chr.c: New file.
65289         * lib/unistr/u16-chr.c: New file.
65290         * lib/unistr/u32-chr.c: New file.
65291
65292         * modules/unistr/u8-cmp: New file.
65293         * modules/unistr/u16-cmp: New file.
65294         * modules/unistr/u32-cmp: New file.
65295         * lib/unistr/u8-cmp.c: New file.
65296         * lib/unistr/u16-cmp.c: New file.
65297         * lib/unistr/u32-cmp.c: New file.
65298
65299         * modules/unistr/u8-cpy: New file.
65300         * modules/unistr/u16-cpy: New file.
65301         * modules/unistr/u32-cpy: New file.
65302         * lib/unistr/u8-cpy.c: New file.
65303         * lib/unistr/u16-cpy.c: New file.
65304         * lib/unistr/u32-cpy.c: New file.
65305         * lib/unistr/u-cpy.h: New file.
65306
65307         * modules/unistr/u8-cpy-alloc: New file.
65308         * modules/unistr/u16-cpy-alloc: New file.
65309         * modules/unistr/u32-cpy-alloc: New file.
65310         * lib/unistr/u8-cpy-alloc.c: New file.
65311         * lib/unistr/u16-cpy-alloc.c: New file.
65312         * lib/unistr/u32-cpy-alloc.c: New file.
65313         * lib/unistr/u-cpy-alloc.h: New file.
65314
65315         * modules/unistr/u8-endswith: New file.
65316         * modules/unistr/u16-endswith: New file.
65317         * modules/unistr/u32-endswith: New file.
65318         * lib/unistr/u8-endswith.c: New file.
65319         * lib/unistr/u16-endswith.c: New file.
65320         * lib/unistr/u32-endswith.c: New file.
65321         * lib/unistr/u-endswith.h: New file.
65322
65323         * modules/unistr/u8-mblen: New file.
65324         * modules/unistr/u16-mblen: New file.
65325         * modules/unistr/u32-mblen: New file.
65326         * lib/unistr/u8-mblen.c: New file.
65327         * lib/unistr/u16-mblen.c: New file.
65328         * lib/unistr/u32-mblen.c: New file.
65329
65330         * modules/unistr/u8-mbtouc: New file.
65331         * modules/unistr/u16-mbtouc: New file.
65332         * modules/unistr/u32-mbtouc: New file.
65333         * lib/unistr/u8-mbtouc.c: New file.
65334         * lib/unistr/u16-mbtouc.c: New file.
65335         * lib/unistr/u32-mbtouc.c: New file.
65336
65337         * modules/unistr/u8-mbtouc-safe: New file.
65338         * modules/unistr/u16-mbtouc-safe: New file.
65339         * modules/unistr/u32-mbtouc-safe: New file.
65340         * lib/unistr/u8-mbtouc-safe.c: New file.
65341         * lib/unistr/u16-mbtouc-safe.c: New file.
65342         * lib/unistr/u32-mbtouc-safe.c: New file.
65343
65344         * modules/unistr/u8-move: New file.
65345         * modules/unistr/u16-move: New file.
65346         * modules/unistr/u32-move: New file.
65347         * lib/unistr/u8-move.c: New file.
65348         * lib/unistr/u16-move.c: New file.
65349         * lib/unistr/u32-move.c: New file.
65350         * lib/unistr/u-move.h: New file.
65351
65352         * modules/unistr/u8-next: New file.
65353         * modules/unistr/u16-next: New file.
65354         * modules/unistr/u32-next: New file.
65355         * lib/unistr/u8-next.c: New file.
65356         * lib/unistr/u16-next.c: New file.
65357         * lib/unistr/u32-next.c: New file.
65358
65359         * modules/unistr/u8-prev: New file.
65360         * modules/unistr/u16-prev: New file.
65361         * modules/unistr/u32-prev: New file.
65362         * lib/unistr/u8-prev.c: New file.
65363         * lib/unistr/u16-prev.c: New file.
65364         * lib/unistr/u32-prev.c: New file.
65365
65366         * modules/unistr/u8-set: New file.
65367         * modules/unistr/u16-set: New file.
65368         * modules/unistr/u32-set: New file.
65369         * lib/unistr/u8-set.c: New file.
65370         * lib/unistr/u16-set.c: New file.
65371         * lib/unistr/u32-set.c: New file.
65372         * lib/unistr/u-set.h: New file.
65373
65374         * modules/unistr/u8-startswith: New file.
65375         * modules/unistr/u16-startswith: New file.
65376         * modules/unistr/u32-startswith: New file.
65377         * lib/unistr/u8-startswith.c: New file.
65378         * lib/unistr/u16-startswith.c: New file.
65379         * lib/unistr/u32-startswith.c: New file.
65380         * lib/unistr/u-startswith.h: New file.
65381
65382         * modules/unistr/u8-stpcpy: New file.
65383         * modules/unistr/u16-stpcpy: New file.
65384         * modules/unistr/u32-stpcpy: New file.
65385         * lib/unistr/u8-stpcpy.c: New file.
65386         * lib/unistr/u16-stpcpy.c: New file.
65387         * lib/unistr/u32-stpcpy.c: New file.
65388         * lib/unistr/u-stpcpy.h: New file.
65389
65390         * modules/unistr/u8-stpncpy: New file.
65391         * modules/unistr/u16-stpncpy: New file.
65392         * modules/unistr/u32-stpncpy: New file.
65393         * lib/unistr/u8-stpncpy.c: New file.
65394         * lib/unistr/u16-stpncpy.c: New file.
65395         * lib/unistr/u32-stpncpy.c: New file.
65396         * lib/unistr/u-stpncpy.h: New file.
65397
65398         * modules/unistr/u8-strcat: New file.
65399         * modules/unistr/u16-strcat: New file.
65400         * modules/unistr/u32-strcat: New file.
65401         * lib/unistr/u8-strcat.c: New file.
65402         * lib/unistr/u16-strcat.c: New file.
65403         * lib/unistr/u32-strcat.c: New file.
65404         * lib/unistr/u-strcat.h: New file.
65405
65406         * modules/unistr/u8-strchr: New file.
65407         * modules/unistr/u16-strchr: New file.
65408         * modules/unistr/u32-strchr: New file.
65409         * lib/unistr/u8-strchr.c: New file.
65410         * lib/unistr/u16-strchr.c: New file.
65411         * lib/unistr/u32-strchr.c: New file.
65412
65413         * modules/unistr/u8-strcmp: New file.
65414         * modules/unistr/u16-strcmp: New file.
65415         * modules/unistr/u32-strcmp: New file.
65416         * lib/unistr/u8-strcmp.c: New file.
65417         * lib/unistr/u16-strcmp.c: New file.
65418         * lib/unistr/u32-strcmp.c: New file.
65419
65420         * modules/unistr/u8-strcpy: New file.
65421         * modules/unistr/u16-strcpy: New file.
65422         * modules/unistr/u32-strcpy: New file.
65423         * lib/unistr/u8-strcpy.c: New file.
65424         * lib/unistr/u16-strcpy.c: New file.
65425         * lib/unistr/u32-strcpy.c: New file.
65426         * lib/unistr/u-strcpy.h: New file.
65427
65428         * modules/unistr/u8-strcspn: New file.
65429         * modules/unistr/u16-strcspn: New file.
65430         * modules/unistr/u32-strcspn: New file.
65431         * lib/unistr/u8-strcspn.c: New file.
65432         * lib/unistr/u16-strcspn.c: New file.
65433         * lib/unistr/u32-strcspn.c: New file.
65434         * lib/unistr/u-strcspn.h: New file.
65435
65436         * modules/unistr/u8-strdup: New file.
65437         * modules/unistr/u16-strdup: New file.
65438         * modules/unistr/u32-strdup: New file.
65439         * lib/unistr/u8-strdup.c: New file.
65440         * lib/unistr/u16-strdup.c: New file.
65441         * lib/unistr/u32-strdup.c: New file.
65442         * lib/unistr/u-strdup.h: New file.
65443
65444         * modules/unistr/u8-strlen: New file.
65445         * modules/unistr/u16-strlen: New file.
65446         * modules/unistr/u32-strlen: New file.
65447         * lib/unistr/u8-strlen.c: New file.
65448         * lib/unistr/u16-strlen.c: New file.
65449         * lib/unistr/u32-strlen.c: New file.
65450         * lib/unistr/u-strlen.h: New file.
65451
65452         * modules/unistr/u8-strmblen: New file.
65453         * modules/unistr/u16-strmblen: New file.
65454         * modules/unistr/u32-strmblen: New file.
65455         * lib/unistr/u8-strmblen.c: New file.
65456         * lib/unistr/u16-strmblen.c: New file.
65457         * lib/unistr/u32-strmblen.c: New file.
65458
65459         * modules/unistr/u8-strmbtouc: New file.
65460         * modules/unistr/u16-strmbtouc: New file.
65461         * modules/unistr/u32-strmbtouc: New file.
65462         * lib/unistr/u8-strmbtouc.c: New file.
65463         * lib/unistr/u16-strmbtouc.c: New file.
65464         * lib/unistr/u32-strmbtouc.c: New file.
65465
65466         * modules/unistr/u8-strncat: New file.
65467         * modules/unistr/u16-strncat: New file.
65468         * modules/unistr/u32-strncat: New file.
65469         * lib/unistr/u8-strncat.c: New file.
65470         * lib/unistr/u16-strncat.c: New file.
65471         * lib/unistr/u32-strncat.c: New file.
65472         * lib/unistr/u-strncat.h: New file.
65473
65474         * modules/unistr/u8-strncmp: New file.
65475         * modules/unistr/u16-strncmp: New file.
65476         * modules/unistr/u32-strncmp: New file.
65477         * lib/unistr/u8-strncmp.c: New file.
65478         * lib/unistr/u16-strncmp.c: New file.
65479         * lib/unistr/u32-strncmp.c: New file.
65480
65481         * modules/unistr/u8-strncpy: New file.
65482         * modules/unistr/u16-strncpy: New file.
65483         * modules/unistr/u32-strncpy: New file.
65484         * lib/unistr/u8-strncpy.c: New file.
65485         * lib/unistr/u16-strncpy.c: New file.
65486         * lib/unistr/u32-strncpy.c: New file.
65487         * lib/unistr/u-strncpy.h: New file.
65488
65489         * modules/unistr/u8-strnlen: New file.
65490         * modules/unistr/u16-strnlen: New file.
65491         * modules/unistr/u32-strnlen: New file.
65492         * lib/unistr/u8-strnlen.c: New file.
65493         * lib/unistr/u16-strnlen.c: New file.
65494         * lib/unistr/u32-strnlen.c: New file.
65495         * lib/unistr/u-strnlen.h: New file.
65496
65497         * modules/unistr/u8-strpbrk: New file.
65498         * modules/unistr/u16-strpbrk: New file.
65499         * modules/unistr/u32-strpbrk: New file.
65500         * lib/unistr/u8-strpbrk.c: New file.
65501         * lib/unistr/u16-strpbrk.c: New file.
65502         * lib/unistr/u32-strpbrk.c: New file.
65503         * lib/unistr/u-strpbrk.h: New file.
65504
65505         * modules/unistr/u8-strrchr: New file.
65506         * modules/unistr/u16-strrchr: New file.
65507         * modules/unistr/u32-strrchr: New file.
65508         * lib/unistr/u8-strrchr.c: New file.
65509         * lib/unistr/u16-strrchr.c: New file.
65510         * lib/unistr/u32-strrchr.c: New file.
65511
65512         * modules/unistr/u8-strspn: New file.
65513         * modules/unistr/u16-strspn: New file.
65514         * modules/unistr/u32-strspn: New file.
65515         * lib/unistr/u8-strspn.c: New file.
65516         * lib/unistr/u16-strspn.c: New file.
65517         * lib/unistr/u32-strspn.c: New file.
65518         * lib/unistr/u-strspn.h: New file.
65519
65520         * modules/unistr/u8-strstr: New file.
65521         * modules/unistr/u16-strstr: New file.
65522         * modules/unistr/u32-strstr: New file.
65523         * lib/unistr/u8-strstr.c: New file.
65524         * lib/unistr/u16-strstr.c: New file.
65525         * lib/unistr/u32-strstr.c: New file.
65526         * lib/unistr/u-strstr.h: New file.
65527
65528         * modules/unistr/u8-strtok: New file.
65529         * modules/unistr/u16-strtok: New file.
65530         * modules/unistr/u32-strtok: New file.
65531         * lib/unistr/u8-strtok.c: New file.
65532         * lib/unistr/u16-strtok.c: New file.
65533         * lib/unistr/u32-strtok.c: New file.
65534         * lib/unistr/u-strtok.h: New file.
65535
65536         * modules/unistr/u8-uctomb: New file.
65537         * modules/unistr/u16-uctomb: New file.
65538         * modules/unistr/u32-uctomb: New file.
65539         * lib/unistr/u8-uctomb.c: New file.
65540         * lib/unistr/u16-uctomb.c: New file.
65541         * lib/unistr/u32-uctomb.c: New file.
65542
65543         * MODULES.html.sh (Unicode string functions): Add the new modules.
65544
65545 2007-01-08  Bruno Haible  <bruno@clisp.org>
65546
65547         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
65548         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
65549         subdirectories.
65550
65551 2007-01-08  Karl Berry  <karl@gnu.org>
65552
65553         * doc/error.texi: mention that main() fns must set program_name
65554         when progname is used.
65555
65556 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
65557
65558         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
65559         WCTYPE_H is empty, for the benefit of builds from non-distclean
65560         directories.  Problem reported by Eric Blake in
65561         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
65562
65563 2007-01-08  Bruno Haible  <bruno@clisp.org>
65564
65565         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
65566         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
65567         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
65568         PROVIDE_CANONICALIZE_FILENAME_MODE.
65569         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
65570
65571 2007-01-08  Bruno Haible  <bruno@clisp.org>
65572
65573         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
65574         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
65575         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
65576         * lib/fts.c: Likewise.
65577         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
65578
65579 2006-12-25  Bruno Haible  <bruno@clisp.org>
65580
65581         * modules/utf8-ucs4-safe: New file.
65582         * lib/utf8-ucs4-safe.h: New file.
65583         * lib/unistr/utf8-ucs4-safe.c: New file.
65584
65585         * modules/utf16-ucs4-safe: New file.
65586         * lib/utf16-ucs4-safe.h: New file.
65587         * lib/unistr/utf16-ucs4-safe.c: New file.
65588
65589         * MODULES.html.sh (Unicode string functions): Add the new modules.
65590
65591 2007-01-08  Bruno Haible  <bruno@clisp.org>
65592
65593         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
65594         (Depends-on): Add unitypes.
65595         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65596         (u8_mbtouc_aux): Move out to separate file.
65597         (u8_mbtouc): Use ucs4_t, uint8_t types.
65598         * lib/unistr/utf8-ucs4.c: New file.
65599
65600         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
65601         (Depends-on): Add unitypes.
65602         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65603         (u16_mbtouc_aux): Move out to separate file.
65604         (u16_mbtouc): Use ucs4_t, uint16_t types.
65605         * lib/unistr/utf16-ucs4.c: New file.
65606
65607         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
65608         (Depends-on): Add unitypes.
65609         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
65610         (u8_uctomb_aux): Move out to separate file.
65611         (u8_uctomb): Use ucs4_t, uint8_t types.
65612         * lib/unistr/ucs4-utf8.c: New file.
65613
65614         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
65615         (Depends-on): Add unitypes.
65616         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
65617         (u16_uctomb_aux): Move out to separate file.
65618         (u16_uctomb): Use ucs4_t, uint16_t types.
65619         * lib/unistr/ucs4-utf16.c: New file.
65620
65621 2006-12-25  Bruno Haible  <bruno@clisp.org>
65622
65623         * modules/unitypes: New file.
65624         * lib/unitypes.h: New file.
65625         * MODULES.html.sh (func_all_modules): New section "Unicode string
65626         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
65627         this section. Add unitypes.
65628
65629 2007-01-08  Bruno Haible  <bruno@clisp.org>
65630
65631         Avoid variable names that conflict with those from libtool.
65632         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
65633         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
65634         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
65635         library_names_spec to acl_library_names_spec, hardcode_* to
65636         acl_hardcode_*.
65637         Reported by Ralf Wildenhues.
65638
65639 2007-01-08  Bruno Haible  <bruno@clisp.org>
65640
65641         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
65642         definition.
65643         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
65644         definition.
65645         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
65646         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
65647         definition.
65648         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
65649         definition.
65650         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
65651         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
65652         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
65653         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
65654         definition.
65655         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
65656         definition.
65657         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
65658         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
65659         GC_USE_<algorithm>.
65660         * lib/gc-libgcrypt.c: Likewise.
65661         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
65662         * modules/gc-arctwo (configure.ac): Likewise.
65663         * modules/gc-des (configure.ac): Likewise.
65664         * modules/gc-hmac-md5 (configure.ac): Likewise.
65665         * modules/gc-hmac-sha1 (configure.ac): Likewise.
65666         * modules/gc-md2 (configure.ac): Likewise.
65667         * modules/gc-md4 (configure.ac): Likewise.
65668         * modules/gc-md5 (configure.ac): Likewise.
65669         * modules/gc-random (configure.ac): Likewise.
65670         * modules/gc-rijndael (configure.ac): Likewise.
65671         * modules/gc-sha1 (configure.ac): Likewise.
65672
65673 2007-01-08  Bruno Haible  <bruno@clisp.org>
65674
65675         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
65676         macro definition.
65677         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
65678         definition.
65679         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
65680         definition.
65681         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
65682         * modules/fcntl-safer (configure.ac): Likewise.
65683         * modules/fopen-safer (configure.ac): Likewise.
65684         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
65685         GNULIB_FWRITEERROR macro definition.
65686
65687 2007-01-08  Bruno Haible  <bruno@clisp.org>
65688
65689         * m4/gnulib-common.m4: New file.
65690         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
65691         (func_get_filelist): Add m4/gnulib-common.m4.
65692
65693 2007-01-08  Bruno Haible  <bruno@clisp.org>
65694
65695         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
65696         command.
65697
65698 2007-01-08  Jim Meyering  <jim@meyering.net>
65699
65700         Use a more robust test for a "can't happen" condition.
65701         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
65702         narrowed the st_size value.  Presuming the "can't happen" condition
65703         is true, that narrowing could conceivably convert an invalid st_size
65704         value into a valid one.  Instead, use a change based on Matthew
65705         Woehlke's original patch.
65706
65707         Slight readability improvement: use an assert-like macro
65708         in place of literal "abort ()" uses.
65709         * lib/fts.c (fts_assert): Define.
65710         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
65711         Use this macro instead of a bare 'abort'.
65712
65713 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
65714
65715         Don't worry about using IRIX 5.3's wctype.h broken definitions;
65716         simply work around them.
65717         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
65718         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
65719         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
65720         declaring.
65721         Don't bother to define as macros, since the standard doesn't require it.
65722         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
65723         longer worry about IRIX 5.3.
65724         (HAVE_WCTYPE_CTMP_BUG): Remove.
65725
65726 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65727
65728         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
65729         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
65730         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65731         Problems reported by Georg Schwarz for IRIX 5.3.
65732
65733         * gnulib-tool (autoconf_minversion): Take the maximum version number
65734         found, not the minimum.  Problem reported by James Youngman.
65735
65736 2007-01-03  Karl Berry  <karl@gnu.org>
65737
65738         * doc/error.texi: new file, explaining interaction with progname.
65739         * doc/gnulib.texi: include it.  Update copyright.
65740
65741 2007-01-03  Simon Josefsson  <simon@josefsson.org>
65742
65743         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
65744         AC_CANONICAL_HOST, to improve autobuild outputs.
65745
65746 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
65747             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65748
65749         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
65750         sockets, server sockets, and other file descriptors.  Count errors
65751         to compute the return value.  Reorder the code a bit to be easier
65752         to follow.  Don't set event bits that were not requested (except
65753         POLLERR and POLLHUP).
65754
65755 2007-01-01  Bruno Haible  <bruno@clisp.org>
65756
65757         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
65758
65759 2007-01-03  Jim Meyering  <jim@meyering.net>
65760
65761         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
65762
65763 2007-01-02  Bruno Haible  <bruno@clisp.org>
65764
65765         * modules/settime (Include): Require timespec.h.
65766         * modules/nanosleep (Include): Likewise.
65767
65768 2007-01-01  Bruno Haible  <bruno@clisp.org>
65769
65770         * gnulib-tool (func_emit_copyright_notice): Bump year.
65771         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
65772
65773 2007-01-01  Bruno Haible  <bruno@clisp.org>
65774
65775         Improve support for OpenBSD.
65776         * build-aux/config.rpath (libname_spec): Export.
65777         (library_names_spec): New variable. Export.
65778         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
65779         library_names_spec from the config.rpath output. Locate shared library
65780         through the name pattern in library_names_spec.
65781
65782 2007-01-01  Eric Blake  <ebb9@byu.net>
65783
65784         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
65785
65786 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
65787
65788         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
65789         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
65790         assume the C locale, and avoid an "eval" that could cause trouble.
65791         Problem with SORT reported by Bob Proulx.
65792
65793         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
65794         Define.  Trivial patch from Henning Nielsen Lund, originally
65795         sent to bug-grep@gnu.org today.
65796
65797 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
65798
65799         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
65800         struct stat.  Problem reported by Henning Nielsen Lund.
65801         * lib/acl.c: Include acl.h first, to check interface.  Don't
65802         bother to include sys/types.h and sys/stat.h again.
65803
65804 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65805
65806         Import the following change from libc; problem reported by
65807         Sven Verdoolaege.
65808
65809         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
65810
65811         [BZ #1373]
65812         * lib/argp.h: Remove __NTH for __argp_usage inline function.
65813
65814 2006-12-28  Jim Meyering  <jim@meyering.net>
65815
65816         * build-aux/announce-gen: Do not assume that the package
65817         builds any of tar.gz, tar.bz2, and .xdelta files.
65818         Suggestion from Simon Josefsson.
65819
65820 2006-12-28  Simon Josefsson  <simon@josefsson.org>
65821
65822         * modules/announce-gen: New file.
65823
65824 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
65825
65826         * lib/mbchar.h: Just include <wctype.h>; the wctype module
65827         handles its gotchas now.
65828         * lib/mbswidth.c: Likewise.
65829         * lib/wcwidth.h: Likewise.
65830         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
65831         and iswcntrl; the wctype module does this stuff now.
65832         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65833         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65834         * modules/mbchar (Depends-on): Add wctype.
65835         * modules/mbswidth (Depends-on): Likewise.
65836         * modules/wcwidth (Depends-on): Likewise.
65837
65838 2006-12-27  Eric Blake  <ebb9@byu.net>
65839
65840         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
65841         module uses more than what <wctype.h> is required to provide.
65842
65843 2006-12-26  Eric Blake  <ebb9@byu.net>
65844
65845         * gnulib-tool (sed_extract_prog): Avoid space-tab.
65846
65847 2006-12-26  Eric Blake  <ebb9@byu.net>
65848
65849         * modules/absolute-header: New module.
65850         * modules/fcntl (Depends-on): Depend on it.
65851         * modules/inttypes (Depends-on): Likewise.
65852         * modules/stdint (Depends-on): Likewise.
65853         * modules/sys_stat (Depends-on): Likewise.
65854         * modules/wctype (Depends-on): Likewise.
65855         * MODULES.html.sh (Support for building libraries and
65856         executables): Document it.
65857
65858 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
65859
65860         * gnulib-tool (SED): Remove, undoing previous change.
65861         The problem was that it broke coreutils on Solaris, because
65862         "sed --posix" leaked into a makefile.
65863         (sed): New alias, if 'alias' and GNU sed.
65864
65865 2006-12-24  Jim Meyering  <jim@meyering.net>
65866
65867         Work around an fchownat bug in glibc-2.4:
65868         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
65869         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
65870         in spite of the -P option.
65871         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
65872         New macros.
65873         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
65874         * modules/openat (Files): Add lib/fchownat.c.
65875         * lib/openat.c (fchownat): Don't define here.  Move to...
65876         * lib/fchownat.c: ...this new file.
65877
65878 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65879
65880         Fix bug reported by Bruno Haible in
65881         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
65882         where quotearg.c didn't compile on Mac OS X 10.2 because it
65883         lacks <wchar.h> and wint_t.
65884         * lib/wctype_.h (__wctype_wint_t): New type.
65885         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
65886         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
65887         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
65888         Arg is now of type __wctype_wint_t, not wint_t.
65889         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
65890         substitute HAVE_WINT_T.
65891         * modules/wctype (Files): Add m4/wint_t.m4.
65892         (wctype.h): Substitute HAVE_WINT_T.
65893
65894 2006-12-23  Bruno Haible  <bruno@clisp.org>
65895
65896         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
65897
65898 2006-12-23  Bruno Haible  <bruno@clisp.org>
65899
65900         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
65901         S_ISLNK.
65902         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
65903         mingw.
65904
65905 2006-12-22  Bruno Haible  <bruno@clisp.org>
65906
65907         * lib/copy-file.c: Include acl.h.
65908         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
65909         Close the file descriptors only after being done with copy_acl.
65910         * modules/copy-file (Depends-on): Add acl.
65911
65912 2006-12-22  Bruno Haible  <bruno@clisp.org>
65913
65914         * gnulib-tool (SED): New variable.
65915         Use $SED instead of sed everywhere.
65916
65917 2006-12-22  Bruno Haible  <bruno@clisp.org>
65918
65919         * modules/no-c++: New file.
65920         * m4/no-c++.m4: New file.
65921         * MODULES.html.sh (Support for building libraries and executables):
65922         Add no-c++.
65923
65924 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
65925
65926         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65927         Include <limits.h>, and use its INT_MAX to rewrite the
65928         j loop so that it does not overflow 'int'.  Problem reported by
65929         Ralf Wildenhues in
65930         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
65931         Play it safe by shifting left by 1 rather than multiplying by 2,
65932         as GCC is less likely to optimize this away when the value
65933         is signed (when it assumes overflow leads to undefined behavior).
65934         Also, don't assume time_t uses two's complement.
65935
65936 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
65937
65938         * MODULES.html.sh: New module wctype.
65939         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
65940         * lib/fnmatch.c: Don't bother to include <wchar.h> before
65941         <wctype.h>, since the new wctype module should fix this.
65942         * lib/quotearg.c: Include <wctype.h> unconditionally, since
65943         the wctype module should arrange for it.
65944         * lib/regex_internal.h: Likewise.
65945         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
65946         since the wctype module should handle this now.
65947         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
65948         * modules/fnmatch (Depends-on): Add wctype.
65949         * modules/quotearg (Depends-on): Likewise.
65950         * modules/regex (Depends-on): Likewise.
65951
65952 2006-12-19  Bruno Haible  <bruno@clisp.org>
65953
65954         * lib/strdup.h [C++]: Wrap definitions in extern "C".
65955         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
65956
65957 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65958
65959         * modules/savewd (Depends-on): Fix dependency on fcntl.
65960
65961 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65962
65963         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
65964         conforms to C99, rather than relying on the user's environment
65965         setting of STDINT_H.
65966
65967 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65968         and Eric Blake  <ebb9@byu.net>
65969
65970         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
65971         This is more consistent with the other defines here.
65972         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
65973         Port to z/OS.  Problem reported by Paul Gilmartin.
65974         Change local vars to use gl_ prefix rather than ac_.
65975         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
65976         with other defines.
65977         * modules/double-slash-root: New module.
65978         * modules/dirname (Files): Remove m4/double-slash-root.m4.
65979         (Depends-on): Add double-slash-root.
65980         * MODULES.html.sh (File system functions): Mention new module.
65981
65982 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
65983
65984         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
65985         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
65986         This is for the benefit of gzip, which doesn't do i18n.
65987
65988 2006-12-12  Jim Meyering  <jim@meyering.net>
65989
65990         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
65991         Reported by Andreas Schwab <schwab@suse.de>.
65992
65993 2006-12-12  Bruno Haible  <bruno@clisp.org>
65994
65995         Merge these changes.
65996         2006-09-05  Bruno Haible  <bruno@clisp.org>
65997         * lib/iconvme.c (iconv_string): No need to save and restore errno when
65998         iconv_alloc succeeded.
65999         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
66000         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
66001         test for " && dest " at the end - dest is always != NULL there. Call
66002         iconv with 4xNULL arguments initially, to reset the state. Call iconv
66003         with 2xNULL arguments, also to flush the state storage. Handle the
66004         IRIX iconv behaviour. Realloc the final result, to throw away unused
66005         memory.
66006
66007 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
66008
66009         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
66010         and fchmodat unconditionally, since glibc 2.4 has them.
66011         Problem reported by Arkadiusz Miskiewicz.
66012
66013 2006-12-10  Bruno Haible  <bruno@clisp.org>
66014
66015         * gnulib-tool (func_import): Show the include files only for those
66016         modules that are copied and specified.
66017         Reported by Karl Berry.
66018
66019 2006-12-08  Jim Meyering  <jim@meyering.net>
66020
66021         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
66022         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
66023
66024         * build-aux/announce-gen: Add two new options, both optional:
66025         --bootstrap-tools=TOOL_LIST
66026               a comma-separated list of tools, e.g.,
66027               autoconf,automake,bison,gnulib
66028         --gnulib-snapshot-date=DATE
66029               if gnulib is in the bootstrap tool list,
66030               then report this as the snapshot date.
66031               If not specified, use the current date/time.
66032               If you specify a date here, be sure it's UTC.
66033
66034 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66035
66036         * tests/test-argp-2.sh: Fix test to match actual output.
66037         (func_compare): Fix sed script to be portable.
66038
66039 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
66040
66041         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
66042         workaround for this case.  It is not autoconfigured now; offhand
66043         it's hard to see how to autoconfigure it.
66044
66045 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
66046
66047         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
66048         a directory that is about to be chowned.  Such a directory's
66049         initial file permissions should permit the owner only and this
66050         should not be changed until after the chown, since the group and
66051         other bits would be incorrect if they granted permission before
66052         the chown.
66053
66054         Fix porting problem for iswctype reported by Georg Schwarz in:
66055         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
66056         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
66057         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
66058         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
66059         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66060
66061 2006-12-03  Jim Meyering  <jim@meyering.net>
66062
66063         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
66064         p->fts_statp may not yet be defined.
66065         (fts_read): Instead, set it in the caller, once p->fts_statp is
66066         sure to be defined, and corresponds to a top-level directory.
66067         This bug made du -x fail.  Here's the coreutils test case:
66068         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
66069         Reported by Mike Frysinger.
66070
66071 2006-12-01  Jim Meyering  <jim@meyering.net>
66072
66073         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
66074         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
66075         Reported by Simon Josefsson.
66076
66077 2006-11-30  Jim Meyering  <jim@meyering.net>
66078
66079         * m4/warning.m4: Use the all-permissive copyright notice
66080         recommended by RMS (rather than LGPL).
66081         * m4/vararrays.m4: Likewise.
66082         * m4/flexmember.m4: Likewise.
66083
66084 2006-11-29  Bruno Haible  <bruno@clisp.org>
66085
66086         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66087         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
66088         using +=.
66089         Reported by Simon Josefsson <simon@josefsson.org>.
66090
66091 2006-11-28  James Youngman <jay@gnu.org>
66092
66093         * README: Advise users that they might find the bug-gnulib@gnu.org
66094         and autotools-announce@gnu.org mailing lists useful.
66095
66096 2006-11-28  Bruno Haible  <bruno@clisp.org>
66097
66098         * m4/ptrdiff_max.m4: Remove file.
66099
66100 2006-11-21  Bruno Haible  <bruno@clisp.org>
66101
66102         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
66103         _AC_COMPUTE_INT.
66104         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66105         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
66106         _AC_COMPUTE_INT.
66107         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66108         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
66109         _AC_COMPUTE_INT.
66110         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66111
66112 2006-11-28  Jim Meyering  <jim@meyering.net>
66113
66114         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
66115         warning from "gcc -Wshadow" about shadowing the builtin.
66116
66117 2006-11-27  Bruno Haible  <bruno@clisp.org>
66118
66119         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
66120         _AC_COMPUTE_INT.
66121         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66122
66123 2006-11-27  Bruno Haible  <bruno@clisp.org>
66124             Paul Eggert  <eggert@cs.ucla.edu>
66125
66126         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
66127
66128 2006-11-26  Bruno Haible  <bruno@clisp.org>
66129
66130         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66131         noinst_LTLIBRARIES.
66132
66133 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
66134             Bruno Haible  <bruno@clisp.org>
66135
66136         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
66137         if compiling with "gcc -ansi".
66138
66139 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
66140
66141         Fix some incompatibilities with gcc -ansi -pedantic.
66142         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
66143         if compiling pedantically with GCC, unless it's C99 or later.
66144         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
66145         it mishandles gcc -ansi -pedantic as well.
66146         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
66147         if gcc -pedantic.
66148         * lib/regexec.c (check_node_accept_bytes): Don't use auto
66149         initializers for struct if -pedantic, unless it's C99 or later.
66150
66151 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
66152
66153         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
66154         Don't close an fd more than once. Identical atimes indicate
66155         success, not failure.
66156
66157 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
66158
66159         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
66160
66161 2006-11-23  Jim Meyering  <jim@meyering.net>
66162
66163         * build-aux/announce-gen: New file.  From coreutils.
66164
66165 2006-11-22  Jim Meyering  <jim@meyering.net>
66166
66167         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
66168         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
66169         (fts_read): Use a temporary to narrow the overused st_size member
66170         before using it in a switch statement.  Reported by Matthew Woehlke.
66171
66172         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
66173         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
66174
66175 2006-11-20  Bruno Haible  <bruno@clisp.org>
66176
66177         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
66178         changequote instead of pairs of brackets.
66179         Reported by Andreas Schwab <schwab@suse.de>.
66180
66181 2006-11-21  Jim Meyering  <jim@meyering.net>
66182
66183         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
66184         so as to remain compatible with older compilers.
66185         Patch from Michael Deutschmann.
66186
66187 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66188
66189         * MODULES.html.sh (File system functions): Add openat.
66190
66191         * lib/openat.h (rpl_fstatat): New macro, if
66192         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
66193         (fstatat): Define to rpl_fstatat under the same conditions,
66194         unless COMPILING_FSTATAT.
66195         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
66196         seems to have the bug.
66197         * lib/fstatat.c: New file.
66198         * modules/openat (Files): Add it.
66199
66200 2006-11-20  Bruno Haible  <bruno@clisp.org>
66201
66202         * Makefile: New file.
66203
66204 2006-11-20  Jim Meyering  <jim@meyering.net>
66205
66206         The beginnings of syntax-related checks for gnulib.
66207         * lib/Makefile: New file.
66208         * lib/t-idcache: New script.  Ensure that the two halves of
66209         idcache.c stay in sync.
66210
66211         * lib/idcache.c: Adjust comments in user- and group- portions to
66212         be more accurate, and to be consistent with one another.
66213
66214 2006-11-20  Jim Meyering  <jim@meyering.net>
66215
66216         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
66217         continue using the flexible array member (thus, this module performs
66218         half as many malloc calls), with the addition that...
66219         (getgroup, getuser): Consistently record a non-match via an empty
66220         "name" string, and map an empty string match to a NULL return value.
66221         * modules/idcache (Depends-on): Re-add flexmember.
66222
66223         * lib/idcache.c (getuser): Remove all uses of the register keyword.
66224         (getuidbyname, getgroup, getgidbyname): Likewise.
66225
66226         Use cleaner syntax: NULL rather than 0.
66227         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
66228
66229 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66230
66231         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
66232         It mishandled the case where the group was missing.
66233         Problem reported by Greg Schafer.
66234         * modules/idcache: Likewise.
66235
66236 2006-11-18  Jim Meyering  <jim@meyering.net>
66237
66238         * check-module (%exempt_header): Add exception for some
66239         conditionally-included headers.
66240
66241         * modules/i-ring (Depends-on): Add verify.
66242         (License): Change to LGPL.
66243
66244 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66245
66246         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
66247         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
66248         and inttostr.h.  Use snprintf rather than uinttostr, so that
66249         LGPLed code doesn't depend on GPLed.
66250
66251 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
66252
66253         * modules/inline (License): Change from GPL to LGPL.
66254
66255 2006-11-17  Jim Meyering  <jim@meyering.net>
66256
66257         * modules/d-type (License): Switch to LGPL.
66258
66259 2006-11-15  Bruno Haible  <bruno@clisp.org>
66260
66261         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
66262
66263 2006-11-15  Eric Blake  <ebb9@byu.net>
66264
66265         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
66266         the module dependency.
66267
66268 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66269             Bruno Haible  <bruno@clisp.org>
66270
66271         * gnulib-tool (func_create_testdir): Add license consistency check.
66272
66273 2006-11-15  Eric Blake  <ebb9@byu.net>
66274
66275         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
66276         random "(cached)" in configure output.
66277
66278 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66279
66280         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
66281         test for conforming inttypes.h is both announced and cached.
66282
66283         * MODULES.html.sh (seen_modules, seen_files): New variables.
66284         (func_module): Rewrite to use a few less gnulib-tool and sed
66285         invocations.  Avoid a couple of quadratic algorithms for ...
66286         (missed_modules, missed_files): ... these, with ...
66287         (func_append, func_tmpdir): ... these new functions, from
66288         gnulib-tool.  Analogously, install traps for cleanup.
66289
66290         * tests/test-gc.c (main): Remove unused variables.
66291         * tests/test-read-file.c: Include stdlib.h, for 'free'.
66292
66293 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
66294
66295         * modules/inttostr (License): Change to LGPL.
66296
66297 2006-11-14  Eric Blake  <ebb9@byu.net>
66298
66299         * modules/tempname (License): Change to LGPL.
66300
66301 2006-11-14  Eric Blake  <ebb9@byu.net>
66302
66303         * doc/functions.texi (Function Portability): *printf functions on
66304         Cygwin now understand all POSIX size specifiers.
66305
66306 2006-11-14  Bruno Haible  <bruno@clisp.org>
66307
66308         * modules/c-ctype (License): Change to LGPL.
66309
66310 2006-11-12  Bruno Haible  <bruno@clisp.org>
66311
66312         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
66313         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
66314         for GNOME libraries, for which the include files are installed in
66315         subdirectories of $prefix/include.
66316
66317 2006-11-12  Bruno Haible  <bruno@clisp.org>
66318
66319         * m4/lib-link.m4: Require at least autoconf-2.54.
66320         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
66321         name to underscores for the --with option.
66322
66323 2006-11-13  Bruno Haible  <bruno@clisp.org>
66324
66325         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
66326         the tests directory.
66327         Reported by Ralf Wildenhues.
66328
66329 2006-11-13  Bruno Haible  <bruno@clisp.org>
66330
66331         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
66332         (func_emit_initmacro_end): Undo the override here.
66333         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
66334         Works around the famous automake error in coreutils.
66335
66336 2006-11-13  Eric Blake  <ebb9@byu.net>
66337
66338         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
66339         element, not its node.
66340
66341 2006-11-12  Bruno Haible  <bruno@clisp.org>
66342
66343         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
66344         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
66345
66346 2006-11-12  Bruno Haible  <bruno@clisp.org>
66347
66348         * gnulib-tool: New option --local-symlink.
66349         (func_usage): Document it.
66350         (lsymbolic): New variable.
66351         (func_import, func_create_testdir): If --symlink was not specified,
66352         test whether --local-symlink was specified and the file comes from
66353         the local_gnulib_dir.
66354
66355 2006-11-12  Bruno Haible  <bruno@clisp.org>
66356
66357         * gnulib-tool (func_ln): New function.
66358         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
66359
66360 2006-11-12  Bruno Haible  <bruno@clisp.org>
66361
66362         Finish support for source files in subdirectories.
66363         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
66364         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
66365         AUTOMAKE_OPTIONS.
66366         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
66367
66368 2006-11-12  Bruno Haible  <bruno@clisp.org>
66369
66370         * gnulib-tool (func_get_automake_snippet): Synthesize also an
66371         EXTRA_lib_SOURCES augmentation.
66372         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
66373
66374 2006-11-12  Jim Meyering  <jim@meyering.net>
66375
66376         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
66377         file descriptors.  This also averts a failure on systems with
66378         native openat support when a traversed directory lacks "x" access.
66379         * lib/fts_.h: Include "i-ring.h"
66380         (struct FTS) [fts_fd_ring]: New member.
66381         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
66382         (FCHDIR): Add parentheses.
66383         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
66384         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
66385         When descending, rather than simply closing the previous
66386         fts_cwd_fd value, push that file descriptor onto the ring.
66387         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
66388         (fts_open): Initialize the new fd_ring member.
66389         (fts_close): Clear the ring.
66390         (fts_safe_changedir): When possible, use our new fd_ring to skip
66391         the diropen and fstat and dev/ino comparison that would normally
66392         accompany a virtual `chdir ("..")'.
66393
66394         * modules/fts (Depends-on): Add i-ring.
66395         * modules/i-ring: New module.
66396         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
66397         * m4/i-ring.m4: New file.
66398
66399 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66400
66401         * gnulib-tool (func_create_testdir): Fix replacement of
66402         `build-aux' in configure.ac.  Run autotools in gltests
66403         subdirectory.
66404         (func_create_testdir, func_create_megatestdir, test): There is
66405         no need for '--force' in most autotool invocations in a new
66406         tree.  Actually fail the whole test if any of the tools, or the
66407         configure or make stages fail.
66408
66409         Sync from Automake.
66410         * build-aux/gnupload: Revert last change.  Add pointer to upload
66411         instructions of the GNU Maintenance Instructions.
66412         Suggestion by Karl Berry.
66413
66414 2006-11-10  Jim Meyering  <jim@meyering.net>
66415
66416         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
66417
66418 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66419
66420         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
66421         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
66422         (bind_textdomain_codeset) [! ENABLE_NLS]:
66423         Evaluate all the arguments.  That way, callers get compatible behavior
66424         if the arguments have side effects.  Also, it avoids some GCC
66425         diagnostics in some cases; Joel E. Denny reported problems when Bison
66426         was configured with --enable-gcc-warnigs.
66427
66428 2006-11-10  Jim Meyering  <jim@meyering.net>
66429
66430         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
66431         relevant options in CFLAGS (like -O, -fno-inline) are taken into
66432         account.
66433
66434 2006-11-10  Jim Meyering  <jim@meyering.net>
66435
66436         * modules/inline: New file/module.
66437         * modules/xalloc (Files): Remove m4/inline.m4.
66438         (Depends-on): Add inline, instead.
66439         * modules/oset: Likewise.
66440         * modules/list: Likewise.
66441
66442 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66443
66444         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
66445         Problem reported by Matthew Woehlke.
66446
66447 2006-11-09  Bruno Haible  <bruno@clisp.org>
66448
66449         * lib/tempname.c (gen_tempname): Remove variant that invokes
66450         __gen_tempname.
66451         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
66452         __gen_tempname.
66453
66454 2006-11-08  Bruno Haible  <bruno@clisp.org>
66455
66456         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
66457         to 'yes' instead of 'cross-compiling'.
66458
66459 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
66460
66461         * lib/quotearg.h (quotearg_free): New decl.
66462         * lib/quotearg.c (quotearg_free): New function.
66463         (slot0, nslots, slotvec0, slotvec):
66464         Now file-scope so that quotearg_free can get at them.
66465
66466 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66467
66468         Sync from Automake.
66469         * build-aux/gnupload: Add missing 'gnu' to example URL.
66470         Report by Karl Berry.
66471
66472 2006-11-08  Bruno Haible  <bruno@clisp.org>
66473
66474         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
66475         Suggested by Paul Eggert.
66476
66477 2006-11-08  Jim Meyering  <jim@meyering.net>
66478
66479         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
66480         It's already included if !_LIBC.
66481         (fts_safe_changedir): Add a comment.
66482
66483 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66484
66485         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
66486         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
66487         Matthew Woehlke.
66488
66489         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
66490         definitions up, to avoid colliding with change below.
66491         (static_inline) [HAVE_INLINE]: New macro.
66492         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
66493         Provide extern decls when !HAVE_INLINE.  Do not define unless
66494         static_inline is defined, either by us or by xmalloc.c.  Use
66495         static_inline rather than static inline.
66496         (XCALLOC): Optimize sizeof(T) = 1 case.
66497         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
66498
66499 2006-11-07  Bruno Haible  <bruno@clisp.org>
66500
66501         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
66502         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
66503         AC_C_INLINE.
66504         * modules/xalloc (Files): Add m4/inline.m4.
66505
66506 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66507
66508         * README: Fix typo.
66509         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
66510         (Miscellanous Notes): ...from this.
66511
66512 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66513
66514         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
66515         Mention that offsetof should be used instead of sizeof.
66516         From Bruno Haible.
66517
66518 2006-11-07  Bruno Haible  <bruno@clisp.org>
66519
66520         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
66521
66522 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66523
66524         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66525         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
66526         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66527         (gl_tree_add_before, gl_tree_add_after):
66528         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
66529         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
66530         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66531         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
66532         (gl_linked_add_after, gl_linked_add_at): Likewise.
66533         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
66534         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66535         (gl_tree_add_before, gl_tree_add_after): Likewise.
66536         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
66537         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
66538         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
66539
66540 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66541
66542         * lib/gl_oset.h: Use C comment style, not C++ comment style.
66543
66544 2006-11-06  Bruno Haible  <bruno@clisp.org>
66545
66546         * m4/inline.m4: New file.
66547         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
66548         * modules/list (Files): Add m4/inline.m4.
66549         * modules/oset (Files): Likewise.
66550
66551 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66552
66553         * lib/idcache.c: Include <stddef.h>, for offsetof.
66554         (struct userid.name): Change from char * to a flexible array member.
66555         All uses changed.
66556         * modules/idcache (Depends-on): Add flexmember.
66557
66558         * MODULES.html.sh (Core language properties): New module flexmember.
66559         * modules/flexmember, m4/flexmember.m4: New files.
66560
66561         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
66562         inline functions that are identical with the old xnmalloc_inline,
66563         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
66564         that we can avoid some unnecessary integer multiplications and
66565         divisions in the common case where the element size is known at
66566         compile time.
66567         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
66568         needed.
66569         (xnboundedmalloc): Remove.
66570         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
66571         arguments, for consistency with rest of this header.
66572         (xcharalloc): Rewrite using XNMALLOC.
66573         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
66574         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
66575         versions have been moved to lib/xalloc.h and renamed to be the
66576         non-*_inline versions.
66577         (xmalloc, xrealloc): Implement without reference to the xnmalloc
66578         and xnrealloc functions, since those functions are now inline and
66579         now call us.
66580         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
66581         renaming described above.
66582         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
66583         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
66584         captures the dependency in AC_C_INLINE.
66585
66586         New module canonicalize-lgpl, proposed by Charles Wilson in
66587         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
66588         with a few small changes afterwards.
66589         * MODULES.html.sh (File system functions): New module
66590         canonicalize-lgpl.
66591         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
66592         and canonicalize_file_name.
66593         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
66594         * modules/canonicalize-lgpl: New files.
66595
66596 2006-11-05  Bruno Haible  <bruno@clisp.org>
66597
66598         * gnulib-tool (func_import, func_create_testdir): Create directories
66599         also for files in subdirectories of lib/.
66600
66601 2006-11-05  Bruno Haible  <bruno@clisp.org>
66602
66603         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
66604         ANSI C compliant.
66605
66606 2006-11-03  Bruno Haible  <bruno@clisp.org>
66607
66608         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66609         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
66610         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
66611         (xnboundedmalloc): New inline function.
66612         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
66613         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
66614         xmalloc.
66615         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
66616         xmalloc.
66617         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
66618         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
66619         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
66620         xmalloc.
66621         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66622         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
66623         xmalloc.
66624         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
66625         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66626         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
66627         xmalloc.
66628         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66629         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
66630         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66631         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
66632         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
66633         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
66634         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
66635
66636 2006-11-03  Bruno Haible  <bruno@clisp.org>
66637
66638         * lib/c-ctype.h [C++]: Define functions without name mangling.
66639         * lib/fwriteerror.h [C++]: Likewise.
66640         * lib/gcd.h [C++]: Likewise.
66641         * lib/linebreak.h [C++]: Likewise.
66642
66643 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
66644
66645         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
66646         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
66647         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
66648         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
66649         Check for functions and headers just once.
66650         Check for declaration of canonicalize_file_name.
66651         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
66652
66653 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66654
66655         * gnulib-tool (func_import): Fix typo in actioncmd.
66656
66657 2006-11-02  Bruno Haible  <bruno@clisp.org>
66658
66659         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
66660         newline sequence in the Makefile.am snippet as a space, like "make"
66661         does.
66662         Reported by Roger Persson <perrog@gmail.com>.
66663
66664 2006-11-01  Bruno Haible  <bruno@clisp.org>
66665
66666         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
66667         already declared in <string.h>.
66668         * lib/strcase.h (strncasecmp): Don't declare it if yes.
66669
66670 2006-11-01  Bruno Haible  <bruno@clisp.org>
66671
66672         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
66673         * lib/strcase.h: Include <string.h>.
66674         (strcasecmp): Define to rpl_strcasecmp here.
66675
66676 2006-11-01  Bruno Haible  <bruno@clisp.org>
66677
66678         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
66679
66680 2006-11-01  Eric Blake  <ebb9@byu.net>
66681
66682         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
66683
66684         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
66685
66686 2006-10-29  Bruno Haible  <bruno@clisp.org>
66687
66688         Make it compile in C++ mode.
66689         * lib/full-write.c (full_rw): Add a cast.
66690
66691 2006-11-01  Bruno Haible  <bruno@clisp.org>
66692
66693         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
66694         be POSIX compliant.
66695         Reported by Roger Persson <perrog@gmail.com>.
66696
66697 2006-11-01  Eric Blake  <ebb9@byu.net>
66698
66699         * lib/getopt_.h: Fix comments.
66700
66701 2006-10-31  Eric Blake  <ebb9@byu.net>
66702
66703         * modules/tmpdir (Depends-on): Add sys_stat.
66704         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
66705         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
66706         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
66707         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
66708         tempname.
66709
66710 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
66711
66712         Avoid some C++ diagnostics reported by Bruno Haible.
66713         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
66714         xmalloc.
66715         (quotearg_alloc): Use xcharalloc rather than xmalloc.
66716         (struct slotvec): Move to top level.
66717         (quotearg_n_options): Rewrite to avoid xmalloc.
66718         * lib/xalloc.h (xcharalloc): New function.
66719         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
66720         [defined __cplusplus]: Add function template that provides result
66721         type propagation.  This part of the change is from Bruno Haible.
66722
66723 2006-10-29  Bruno Haible  <bruno@clisp.org>
66724
66725         Make it compile in C++ mode.
66726         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
66727         * lib/strnlen1.c (strnlen1): Cast memchr result.
66728         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
66729         * lib/clean-temp.c (string_equals, string_hash): Add casts.
66730         (create_temp_dir): Rename local variable 'template'.
66731         (compile_csharp_using_sscli): Add cast.
66732         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
66733         * lib/findprog.c (find_in_path): Likewise.
66734         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
66735         * lib/wait-process.c (register_slave_subprocess): Likewise.
66736
66737 2006-10-22  Bruno Haible  <bruno@clisp.org>
66738
66739         * modules/tsearch: New file.
66740         * lib/tsearch.h: New file.
66741         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
66742         * m4/tsearch.m4: New file.
66743         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
66744
66745 2006-10-29  Eric Blake  <ebb9@byu.net>
66746
66747         * lib/arcfour.c: Assume config.h.
66748         * lib/arctwo.c: Likewise.
66749         * lib/base64.c: Likewise.
66750         * lib/check-version.c: Likewise.
66751         * lib/crc.c: Likewise.
66752         * lib/des.c: Likewise.
66753         * lib/gc-gnulib.c: Likewise.
66754         * lib/gc-libgcrypt.c: Likewise.
66755         * lib/gc-pbkdf2-sha1.c: Likewise.
66756         * lib/getaddrinfo.c: Likewise.
66757         * lib/getdelim.c: Likewise.
66758         * lib/getline.c: Likewise.
66759         * lib/hmac-md5.c: Likewise.
66760         * lib/hmac-sha1.c: Likewise.
66761         * lib/iconvme.c: Likewise.
66762         * lib/md2.c: Likewise.
66763         * lib/md4.c: Likewise.
66764         * lib/memxor.c: Likewise.
66765         * lib/read-file.c: Likewise.
66766         * lib/readline.c: Likewise.
66767         * lib/rijndael-alg-fst.c: Likewise.
66768         * lib/rijndael-api-fst.c: Likewise.
66769         * lib/xgetdomainname.c: Likewise.
66770
66771 2006-10-28  Eric Blake  <ebb9@byu.net>
66772
66773         * lib/xstrndup.c: Assume config.h.
66774
66775 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66776
66777         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
66778         stat-macros.h is now for our own macros, whereas stat_h is for
66779         macros in the <sys/stat.h> name space.
66780         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
66781         (STAT_MACROS_H): Remove.
66782         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
66783         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
66784         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
66785         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
66786         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
66787         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
66788         Move these macros to ...
66789         * lib/stat_.h: here.  Don't include stat-macros.h.
66790         * lib/canonicalize.c: Don't include stat-macros.h.
66791         * lib/chown.c: Likewise.
66792         * lib/euidaccess.c: Likewise.
66793         * lib/file-type.c: Likewise.
66794         * lib/filemode.c: Likewise.
66795         * lib/glob.c: Likewise.
66796         * lib/isapipe.c: Likewise.
66797         * lib/lchown.c: Likewise.
66798         * lib/lstat.c: Likewise.
66799         * lib/mkdir-p.c: Likewise.
66800         * lib/rmdir.c: Likewise.
66801         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
66802         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
66803         unless mkdir isn't declared, to speed up 'configure'.
66804         Always create sys/stat.h, since it's unlikely any real sys/stat.h
66805         would define all the S_* symbols.
66806         * modules/canonicalize (Depends-on):
66807         Depend on sys_stat, not stat-macros.
66808         * modules/chown: Likewise.
66809         * modules/euidaccess: Likewise.
66810         * modules/filemode: Likewise.
66811         * modules/file-type: Likewise.
66812         * modules/glob: Likewise.
66813         * modules/isapipe: Likewise.
66814         * modules/lchown: Likewise.
66815         * modules/lstat: Likewise.
66816         * modules/mkancesdirs: Likewise.
66817         * modules/rmdir: Likewise.
66818         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
66819         * modules/modechange: Likewise.
66820         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
66821         (configure.ac): Remove gl_STAT_MACROS.
66822         * modules/sys_stat (Depends-on): Remove stat-macros.
66823
66824 2006-10-27  Bruno Haible  <bruno@clisp.org>
66825
66826         * m4/signed.m4: Remove file.
66827         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
66828         invocation.
66829         * modules/vasnprintf (Files): Remove m4/signed.m4.
66830
66831 2006-10-27  Bruno Haible  <bruno@clisp.org>
66832
66833         Update to GNU gettext 0.16.
66834         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
66835         m4/inttypes-h.m4, m4/signed.m4.
66836         * m4/gettext.m4: Update to GNU gettext 0.16.
66837         * m4/intl.m4: New file, from GNU gettext.
66838         * m4/intldir.m4: New file, from GNU gettext.
66839         * config/srclist.txt: Update
66840
66841 2006-10-27  Eric Blake  <ebb9@byu.net>
66842
66843         * MODULES.html.sh: Document tempname.
66844         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
66845         dependencies.
66846         (Files): Move lib/tempname.c...
66847         * modules/tempname: ...to this new module.
66848         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
66849         (gl_PREREQ_TEMPNAME): Move...
66850         * m4/tempname.m4: ...to this new file.
66851         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
66852         * modules/sys_stat (Depends-on): Add stat-macros.
66853         * lib/stat_.h (includes): Pick up stat macros.
66854         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
66855         if stat macros are broken.
66856         * lib/tempname.c (includes): No need to include "stat-macros.h".
66857         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
66858         (direxists, __path_search) [!_LIBC]: Don't compile these in
66859         gnulib; the tmpdir module covers that.
66860         * lib/tempname.h: New file.
66861
66862 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
66863
66864         * COPYING: Explain how gnulib-tool converts licence headers.
66865         Almost all wording by Eric Blake.
66866
66867 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
66868
66869         * lib/mbchar.h (is_basic_table): Make read-only.
66870         * lib/mbchar.c (is_basic_table): Likewise.
66871         Reported by John Darrington.
66872
66873 2006-10-25  Bruno Haible  <bruno@clisp.org>
66874
66875         * lib/progname.h (set_program_name): Undefine before defining.
66876
66877 2006-10-25  Bruno Haible  <bruno@clisp.org>
66878
66879         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
66880         false for non-gcc C++ compilers.
66881         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
66882
66883 2006-10-24  Bruno Haible  <bruno@clisp.org>
66884
66885         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
66886         iconv implementations like Irix iconv.
66887
66888 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66889
66890         * modules/vararrays: New file.
66891         * m4/vararrays.m4: New file, taken from diffutils.
66892         * MODULES.html.sh: New module vararrays.
66893
66894 2006-10-24  Karl Berry  <karl@gnu.org>
66895
66896         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
66897         Don't call GNU Unix.
66898
66899 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66900
66901         * users.txt: Add Libtool.
66902
66903         Sync from Libtool:
66904
66905         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66906
66907         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
66908         to gnulib's policy of including config.h unconditionally.
66909
66910 2006-10-24  Bruno Haible  <bruno@clisp.org>
66911
66912         * modules/wcwidth (Files): Add m4/wint_t.m4.
66913         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
66914         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
66915
66916 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66917
66918         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
66919         to pacify GCC with some -W flags enabled.  Problem reported by
66920         Bruno Haible.
66921
66922 2006-10-24  Jim Meyering  <jim@meyering.net>
66923
66924         * MODULES.html.sh: Remove uinttostr.  It's not a module.
66925         Reported by Karl Berry.
66926
66927 2006-10-23  Bruno Haible  <bruno@clisp.org>
66928
66929         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
66930
66931 2006-10-24  Bruno Haible  <bruno@clisp.org>
66932
66933         * lib/gl_list.h: Use C comment style, not C++ comment style.
66934
66935 2006-10-23  Eric Blake  <ebb9@byu.net>
66936
66937         * lib/getaddrinfo.c (includes): Add missing include.
66938
66939 2006-10-23  Bruno Haible  <bruno@clisp.org>
66940             Paul Eggert  <eggert@cs.ucla.edu>
66941
66942         Ability to rename obstack_free.
66943         * lib/obstack.h (__obstack_free): New macro. Declare instead of
66944         obstack_free.
66945         (obstack_free): Invoke the __obstack_free macro.
66946         * lib/obstack.c (obstack_free): Use __obstack_free macro.
66947
66948 2006-10-23  Bruno Haible  <bruno@clisp.org>
66949             Paul Eggert  <eggert@cs.ucla.edu>
66950
66951         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
66952         __argc, __argv from the declaration. (They are defined as macros on
66953         mingw.)
66954
66955 2006-10-22  Bruno Haible  <bruno@clisp.org>
66956
66957         * doc/gnulib-intro.texi: New file.
66958         * doc/gnulib.texi: Include it.
66959
66960 2006-10-21  Bruno Haible  <bruno@clisp.org>
66961
66962         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
66963         "Introduction", "Miscellanous Notes", "Particular Modules".
66964
66965 2006-10-21  Bruno Haible  <bruno@clisp.org>
66966
66967         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66968         Change mostlyclean-local rule to avoid sh syntax error from bash
66969         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
66970
66971 2006-10-23  Jim Meyering  <jim@meyering.net>
66972
66973         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
66974         in place of snprintf.
66975
66976         * modules/inttostr (Files): Add lib/uinttostr.c.
66977         * lib/uinttostr.c (inttostr): New file/function.
66978         * lib/inttostr.h (uinttostr): Declare.
66979         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
66980         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
66981         Add uinttostr.
66982         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
66983
66984 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66985
66986         * lib/canonicalize.c (ELOOP): Define if not already defined.
66987         Problem reported by Bruno Haible in
66988         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
66989
66990 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
66991
66992         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
66993         Problem reported by Perry Smith and Ville Laurikari.
66994
66995         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
66996         uses.
66997
66998 2006-10-19  Bruno Haible  <bruno@clisp.org>
66999
67000         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
67001         for mingw.
67002
67003 2006-10-19  Bruno Haible  <bruno@clisp.org>
67004
67005         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
67006         Needed for mingw.
67007
67008 2006-10-19  Bruno Haible  <bruno@clisp.org>
67009
67010         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
67011
67012 2006-10-19  Bruno Haible  <bruno@clisp.org>
67013
67014         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
67015         it.
67016
67017 2006-10-19  Bruno Haible  <bruno@clisp.org>
67018
67019         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
67020         invocation.
67021
67022 2006-10-19  Bruno Haible  <bruno@clisp.org>
67023
67024         * gnulib-tool (func_create_testdir): Don't include ftruncate and
67025         mountlist by default.
67026
67027 2006-10-16  Bruno Haible  <bruno@clisp.org>
67028
67029         * lib/c-strstr.c: Include c-strstr.h.
67030
67031 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67032
67033         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
67034         in a slash.
67035
67036 2006-10-18  Bruno Haible  <bruno@clisp.org>
67037
67038         * lib/lock.h [C++]: Wrap definitions in extern "C".
67039
67040 2006-10-18  Bruno Haible  <bruno@clisp.org>
67041
67042         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
67043         gl_LIBOBJS list.
67044
67045 2006-10-18  Bruno Haible  <bruno@clisp.org>
67046
67047         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
67048
67049 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
67050
67051         * lib/xstrtol.h: Include gettext.h.
67052         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
67053         Problem reported by Eric Blake.
67054         * modules/xstrtol (Depends-on): Add gettext-h.
67055
67056 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
67057
67058         * lib/strftime.c (advance): New macro.
67059         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
67060         incomplete type, so you can't add 0 to it.  Problem and patch
67061         reported by Eelco Dolstra for dietlibc.
67062
67063 2006-10-18  Jim Meyering  <jim@meyering.net>
67064
67065         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
67066         type for a local, and rename it: s/up/user_proc/.
67067
67068 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
67069
67070         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
67071         READ_UTMP_USER_PROCESS.
67072         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
67073
67074 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
67075
67076         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
67077         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
67078
67079 2006-10-17  Eric Blake  <ebb9@byu.net>
67080
67081         * lib/sigprocmask.c (sigprocmask): Fix typo.
67082
67083         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
67084
67085         * modules/clean-temp (Makefile.am): Don't add to make output...
67086         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
67087         config.h.
67088
67089 2006-10-17  Bruno Haible  <bruno@clisp.org>
67090
67091         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
67092         differently if DEFAULT_TEXT_DOMAIN is set.
67093
67094 2006-10-16  Bruno Haible  <bruno@clisp.org>
67095
67096         * lib/clean-temp.c: Include fwriteerror.h.
67097
67098 2006-10-16  Bruno Haible  <bruno@clisp.org>
67099
67100         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
67101
67102 2006-10-16  Bruno Haible  <bruno@clisp.org>
67103
67104         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
67105         * lib/sigprocmask.h: Include <sys/types.h>.
67106         (sigset_t): Use the system's definition if present.
67107
67108 2006-10-17  Eric Blake  <ebb9@byu.net>
67109
67110         * lib/xvasprintf.c (includes): Assume config.h.
67111         * lib/xasprintf.c (includes): Likewise.
67112
67113 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
67114
67115         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
67116         at least as wide as intmax_t.
67117
67118 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
67119
67120         (Imported from Automake.)
67121         * build-aux/gnupload: Update to version 1.1 of directive file.
67122
67123 2006-10-16  Eric Blake  <ebb9@byu.net>
67124
67125         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
67126         match Automake 1.10a.
67127
67128 2006-10-14  Bruno Haible  <bruno@clisp.org>
67129
67130         * modules/sigprocmask: New file.
67131         * lib/sigprocmask.h: New file.
67132         * lib/sigprocmask.c: New file.
67133         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
67134         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
67135         request sigprocmask.o.
67136         (gl_PREREQ_SIGPROCMASK): New macro.
67137         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
67138         (Depends-on): Add sigprocmask.
67139         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
67140         gt_SIGNALBLOCKING. Test for 'raise' only once.
67141         * lib/fatal-signal.c: Include sigprocmask.h.
67142         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
67143         unblock_fatal_signals): Define always.
67144         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67145         sigprocmask.
67146
67147 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
67148
67149         Sync from Automake.
67150         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
67151         which incorrectly sets the mode of an existing destination
67152         directory.  In some cases the unpatched install-sh could do the
67153         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
67154         system.  We hope this is rare in practice, but it's clearly worth
67155         fixing.  Problem reported by Alex Unleashed in
67156         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
67157         Also, don't bother to check for -m bugs unless we're using -m;
67158         suggested by Stepan Kasal.
67159
67160 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67161
67162         Sync from Automake.
67163         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
67164         `-c' flag, so they appear at the same position as in %FASTDEP%
67165         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
67166         which ignores unknown options only after the first non-option.
67167         Bug report against M4 by Nelson H. F. Beebe.
67168
67169 2006-10-13  Jim Meyering  <jim@meyering.net>
67170
67171         Fix a bug in yesterday's change.
67172         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
67173         p->fts_statp->st_dev would be used uninitialized.
67174         Ensures that we always call fts_stat on the very first entry.
67175         Miklos Szeredi reported that find -xdev stopped working.
67176
67177 2006-10-12  Bruno Haible  <bruno@clisp.org>
67178
67179         * gnulib-tool (func_get_automake_snippet): Append an automatically
67180         computed EXTRA_DIST augmentation.
67181         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
67182         * modules/alloca-opt (Makefile.am): Likewise.
67183         * modules/allocsa (Makefile.am): Likewise.
67184         * modules/arcfour (Makefile.am): Likewise.
67185         * modules/arctwo (Makefile.am): Likewise.
67186         * modules/argmatch (Makefile.am): Likewise.
67187         * modules/argz (Makefile.am): Likewise.
67188         * modules/atexit (Makefile.am): Likewise.
67189         * modules/backupfile (Makefile.am): Likewise.
67190         * modules/byteswap (Makefile.am): Likewise.
67191         * modules/c-strtod (Makefile.am): Likewise.
67192         * modules/c-strtold (Makefile.am): Likewise.
67193         * modules/calloc (Makefile.am): Likewise.
67194         * modules/canon-host (Makefile.am): Likewise.
67195         * modules/canonicalize (Makefile.am): Likewise.
67196         * modules/chdir-long (Makefile.am): Likewise.
67197         * modules/chdir-safer (Makefile.am): Likewise.
67198         * modules/check-version (Makefile.am): Likewise.
67199         * modules/chown (Makefile.am): Likewise.
67200         * modules/cloexec (Makefile.am): Likewise.
67201         * modules/close-stream (Makefile.am): Likewise.
67202         * modules/closeout (Makefile.am): Likewise.
67203         * modules/crc (Makefile.am): Likewise.
67204         * modules/csharpexec (Makefile.am): Likewise.
67205         * modules/cycle-check (Makefile.am): Likewise.
67206         * modules/des (Makefile.am): Likewise.
67207         * modules/dev-ino (Makefile.am): Likewise.
67208         * modules/dirfd (Makefile.am): Likewise.
67209         * modules/dirname (Makefile.am): Likewise.
67210         * modules/dup2 (Makefile.am): Likewise.
67211         * modules/eealloc (Makefile.am): Likewise.
67212         * modules/error (Makefile.am): Likewise.
67213         * modules/euidaccess (Makefile.am): Likewise.
67214         * modules/exclude (Makefile.am): Likewise.
67215         * modules/exitfail (Makefile.am): Likewise.
67216         * modules/fcntl-safer (Makefile.am): Likewise.
67217         * modules/fcntl (Makefile.am): Likewise.
67218         * modules/file-type (Makefile.am): Likewise.
67219         * modules/fileblocks (Makefile.am): Likewise.
67220         * modules/filemode (Makefile.am): Likewise.
67221         * modules/filenamecat (Makefile.am): Likewise.
67222         * modules/fnmatch (Makefile.am): Likewise.
67223         * modules/fopen-safer (Makefile.am): Likewise.
67224         * modules/fpending (Makefile.am): Likewise.
67225         * modules/fprintftime (Makefile.am): Likewise.
67226         * modules/free (Makefile.am): Likewise.
67227         * modules/fsusage (Makefile.am): Likewise.
67228         * modules/ftruncate (Makefile.am): Likewise.
67229         * modules/fts (Makefile.am): Likewise.
67230         * modules/gc-arcfour (Makefile.am): Likewise.
67231         * modules/gc-des (Makefile.am): Likewise.
67232         * modules/gc-hmac-md5 (Makefile.am): Likewise.
67233         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
67234         * modules/gc-md4 (Makefile.am): Likewise.
67235         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67236         * modules/gc-sha1 (Makefile.am): Likewise.
67237         * modules/gc (Makefile.am): Likewise.
67238         * modules/getaddrinfo (Makefile.am): Likewise.
67239         * modules/getcwd (Makefile.am): Likewise.
67240         * modules/getdelim (Makefile.am): Likewise.
67241         * modules/getdomainname (Makefile.am): Likewise.
67242         * modules/getgroups (Makefile.am): Likewise.
67243         * modules/gethostname (Makefile.am): Likewise.
67244         * modules/gethrxtime (Makefile.am): Likewise.
67245         * modules/getline (Makefile.am): Likewise.
67246         * modules/getloadavg (Makefile.am): Likewise.
67247         * modules/getlogin_r (Makefile.am): Likewise.
67248         * modules/getndelim2 (Makefile.am): Likewise.
67249         * modules/getopt (Makefile.am): Likewise.
67250         * modules/getpagesize (Makefile.am): Likewise.
67251         * modules/getpass-gnu (Makefile.am): Likewise.
67252         * modules/getpass (Makefile.am): Likewise.
67253         * modules/getsubopt (Makefile.am): Likewise.
67254         * modules/gettime (Makefile.am): Likewise.
67255         * modules/gettimeofday (Makefile.am): Likewise.
67256         * modules/getugroups (Makefile.am): Likewise.
67257         * modules/getusershell (Makefile.am): Likewise.
67258         * modules/glob (Makefile.am): Likewise.
67259         * modules/group-member (Makefile.am): Likewise.
67260         * modules/hard-locale (Makefile.am): Likewise.
67261         * modules/hash (Makefile.am): Likewise.
67262         * modules/hmac-md5 (Makefile.am): Likewise.
67263         * modules/hmac-sha1 (Makefile.am): Likewise.
67264         * modules/human (Makefile.am): Likewise.
67265         * modules/idcache (Makefile.am): Likewise.
67266         * modules/imaxabs (Makefile.am): Likewise.
67267         * modules/imaxdiv (Makefile.am): Likewise.
67268         * modules/inet_ntop (Makefile.am): Likewise.
67269         * modules/inet_pton (Makefile.am): Likewise.
67270         * modules/intprops (Makefile.am): Likewise.
67271         * modules/inttostr (Makefile.am): Likewise.
67272         * modules/inttypes (Makefile.am): Likewise.
67273         * modules/isapipe (Makefile.am): Likewise.
67274         * modules/javaversion (Makefile.am): Likewise.
67275         * modules/lchmod (Makefile.am): Likewise.
67276         * modules/lchown (Makefile.am): Likewise.
67277         * modules/localcharset (Makefile.am): Likewise.
67278         * modules/long-options (Makefile.am): Likewise.
67279         * modules/lstat (Makefile.am): Likewise.
67280         * modules/malloc (Makefile.am): Likewise.
67281         * modules/mathl (Makefile.am): Likewise.
67282         * modules/mbchar (Makefile.am): Likewise.
67283         * modules/md2 (Makefile.am): Likewise.
67284         * modules/md4 (Makefile.am): Likewise.
67285         * modules/md5 (Makefile.am): Likewise.
67286         * modules/memcasecmp (Makefile.am): Likewise.
67287         * modules/memchr (Makefile.am): Likewise.
67288         * modules/memcmp (Makefile.am): Likewise.
67289         * modules/memcoll (Makefile.am): Likewise.
67290         * modules/memcpy (Makefile.am): Likewise.
67291         * modules/memmem (Makefile.am): Likewise.
67292         * modules/memmove (Makefile.am): Likewise.
67293         * modules/mempcpy (Makefile.am): Likewise.
67294         * modules/memrchr (Makefile.am): Likewise.
67295         * modules/memset (Makefile.am): Likewise.
67296         * modules/memxor (Makefile.am): Likewise.
67297         * modules/mkancesdirs (Makefile.am): Likewise.
67298         * modules/mkdir-p (Makefile.am): Likewise.
67299         * modules/mkdir (Makefile.am): Likewise.
67300         * modules/mkdtemp (Makefile.am): Likewise.
67301         * modules/mkstemp (Makefile.am): Likewise.
67302         * modules/mktime (Makefile.am): Likewise.
67303         * modules/modechange (Makefile.am): Likewise.
67304         * modules/mountlist (Makefile.am): Likewise.
67305         * modules/nanosleep (Makefile.am): Likewise.
67306         * modules/obstack (Makefile.am): Likewise.
67307         * modules/openat (Makefile.am): Likewise.
67308         * modules/pagealign_alloc (Makefile.am): Likewise.
67309         * modules/pathmax (Makefile.am): Likewise.
67310         * modules/physmem (Makefile.am): Likewise.
67311         * modules/poll (Makefile.am): Likewise.
67312         * modules/posixtm (Makefile.am): Likewise.
67313         * modules/posixver (Makefile.am): Likewise.
67314         * modules/putenv (Makefile.am): Likewise.
67315         * modules/quote (Makefile.am): Likewise.
67316         * modules/quotearg (Makefile.am): Likewise.
67317         * modules/raise (Makefile.am): Likewise.
67318         * modules/read-file (Makefile.am): Likewise.
67319         * modules/readline (Makefile.am): Likewise.
67320         * modules/readlink (Makefile.am): Likewise.
67321         * modules/readtokens (Makefile.am): Likewise.
67322         * modules/readutmp (Makefile.am): Likewise.
67323         * modules/realloc (Makefile.am): Likewise.
67324         * modules/regex (Makefile.am): Likewise.
67325         * modules/rename-dest-slash (Makefile.am): Likewise.
67326         * modules/rename (Makefile.am): Likewise.
67327         * modules/rijndael (Makefile.am): Likewise.
67328         * modules/rmdir (Makefile.am): Likewise.
67329         * modules/rpmatch (Makefile.am): Likewise.
67330         * modules/safe-read (Makefile.am): Likewise.
67331         * modules/safe-write (Makefile.am): Likewise.
67332         * modules/same-inode (Makefile.am): Likewise.
67333         * modules/same (Makefile.am): Likewise.
67334         * modules/save-cwd (Makefile.am): Likewise.
67335         * modules/savedir (Makefile.am): Likewise.
67336         * modules/setenv (Makefile.am): Likewise.
67337         * modules/settime (Makefile.am): Likewise.
67338         * modules/sha1 (Makefile.am): Likewise.
67339         * modules/sig2str (Makefile.am): Likewise.
67340         * modules/snprintf (Makefile.am): Likewise.
67341         * modules/stat-macros (Makefile.am): Likewise.
67342         * modules/stat-time (Makefile.am): Likewise.
67343         * modules/stdbool (Makefile.am): Likewise.
67344         * modules/stdint (Makefile.am): Likewise.
67345         * modules/stdlib-safer (Makefile.am): Likewise.
67346         * modules/stpcpy (Makefile.am): Likewise.
67347         * modules/stpncpy (Makefile.am): Likewise.
67348         * modules/strcase (Makefile.am): Likewise.
67349         * modules/strcasestr (Makefile.am): Likewise.
67350         * modules/strchrnul (Makefile.am): Likewise.
67351         * modules/strcspn (Makefile.am): Likewise.
67352         * modules/strdup (Makefile.am): Likewise.
67353         * modules/strerror (Makefile.am): Likewise.
67354         * modules/strftime (Makefile.am): Likewise.
67355         * modules/strndup (Makefile.am): Likewise.
67356         * modules/strnlen (Makefile.am): Likewise.
67357         * modules/strpbrk (Makefile.am): Likewise.
67358         * modules/strsep (Makefile.am): Likewise.
67359         * modules/strstr (Makefile.am): Likewise.
67360         * modules/strtod (Makefile.am): Likewise.
67361         * modules/strtoimax (Makefile.am): Likewise.
67362         * modules/strtok_r (Makefile.am): Likewise.
67363         * modules/strtol (Makefile.am): Likewise.
67364         * modules/strtoll (Makefile.am): Likewise.
67365         * modules/strtoul (Makefile.am): Likewise.
67366         * modules/strtoull (Makefile.am): Likewise.
67367         * modules/strtoumax (Makefile.am): Likewise.
67368         * modules/strverscmp (Makefile.am): Likewise.
67369         * modules/sys_socket (Makefile.am): Likewise.
67370         * modules/sys_stat (Makefile.am): Likewise.
67371         * modules/sysexits (Makefile.am): Likewise.
67372         * modules/time_r (Makefile.am): Likewise.
67373         * modules/timegm (Makefile.am): Likewise.
67374         * modules/timespec (Makefile.am): Likewise.
67375         * modules/tmpfile-safer (Makefile.am): Likewise.
67376         * modules/trim (Makefile.am): Likewise.
67377         * modules/unistd-safer (Makefile.am): Likewise.
67378         * modules/unlinkdir (Makefile.am): Likewise.
67379         * modules/unlocked-io (Makefile.am): Likewise.
67380         * modules/userspec (Makefile.am): Likewise.
67381         * modules/utime (Makefile.am): Likewise.
67382         * modules/utimecmp (Makefile.am): Likewise.
67383         * modules/utimens (Makefile.am): Likewise.
67384         * modules/vasnprintf (Makefile.am): Likewise.
67385         * modules/vasprintf (Makefile.am): Likewise.
67386         * modules/vsnprintf (Makefile.am): Likewise.
67387         * modules/xalloc (Makefile.am): Likewise.
67388         * modules/xgetcwd (Makefile.am): Likewise.
67389         * modules/xnanosleep (Makefile.am): Likewise.
67390         * modules/xreadlink (Makefile.am): Likewise.
67391         * modules/xstrtod (Makefile.am): Likewise.
67392         * modules/xstrtol (Makefile.am): Likewise.
67393         * modules/xstrtold (Makefile.am): Likewise.
67394         * modules/yesno (Makefile.am): Likewise.
67395         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
67396
67397 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67398
67399         * modules/error (Makefile.am): Distribute files through
67400         EXTRA_DIST, not lib_SOURCES.
67401
67402 2006-10-12  Eric Blake  <ebb9@byu.net>
67403
67404         * modules/error (Makefile.am): Distribute files in /lib.
67405         * modules/obstack (Makefile.am): Likewise.
67406
67407 2006-10-12  Bruno Haible  <bruno@clisp.org>
67408
67409         * modules/acl (Makefile.am): Distribute all files in lib/ through
67410         EXTRA_DIST.
67411         * modules/arcfour (Makefile.am): Likewise.
67412         * modules/arctwo (Makefile.am): Likewise.
67413         * modules/argmatch (Makefile.am): Likewise.
67414         * modules/argz (Makefile.am): Likewise.
67415         * modules/atexit (Makefile.am): Likewise.
67416         * modules/backupfile (Makefile.am): Likewise.
67417         * modules/c-strtod (Makefile.am): Likewise.
67418         * modules/c-strtold (Makefile.am): Likewise.
67419         * modules/calloc (Makefile.am): Likewise.
67420         * modules/canon-host (Makefile.am): Likewise.
67421         * modules/canonicalize (Makefile.am): Likewise.
67422         * modules/chdir-long (Makefile.am): Likewise.
67423         * modules/chdir-safer (Makefile.am): Likewise.
67424         * modules/check-version (Makefile.am): Likewise.
67425         * modules/chown (Makefile.am): Likewise.
67426         * modules/cloexec (Makefile.am): Likewise.
67427         * modules/close-stream (Makefile.am): Likewise.
67428         * modules/closeout (Makefile.am): Likewise.
67429         * modules/crc (Makefile.am): Likewise.
67430         * modules/cycle-check (Makefile.am): Likewise.
67431         * modules/des (Makefile.am): Likewise.
67432         * modules/dirfd (Makefile.am): Likewise.
67433         * modules/dirname (Makefile.am): Likewise.
67434         * modules/dup2 (Makefile.am): Likewise.
67435         * modules/euidaccess (Makefile.am): Likewise.
67436         * modules/exclude (Makefile.am): Likewise.
67437         * modules/exitfail (Makefile.am): Likewise.
67438         * modules/fcntl-safer (Makefile.am): Likewise.
67439         * modules/file-type (Makefile.am): Likewise.
67440         * modules/fileblocks (Makefile.am): Likewise.
67441         * modules/filemode (Makefile.am): Likewise.
67442         * modules/filenamecat (Makefile.am): Likewise.
67443         * modules/fnmatch (Makefile.am): Likewise.
67444         * modules/fopen-safer (Makefile.am): Likewise.
67445         * modules/fpending (Makefile.am): Likewise.
67446         * modules/fprintftime (Makefile.am): Likewise.
67447         * modules/free (Makefile.am): Likewise.
67448         * modules/fsusage (Makefile.am): Likewise.
67449         * modules/ftruncate (Makefile.am): Likewise.
67450         * modules/fts (Makefile.am): Likewise.
67451         * modules/gc (Makefile.am): Likewise.
67452         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67453         * modules/getaddrinfo (Makefile.am): Likewise.
67454         * modules/getcwd (Makefile.am): Likewise.
67455         * modules/getdelim (Makefile.am): Likewise.
67456         * modules/getdomainname (Makefile.am): Likewise.
67457         * modules/getgroups (Makefile.am): Likewise.
67458         * modules/gethostname (Makefile.am): Likewise.
67459         * modules/gethrxtime (Makefile.am): Likewise.
67460         * modules/getline (Makefile.am): Likewise.
67461         * modules/getloadavg (Makefile.am): Likewise.
67462         * modules/getlogin_r (Makefile.am): Likewise.
67463         * modules/getopt (Makefile.am): Likewise.
67464         * modules/getpass (Makefile.am): Likewise.
67465         * modules/getpass-gnu (Makefile.am): Likewise.
67466         * modules/getsubopt (Makefile.am): Likewise.
67467         * modules/gettime (Makefile.am): Likewise.
67468         * modules/gettimeofday (Makefile.am): Likewise.
67469         * modules/getugroups (Makefile.am): Likewise.
67470         * modules/getusershell (Makefile.am): Likewise.
67471         * modules/glob (Makefile.am): Likewise.
67472         * modules/group-member (Makefile.am): Likewise.
67473         * modules/hard-locale (Makefile.am): Likewise.
67474         * modules/hash (Makefile.am): Likewise.
67475         * modules/hmac-md5 (Makefile.am): Likewise.
67476         * modules/hmac-sha1 (Makefile.am): Likewise.
67477         * modules/human (Makefile.am): Likewise.
67478         * modules/idcache (Makefile.am): Likewise.
67479         * modules/imaxabs (Makefile.am): Likewise.
67480         * modules/imaxdiv (Makefile.am): Likewise.
67481         * modules/inet_ntop (Makefile.am): Likewise.
67482         * modules/inet_pton (Makefile.am): Likewise.
67483         * modules/inttostr (Makefile.am): Likewise.
67484         * modules/isapipe (Makefile.am): Likewise.
67485         * modules/lchown (Makefile.am): Likewise.
67486         * modules/long-options (Makefile.am): Likewise.
67487         * modules/lstat (Makefile.am): Likewise.
67488         * modules/malloc (Makefile.am): Likewise.
67489         * modules/mathl (Makefile.am): Likewise.
67490         * modules/mbchar (Makefile.am): Likewise.
67491         * modules/md2 (Makefile.am): Likewise.
67492         * modules/md4 (Makefile.am): Likewise.
67493         * modules/md5 (Makefile.am): Likewise.
67494         * modules/memcasecmp (Makefile.am): Likewise.
67495         * modules/memchr (Makefile.am): Likewise.
67496         * modules/memcmp (Makefile.am): Likewise.
67497         * modules/memcoll (Makefile.am): Likewise.
67498         * modules/memcpy (Makefile.am): Likewise.
67499         * modules/memmem (Makefile.am): Likewise.
67500         * modules/memmove (Makefile.am): Likewise.
67501         * modules/mempcpy (Makefile.am): Likewise.
67502         * modules/memrchr (Makefile.am): Likewise.
67503         * modules/memset (Makefile.am): Likewise.
67504         * modules/memxor (Makefile.am): Likewise.
67505         * modules/mkancesdirs (Makefile.am): Likewise.
67506         * modules/mkdir (Makefile.am): Likewise.
67507         * modules/mkdir-p (Makefile.am): Likewise.
67508         * modules/mkdtemp (Makefile.am): Likewise.
67509         * modules/mkstemp (Makefile.am): Likewise.
67510         * modules/mktime (Makefile.am): Likewise.
67511         * modules/modechange (Makefile.am): Likewise.
67512         * modules/mountlist (Makefile.am): Likewise.
67513         * modules/nanosleep (Makefile.am): Likewise.
67514         * modules/openat (Makefile.am): Likewise.
67515         * modules/pagealign_alloc (Makefile.am): Likewise.
67516         * modules/physmem (Makefile.am): Likewise.
67517         * modules/poll (Makefile.am): Likewise.
67518         * modules/posixtm (Makefile.am): Likewise.
67519         * modules/posixver (Makefile.am): Likewise.
67520         * modules/putenv (Makefile.am): Likewise.
67521         * modules/quote (Makefile.am): Likewise.
67522         * modules/quotearg (Makefile.am): Likewise.
67523         * modules/raise (Makefile.am): Likewise.
67524         * modules/read-file (Makefile.am): Likewise.
67525         * modules/readline (Makefile.am): Likewise.
67526         * modules/readlink (Makefile.am): Likewise.
67527         * modules/readtokens (Makefile.am): Likewise.
67528         * modules/readutmp (Makefile.am): Likewise.
67529         * modules/realloc (Makefile.am): Likewise.
67530         * modules/regex (Makefile.am): Likewise.
67531         * modules/rename (Makefile.am): Likewise.
67532         * modules/rename-dest-slash (Makefile.am): Likewise.
67533         * modules/rijndael (Makefile.am): Likewise.
67534         * modules/rmdir (Makefile.am): Likewise.
67535         * modules/rpmatch (Makefile.am): Likewise.
67536         * modules/safe-read (Makefile.am): Likewise.
67537         * modules/safe-write (Makefile.am): Likewise.
67538         * modules/same (Makefile.am): Likewise.
67539         * modules/save-cwd (Makefile.am): Likewise.
67540         * modules/savedir (Makefile.am): Likewise.
67541         * modules/setenv (Makefile.am): Likewise.
67542         * modules/settime (Makefile.am): Likewise.
67543         * modules/sha1 (Makefile.am): Likewise.
67544         * modules/sig2str (Makefile.am): Likewise.
67545         * modules/snprintf (Makefile.am): Likewise.
67546         * modules/stdlib-safer (Makefile.am): Likewise.
67547         * modules/stpcpy (Makefile.am): Likewise.
67548         * modules/stpncpy (Makefile.am): Likewise.
67549         * modules/strcase (Makefile.am): Likewise.
67550         * modules/strcasestr (Makefile.am): Likewise.
67551         * modules/strchrnul (Makefile.am): Likewise.
67552         * modules/strcspn (Makefile.am): Likewise.
67553         * modules/strdup (Makefile.am): Likewise.
67554         * modules/strerror (Makefile.am): Likewise.
67555         * modules/strftime (Makefile.am): Likewise.
67556         * modules/strndup (Makefile.am): Likewise.
67557         * modules/strnlen (Makefile.am): Likewise.
67558         * modules/strpbrk (Makefile.am): Likewise.
67559         * modules/strsep (Makefile.am): Likewise.
67560         * modules/strstr (Makefile.am): Likewise.
67561         * modules/strtod (Makefile.am): Likewise.
67562         * modules/strtoimax (Makefile.am): Likewise.
67563         * modules/strtok_r (Makefile.am): Likewise.
67564         * modules/strtol (Makefile.am): Likewise.
67565         * modules/strtoll (Makefile.am): Likewise.
67566         * modules/strtoul (Makefile.am): Likewise.
67567         * modules/strtoull (Makefile.am): Likewise.
67568         * modules/strtoumax (Makefile.am): Likewise.
67569         * modules/strverscmp (Makefile.am): Likewise.
67570         * modules/time_r (Makefile.am): Likewise.
67571         * modules/timegm (Makefile.am): Likewise.
67572         * modules/tmpfile-safer (Makefile.am): Likewise.
67573         * modules/unistd-safer (Makefile.am): Likewise.
67574         * modules/unlinkdir (Makefile.am): Likewise.
67575         * modules/userspec (Makefile.am): Likewise.
67576         * modules/utime (Makefile.am): Likewise.
67577         * modules/utimecmp (Makefile.am): Likewise.
67578         * modules/utimens (Makefile.am): Likewise.
67579         * modules/vasnprintf (Makefile.am): Likewise.
67580         * modules/vasprintf (Makefile.am): Likewise.
67581         * modules/vsnprintf (Makefile.am): Likewise.
67582         * modules/xalloc (Makefile.am): Likewise.
67583         * modules/xgetcwd (Makefile.am): Likewise.
67584         * modules/xnanosleep (Makefile.am): Likewise.
67585         * modules/xreadlink (Makefile.am): Likewise.
67586         * modules/xstrtod (Makefile.am): Likewise.
67587         * modules/xstrtol (Makefile.am): Likewise.
67588         * modules/xstrtold (Makefile.am): Likewise.
67589         * modules/yesno (Makefile.am): Likewise.
67590
67591 2006-10-12  Jim Meyering  <jim@meyering.net>
67592
67593         * m4/getloadavg.m4: Revert the change below.
67594
67595         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
67596         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
67597         fail with a symlink, which is what coreutils' ./bootstrap now
67598         creates by default.
67599
67600 2006-10-12  Bruno Haible  <bruno@clisp.org>
67601
67602         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
67603         mingw.
67604         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
67605         MSVC and mingw explicitly.
67606
67607 2006-10-11  Simon Josefsson  <jas@extundo.com>
67608             Bruno Haible  <bruno@clisp.org>
67609
67610         Add support for multiple gnulib-tool invocations in the scope of a
67611         single configure.ac file.
67612         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
67613         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
67614         with the same contents as the _LIBADD variable.
67615         (func_emit_initmacro_start, func_emit_initmacro_end,
67616         func_emit_initmacro_done): New functions.
67617         (func_import, func_create_testdir): Invoke them. Allow the identifiers
67618         gl_LIBOBJS and gl_LTLIBOBJS.
67619
67620 2006-10-11  Bruno Haible  <bruno@clisp.org>
67621
67622         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
67623         (func_create_testdir): Don't create po/Makefile.am, don't invoke
67624         autoreconf. Instead, invoke autopoint explicitly but move back the
67625         *.m4 files from gnulib.
67626
67627 2006-10-11  Bruno Haible  <bruno@clisp.org>
67628
67629         * gnulib-tool (func_usage): Make module names after --create-testdir
67630         optional.
67631         (func_create_testdir): If no module was specified, use nearly all
67632         modules.
67633
67634 2006-10-12  Jim Meyering  <jim@meyering.net>
67635
67636         Big performance improvement for fts-based tools that use FTS_NOSTAT.
67637         Avoid spurious inode-mismatch problems on non-POSIX file systems.
67638         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
67639         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
67640         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
67641         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
67642         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
67643         (fts_set_stat_required): New function.
67644         (fts_open): Defer the calls to fts_stat, if possible or requested.
67645         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
67646         into fts_stat itself.
67647         (fts_read): Perform any required (deferred) fts_stat call.
67648         (fts_build): Likewise, for the directory we're about to open and read.
67649         In the readdir loop, carefully decide whether each entry will require
67650         an eventual call to fts_stat, using dirent.d_type info if available.
67651         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
67652         a command line argument into this function.  Update all callers.
67653         Map a return value of FTS_DOT to FTS_D for a command line argument.
67654         * modules/fts (Depends-on): Add d-type.  Alphabetize.
67655         Thanks to Miklos Szeredi for his tenacity and for the initial
67656         bug report about "find" failing on a FUSE-based file system.
67657
67658         * lib/fts.c (fts_open): Use consistent indentation.
67659
67660 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67661
67662         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
67663         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
67664         reported by Jim Meyering.  All uses of cache variables renamed
67665         to match Autoconf's.
67666         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
67667         the other one.
67668
67669         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
67670         Fix misspelling in diagnostic.
67671
67672 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67673
67674         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
67675         defined.  Problem reported by Matthew Woehlke.
67676
67677         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
67678         Add support for Tandem NonStop R series.
67679         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
67680         Use new macro.
67681
67682         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
67683         (has_trailing_slash): Omit size arg; all callers changed.
67684         Omit 'inline', since it doesn't help performance and we'd
67685         need to configure it.
67686         Don't count //, ///, etc. as having a trailing slash.
67687         As a side effect, this removes a C99ism reported by Matthew Woehlke.
67688         (rpl_rename_dest_slash): On failure, use rename's errno rather
67689         than (in some cases) an incorrect or junk errno.
67690         Simplify code by removing need to compute length; this does
67691         cause it to make two passes instead of one over the file name,
67692         but it's worth it.
67693
67694         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
67695         change, since Autoconf's version may no longer be appropriate now
67696         that we are using CVS Autoconf's version.  Add support for Tandem.
67697
67698 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67699             Bruno Haible  <bruno@clisp.org>
67700
67701         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
67702         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
67703         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
67704         gl_AC_TYPE_LONG_LONG.
67705
67706         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
67707         instead of HAVE_LONG_LONG.
67708         * lib/printf-args.c (printf_fetchargs): Likewise.
67709         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
67710         * lib/vasnprintf.c (VASNPRINTF): Likewise.
67711         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
67712         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
67713         gl_AC_TYPE_LONG_LONG.
67714
67715 2006-10-11  Bruno Haible  <bruno@clisp.org>
67716
67717         * m4/longlong.m4: Add comments.
67718         * m4/ulonglong.m4: Likewise.
67719
67720 2006-10-10  Bruno Haible  <bruno@clisp.org>
67721
67722         Make it possible to #define stpcpy, strdup to aliases.
67723         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
67724         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
67725
67726 2006-10-10  Bruno Haible  <bruno@clisp.org>
67727
67728         Make it possible to #define gcd to an alias.
67729         * lib/gcd.c: Include config.h.
67730
67731 2006-10-10  Bruno Haible  <bruno@clisp.org>
67732
67733         Make it possible to #define c_isascii to an alias.
67734         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
67735         defined. Undefine the macros before defining them, to avoid gcc
67736         warnings.
67737         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
67738         define NO_C_CTYPE_MACROS early.
67739
67740 2006-10-10  Bruno Haible  <bruno@clisp.org>
67741
67742         Make it possible to #define set_program_name to an alias.
67743         * lib/progname.c: Don't undefine set_program_name; instead, undefine
67744         ENABLE_RELOCATABLE early.
67745
67746 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67747
67748         Port to Tandem NSK OSS, which has 64-bit signed int but at most
67749         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
67750         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
67751         More generally, don't assume that 64-bit signed int is available
67752         if unsigned int is, and vice versa.
67753         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
67754         unsigned symbols, not on their signed counterparts.
67755         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
67756         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
67757         (UINT64_C, UINTMAX_C):
67758         Likewise.
67759         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
67760         unsigned counterparts.
67761         (Have_long_long, Unsigned): New macros.
67762         (Int): Renamed from INT.
67763         (strtoimax): Use the new macros.
67764         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
67765         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
67766         * modules/inttypes (inttypes.h): Substitute
67767         HAVE_UNSIGNED_LONG_LONG_INT.
67768         * modules/stdint (stdint.h): Likewise.
67769         (Files): Add m4/ulonglong.m4.
67770
67771 2006-10-10  Bruno Haible  <bruno@clisp.org>
67772
67773         Fix a gcc -Wshadow warning.
67774         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
67775         to 'bucket'.
67776         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
67777         gl_linked_indexof_from_to): Likewise.
67778         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
67779         Likewise.
67780         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
67781         Likewise.
67782         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
67783         Reported by Eric Blake.
67784
67785 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
67786
67787         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
67788         for NetBSD.  Problem reported by Bruno Haible.
67789
67790 2006-10-09  Jim Meyering  <jim@meyering.net>
67791
67792         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
67793         Patch from Bruno Haible.
67794
67795 2006-10-09  Jim Meyering  <jim@meyering.net>
67796
67797         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
67798         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
67799         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
67800
67801 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
67802
67803         Don't include <config.h> twice; this doesn't work in some cases,
67804         e.g., when config.h has "#define intmax_t long long int" and
67805         we include <config.h>, <inttypes.h>, <config.h> in that order.
67806         Problem reported by Matthew Woehlke in:
67807         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
67808         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
67809         * lib/fts-cycle.c: Don't include config.h.
67810         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
67811         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
67812         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
67813         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
67814         inttypes.h.
67815         * lib/xstrtoumax.c: Likewise.
67816         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
67817         __strtol and the like, so that this module is more like its siblings.
67818         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
67819         Remove; no longer needed now that we assume gnulib inttypes.h.
67820
67821 2006-10-08  Bruno Haible  <bruno@clisp.org>
67822
67823         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
67824         option.
67825
67826 2006-10-07  Jim Meyering  <jim@meyering.net>
67827
67828         * modules/inttypes (inttypes.h): Revert what seems to have been
67829         an inadvertent part of today's change: use "|", not "/" in the
67830         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
67831
67832 2006-10-07  Bruno Haible  <bruno@clisp.org>
67833
67834         * modules/sublist: New file.
67835
67836 2006-10-07  Bruno Haible  <bruno@clisp.org>
67837
67838         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
67839         * modules/argz (argz.h): Likewise.
67840         * modules/arpa_inet (arpa/inet.h): Likewise.
67841         * modules/byteswap (byteswap.h): Likewise.
67842         * modules/configmake (configmake.h): Likewise.
67843         * modules/fcntl (fcntl.h): Likewise.
67844         * modules/fnmatch (fnmatch.h): Likewise.
67845         * modules/getopt (getopt.h): Likewise.
67846         * modules/glob (glob.h): Likewise.
67847         * modules/inttypes (inttypes.h): Likewise.
67848         * modules/netinet_in (netinet/in.h): Likewise.
67849         * modules/poll (poll.h): Likewise.
67850         * modules/stdbool (stdbool.h): Likewise.
67851         * modules/stdint (stdint.h): Likewise.
67852         * modules/sys_select (sys/select.h): Likewise.
67853         * modules/sys_socket (sys/socket.h): Likewise.
67854         * modules/sys_stat (sys/stat.h): Likewise.
67855         * modules/sysexits (sysexits.h): Likewise.
67856         * modules/unistd (unistd.h): Likewise.
67857         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67858         Add a "DO NOT EDIT" comment to the generated file.
67859         (func_import): Likewise for gnulib-comp.m4.
67860
67861 2006-10-07  Bruno Haible  <bruno@clisp.org>
67862
67863         * lib/gl_sublist.h: New file.
67864         * lib/gl_sublist.c: New file.
67865
67866 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67867
67868         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
67869         name (relative to the original working directory) and the file
67870         name component (relative to the temporary working directory).  All
67871         callers changed.
67872         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
67873         * lib/mkdir-p.c (make_dir_parents): Likewise.
67874         * lib/mkdir-p.h (make_dir_parents): Likewise.
67875
67876 2006-10-06  Eric Blake  <ebb9@byu.net>
67877
67878         Define several macros for use by the clean-temp module.
67879         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
67880         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
67881         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
67882
67883         * lib/clean-temp.h (close_stream_temp): New declaration.
67884         * lib/clean-temp.c (includes): Pull in headers according to what
67885         other modules are in use.
67886         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
67887
67888 2006-10-06  Bruno Haible  <bruno@clisp.org>
67889
67890         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
67891         instead of fopen, fwriteerror.
67892
67893 2006-10-06  Bruno Haible  <bruno@clisp.org>
67894
67895         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
67896         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
67897         int.
67898         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
67899         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
67900         Return an error indicator.
67901         Suggested by Eric Blake.
67902
67903 2006-10-06  Bruno Haible  <bruno@clisp.org>
67904
67905         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
67906         Reported by Eric Blake.
67907
67908 2006-10-06  Bruno Haible  <bruno@clisp.org>
67909
67910         * modules/closeout (Description): Mention stderr too.
67911
67912 2006-10-06  Bruno Haible  <bruno@clisp.org>
67913         and Paul Eggert  <eggert@cs.ucla.edu>
67914
67915         * lib/closeout.c (close_stdout): Also close stderr.
67916         * lib/closeout.h: Update comment.
67917
67918 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
67919
67920         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
67921         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
67922         * lib/dirchownmod.c: Include lchown.h.
67923         * lib/lchown.c: Don't include files that lchown.h now includes.
67924         Don't declare chown, since lchown.h now does that.
67925         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
67926         (lchown): Define to rpl_chown if lchown is declared but
67927         does not exist.  Declare using a prototype if lchown is not
67928         declared.  Add a copyright notice.
67929         * lib/mkstemp.h: Include <unistd.h>.
67930         * lib/openat.c: Include lchown.h.
67931
67932         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
67933         we now test for that separately.
67934         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
67935         rather than O_NOFOLLOW, when testing whether it's possible to
67936         avoid a race condition reliably.
67937         * lib/savewd.c (savewd_chdir): Likewise.
67938
67939         Remove macros that are no longer needed now that stdint.h is
67940         reliable.
67941         * lib/fsusage.c (UINTMAX_MAX): Remove.
67942         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
67943         * lib/utimecmp.c (SIZE_MAX): Remove.
67944
67945         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
67946
67947         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
67948         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
67949         O_NOATIME works.
67950
67951 2006-10-05  Bruno Haible  <bruno@clisp.org>
67952
67953         * lib/gl_list.h (gl_sortedlist_search_from_to,
67954         gl_sortedlist_indexof_from_to): New declarations.
67955         (gl_list_implementation): New fields sortedlist_search_from_to,
67956         sortedlist_indexof_from_to.
67957         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
67958         inline functions.
67959         * lib/gl_list.c (gl_sortedlist_search_from_to,
67960         gl_sortedlist_indexof_from_to): New functions.
67961         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
67962         function.
67963         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
67964         (gl_array_sortedlist_search_from_to): New function.
67965         (gl_array_list_implementation): Update.
67966         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
67967         function.
67968         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
67969         (gl_carray_sortedlist_search_from_to): New function.
67970         (gl_carray_list_implementation): Update.
67971         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
67972         gl_linked_sortedlist_indexof_from_to): New functions.
67973         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
67974         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
67975         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
67976         gl_tree_sortedlist_indexof_from_to): New functions.
67977         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
67978         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
67979         Update.
67980         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
67981         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
67982         Update.
67983
67984 2006-10-05  Bruno Haible  <bruno@clisp.org>
67985
67986         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
67987         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
67988         (struct gl_list_implementation): Add fields search_from_to,
67989         indexof_from_to. Remove fields search, indexof.
67990         (gl_list_search): Use the search_from_to method.
67991         (gl_list_search_from, gl_list_search_from_to): New functions.
67992         (gl_list_indexof): Use the indexof_from_to method.
67993         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67994         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
67995         (gl_list_search_from, gl_list_search_from_to): New functions.
67996         (gl_list_indexof): Use the indexof_from_to method.
67997         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
67998         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
67999         gl_array_indexof. Add start_index, end_index arguments.
68000         (gl_array_search_from_to): Renamed from gl_array_search. Add
68001         start_index, end_index arguments.
68002         (gl_array_remove, gl_array_list_implementation): Update.
68003         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
68004         gl_carray_indexof. Add start_index, end_index arguments.
68005         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
68006         start_index, end_index arguments.
68007         (gl_carray_remove, gl_carray_list_implementation): Update.
68008         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
68009         gl_linked_search. Add start_index, end_index arguments.
68010         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
68011         start_index, end_index arguments.
68012         (gl_linked_remove): Update.
68013         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
68014         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
68015         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
68016         field to 'size_t'.
68017         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
68018         gl_tree_search. Add start_index, end_index arguments.
68019         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
68020         start_index, end_index arguments.
68021         (gl_tree_remove): Update.
68022         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
68023         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
68024         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
68025         function.
68026         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
68027         gl_tree_search. Add start_index, end_index arguments.
68028         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
68029         start_index, end_index arguments.
68030         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
68031         Update.
68032         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
68033
68034 2006-10-05  Bruno Haible  <bruno@clisp.org>
68035
68036         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
68037
68038         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
68039         fwriteerror_temp): New declarations.
68040         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
68041         (descriptors): New variable.
68042         (cleanup): First, close the descriptors.
68043         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
68044         fclose_temp, fwriteerror_temp): New functions.
68045
68046 2006-10-04  Jim Meyering  <jim@meyering.net>
68047
68048         * lib/fts.c (fts_open): Tiny comment change.
68049
68050 2006-10-04  Bruno Haible  <bruno@clisp.org>
68051
68052         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
68053         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
68054         gl_LOCK_BODY.
68055         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
68056         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
68057         gl_LOCK_EARLY_BODY.
68058         (gl_LOCK): Require gl_LOCK_BODY.
68059
68060 2006-10-04  Bruno Haible  <bruno@clisp.org>
68061
68062         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
68063         (gl_oset_search_atleast): New declaration.
68064         (struct gl_oset_implementation): Add field 'search_atleast'.
68065         (gl_oset_search_atleast): New inline function.
68066         * lib/gl_oset.c (gl_oset_search_atleast): New function.
68067         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
68068         (gl_array_oset_implementation): Update.
68069         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
68070         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
68071         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
68072
68073 2006-10-04  Bruno Haible  <bruno@clisp.org>
68074
68075         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
68076
68077 2006-10-03  Bruno Haible  <bruno@clisp.org>
68078
68079         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
68080         from gl_avltreehash_list_implementation.
68081
68082 2006-10-03  Bruno Haible  <bruno@clisp.org>
68083
68084         * lib/gl_oset.c (gl_oset_add): Fix return type.
68085
68086 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
68087
68088         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
68089
68090 2006-10-02  Eric Blake  <ebb9@byu.net>
68091
68092         * modules/strnlen (Depends-on): Add extensions.
68093
68094 2006-10-02  Eric Blake  <ebb9@byu.net>
68095
68096         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
68097         definition in 2.60+.
68098
68099 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
68100
68101         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
68102         checks.
68103
68104 2006-10-02  Bruno Haible  <bruno@clisp.org>
68105
68106         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
68107         to the AUTOMAKE_OPTIONS.
68108         Reported by Jim Meyering.
68109
68110 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
68111
68112         Work around bug in Solaris 10 /proc file system:
68113         /proc/self/fd/NNN/.. isn't the parent directory of
68114         the directory whose file descriptor is NNN.  This needs to
68115         be worked around at run time, not compile time, since a
68116         program might be built on Solaris 8, where things work, and
68117         run on Solaris 10.
68118         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
68119         to use the following interface instead:
68120         (OPENAT_BUFFER_SIZE): New macro.
68121         (openat_proc_name): New function.
68122         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
68123         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
68124         Likewise.
68125         * lib/openat-proc.c: New file.
68126         * modules/openat (Files): Add lib/openat-proc.c.
68127         (Depends-on): Add same-inode, stdbool.
68128         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
68129
68130 2006-09-29  Bruno Haible  <bruno@clisp.org>
68131
68132         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
68133         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
68134         argument. Set stdout_closed before testing for ferror, not after.
68135         (fwriteerror, fwriteerror_no_ebadf): New functions.
68136
68137 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68138
68139         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
68140
68141 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
68142
68143         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
68144         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
68145
68146 2006-09-28  Jim Meyering  <jim@meyering.net>
68147
68148         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
68149         Include <unistd.h>.
68150
68151 2006-09-28  Bruno Haible  <bruno@clisp.org>
68152
68153         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
68154         * modules/linkedhash-list (Depends-on): Likewise.
68155         * modules/rbtreehash-list (Depends-on): Likewise.
68156
68157 2006-09-28  Bruno Haible  <bruno@clisp.org>
68158
68159         * lib/strndup.h: Simplify the redefinition of strndup.
68160         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
68161         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
68162
68163 2006-09-28  Bruno Haible  <bruno@clisp.org>
68164
68165         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
68166         * lib/gl_linkedhash_list.c: Likewise.
68167         * lib/gl_rbtreehash_list.c: Likewise.
68168
68169 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
68170
68171         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
68172         getaddrinfo.
68173
68174         * lib/__fpending.h: Don't include <stdio_ext.h> unless
68175         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
68176         it causes <stdio_ext.h> to cause a compile-time error.
68177         Problem reported by Nelson H. F. Beebe.
68178         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
68179         of HAVE_DECL___PENDING.
68180
68181         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
68182         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
68183         declaration.
68184
68185 2006-09-27  Jim Meyering  <jim@meyering.net>
68186
68187         This file could end up with a definition for a function
68188         named __strndup, rather than rpl_strndup on a system with
68189         incomplete weak_alias support.
68190         * lib/strndup.c (strndup): Rename from __strndup.
68191         Remove #defines that used to map __strndup to strndup.
68192         Don't use K&R prototypes.
68193         Remove LIBC-related code, since this file is not sync'd with glibc.
68194         * lib/strndup.h: Revamp, accordingly.
68195         * m4/strndup.m4: Modernize.
68196
68197 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
68198
68199         * modules/savewd (Depends-on): Add 'raise'.
68200         * lib/savewd.c: Include <signal.h>, for 'raise'.
68201
68202 2006-09-26  Jim Meyering  <jim@meyering.net>
68203
68204         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
68205         when we detect Darwin 8.7.0's acl_get_file bug.
68206         Rearrange to perform the new (below) run-test while $LIBS
68207         contains any acl-related library.  Set USE_ACL at the end.
68208         (gl_ACL_GET_FILE): New function.
68209
68210 2006-09-26  Eric Blake  <ebb9@byu.net>
68211
68212         * lib/verror.c: Include <config.h> unconditionally.
68213
68214 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
68215
68216         * modules/clock-time (Maintainer): Add self.
68217         * modules/getlogin_r (Depends-on): Add extensions.
68218
68219 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68220
68221         * modules/clock-time: New module.
68222         * modules/nanosleep (Depends-on): Add clock-time.
68223         * modules/gethrxtime (Depends-on): Likewise.
68224         * modules/gettime (Depends-on): Likewise.
68225         * modules/settime (Depends-on): Likewise.
68226
68227         * modules/fts-lgpl: Depend on openat.
68228         * modules/mkancesdirs: Depend on savewd.
68229         * modules/mkdir-p: Likewise.
68230
68231 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68232
68233         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
68234
68235         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
68236         `gl_have_arbitrary_file_name_length_limit' to
68237         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
68238         actually works between configure runs.
68239
68240 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68241             Bruno Haible  <bruno@clisp.org>
68242
68243         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
68244
68245 2006-09-25  Jim Meyering  <jim@meyering.net>
68246
68247         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
68248         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
68249
68250 2006-09-25  Eric Blake  <ebb9@byu.net>
68251
68252         * gnulib-tool (func_import, func_create_testdir): Fix typos in
68253         exec's in 2006-09-18 patch when shuffling fds.
68254
68255 2006-09-25  Bruno Haible  <bruno@clisp.org>
68256
68257         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
68258         Reported by Jim Meyering.
68259
68260 2006-09-24  Jim Meyering  <jim@meyering.net>
68261
68262         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
68263         compare a pointer against a literal "0".  That caused failures with
68264         at least HP-UX's hpcc.
68265
68266 2006-09-22  Simon Josefsson  <jas@extundo.com>
68267
68268         * modules/gc-sha1:
68269         * modules/gc-md4:
68270         * modules/gc-hmac-sha1:
68271         * modules/gc-hmac-md5:
68272         * modules/gc-des:
68273         * modules/gc-arcfour: Distribute more files.
68274
68275 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68276
68277         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
68278         (gl_linked_iterator_from_to): Initialize struct completely.
68279         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
68280         (gl_tree_iterator_from_to): Likewise
68281         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
68282         * lib/gl_array_list.c [lint] (gl_array_iterator)
68283         (gl_array_iterator_from_to): Likewise.
68284         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
68285         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
68286         (gl_carray_iterator_from_to): Likewise.
68287
68288         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
68289         * lib/md4.c (md4_process_block): Remove unused variable.
68290         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
68291         parentheses for clarity.
68292
68293 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68294
68295         * modules/bison-i18n (Depends-on): Add gettext.
68296
68297 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68298
68299         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
68300         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
68301         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
68302         also add missing comma that caused broken test.
68303         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
68304         stdlib.h, for `abort'.
68305         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
68306         variables.
68307         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
68308         include unistd.h if present, for `rmdir'.
68309         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
68310         variables.
68311         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
68312         in the process include standard headers for prototypes.
68313         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
68314         gets declared on GNU/Linux.
68315         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
68316         unistd.h, for `rmdir'.
68317         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
68318
68319         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
68320         always true.
68321         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
68322
68323         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
68324
68325 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68326
68327         * gnulib-tool (func_version): Create output all at once.  This
68328         may help avoid triggering unnecessary SIGPIPEs, and at any
68329         rate it doesn't hurt.
68330
68331 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68332             Bruno Haible  <bruno@clisp.org>
68333
68334         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
68335         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
68336         * m4/signed.m4 (bh_C_SIGNED): Likewise.
68337
68338         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
68339         (gl_FUNC_VASPRINTF): Invoke it.
68340
68341 2006-09-22  Bruno Haible  <bruno@clisp.org>
68342
68343         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
68344         getloadavg.c as first argument.
68345
68346 2006-09-22  Bruno Haible  <bruno@clisp.org>
68347
68348         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
68349         at the beginning of the gl_INIT macro.
68350         * modules/getloadavg (configure.ac): Pass $gl_source_base to
68351         gl_GETLOADAVG.
68352
68353 2006-09-22  Bruno Haible  <bruno@clisp.org>
68354
68355         * gnulib-tool (func_create_megatestdir): Don't include the config-h
68356         module.
68357         Suggested by Ralf Wildenhues.
68358
68359 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68360
68361         Import this patch from libc:
68362
68363         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
68364
68365         * lib/regex_internal.c (re_string_reconstruct): Handle
68366         offset < pstr->valid_raw_len && pstr->offsets_needed case.
68367         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
68368         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
68369         re_string_context_at.
68370
68371         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
68372         now requires it.
68373         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
68374         gl_REGEX now does it for us.
68375         (gl_REGEX): Add test taken from
68376         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
68377
68378         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
68379         Check that large offsets work.  Modernize Autoconf usages.
68380         Prefer "yes" to mean a good thing rather than a bad.
68381         Don't put "#define mkstemp" in config.h, as this might interfere
68382         with standard system headers that "#define mkstemp mkstemp64".
68383
68384         * modules/mkstemp (Depends-on): Add extensions, so that
68385         mkstemp is visible on some platforms.
68386         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
68387         (Include): Change to "mkstemp.h" from <stdlib.h>.
68388         (Files): Add mkstemp.h.
68389
68390         * lib/mkstemp.h: New file, since some standard headers
68391         #define mkstemp.
68392         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
68393         Include "mkstemp.h".
68394         Make the _LIBC code resemble glibc original more,
68395         e.g., use K&R style.
68396         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
68397         (mkstemp): Remove, since mkstemp.h does this for us.
68398         * lib/stdlib--.h: Include mkstemp.h.
68399
68400         Import this patch from libc:
68401
68402         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68403
68404         * lib/tempname.c (__gen_tempname): Change attempts_min
68405         into a macro.  Use preprocessor to decide how to initialize
68406         attempts [Coverity CID 67].
68407
68408 2006-09-20  Bruno Haible  <bruno@clisp.org>
68409
68410         * lib/mkdtemp.c: Import from libc.
68411         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68412                 * sysdeps/posix/tempname.c (__gen_tempname): Change
68413                 attempts_min into a macro.  Use preprocessor to decide how to
68414                 initialize attempts [Coverity CID 67].
68415         2001-11-27  Paul Eggert  <eggert@twinsun.com>
68416                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
68417                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
68418
68419 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68420
68421         * gnulib-tool (func_exit): New function, to allow to pass the
68422         exit status portably through the trap.  Use everywhere.
68423         (--help, --version): Signal a write error.
68424         (trap): catch SIGPIPE, for write errors.
68425         Exit at the end of the trap, with the correct exit status.
68426
68427 2006-09-19  Karl Berry  <karl@gnu.org>
68428
68429         * doc/gnulib.texi: note about the license texinfo files.
68430
68431 2006-09-19  Eric Blake  <ebb9@byu.net>
68432
68433         * gnulib-tool: Avoid space-tab.
68434
68435 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68436
68437         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
68438         that prevented coreutils 6.1 from building.  Problem reported
68439         by Petter Reinholdtsen.
68440
68441 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68442
68443         * gnulib-tool (avoidlist): Fix typo that broke options like
68444         --avoid=lock that are used by coreutils bootstrap.
68445
68446 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
68447
68448         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
68449         more systematically.
68450
68451 2006-09-18  Jim Meyering  <jim@meyering.net>
68452
68453         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
68454
68455 2006-09-18  Bruno Haible  <bruno@clisp.org>
68456
68457         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
68458
68459 2006-09-18  Bruno Haible  <bruno@clisp.org>
68460
68461         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
68462         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
68463         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
68464         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
68465         * m4/gettext.m4: Require autoconf >= 2.52.
68466         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
68467         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
68468         of gl_cv_header_inttypes_h.
68469
68470 2006-09-18  Bruno Haible  <bruno@clisp.org>
68471
68472         * lib/javaversion.c: Include configmake.h.
68473
68474 2006-09-18  Bruno Haible  <bruno@clisp.org>
68475
68476         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
68477         avoid that the while loops be executed in a subshell.
68478
68479 2006-09-18  Bruno Haible  <bruno@clisp.org>
68480
68481         * MODULES.html.sh (func_module): Break long lines.
68482         Suggested by Bruce Korb <bkorb@gnu.org>.
68483
68484 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68485
68486         Speed up by a factor of 1.12.
68487         * gnulib-tool (nl): New variable.
68488         (func_import): Rewrite include directive extraction to only read each
68489         directive once.
68490
68491 2006-09-17  Bruno Haible  <bruno@clisp.org>
68492
68493         * modules/javaversion (Makefile.am): Remove DEFS setting.
68494         (Depends-on): Add configmake, for PKGDATADIR definition.
68495
68496 2006-09-17  Bruno Haible  <bruno@clisp.org>
68497
68498         * gnulib-tool (func_create_testdir): Rewrite all files at once.
68499
68500 2006-09-17  Bruno Haible  <bruno@clisp.org>
68501
68502         * gnulib-tool (func_append): New function, stolen from libtool.m4.
68503         (func_modules_transitive_closure, func_modules_add_dummy,
68504         func_modules_to_filelist, func_import, func_create_testdir,
68505         func_create_megatestdir, ...): Use it wherever possible.
68506         Suggested by Ralf Wildenhues.
68507
68508 2006-09-16  Karl Berry  <karl@gnu.org>
68509
68510         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
68511         to avoid sectioning errors.
68512         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
68513         [ifinfo]: blank line after @center-ed titles.
68514         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
68515         Spell FSF address consistently with others.
68516         (These changes approved by rms.)
68517
68518 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68519
68520         Speed up by a factor of 1.61.
68521         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
68522         already checked module names again.
68523
68524 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68525
68526         Speed up by a factor of 1.13.
68527         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
68528         for new_files, and the input to func_add_or_update.
68529
68530 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68531
68532         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
68533         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
68534
68535 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68536
68537         * modules/mkancesdirs (Depends-on): Add fcntl.
68538         * modules/savewd: New file.
68539         * MODULES.html.sh (File system functions): Add savewd.
68540
68541         * modules/configmake (Makefile.am): Add support for the
68542         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
68543
68544 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68545
68546         * m4/savewd.m4: New file.
68547
68548 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68549
68550         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
68551         (dirchownmod): New arg FD.  All callers changed.
68552         Use FD rather than opening the directory ourself, as opening is
68553         now the caller's responsibility.
68554         * lib/dirchownmod.h: Likewise.
68555         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
68556         hosts that require <sys/types.h> before <sys/stat.h>.  Include
68557         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
68558         (test_dir): Remove.
68559         (mkancesdirs): Return length of prefix of FILE that has already
68560         been made, or -2 if there is a child doing the work.  Redo
68561         algorithm so that it is O(N) rather than O(N**2).  Optimize away
68562         ".", and treat ".." specially since it might stray back into
68563         already-created areas.  Use a subprocess if necessary.  New arg
68564         WD; all users changed.  MAKE_DIR function should now return 1
68565         if it creates a directory that is not readable.  Return -2 if
68566         a child process is spun off.
68567         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
68568         Adjust signature to match code.
68569         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
68570         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
68571         all users changed.
68572         * lib/savewd.c, lib/savewd.h: New files.
68573
68574 2006-09-15  Jim Meyering  <jim@meyering.net>
68575
68576         * modules/rename-dest-slash: New module.
68577         * MODULES.html.sh (posix_compat): Add it here.
68578
68579         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
68580
68581 2006-09-15  Jim Meyering  <jim@meyering.net>
68582
68583         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
68584         file.
68585
68586         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
68587
68588 2006-09-15  Jim Meyering  <jim@meyering.net>
68589
68590         * lib/rename-dest-slash.c (has_trailing_slash): Use
68591         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
68592         (rpl_rename_dest_slash): Perform the cheaper trailing slash
68593         test before testing whether SRC is a directory.
68594         Suggestions from Bruno Haible.
68595
68596         Avoid a warning about an unused variable.
68597         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
68598         into the #ifdef block where it's used.
68599
68600         * lib/rename-dest-slash.c: New file.
68601
68602 2006-09-14  Bruno Haible  <bruno@clisp.org>
68603
68604         * lib/allocsa.c: Include <config.h> unconditionally.
68605         * lib/asnprintf.c: Likewise.
68606         * lib/asprintf.c: Likewise.
68607         * lib/c-strcasecmp.c: Likewise.
68608         * lib/c-strcasestr.c: Likewise.
68609         * lib/c-strncasecmp.c: Likewise.
68610         * lib/c-strstr.c: Likewise.
68611         * lib/classpath.c: Likewise.
68612         * lib/clean-temp.c: Likewise.
68613         * lib/concatpath.c: Likewise.
68614         * lib/copy-file.c: Likewise.
68615         * lib/csharpcomp.c: Likewise.
68616         * lib/csharpexec.c: Likewise.
68617         * lib/execute.c: Likewise.
68618         * lib/fatal-signal.c: Likewise.
68619         * lib/findprog.c: Likewise.
68620         * lib/fwriteerror.c: Likewise.
68621         * lib/gl_array_list.c: Likewise.
68622         * lib/gl_array_oset.c: Likewise.
68623         * lib/gl_avltree_list.c: Likewise.
68624         * lib/gl_avltree_oset.c: Likewise.
68625         * lib/gl_avltreehash_list.c: Likewise.
68626         * lib/gl_carray_list.c: Likewise.
68627         * lib/gl_linked_list.c: Likewise.
68628         * lib/gl_linkedhash_list.c: Likewise.
68629         * lib/gl_list.c: Likewise.
68630         * lib/gl_oset.c: Likewise.
68631         * lib/gl_rbtree_list.c: Likewise.
68632         * lib/gl_rbtree_oset.c: Likewise.
68633         * lib/gl_rbtreehash_list.c: Likewise.
68634         * lib/imaxabs.c: Likewise.
68635         * lib/imaxdiv.c: Likewise.
68636         * lib/javacomp.c: Likewise.
68637         * lib/javaexec.c: Likewise.
68638         * lib/javaversion.c: Likewise.
68639         * lib/linebreak.c: Likewise.
68640         * lib/localcharset.c: Likewise.
68641         * lib/lock.c: Likewise.
68642         * lib/mbchar.c: Likewise.
68643         * lib/mbswidth.c: Likewise.
68644         * lib/mkdtemp.c: Likewise.
68645         * lib/pipe.c: Likewise.
68646         * lib/printf-args.c: Likewise.
68647         * lib/printf-parse.c: Likewise.
68648         * lib/progname.c: Likewise.
68649         * lib/progreloc.c: Likewise.
68650         * lib/readlink.c: Likewise.
68651         * lib/sh-quote.c: Likewise.
68652         * lib/stpcpy.c: Likewise.
68653         * lib/stpncpy.c: Likewise.
68654         * lib/strcasecmp.c: Likewise.
68655         * lib/strcasestr.c: Likewise.
68656         * lib/strcspn.c: Likewise.
68657         * lib/striconv.c: Likewise.
68658         * lib/strncasecmp.c: Likewise.
68659         * lib/strnlen1.c: Likewise.
68660         * lib/strstr.c: Likewise.
68661         * lib/strtok_r.c: Likewise.
68662         * lib/tls.c: Likewise.
68663         * lib/tmpdir.c: Likewise.
68664         * lib/unicodeio.c: Likewise.
68665         * lib/unsetenv.c: Likewise.
68666         * lib/vasnprintf.c: Likewise.
68667         * lib/vasprintf.c: Likewise.
68668         * lib/wait-process.c: Likewise.
68669         * lib/xallocsa.c: Likewise.
68670         * lib/xsetenv.c: Likewise.
68671         * lib/xstriconv.c: Likewise.
68672
68673 2006-09-13  Simon Josefsson  <jas@extundo.com>
68674
68675         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
68676         that internally, suggested by Ralf Wildenhues
68677         <Ralf.Wildenhues@gmx.de>.
68678
68679 2006-09-13  Simon Josefsson  <jas@extundo.com>
68680
68681         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
68682         @LIBOBJS@.
68683         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68684
68685 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68686
68687         * lib/_fpending.c: Include <config.h> unconditionally, since we no
68688         longer worry about uses that don't define HAVE_CONFIG_H.
68689         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
68690         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
68691         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
68692         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
68693         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
68694         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
68695         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
68696         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
68697         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
68698         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
68699         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
68700         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
68701         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
68702         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
68703         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
68704         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
68705         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
68706         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
68707         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
68708         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
68709         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
68710         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
68711         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
68712         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
68713         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
68714         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
68715         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
68716         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
68717         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
68718         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
68719         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
68720         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
68721         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
68722         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
68723         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
68724         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
68725         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
68726         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
68727         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
68728         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
68729         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
68730         Likewise.
68731
68732 2006-09-13  Eric Blake  <ebb9@byu.net>
68733
68734         * lib/getopt.c: Fix typo in last commit.
68735
68736 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68737
68738         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
68739         dgettext.
68740
68741 2006-09-12  Jim Meyering  <jim@meyering.net>
68742
68743         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
68744         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
68745         Reported by Nelson H. F. Beebe.
68746
68747 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68748
68749         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
68750         program_invocation_name and program_invocation_short_name are
68751         initialized.
68752         * lib/argp-namefrob.h: Move declarations of program_invocation_name
68753         and program_invocation_short_name to argp.h, so they are visible
68754         to user programs.
68755         * lib/argp.h: Likewise
68756
68757 2006-09-10  Bruno Haible  <bruno@clisp.org>
68758
68759         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68760         m4/inttypes_h.m4, m4/uintmax_t.m4.
68761
68762 2006-09-10  Bruno Haible  <bruno@clisp.org>
68763
68764         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
68765         gl_AC_TYPE_UINTMAX_T.
68766
68767 2006-09-10  Bruno Haible  <bruno@clisp.org>
68768
68769         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
68770
68771 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68772
68773         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
68774         convention.  Text proposed by Bruno Haible.
68775         (struct argp_option): Document the use of N_() wrappers.
68776
68777         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
68778         '\v', and translate the two parts separately, instead of feeding
68779         the whole string to gettext.  This allows to exclude
68780         '\v' from the strings visible to the translator by writing doc
68781         strings as N_("..") "\v" N_("..").
68782
68783 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
68784
68785         * config/srclist.txt: Undo latest change; the bug was fixed.
68786
68787 2006-09-09  Bruno Haible  <bruno@clisp.org>
68788
68789         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
68790         assignments if building a library without libtool.
68791         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
68792         in func_emit_lib_Makefile_am.
68793         (func_import): When building a static library libfoo.a, arrange to
68794         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
68795         (func_create_testdir): Likewise.
68796         * modules/gc (configure.ac, Makefile.am): If building statically,
68797         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
68798         * modules/iconvme (configure.ac, Makefile.am): Likewise.
68799         * modules/striconv (configure.ac, Makefile.am): Likewise.
68800         Based on a suggestion by Ralf Wildenhues.
68801
68802 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68803
68804         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
68805         Check for unistd.h too, since Autoconf doesn't assume POSIX.
68806         Also:
68807
68808         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68809         Add year_2050_test to catch glibc bug 2821
68810         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68811
68812         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68813         Prefer #ifdef to #if.
68814
68815         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
68816         Return from 'main' instead of calling 'exit'.
68817
68818 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68819
68820         * lib/mktime.c (guess_time_tm): Fix bug where mktime
68821         returned the maximum time_t value rather than (time_t) -1.
68822         Problem originally reported by William Bardwell
68823         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68824
68825         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68826         Moved to here ...
68827         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68828         ... from here.
68829
68830 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68831
68832         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
68833         2821 is fixed.
68834
68835 2006-09-08  Jim Meyering  <jim@meyering.net>
68836
68837         Don't make generated files read-only.  That would bother too many
68838         people.  However, do retain the ability to work when targets are
68839         read-only: remove the destination and temporary files before writing
68840         them (when generated via sed or echo), or by using the -f option for
68841         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
68842         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68843         * modules/byteswap, modules/configmake, modules/fcntl:
68844         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68845         * modules/localcharset, modules/netinet_in, modules/poll:
68846         * modules/stdbool, modules/stdint, modules/sys_select:
68847         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68848
68849 2006-09-08  Jim Meyering  <jim@meyering.net>
68850
68851         Avoid new build failure on FreeBSD 6.0.
68852         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
68853         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
68854         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
68855
68856 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68857
68858         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
68859
68860 2006-09-07  Jim Meyering  <jim@meyering.net>
68861
68862         Fix global typo in last change: use chmod u-w, not chmod u-x.
68863         Spotted by Paul Eggert and Bruce Korb.
68864         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68865         * modules/byteswap, modules/configmake, modules/fcntl:
68866         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68867         * modules/localcharset, modules/netinet_in, modules/poll:
68868         * modules/stdbool, modules/stdint, modules/sys_select:
68869         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68870
68871 2006-09-06  Jim Meyering  <jim@meyering.net>
68872
68873         Make generated files be read-only.
68874         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
68875         Ensure that each generated file is now read-only.
68876         * modules/argz: Likewise.
68877         * modules/arpa_inet: Likewise.
68878         * modules/byteswap: Likewise.
68879         * modules/configmake: Likewise.
68880         * modules/fcntl: Likewise.
68881         * modules/fnmatch: Likewise.
68882         * modules/getopt: Likewise.
68883         * modules/glob: Likewise.
68884         * modules/inttypes: Likewise.
68885         * modules/netinet_in: Likewise.
68886         * modules/poll: Likewise.
68887         * modules/stdbool: Likewise.
68888         * modules/stdint: Likewise.
68889         * modules/sys_select: Likewise.
68890         * modules/sys_socket: Likewise.
68891         * modules/sys_stat: Likewise.
68892         * modules/sysexits: Likewise.
68893         * modules/localcharset: Same as above, but continue using temporary
68894         file named "t-$@" (why different?) rather than the "$@-t" used
68895         everywhere else.
68896
68897         * modules/sysexits (Makefile.am): Replace literal occurrences
68898         of "sysexit.h" more readable, and more consistent, "$@".
68899
68900 2006-09-06  Bruno Haible  <bruno@clisp.org>
68901
68902         * modules/striconv: New file.
68903         * modules/xstriconv: New file.
68904         * MODULES.html.sh (Internationalization functions): Add striconv,
68905         xstriconv.
68906
68907 2006-09-06  Bruno Haible  <bruno@clisp.org>
68908
68909         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
68910         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
68911         not using libtool correctly.
68912
68913 2006-09-06  Bruno Haible  <bruno@clisp.org>
68914
68915         * lib/striconv.h: New file.
68916         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
68917         iconvstring.c.
68918         * lib/xstriconv.h: New file.
68919         * lib/xstriconv.c: New file.
68920
68921 2006-09-06  Bruno Haible  <bruno@clisp.org>
68922
68923         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68924         lib_..._LDFLAGS.
68925
68926 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68927
68928         * lib/argz_.h: Sync from Libtool.
68929
68930         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
68931                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68932
68933         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
68934
68935 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68936
68937         * modules/trim: New file.
68938
68939 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68940
68941         * lib/trim.h: New file.
68942         * lib/trim.c: New file.
68943
68944 2006-09-05  Bruno Haible  <bruno@clisp.org>
68945
68946         * MODULES.html.sh (String handling): Add trim.
68947
68948 2006-09-04  Karl Berry  <karl@gnu.org>
68949
68950         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
68951         until next release.
68952
68953 2006-09-03  Bruno Haible  <bruno@clisp.org>
68954
68955         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
68956         correctly.
68957
68958 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68959
68960         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
68961         not gl_GETLOADAVG.  Omit unneeded semicolons.
68962         Problems reported by Ralf Wildenhues in
68963         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68964         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
68965         at the end, which is the usual gnulib style.
68966
68967         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
68968         of doing all the work ourselves.
68969         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
68970         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
68971
68972 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68973
68974         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
68975         Problem reported by Ralf Wildenhues in
68976         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68977
68978         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
68979         HAVE_STRUCT_STATFS_F_FSTYPENAME.
68980
68981 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68982
68983         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
68984         yesterday's patch by changing test -n to test -z.
68985
68986 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68987
68988         * modules/getloadavg (Files): Add m4/getloadavg.m4.
68989         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
68990         the former is now obsolescent.
68991
68992         * modules/chdir-long (Depends-on): Add fcntl.
68993
68994 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
68995
68996         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
68997         obsolescent, and programs should use gnulib instead.
68998         * m4/getloadavg.m4: New file, with contents taken from Autoconf
68999         but with prefixes changed.
69000
69001 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69002
69003         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
69004         or stdbool.h, because they might not exist while configuring.
69005
69006         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
69007         Don't include unistd.h or limits.h; not needed, since chdir-long.h
69008         does that for us.
69009         (O_DIRECTORY): Remove.
69010
69011 2006-08-31  Eric Blake  <ebb9@byu.net>
69012
69013         * gnulib-tool: Don't let emacs change spaces to TAB.
69014
69015 2006-08-31  Bruno Haible  <bruno@clisp.org>
69016
69017         * gnulib-tool: When calling func_import more than once, do it in a
69018         subshell.
69019         Reported by Eric Blake <ebb9@byu.net>.
69020
69021 2006-08-31  Bruno Haible  <bruno@clisp.org>
69022
69023         * gnulib-tool (nl): Remove variable.
69024         (sed_transform_lib_file): Use more robust test for config-h module.
69025         (func_import): Fix typo in 2006-08-25 patch.
69026
69027 2006-08-31  Bruno Haible  <bruno@clisp.org>
69028
69029         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
69030         specified, augment Makefile.am variables instead of assigning them.
69031
69032 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69033
69034         Work around a bug in both the Linux and SunOS 64-bit kernels:
69035         nanosleep mishandles sleeps for longer than 2**31 seconds.
69036         Problem reported by Frank v Waveren in
69037         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
69038         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
69039         Check for nanosleep bug.
69040         (LIB_NANOSLEEP): Append clock_gettime library if needed.
69041
69042 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69043
69044         Work around a bug in both the Linux and SunOS 64-bit kernels:
69045         nanosleep mishandles sleeps for longer than 2**31 seconds.
69046         Problem reported by Frank v Waveren in
69047         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
69048         * lib/nanosleep.c (BILLION): New constant.
69049         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
69050         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
69051         implementation.
69052
69053 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69054
69055         * modules/nanosleep (Depends-on): Add gettime.
69056
69057 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69058         and Simon Josefsson  <jas@extundo.com>
69059         and Oskar Liljeblad  <oskar@osk.mine.nu>
69060
69061         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
69062         * gnulib-tool (func_import): New license type 'unmodifiable license
69063         text'.
69064         * modules/fdl: Use it.  Longer description.
69065         * module/gpl, module/lgpl: New files.
69066
69067 2006-08-30  Jim Meyering  <jim@meyering.net>
69068
69069         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
69070         shadowing the parameter.
69071
69072 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69073
69074         Sync from Libtool:
69075
69076         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69077
69078         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
69079         sharing with gnulib.  Report by Eric Blake.
69080
69081 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69082
69083         * modules/isapipe: New file.
69084         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
69085
69086 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69087
69088         * modules/configmake (Makefile.am): Add a comment, and omit
69089         the CONFIGMAKE_ prefix from generated macro names.  Suggested
69090         by Bruno Haible.
69091
69092 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69093
69094         * m4/isapipe.m4: New file.
69095
69096 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69097
69098         * lib/isapipe.c, lib/isapipe.h: New files.
69099
69100 2006-08-29  Jim Meyering  <jim@meyering.net>
69101
69102         * modules/configmake (Makefile.am): Make configmake.h depend on
69103         Makefile.  Otherwise, a stale configmake.h could hang around.
69104
69105 2006-08-29  Eric Blake  <ebb9@byu.net>
69106
69107         * lib/error.c (error_at_line, print_errno_message): Match libc, after
69108         resolution of upstream bug 3044.
69109
69110 2006-08-29  Bruno Haible  <bruno@clisp.org>
69111
69112         * modules/localcharset (Depends-on): Add configmake.
69113         (Makefile.am): Remove setting of LIBDIR through DEFS.
69114
69115 2006-08-29  Bruno Haible  <bruno@clisp.org>
69116
69117         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
69118         defined.
69119
69120 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69121
69122         * modules/fcntl: New file.
69123         * modules/chdir-safer (Depends-on): Add fcntl.
69124         * modules/fts: Likewise.
69125         * modules/mkdir-p: Likewise.
69126
69127         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
69128         This undoes the most recent change, since we're now addressing the
69129         problem in a different way.
69130
69131         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
69132         into output, since the output might be called Makefile.am even
69133         if $makefile_name is something different.
69134         (func_import): Use $makefile_am rather than
69135         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
69136         empty.
69137
69138         * modules/inttypes (Files): Add m4/inttypes-h.m4.
69139
69140 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69141
69142         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
69143         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
69144         recent change to stdint.m4, since we're now addressing the problem in a
69145         different way.
69146
69147 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69148
69149         * m4/fcntl_h.m4: New file.
69150
69151 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69152
69153         * lib/fcntl_.h: New file.
69154         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
69155         the fcntl module.
69156         * lib/dirchownmod.c: Likewise.
69157         * lib/fts.c: Likewise.
69158
69159         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
69160         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
69161         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
69162         just before including <inttypes.h>, to avoid circular inclusion.
69163
69164 2006-08-28  Jim Meyering  <jim@meyering.net>
69165
69166         * doc/visibility.texi: Actually read and correct the grammar of the
69167         sentence affected by yesterday's change.
69168
69169 2006-08-28  Eric Blake  <ebb9@byu.net>
69170
69171         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
69172         needs wrapper.
69173
69174 2006-08-28  Eric Blake  <ebb9@byu.net>
69175
69176         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
69177
69178 2006-08-28  Eric Blake  <ebb9@byu.net>
69179
69180         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
69181
69182 2006-08-28  Bruno Haible  <bruno@clisp.org>
69183
69184         * modules/c-strstr: New file, from GNU gettext.
69185         * MODULES.html.sh (String handling): Add c-strstr.
69186
69187 2006-08-28  Bruno Haible  <bruno@clisp.org>
69188
69189         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
69190         macros.
69191         Reported by Eric Blake.
69192
69193 2006-08-28  Bruno Haible  <bruno@clisp.org>
69194
69195         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
69196         (VASNPRINTF): Return a string of length > INT_MAX without failing.
69197         * lib/vasprintf.c: Include errno.h, limits.h.
69198         (EOVERFLOW): New fallback definition.
69199         (vasprintf): Test here whether the string length is > INT_MAX.
69200         * lib/vsnprintf.c: Include errno.h, limits.h.
69201         (EOVERFLOW): New fallback definition.
69202         (vsnprintf): Fix bug when generated string was too long for the buffer.
69203         Test here whether the string length is > INT_MAX.
69204
69205 2006-08-28  Bruno Haible  <bruno@clisp.org>
69206
69207         * lib/inttypes_.h (SCNX*): Remove definitions.
69208         Reported by Eric Blake.
69209
69210 2006-08-28  Bruno Haible  <bruno@clisp.org>
69211
69212         * lib/c-strstr.h: New file, from GNU gettext.
69213         * lib/c-strstr.c: New file, from GNU gettext.
69214
69215 2006-08-28  Bruno Haible  <bruno@clisp.org>
69216
69217         * gnulib-tool: Reorder some statements.
69218
69219 2006-08-28  Bruno Haible  <bruno@clisp.org>
69220
69221         * gnulib-tool: New option --makefile-name.
69222         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
69223         $makefile_name.
69224         (func_import): Write $makefile_name to the cache file, and read it from
69225         there unless explicitly specified. Use $makefile_name as file name
69226         instead of Makefile.am. Adjust the recommendations accordingly.
69227
69228 2006-08-28  Bruno Haible  <bruno@clisp.org>
69229
69230         * gnulib-tool (func_verify_module): Check against misapplying patch.
69231
69232 2006-08-28  Bruno Haible  <bruno@clisp.org>
69233
69234         * gnulib-tool (func_relativize, func_relconcat): New functions.
69235         Give an error if --local-dir is given with --update.
69236         Remove trailing slashes from $local_gnulib_dir.
69237         (func_import): Store the relativized $local_gnulib_dir in
69238         gnulib-cache.m4, and read it from there if not specified explicitly.
69239
69240 2006-08-28  Bruno Haible  <bruno@clisp.org>
69241
69242         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
69243         is the current directory. Respect also $local_gnulib_dir.
69244
69245 2006-08-28  Bruno Haible  <bruno@clisp.org>
69246             Simon Josefsson  <jas@extundo.com>
69247
69248         BeOS portability.
69249         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
69250
69251 2006-08-27  Jim Meyering  <jim@meyering.net>
69252
69253         * doc/visibility.texi: Remove duplicate word: "pointer".
69254
69255 2006-08-26  Bruno Haible  <bruno@clisp.org>
69256
69257         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
69258         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
69259         (Makefile.am): Create inttypes.h from inttypes_.h.
69260         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
69261
69262         * modules/imaxabs: New file.
69263
69264         * modules/imaxdiv: New file.
69265
69266 2006-08-26  Bruno Haible  <bruno@clisp.org>
69267
69268         * m4/inttypes.m4: New file.
69269         * m4/_inttypes_h.m4: Remove file.
69270         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
69271         PRI_MACROS_BROKEN.
69272         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
69273
69274         * m4/imaxabs.m4: New file.
69275
69276         * m4/imaxdiv.m4: New file.
69277
69278 2006-08-26  Bruno Haible  <bruno@clisp.org>
69279
69280         * lib/inttypes_.h: New file.
69281         * lib/inttypes.h: Remove file.
69282         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
69283
69284         * lib/imaxabs.c: New file.
69285
69286         * lib/imaxdiv.c: New file.
69287
69288 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69289
69290         New config-h module, so that "make" output needn't be cluttered
69291         by -DHAVE_CONFIG_H.
69292         * MODULES.html.sh (Support for building libraries and executables):
69293         Add config-h.
69294         * modules/config-h: New file.
69295         * gnulib-tool (nl, sed_transform_lib_file): New vars.
69296         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
69297         the config-h module is used.
69298
69299         New configmake module, so that "make" output needn't be cluttered
69300         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
69301         * MODULES.html.sh (Support for building libraries and executables):
69302         Add configmake.
69303         * modules/configmake: New file.
69304
69305 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69306
69307         * m4/config-h.m4: New file.
69308
69309 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69310
69311         * config/srclist.txt: Add elisp-comp.
69312
69313 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69314
69315         * MODULES.html.sh (Support for building libraries and executables):
69316         Add elisp-comp.
69317         * build-aux/elisp-comp: New file.
69318         * modules/elisp-comp: New file.
69319
69320 2006-08-24  Bruno Haible  <bruno@clisp.org>
69321
69322         * gnulib-tool (func_create_testdir): Use non-default values of
69323         sourcebase and m4base.
69324
69325 2006-08-24  Bruno Haible  <bruno@clisp.org>
69326
69327         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
69328         HTML structure.
69329
69330 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69331
69332         * modules/openat (Depends-on): Add lchown.
69333
69334 2006-08-23  Bruno Haible  <bruno@clisp.org>
69335
69336         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
69337         of gl_LOCK_EARLY instead of gl_LOCK.
69338
69339 2006-08-23  Bruno Haible  <bruno@clisp.org>
69340
69341         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
69342         on OSF/1 to no.
69343         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
69344
69345 2006-08-23  Bruno Haible  <bruno@clisp.org>
69346
69347         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
69348         as unusable.
69349
69350         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
69351         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
69352         (gl_LOCK): New macro.
69353
69354 2006-08-22  Simon Josefsson  <jas@extundo.com>
69355
69356         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
69357         to md5 module.
69358
69359 2006-08-22  Simon Josefsson  <jas@extundo.com>
69360
69361         * MODULES.html.sh: Add "Support for maintaining and release
69362         projects".
69363
69364         * build-aux/gnupload: New file, from coreutils.
69365
69366 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69367
69368         Avoid the need for AC_LIBSOURCES in m4 macros.
69369         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
69370         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
69371         * modules/check-version (EXTRA_DIST): Add check-version.h.
69372         * modules/crc (EXTRA_DIST): Add crc.h.
69373         * modules/des (EXTRA_DIST): Add des.h.
69374         * modules/gc (EXTRA_DIST): Add gc.h.
69375         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
69376         * modules/getline (EXTRA_DIST): Add getline.h.
69377         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
69378         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
69379         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
69380         * modules/md2 (EXTRA_DIST): Add md2.h.
69381         * modules/md4 (EXTRA_DIST): Add md4.h.
69382         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
69383         * modules/read-file (EXTRA_DIST): Add read-file.h.
69384         * modules/readline (EXTRA_DIST): Add readline.h.
69385         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
69386         rijndael-api-fst.h.
69387
69388 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69389
69390         * m4/rijndael.m4 (gl_ARCFOUR):
69391         * m4/arctwo.m4 (gl_ARCTWO):
69392         * m4/check-version.m4 (gl_CHECK_VERSION):
69393         * m4/crc.m4 (gl_CRC):
69394         * m4/des.m4 (gl_DES):
69395         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
69396         * m4/gc.m4 (gl_GC):
69397         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
69398         * m4/getline.m4 (gl_FUNC_GETLINE):
69399         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
69400         * m4/hmac-md5.m4 (gl_HMAC_MD5):
69401         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
69402         * m4/md2.m4 (gl_MD2):
69403         * m4/md4.m4 (gl_MD4):
69404         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
69405         * m4/read-file.m4 (gl_FUNC_READ_FILE):
69406         * m4/readline.m4 (gl_FUNC_READLINE):
69407         * m4/rijndael.m4 (gl_RIJNDAEL):
69408         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69409         to get the necessary .h files and whatnot.
69410
69411 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69412
69413         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
69414         gnulib rather than the other way around.
69415         * config/srclistvars.sh (COREUTILS): Remove.
69416
69417 2006-08-22  Jim Meyering  <jim@meyering.net>
69418
69419         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
69420
69421         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
69422
69423 2006-08-22  Eric Blake  <ebb9@byu.net>
69424
69425         * modules/regexprops-generic: New file.
69426         * MODULES.html.sh (Support for building documentation): List it.
69427
69428 2006-08-22  Eric Blake  <ebb9@byu.net>
69429
69430         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
69431         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
69432         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
69433         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
69434
69435 2006-08-22  Bruno Haible  <bruno@clisp.org>
69436
69437         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
69438         and lib_LTLIBRARIES like the other lib_* variables.
69439
69440 2006-08-22  Bruno Haible  <bruno@clisp.org>
69441
69442         * build-aux/x-to-1.in: New file, from GNU gettext.
69443
69444 2006-08-22  Bruno Haible  <bruno@clisp.org>
69445
69446         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
69447         <utmpx.h> exists.
69448
69449 2006-08-22  Bruno Haible  <bruno@clisp.org>
69450
69451         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
69452         <utmpx.h> exists.
69453
69454 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69455
69456         BeOS portability.
69457         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
69458         exist.
69459         Problem reported by Bruno Haible.
69460
69461 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69462
69463         Avoid the need for AC_LIBSOURCES in m4 macros.
69464         * modules/acl (EXTRA_DIST): Add acl.h.
69465         * modules/argmatch (Files): Add m4/argmatch.m4.
69466         (configure.ac): Add gl_ARGMATCH.
69467         (EXTRA_DIST): Renamed from lib_SOURCES, for
69468         consistency with the other modules.  Remove argmatch.c.
69469         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
69470         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
69471         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
69472         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
69473         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
69474         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
69475         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
69476         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
69477         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
69478         * modules/closeout (EXTRA_DIST): Add closeout.h.
69479         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
69480         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
69481         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
69482         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
69483         dirname.h; remove basename.c and stripslash.c.
69484         * modules/exclude (EXTRA_DIST): Add exclude.h.
69485         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
69486         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
69487         * modules/file-type (EXTRA_DIST): Add file-type.h.
69488         * modules/filemode (EXTRA_DIST): Add filemode.h.
69489         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
69490         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69491         * modules/fpending (EXTRA_DIST): Add __fpending.h.
69492         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
69493         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
69494         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
69495         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
69496         * modules/getdate (EXTRA_DIST): Add getdate.c.
69497         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
69498         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
69499         * modules/getpass (EXTRA_DIST): Add getpass.h.
69500         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
69501         * modules/group-member (EXTRA_DIST): Add group-member.h.
69502         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
69503         * modules/hash (EXTRA_DIST): Add hash.h.
69504         * modules/human (EXTRA_DIST): Add human.h.
69505         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
69506         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
69507         * modules/lchown (EXTRA_DIST): Add lchown.h.
69508         * modules/long-options (EXTRA_DIST): Add long-options.h.
69509         * modules/lstat (EXTRA_DIST): Add lstat.h.
69510         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
69511         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
69512         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
69513         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
69514         * modules/memxor (EXTRA_DIST): Add memxor.h.
69515         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
69516         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
69517         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
69518         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
69519         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
69520         * modules/physmem (EXTRA_DIST): Add physmem.h.
69521         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
69522         * modules/posixver (EXTRA_DIST): Add posixver.h.
69523         * modules/quote (EXTRA_DIST): Add quote.h.
69524         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
69525         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
69526         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
69527         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
69528         regex_internal.h regexec.c.
69529         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
69530         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
69531         * modules/same (EXTRA_DIST): Add same.h.
69532         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
69533         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
69534         * modules/savedir (EXTRA_DIST): Add savedir.h.
69535         * modules/sha1 (EXTRA_DIST): Add sha1.h.
69536         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
69537         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
69538         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
69539         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
69540         * modules/strdup (EXTRA_DIST): Add strdup.h.
69541         * modules/strftime (EXTRA_DIST): Add strftime.h.
69542         * modules/strndup (EXTRA_DIST): Add strndup.h.
69543         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
69544         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
69545         * modules/time_r (EXTRA_DIST): Add time_r.h.
69546         * modules/timespec (EXTRA_DIST): Add timespec.h.
69547         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69548         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
69549         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
69550         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
69551         * modules/userspec (EXTRA_DIST): Add userspec.h.
69552         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
69553         * modules/utimens (EXTRA_DIST): Add utimens.h.
69554         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
69555         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
69556         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
69557         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
69558         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
69559         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
69560         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
69561         * modules/yesno (EXTRA_DIST): Add yesno.h.
69562
69563 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69564
69565         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
69566
69567         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
69568         * m4/dev-ino.m4, same-inode.m4: Remove.
69569
69570         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
69571         * m4/acl.m4 (AC_FUNC_ACL):
69572         * m4/backupfile.m4 (gl_BACKUPFILE):
69573         * m4/c-strtod.m4 (gl_C99_STRTOLD):
69574         * m4/canon-host.m4 (gl_CANON_HOST):
69575         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
69576         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
69577         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
69578         * m4/cloexec.m4 (gl_CLOEXEC):
69579         * m4/close-stream.m4 (gl_CLOSE_STREAM):
69580         * m4/closeout.m4 (gl_CLOSEOUT):
69581         * m4/dirfd.m4 (gl_FUNC_DIRFD):
69582         * m4/dirname.m4 (gl_DIRNAME):
69583         * m4/exclude.m4 (gl_EXCLUDE):
69584         * m4/exitfail.m4 (gl_EXITFAIL):
69585         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
69586         * m4/file-type.m4 (gl_FILE_TYPE):
69587         * m4/filemode.m4 (gl_FILEMODE):
69588         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
69589         * m4/fpending.m4 (gl_FUNC_FPENDING):
69590         * m4/fprintftime.m4 (gl_FPRINTFTIME):
69591         * m4/fts.m4 (gl_FUNC_FTS):
69592         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
69593         * m4/getdate.m4 (gl_GETDATE):
69594         * m4/gethrxtime.m4 (gl_GETHRXTIME):
69595         * m4/getpagesize.m4 (gl_GETPAGESIZE):
69596         * m4/getpass.m4 (gl_FUNC_GETPASS):
69597         * m4/gettime.m4 (gl_GETTIME):
69598         * m4/getugroups.m4 (gl_GETUGROUPS):
69599         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
69600         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
69601         * m4/hard-locale.m4 (gl_HARD_LOCALE):
69602         * m4/hash.m4 (gl_HASH):
69603         * m4/idcache.m4 (gl_IDCACHE):
69604         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
69605         * m4/lchown.m4 (gl_FUNC_LCHOWN):
69606         * m4/long-options.m4 (gl_LONG_OPTIONS):
69607         * m4/lstat.m4 (gl_FUNC_LSTAT):
69608         * m4/md5.m4 (gl_MD5):
69609         * m4/memcasecmp.m4 (gl_MEMCASECMP):
69610         * m4/memcoll.m4 (gl_MEMCOLL):
69611         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
69612         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
69613         * m4/memxor.m4 (gl_MEMXOR):
69614         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
69615         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
69616         * m4/modechange.m4 (gl_MODECHANGE):
69617         * m4/mountlist.m4 (gl_MOUNTLIST):
69618         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69619         * m4/openat.m4 (gl_FUNC_OPENAT):
69620         * m4/pathmax.m4 (gl_PATHMAX):
69621         * m4/physmem.m4 (gl_PHYSMEM):
69622         * m4/posixtm.m4 (gl_POSIXTM):
69623         * m4/posixver.m4 (gl_POSIXVER):
69624         * m4/quote.m4 (gl_QUOTE):
69625         * m4/quotearg.m4 (gl_QUOTEARG):
69626         * m4/readtokens.m4 (gl_READTOKENS):
69627         * m4/readutmp.m4 (gl_READUTMP):
69628         * m4/regex.m4 (gl_REGEX):
69629         * m4/safe-read.m4 (gl_SAFE_READ):
69630         * m4/safe-write.m4 (gl_SAFE_WRITE):
69631         * m4/same.m4 (gl_SAME):
69632         * m4/save-cwd.m4 (gl_SAVE_CWD):
69633         * m4/savedir.m4 (gl_SAVEDIR):
69634         * m4/settime.m4 (gl_SETTIME):
69635         * m4/sha1.m4 (gl_SHA1):
69636         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
69637         * m4/stat-macros.m4 (gl_STAT_MACROS):
69638         * m4/stat-time.m4 (gl_STAT_TIME):
69639         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
69640         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
69641         * m4/strdup.m4 (gl_FUNC_STRDUP):
69642         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
69643         * m4/strndup.m4 (gl_FUNC_STRNDUP):
69644         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
69645         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
69646         * m4/time_r.m4 (gl_TIME_R):
69647         * m4/timespec.m4 (gl_TIMESPEC):
69648         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
69649         * m4/unlinkdir.m4 (gl_UNLINKDIR):
69650         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
69651         * m4/userspec.m4 (gl_USERSPEC):
69652         * m4/utimecmp.m4 (gl_UTIMECMP):
69653         * m4/utimens.m4 (gl_UTIMENS):
69654         * m4/xalloc.m4 (gl_XALLOC):
69655         * m4/xgetcwd.m4 (gl_XGETCWD):
69656         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
69657         * m4/xreadlink.m4 (gl_XREADLINK):
69658         * m4/xstrtod.m4 (gl_XSTRTOD):
69659         * m4/yesno.m4 (gl_YESNO):
69660         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69661         to get the necessary .h files and whatnot.
69662
69663 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
69664             Bruno Haible  <bruno@clisp.org>
69665
69666         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
69667         /bin/sh understanding of '!' conditional negation.
69668
69669 2006-08-21  Jim Meyering  <jim@meyering.net>
69670
69671         * modules/openat (Depends-on): Really alphabetize.
69672
69673         * modules/acl (Depends-on): Add error and quote.
69674
69675         * check-module (find_included_lib_files): Add at-func.c to the
69676         ok-to-include-more-than-once white list.
69677
69678         * modules/openat (Depends-on): Add lstat.  Alphabetize.
69679
69680 2006-08-21  Bruno Haible  <bruno@clisp.org>
69681
69682         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69683         Emit a pkgdata_DATA variable only if some snippets add contents to it.
69684         Reported by Martin Lambers <marlam@marlam.de>.
69685
69686 2006-08-21  Bruno Haible  <bruno@clisp.org>
69687
69688         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
69689         specify an installation location, don't emit a noinst_LIBRARIES or
69690         noinst_LTLIBRARIES assignment.
69691
69692 2006-08-21  Bruno Haible  <bruno@clisp.org>
69693
69694         BeOS portability.
69695         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
69696         BeOS has mbrtowc() but no <wctype.h>.
69697
69698 2006-08-21  Bruno Haible  <bruno@clisp.org>
69699
69700         BeOS portability.
69701         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
69702         exist.
69703
69704 2006-08-21  Bruno Haible  <bruno@clisp.org>
69705
69706         BeOS portability.
69707         * lib/mbchar.h: Include <wctype.h> only if it exists.
69708
69709 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69710
69711         Remove files that are no longer needed by their respective modules.
69712         * m4/obstack.m4: Remove.
69713         * m4/strerror_r.m4: Remove.
69714         * m4/uint32_t.m4: Remove.
69715         * m4/uintptr_t.m4: Remove.
69716         * m4/ullong_max.m4: Remove.
69717         * m4/xstrtoimax.m4: Remove.
69718         * m4/xstrtoumax.m4: Remove.
69719
69720         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
69721         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
69722         dependencies now capture this.
69723
69724         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
69725         Do not use AC_LIBSOURCES, since gnulib modules now do this.
69726         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
69727         * m4/human.m4 (gl_HUMAN): Likewise.
69728         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
69729         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
69730
69731         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
69732
69733         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
69734         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
69735         stdint.
69736         * m4/human.m4 (gl_HUMAN): Likewise.
69737         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
69738         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
69739         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69740         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69741         * m4/xstrtol (gl_XSTRTOL): Likewise.
69742
69743         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
69744         AC_TYPE_LONG_LONG_INT.
69745         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69746         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
69747         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
69748         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69749
69750         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
69751         on stdbool.
69752
69753         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
69754         (gl_PREREQ_XSTRTOUL): Remove.
69755
69756         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
69757
69758         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
69759         mode.
69760
69761 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69762
69763         Add and change modules to make it easier for coreutils to use
69764         gnulib-tool.
69765         * modules/backupfile (Files): Remove m4/d-ino.m4.
69766         (Depends-on): Add d-ino.
69767         * modules/cycle-check (Depends-on): Add stdint.
69768         (lib_SOURCES): Add cycle-check.h.
69769         * modules/d-ino: New module.
69770         * modules/d-type: New module.
69771         * modules/error (Files): Remove m4/strerror_r.m4.
69772         * modules/filemode (Files): Add m4/st_dm_mode.m4.
69773         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69774         m4/inttypes_h.m4, m4/uintmax_t.m4.
69775         (Depends-on): Add stdint.
69776         (lib_SOURCES): Add fsusage.h.
69777         * modules/getcwd (Files): Remove d-ino.m4.
69778         (Depends-on): Add d-ino.
69779         * modules/getndelim2 (Depends-on): Add stdint.
69780         * modules/glob (Files): Remove m4/d-type.m4.
69781         (Depends-on): Add d-type.
69782         * modules/host-os: New module.
69783         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
69784         m4/inttypes_h.m4, m4/uintmax_t.m4.
69785         * Depends-on: Add stdint.
69786         (lib_SOURCES): Add human.h.
69787         * modules/inttostr (Files): Remove m4/intmax_t.m4,
69788         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
69789         m4/uintmax_t.m4, m4/ulonglong.m4.
69790         (Depends-on): Add stdint.
69791         (EXTRA_DIST): Add inttostr.h.
69792         * modules/lchmod: New module.
69793         * modules/link-follow: New module.
69794         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
69795         (Depends-on): Add lchmod.
69796         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
69797         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
69798         (Depends-on): Add stdint.
69799         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
69800         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
69801         (Depends-on): Add stdint.
69802         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
69803         * modules/perl: New module.
69804         * modules/regex (Depends-on): Add stdint.
69805         * modules/rmdir-errno: New module.
69806         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69807         m4/intmax_t.m4.
69808         (Depends-on): Add stdint.
69809         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69810         m4/uintmax_t.m4.
69811         (Depends-on): Add stdint.
69812         * modules/unlink-busy: New module.
69813         * modules/utimecmp (Depends-on): Add stdint.
69814         * modules/uptime: New module.
69815         * modules/winsz-ioctl: New module.
69816         * modules/winsz-termios: New module.
69817         * modules/xnanosleep (Depends-on): Add nanosleep.
69818         * modules/ullong_max: Remove.
69819         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
69820         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
69821         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
69822         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
69823         (Depends-on): Add inttypes.
69824         (lib_SOURCES): Add xstrtol.h.
69825         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
69826         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
69827         * MODULES.html.sh: Move 'assert' into the assert section.
69828         Move 'dummy' into the linking section.
69829         Remove ullong_max.
69830         Add section for compatibility checks for POSIX:2001 functions,
69831         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
69832         winsz-ioctl, and winsz-termios into it.
69833         Add lchmod.
69834         Add top-level Misc section and put host-os, perl, and uptime
69835         into it.
69836
69837 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69838
69839         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
69840         now assume the stdint module.  Do not include inttypes.h.
69841         * lib/fsusage.h: Likewise.
69842         * lib/getndelim2.c: Likewise.
69843         * lib/human.h: Likewise.
69844         * lib/inttostr.h: Likewise.
69845         * lib/obstack.c: Likewise.
69846         * lib/regex_internal.h: Likewise.
69847         * lib/tempname.c: Likewise.
69848         * lib/utimecmp.c: Likewise.
69849         * lib/xstrtol.h: Likewise.
69850
69851         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
69852
69853         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
69854         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
69855         * lib/xtime.h: Likewise.
69856
69857 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69858
69859         * modules/openat (Files): Add lib/fchmodat.c.
69860         Fixes problem reported by Jay Youngman.
69861
69862 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69863
69864         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
69865         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
69866
69867 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
69868             Bruno Haible  <bruno@clisp.org>
69869
69870         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
69871         and is a script that invokes bison. Tighten the code. Add comments.
69872
69873 2006-08-18  Jim Meyering  <jim@meyering.net>
69874
69875         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
69876         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
69877         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
69878         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
69879
69880 2006-08-18  Bruno Haible  <bruno@clisp.org>
69881
69882         * modules/bison-i18n: New file.
69883         * MODULES.html.sh (Internationalization functions): Add it.
69884
69885 2006-08-18  Bruno Haible  <bruno@clisp.org>
69886
69887         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
69888         sys/statvfs.h. When getmntinfo was found, check its declaration and
69889         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
69890
69891 2006-08-18  Bruno Haible  <bruno@clisp.org>
69892
69893         * m4/bison-i18n.m4: New file, from bison.
69894
69895 2006-08-18  Bruno Haible  <bruno@clisp.org>
69896
69897         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
69898         (ME_DUMMY): Treat "kernfs" as a dummy.
69899         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
69900
69901 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69902
69903         Update from coreutils.
69904
69905         2006-08-15  Jim Meyering  <jim@meyering.net>
69906
69907         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
69908
69909         2006-01-17  Jim Meyering  <jim@meyering.net>
69910
69911         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
69912
69913         2006-01-11  Jim Meyering  <jim@meyering.net>
69914
69915         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
69916         Check for the lchmod function.
69917
69918 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69919
69920         Update from coreutils.
69921
69922         * lib/__fpending.h: Add copyright notice.
69923         * lib/fprintftime.h: Likewise.
69924         * lib/savedir.c: Use (C) in copyright notice.
69925         * lib/savedir.h: Likewise.
69926
69927         2006-08-15  Jim Meyering  <jim@meyering.net>
69928
69929         * lib/at-func.c: New file, with the logic of all emulated at-functions.
69930         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
69931         in support of the EXPECTED_ERRNO macro.
69932         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
69933         definitions.  Instead, define the appropriate symbols and include
69934         "at-func.c".
69935         * lib/mkdirat.c (mkdirat): Likewise.
69936         * lib/fchmodat.c (fchmodat): Likewise.
69937         (ENOSYS): Remove definition.
69938         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
69939         it.  Don't include "unistd--.h" -- it wasn't ever used.
69940
69941         2006-01-17  Jim Meyering  <jim@meyering.net>
69942
69943         Rewrite fts.c not to change the current working directory,
69944         by using openat, fstatat, fdopendir, etc..
69945
69946         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
69947         (HAVE_OPENAT_SUPPORT): Define.
69948         [_LIBC] (fchdir): Don't undef or define; no longer used.
69949         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
69950         Now, this `function' always succeeds, and consumes its file descriptor
69951         parameter -- so callers must not close such FDs.  Update callers.
69952         (diropen_fd, opendirat, cwd_advance_fd): New functions.
69953         (diropen): Add parameter, SP.  Adjust all callers.
69954         Implement using diropen_fd, rather than open.
69955         (fts_open): Initialize new member, fts_cwd_fd.
69956         Remove fts_rft-setting code.
69957         (fts_close): Close fts_cwd_fd, if necessary.
69958         (__opendir2): Define in terms of opendir or opendirat,
69959         depending on whether the FST_NOCHDIR flag is set.
69960         (fts_build): Since fts_safe_changedir consumes its FD, and since
69961         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
69962         and close the dup'd file descriptor upon failure.
69963         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
69964         (fts_safe_changedir): Tweak semantics to reflect that this function
69965         now calls cwd_advance_fd and hence consumes its FD argument.
69966         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
69967         [struct FTS] (fts_rft): Remove now-unused member.
69968         [struct FTS] (fts_cycle.state): Improve comment.
69969
69970         * lib/openat.c (openat_needs_fchdir): New function.
69971         * lib/openat.h (openat_needs_fchdir): Declare it.
69972
69973 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
69974
69975         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
69976         Problem and fix reported by Pádraig Brady in
69977         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
69978
69979 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69980
69981         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
69982
69983 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69984
69985         * lib/memcoll.c (memcoll): Optimize for the common case where the
69986         arguments are bytewise equal.
69987
69988 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69989
69990         * doc/regexprops-generic.texi: Add a copyright notice.
69991
69992 2006-08-15  Bruno Haible  <bruno@clisp.org>
69993
69994         * modules/tmpdir (License): Change to LGPL.
69995
69996 2006-08-15  Bruno Haible  <bruno@clisp.org>
69997
69998         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
69999         module.
70000
70001 2006-08-14  Simon Josefsson  <jas@extundo.com>
70002
70003         * config/srclist.txt: Add gnupload.
70004
70005 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70006
70007         Change copyright notice from LGPL 2 to GPL 2, since that's the
70008         standard form used in the gnulib repository.
70009         * tests/test-lock.c: Likewise.
70010         * tests/test-stdint.c: Likewise.
70011         * tests/test-tls.c: Likewise.
70012
70013         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
70014         prelude-manager.  User shorter URLs for GNU projects, without '?'.
70015         Add copyright notice.
70016
70017         * check-module: Add copyright notice.  Output a copyright
70018         notice if "--version" is specified.
70019         * modules/COPYING: New file.
70020         * tests/test-getaddrinfo.c: Add copyright notice.
70021         * tests/test-verify.c: Likewise.
70022
70023 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70024
70025         Change copyright notice from LGPL 2 to GPL 2, since that's the
70026         standard form used in the gnulib repository.
70027         * lib/lock.c: LGPL -> GPL.
70028         * lib/lock.h: Likewise.
70029         * lib/strnlen1.c: Likewise.
70030         * lib/strnlen1.h: Likewise.
70031         * lib/tls.c: Likewise.
70032         * lib/tls.h: Likewise.
70033         * lib/tmpdir.c: Likewise.
70034
70035         * lib/TODO: Remove; this belongs only in coreutils.
70036
70037 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70038
70039         Add copyright notices to long-enough files that lack them, since
70040         otherwise the files aren't clearly free.  Use the same notice that
70041         getdate.texi already uses.
70042         * doc/alloca-opt.texi: Add copyright notice.
70043         * doc/alloca.texi: Likewise.
70044         * doc/ctime.texi: Likewise.
70045         * doc/functions.texi: Likewise.
70046         * doc/gcd.texi: Likewise.
70047         * doc/gnulib-tool.texi: Likewise.
70048         * doc/inet_ntoa.texi: Likewise.
70049         * doc/visibility.texi: Likewise.
70050
70051         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
70052         * doc/quote.texi: Add copyright notice.
70053
70054         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
70055         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
70056         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
70057         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
70058         is now obsolete, and give a pointer to the Sun list.
70059         Add copyright notice.
70060
70061 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70062
70063         * config/srclistvars.sh: Add copyright notice.
70064
70065 2006-08-14  Eric Blake  <ebb9@byu.net>
70066
70067         Import the following change from libc:
70068
70069         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
70070
70071         Upstream bug 2997.
70072         * lib/misc/error.c: Add space between program name and message if file
70073         name is missing.
70074
70075 2006-08-12  Karl Berry  <karl@gnu.org>
70076
70077         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
70078         remove, these originate in gnulib now.
70079
70080 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70081
70082         * doc/Makefile (standards.info standards.html standards.dvi):
70083         Also depend on make-stds.texi.
70084
70085 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70086
70087         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
70088         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
70089
70090         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
70091         in wchar_t.  Problem reported by Eric Blake.
70092
70093         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
70094         LEN is smaller than SIZE.  Suggested by Bruno Haible.
70095         Also, help the compiler to keep LEN in a register.
70096
70097 2006-08-11  Eric Blake  <ebb9@byu.net>
70098
70099         * users.txt: Sort.  Add tar.
70100
70101 2006-08-11  Bruno Haible  <bruno@clisp.org>
70102
70103         * users.txt: New file.
70104
70105 2006-08-11  Bruno Haible  <bruno@clisp.org>
70106
70107         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
70108         before <wchar.h>. Needed for OSF/1 and BSD/OS.
70109
70110 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
70111
70112         * modules/snprintf (Depends-on): Remove minmax.
70113         (Maintainer): Add self and Bruno.
70114
70115 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
70116
70117         * lib/.cppi-disable: Add snprintf.h, socket_.h.
70118         * lib/snprintf.c: Include <errno.h> and <limits.h>.
70119         (EOVERFLOW): Define if the system does not.
70120         Do not include "minmax.h"; it wasn't used.
70121         (snprintf): Don't assume size_t promotes to an unsigned type.
70122         Fix bug when generated string was too long for the buffer: the
70123         buffer's contents are supposed to be the initial prefix of the
70124         output.  Don't assume vasnprintf returns EOVERFLOW if the size
70125         exceeds INT_MAX; do the check ourselves.
70126
70127         Import the following changes from libc:
70128
70129         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
70130
70131         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
70132         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
70133         set wc to the byte which couldn't be converted.
70134         (re_string_reconstruct): Don't clear valid_raw_len before calling
70135         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
70136         tip_context using re_string_context_at.
70137
70138         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
70139
70140         * lib/posix/regex.h: g++ still cannot handled [restrict].
70141
70142         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
70143
70144         * lib/posix/regex.h: Remove special handling for VMS.
70145
70146 2006-08-10  Jim Meyering  <jim@meyering.net>
70147
70148         * modules/same-inode: New module.
70149         * modules/dev-ino: New module.
70150         * modules/cycle-check: Depend on these modules, rather than simply
70151         including their .h files.
70152         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
70153         required via m4/cycle-check.m4.
70154         * modules/same: Depend on new same-inode module, rather than
70155         including same-inode.h.
70156         * modules/chdir-safer: New file.
70157
70158         * modules/chown (Depends-on): Add stat-macros.
70159
70160 2006-08-10  Jim Meyering  <jim@meyering.net>
70161
70162         * m4/cycle-check.m4: New file.
70163         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
70164         * m4/dev-ino.m4, m4/same-inode.m4: New files.
70165
70166 2006-08-10  Eric Blake  <ebb9@byu.net>
70167
70168         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
70169         in from original proposal.
70170
70171 2006-08-10  Eric Blake  <ebb9@byu.net>
70172         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
70173
70174         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
70175         namespace.
70176
70177 2006-08-10  Bruno Haible  <bruno@clisp.org>
70178
70179         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
70180         as well.
70181
70182 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70183
70184         Sync from coreutils.
70185
70186         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
70187
70188         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
70189         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
70190
70191 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70192
70193         * modules/restrict: Remove; no longer needed now that we assume
70194         Autoconf 2.59 or later.
70195         * MODULES.html.sh: Remove 'restrict'.
70196         * modules/argp (Depends-on): Remove 'restrict'.
70197         * modules/base64 (Depends-on): Likewise.
70198         * modules/gc (Depends-on): Likewise.
70199         * modules/getaddrinfo (Depends-on): Likewise.
70200         * modules/glob (Depends-on): Likewise.
70201         * modules/inet_ntop (Depends-on): Likewise.
70202         * modules/inet_pton (Depends-on): Likewise.
70203         * modules/memxor (Depends-on): Likewise.
70204         * modules/regex (Depends-on): Likewise.
70205         * modules/strtok_r (Depends-on): Likewise.
70206         * modules/time_r (Depends-on): Likewise.
70207
70208 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70209
70210         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
70211         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
70212         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70213         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
70214         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
70215         * m4/memxor.m4 (gl_MEMXOR): Likewise.
70216         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
70217         gl_C_RESTRICT replaced by AC_C_RESTRICT.
70218
70219         Merge from coreutils.
70220         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
70221         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
70222         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70223         * m4/time_r.m4 (gl_TIME_R): Likewise.
70224
70225 2006-08-09  Karl Berry  <karl@gnu.org>
70226
70227         * config/srclist.txt: no more gettext-tools, per Bruno.
70228
70229 2006-08-08  Eric Blake  <ebb9@byu.net>
70230
70231         * modules/verror: New module.
70232         * MODULES.html.sh: Document it.
70233
70234 2006-08-08  Eric Blake  <ebb9@byu.net>
70235
70236         * lib/verror.h, lib/verror.c: New files.
70237
70238 2006-08-08  Eric Blake  <ebb9@byu.net>
70239
70240         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
70241         verror_at_line output complies with GNU Coding Standards even when
70242         file is NULL.
70243
70244 2006-08-07  Bruno Haible  <bruno@clisp.org>
70245
70246         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
70247         versions of AIX.
70248         Reported by Ralf Wildenhues.
70249
70250 2006-08-07  Bruno Haible  <bruno@clisp.org>
70251
70252         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
70253         in an AC_DEFUN. Needed so that the autoconf snippets can use
70254         AC_REQUIRE.
70255
70256 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70257
70258         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70259         Initialize pkgdata_DATA.
70260         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
70261         overriding it.
70262
70263 2006-08-06  Eric Blake  <ebb9@byu.net>
70264
70265         * lib/error.h: Fold in some upstream changes from glibc.
70266         * lib/error.c: Likewise.
70267
70268 2006-08-04  Bruno Haible  <bruno@clisp.org>
70269
70270         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70271         Make the mostlyclean-local rule depend on mostlyclean-generic.
70272         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
70273
70274 2006-07-31  Bruno Haible  <bruno@clisp.org>
70275
70276         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
70277         <stdlib.h>, <string.h>.
70278
70279 2006-07-30  Bruno Haible  <bruno@clisp.org>
70280
70281         * modules/readlink (License): Change to LGPL.
70282
70283 2006-07-30  Bruno Haible  <bruno@clisp.org>
70284
70285         * modules/javaversion (Makefile.am): Distribute javaversion.java and
70286         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
70287         set PKGDATADIR to point to it.
70288
70289 2006-07-30  Bruno Haible  <bruno@clisp.org>
70290
70291         * modules/csharpexec (configure.ac): Comment out macro invocation.
70292         * modules/javaexec (configure.ac): Likewise.
70293         * modules/javacomp-script (configure.ac): Likewise.
70294
70295         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
70296
70297 2006-07-30  Bruno Haible  <bruno@clisp.org>
70298
70299         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
70300         linked-list.
70301
70302 2006-07-30  Bruno Haible  <bruno@clisp.org>
70303
70304         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
70305
70306 2006-07-30  Bruno Haible  <bruno@clisp.org>
70307
70308         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70309         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
70310         get removed.
70311
70312 2006-07-29  Bruno Haible  <bruno@clisp.org>
70313
70314         Make it possible for gnulib-tool to work with locally modified or
70315         augmented gnulib repositories.
70316         * gnulib-tool (func_usage): Document --local-dir option.
70317         (local_gnulib_dir): New variable.
70318         Handle --local-dir option.
70319         (func_lookup_file): New function.
70320         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
70321         (func_get_description, func_get_filelist, func_get_description,
70322         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
70323         func_get_automake_snippet, func_get_include_directive,
70324         func_get_license, func_get_maintainer): Use func_lookup_file.
70325         (func_import, func_create_testdir): Use func_lookup_file.
70326
70327 2006-07-29  Bruno Haible  <bruno@clisp.org>
70328
70329         * modules/setenv (Depends-on): Add unistd.
70330
70331 2006-07-29  Bruno Haible  <bruno@clisp.org>
70332
70333         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
70334
70335 2006-07-29  Bruno Haible  <bruno@clisp.org>
70336
70337         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
70338
70339 2006-07-29  Bruno Haible  <bruno@clisp.org>
70340
70341         * gnulib-tool (import, update): If there is no Makefile.am, look at
70342         aclocal.m4, instead of bailing out.
70343
70344 2006-07-29  Bruno Haible  <bruno@clisp.org>
70345
70346         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
70347         Categorize the options by when they are useful.
70348
70349 2006-07-29  Bruno Haible  <bruno@clisp.org>
70350
70351         * gnulib-tool (func_usage): Document option --no-libtool.
70352         Handle option --no-libtool.
70353         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
70354         for changed semantics of $libtool variable.
70355         (func_import): Likewise. If libtool is not used, show this through
70356         an option --no-libtool.
70357         (func_create_testdir): Update.
70358
70359 2006-07-29  Bruno Haible  <bruno@clisp.org>
70360
70361         * gnulib-tool (func_import): Extend error message about missing
70362         --doc-base.
70363
70364 2006-07-29  Bruno Haible  <bruno@clisp.org>
70365
70366         * gnulib-tool (func_import): Don't create the $docbase directory if
70367         there is no file to store there.
70368
70369 2006-07-29  Bruno Haible  <bruno@clisp.org>
70370
70371         * gnulib-tool (autoconf_minversion): If a --dir option is given and
70372         relevant, look for configure.ac there, not in the current directory.
70373         Also use a simple search for AC_PREREQ, not "autoconf --trace".
70374
70375 2006-07-29  Bruno Haible  <bruno@clisp.org>
70376
70377         * gnulib-tool (SORT): New variable.
70378         (func_usage): Undocument --assume-autoconf option.
70379         Remove --assume-autoconf option handling.
70380         (autoconf_minversion): Determine from the contents of configure.ac.
70381         (func_import): Remove autoconf_minversion handling.
70382         Suggested by Eric Blake.
70383
70384 2006-07-29  Bruno Haible  <bruno@clisp.org>
70385
70386         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
70387
70388 2006-07-29  Bruno Haible  <bruno@clisp.org>
70389
70390         * config/srclist.txt (*setenv.[ch]): Remove rules.
70391
70392 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70393
70394         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
70395
70396 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70397
70398         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
70399         arpa/inet.h.
70400
70401 2006-07-28  Simon Josefsson  <jas@extundo.com>
70402
70403         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
70404         * modules/inet_pton (Depends-on): Likewise.
70405
70406 2006-07-28  Simon Josefsson  <jas@extundo.com>
70407
70408         * m4/netinet_in_h.m4: New file.
70409
70410 2006-07-28  Simon Josefsson  <jas@extundo.com>
70411
70412         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
70413         #include's.
70414
70415 2006-07-28  Simon Josefsson  <jas@extundo.com>
70416
70417         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
70418         #include's.
70419
70420 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
70421
70422         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
70423         setgid on directories only if they set these bits.
70424         * lib/modechange.h: Remove obsolete comment about masks.
70425
70426 2006-07-28  Eric Blake  <ebb9@byu.net>
70427
70428         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
70429         macro expansion.
70430
70431 2006-07-28  Bruno Haible  <bruno@clisp.org>
70432
70433         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
70434
70435 2006-07-28  Bruno Haible  <bruno@clisp.org>
70436
70437         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
70438
70439 2006-07-28  Bruno Haible  <bruno@clisp.org>
70440
70441         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
70442         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
70443         Define fallbacks.
70444         Avoids link error on FreeBSD 4.x.
70445         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70446
70447         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
70448         encoding.
70449         * lib/mbswidth.c (iswcntrl): Likewise.
70450
70451 2006-07-27  Bruno Haible  <bruno@clisp.org>
70452
70453         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
70454         test.
70455
70456 2006-07-27  Bruno Haible  <bruno@clisp.org>
70457
70458         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
70459         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
70460         defined.
70461
70462 2006-07-26  Eric Blake  <ebb9@byu.net>
70463
70464         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
70465
70466 2006-07-26  Eric Blake  <ebb9@byu.net>
70467
70468         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
70469         like mingw that lack mkstemp.
70470         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
70471         avoid compilation warning on mingw.
70472
70473 2006-07-26  Bruno Haible  <bruno@clisp.org>
70474
70475         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
70476         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
70477         INT_FAST*_MIN, INTPTR_MIN.
70478
70479 2006-07-25  Bruno Haible  <bruno@clisp.org>
70480
70481         * modules/version-etc (Depends-on): Add stdarg.
70482
70483 2006-07-25  Bruno Haible  <bruno@clisp.org>
70484
70485         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
70486         complex commands.
70487
70488 2006-07-25  Bruno Haible  <bruno@clisp.org>
70489
70490         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
70491         defined in <stdarg.h> or config.h.
70492
70493 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70494
70495         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
70496         (gl_STDIO_SAFER): Remove.
70497
70498 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70499
70500         * MODULES.html.sh (File stream based Input/Output):
70501         Add fopen-safer, tmpfile-safer; remove stdio-safer.
70502         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
70503         * modules/fopen-safer, modules/tmpfile-safer: New files.
70504         * modules/stdio-safer: Remove.
70505
70506 2006-07-24  Bruno Haible  <bruno@clisp.org>
70507
70508         * modules/tmpdir: New file.
70509         * MODULES.html.sh (File system functions): Add it.
70510
70511 2006-07-24  Bruno Haible  <bruno@clisp.org>
70512
70513         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
70514         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
70515
70516 2006-07-24  Bruno Haible  <bruno@clisp.org>
70517
70518         * modules/clean-temp: New file.
70519
70520 2006-07-24  Bruno Haible  <bruno@clisp.org>
70521
70522         * m4/tmpdir.m4: New file, from GNU gettext.
70523
70524 2006-07-24  Bruno Haible  <bruno@clisp.org>
70525
70526         * lib/tmpdir.h: New file, from GNU gettext.
70527         * lib/tmpdir.c: New file, from GNU gettext.
70528
70529 2006-07-24  Bruno Haible  <bruno@clisp.org>
70530
70531         * lib/clean-temp.h: New file, from GNU gettext.
70532         * lib/clean-temp.c: New file, from GNU gettext.
70533
70534 2006-07-23  Eric Blake  <ebb9@byu.net>
70535
70536         * modules/stdio-safer (Files): Add tmpfile-safer.c.
70537         (Depends-on): Add binary-io.
70538
70539 2006-07-23  Eric Blake  <ebb9@byu.net>
70540
70541         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
70542
70543 2006-07-23  Eric Blake  <ebb9@byu.net>
70544
70545         * lib/tmpfile-safer.c: New file.
70546         * lib/stdio-safer.h (fopen_safer): Add prototype.
70547         * lib/stdio--.h (tmpfile): Make safer.
70548
70549 2006-07-23  Bruno Haible  <bruno@clisp.org>
70550
70551         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
70552         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
70553         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
70554         gl_linked_remove_at): Use it.
70555
70556 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70557         and Simon Josefsson <jas@extundo.com>
70558
70559         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
70560
70561         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
70562
70563 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70564
70565         * modules/close-stream: New file.
70566         * modules/closeout (Description): Make it clear that it exits
70567         with a diagnostic on error.
70568         (Depends-on): Add close-stream.  Remove fpending, stdbool.
70569         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
70570
70571 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70572
70573         * m4/close-stream.m4: New file.
70574
70575 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70576
70577         * lib/close-stream.c, lib/close-stream.h: New files.
70578
70579 2006-07-22  Bruno Haible  <bruno@clisp.org>
70580
70581         Merge from GNU gettext 0.15.
70582
70583         2006-05-01  Bruno Haible  <bruno@clisp.org>
70584
70585                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
70586
70587         2006-07-22  Bruno Haible  <bruno@clisp.org>
70588
70589                 * modules/javaversion: New file.
70590                 * MODULES.html.sh (Java): Add javaversion.
70591
70592         2006-03-12  Bruno Haible  <bruno@clisp.org>
70593
70594                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
70595
70596         2005-12-04  Bruno Haible  <bruno@clisp.org>
70597
70598                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
70599                 (untested).
70600
70601         2006-06-21  Bruno Haible  <bruno@clisp.org>
70602
70603                 Avoid warnings from recent versions of mcs.
70604                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
70605                 -o, -L, -r any more. Use options documented since mcs-1.0
70606                 instead. Similarly for -g.
70607
70608         2005-12-04  Bruno Haible  <bruno@clisp.org>
70609
70610                 * build-aux/csharpcomp.sh.in: Suffix for resources is
70611                 .resources, not .resource.
70612
70613         2005-07-09  Bruno Haible  <bruno@clisp.org>
70614
70615                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
70616                 add a .dll suffix.
70617                 Reported by Mark Junker <mjscod@gmx.de>.
70618
70619         2006-07-22  Bruno Haible  <bruno@clisp.org>
70620
70621                 * modules/gettext: Upgrade to gettext-0.15.
70622                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
70623                 m4/visibility.m4.
70624                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
70625
70626 2006-07-22  Bruno Haible  <bruno@clisp.org>
70627
70628         Merge from GNU gettext 0.15.
70629
70630         2006-03-25  Bruno Haible  <bruno@clisp.org>
70631
70632                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
70633
70634         2006-07-21  Bruno Haible  <bruno@clisp.org>
70635
70636                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
70637                 "1.1".
70638
70639         2006-05-09  Bruno Haible  <bruno@clisp.org>
70640
70641                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
70642                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
70643                 for the conftestver execution.
70644
70645         2006-05-01  Bruno Haible  <bruno@clisp.org>
70646
70647                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
70648                 optional target-version argument. Verify that the compiler
70649                 groks source of the specified source-version, or add -source
70650                 option as necessary. Verify that the compiler produces
70651                 bytecode in the specified target-version, or add -target and
70652                 -source options as necessary. Make the result of the test
70653                 available as variable CONF_JAVAC. Also log error output in
70654                 config.log.
70655
70656         2006-03-11  Bruno Haible  <bruno@clisp.org>
70657
70658                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
70659
70660         2006-05-09  Bruno Haible  <bruno@clisp.org>
70661
70662                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
70663                 CLASSPATH_SEPARATOR to a semicolon.
70664
70665         2006-03-12  Bruno Haible  <bruno@clisp.org>
70666
70667                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
70668                 available as variable CONF_JAVA, for subsequent autoconf
70669                 tests. Also log error output in config.log.
70670
70671         2006-07-19  Bruno Haible  <bruno@clisp.org>
70672
70673                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
70674                 that getline works on glibc2 systems. Needed to avoid trouble
70675                 in relocatable.c.
70676                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
70677
70678         2005-12-04  Bruno Haible  <bruno@clisp.org>
70679
70680                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
70681                 launcher (untested).
70682
70683         2005-12-04  Bruno Haible  <bruno@clisp.org>
70684
70685                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
70686
70687         2006-07-22  Bruno Haible  <bruno@clisp.org>
70688
70689                 * gettext.m4: Update from GNU gettext-0.15.
70690                 * nls.m4: Likewise.
70691                 * po.m4: Likewise.
70692                 * inttypes-pri.m4: Likewise.
70693                 * inttypes-h.m4: Renamed from inttypes.m4.
70694                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
70695
70696 2006-07-22  Bruno Haible  <bruno@clisp.org>
70697
70698         Merge from GNU gettext 0.15.
70699
70700         2005-07-05  Bruno Haible  <bruno@clisp.org>
70701
70702                 * printf-args.c (printf_fetchargs): Work around broken
70703                 definition of wint_t on mingw.
70704
70705         2005-02-12  Bruno Haible  <bruno@clisp.org>
70706
70707                 * xallocsa.h: Add extern "C" for C++.
70708
70709         2006-05-17  Bruno Haible  <bruno@clisp.org>
70710
70711                 Cygwin portability.
70712                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
70713
70714         2006-04-30  Bruno Haible  <bruno@clisp.org>
70715
70716                 * progreloc.c: Include <mach-o/dyld.h> if available.
70717                 (find_executable): Use _NSGetExecutablePath when possible.
70718
70719         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70720
70721                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
70722                 function.
70723
70724         2005-12-29  Bruno Haible  <bruno@clisp.org>
70725
70726                 * progreloc.c (set_program_name_and_installdir): Fix
70727                 compilation error.
70728
70729         2005-12-04  Bruno Haible  <bruno@clisp.org>
70730
70731                 Cygwin portability.
70732                 * progreloc.c: Include <windows.h> also on Cygwin.
70733                 (find_executable): Add support for Cygwin.
70734                 (set_program_name_and_installdir): Handle also platforms with
70735                 nonempty EXEEXT.
70736
70737         2006-07-11  Bruno Haible  <bruno@clisp.org>
70738
70739                 * javacomp.c: Fix a comment.
70740                 Reported by Jim Meyering.
70741
70742         2006-04-30  Bruno Haible  <bruno@clisp.org>
70743
70744                 * javacomp.h (compile_java_class): Add source_version,
70745                 target_version arguments.
70746                 * javacomp.c: Rewritten to choose only a compiler that
70747                 respects the specified source_version and target_version.
70748
70749         2006-06-27  Bruno Haible  <bruno@clisp.org>
70750
70751                 Assume correct S_ISDIR macro.
70752                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
70753
70754         2006-07-22  Bruno Haible  <bruno@clisp.org>
70755
70756                 * javaversion.h: New file, from GNU gettext.
70757                 * javaversion.c: New file, from GNU gettext.
70758                 * javaversion.java: New file, from GNU gettext.
70759                 * javaversion.class: New file, from GNU gettext.
70760
70761         2006-05-17  Bruno Haible  <bruno@clisp.org>
70762
70763                 Cygwin portability.
70764                 * javaexec.c (execute_java_class): Test for jview program
70765                 also on Cygwin.
70766
70767         2006-04-09  Bruno Haible  <bruno@clisp.org>
70768
70769                 * fatal-signal.c: Don't include string.h.
70770                 (at_fatal_signal): Use a copying loop instead of memcpy.
70771
70772         2005-12-04  Bruno Haible  <bruno@clisp.org>
70773
70774                 * csharpexec.c: Add support for 'clix' launcher (untested).
70775                 (execute_csharp_using_sscli): New function.
70776                 (execute_csharp_program): Call it.
70777
70778         2006-06-21  Bruno Haible  <bruno@clisp.org>
70779
70780                 Avoid warnings from recent versions of mcs.
70781                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
70782                 -o, -L, -r any more. Use options documented since mcs-1.0
70783                 instead. Similarly for -g.
70784
70785         2005-07-09  Bruno Haible  <bruno@clisp.org>
70786
70787                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
70788                 add a .dll suffix.
70789                 Reported by Mark Junker <mjscod@gmx.de>.
70790
70791         2006-06-17  Bruno Haible  <bruno@clisp.org>
70792
70793                 * config.charset: Update for NetBSD 3.0.
70794
70795         2006-05-17  Bruno Haible  <bruno@clisp.org>
70796
70797                 Cygwin portability.
70798                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
70799
70800         2006-05-16  Bruno Haible  <bruno@clisp.org>
70801
70802                 * localcharset.c [CYGWIN]: Include <windows.h>.
70803                 (get_charset_aliases): For Cygwin, return the same CPxxx
70804                 aliases list as under WIN32.
70805                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
70806                 the environment variables. Fall back to GetACP().
70807
70808         2006-04-05  Bruno Haible  <bruno@clisp.org>
70809
70810                 * config.charset: Update Juan Manuel Guerrero's address.
70811
70812         2005-02-12  Bruno Haible  <bruno@clisp.org>
70813
70814                 * allocsa.h: Add extern "C" for C++.
70815
70816         2005-02-10  Bruno Haible  <bruno@clisp.org>
70817
70818                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
70819                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
70820
70821         2006-07-22  Bruno Haible  <bruno@clisp.org>
70822
70823                 * gettext.h: Update to GNU gettext-0.15.
70824
70825 2006-07-22  Bruno Haible  <bruno@clisp.org>
70826
70827         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
70828         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
70829         lib-prefix.m4, longdouble.m4, ssize_t.m4.
70830
70831 2006-07-21  Eric Blake  <ebb9@byu.net>
70832
70833         * modules/stdlib-safer: New file.
70834         * MODULES.html.sh (File stream based Input/Output): Add
70835         stdlib-safer.
70836
70837 2006-07-21  Eric Blake  <ebb9@byu.net>
70838
70839         * lib/stdlib-safer.h: New file from coreutils, required by
70840         stdlib--.h.
70841
70842 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
70843
70844         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
70845
70846 2006-07-20  Bruno Haible  <bruno@clisp.org>
70847
70848         * gnulib-tool: Recognize new option --assume-autoconf.
70849         (autoconf_minversion): New variable.
70850         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
70851
70852 2006-07-20  Bruno Haible  <bruno@clisp.org>
70853
70854         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
70855
70856 2006-07-19  Derek R. Price  <derek@ximbiot.com>
70857
70858         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
70859         Reindent and repaginate.
70860
70861 2006-07-19  Derek Price  <derek@ximbiot.com>
70862
70863         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
70864         Correct grammar.
70865
70866 2006-07-17  Bruno Haible  <bruno@clisp.org>
70867
70868         * modules/list: New file.
70869         * modules/array-list: New file.
70870         * modules/carray-list, modules/carray-list-tests: New files.
70871         * modules/linked-list, modules/linked-list-tests: New files.
70872         * modules/avltree-list, modules/avltree-list-tests: New files.
70873         * modules/rbtree-list, modules/rbtree-list-tests: New files.
70874         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
70875         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
70876         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
70877         * modules/oset: New file.
70878         * modules/array-oset: New file.
70879         * modules/avltree-oset, modules/avltree-oset-tests: New files.
70880         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
70881         * tests/test-carray_list.c: New file.
70882         * tests/test-linked_list.c: New file.
70883         * tests/test-avltree_list.c: New file.
70884         * tests/test-rbtree_list.c: New file.
70885         * tests/test-linkedhash_list.c: New file.
70886         * tests/test-avltreehash_list.c: New file.
70887         * tests/test-rbtreehash_list.c: New file.
70888         * tests/test-avltree_oset.c: New file.
70889         * tests/test-rbtree_oset.c: New file.
70890         * MODULES.html.sh (Container data structures): New section.
70891
70892 2006-07-17  Bruno Haible  <bruno@clisp.org>
70893
70894         * m4/gl_list.m4: New file.
70895
70896 2006-07-17  Bruno Haible  <bruno@clisp.org>
70897
70898         * lib/gl_list.h: New file.
70899         * lib/gl_list.c: New file.
70900         * lib/gl_array_list.h: New file.
70901         * lib/gl_array_list.c: New file.
70902         * lib/gl_carray_list.h: New file.
70903         * lib/gl_carray_list.c: New file.
70904         * lib/gl_linked_list.h: New file.
70905         * lib/gl_linked_list.c: New file.
70906         * lib/gl_anylinked_list1.h: New file.
70907         * lib/gl_anylinked_list2.h: New file.
70908         * lib/gl_avltree_list.h: New file.
70909         * lib/gl_avltree_list.c: New file.
70910         * lib/gl_anyavltree_list1.h: New file.
70911         * lib/gl_anyavltree_list2.h: New file.
70912         * lib/gl_rbtree_list.h: New file.
70913         * lib/gl_rbtree_list.c: New file.
70914         * lib/gl_anyrbtree_list1.h: New file.
70915         * lib/gl_anyrbtree_list2.h: New file.
70916         * lib/gl_anytree_list1.h: New file.
70917         * lib/gl_anytree_list2.h: New file.
70918         * lib/gl_linkedhash_list.h: New file.
70919         * lib/gl_linkedhash_list.c: New file.
70920         * lib/gl_anyhash_list1.h: New file.
70921         * lib/gl_anyhash_list2.h: New file.
70922         * lib/gl_avltreehash_list.h: New file.
70923         * lib/gl_avltreehash_list.c: New file.
70924         * lib/gl_rbtreehash_list.h: New file.
70925         * lib/gl_rbtreehash_list.c: New file.
70926         * lib/gl_anytreehash_list1.h: New file.
70927         * lib/gl_anytreehash_list2.h: New file.
70928
70929         * lib/gl_oset.h: New file.
70930         * lib/gl_oset.c: New file.
70931         * lib/gl_array_oset.h: New file.
70932         * lib/gl_array_oset.c: New file.
70933         * lib/gl_avltree_oset.h: New file.
70934         * lib/gl_avltree_oset.c: New file.
70935         * lib/gl_rbtree_oset.h: New file.
70936         * lib/gl_rbtree_oset.c: New file.
70937         * lib/gl_anytree_oset.h: New file.
70938
70939 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70940
70941         * m4/mkancesdirs.m4: New file.
70942         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
70943         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
70944         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
70945         it.
70946
70947 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70948
70949         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
70950         * lib/mkancesdirs.h: New files.
70951         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
70952         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
70953         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
70954         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
70955         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
70956         callers changed.  Revamp internals significantly, by not
70957         attempting to create directories that are temporarily more
70958         permissive than the final results.  Do not attempt to use
70959         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
70960         This removes some race conditions, fixes some bugs, and simplifies
70961         things.  Use new dirchownmod function to do owner and mode changes.
70962         * lib/mkdir-p.h: Likewise.
70963         * lib/modechange.c (octal_to_mode): New function.
70964         (struct mode_change): New member mentioned.
70965         (make_node_op_equals): New arg mentioned.  All callers changed.
70966         (mode_compile): Keep track of which mode bits the user has explicitly
70967         mentioned.
70968         (mode_adjust): New arg DIR, so that we implement the X op correctly.
70969         New arg PMODE_BITS, to keep track of which mode bits the user
70970         mentioned; it treats S_ISUID and S_ISGID speciall.
70971         All callers changed.
70972         * lib/modechange.h: Likewise.
70973
70974 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70975
70976         * MODULES.html.sh: Add mkancestors.
70977         * modules/mkancesdirs: New module.
70978         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
70979         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
70980         The chdir-safer and afs files are now orphans; I'll remove them
70981         unless someone speaks up.
70982         Add lib/dirchownmod.c, lib/dirchownmod.h.
70983         (Depends-on): Remove alloca, chown, save-cwd, dirname.
70984         Add lchown, mkancesdirs.
70985         (Maintainer): Add self.
70986
70987 2006-07-15  Karl Berry  <karl@gnu.org>
70988
70989         * gnulib-tool: help message wording/arrangement.
70990
70991 2006-07-14  Simon Josefsson  <jas@extundo.com>
70992
70993         * doc/gnulib.texi (Libtool and Windows): New section.
70994
70995 2006-07-12  Simon Josefsson  <jas@extundo.com>
70996
70997         * modules/gendocs (License): Fix license, approved by Karl.
70998
70999 2006-07-12  Eric Blake  <ebb9@byu.net>
71000
71001         * MODULES.html.sh: Add gendocs.
71002
71003 2006-07-11  Eric Blake  <ebb9@byu.net>
71004
71005         * modules/fdl: New module, to install doc/fdl.texi.
71006         * MODULES.html.sh: Add new section for documentation modules.
71007         * gnulib-tool: Avoid space-tab.
71008         (--doc-base): New option, to manage files from doc.
71009
71010 2006-07-11  Eric Blake  <ebb9@byu.net>
71011
71012         * m4/absolute-header.m4: Fix comments to match recent change.
71013
71014 2006-07-11  Eric Blake  <ebb9@byu.net>
71015
71016         * gnulib-tool: List --doc-base before --tests-base.
71017
71018 2006-07-11  Derek R. Price  <derek@ximbiot.com>
71019
71020         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
71021
71022 2006-07-11  Bruno Haible  <bruno@clisp.org>
71023
71024         * README: Mention where to put documentation.
71025
71026 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71027
71028         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
71029
71030 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
71031
71032         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
71033         to stdint.m4.
71034
71035 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
71036
71037         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
71038         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
71039         "no/such/file/stdint.h" when there is no such file, so that
71040         the resulting C code can be parsed by dodgy compilers.
71041         Problems reported by Bob Proulx.
71042
71043 2006-07-10  Derek R. Price  <derek@ximbiot.com>
71044
71045         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
71046         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
71047         macros into the GNU _D_EXACT_NAMLEN.
71048         * lib/savedir.c:  Likewise.
71049         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
71050
71051 2006-07-10  Derek R. Price  <derek@ximbiot.com>
71052         and Paul Eggert  <eggert@cs.ucla.edu>
71053
71054         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
71055         * m4/savedir.m4:
71056         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
71057         macros into the GNU _D_EXACT_NAMLEN.
71058
71059 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71060
71061         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
71062         around the absolute name, to work around a problem with the HP-UX
71063         11.23 native C compiler, reported by Bob Proulx.
71064
71065 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71066
71067         * doc/maintain.texi, make-stds.texi: Sync from
71068         <http://savannah.gnu.org/projects/gnustandards>.
71069
71070 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71071
71072         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
71073
71074 2006-07-09  Jim Meyering  <jim@meyering.net>
71075
71076         * m4/glob.m4: Remove a doubled word in a comment.
71077
71078 2006-07-09  Jim Meyering  <jim@meyering.net>
71079
71080         * lib/argp-pv.c: Remove a doubled word in a comment.
71081         * lib/check-version.c (check_version): Likewise.
71082         * lib/javacomp.c (compile_java_class): Likewise.
71083
71084 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
71085
71086         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
71087         for the benefit of people using Autoconf 2.60.  If you want to
71088         support older Autoconf versions you can copy m4/onceonly_2_57.m4
71089         (or m4/onceonly.m4, if pre-2.57) manually.
71090
71091 2006-07-08  Jim Meyering  <jim@meyering.net>
71092
71093         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
71094         comment.
71095         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
71096         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
71097         comment.
71098
71099 2006-07-08  Jim Meyering  <jim@meyering.net>
71100
71101         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
71102
71103 2006-07-07  Simon Josefsson  <jas@extundo.com>
71104
71105         * tests/test-crc.c: Change expected crc value, the test vector
71106         were probably computed using the old broken crc.c?
71107
71108 2006-07-06  Simon Josefsson  <jas@extundo.com>
71109
71110         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
71111         now the canonical place for the M4 file).
71112
71113         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
71114         from the sys_socket dependency now.
71115
71116         * modules/inet_pton (Files): Ditto.
71117
71118         * modules/inet_ntop (Files): Ditto.
71119
71120 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71121
71122         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
71123         not gl_PREREQ_GETUSERSHELL.
71124
71125 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71126
71127         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
71128         with only one argument, for Autoconf 2.60.
71129         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
71130         expand to nothing, so add a shell command to avoid syntax error.
71131         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
71132
71133 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71134
71135         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
71136
71137 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71138
71139         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
71140         no longer needed.  Check for isblank decl.
71141         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
71142         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
71143         of existence.
71144
71145 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71146
71147         * lib/getloadavg.c: Use __VMS, not VMS.
71148         * lib/getopt.c: Likewise.
71149         * lib/getpagesize.h: Likewise.
71150         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
71151         and probably does not work.
71152
71153 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71154
71155         * lib/.cppi-disable: Add wcwidth.
71156         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
71157         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
71158         (ISGRAPH): Remove.  All uses changed to isgraph.
71159         (FOLD) [!defined _LIBC]: Remove special case.
71160         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
71161         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
71162         HAVE_ISBLANK.
71163         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
71164         case.
71165
71166 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71167
71168         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
71169         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
71170         brackets.  Other minor changes to suppress some compiler
71171         warnings.
71172
71173 2006-07-06  Derek R. Price  <derek@ximbiot.com>
71174         and Paul Eggert  <eggert@cs.ucla.edu>
71175
71176         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
71177         of invoking obsolescent AC_HEADER_DIRENT macro.
71178         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
71179         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
71180         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
71181         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
71182         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
71183         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
71184         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
71185         * m4/readdir.m4: Remove; no longer needed.
71186
71187 2006-07-06  Derek R. Price  <derek@ximbiot.com>
71188         and Paul Eggert  <eggert@cs.ucla.edu>
71189
71190         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
71191         Don't worry about this obsolete case any more.
71192         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
71193         directories.
71194         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
71195         worry about this obsolete case any more.
71196         * lib/fts.c: Likewise.
71197         * lib/getcwd.c: Likewise.
71198         * lib/glob.h: Likewise.
71199         * lib/savedir.c: Likewise.
71200
71201 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71202
71203         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
71204         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
71205         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
71206         needed.
71207         All uses removed.
71208         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71209         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
71210         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
71211         needed.
71212         * m4/getdate.m4 (gl_GETDATE): Likewise.
71213         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71214         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71215         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71216         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71217         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
71218         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71219         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
71220         needed.
71221
71222 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71223
71224         * lib/memcasecmp.c: Include <limits.h>.
71225         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
71226         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
71227         Don't assume isdigit succeeds only on '0' through '9'.
71228
71229 2006-07-05  Eric Blake  <ebb9@byu.net>
71230
71231         * modules/getaddrinfo (Depends-on): Add snprintf.
71232
71233 2006-07-05  Eric Blake  <ebb9@byu.net>
71234
71235         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
71236         to avoid 'header present but could not be compiled' on cygwin.
71237
71238 2006-07-05  Eric Blake  <ebb9@byu.net>
71239
71240         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
71241         missing from netdb.h.
71242         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
71243
71244 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71245
71246         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
71247         no longer needed.
71248         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
71249         * m4/getdate.m4 (gl_GETDATE): Likewise.
71250         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71251         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71252         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71253         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71254         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71255
71256 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71257
71258         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
71259         All uses of is_space replaced by isspace.
71260         * lib/exit.h: Don't talk about STDC_HEADERS.
71261         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
71262         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
71263         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
71264         replaced by isprint etc.
71265         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
71266         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
71267         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
71268         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
71269         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
71270         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
71271
71272 2006-07-05  Bruno Haible  <bruno@clisp.org>
71273
71274         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
71275         the function exists, before testing against AIX.
71276         Reported by Martin Lambers <marlam@marlam.de>.
71277
71278 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
71279
71280         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
71281         From Mark D. Baushke.
71282
71283 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
71284
71285         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
71286         to the absolute name, not just one, to bypass Sun C 5.8's
71287         "warning: #include of /usr/include/... may be non-portable".
71288
71289 2006-07-04  Eric Blake  <ebb9@byu.net>
71290
71291         * modules/dirname-tests: New test module.
71292         * tests/test-dirname.c: New file, replacing dirname.c
71293         TEST_DIRNAME section that was recently deleted.
71294
71295 2006-07-04  Bruno Haible  <bruno@clisp.org>
71296
71297         Assume ANSI C header files and <ctype.h> functions.
71298         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
71299         (mbsnwidth): Use isprint, iscntrl instead.
71300
71301 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71302
71303         Merge from coreutils.
71304         * MODULES.html.sh: Add xstrtold.
71305         * modules/xstrtold: New file.
71306         * modules/cycle-check (Files): Add lib/same-inode.h.
71307         * modules/dirname (Files): Add m4/double-slash-root.m4.
71308         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
71309         * modules/mkdir-p (Files): Add lib/same-inode.h.
71310         * modules/same (Files): Add lib/same-inode.h.
71311
71312 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71313
71314         * m4/absolute-header.m4: Renamed from full-header-path.m4.
71315         This is to keep the terminology clean; POSIX talks about
71316         "absolute pathnames", not "full pathnames", but the GNU
71317         Coding Standards say to use "path" for something else;
71318         so use "absolute" to keep both sides happy.
71319         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
71320         Set gl_absolute_header, not gl_full_header_path.
71321         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
71322         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
71323         All uses changed.
71324
71325         Merge from coreutils.
71326
71327         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71328
71329         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
71330         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
71331         want to require the building of c-strtod.o.
71332         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
71333         needs -lm directly.
71334         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
71335
71336         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71337
71338         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
71339         --as-needed option if available.  Problem reported by Albert Chin in
71340         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
71341         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
71342         cc merely issues a bunch of annoying warnings for --as-needed
71343         (this problem was reported by Bob Proulx).  Also, try linking with
71344         -lm to detect a bug in binutils 2.16 (this problem was reported
71345         by Ralf Wildenhues).
71346
71347         2006-06-18  Jim Meyering  <jim@meyering.net>
71348
71349         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
71350         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
71351         macro.
71352         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
71353         also check for glibc-2.4's abort-inducing bug.
71354
71355         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
71356         Low-probability clean-up should be to use rmdir to get rid of
71357         the just-created directory, not unlink.
71358
71359         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
71360         configure fail, and request a bug report to inform us about it.
71361         Add a comment that, barring reports to the contrary, in 2007 we'll
71362         assume ftruncate is universally available.
71363
71364         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71365
71366         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
71367
71368         2006-03-12  Jim Meyering  <jim@meyering.net>
71369
71370         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
71371         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
71372         * m4/same.m4 (gl_SAME): Likewise.
71373         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
71374
71375         2006-03-11  Eric Blake  <ebb9@byu.net>
71376
71377         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
71378         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
71379         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
71380         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
71381
71382 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71383
71384         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
71385         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
71386         reported by Mark D. Baushke, one in
71387         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
71388
71389         Merge from coreutils.
71390
71391         * lib/.cppi-disable: Add stdint_.h.
71392         * lib/.cvsignore: Add stdint.h.
71393
71394         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71395
71396         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
71397         both double and long double versions.
71398         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
71399         * lib/xstrtold.c: New file.
71400         * lib/xstrtod.h (xstrtold): New decl.
71401
71402         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
71403
71404         * lib/filemode.c (setst): Remove.
71405         (strmode): Rewrite to avoid setst.  This makes the code shorter,
71406         (arguably) clearer, and the generated code is a bit smaller on my
71407         Debian GNU/Linux stable x86 host.
71408
71409         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71410
71411         * lib/filemode.c: Include "filemode.h" first, to test the interface.
71412         Assume that filemode.h includes sys/types.h and sys/stat.h.
71413         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
71414         (ftypelet): Reorder to put common cases first, for efficiency.
71415         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
71416         to do 'M'.
71417         (strmode): Renamed from mode_string, and now stores 12 bytes instead
71418         of 10, for compatibility with FreeBSD.  All callers changed.
71419         (filemodestring): Now stores 12 bytes instead of 10, and sets file
71420         types that can't be deduced solely from st_mode.  First arg is now a
71421         const pointer.
71422         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
71423         (strmode): Renamed from mode_string.
71424         (filemodestring): New decl.
71425         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
71426         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
71427         needed.
71428         (S_ISPORT, S_ISWHT): New macros, if not already defined.
71429
71430         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
71431
71432         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
71433         fsusage.h now does that.  Include fsusage.h first, to test interface.
71434         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
71435         at most one method (the old code could have generated decls that
71436         didn't conform to C89, not that this was ever exercised).
71437         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
71438
71439         2006-03-19  Jim Meyering  <jim@meyering.net>
71440
71441         Work even in a chroot where d_ino values for entries in "/"
71442         don't match the stat.st_ino values for the same names.
71443         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
71444         number, iterate through all entries again, using lstat instead.
71445         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
71446         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
71447
71448         * lib/getcwd.c (__getcwd): Clarify a comment.
71449         Use memcpy in place of a call to strcpy.
71450
71451         2006-03-12  Jim Meyering  <jim@meyering.net>
71452
71453         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
71454         matches that of the current directory (which we're about to chdir ".."
71455         out of), then save the dev-ino of the parent, instead.
71456
71457         * lib/same-inode.h (SAME_INODE): New file/macro.
71458         * lib/chdir-safer.c (SAME_INODE): Remove definition.
71459         Include "same-inode.h", instead.
71460         * lib/same.c: Likewise.
71461         * lib/cycle-check.h: Include "same-inode.h".
71462         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
71463         * lib/cycle-check.c (SAME_INODE): Remove definition.
71464         * lib/root-dev-ino.h: Include "same-inode.h".
71465
71466         2006-03-11  Eric Blake  <ebb9@byu.net>
71467
71468         * lib/same.c (same_name): s/base_name/last_component/
71469         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
71470         * lib/filenamecat.c (file_name_concat): Likewise.
71471
71472         2006-03-11  Eric Blake  <ebb9@byu.net>,
71473                     Paul Eggert  <eggert@cs.ucla.edu>
71474
71475         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
71476         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
71477         drive prefix.
71478         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
71479         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
71480         (last_component): New method.
71481         * lib/dirname.c (dir_len): Determine when drive letters need a
71482         subsequent slash.  Preserve // when it is special.
71483         (dir_name): Don't append dot when drive letter is absolute.
71484         [TEST_DIRNAME]: Move into a full-blown gnulib test.
71485         * lib/basename.c (base_name): New semantics - malloc the result.
71486         Preserve // when it is special.  Preserve relative files that look
71487         like drive letters.
71488         (base_len): Preserve // when it is special.
71489         (last_component): New method, similar to old base_name semantics.
71490         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
71491         base_name.  Strip redundant slashes from ///.
71492
71493 2006-07-03  Jim Meyering  <jim@meyering.net>
71494
71495         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
71496         macro is used before the first cycle_check call.
71497
71498 2006-07-03  Eric Blake  <ebb9@byu.net>
71499
71500         * modules/dirname (Depends-on): Add xstrndup.
71501
71502 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71503
71504         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
71505         test cases, so that config.log is a bit easier to follow.
71506
71507 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71508
71509         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
71510         both are 64 bits, since this seems to be the tradition, and this
71511         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
71512         we ever run into a host that prefers long long to long in this
71513         case, we'll need another configure-time test.  Problem reported by
71514         Jim Meyering.
71515
71516 2006-07-02  Eric Blake  <ebb9@byu.net>
71517
71518         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
71519
71520 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71521
71522         * modules/inttypes (Depends-on): No longer depends on stdint.
71523         * modules/stdint (Description): Say more about assumptions.
71524         Say that the fast types might differ.  Say macros are used.
71525         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
71526         (Makefile.am): Revise list of substituted symbols to match
71527         new stdint.m4.
71528         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
71529         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
71530         * tests/test-stdint.c (verify_same_types)
71531         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
71532         the code conforms to C99/C89.
71533         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
71534         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
71535
71536 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71537
71538         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
71539         but fix a bug, by requiring at least 64 bits.
71540         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
71541         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
71542         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
71543         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
71544
71545         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
71546         changes.  Make 2.59 a prerequisite.  Check and substitute for
71547         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
71548         inttypes.h.  Do not use special include files; just use the
71549         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
71550         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
71551         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
71552         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
71553         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
71554         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
71555         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
71556         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
71557         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
71558         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
71559         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
71560         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
71561         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
71562         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
71563         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
71564         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
71565         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
71566         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
71567         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
71568         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
71569         WINT_MAX.  Check for C99 conformance more strictly, by detecting
71570         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
71571         not check for things that C99 does not require, e.g., int8_t.  If
71572         a test isn't needed unless <stdint.h> isn't working, and is
71573         unlikely to be needed for any other reason, then don't do it
71574         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
71575         size_t, since we assume C89 freestanding at least.  Do not check
71576         for sig_atomic_t, wchar_t, or wint_t, since the code now does
71577         the right thing even if the types are not defined.  Instead use:
71578         (gl_STDINT_TYPE_PROPERTIES): New macro.
71579         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
71580         testing whether <sys/types.h> clashes, as Autoconf does this for
71581         us now.  All uses removed.
71582         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
71583         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
71584         (gl_CHECK_TYPE_SAME):
71585         Remove; no longer needed.
71586         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
71587         exists, since we'll return 0 anyway in that case.
71588         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
71589
71590 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71591
71592         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
71593         possible collision with system files.
71594         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
71595         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
71596         WCHAR_MIN and WCHAR_MAX in this case.
71597         (<stddef.h>): Do not include; no longer needed.
71598         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
71599         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
71600         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
71601         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
71602         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
71603         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
71604         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
71605         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
71606         !defined(__c99))]: Include in this case too, since it's harmless
71607         now.
71608         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
71609         dangerous to do so.
71610         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
71611         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
71612         (_STDINT_MIN, _STDINT_MAX): New macros.
71613         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
71614         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
71615         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
71616         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
71617         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
71618         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
71619         macros, not typedefs; this simplifies things quite a bit.
71620         Use long int for all types narrower than int64_t.
71621         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
71622         Define in terms of long long int or int64_t or long int,
71623         not int64_t or int32_t.  This saves some compile-time testing.
71624         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
71625         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
71626         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
71627         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
71628         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
71629         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
71630         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
71631         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
71632         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
71633         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
71634         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71635         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71636         undef any previous version and define our own version, for
71637         simplicity and consistency with the new macros for types.
71638         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71639         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71640         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
71641         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
71642         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
71643         @WINT_T_SUFFIX@ to keep things simple here.
71644         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
71645         Simplify by assuming typical 8/16/32/64 host, since we're
71646         already doing that elsewhere anyway.
71647         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
71648         and assume long long int is 64 bits if available.  This
71649         speeds up 'configure'.
71650
71651 2006-07-01  Eric Blake  <ebb9@byu.net>
71652
71653         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
71654         Reported by Andreas Buening.
71655
71656 2006-07-01  Eric Blake  <ebb9@byu.net>
71657
71658         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
71659
71660 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71661
71662         * lib/getaddrinfo.c: fixed typo
71663
71664 2006-06-29  Jim Meyering  <jim@meyering.net>
71665
71666         * modules/strftime (Maintainer): Add my name, since with the
71667         FPRINTFTIME changes strftime.c has forked from glibc.
71668
71669 2006-06-29  Eric Blake  <ebb9@byu.net>
71670
71671         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
71672
71673 2006-06-29  Eric Blake  <ebb9@byu.net>
71674
71675         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
71676
71677 2006-06-29  Eric Blake  <ebb9@byu.net>
71678
71679         * lib/stat_.h: New file.
71680
71681 2006-06-29  Eric Blake  <ebb9@byu.net>
71682
71683         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
71684         unused static function.
71685
71686 2006-06-29  Eric Blake  <ebb9@byu.net>
71687
71688         * doc/functions.texi (Function Portability): Document missing lstat
71689         on mingw.
71690
71691 2006-06-29  Eric Blake  <ebb9@byu.net>
71692
71693         * MODULES.html.sh: Add sys_stat.
71694         * modules/sys_stat: New module.
71695         * modules/mkstemp (Depends-on): Add sys_stat.
71696
71697 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71698
71699         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
71700
71701 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71702
71703         * m4/c-bs-a.m4: Removed.
71704
71705 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71706
71707         * lib/strftime.c: Assume strftime() exists.
71708
71709 2006-06-29  Derek Price  <derek@ximbiot.com>
71710
71711         * modules/c-bs-a: Removed - \a is C89.
71712         * MODULES.html.sh: Remove c-bs-a.
71713
71714 2006-06-29  Bruno Haible  <bruno@clisp.org>
71715
71716         * modules/wcwidth (License): Change to LGPL.
71717
71718 2006-06-28  Simon Josefsson  <jas@extundo.com>
71719
71720         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
71721         on _WIN32.
71722
71723         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
71724         getnameinfo.
71725
71726 2006-06-28  Simon Josefsson  <jas@extundo.com>
71727
71728         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
71729
71730 2006-06-28  Simon Josefsson  <jas@extundo.com>
71731
71732         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
71733         functions there.  It will succeed on Windows XP, but on Windows
71734         2000 and (presumably) earlier, it will fail, and use the internal
71735         re-implementation.
71736         (use_win32_p): New function.
71737         (getaddrinfo): Use strtoul on servname, to support numeric ports.
71738         Support AI_NUMERICSERV to disable getservbyname.
71739         (getnameinfo): New function, only supports
71740         NI_NUMERICHOST|NI_NUMERICSERV for now.
71741
71742         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
71743         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
71744         getnameinfo.
71745
71746 2006-06-28  Eric Blake  <ebb9@byu.net>
71747
71748         * modules/wcwidth: New file.
71749         * modules/mbchar (Depends-on): Add wcwidth.
71750         * modules/mbswidth (Depends-on): Add wcwidth.
71751         * MODULES.html.sh: Add wcwidth.
71752
71753 2006-06-28  Eric Blake  <ebb9@byu.net>
71754
71755         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
71756         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
71757
71758 2006-06-28  Eric Blake  <ebb9@byu.net>
71759
71760         * lib/xvasprintf.h: Fix comments.
71761
71762 2006-06-28  Eric Blake  <ebb9@byu.net>
71763
71764         * lib/mbchar.h (wcwidth): Include wcwidth.h.
71765         * lib/mbswidth.c (wcwidth): Move from here...
71766         * lib/wcwidth.h: ...to this new file.
71767
71768 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71769
71770         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
71771
71772         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
71773         it's obsolete.
71774         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
71775
71776 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71777
71778         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
71779         Autoconf 2.60 says this stuff was obsolete.
71780
71781 2006-06-28  Bruno Haible  <bruno@clisp.org>
71782
71783         * modules/wcwidth (Files): Add m4/wchar_t.m4.
71784
71785 2006-06-28  Bruno Haible  <bruno@clisp.org>
71786
71787         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
71788         gt_TYPE_WCHAR_T.
71789
71790 2006-06-28  Bruno Haible  <bruno@clisp.org>
71791
71792         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
71793         declaration for wcwidth.
71794         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
71795
71796 2006-06-28  Bruno Haible  <bruno@clisp.org>
71797
71798         * lib/mkdtemp.c [MINGW]: Include <io.h>.
71799         (mkdir): Define using _mkdir.
71800
71801 2006-06-28  Bruno Haible  <bruno@clisp.org>
71802
71803         * lib/getaddrinfo.h: Fix POSIX URL.
71804         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
71805         _WIN32.
71806         (use_win32_p): Make static.
71807         (getaddrinfo): Reject service name if it is empty or does not consist
71808         solely of decimal digits, or if its value is > 65535.
71809         (getnameinfo): Remove useless casts.
71810
71811 2006-06-27  Simon Josefsson  <jas@extundo.com>
71812
71813         * modules/sys_select: New file, suggested by Bruno Haible, Paul
71814         Eggert and Martin Lambers.
71815
71816 2006-06-27  Simon Josefsson  <jas@extundo.com>
71817
71818         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
71819         Eggert and Martin Lambers.
71820
71821 2006-06-27  Bruno Haible  <bruno@clisp.org>
71822
71823         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
71824         result to 0, not to empty.
71825         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
71826
71827 2006-06-27  Bruno Haible  <bruno@clisp.org>
71828
71829         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
71830
71831 2006-06-26  Simon Josefsson  <jas@extundo.com>
71832
71833         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
71834         present.
71835
71836 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
71837
71838         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
71839         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
71840         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
71841
71842 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
71843
71844         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
71845
71846 2006-06-26  Bruno Haible  <bruno@clisp.org>
71847
71848         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
71849
71850 2006-06-26  Bruno Haible  <bruno@clisp.org>
71851
71852         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
71853
71854 2006-06-26  Bruno Haible  <bruno@clisp.org>
71855
71856         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
71857         SGI C compiler in pre-C99 mode.
71858         Suggested by Mark D. Baushke and Larry Jones.
71859
71860 2006-06-26  Bruno Haible  <bruno@clisp.org>
71861
71862         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
71863         WCHAR_MAX.
71864         Reported by Mark D. Baushke and Larry Jones.
71865
71866 2006-06-26  Bruno Haible  <bruno@clisp.org>
71867
71868         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
71869         in pre-C99 mode.
71870         Suggested by Mark D. Baushke and Larry Jones.
71871
71872 2006-06-23  Simon Josefsson  <jas@extundo.com>
71873             Bruno Haible  <bruno@clisp.org>
71874
71875         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
71876         Emit mostlyclean-local rule.
71877         (func_emit_tests_Makefile_am): Likewise.
71878         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
71879
71880 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
71881
71882         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
71883
71884 2006-06-23  Bruno Haible  <bruno@clisp.org>
71885
71886         * tests/test-stdint.c: Update to match ISO C 99 Technical
71887         Corrigendum 1.
71888
71889 2006-06-23  Bruno Haible  <bruno@clisp.org>
71890
71891         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
71892
71893 2006-06-23  Bruno Haible  <bruno@clisp.org>
71894
71895         * lib/stdint_.h: Treat IRIX like OpenBSD.
71896
71897 2006-06-23  Bruno Haible  <bruno@clisp.org>
71898
71899         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
71900         ISO C 99 Technical Corrigendum 1.
71901
71902 2006-06-22  Simon Josefsson  <jas@extundo.com>
71903
71904         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
71905         MinGW.
71906
71907 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71908
71909         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
71910         needed.  Some compiler complained about some of them.  Problem reported
71911         by Larry Jones in
71912         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
71913
71914 2006-06-21  Simon Josefsson  <jas@extundo.com>
71915
71916         * tests/test-getaddrinfo.c: New file.
71917
71918         * modules/getaddrinfo-tests: New file.
71919
71920         * MODULES.html.sh: Add inet_pton.
71921
71922         * modules/inet_pton: New file.
71923
71924 2006-06-21  Simon Josefsson  <jas@extundo.com>
71925
71926         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
71927         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
71928         of using the (limited) gnulib implementation on Windows XP.
71929
71930         * m4/inet_pton.m4: New file.
71931
71932 2006-06-21  Simon Josefsson  <jas@extundo.com>
71933
71934         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
71935         variable.
71936
71937         * lib/socket_.h: Don't define WINVER.
71938
71939         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
71940         slightly modified to work in gnulib.
71941
71942 2006-06-21  Simon Josefsson  <jas@extundo.com>
71943
71944         * doc/gnulib.texi (Windows sockets): Add.
71945
71946 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
71947
71948         * lib/read-file.c (fread_file): Start with buffer allocation of
71949         0 bytes rather than 1 byte; this simplifies the code.
71950         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
71951         code to free buffer and save/restore errno.
71952         (internal_read_file): Remove unused local.
71953
71954 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
71955
71956         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
71957         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
71958         Problem reported by Denis Excoffier in
71959         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
71960
71961 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71962
71963         * modules/sys_socket, modules/socklen: Include sys/types since
71964         FreeBSD 4.x's sys/socket.h needs it.
71965
71966 2006-06-19  Simon Josefsson  <jas@extundo.com>
71967
71968         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
71969
71970 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71971
71972         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
71973
71974 2006-06-19  Bruno Haible  <bruno@clisp.org>
71975
71976         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
71977         and FULL_PATH_INTTYPES_H in angle brackets.
71978         Reported by Mark D. Baushke <mdb@gnu.org>.
71979
71980 2006-06-17  Eric Blake  <ebb9@byu.net>
71981
71982         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
71983         errno.
71984
71985 2006-06-17  Bruno Haible  <bruno@clisp.org>
71986
71987         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
71988         <sys/inttypes.h>.
71989
71990 2006-06-17  Bruno Haible  <bruno@clisp.org>
71991
71992         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
71993         whether errno is declared. Assume <errno.h> declares errno.
71994
71995 2006-06-17  Bruno Haible  <bruno@clisp.org>
71996
71997         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
71998
71999 2006-06-17  Bruno Haible  <bruno@clisp.org>
72000
72001         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
72002         problem on Solaris 2.5.1.
72003
72004 2006-06-16  Eric Blake  <ebb9@byu.net>
72005
72006         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
72007         * lib/unicodeio.c [!defined errno]: Likewise.
72008         * lib/strtol.c [!defined errno]: Likewise.
72009         * lib/strtod.c [!defined errno]: Likewise.
72010
72011 2006-06-15  Eric Blake  <ebb9@byu.net>
72012
72013         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
72014
72015 2006-06-15  Eric Blake  <ebb9@byu.net>
72016
72017         * config/srclist.txt (ssize_t.m4): Lose sync.
72018
72019 2006-06-15  Bruno Haible  <bruno@clisp.org>
72020
72021         * modules/stdint (Files): Include m4/full-header-path.m4,
72022         m4/size_max.m4, m4/wchar_t.m4.
72023         (Makefile.am): Many more substitutions.
72024         * modules/stdint-tests: New file.
72025         * tests/test-stdint.c: New file.
72026
72027 2006-06-15  Bruno Haible  <bruno@clisp.org>
72028
72029         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
72030         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
72031         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
72032         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
72033         gl_CHECK_TYPE_SAME): New macros.
72034
72035 2006-06-15  Bruno Haible  <bruno@clisp.org>
72036
72037         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
72038
72039 2006-06-15  Bruno Haible  <bruno@clisp.org>
72040
72041         * lib/stdint_.h: Rewritten to be fully auto-configured.
72042         Fixes bug on HP-UX/IA64.
72043
72044 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
72045
72046         * lib/getdate.y (__attribute__): Don't define if already defined.
72047         Problem reported by Larry Jones.
72048         * lib/utimens.c (__attribute__): Likewise.
72049
72050 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
72051
72052         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
72053         reported by Andreas Schwab.
72054
72055 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72056             Bruno Haible  <bruno@clisp.org>
72057
72058         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
72059         check for the declaration of strnlen and a run test that exposes the
72060         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
72061         rpl_strndup.
72062
72063 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72064             Bruno Haible  <bruno@clisp.org>
72065
72066         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
72067
72068 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72069
72070         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
72071         compile test, for Tru64 4.0D.
72072
72073 2006-05-28  Karl Berry  <karl@gnu.org>
72074
72075         * config/srclist.txt (printf-args.c): lose sync.
72076
72077 2006-05-26  Martin Lambers  <marlam@marlam.de>
72078
72079         * lib/getpass.c: Updates the test for the native W32 API, and adds
72080         missing includes, thus fixing compilation warnings.
72081
72082 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72083
72084         * lib/exclude.c (exclude_fnmatch): New function.
72085         (excluded_file_name): Call exclude_fnmatch.
72086         * lib/exclude.h (excluded_file_name): New prototype
72087
72088 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
72089
72090         * lib/tempname.c (small_open, large_open): New macros.
72091         (__open, __open64) [!_LIBC]: Remove.
72092         (__gen_tempname): Use small_open and large_open instead of __open
72093         and __open64.  This fixes a portability bug on HP-UX 11.11i
72094         reported by Simon Wing-Tang in
72095         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
72096
72097 2006-05-24  Bruno Haible  <bruno@clisp.org>
72098
72099         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
72100         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
72101         Reported by Thorsten Maerz <torte@netztorte.de> via
72102         Aaron Stone <aaron@serendipity.cx>.
72103
72104 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72105
72106         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
72107         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
72108         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
72109         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
72110         not really conditional on the cache.
72111         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
72112
72113 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72114
72115         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
72116         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
72117         (my_usleep): Don't mishandle maximum value.
72118
72119 2006-05-19  Jim Meyering  <jim@meyering.net>
72120
72121         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
72122
72123 2006-05-17  Bruno Haible  <bruno@clisp.org>
72124
72125         Cygwin portability.
72126         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
72127
72128 2006-05-17  Bruno Haible  <bruno@clisp.org>
72129
72130         * lib/stdint_.h: Fix recognition of Cygwin.
72131
72132 2006-05-15  Bruno Haible  <bruno@clisp.org>
72133
72134         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
72135         on libtool patch by Ralf Wildenhues.
72136
72137 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
72138
72139         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
72140         test for C99 conformance; (bool) 0.5 is an integer constant
72141         expression, but (bool) -0.5 is not.  Problem reported by Fedor
72142         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
72143
72144 2006-05-11  Simon Josefsson  <jas@extundo.com>
72145
72146         * m4/xvasprintf.m4: Fix obvious typo.
72147
72148 2006-05-11  Jim Meyering  <jim@meyering.net>
72149
72150         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
72151         James Lemley.
72152
72153 2006-05-10  Simon Josefsson  <jas@extundo.com>
72154
72155         * lib/md4.c: Typo fix, update copyright years.
72156         (K1, K2): Don't use L because it turn computations into 64-bit on
72157         64-bit platforms.
72158
72159 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
72160
72161         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
72162         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
72163         unwanted sign propagation, e.g., on hosts with 64-bit int.
72164         There still are some problems with reeelly weird theoretical hosts
72165         (e.g., 33-bit int) but it's not worth worrying about now.
72166         * lib/sha1.c (rol): Likewise.
72167         (K1, K2, K3, K4): Remove unnecessary L suffix.
72168
72169 2006-05-10  Bruno Haible  <bruno@clisp.org>
72170
72171         * lib/des.c: Cast to avoid warnings.
72172
72173 2006-05-09  Bruno Haible  <bruno@clisp.org>
72174
72175         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
72176         (Depends-on): Depend also on xsize, stdarg.
72177         (configure.ac): Add gl_XVASPRINTF.
72178
72179 2006-05-09  Bruno Haible  <bruno@clisp.org>
72180
72181         * m4/xvasprintf.m4: New file.
72182
72183 2006-05-09  Bruno Haible  <bruno@clisp.org>
72184
72185         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
72186         (EOVERFLOW): Define fallback value.
72187         (xstrcat): New function.
72188         (xvasprintf): Recognize the special case of a string concatenation.
72189
72190 2006-05-08  Eric Blake  <ebb9@byu.net>
72191
72192         * gnulib-tool (func_version): Base copyright year on CVS date.
72193         (func_emit_copyright_notice): New function.
72194         (func_emit_lib_Makefile_am): Use it.
72195         (func_emit_tests_Makefile_am): Likewise.
72196         (func_import): Likewise.
72197
72198 2006-05-08  Bruno Haible  <bruno@clisp.org>
72199
72200         * modules/stdarg: New file.
72201         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
72202
72203 2006-05-08  Bruno Haible  <bruno@clisp.org>
72204
72205         * m4/stdarg.m4: New file, from GNU gettext.
72206
72207 2006-05-08  Bruno Haible  <bruno@clisp.org>
72208
72209         * config/srclist.txt (build-aux/config.rpath): different from latest
72210         release.
72211
72212 2006-05-08  Bruno Haible  <bruno@clisp.org>
72213
72214         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
72215
72216 2006-05-05  Jim Meyering  <jim@meyering.net>
72217
72218         * m4/warning.m4: New file, derived from bison's file by the same name.
72219
72220 2006-05-03  Bruno Haible  <bruno@clisp.org>
72221
72222         * lib/stdint_.h: Shorter URL.
72223         * lib/inttypes.h: Likewise.
72224
72225 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72226
72227         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
72228
72229 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72230
72231         * lib/verify.h: Document the internals better.  Most of this change
72232         was written by Bruno Haible.
72233
72234 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72235
72236         * doc/verify.texi: New file, partly based on a proposal by
72237         Bruno Haible.
72238
72239 2006-05-02  Bruno Haible  <bruno@clisp.org>
72240
72241         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
72242         test from here...
72243         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
72244
72245 2006-04-29  Bruno Haible  <bruno@clisp.org>
72246
72247         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
72248         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
72249
72250 2006-04-29  Bruno Haible  <bruno@clisp.org>
72251
72252         * gnulib-tool: Make --update option actually work.
72253
72254 2006-04-29  Bruno Haible  <bruno@clisp.org>
72255
72256         * doc/gcd.texi: New file.
72257         * doc/gnulib.texi: Include it.
72258
72259 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
72260
72261         * lib/getdate.y (get_date): When adding relative date, start with the
72262         initial time, not with the result of the first mktime call.
72263
72264 2006-04-25  Bruno Haible  <bruno@clisp.org>
72265
72266         * gnulib-tool (func_import): Output the include directives in three
72267         blocks, sorted separately.
72268         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72269
72270 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
72271
72272         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
72273         to define main with arguments, for C++.  Reported by Eric Blake.
72274         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
72275         Prefer 'int main ()' to 'int main (void)', for C++.
72276         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
72277         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
72278         for 'main', for C99 and C++.
72279
72280 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
72281
72282         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
72283         Don't assume that exit status -1 is valid.
72284         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72285         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
72286         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
72287         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
72288         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
72289         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
72290         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
72291         functions can be used without declaring them, or that you can
72292         exit with status -1.
72293         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
72294
72295 2006-04-24  Karl Berry  <karl@gnu.org>
72296
72297         * config/srclist.txt (longdouble.m4): sync lost.
72298
72299 2006-04-24  Eric Blake  <ebb9@byu.net>
72300
72301         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
72302
72303 2006-04-24  Bruno Haible  <bruno@clisp.org>
72304
72305         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
72306         poll() implementation in AIX.
72307         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72308
72309 2006-04-24  Bruno Haible  <bruno@clisp.org>
72310
72311         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
72312         assigned exactly once.
72313
72314 2006-04-23  Claudio Fontana  <claudio@gnu.org>
72315             Bruno Haible  <bruno@clisp.org>
72316
72317         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
72318         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
72319         for AM_CPPFLAGS.
72320
72321 2006-04-23  Bruno Haible  <bruno@clisp.org>
72322
72323         * modules/copy-file: Depend on unistd.
72324         * modules/execute: Likewise.
72325         * modules/fatal-signal: Likewise.
72326         * modules/findprog: Likewise.
72327         * modules/mkdtemp : Likewise.
72328         * modules/pipe: Likewise.
72329         * modules/wait-process: Likewise.
72330
72331 2006-04-23  Bruno Haible  <bruno@clisp.org>
72332
72333         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
72334         condition was already detected.
72335         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72336
72337 2006-04-23  Bruno Haible  <bruno@clisp.org>
72338
72339         * lib/copy-file.c: Include <unistd.h> unconditionally.
72340         * lib/execute.c: Likewise.
72341         * lib/fatal-signal.c: Likewise.
72342         * lib/findprog.c: Likewise.
72343         * lib/mkdtemp.c: Likewise.
72344         * lib/pipe.h: Likewise.
72345         * lib/pipe.c: Likewise.
72346         * lib/wait-process.h: Likewise.
72347
72348 2006-04-23  Bruno Haible  <bruno@clisp.org>
72349
72350         * gnulib-tool (func_usage): Fix --import description. Document
72351         --update.
72352         (func_import): Create temporary file in a temporary directory, if
72353         --dry-run is specified. Silence errors from 'grep' when there are no
72354         m4 files in $m4dir.
72355         (func_create_testdir): Silence errors from 'grep' when there are no
72356         m4 files in $m4dir.
72357         Reported by Karl Berry <karl@freefriends.org>.
72358
72359 2006-04-20  Bruno Haible  <bruno@clisp.org>
72360
72361         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
72362         one argument, so that the code will be portable to Autoconf 2.60.
72363         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
72364         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
72365         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
72366
72367 2006-04-19  Derek Price  <derek@ximbiot.com>
72368             Eric Blake  <ebb9@byu.net>
72369
72370         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
72371         rather than "/full/path.h".  Update comment to match.  Shorten &
72372         generalize m4_translit call via AS_TR_CPP.
72373
72374 2006-04-19  Derek Price  <derek@ximbiot.com>
72375             Eric Blake  <ebb9@byu.net>
72376
72377         * lib/inttypes.h: Correct grammar in comment.
72378
72379 2006-04-18  Derek Price  <derek@ximbiot.com>
72380             Paul Eggert  <eggert@cs.ucla.edu>
72381
72382         * modules/inttypes: New file.
72383         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
72384
72385 2006-04-18  Derek Price  <derek@ximbiot.com>
72386             Paul Eggert  <eggert@cs.ucla.edu>
72387
72388         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
72389         New files.
72390
72391 2006-04-18  Derek Price  <derek@ximbiot.com>
72392             Paul Eggert  <eggert@cs.ucla.edu>
72393
72394         * lib/inttypes.h: New file.
72395         * lib/strtoimax.c: Assume <inttypes.h>.
72396
72397 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
72398
72399         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
72400         isn't mounted.  Problem reported by Kir Kolyshkin.
72401
72402 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
72403
72404         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
72405         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
72406         Derek R. Price.
72407         * lib/regex.h (RE_DUP_MAX): Update comment to match current
72408         implementation.
72409
72410 2006-04-12  Eric Blake  <ebb9@byu.net>
72411
72412         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
72413         is now done automatically by the corresponding Autoconf macro.
72414
72415 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
72416
72417         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
72418         time_r.h.
72419
72420 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72421
72422         Merge regex changes from libc, removing some of our
72423         POSIX-conformance changes that were rejected and redoing them in a
72424         less-intrusive way.
72425
72426         * lib/regcomp.c (re_compile_internal, init_dfa):
72427         Length arg is now size_t, not Idx.  All uses changed.
72428         (peek_token): Forward decl now says internal_function.
72429         (__re_error_msgid, __re_error_msgid_idx):
72430         Now static rather than extern with attribute_hidden.
72431         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
72432         For some reason libc prefers K&R style defns for external functions.
72433         (regerror) [!defined _LIBC]: Likewise.
72434         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
72435         (seek_collating_symbol_entry, lookup_collation_sequence_value):
72436         (build_range_exp, build_collating_symbol):
72437         Use K&R-style defn.
72438         (re_compile_fastmap): Use '\0' to memset, not 0.
72439         (utf8_sb_map): Make the calculations more obvious.
72440         (init_dfa, parse_bracket_exp, build_charclass_op):
72441         Call calloc and cast result, as glibc does.
72442         (init_word_char, fetch_token, peek_token, peek_token_bracket):
72443         (build_range_exp, build_collating_symbol):
72444         Now internal functions.
72445
72446         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
72447
72448         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
72449         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
72450         Don't depend on VMS; depend on __VMS instead, for POSIX
72451         namespace cleanness.
72452         (regoff_t): Define to ssize_t, not long int.
72453
72454         Remove the REG_ macros named below.  Instead, make the old names
72455         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
72456         __USE_GNU_REGEX.
72457         (REG_BACKSLASH_ESCAPE_IN_LISTS):
72458         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
72459         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
72460         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
72461         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
72462         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
72463         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
72464         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
72465         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
72466         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
72467         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
72468         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
72469         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
72470         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
72471         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
72472         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
72473         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
72474         (REG_NREGS):
72475         Remove.  All uses replaced by the old RE_* names.
72476         (RE_BACKSLASH_ESCAPE_IN_LISTS):
72477         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
72478         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
72479         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
72480         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
72481         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
72482         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
72483         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
72484         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
72485         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
72486         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
72487         Don't bother having these macros be independent of each others'
72488         values, since they no longer exist in the POSIX name space.
72489
72490         Rename the following member names back to their old names,
72491         unless !__USE_GNU_REGEX.  All uses changed back.
72492         (buffer): Renamed from re_buffer.
72493         (allocated): Renamed from re_allocated.
72494         (used): Renamed from re_used.
72495         (syntax): Renamed from re_syntax.
72496         (fastmap): Renamed from re_fastmap.
72497         (translate): Renamed from re_translate.
72498         (can_be_null): Renamed from re_can_be_null.
72499         (regs_allocated): Renamed from re_regs_allocated.
72500         (fastmap_accurate): Renamed from re_fastmap_accurate.
72501         (no_sub): Renamed from re_no_sub.
72502         (not_bol): Renamed from re_not_bol.
72503         (not_eol): Renamed from re_not_eol.
72504         (newline_anchor): Renamed from re_newline_anchor.
72505         (num_regs): Renamed from rm_num_regs.
72506         (start): Renamed from rm_start.
72507         (end): Renamed from rm_end.
72508
72509         (free_state): Move up a bit.
72510
72511         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
72512         #define to be empty.
72513         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
72514         when that is what is intended.
72515         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
72516         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
72517         (MAX): New macro.
72518         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
72519         All uses changed back to re_malloc, etc.  It's now the caller's
72520         responsibility to check for overflow; all callers changed.
72521         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
72522         (re_x2nrealloc): Remove.
72523         (free_state): Remove decl.
72524
72525         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
72526         (re_set_registers, re_exec):
72527         Use K&R-style defn.
72528
72529         2006-01-31  Roland McGrath  <roland@redhat.com>
72530
72531         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
72532         Reported by Mike Frysinger <vapier@gentoo.org>.
72533
72534         2006-01-15  Andreas Jaeger  <aj@suse.de>
72535
72536         [BZ #1950]
72537         * lib/regex_internal.c (re_string_reconstruct): Adjust for
72538         build_wcs_upper_buffer change.
72539         (build_wcs_upper_buffer): Change return type.
72540
72541         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
72542
72543         * lib/regex_internal.h: Include <stdint.h> if available.
72544
72545         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
72546
72547         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
72548
72549         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
72550
72551         * lib/regcomp.c: Adjust for changed secondary hash function.
72552
72553         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
72554
72555         * lib/regex.h: Pretty printing.
72556         Clean up namespace a bit.
72557
72558         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
72559
72560         * lib/regexec.c (update_cur_sifted_state, check_arrival,
72561         check_arrival_add_next_nodes): Avoid using uninitialized variable.
72562
72563         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72564                     Ulrich Drepper  <drepper@redhat.com>
72565
72566         [BZ #1302]
72567         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
72568         changed.
72569         (bitset_word_t): Renamed from bitset_word.  All uses changed.
72570
72571         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
72572
72573         [BZ #281]
72574         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
72575         * lib/regcomp.c: Remove unnecessary uses of
72576         unsigned RE_TRANSLATE_TYPE.
72577         * lib/regex_internal.h: Likewise.
72578         * lib/regex_internal.c: Likewise.
72579         * lib/regexec.c: Likewise.
72580         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
72581
72582         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
72583
72584         * lib/regexec.c (find_recover_state): Remove unnecessary
72585         initialization.
72586         (transit_state_bkref): Make DFA a const pointer.
72587         (get_subexp): Likewise.
72588         (check_arrival): Likewise.
72589         (update_cur_sifted_state): Likewise.
72590         (re_search_internal): Likewise.
72591         (prune_impossible_nodes): Likewise.
72592         (acquire_init_state_context): Likewise.
72593         (proceed_next_node): Likewise.
72594         (set_regs): Likewise.
72595         (free_fail_stack_return): Likewise.
72596         (check_arrival_expand_ecl): Mark DFA parameter as const.
72597         (check_arrival_expand_ecl_sub): Likewise.
72598         (check_subexp_limits): Likewise.
72599         (sub_epsilon_src_nodes):  Likewise.
72600         (add_epsilon_src_nodes):  Likewise.
72601         (merge_state_array): Likewise.
72602         (update_regs): Likewise.
72603         (build_trtable): Likewise.
72604         (sift_states_backward): Mark MCTX parameter as const.
72605         (build_sifted_states): Likewise.
72606         (update_cur_sifted_state): Likewise.
72607         (sift_states_mkref): Likewise.
72608         (check_arrival_expand_ecl): Mark eclosure as const.
72609         (check_dst_limits_calc_pos_1): Likewise.
72610         * lib/regex_internal.h (re_match_context_t): Make dfa a const
72611         pointer.
72612
72613         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
72614
72615         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
72616         (transit_state_sb): Likewise.
72617         (transit_state_mb): Likewise.
72618         (sift_states_iter_mb): Likewise.
72619         (check_arrival_add_next_nodes): Likewise.
72620         (check_node_accept_bytes): Change first parameter to pointer-to-const.
72621         [_LIBC] (re_search_2_stub): Use mempcpy.
72622
72623         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
72624         mbrtowc for very simple UTF-8 case.
72625
72626         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
72627         a pointer-to-const.
72628         (re_acquire_state_context): Likewise.
72629         * lib/regex_internal.h: Adjust prototypes.
72630
72631         * lib/regex.c: Prevent using C++ compilers.
72632
72633         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
72634         (re_acquire_state_context): Likewise.
72635
72636 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72637
72638         * modules/regex (Depends-on): Add ssize_t.
72639
72640 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72641
72642         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
72643         translation table.
72644
72645 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72646
72647         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
72648
72649 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
72650             Bruno Haible  <bruno@clisp.org>
72651
72652         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
72653         <sys/types.h> and <inttypes.h>.
72654
72655 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72656
72657         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
72658         `__error_t_defined', so argp.h will not typedef the former.
72659
72660 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
72661
72662         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
72663         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
72664         glibc names.  Even if glibc is changed to conform to POSIX, the
72665         traditional names will be available anyway, since regex depends on
72666         the extensions module.  Also, fix a longstanding typo in the
72667         implementation of Spencer ERE test #75 from grep 2.3.  Problems
72668         reported by Emanuele Giaquinta.  Also, change sense of cached
72669         variable, so that the message makes sense.
72670
72671 2006-03-24  Simon Josefsson  <jas@extundo.com>
72672
72673         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
72674         including some doc fixes.
72675         (base64_encode_alloc): Fix +1 bug on allocation failures.
72676
72677 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72678
72679         * lib/base64.c (base64_encode): Do not read past end of array with
72680         unsanitized input on systems with CHAR_BIT > 8.
72681
72682 2006-03-24  Eric Blake  <ebb9@byu.net>
72683
72684         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
72685
72686 2006-03-22  Karl Berry  <karl@gnu.org>
72687
72688         * config/srclist.txt (*setenv.[ch]): get from coreutils.
72689         * config/srclistvars.sh (COREUTILS): new var.
72690
72691 2006-03-17  Jim Meyering  <jim@meyering.net>
72692
72693         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
72694         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
72695
72696 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72697
72698         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
72699         no longer needs it.  Instead, check that regoff_t is as least
72700         as wide as ptrdiff_t.
72701
72702         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
72703         so that our regex.h stays compatible with the installed regex.
72704         This is helpful for installers who configure --without-included-regex.
72705         Problem reported by Emanuele Giaquinta.
72706
72707 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72708
72709         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
72710         Typedef to long int, not to off_, as POSIX will likely change
72711         in that direction.
72712
72713 2006-03-15  Eric Blake  <ebb9@byu.net>
72714
72715         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
72716
72717 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72718
72719         * lib/argp-help.c (validate_uparams): Fix typo
72720         * lib/argp-parse.c (argp_default_options): Consistently begin help
72721         messages with a lowercase letter.
72722
72723 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
72724
72725         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
72726         overrun buffers and shouldn't be used (much as gets shouldn't be
72727         used).
72728         * lib/time_r.c (asctime_r, ctime_r): Likewise.
72729
72730 2006-03-08  Simon Josefsson  <jas@extundo.com>
72731
72732         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
72733         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72734
72735 2006-03-08  Simon Josefsson  <jas@extundo.com>
72736
72737         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
72738         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72739
72740 2006-03-08  Simon Josefsson  <jas@extundo.com>
72741
72742         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
72743         signal that configure disabled the device.
72744
72745 2006-03-08  Simon Josefsson  <jas@extundo.com>
72746
72747         * build-aux/maint.mk: Fix refresh-po, to handle no translated
72748         languages.
72749
72750 2006-03-07  Simon Josefsson  <jas@extundo.com>
72751
72752         * modules/getopt (Depends-on): Add unistd.
72753
72754         * modules/unistd: New file.
72755
72756 2006-03-07  Simon Josefsson  <jas@extundo.com>
72757
72758         * modules/gc-random: New file.
72759
72760 2006-03-07  Simon Josefsson  <jas@extundo.com>
72761
72762         * m4/unistd_h.m4: New file.
72763
72764 2006-03-07  Simon Josefsson  <jas@extundo.com>
72765
72766         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
72767         test to be side-effect free by storing the result in the cache
72768         variable gl_cv_lib_readline, and moving the assignment of
72769         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
72770         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72771
72772 2006-03-07  Simon Josefsson  <jas@extundo.com>
72773
72774         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
72775         error on missing devices (the functions will return an error).
72776
72777         * m4/gc.m4: Move random stuff to gc-random.m4
72778
72779 2006-03-07  Simon Josefsson  <jas@extundo.com>
72780
72781         * lib/unistd_.h: New file.
72782
72783 2006-03-07  Simon Josefsson  <jas@extundo.com>
72784
72785         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
72786
72787 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72788
72789         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
72790         Problem reported by Juan Manuel Guerrero.
72791
72792 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72793
72794         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
72795         the unistd module.
72796         * lib/getlogin_r.c: Likewise.
72797         * lib/getlogin_r.h: Likewise.
72798         * lib/glob.c: Likewise.
72799         * lib/pagealign_alloc.c: Likewise.
72800         * lib/unistd_.h: Remove; no longer needed.
72801
72802 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72803
72804         * MODULES.html.sh (Support for systems lacking POSIX:2001):
72805         Add unistd.
72806         * modules/c-stack (Depends-on): Add unistd.
72807         * modules/getlogin_r: Likewise.
72808         * modules/glob: Likewise.
72809         * modules/pagealign_alloc: Likewise.
72810         * modules/unistd (Files): Remove lib/unistd_.h.
72811         (EXTRA_DIST): Remove.
72812         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
72813         need unistd_.h.
72814         (MOSTLYCLEANFILES): Remove unistd.h-t.
72815
72816 2006-03-03  Simon Josefsson  <jas@extundo.com>
72817
72818         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
72819
72820 2006-03-03  Simon Josefsson  <jas@extundo.com>
72821
72822         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
72823         libidn and bison.
72824
72825 2006-03-03  Simon Josefsson  <jas@extundo.com>
72826
72827         * build-aux/maint.mk: Add indent target.
72828
72829 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
72830
72831         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
72832         our replacement poll.h in any case, to avoid a differing
72833         declaration from a system header.  Seen on AIX.
72834
72835 2006-03-01  Simon Josefsson  <jas@extundo.com>
72836
72837         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
72838         <kasal@ucw.cz>.
72839
72840 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72841
72842         * modules/gettime (Depends-on): Add extensions module.
72843         * modules/nanosleep (Depends-on): Likewise.
72844         * modules/settime (Depends-on): Likewise.
72845
72846 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72847
72848         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
72849         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
72850         pedantically.
72851         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72852         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
72853
72854         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
72855         not "==".  Reported by Ralf Wildenhues.
72856
72857 2006-03-01  Karl Berry  <karl@gnu.org>
72858
72859         * doc/Copyright/request-*: new files, synced from gnuorg.
72860
72861 2006-03-01  Karl Berry  <karl@gnu.org>
72862
72863         * config/srclist.txt (Copyright/*): new entries.
72864
72865 2006-02-28  Simon Josefsson  <jas@extundo.com>
72866
72867         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
72868
72869 2006-02-27  Simon Josefsson  <jas@extundo.com>
72870
72871         * lib/base64.h: Indent #define's.  From Jim Meyering
72872         <jim@meyering.net>.
72873
72874 2006-02-27  Jim Meyering  <jim@meyering.net>
72875
72876         Revert the change of 2006-02-24, so these files can continue
72877         to be sync'd from gettext.
72878         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
72879         of `config.h'.
72880
72881 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72882
72883         * modules/intprops: New file.
72884         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72885         Add intprops.
72886         * modules/getloadavg (Files): Remove lib/intprops.h.
72887         (Depends-on): Add intprops.
72888         * modules/human: Likewise.
72889         * modules/inttostr: Likewise.
72890         * modules/openat: Likewise.
72891         * modules/sig2str: Likewise.
72892         * modules/userspec: Likewise.
72893         * modules/utimecmp: Likewise.
72894         * modules/xnanosleep: Likewise.
72895         * modules/xstrtol: Likewise.
72896
72897 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
72898
72899         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
72900         * modules/lock-tests (TESTS): Use $(EXEEXT).
72901         * modules/tls-tests: Likewise.
72902         * modules/argp-tests: Likewise.
72903         (check_PROGRAMS): New var, replacing...
72904         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
72905
72906 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72907
72908         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
72909         `config.h'.
72910
72911 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72912
72913         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
72914
72915 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72916
72917         Sync from coreutils.
72918         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
72919         gl_CHDIR_SAFER.
72920
72921 2006-02-22  Jim Meyering  <jim@meyering.net>
72922
72923         Sync from coreutils.
72924         * m4/chdir-safer.m4: New file.
72925
72926 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72927
72928         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
72929         AT_FDCWD exceeds INT_MAX.
72930         * lib/openat.h (AT_FDCWD): Likewise.
72931
72932 2006-02-17  Eric Blake  <address@hidden>
72933
72934         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
72935
72936 2006-02-16  Simon Josefsson  <jas@extundo.com>
72937
72938         * modules/getaddrinfo (Depends-on): Add sys_socket.
72939
72940 2006-02-15  Simon Josefsson  <jas@extundo.com>
72941
72942         * build-aux/maint.mk: Add dsyntax-check rule.
72943
72944 2006-02-15  Eric Blake  <ebb9@byu.net>
72945
72946         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
72947         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
72948         'present but cannot compile' warnings on cygwin.
72949         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
72950         use ws2tcpip.h if sys/socket.h works.
72951         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
72952         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
72953
72954 2006-02-14  Simon Josefsson  <jas@extundo.com>
72955
72956         * modules/maintainer-makefile (Files): Rename.
72957
72958         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
72959         and (the local) Makefile.cfg to maint-cfg.mk.
72960
72961         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
72962         to the latter.
72963
72964         * modules/maintainer-makefile: New module.
72965
72966         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
72967         severaly stripped to make it possible to build it up from scratch
72968         with reliable tests.
72969
72970         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
72971         fixes to permit overriding the default actions when configure and
72972         makefile are not available.
72973
72974 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72975
72976         Sync from coreutils.
72977         * modules/lstat (Depends-on): Don't depend on xalloc.
72978         (License): Change from GPL to LGPL, since this is now simply a
72979         replacement for a libc function.
72980
72981 2006-02-14  Jim Meyering  <jim@meyering.net>
72982
72983         Sync from coreutils.
72984
72985         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
72986         failure on deficient systems, and simplify gnulib lgpl dependencies.
72987         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
72988         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
72989
72990         * lib/xalloc-die.c: Remove unused definition of N_.
72991
72992 2006-02-14  Jim Meyering  <jim@meyering.net>
72993
72994         Sync from coreutils.
72995         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
72996         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
72997         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
72998         double-quote uses of that variable, to accommodate the rare case in
72999         which getmntent is available in none of the libraries checked.  This
73000         happens at least on FreeBSD 5.0.
73001
73002 2006-02-13  Simon Josefsson  <jas@extundo.com>
73003
73004         * gnulib-tool (Usage): Fix --import, from
73005         karl@freefriends.org (Karl Berry).
73006
73007 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
73008
73009         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
73010
73011 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
73012
73013         * lib/argp-namefrob.h: Restore changes accidentally lost during the
73014         "autoupdate" on 2005-12-12.
73015
73016 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
73017
73018         * modules/closeout (Depends-on): Remove atexit.
73019
73020 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
73021
73022         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
73023         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
73024
73025 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
73026
73027         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
73028         __EXTENSIONS__ if this causes compilation to fail.  Problem
73029         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
73030         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
73031
73032 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
73033
73034         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
73035         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
73036         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
73037         All uses changed.
73038
73039 2006-01-26  Simon Josefsson  <jas@extundo.com>
73040
73041         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
73042         prototype is visible on mingw32.
73043
73044         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
73045         for mingw32.
73046
73047         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
73048         mingw32).
73049
73050 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
73051
73052         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
73053         attempt to open for write; this always fails, at least on POSIX
73054         hosts.  This reinstates the 2006-01-09 change, which was
73055         inadvertently removed.
73056
73057 2006-01-26  Bruno Haible  <bruno@clisp.org>
73058
73059         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
73060         Reported by Paul Eggert.
73061
73062 2006-01-26  Bruno Haible  <bruno@clisp.org>
73063             Paul Eggert  <eggert@cs.ucla.edu>
73064
73065         * lib/stdbool_.h (_Bool)
73066         [(! (defined __cplusplus || defined __BEOS__)
73067           && !defined __GNUC__
73068           && !(defined __HP_cc || defined __xlc__
73069                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
73070                || defined __sgi))]:
73071         #define to signed char in these cases too; this simplifies
73072         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
73073         etc., separately) and makes it more conservative.
73074
73075 2006-01-25  Simon Josefsson  <jas@extundo.com>
73076
73077         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
73078         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
73079         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
73080
73081 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
73082
73083         * lib/argp-namefrob.h: Bugfix. Remove stray #
73084
73085 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
73086
73087         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
73088         so that we test the test.
73089         Check for yet another HP-UX cc bug involving *bool |= bool.
73090
73091 2006-01-25  Karl Berry  <karl@gnu.org>
73092
73093         * config/srclist.txt (vasnprintf.c): sync lost.
73094
73095 2006-01-25  Jim Meyering  <jim@meyering.net>
73096
73097         Sync from the stable (b5) branch of coreutils:
73098
73099         * lib/fts.c (fts_children): Don't let close() clobber errno from
73100         failed fchdir().
73101
73102         * lib/fts.c (fts_stat): When following a symlink-to-directory,
73103         don't necessarily interpret stat-fails+lstat-succeeds as indicating
73104         a dangling symlink.  That can also happen at least for ELOOP.
73105         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
73106         FYI, this bug predates the inclusion of fts.c in coreutils.
73107
73108         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
73109         in their own block, so pre-c99 compilers don't object.
73110
73111         Avoid the double-free (first in fts_read, second in fts_close) that
73112         would occur when an `active' directory is made inaccessible (e.g.,
73113         via chmod a-x) during a traversal.
73114         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
73115         before returning.  Reproduce this failure by
73116         mkdir -p a/b; cd a; chmod a-x . b
73117         Reported by Stavros Passas.
73118
73119 2006-01-25  Jim Meyering  <jim@meyering.net>
73120
73121         * lib/fileblocks.c: Remove more useless parentheses.
73122         * lib/readutmp.h: Likewise.
73123
73124 2006-01-25  Bruno Haible  <bruno@clisp.org>
73125
73126         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
73127         warnings.
73128         Reported by Paul Eggert.
73129
73130 2006-01-25  Bruno Haible  <bruno@clisp.org>
73131
73132         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
73133         rid of a trap command. For Solaris sh.
73134         Reported by Mark D. Baushke <mdb@gnu.org>.
73135
73136 2006-01-24  Simon Josefsson  <jas@extundo.com>
73137
73138         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
73139         Bruno.
73140
73141 2006-01-24  Karl Berry  <karl@gnu.org>
73142
73143         * config/srclist.txt (argp-namefrob.h): sync lost.
73144
73145 2006-01-24  Jim Meyering  <jim@meyering.net>
73146
73147         * modules/openat (Files): Add lib/intprops.h.
73148         From Mark D. Baushke.
73149
73150 2006-01-24  Jim Meyering  <jim@meyering.net>
73151
73152         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
73153         Reported by Mark D. Baushke.
73154
73155 2006-01-24  Jim Meyering  <jim@meyering.net>
73156
73157         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
73158
73159 2006-01-24  Bruno Haible  <bruno@clisp.org>
73160
73161         * modules/strnlen (Maintainer): Change from glibc to all.
73162
73163 2006-01-24  Bruno Haible  <bruno@clisp.org>
73164
73165         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
73166         Patch by Paul Eggert.
73167
73168 2006-01-24  Bruno Haible  <bruno@clisp.org>
73169
73170         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
73171         already has it.
73172         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
73173         2005-11-26.
73174
73175         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
73176         'signed char' to avoid problems with the built-in _Bool type.
73177         Reported by Paul Eggert on 2005-11-26.
73178
73179 2006-01-24  Bruno Haible  <bruno@clisp.org>
73180
73181         * gnulib-tool (func_import): Avoid constructing complicated sed
73182         expressions inside backquote.
73183         Report and solution by Mark D. Baushke <mdb@gnu.org>.
73184
73185 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
73186
73187         These changes imported from libc.
73188         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
73189         test and two separate function calls.
73190         * lib/strndup.c (__strndup): Add libc_hidden_def.
73191
73192 2006-01-23  Simon Josefsson  <jas@extundo.com>
73193
73194         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
73195         Remove the test_*_SOURCES variable: automake infers it by default.
73196         * modules/tls-tests: Likewise.
73197
73198 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73199
73200         Work around porting bugs reported by Dieter in
73201         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
73202         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
73203         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
73204         Include "getopt.h" first, to check interface.
73205         (getenv): Declare only if defined HAVE_DECL_GETENV &&
73206         !HAVE_DECL_GETENV.
73207         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
73208         (__strndup): Revert to K&R-style function dfns, the glibc style.
73209         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
73210         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
73211         Include strnlen.h first, to get prototype properly.
73212         (strnlen): Renamed from __strnlen.
73213         Remove weak alias.
73214
73215 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73216
73217         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
73218
73219 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73220
73221         * config/srclist.txt: Adjust to reflect glibc reorganization.
73222         This affects only comments.
73223
73224 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73225
73226          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
73227          Reported by Bruce Korb <bkorb@gnu.org>.
73228
73229 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
73230
73231         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
73232         to pacify gcc -Wswitch-default.
73233
73234 2006-01-22  Bruno Haible  <bruno@clisp.org>
73235
73236         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
73237         temporary buffer for sprintf, take into account the precision also
73238         for 'd', 'i', 'u', 'o', 'x', 'X'.
73239
73240 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73241
73242         * modules/argp-tests: New module
73243         * tests/test-argp.c: New file
73244         * tests/test-argp-2.sh: New file
73245
73246 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73247
73248         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
73249         (__argp_base_name): Removed
73250         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
73251         typo.
73252         (__argp_base_name): Provide macro definition or extern declaration
73253         depending on the configuration
73254
73255 2006-01-20  Simon Josefsson  <jas@extundo.com>
73256
73257         * modules/inet_ntop (Depends-on): Depend on sys_socket.
73258
73259 2006-01-20  Simon Josefsson  <jas@extundo.com>
73260
73261         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
73262
73263 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73264
73265         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
73266         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
73267         Suggested by Bruno Haible.
73268
73269 2006-01-20  Karl Berry  <karl@gnu.org>
73270
73271         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
73272         until changes propagate, I guess.
73273
73274 2006-01-19  Simon Josefsson  <jas@extundo.com>
73275
73276         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
73277
73278 2006-01-19  Simon Josefsson  <jas@extundo.com>
73279
73280         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
73281
73282 2006-01-19  Simon Josefsson  <jas@extundo.com>
73283
73284         * gnulib-tool: Set check_PROGRAMS.
73285
73286         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
73287         modules/des-tests, modules/gc-arcfour-tests,
73288         modules/gc-arctwo-tests, modules/gc-des-tests,
73289         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
73290         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
73291         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
73292         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
73293         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
73294         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
73295         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
73296         test_*_SOURCES.
73297
73298 2006-01-18  Simon Josefsson  <jas@extundo.com>
73299
73300         * modules/socklen (Depends-on): Depend on sys_socket.
73301
73302 2006-01-18  Simon Josefsson  <jas@extundo.com>
73303
73304         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
73305         modules/des-tests, modules/gc-arcfour-tests,
73306         modules/gc-arctwo-tests, modules/gc-des-tests,
73307         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
73308         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
73309         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
73310         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
73311         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
73312         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
73313         $(EXEEXT) to automake TESTS variable, for mingw32.
73314
73315 2006-01-17  Simon Josefsson  <jas@extundo.com>
73316
73317         * modules/socklen (Include): Need sys/socket.h.
73318
73319 2006-01-17  Bruno Haible  <bruno@clisp.org>
73320
73321         * modules/ssize_t (Include): Add <sys/types.h>.
73322
73323 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
73324
73325         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
73326         it's not portable and it doesn't work with cross-compiles.
73327         Problem reported by Bruno Haible.  Fix missing-$ typo in
73328         'test "gl_cv_ignore_unused_libraries" ...' that prevented
73329         -zignore from being used with Sun's C compiler.
73330
73331 2006-01-12  Simon Josefsson  <jas@extundo.com>
73332
73333         * lib/base64.c: Fix warning, reported by Bruno Haible
73334         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
73335
73336 2006-01-12  Bruno Haible  <bruno@clisp.org>
73337
73338         * modules/ldd: New file.
73339         * build-aux/ldd.sh.in: New file.
73340         * MODULES.html.sh (Support for building libraries and executables): Add
73341         ldd.
73342
73343 2006-01-12  Bruno Haible  <bruno@clisp.org>
73344
73345         * m4/ldd.m4: New file.
73346
73347 2006-01-12  Bruno Haible  <bruno@clisp.org>
73348
73349         * gnulib-tool (func_import, func_create_testdir): Don't go into an
73350         endless loop while replacing $auxdir with build-aux.
73351
73352 2006-01-11  Simon Josefsson  <jas@extundo.com>
73353
73354         * lib/stdint_.h (SIZE_MAX): Add missing (.
73355
73356 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
73357
73358         Sync from coreutils.
73359         * lib/md5.c: Fix commentary typos.
73360         (alignof, UNALIGNED_P): No need for a GCC-specific version.
73361         * lib/md5.h (__attribute__): Remove; unused.
73362         * lib/sha1.c: Fix commentary to match md5 better.
73363         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
73364         so that we don't need to worry about alignment.  All uses changed.
73365         This merges the 2005-10-28 md5 change into sha1.
73366
73367 2006-01-11  Jim Meyering  <jim@meyering.net>
73368
73369         Sync from coreutils.
73370         * lib/md5.c (OP): Fix spacing.
73371
73372 2006-01-11  Bruno Haible  <bruno@clisp.org>
73373
73374         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73375         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
73376         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
73377
73378 2006-01-11  Bruno Haible  <bruno@clisp.org>
73379
73380         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73381         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
73382         the "early" section as well.
73383
73384 2006-01-11  Bruno Haible  <bruno@clisp.org>
73385
73386         Avoid "ar: no archive members specified" error on MacOS X.
73387         * gnulib-tool (func_modules_add_dummy): New function.
73388         (func_import, func_create_testdir): Invoke it.
73389
73390 2006-01-11  Bruno Haible  <bruno@clisp.org>
73391
73392         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
73393         with $auxdir in AC_CONFIG_FILES statements.
73394
73395 2006-01-11  Bruno Haible  <bruno@clisp.org>
73396
73397         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73398         Initialize also noinst_HEADERS to empty.
73399
73400 2006-01-11  Bruno Haible  <bruno@clisp.org>
73401
73402         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
73403         variables.
73404         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
73405         autoreconf.
73406
73407 2006-01-11  Bruno Haible  <bruno@clisp.org>
73408
73409         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
73410         overridable by the user.
73411         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73412
73413 2006-01-10  Simon Josefsson  <jas@extundo.com>
73414
73415         * modules/sys_socket: New file.
73416
73417 2006-01-10  Simon Josefsson  <jas@extundo.com>
73418
73419         * m4/sys_socket_h.m4: New file.
73420
73421 2006-01-10  Simon Josefsson  <jas@extundo.com>
73422
73423         * lib/socket_.h: New file.
73424
73425 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73426
73427         * modules/readutmp (Maintainer): Add myself.
73428
73429 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73430
73431         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
73432         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
73433         People who are still concerned with buggy memcmp implementations
73434         can invoke gl_FUNC_MEMCMP themselves.
73435
73436 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73437
73438         * lib/regex_internal.h (BITSET_WORD_BITS):
73439         Work around a bug in 64-bit PGC (before version 6.1-2), where the
73440         preprocessor mishandles large unsigned values as if they were signed.
73441         Problem reported by Claudio Fontana in
73442         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
73443
73444 2006-01-10  Jim Meyering  <jim@meyering.net>
73445
73446         Avoid the double-free (first in fts_read, second in fts_close) that
73447         would occur when an `active' directory is made inaccessible (e.g.,
73448         via chmod a-x) during a traversal.
73449         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
73450         before returning.  Reproduce this failure by
73451         mkdir -p a/b; cd a; chmod a-x . b
73452         Reported by Stavros Passas.
73453
73454         Sync from coreutils.
73455         * lib/sha1.c: Tweak grammar in a comment.
73456
73457 2006-01-10  Jim Meyering  <jim@meyering.net>
73458
73459         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
73460         Patch by Joerg Sonnenberger.
73461
73462 2006-01-10  Bruno Haible  <bruno@clisp.org>
73463
73464         * modules/readutmp: Depend on module free.
73465         * modules/strtok_r: Depend on module restrict.
73466
73467 2006-01-10  Bruno Haible  <bruno@clisp.org>
73468
73469         * modules/gettext (configure.ac): Add an invocation of
73470         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
73471
73472 2006-01-10  Bruno Haible  <bruno@clisp.org>
73473
73474         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
73475         Reported by Werner Lemberg <wl@gnu.org>.
73476
73477 2006-01-10  Bruno Haible  <bruno@clisp.org>
73478
73479         * lib/localcharset.c: Update from GNU gettext.
73480
73481 2006-01-10  Bruno Haible  <bruno@clisp.org>
73482
73483         * lib/argp.h (__const): Remove macro. Use const instead.
73484         * lib/argp-fmtstream.h (__const): Likewise.
73485         * lib/glob_.h (__const): Remove macro.
73486         * lib/glob-libc.h: Use const instead of __const.
73487
73488 2006-01-10  Bruno Haible  <bruno@clisp.org>
73489
73490         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
73491         variable.
73492         Needed to avoid an automake error regarding the 'gettext' module.
73493
73494 2006-01-09  Simon Josefsson  <jas@extundo.com>
73495
73496         * modules/inet_ntop (Depends-on): Add restrict.
73497
73498 2006-01-09  Simon Josefsson  <jas@extundo.com>
73499
73500         * modules/gc-rijndael-tests (License): Put under LGPL.
73501
73502         * modules/gc-des-tests (License): Likewise.
73503
73504         * modules/gc-arcfour-tests (License): Likewise.
73505
73506         * modules/gc-arctwo-tests (License): Likewise.
73507
73508         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
73509
73510         * modules/gc-hmac-sha1-tests (Files): Likewise.
73511
73512         * modules/gc-hmac-md5-tests (License): Likewise.
73513
73514         * modules/gc-sha1-tests (License): Likewise.
73515
73516         * modules/gc-md5-tests (License): Likewise.
73517
73518         * modules/gc-md4-tests (License): Likewise.
73519
73520         * modules/gc-md2-tests (License): Likewise.
73521
73522         * modules/gc-tests (License): Likewise.
73523
73524         * modules/des-tests (License): Likewise.
73525
73526         * modules/md4-tests (License): Likewise.
73527
73528         * modules/md2-tests (License): Likewise.
73529
73530 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73531
73532         Sync from coreutils:
73533
73534         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
73535         * modules/lib-ignore: New file.
73536         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
73537         chdir-safer.m4, lchmod.m4.
73538         * modules/openat: Add mkdirat.c, openat-priv.h.
73539
73540 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73541
73542         Sync from coreutils.
73543         * m4/lib-ignore.m4: New file.
73544         * m4/lchmod.m4: New file.
73545
73546 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73547
73548         Sync from coreutils.
73549         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
73550         for write access: POSIX says that must fail.
73551         * lib/fts.c (diropen): Likewise.
73552         * lib/save-cwd.c (save_cwd): Likewise.
73553         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
73554         well, for minor improvements on hosts that lack O_DIRECTORY.
73555         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
73556         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
73557         Fall back on chown if open failed with EACCES.
73558
73559         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
73560         Report an error at compile-time if only a 1-second nominal clock
73561         resolution is found.
73562
73563         * lib/lchmod.h: New file.
73564         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
73565         (make_dir_parents): Use lchown rather than chown, and
73566         lchmod rather than chmod.
73567
73568         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
73569         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
73570         "proc" reported by n0dalus.
73571
73572         * lib/mountlist.c: Include <limits.h>.
73573         (dev_from_mount_options)
73574         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
73575         New function.  It no longer assumes "dev=" has the System V meaning
73576         on Linux (since it doesn't).  It also parses "dev=" more carefully.
73577         (read_file_system_list)
73578         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
73579         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
73580         dev= in that case.
73581
73582         * lib/posixtm.h (PDS_PRE_2000): New macro.
73583         * lib/posixtm.c (year): Arg is now syntax_bits rather than
73584         allow_century.  All usages changed.  Reject dates outside the range
73585         1969-1999 if PDS_PRE_2000 is used.
73586
73587 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73588
73589         Sync from coreutils.
73590         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
73591         (Time of day items): Mention the possibility of leap seconds.
73592         Problem reported by Dr. David Alan Gilbert.
73593
73594 2006-01-09  Jim Meyering  <jim@meyering.net>
73595
73596         Sync from coreutils.
73597
73598         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
73599
73600         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
73601
73602         * lib/modechange.c (mode_compile): Reject an invalid mode string
73603         that starts with an octal digit.  From Andreas Gruenbacher.
73604
73605         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
73606         and dup to open_safer and dup_safer, respectively.
73607         (openat_permissive): Fix typo in comment.
73608
73609         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
73610         "gettext.h"; either no longer needed or are guaranteed by openat.h.
73611         (_): Remove; no longer needed.
73612         (openat): Renamed from rpl_openat; no need for rpl_openat
73613         since openat.h renames openat for us.
73614         Replace most of the body with a call to openat_permissive,
73615         to avoid duplicate code.
73616         Port to (probably hypothetical) environments were mode_t is
73617         wider than int.
73618         (openat_permissive): Require mode arg, so that we can check
73619         types better.  Put it just after flags.  Change cwd failure
73620         indicator from pointer-to-bool to pointer-to-errno-value.
73621         All callers changed.
73622         Invoke openat_save_fail and/or openat_restore_fail if
73623         cwd_errno is null, so that openat can call us.
73624         (openat_permissive, fdopendir, fstatat, unlinkat):
73625         Simplify errno handling to avoid some duplicate code,
73626         as it's OK to set errno on success.
73627         * lib/openat.h: Revamp code so that function macros depend on
73628         __OPENAT_PREFIX only, not also on AT_FDCWD.
73629         (openat_ro): Remove.  Caller changed to use openat_permissive.
73630         (openat_permissive): Now a macro, if not a function.
73631         (openat_restore_fail, openat_save_fail): Now always functions,
73632         since mkdirat needs them even if __OPENAT_PREFIX is defined.
73633
73634         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
73635         and openat.c.
73636         * lib/mkdirat.c: Include openat-priv.h.
73637         Remove definitions of macros defined therein.
73638         * lib/openat.c: Likewise.
73639
73640         * lib/mkdirat.c (mkdirat): New file and function.
73641         * lib/openat.h (mkdirat): Declare.
73642
73643         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
73644
73645         * lib/openat.h (openat_permissive): Declare.
73646         (openat_ro): Define.
73647
73648         * lib/openat.c (EXPECTED_ERRNO): New macro.
73649         (openat_permissive): New function -- used in remove.c rewrite.
73650         (all functions): Set errno just before returning, only if there
73651         was an actual failure.
73652         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
73653
73654         Emulate openat-family functions using Linux's procfs, if possible.
73655         Idea and some code based on Ulrich Drepper's glibc changes.
73656
73657         * lib/openat.c: (BUILD_PROC_NAME): New macro.
73658         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
73659         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
73660         before falling back on save_cwd and restore_cwd.
73661         (fdopendir, fstatat, unlinkat): Likewise.
73662
73663         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
73664         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
73665
73666         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
73667         as second argument to va_arg.  Otherwise, some versions of gcc
73668         warn that `if this code is reached, the program will abort'.
73669
73670 2006-01-09  Jim Meyering  <jim@meyering.net>
73671
73672         Sync from coreutils.
73673         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
73674         Require openat-priv.h.
73675
73676 2006-01-09  Bruno Haible  <bruno@clisp.org>
73677
73678         * modules/strnlen (Include): Use strnlen.h.
73679
73680 2006-01-09  Bruno Haible  <bruno@clisp.org>
73681
73682         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
73683
73684 2006-01-09  Bruno Haible  <bruno@clisp.org>
73685
73686         * lib/sysexit_.h (EX_OK): New macro.
73687         Suggested by Martin Lambers <marlam@marlam.de>.
73688
73689 2006-01-09  Bruno Haible  <bruno@clisp.org>
73690
73691         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
73692         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
73693
73694 2006-01-09  Bruno Haible  <bruno@clisp.org>
73695
73696         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
73697         numbers.
73698
73699 2006-01-09  Bruno Haible  <bruno@clisp.org>
73700
73701         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
73702         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
73703         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
73704         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
73705
73706 2006-01-09  Bruno Haible  <bruno@clisp.org>
73707
73708         * build-aux/javacomp.sh.in: New file, moved from lib/.
73709         * modules/javacomp-script (Files): Update.
73710         (configure.ac): Add AC_CONFIG_FILES invocation.
73711         (EXTRA_DIST): Remove variable.
73712
73713         * build-aux/javaexec.sh.in: New file, moved from lib/.
73714         * modules/javaexec (Files): Update.
73715         (configure.ac): Add AC_CONFIG_FILES invocation.
73716         (EXTRA_DIST): Remove javaexec.sh.in.
73717
73718         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
73719         * modules/csharpcomp-script (Files): Update.
73720         (configure.ac): Add AC_CONFIG_FILES invocation.
73721         (EXTRA_DIST): Remove variable.
73722
73723         * build-aux/csharpexec.sh.in: New file, moved from lib/.
73724         * modules/csharpexec (Files): Update.
73725         (configure.ac): Add AC_CONFIG_FILES invocation.
73726         (EXTRA_DIST): Remove csharpexec.sh.in.
73727
73728 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73729
73730         Sync from coreutils.
73731
73732         Add POSIX ACL support
73733         * lib/acl.h (copy_acl, set_acl): Add declarations.
73734         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
73735         systems other than Linux.
73736         (chmod_or_fchmod): New function: use fchmod when possible,
73737         and chmod otherwise.
73738         (file_has_acl): Add a POSIX ACL implementation, with a
73739         Linux-specific subcase.
73740         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
73741         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
73742         acls are unsupported.
73743         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
73744         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
73745         are unsupported.
73746
73747 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73748
73749         Sync from coreutils.
73750         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
73751
73752 2006-01-07  Bruno Haible  <bruno@clisp.org>
73753
73754         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
73755         gl_EARLY.
73756
73757 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73758
73759         * lib/strftime.c (tzname): Don't declare if it is already #defined.
73760         Problem reported for Mingw by Mark Junker.
73761
73762 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73763
73764         * README: Gnulib normally doesn't generate a tarball.
73765
73766 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
73767
73768         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
73769         long int, not int, for nanosecond counts, so that people who are
73770         used to POSIX struct timespec won't be surprised.  Reported by Jim
73771         Meyering.
73772
73773 2005-12-28  Bruno Haible  <bruno@clisp.org>
73774
73775         * build-aux/config.rpath: Update from GNU gettext.
73776
73777 2005-12-16  Jim Meyering  <jim@meyering.net>
73778
73779         * modules/fprintftime: New module.
73780         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
73781
73782 2005-12-16  Jim Meyering  <jim@meyering.net>
73783
73784         * m4/fprintftime.m4: New file.
73785
73786 2005-12-16  Jim Meyering  <jim@meyering.net>
73787
73788         * lib/fprintftime.c, lib/fprintftime.h: New files.
73789
73790 2005-12-15  Simon Josefsson  <jas@extundo.com>
73791
73792         * modules/socklen (configure.ac): Fix M4 macro name, to align with
73793         new m4/socklen.m4.
73794
73795 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73796
73797         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
73798         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
73799
73800 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73801
73802         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
73803         * lib/argp-help.c (fill_in_uparams): Check if the constructed
73804         struct uparams is valid. Fall back to the default values if it is
73805         not.
73806
73807 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73808
73809         * modules/argp (Files): Add argp-pin.c
73810         (Depends-on): dirname
73811         (lib_SOURCES): Add argp-pin.c
73812
73813 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73814
73815         * m4/argp.m4:  Check if program_invocation_name and
73816         program_invocation_short_name are declared and define appropriate
73817         macros if they are not.
73818
73819 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73820
73821         * lib/argp-help.c (__argp_base_name): New function
73822         (__argp_short_program_name): Rewrite using __argp_base_name
73823         * lib/argp-namefrob.h: Define program_invocation_name and
73824         program_invocation_short_name if requested
73825         (__argp_base_name): Add prototype
73826         * lib/argp-parse.c (argp_def): Use gettext wrappers
73827         (argp_default_parser): Use __argp_base_name
73828         * lib/argp-pin.c: New file. Defines program_invocation_name and
73829         program_invocation_short_name on systems that lack them.
73830
73831 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73832
73833         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
73834         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73835         porting problem reported by Georg Schwarz in
73836         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73837
73838 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73839
73840         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
73841         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73842         porting problem reported by Georg Schwarz in
73843         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73844
73845 2005-12-05  Bruno Haible  <bruno@clisp.org>
73846
73847         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
73848         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
73849         Reported by Mark Junker <mjscod@gmx.de>.
73850
73851 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
73852
73853         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
73854         Use implementation from Albert Chin, with some
73855         comments/corrections by Stepan Kasal and myself.
73856
73857 2005-12-02  Bruno Haible  <bruno@clisp.org>
73858
73859         * gnulib-tool (func_import): Accept GPLed build tool modules when
73860         --lgpl is given.
73861         * modules/csharpcomp-script: New file.
73862         * modules/csharpcomp: Depend on it.
73863         * modules/javacomp-script: New file.
73864         * modules/javacomp: Depend on it.
73865         Suggested by Simon Josefsson.
73866
73867 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
73868
73869         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
73870         statement, to work around an HP-UX 10.20 compiler bug reported by
73871         Peter O'Gorman.
73872
73873 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73874
73875         * modules/savedir (Depends-on): Add openat.
73876
73877 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73878
73879         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
73880         (uintmax_t) [defined uintmax_t]: Do not declare.
73881         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
73882         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
73883         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
73884         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
73885         sake of portability to weird hosts that C allows (though we don't
73886         know of any practical examples).
73887
73888         * lib/savedir.h (fdsavedir): New decl.
73889         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
73890         contains most of the former guts of savedir.
73891         (savedir): Use savedirstream.
73892         Include "openat.h".
73893
73894 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73895
73896         * modules/obstack (Files): Add m4/ulonglong.m4.
73897         Problem reported by Davide Angelocola.
73898
73899 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
73900
73901         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
73902         coreutils no longer futzes with rounding modes.
73903
73904 2005-11-14  Jim Meyering  <jim@meyering.net>
73905
73906         * lib/mkstemp-safer.c: Include <config.h>, required for possible
73907         replacement of mkstemp.
73908
73909 2005-11-10  Simon Josefsson  <jas@extundo.com>
73910
73911         * lib/readline.c: Remove EOL.
73912
73913 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73914
73915         * modules/gethrxtime (Depends-on): Add gettime.
73916
73917 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73918
73919         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
73920         or gettimeofday; no longer needed.
73921
73922 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73923
73924         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
73925         time business.
73926         (gethrxtime) [! (HAVE_NANOUPTIME
73927         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
73928         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
73929         our own approximation.
73930
73931 2005-11-08  Eric Blake  <ebb9@byu.net>
73932
73933         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73934
73935 2005-11-08  Eric Blake  <ebb9@byu.net>
73936
73937         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73938
73939 2005-11-04  Bruno Haible  <bruno@clisp.org>
73940
73941         * gnulib-tool: Implement --update mode.
73942
73943 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73944
73945         Fix porting problem reported by Theodoros V. Kalamatianos.
73946         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
73947         Don't assume that futimes failing means we must fail.
73948
73949 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73950
73951         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
73952         variables to suggest the intended function of the PATH_MAX check.
73953
73954 2005-10-30  Kean Johnston  <jkj@sco.com>
73955
73956         Trivial changes to support SCO systems.
73957         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
73958         as PATH_MAX.
73959         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
73960         where __ptr is null when no I/O is pending.
73961
73962 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73963
73964         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
73965         leave errno alone.  Problem reported by Dmitry V. Levin.
73966
73967 2005-10-28  Simon Josefsson  <jas@extundo.com>
73968
73969         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
73970         Test more.
73971
73972         * tests/test-gc-md2.c, tests/test-md2.c: New files.
73973
73974         * modules/md2, modules/md2-tests: New files.
73975
73976 2005-10-28  Simon Josefsson  <jas@extundo.com>
73977
73978         * m4/inet_ntop.m4: More tests.
73979
73980         * m4/gc-md2.m4, md2.m4: New file.
73981
73982 2005-10-28  Simon Josefsson  <jas@extundo.com>
73983
73984         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
73985         "restrict" keywords, as per POSIX.  Protect the function
73986         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
73987         Don't use K&R prototypes.  Check the sprintf return values.
73988         Re-define EAFNOSUPPORT if not present.  Indent.
73989
73990         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
73991         suggested by Bruno Haible <bruno@clisp.org>.
73992
73993         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
73994
73995         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
73996
73997         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
73998         libgcrypt).
73999
74000         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
74001
74002         * lib/md2.h, lib/md2.c: New files.
74003
74004 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
74005
74006         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
74007         errno alone.  Problem reported by Frederic Jolliton.
74008
74009 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
74010
74011         * modules/verify (License): Change from GPL to LGPL.  This is a
74012         tiny module and there are apparently near-equivalents that are
74013         under the BSD license.
74014
74015 2005-10-24  Simon Josefsson  <jas@extundo.com>
74016
74017         * modules/sha1: Relicense to LGPL.
74018
74019 2005-10-24  Simon Josefsson  <jas@extundo.com>
74020
74021         * lib/md4.h: Shrink buffer size, now that we changed the type.
74022
74023 2005-10-23  Simon Josefsson  <jas@extundo.com>
74024
74025         * gnulib-tool (func_import): Fix --tests-base.
74026
74027 2005-10-22  Simon Josefsson  <jas@extundo.com>
74028
74029         * modules/arcfour (Depends-on): Need stdint.
74030
74031 2005-10-22  Simon Josefsson  <jas@extundo.com>
74032
74033         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
74034         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
74035
74036 2005-10-22  Simon Josefsson  <jas@extundo.com>
74037
74038         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
74039         suggested by Bruno Haible <bruno@clisp.org>.
74040
74041 2005-10-22  Simon Josefsson  <jas@extundo.com>
74042
74043         * lib/crc.h: Include stddef.h, for size_t.
74044
74045 2005-10-22  Simon Josefsson  <jas@extundo.com>
74046
74047         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
74048         arcfour_context struct (simplify test vector testing in GNU
74049         Shishi).
74050
74051 2005-10-21  Simon Josefsson  <jas@extundo.com>
74052
74053         * modules/des, modules/des-tests: New files.
74054
74055         * modules/gc-des, modules/gc-des-tests: New files.
74056
74057         * tests/test-des.c, tests/test-gc-des.c: New file.
74058
74059 2005-10-21  Simon Josefsson  <jas@extundo.com>
74060
74061         * modules/arctwo, modules/arctwo-tests: New files.
74062
74063         * tests/test-arctwo.c: New file.
74064
74065         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
74066
74067         * tests/test-gc-arctwo.c: New file.
74068
74069 2005-10-21  Simon Josefsson  <jas@extundo.com>
74070
74071         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
74072         Bruno Haible <bruno@clisp.org>.
74073
74074         * m4/gc-des.m4: New file.
74075
74076 2005-10-21  Simon Josefsson  <jas@extundo.com>
74077
74078         * m4/arctwo.m4: New file.
74079
74080         * m4/gc-arctwo.m4: New file.
74081
74082 2005-10-21  Simon Josefsson  <jas@extundo.com>
74083
74084         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
74085         block.
74086
74087 2005-10-21  Simon Josefsson  <jas@extundo.com>
74088
74089         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
74090         <bruno@clisp.org>.
74091
74092         * lib/hmac-sha1.c (hmac_sha1): Likewise.
74093
74094         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
74095         Bruno Haible <bruno@clisp.org>.
74096
74097         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
74098         <bruno@clisp.org>.
74099
74100 2005-10-21  Simon Josefsson  <jas@extundo.com>
74101
74102         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
74103
74104 2005-10-21  Simon Josefsson  <jas@extundo.com>
74105
74106         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
74107
74108 2005-10-21  Simon Josefsson  <jas@extundo.com>
74109
74110         * lib/des.h, lib/des.c: New files.
74111
74112         * lib/gc-gnulib.c: Support DES.c
74113
74114 2005-10-21  Simon Josefsson  <jas@extundo.com>
74115
74116         * lib/arctwo.h, lib/arctwo.c: New files.
74117
74118         * lib/gc-gnulib.c: Support ARCTWO.
74119
74120 2005-10-21  Simon Josefsson  <jas@extundo.com>
74121
74122         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
74123         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74124
74125 2005-10-21  Simon Josefsson  <jas@extundo.com>
74126
74127         * gnulib-tool (func_import, func_create_testdir): Define automake
74128         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
74129         Makefile.am snippet),
74130         suggested by Bruno Haible <bruno@clisp.org>.
74131
74132         * modules/gc (Makefile.am): Use it.
74133
74134 2005-10-21  Bruno Haible  <bruno@clisp.org>
74135
74136         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
74137         patch.
74138
74139 2005-10-19  Simon Josefsson  <jas@extundo.com>
74140
74141         * tests/test-gc-rijndael.c: New file.
74142
74143         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
74144
74145 2005-10-19  Simon Josefsson  <jas@extundo.com>
74146
74147         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
74148         interface too.
74149
74150 2005-10-19  Simon Josefsson  <jas@extundo.com>
74151
74152         * tests/test-gc-arcfour.c: New file.
74153
74154         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
74155
74156 2005-10-19  Simon Josefsson  <jas@extundo.com>
74157
74158         * modules/gc-md4, modules/gc-md4-tests: New file.
74159
74160         * tests/test-gc-md4.c: New file.
74161
74162 2005-10-19  Simon Josefsson  <jas@extundo.com>
74163
74164         * m4/gc-md4.m4: New file.
74165
74166 2005-10-19  Simon Josefsson  <jas@extundo.com>
74167
74168         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
74169         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
74170         <kasal@ucw.cz>.
74171
74172 2005-10-19  Simon Josefsson  <jas@extundo.com>
74173
74174         * m4/gc-arcfour.m4: New file.
74175
74176         * m4/gc-rijndael.m4: New file.
74177
74178 2005-10-19  Simon Josefsson  <jas@extundo.com>
74179
74180         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
74181
74182 2005-10-19  Simon Josefsson  <jas@extundo.com>
74183
74184         * lib/gc-gnulib.c: Support ARCFOUR.
74185
74186 2005-10-19  Simon Josefsson  <jas@extundo.com>
74187
74188         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
74189         support.
74190
74191         * lib/gc.h: Add ECB enum type.
74192
74193         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
74194
74195 2005-10-18  Simon Josefsson  <jas@extundo.com>
74196
74197         * tests/test-md5.c: New file.
74198
74199         * modules/md5-tests: New file.
74200
74201 2005-10-18  Simon Josefsson  <jas@extundo.com>
74202
74203         * tests/test-md4.c: New file.
74204
74205         * modules/md4, modules/md4-tests: New files.
74206
74207 2005-10-18  Simon Josefsson  <jas@extundo.com>
74208
74209         * m4/md4.m4: New file.
74210
74211 2005-10-18  Simon Josefsson  <jas@extundo.com>
74212
74213         * lib/md4.h, lib/md4.c: New files, based on md5.?.
74214
74215 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
74216
74217         * gnulib-tool (func_create_testdir): Omit the second check whether
74218         BUILT_SOURCES in nonempty.
74219
74220 2005-10-17  Simon Josefsson  <jas@extundo.com>
74221
74222         * tests/test-rijndael.c: New file.
74223
74224 2005-10-17  Simon Josefsson  <jas@extundo.com>
74225
74226         * modules/sha1: Depend on stdint instead of md5.
74227
74228         * modules/md5: Depend on stdint, remove uint32_t.
74229
74230 2005-10-17  Simon Josefsson  <jas@extundo.com>
74231
74232         * modules/gc-sha1-tests: New file.
74233
74234         * tests/test-gc-sha1.c: New file.
74235
74236 2005-10-17  Simon Josefsson  <jas@extundo.com>
74237
74238         * m4/md5.m4: Remove call to uint32_t.m4.
74239
74240 2005-10-17  Simon Josefsson  <jas@extundo.com>
74241
74242         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
74243
74244         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
74245         md5.h.
74246
74247         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
74248
74249         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
74250
74251 2005-10-17  Simon Josefsson  <jas@extundo.com>
74252
74253         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
74254
74255 2005-10-17  Simon Josefsson  <jas@extundo.com>
74256
74257         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
74258
74259 2005-10-17  Simon Josefsson  <jas@extundo.com>
74260
74261         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
74262
74263         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
74264
74265 2005-10-17  Bruno Haible  <bruno@clisp.org>
74266
74267         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
74268         that it can also be used in a test.
74269
74270 2005-10-16  Bruno Haible  <bruno@clisp.org>
74271
74272         * gnulib-tool (func_emit_tests_Makefile_am): Also define
74273         TESTS_ENVIRONMENT, so that individual tests can augment it.
74274
74275         * gnulib-tool (func_create_testdir): Use an intermediate target for
74276         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
74277         macros, like $(ALLOCA_H), which cannot be passed through the command
74278         line.
74279
74280 2005-10-15  Simon Josefsson  <jas@extundo.com>
74281
74282         * modules/rijndael-tests: New file.
74283
74284         * modules/rijndael: New file.
74285
74286 2005-10-15  Simon Josefsson  <jas@extundo.com>
74287
74288         * m4/rijndael.m4: New file.
74289
74290 2005-10-15  Simon Josefsson  <jas@extundo.com>
74291
74292         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
74293
74294         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
74295
74296 2005-10-14  Simon Josefsson  <jas@extundo.com>
74297
74298         * tests/test-arcfour.c: New file.
74299
74300         * modules/arcfour, modules/arcfour-tests: New files.
74301
74302 2005-10-14  Simon Josefsson  <jas@extundo.com>
74303
74304         * m4/arcfour.m4: New file.
74305
74306 2005-10-14  Simon Josefsson  <jas@extundo.com>
74307
74308         * lib/arcfour.h, lib/arcfour.c: New files.
74309
74310 2005-10-14  Roland McGrath  <roland@redhat.com>
74311
74312         Import from libc.  [BZ #1331]
74313         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
74314         macro argument.
74315         Reported by Matej Vela <vela@debian.org>.
74316
74317 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74318
74319         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
74320         include <wchar.h>; no longer needed.
74321
74322 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74323
74324         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
74325
74326 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
74327         and  Ulrich Drepper  <drepper@redhat.com>
74328
74329         Import from libc.
74330         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
74331         instead of inline stream orientation test and two separate
74332         function calls.  Pay no attention to USE_IN_LIBIO.
74333
74334 2005-10-13  Simon Josefsson  <jas@extundo.com>
74335
74336         * modules/gc-hmac-md5-tests: New file.
74337
74338         * tests/test-gc-hmac-sha1.c: New file.
74339
74340         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
74341
74342         * modules/gc-hmac-md5-tests: New file.
74343
74344         * tests/test-gc-md5.c: New file.
74345
74346         * modules/gc-md5-tests: New file.
74347
74348 2005-10-13  Simon Josefsson  <jas@extundo.com>
74349
74350         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
74351         Move memory allocation outside of loop.
74352
74353 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
74354
74355         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
74356         intermediate directory is in a read-only file system.  Problem
74357         reported by Eric Blake.
74358
74359 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
74360
74361         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
74362
74363 2005-10-12  Simon Josefsson  <jas@extundo.com>
74364
74365         * tests/test-hmac-sha1.c: New file.
74366
74367         * modules/hmac-sha1-tests: New file.
74368
74369         * modules/hmac-sha1: New file.
74370
74371 2005-10-12  Simon Josefsson  <jas@extundo.com>
74372
74373         * modules/gc-sha1: New file.
74374
74375 2005-10-12  Simon Josefsson  <jas@extundo.com>
74376
74377         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
74378
74379         * tests/test-gc-pbkdf2-sha1.c: New file.
74380
74381 2005-10-12  Simon Josefsson  <jas@extundo.com>
74382
74383         * modules/gc-md5, modules/gc-hmac-md5: New files.
74384
74385         * modules/gc (Files): Remove md5, memxor and hmac files.
74386
74387 2005-10-12  Simon Josefsson  <jas@extundo.com>
74388
74389         * m4/gc-pbkdf2-sha1.m4: New file.
74390
74391         * m4/gc-hmac-sha1.m4: New file.
74392
74393         * m4/gc-sha1: New file.
74394
74395         * m4/hmac-sha1.m4: New file.
74396
74397 2005-10-12  Simon Josefsson  <jas@extundo.com>
74398
74399         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
74400
74401         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
74402
74403 2005-10-12  Simon Josefsson  <jas@extundo.com>
74404
74405         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
74406         suggested by Bruno Haible <bruno@clisp.org>.
74407
74408 2005-10-12  Simon Josefsson  <jas@extundo.com>
74409
74410         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
74411
74412 2005-10-12  Simon Josefsson  <jas@extundo.com>
74413
74414         * lib/gc-pbkdf2-sha1.c: New file.
74415
74416         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
74417
74418 2005-10-12  Simon Josefsson  <jas@extundo.com>
74419
74420         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
74421
74422         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
74423
74424 2005-10-12  Simon Josefsson  <jas@extundo.com>
74425
74426         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
74427         GC_USE_HMAC_MD5, respectively.
74428
74429         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
74430         (gc_md5): Fix typo.
74431
74432         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
74433
74434         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
74435
74436         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
74437
74438 2005-10-12  Bruno Haible  <bruno@clisp.org>
74439
74440         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
74441         Reported by Stepan Kasal <kasal@ucw.cz>.
74442
74443 2005-10-11  Simon Josefsson  <jas@extundo.com>
74444
74445         * tests/test-crc.c: New file.
74446
74447         * modules/crc, modules/crc-tests: New files.
74448
74449 2005-10-11  Simon Josefsson  <jas@extundo.com>
74450
74451         * m4/crc.m4: New file.
74452
74453 2005-10-11  Simon Josefsson  <jas@extundo.com>
74454
74455         * lib/gc.h: Add gc_hash and gc_hash_buffer.
74456
74457         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
74458
74459         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
74460
74461 2005-10-11  Simon Josefsson  <jas@extundo.com>
74462
74463         * lib/crc.h, lib/crc.c: New files.
74464
74465         * lib/gc.h (gc_hash_buffer): Add doc.
74466
74467 2005-10-11  Bruno Haible  <bruno@clisp.org>
74468
74469         * modules/c-strcasestr: New file.
74470         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
74471
74472 2005-10-11  Bruno Haible  <bruno@clisp.org>
74473
74474         * modules/c-strcase: New file.
74475         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
74476
74477 2005-10-11  Bruno Haible  <bruno@clisp.org>
74478
74479         * lib/strcasecmp.c: Include limits.h.
74480         (strcasecmp): Avoid integer overflow on exotic platforms.
74481         * lib/strncasecmp.c: Include limits.h.
74482         (strncasecmp): Avoid integer overflow on exotic platforms.
74483         Reported by Paul Eggert.
74484
74485 2005-10-11  Bruno Haible  <bruno@clisp.org>
74486
74487         * lib/c-strcasestr.h: New file, from GNU gettext.
74488         * lib/c-strcasestr.c: New file, from GNU gettext.
74489
74490 2005-10-11  Bruno Haible  <bruno@clisp.org>
74491
74492         * lib/c-strcase.h: New file, from GNU gettext.
74493         * lib/c-strcasecmp.c: New file, from GNU gettext.
74494         * lib/c-strncasecmp.c: New file, from GNU gettext.
74495
74496 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74497
74498         * modules/mempcpy (License): GPL -> LGPL.
74499         * modules/strchrnul (License): Likewise.
74500         * modules/sysexits (License): Likewise.
74501
74502 2005-10-08  Simon Josefsson  <jas@extundo.com>
74503
74504         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
74505
74506 2005-10-07  Simon Josefsson  <jas@extundo.com>
74507
74508         * m4/memxor.m4: Remove gl_C_RESTRICT call.
74509
74510 2005-10-06  Simon Josefsson  <jas@extundo.com>
74511
74512         * tests/test-hmac-md5.c: New file.
74513
74514         * modules/hmac-md5-tests: New file.
74515
74516         * modules/hmac-md5: New file.
74517
74518 2005-10-06  Simon Josefsson  <jas@extundo.com>
74519
74520         * m4/hmac-md5.m4: New file.
74521
74522         * m4/memxor.m4: Require gl_C_RESTRICT.
74523
74524 2005-10-06  Simon Josefsson  <jas@extundo.com>
74525
74526         * lib/memxor.c (memxor): Avoid casts and warnings.
74527
74528 2005-10-06  Simon Josefsson  <jas@extundo.com>
74529
74530         * lib/hmac-md5.c: New file.
74531
74532         * lib/hmac.h: New file.
74533
74534 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74535
74536         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
74537         promotes to int, not unsigned int, to catch the AIX 5.3
74538         compiler bug.
74539
74540 2005-10-05  Simon Josefsson  <jas@extundo.com>
74541
74542         * modules/memxor: New file.
74543
74544         * modules/iconv (Files): Move config.rpath to havelib, it is used
74545         there.
74546
74547         * modules/havelib (Files): Add config.rpath.
74548
74549 2005-10-05  Simon Josefsson  <jas@extundo.com>
74550
74551         * m4/memxor.m4: New file.
74552
74553 2005-10-05  Simon Josefsson  <jas@extundo.com>
74554
74555         * lib/memxor.c (memxor): Fix compiler error.
74556
74557         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
74558         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
74559
74560         * lib/memxor.h, lib/memxor.c: New files.
74561
74562         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
74563         we assume all systems have it, suggested by Jim Meyering
74564         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
74565         any systems lack sys/socket.h; mingw32 is known to lack it, but we
74566         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
74567         same reasons.
74568
74569 2005-10-05  Simon Josefsson  <jas@extundo.com>
74570
74571         * config/srclist.txt: Add glibc bug 1423 for md5.h.
74572
74573 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
74574
74575         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
74576         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
74577         needed, since the source code now assumes these .h files.
74578
74579 2005-10-05  Derek Price  <derek@ximbiot.com>
74580
74581         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
74582
74583 2005-10-05  Bruno Haible  <bruno@clisp.org>
74584
74585         * modules/stdint (License): Change to LGPL.
74586
74587 2005-10-04  Simon Josefsson  <jas@extundo.com>
74588
74589         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
74590         D. Baushke" <mdb@gnu.org>.
74591
74592 2005-10-04  Bruno Haible  <bruno@clisp.org>
74593
74594         * lib/verify.h (verify_true): Provide alternative definition for C++.
74595
74596 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
74597
74598         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
74599         (SSIZE_MAX): New macro, if not already defined.
74600         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
74601         than 2 GiB.
74602
74603 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74604
74605         Sync from coreutils.
74606         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
74607         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
74608         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
74609         ULLONG_MAX doesn't work with 2.7.2.1.
74610
74611 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74612
74613         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
74614         From Ben Pfaff.
74615
74616         * modules/exclude (Depends-on): Depend on verify.
74617         * modules/strtoimax (Depends-on): Likewise.
74618         * modules/utimecmp (Depends-on): Likewise.
74619
74620 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74621
74622         * lib/exclude.c: Include verify.h.
74623         (verify): Remove.  All callers changed to use verify.h's version.
74624         * lib/strtoimax.c: Likewise.
74625         * lib/utimecmp.c: Likewis.e
74626
74627         Sync from coreutils.
74628         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
74629         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
74630         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
74631         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
74632         bother returning ENOSYS if settimeofday or stime fails; just let
74633         them return whatever errno they want to return.
74634         * lib/utimens.c: Include unistd.h, for dup2.
74635         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
74636         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
74637
74638 2005-10-02  Jim Meyering  <jim@meyering.net>
74639
74640         Sync from coreutils.
74641         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
74642         from glibc-2.2.5 that fails for read-only files.
74643
74644 2005-10-02  Jim Meyering  <jim@meyering.net>
74645
74646         Sync from coreutils.
74647         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
74648         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
74649         `#if HAVE_CONFIG_H'.
74650         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
74651         Remove AT_FDCWD test.
74652         Do not consume the fd unless successful.
74653         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
74654         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
74655         block, so that we don't even try to compile it if settimeofday is
74656         available.  This works around a compilation failure on OSF1 V5.1,
74657         due to stime requiring a `long int*' while tv_sec is `int'.
74658
74659 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
74660
74661         Sync from coreutils.
74662         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
74663         against `yes', rather than just testing for nonempty.
74664
74665 2005-10-01  Simon Josefsson  <jas@extundo.com>
74666
74667         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
74668         and Darwin.
74669
74670         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
74671         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
74672         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
74673         freeaddrinfo and gai_strerror are declared by the POSIX headers.
74674         Check if struct addrinfo is declared.
74675
74676 2005-10-01  Simon Josefsson  <jas@extundo.com>
74677
74678         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
74679         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
74680         AI_* and EAI_* definitions.  Protect function declarations.
74681
74682 2005-10-01  Jim Meyering  <jim@meyering.net>
74683
74684         Sync from coreutils.
74685
74686         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
74687         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
74688         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
74689         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74690         in the inet and nsl libraries.  Required on Solaris 5.7.
74691
74692 2005-10-01  Jim Meyering  <jim@meyering.net>
74693
74694         Sync from coreutils.
74695         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74696         in the inet and nsl libraries.  Required on Solaris 5.7.
74697
74698 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
74699
74700         * lib/getdelim.c (getdelim): Remove unused variables.
74701
74702 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74703
74704         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
74705         so that the code works even with ancient cpp.  Portability problem
74706         with GCC 2.7.2.1 reported by Thomas M.Ott.
74707
74708 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74709
74710         * modules/regex (Depends-on): Add strcase.
74711
74712         * modules/gethostname (Licence): Change from GPL to LGPL, since
74713         gethostname.c is a trivial implementation of a standard library
74714         function.
74715         * modules/poll (License): Change from GPL to LGPL, since it's
74716         derived from LGPL code.
74717
74718 2005-09-27  Jim Meyering  <jim@meyering.net>
74719
74720         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
74721         HAVE_CONFIG_H.
74722
74723         * lib/intprops.h (signed_type_or_expr__): Define.
74724         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
74725         for unsigned types.
74726
74727 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74728
74729         * lib/verify.h (verify_expr): Remove, replacing with:
74730         (verify_true): New macro that returns true instead of void.
74731         (verify_type__): Remove.
74732         (verify): Use verify_true rather than verify_type__.
74733
74734 2005-09-26  Bruno Haible  <bruno@clisp.org>
74735
74736         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
74737         is necessary.
74738         (lib_SOURCES): Remove mbchar.c.
74739         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
74740         (Files): Add m4/mbrtowc.m4.
74741         * modules/mbiter: Likewise.
74742         * modules/mbuiter: Likewise.
74743
74744 2005-09-26  Bruno Haible  <bruno@clisp.org>
74745
74746         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
74747         compile mbchar.c if they are not both present.
74748         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
74749         * m4/mbiter.m4 (gl_MBITER): Likewise.
74750         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
74751         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
74752         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
74753
74754 2005-09-25  Jim Meyering  <jim@meyering.net>
74755
74756         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
74757         also uses socklen_t.
74758
74759 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
74760
74761         * lib/utimens.c (ENOSYS): Define if not already defined.
74762         (futimens): Support having a null PATH if the file descriptor
74763         is nonnegative.
74764
74765         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
74766         Remove.
74767         (__attribute): Define to empty unless GCC 3.1 or later.
74768         This works around a core dump on OpenBSD 3.4, which has GCC
74769         2.95.3, which dumps core when given __attribute__(()).  It also
74770         simplifies other tests, since we really don't want to bother with
74771         worrying about which ancient version of GCC supported what.
74772         Original problem reported by Yoann Vandoorselaere, with part of
74773         the fix suggested by Derek Price.
74774
74775 2005-09-24  Jim Meyering  <jim@meyering.net>
74776
74777         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
74778         so we can once again use a positive bitfield width of 1 -- now we
74779         don't have to explain why we were using a bitfield width of 2.
74780
74781 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74782
74783         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
74784         and similarly for the other external symbols.  Problem reported
74785         by James Gallager.
74786
74787         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
74788         bug reported by Jim Meyering.
74789
74790         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
74791         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
74792         not needed, since socklen is a prerequisite module.
74793
74794 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74795
74796         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
74797         Problem reported by Eric Blake.
74798         (getaddrinfo): Initialize se so that it's not garbage.
74799         Redo internal storage allocation so that it doesn't make unportable
74800         assumptions about alignment.
74801         Fix a memory leak.
74802
74803         * lib/utimens.c (futimens): Use futimesat if available.
74804         Prefer it to futimes since it doesn't have the futimes bug.
74805
74806         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
74807         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
74808         Instead, declare a function that returns a pointer to an array,
74809         and use verify_type__ to declare the size of the array.
74810         Problem and germ of a solution reported by Bruno Haible.
74811         (verify_type__): Use 2, not 1, for bitfield size, to avoid
74812         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
74813
74814 2005-09-23  Jim Meyering  <jim@meyering.net>
74815
74816         Sync from coreutils.
74817         Correct build failure (socklen_t not defined) on at least
74818         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
74819         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
74820
74821 2005-09-23  Jim Meyering  <jim@meyering.net>
74822
74823         * modules/getaddrinfo (Depends-on): Add socklen.
74824
74825 2005-09-23  Bruno Haible  <bruno@clisp.org>
74826
74827         * tests/test-verify.c: New file.
74828
74829 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74830
74831         Sync from coreutils.
74832
74833         * modules/argmatch (Depends-on): Add verify.
74834         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
74835         unistd-safer.
74836         * modules/save-cwd (Depends-on): Likewise.
74837
74838         * modules/openat (Files): Add lib/openat-die.c.
74839         (Depends-on): Remove error, exitfail.
74840         Add dirname.
74841
74842         * modules/verify: New file.
74843         * MODULES.html.sh (Diagnostics <assert.h>): New section,
74844         with "verify" module.
74845
74846 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74847
74848         Sync from coreutils.
74849
74850         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
74851         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
74852         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
74853         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
74854         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
74855         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
74856         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
74857         Don't bother checking for string.h, stdlib.h, unistd.h.
74858         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
74859         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
74860         module's job.
74861         * m4/jm-macros.m4 (gl_MACROS): Likewise.
74862         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
74863
74864         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
74865         (gl_GETDATE): Use it.
74866
74867         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
74868
74869 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74870
74871         Sync from coreutils.
74872
74873         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
74874         stat-time.h.
74875         * lib/argmatch.h: Include verify.h
74876         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
74877         (ARGMATCH_ASSERT): Remove; unused.
74878         * lib/canonicalize.c: Assume STDC_HEADERS.
74879         * lib/exclude.c: Include "strcase.h".
74880         * lib/regex_internal.h [!defined _LIBC]: Likewise.
74881         * lib/getusershell.c: Include stdio--.h rather than stdio.h
74882         and stdio-safer.h.
74883         (getusershell): Call fopen, not fopen_safer.
74884         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
74885         Do not include unistd-safer.h.
74886         (save_cwd): Don't call fd_safer; no longer needed
74887         now that we include fcntl--.h.
74888
74889         * lib/getdate.y (relative_time): New type.
74890         (RELATIVE_TIME_0): New constant.
74891         (parser_control): Use relative_time instead of doing it ourselves.
74892         (%union): Add new relative_time rel member.
74893         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
74894         Now typeless.
74895         (relunit, relunit_snumber): Now of type rel.
74896         (zone, rel, relunit, get_date): Adjust to above changes.
74897
74898         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
74899         Do not include unistd-safer.h.
74900         (getloadavg): Don't call fd_safer; no longer needed
74901         now that we include fcntl--.h.
74902
74903         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
74904         (make_dir_parents): Treat ENOSYS like EEXIST.
74905
74906         Improve quality of diagnostics on restore_cwd failure.
74907         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
74908         (make_dir_parents): Last arg is now int * (for errno), not bool *.
74909         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
74910         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
74911         each time through the loop.  Do not diagnose restore_cwd failure;
74912         that is the caller's job (and perhaps the caller does not care).
74913
74914         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
74915         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
74916         If the file already exists but is not a directory, don't bother
74917         to try to make its parents.
74918         Close potential file descriptor leak if we can't chdir("/") (!).
74919         Don't always return true if chdir($PWD) fails; return true only
74920         if the requested action was done successfully (except for the
74921         chdir($PWD)).
74922         Don't log final directory unless we actually made it.
74923         Refactor to avoid duplicate code to fix up permissions.
74924         Don't attempt to fix up parent permissions if chdir($PWD) fails.
74925
74926         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
74927         to make it a bit faster and (I hope) clearer.
74928         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
74929         Fix bug in formats like %2N.
74930
74931         * lib/verify.h: New file.
74932
74933 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74934
74935         Sync from coreutils.
74936         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
74937
74938 2005-09-22  Jim Meyering  <jim@meyering.net>
74939
74940         Sync from coreutils.
74941
74942         * m4/lstat.m4 (gl_FUNC_LSTAT):
74943         Use AC_LIBSOURCES to require lstat.c and lstat.h.
74944         Remove obsolete comment.
74945         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
74946         * m4/xstrtod.m4: Likewise.
74947
74948         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
74949
74950 2005-09-22  Jim Meyering  <jim@meyering.net>
74951
74952         Sync from coreutils.
74953
74954         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
74955
74956         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
74957         the .tm_year member, since otherwise gcc-4.0 would now warn about
74958         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
74959
74960         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
74961         order to avoid an unsuppressible warning from gcc on 64-bit systems.
74962
74963         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
74964         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
74965         when run in a time zone for which daylight savings time is in effect
74966         for the starting date.
74967
74968         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
74969         stop us from restricting permissions of just-created absolute-named
74970         directories.
74971         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
74972         to restore initial working directory.
74973         * lib/mkdir-p.c (make_dir_parents): New parameter:
74974         different_working_dir, to tell caller if/when we change the working
74975         directory and are unable to return to the initial one.
74976         * lib/mkdir-p.h (make_dir_parents): Update prototype.
74977         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
74978         `return false'.  This fixes a bug introduced on 2004-07-30.
74979
74980         * lib/openat.c (fdopendir): Be sure to close the supplied
74981         file descriptor before returning.  This makes our replacement
74982         implementation a little closer to Solaris's, where fdopendir
74983         ties the file descriptor to the returned DIR* pointer.
74984         * lib/openat.c (unlinkat): New function.
74985         * lib/openat.h (unlinkat): Add prototype.
74986         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
74987         (openat_restore_fail): Rename from openat_restore_die.
74988         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
74989
74990         Provide an alternative to exiting immediately upon save_cwd or
74991         restore_cwd failure.  Now, an application can arrange e.g.,
74992         to perform a longjump in that case.
74993         * lib/openat.c: Include dirname.h.
74994         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
74995         (rpl_openat, fdopendir, fstatat): Call openat_save_die
74996         and openat_restore_die rather than calling error directly.
74997         Don't include "error.h" or "exitfail.h"; they're no longer needed.
74998
74999         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
75000         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
75001         define.
75002
75003         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
75004         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
75005                             int utc, int nanoseconds);
75006         Background:
75007         date should not have to allocate a megabyte of virtual memory to
75008         handle a format argument like +%1048575T.  When implemented with
75009         strftime, it must allocate such a buffer, use strftime to fill it
75010         in, print it, then free it.
75011         With fprintftime, it simply prints everything and exits.
75012         With no need for memory allocation, that's one fewer way to fail.
75013         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
75014         optional field width, not before, so we accept %9:z, not %:9z.
75015         (my_strftime): Be sure to use L_('x') for literals.
75016
75017         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
75018         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
75019         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
75020         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
75021         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
75022         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
75023         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
75024         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
75025         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
75026         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
75027         * lib/xgethostname.c, lib/xreadlink.c:
75028         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
75029
75030         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
75031         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
75032         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
75033         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
75034         and don't include <sys/file.h>).
75035
75036 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
75037
75038         Sync from coreutils.
75039
75040         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
75041         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
75042         [!LDAV_DONE]: Avoid unused variable warning.
75043
75044 2005-09-21  Bruno Haible  <bruno@clisp.org>
75045
75046         * lib/unicodeio.h (unicode_to_mb): New declaration.
75047
75048 2005-09-20  Derek Price  <derek@ximbiot.com>
75049
75050         * lib/getaddrinfo.c: Don't include <netdb.h> included from
75051         getaddrinfo.h.
75052
75053 2005-09-20  Bruno Haible  <bruno@clisp.org>
75054
75055         * gnulib-tool: Remove trailing slashes from the values specified for
75056         --source-base, --m4-base, --tests-base, --aux-dir.
75057         Suggested by Simon Josefsson <jas@extundo.com>.
75058
75059 2005-09-20  Bruno Haible  <bruno@clisp.org>
75060
75061         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
75062         func_modules_to_filelist, func_import, func_create_testdir): Make all
75063         sorting results locale-independent, so that gnulib-cache.m4 doesn't
75064         change when gnulib-tool is invoked in a different locale.
75065
75066 2005-09-19  Simon Josefsson  <jas@extundo.com>
75067
75068         * m4/socklen.m4: Fix typo.
75069
75070 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75071
75072         Use a consistent style for including <config.h>.
75073         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
75074         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
75075         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
75076         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
75077         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
75078         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
75079         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
75080         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
75081         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
75082         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
75083         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
75084         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
75085         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
75086         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
75087         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
75088         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
75089         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
75090         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
75091         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
75092         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
75093         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
75094         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
75095         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
75096         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
75097         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
75098         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
75099         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
75100         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
75101         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
75102         lib/xstrtoumax.c, lib/yesno.c:
75103         Standardize inclusion of config.h.
75104         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
75105         lib/inttostr.h:  Removed inclusion of config.h from header files.
75106         * lib/inttostr.c:  Adjusted in-tree users.
75107         * lib/timespec.h: Remove superfluous warning to include config.h.
75108         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
75109         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
75110         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
75111         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
75112         config.h with HAVE_CONFIG_H.
75113
75114 2005-09-19  Jim Meyering  <jim@meyering.net>
75115
75116         * modules/pathmax (License): Change to LGPL.
75117
75118 2005-09-19  Derek Price  <derek@ximbiot.com>
75119
75120         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
75121
75122 2005-09-19  Bruno Haible  <bruno@clisp.org>
75123
75124         * gnulib-tool (import): Provide default for --tests-base.
75125
75126 2005-09-19  Bruno Haible  <bruno@clisp.org>
75127
75128         * doc/quote.texi: New file, extracted from gnulib.texi.
75129         * doc/ctime.texi: New file, extracted from gnulib.texi.
75130         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
75131         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
75132         * doc/gnulib.texi: Include them.
75133
75134 2005-09-18  Bruno Haible  <bruno@clisp.org>
75135
75136         Portability fix.
75137         * gnulib-tool (func_readlink): New function.
75138         (func_ln_if_changed): Use it.
75139
75140 2005-09-18  Bruno Haible  <bruno@clisp.org>
75141
75142         * gnulib-tool: Support --with-tests also with --import.
75143         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
75144         (func_import): Use variables $testsbase and $inctests. Emit a
75145         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
75146         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
75147         SUBDIRS += $testsdir.
75148         (func_create_testdir): Update.
75149
75150 2005-09-18  Bruno Haible  <bruno@clisp.org>
75151
75152         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
75153         instead of $dry_run.
75154         (func_cp_if_changed, func_mv_if_changed): Remove functions.
75155         (func_ln_if_changed): Don't handle dry-run here.
75156         (func_import): In dry-run mode, detect more precisely which actions
75157         would be performed, and don't use "...ing" verbs.
75158
75159 2005-09-18  Bruno Haible  <bruno@clisp.org>
75160
75161         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
75162         (func_import): Use join on two temporary files instead of three nested
75163         loops, in order to determine which files are new or old.
75164
75165 2005-09-18  Bruno Haible  <bruno@clisp.org>
75166
75167         * gnulib-tool (func_import): Comment out code that spits out the
75168         new files with --dry-run.
75169
75170 2005-09-18  Bruno Haible  <bruno@clisp.org>
75171
75172         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
75173
75174 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75175
75176         * lib/stat-time.h: New file.
75177         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
75178         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
75179         in a different way.
75180         (timespec_cmp): New function.
75181         * lib/utimecmp.c: Include stat-time.h.
75182         (SYSCALL_RESOLUTION): Depend on whether various struct stat
75183         members exist, not on the obsolescent ST_MTIM_NSEC.
75184         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
75185
75186 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75187
75188         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
75189
75190 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75191
75192         * MODULES.html.sh (File system functions): Add stat-time.
75193         * modules/stat-time: New file.
75194         * modules/timespec (Files): Remove m4/st_mtim.m4; this
75195         is now done in a different way, by the stat-time module.
75196         * modules/utimecmp (Depends-on): Add stat-time.
75197
75198 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75199
75200         * m4/st_mtim.m4: Remove.  Superseded by...
75201         * m4/stat-time.m4: New file.
75202         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
75203         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
75204
75205 2005-09-15  Derek Price  <derek@ximbiot.com>
75206
75207         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
75208
75209 2005-09-15  Derek Price  <derek@ximbiot.com>
75210
75211         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
75212         * lib/regex_internal.c: Ditto, using this...
75213         (__GNUC_PREREQ): ...new macro.
75214         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
75215         using...
75216         (__GNUC_PREREQ): ...this new macro.
75217
75218         * lib/strstr.h: Include string.h. Define strstr as a macro here.
75219
75220 2005-09-15  Derek Price  <derek@ximbiot.com>
75221             Paul Eggert  <eggert@cs.ucla.edu>
75222
75223         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
75224         changes, consolidating in...
75225         * lib/regex_internal.h: ...this file.
75226
75227 2005-09-13  Jim Meyering  <jim@meyering.net>
75228
75229         * lib/canon-host.c: Filter through gnu indent and reword comments
75230         slightly.
75231         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
75232
75233 2005-09-13  Derek Price  <derek@ximbiot.com>
75234
75235         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
75236         failure.
75237         Reported by Jim Meyering  <jim@meyering.net>.
75238
75239 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75240
75241         * lib/base64.c: Typo.
75242         (base64_encode): Put b64str in initialized data section.
75243
75244 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
75245
75246         Merge glibc and coreutils changes into gnulib, plus a few
75247         extra fixes.
75248         * lib/md5.c: Use #error rather than a string.
75249         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
75250         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
75251         (__attribute__): Define to empty for non recent-GCC.
75252         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
75253         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
75254         Renamed from their non-__ counterparts, with new macros replacing
75255         them if not _LIBC.  Add __THROW attribute.
75256         (rol): Remove.
75257         (struct md5_ctx): Align buffer if using GCC.
75258         * lib/sha1.h (struct sha1_ctx): Likewise.
75259         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
75260         The old name was backwards.
75261         (NOTSWAP): Remove; not used.
75262         (rol): New macro, moved here from md5.h.
75263         (sha1_process_block): Remove a FIXME that doesn't make sense.
75264
75265 2005-09-12  Derek Price  <derek@ximbiot.com>
75266
75267         Return usable errors from canon-host.
75268         * lib/canon-host.h: New file.
75269         * lib/canon-host.c (canon_host): Wrap...
75270         (canon_host_r): ...this new function, which now relies exclusively on
75271         getaddrinfo.
75272         (ch_strerror): New function.
75273         (last_cherror): New global.
75274         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
75275         interface.
75276         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
75277         void *.
75278         (freeaddrinfo): Free ai->ai_canonname when set.
75279
75280 2005-09-12  Derek Price  <derek@ximbiot.com>
75281
75282         Make canon-host require getaddrinfo.
75283         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
75284         AC_LIBSOURCE canon-host.h.  Call...
75285         (gl_PREREQ_CANON_HOST): ...this new function, which requires
75286         gl_GETADDRINFO.
75287         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
75288
75289 2005-09-12  Derek Price  <derek@ximbiot.com>
75290
75291         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
75292         LGPL.
75293         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
75294
75295 2005-09-12  Derek Price  <derek@ximbiot.com>
75296
75297         * lib/gai_strerror.c: Include config.h when available.  Include
75298         getaddrinfo.h before other headers to test interface.
75299         Reported by Larry Jones <lawrence.jones@ugs.com>.
75300
75301 2005-09-12  Derek Price  <derek@ximbiot.com>
75302             Paul Eggert  <eggert@cs.ucla.edu>
75303
75304         * modules/glob (Files): Add glob-libc.h.
75305
75306 2005-09-12  Derek Price  <derek@ximbiot.com>
75307             Paul Eggert  <eggert@cs.ucla.edu>
75308
75309         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
75310         glob_.h, glob-libc.h.
75311         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
75312
75313 2005-09-12  Derek Price  <derek@ximbiot.com>
75314             Paul Eggert  <eggert@cs.ucla.edu>
75315
75316         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
75317         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
75318         protecting things that should be done only in gnulib contexts.
75319         * lib/glob_.h: New file, containing only the glob things needed for
75320         gnulib.
75321         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
75322         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
75323         (glob, globfree, glob_pattern_p): Now defined simply in terms of
75324         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
75325         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
75326         and to respect the namespace rules better.
75327
75328 2005-09-08  Simon Josefsson  <jas@extundo.com>
75329
75330         * modules/socklen: New file.
75331
75332 2005-09-08  Simon Josefsson  <jas@extundo.com>
75333
75334         * m4/socklen.m4: New file.
75335
75336 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75337
75338         * modules/utimens (Files): Add m4/utimbuf.m4, since
75339         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
75340         Reported by Sergey Poznyakoff.
75341
75342 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75343
75344         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
75345         definitions, since that's the preferred style in glibc.
75346         Fix a minor spacing issue, and update copyright notice to match
75347         glibc's.
75348
75349 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75350
75351         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
75352
75353 2005-09-06  Simon Josefsson  <jas@extundo.com>
75354
75355         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
75356         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
75357
75358 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75359
75360         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
75361         warning.
75362
75363 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75364
75365         * config/srclist.txt: Add glibc bug 1302.
75366
75367 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
75368
75369         Change bitset word type from unsigned int to unsigned long int,
75370         as this has better performance on typical 64-bit hosts.
75371         Port bitset code to hosts with unusual word sizes.
75372         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
75373         (build_collating_symbol):
75374         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
75375         argument is a bitset.  This is merely a style issue, but it makes
75376         it clearer that an entire array is expected.
75377         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
75378         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
75379         Port to the case where bitset_word is not the same as unsigned int.
75380         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75381         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
75382         Likewise.
75383         * lib/regexec.c (check_dst_limits_calc_pos_1,
75384         check_subexp_matching_top):
75385         (build_trtable, group_nodes_into_DFAstates):
75386         Likewise.
75387         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
75388         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
75389         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
75390         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
75391         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
75392         * lib/regcomp.c (optimize_subexps, lower_subexp):
75393         Work even if bitset_word has holes in its bitwise representation.
75394         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
75395         * lib/regexec.c (check_dst_limits_calc_pos_1,
75396         check_subexp_matching_top):
75397         Likewise.
75398         * lib/regex_internal.c (re_string_reconstruct):
75399         Don't assume UCHAR_MAX == 255.
75400         * lib/regex_internal.h (bitset_set_all): Likewise.
75401         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
75402         All uses changed.
75403         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
75404         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
75405         All uses changed.
75406         (BITSET_WORD_MAX): New macro.
75407         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
75408         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
75409         (bitset_empty, bitset_copy):
75410         Prefer sizeof (bitset) to multiplying it out ourselves.
75411         (bitset_not_merge): Remove; unused.
75412         (bitset_contain): Return bool, not unsigned int with one bit on.
75413         All callers changed.
75414         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
75415         alignment than re_node_set; do this by defining a new internal
75416         type struct dests_alloc and using it to allocate memory.
75417
75418 2005-09-05  Bruno Haible  <bruno@clisp.org>
75419
75420         * gnulib-tool (func_import): Fix comparison in handling of symbolic
75421         links.
75422
75423 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
75424
75425         * modules/size_max (Makefile.am): Add size_max.h
75426
75427 2005-09-04  Derek Price  <derek@ximbiot.com>
75428
75429         * gnulib-tool (func_import): Fix reversed $symbolic logic.
75430
75431 2005-09-03  Simon Josefsson  <jas@extundo.com>
75432
75433         * gnulib-tool: Fix typo.
75434
75435 2005-09-03  Simon Josefsson  <jas@extundo.com>
75436
75437         * config/srclist.txt: Add glibc bug 1293.
75438
75439 2005-09-03  Derek Price  <derek@ximbiot.com>
75440
75441         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
75442         From Larry Jones <lawrence.jones@ugs.com>.
75443
75444 2005-09-02  Simon Josefsson  <jas@extundo.com>
75445
75446         * modules/socklen: New file.
75447
75448 2005-09-02  Simon Josefsson  <jas@extundo.com>
75449
75450         * modules/havelib: New module.
75451
75452         * modules/gettext, modules/iconv, modules/lock, modules/readline:
75453         Use havelib.
75454
75455 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75456
75457         Check for arithmetic overflow when calculating sizes, to prevent
75458         some buffer-overflow issues.  These patches are conservative, in the
75459         sense that when I couldn't determine whether an overflow was possible,
75460         I inserted a run-time check.
75461         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
75462         macros.
75463         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
75464         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
75465         (re_xnrealloc, re_x2nrealloc): New inline functions.
75466         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
75467         parse_bracket_exp):
75468         (build_equiv_class, build_charclass): Check for arithmetic overflow
75469         in size expression calculations.
75470         * lib/regex_internal.c (re_string_realloc_buffers):
75471         (build_wcs_upper_buffer, re_node_set_add_intersect):
75472         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
75473         (re_dfa_add_node, register_state): Likewise.
75474         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
75475         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
75476         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
75477         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
75478
75479 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75480
75481         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
75482         m4/ulonglong.m4.  Problem reported by Martin Lambers.
75483
75484 2005-09-02  Bruno Haible  <bruno@clisp.org>
75485
75486         Support for lib vs. lib64 distinction on biarch platforms.
75487         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
75488         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
75489         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
75490
75491 2005-09-02  Bruno Haible  <bruno@clisp.org>
75492
75493         * gnulib-tool (import): In the other first-use case, provide defaults
75494         as well.
75495
75496 2005-09-02  Bruno Haible  <bruno@clisp.org>
75497
75498         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
75499         patches not yet found in the latest gettext release.
75500
75501 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75502
75503         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
75504         to avoid a collision with bits/local_lim.h in glibc.
75505         All uses changed.  Problem reported by Dmitry V. Levin in
75506         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
75507
75508         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
75509         bugs in int versus size_t comparisons.
75510         (re_string_context_at): Fix bug where the code assumed that
75511         Idx is signed.
75512
75513         Use bool where appropriate.
75514         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
75515         All callers changed.
75516         (calc_eclosure_iter): Likewise, for ROOT arg.
75517         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
75518         (build_charclass_op): Likewise, for NON_MATCH arg.
75519         * lib/regex_internal.c (re_string_allocate, re_string_construct):
75520         (re_string_construct_common): Likewise, for ICASE arg.
75521         * lib/regexec.c (re_search_2_stub, re_search_stub):
75522         Likewise, for RET_LEN arg.
75523         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
75524         (set_regs): Likewise, for FL_BACKTRACK arg.
75525         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
75526         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
75527         (calc_eclosure_iter, parse_bracket_exp):
75528         Use bool for internal variables that are booleans.
75529         * lib/regexec.c (re_search_internal, check_matching,
75530         proceed_next_node):
75531         (set_regs, build_sifted_states, sift_states_bkref):
75532         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
75533         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75534         (find_collation_sequence_value):
75535         Likewise.
75536         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
75537         (re_node_set_compare):
75538         Return bool, not int. All callers changed.
75539         * lib/regexec.c (check_halt_node_context, check_dst_limits):
75540         (build_trtable, check_node_accept): Likewise.
75541         * lib/regex_internal.h: Include stdbool.h.
75542
75543         Fix bugs uncovered when converting to bool.
75544         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
75545         failure instead of charging ahead blindly.
75546         * lib/regex_internal.c (register_state): Likewise.
75547         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
75548         for freeing internal storage.
75549         (group_nodes_into_DFA_states): Use unsigned int, not int, for
75550         bitset pieces used as boolean, to avoid undefined behavior
75551         on hosts that do int overflow checking.
75552
75553 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75554
75555         * config/srclist.txt: Add glibc bugs 1285-1287.
75556
75557 2005-09-01  Jim Meyering  <jim@meyering.net>
75558
75559         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
75560         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
75561         Require gl_STAT_MACROS, too.
75562
75563 2005-09-01  Bruno Haible  <bruno@clisp.org>
75564
75565         * gnulib-tool (import): In the first-use case, provide defaults.
75566
75567 2005-09-01  Bruno Haible  <bruno@clisp.org>
75568
75569         * gnulib-tool (func_import): Remove the .tmp files.
75570
75571 2005-09-01  Bruno Haible  <bruno@clisp.org>
75572
75573         * gnulib-tool (func_import): Fix handling of symbolic links.
75574
75575 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75576
75577         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
75578         old glibc regex code mishandles strings longer than 2**31 bytes.
75579         This patch fixes this when the regex code is used in gnulib
75580         (i.e., outside glibc).
75581
75582         This patch should not affect the use of the regex code inside
75583         glibc.  No doubt this problem also needs to be handled for glibc
75584         as well, but the result will be an incompatible change to the
75585         glibc ABI, and the old ABI will have to be supported too.  That
75586         can be the the subject for another patch.
75587
75588         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
75589         governing whether the rest of this patch is active.  By default,
75590         the macro is disabled and the patch has no effect.
75591         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
75592         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
75593         (struct re_pattern_buffer, re_search, re_search_2, re_match):
75594         (re_match_2, re_set_registers): Use the new types.
75595         * lib/regex_internal.h (Idx, re_hashval_t): New types.
75596         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
75597         New macros.
75598         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
75599         (re_string_context_at, bin_tree_t, re_dfastate_t):
75600         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
75601         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
75602         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
75603         (re_string_char_size_at, re_string_wchar_at):
75604         (re_string_elem_size_at):
75605         Use the new types and macros to port to 64-bit hosts.
75606         Use unsigned types for internal values, so that the code
75607         mostly works even for arrays larger than SSIZE_MAX.
75608         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
75609         (search_duplicated_node, calc_eclosure_iter, fetch_number):
75610         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
75611         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
75612         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
75613         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
75614         (calc_inveclosure, parse_dup_op, build_range_exp):
75615         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
75616         (fetch_number, create_token_tree, mark_opt_subexp):
75617         Likewise.
75618         * lib/regex_internal.c (re_string_construct_common,
75619         create_ci_newstate):
75620         (create_cd_newstate, re_string_allocate, re_string_construct):
75621         (re_string_realloc_buffers, build_wcs_upper_buffer):
75622         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75623         (re_string_reconstruct, re_string_peek_byte_case):
75624         (re_string_fetch_byte_case, re_string_context_at):
75625         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75626         (re_node_set_init_copy, re_node_set_add_intersect):
75627         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75628         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75629         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75630         (re_acquire_state, re_acquire_state_context, register_state):
75631         Likewise.
75632         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
75633         search_cur_bkref_entry):
75634         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
75635         (re_search_internal, re_search_2_stub, re_search_stub)
75636         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
75637         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
75638         (update_cur_sifted_state, check_dst_limits):
75639         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75640         (check_subexp_limits, sift_states_bkref, merge_state_array):
75641         (check_subexp_matching_top, get_subexp, get_subexp_sub):
75642         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
75643         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75644         (expand_bkref_cache, check_node_accept_bytes):
75645         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
75646         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
75647         (acquire_init_state_context, check_halt_node_context):
75648         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
75649         (sift_states_backward, clean_state_log_if_needed):
75650         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
75651         (find_recover_state, transit_state_sb, transit_state_mb):
75652         (transit_state_bkref, build_trtable, match_ctx_clean):
75653         Likewise.
75654         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
75655         to work around an assumption that REG_MISSING is negative.
75656
75657         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
75658         (seek_collating_symbol_entry) [defined _LIBC]:
75659         (lookup_collation_sequence_value) [defined _LIBC]:
75660         (build_range_exp, build_collating_symbol) [defined _LIBC]:
75661         Use prototypes rather than old-style function definitions.
75662         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
75663         (transit_state_sb) [0]:
75664         (find_collation_sequence_value) [defined _LIBC]: Likewise.
75665
75666         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
75667         rm_eo.
75668
75669         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
75670         (optimize_subexps, lower_subexp):
75671         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
75672         since the signed shift might overflow.  Use 1u<<31 instead.
75673         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75674         Likewise.
75675         * lib/regexec.c (check_dst_limits_calc_pos_1,
75676         check_subexp_matching_top): Likewise.
75677
75678         * lib/regcomp.c (optimize_subexps, lower_subexp):
75679         Use CHAR_BIT rather than 8, for clarity.
75680         * lib/regexec.c (check_dst_limits_calc_pos_1):
75681         (check_subexp_matching_top): Likewise.
75682         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
75683         have to worry about portability issues when shifting it left.
75684         Remove no-longer-needed test for table_size > 0.
75685         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
75686         in a word, as the resulting behavior is undefined.
75687         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
75688         in one case, a <= should have been an <, and in another case the
75689         whole test was missing.
75690         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
75691         the standard name CHAR_BIT.
75692         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
75693         this is not true on one's complement and signed-magnitude hosts.
75694
75695         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
75696         next_last_offset.
75697         (struct re_dfa_t): Remove unused member states_alloc.
75698         * lib/regcomp.c (init_dfa): Don't initialize unused members.
75699
75700 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75701
75702         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
75703         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
75704         and large-file glibc and in 32-bit large-file Solaris.
75705
75706 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75707
75708         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
75709         lengths fit in regoff_t; this isn't true if regoff_t is the same
75710         width as size_t.
75711         * lib/regex.c (re_search_internal): 5th arg is LAST_START
75712         (= START + RANGE) instead of RANGE.  This avoids overflow
75713         problems when regoff_t is the same width as size_t.
75714         All callers changed.
75715         (re_search_2_stub): Check for overflow when adding the
75716         sizes of the two strings.
75717         (re_search_stub): Check for overflow when adding START
75718         to RANGE; if it occurs, substitute the extreme value.
75719
75720 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75721
75722         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
75723
75724 2005-08-31  Jim Meyering  <jim@meyering.net>
75725
75726         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
75727         a pointer-to-const.
75728         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
75729         (register_state): Likewise.
75730         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
75731         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75732         (group_nodes_into_DFAstates): Likewise.
75733
75734 2005-08-31  Jim Meyering  <jim@meyering.net>
75735
75736         * check-module: Add a FIXME comment.
75737
75738 2005-08-31  Eric Blake  <ebb9@byu.net>
75739
75740         * modules/unistd-safer (Files): Add unistd--.h.
75741         * modules/stdio-safer (Files): Add stdio--.h.
75742
75743 2005-08-31  Derek Price  <derek@ximbiot.com>
75744
75745         * lib/getdelim.c (getdelim): Return EOF on EOF.
75746         Reported by Larry Jones <lawrence.jones@ugs.com>.
75747
75748 2005-08-31  Bruno Haible  <bruno@clisp.org>
75749
75750         Avoid unnecessary diffs in the generated lib/Makefile.am.
75751         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
75752         the generated files.
75753         (func_import): Don't set cmd.
75754
75755 2005-08-31  Bruno Haible  <bruno@clisp.org>
75756
75757         * lib/strstr.c: Include <stddef.h>, for NULL.
75758         * lib/strcasestr.c: Likewise.
75759         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75760
75761 2005-08-31  Bruno Haible  <bruno@clisp.org>
75762
75763         * gnulib-tool: New option --macro-prefix.
75764         (func_import): Use macro_prefix.
75765         (import): Handle option --macro-prefix.
75766
75767 2005-08-31  Bruno Haible  <bruno@clisp.org>
75768
75769         * gnulib-tool (import): Rename most ac_* variables to cached_*.
75770         Also use new variables cached_lgpl, cached_libtool.
75771
75772 2005-08-31  Bruno Haible  <bruno@clisp.org>
75773
75774         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
75775         always instantiating them.
75776
75777 2005-08-31  Bruno Haible  <bruno@clisp.org>
75778
75779         * gnulib-tool (func_import): Read the previous cached settings
75780         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
75781         earlier added by gnulib but are now dropped. Warn when a gnulib file
75782         overwrites a non-gnulib file.
75783
75784 2005-08-31  Bruno Haible  <bruno@clisp.org>
75785
75786         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
75787         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
75788         projects that don't keep autogenerated files in CVS. Put into
75789         actioncmd only the specified modules, not the transitive closure.
75790
75791 2005-08-31  Bruno Haible  <bruno@clisp.org>
75792
75793         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
75794         Create directories that shall be filled.
75795         (import): Don't look for gl_* macros in configure.ac. Recurse across
75796         all directories containing a gnulib-cache.m4 files, if meaningful.
75797
75798 2005-08-31  Bruno Haible  <bruno@clisp.org>
75799
75800         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
75801         (import): Set seen_libtool when we see gl_LIBTOOL.
75802
75803 2005-08-31  Bruno Haible  <bruno@clisp.org>
75804
75805         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
75806         declaration macro definitions from generated gnulib.m4.
75807
75808 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
75809
75810         * lib/iconvme.h: Add prototype for iconv_alloc.
75811
75812 2005-08-29  Simon Josefsson  <jas@extundo.com>
75813
75814         * lib/iconvme.c: Fix errno.
75815
75816 2005-08-29  Bruno Haible  <bruno@clisp.org>
75817
75818         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
75819         that it works when the directory contains spaces.
75820
75821 2005-08-29  Bruno Haible  <bruno@clisp.org>
75822
75823         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
75824
75825 2005-08-29  Bruno Haible  <bruno@clisp.org>
75826
75827         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
75828         Emit more advice.
75829
75830 2005-08-29  Bruno Haible  <bruno@clisp.org>
75831         and Stepan Kasal  <kasal@ucw.cz>
75832
75833         * check-module: If more parameters are given, check each of them
75834         separately; add more exceptions, as noted by Jim Meyering.
75835         (check_module): New procedure.
75836         (%exempt_header): Now contains all exceptions.
75837
75838 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
75839
75840         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
75841
75842 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75843
75844         * lib/iconvme.c: Split iconv_string into iconv_alloc.
75845
75846 2005-08-28  Bruno Haible  <bruno@clisp.org>
75847
75848         * m4/gnulib-tool.m4: New file.
75849
75850 2005-08-27  Jim Meyering  <jim@meyering.net>
75851
75852         * modules/unistd-safer (Files): Add pipe-safer.c.
75853         * modules/fcntl-safer (Files): Add creat-safer.c.
75854
75855 2005-08-27  Jim Meyering  <jim@meyering.net>
75856
75857         * m4/stdlib-safer.m4: New file.  From coreutils.
75858         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
75859         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
75860         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
75861         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
75862         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
75863
75864 2005-08-27  Jim Meyering  <jim@meyering.net>
75865
75866         * lib/fopen-safer.c: Merge minor changes from coreutils.
75867         * lib/dup-safer.c: Likewise.
75868         * lib/fd-safer.c: Likewise.
75869
75870         Merge from coreutils.
75871         * lib/stdio--.h: New file.
75872         * lib/stdlib--.h: New file.
75873         * lib/mkstemp-safer.c: New file.
75874
75875         GNU tar needs these.
75876         * lib/pipe-safer.c: New file.
75877         * lib/creat-safer.c: New file.
75878         * lib/fcntl--.h (creat): Define to creat_safer.
75879         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
75880         * lib/unistd--.h (pipe): Define to pipe_safer.
75881         * lib/unistd-safer.h: Declare pipe_safer.
75882
75883 2005-08-26  Simon Josefsson  <jas@extundo.com>
75884
75885         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
75886         Haible <bruno@clisp.org>.
75887
75888 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
75889
75890         * lib/regex_internal.h: Remove all references to
75891         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
75892         or better.
75893         (bitset_not, bitset_merge, bitset_not_merge):
75894         (bitset_mask, re_string_allocate, re_string_construct):
75895         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
75896         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
75897         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
75898         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
75899         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75900         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75901         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
75902         (re_acquire_state_context):
75903         Remove unnecessary forward decls.
75904         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
75905         Put __attribute at function definition,
75906         now that the function decl has been removed.
75907         * lib/regex_internal.c (re_string_peek_byte_case):
75908         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
75909         Likewise.
75910
75911 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
75912
75913         * m4/regex.m4: Add AC_PREREQ(2.50).
75914         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
75915
75916 2005-08-25  Simon Josefsson  <jas@extundo.com>
75917
75918         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
75919         __fsetlocking.
75920
75921 2005-08-25  Simon Josefsson  <jas@extundo.com>
75922
75923         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
75924         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
75925         GLIBC specific code.
75926
75927 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75928
75929         Make regex safe for g++.  This fixes one real bug (an "err"
75930         that should have been "*err").  g++ problem reported by
75931         Sam Steingold.
75932         * lib/regex_internal.h (re_calloc): New macro, consistent with
75933         re_malloc etc.  All callers of calloc changed to use re_calloc.
75934         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
75935         not int.  All callers changed.
75936         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
75937         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
75938         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
75939         (find_recover_state): Change "err" to "*err"; this fixes what
75940         appears to be a real bug.
75941         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
75942         versus int.
75943
75944 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75945
75946         * modules/regex (Depends-on): Add malloc, since the code
75947         assumes that !malloc(0) means failure.
75948
75949 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75950
75951         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
75952
75953         alloca modernization/simplification for regex.
75954         * lib/regex.c: Remove portability cruft for alloca.  This no longer
75955         needs to be at the start of the file, and can be moved into
75956         regex_internal.h and simplified.
75957         * lib/regex_internal.h: Include <alloca.h>.
75958         (__libc_use_alloca) [!defined _LIBC]: New macro.
75959         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
75960         now works outside glibc.
75961
75962 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75963
75964         * config/srclist.txt: Add glibc bugs 1241, 1245.
75965
75966 2005-08-25  Jim Meyering  <jim@meyering.net>
75967
75968         * lib/open-safer.c: Include <config.h>.
75969         Otherwise, we'd lose LARGEFILE support in any file using
75970         e.g. "fcntl--.h"
75971
75972 2005-08-25  Bruno Haible  <bruno@clisp.org>
75973
75974         * m4/minmax.m4: Require autoconf 2.52.
75975         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
75976         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
75977         alternatives of translit over the alphabet.
75978         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
75979
75980 2005-08-24  Simon Josefsson  <jas@extundo.com>
75981
75982         * tests/test-getpass.c: New file.
75983
75984 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75985
75986         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
75987         for GNU regex features.
75988
75989 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
75990
75991         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
75992         * lib/regex.h (regerror): Likewise.
75993
75994         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
75995         requires this.  (The code never needed it.)
75996
75997         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
75998         All uses of recently-renamed identifiers changed to use the new,
75999         POSIX-compliant names.  The code will build and run just fine
76000         without these changes, but it's better to eat our own dog food
76001         and use the standard-conforming names.
76002
76003         * lib/regex.h: Fix a multitude of POSIX name space violations.
76004         These changes have an effect only for programs that define
76005         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
76006         do not change anything for programs compiled in the normal way.
76007         Also, there is no effect on the ABI.
76008
76009         (_REGEX_SOURCE): New macro.
76010         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
76011         defined and _GNU_SOURCE is not; this fixes a name space violation.
76012
76013         Rename the following macros to obey POSIX requirements.
76014         The old names are still visible as macros if _REGEX_SOURCE is defined.
76015         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
76016         RE_BACKSLASH_ESCAPE_IN_LISTS.
76017         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
76018         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
76019         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
76020         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
76021         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
76022         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
76023         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
76024         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
76025         (REG_INTERVALS): renamed from RE_INTERVALS.
76026         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
76027         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
76028         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
76029         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
76030         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
76031         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
76032         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
76033         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
76034         RE_UNMATCHED_RIGHT_PAREN_ORD.
76035         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
76036         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
76037         (REG_DEBUG): renamed from RE_DEBUG.
76038         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
76039         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
76040         unusual, since we can't clash with the POSIX REG_ICASE.
76041         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
76042         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
76043         (REG_NO_SUB): renamed from RE_NO_SUB.
76044         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
76045         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
76046         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
76047         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
76048         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
76049         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
76050         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
76051         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
76052         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
76053         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
76054         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
76055         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
76056         RE_SYNTAX_POSIX_MINIMAL_BASIC.
76057         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
76058         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
76059         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
76060         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
76061         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
76062         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
76063         (REG_FIXED): Renamed from REGS_FIXED.
76064         (REG_NREGS): Renamed from RE_NREGS.
76065
76066         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
76067         of other REG_* macros, since POSIX says the user is allowed to
76068         #undef these macros selectively.
76069
76070         (reg_errcode_t): Update comment stating what other tables need
76071         to be consistent.
76072
76073         Rename the following enum values to obey POSIX requirements.
76074         The old names are still visible as macros.
76075         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
76076         is not defined, since GNU is supposed to be a superset of POSIX as
76077         much as possible, and since we want reg_errcode_t to be a signed
76078         type for implementation consistency.
76079         (_REG_NOERROR): Renamed from REG_NOERROR.
76080         (_REG_NOMATCH): Renamed from REG_NOMATCH.
76081         (_REG_BADPAT): Renamed from REG_BADPAT.
76082         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
76083         (_REG_ECTYPE): Renamed from REG_ECTYPE.
76084         (_REG_EESCAPE): Renamed from REG_EESCAPE.
76085         (_REG_ESUBREG): Renamed from REG_ESUBREG.
76086         (_REG_EBRACK): Renamed from REG_EBRACK.
76087         (_REG_EPAREN): Renamed from REG_EPAREN.
76088         (_REG_EBRACE): Renamed from REG_EBRACE.
76089         (_REG_BADBR): Renamed from REG_BADBR.
76090         (_REG_ERANGE): Renamed from REG_ERANGE.
76091         (_REG_ESPACE): Renamed from REG_ESPACE.
76092         (_REG_BADRPT): Renamed from REG_BADRPT.
76093         (_REG_EEND): Renamed from REG_EEND.
76094         (_REG_ESIZE): Renamed from REG_ESIZE.
76095         (_REG_ERPAREN): Renamed from REG_ERPAREN.
76096         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
76097         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
76098         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
76099         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
76100
76101         (_REG_RE_NAME, _REG_RM_NAME): New macros.
76102         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
76103         changed.  But support the old name if the new one is not defined
76104         and if _REGEX_SOURCE.
76105
76106         Change the following member names in struct re_pattern_buffer.
76107         The old names are still supported if !_REGEX_SOURCE.
76108         The new names are always supported, regardless of _REGEX_SOURCE.
76109         (re_buffer): Renamed from buffer.
76110         (re_allocated): Renamed from allocated.
76111         (re_used): Renamed from used.
76112         (re_syntax): Renamed from syntax.
76113         (re_fastmap): Renamed from fastmap.
76114         (re_translate): Renamed from translate.
76115         (re_can_be_null): Renamed from can_be_null.
76116         (re_regs_allocated): Renamed from regs_allocated.
76117         (re_fastmap_accurate): Renamed from fastmap_accurate.
76118         (re_no_sub): Renamed from no_sub.
76119         (re_not_bol): Renamed from not_bol.
76120         (re_not_eol): Renamed from not_eol.
76121         (re_newline_anchor): Renamed from newline_anchor.
76122
76123         Change the following member names in struct re_registers.
76124         The old names are still supported if !_REGEX_SOURCE.
76125         The new names are always supported, regardless of _REGEX_SOURCE.
76126         (rm_num_regs): Renamed from num_regs.
76127         (rm_start): Renamed from start.
76128         (rm_end): Renamed from end.
76129
76130         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
76131         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
76132         Prepend __ to parameter names.
76133
76134         Undo yesterday's changes.
76135
76136 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76137
76138         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
76139         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
76140         lib/regex.c.
76141
76142 2005-08-24  Jim Meyering  <jim@meyering.net>
76143
76144         Sync from coreutils.
76145         * m4/fcntl-safer.m4: New file.
76146
76147         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
76148         and object files for this module.
76149
76150 2005-08-24  Jim Meyering  <jim@meyering.net>
76151
76152         Sync from coreutils.
76153         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
76154
76155 2005-08-24  Jim Meyering  <jim@meyering.net>
76156
76157         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
76158         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
76159
76160 2005-08-24  Jim Meyering  <jim@meyering.net>
76161
76162         * modules/fcntl-safer: New module.
76163         * modules/fts (Depends-on): Add fcntl-safer.
76164         * MODULES.html.sh (File descriptor based Input/Output):
76165         Add fcntl-safer.
76166
76167 2005-08-24  Bruno Haible  <bruno@clisp.org>
76168
76169         Support for unit test modules.
76170         * modules/README: Mention tests modules.
76171         * modules/TEMPLATE-TESTS: New file.
76172         * gnulib-tool: New options --extract-tests-module, --with-tests and
76173         --tests-base (unused for the moment).
76174         (testsbase, inctests): New variables.
76175         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
76176         (func_verify_module): Exclude TEMPLATE-TESTS.
76177         (func_verify_nontests_module, func_verify_tests_module): New functions.
76178         (func_get_dependencies): Add implicit dependency for tests modules.
76179         (func_get_tests_module): New function.
76180         (func_modules_transitive_closure): When --with-tests was specified,
76181         include the unit tests as well, unless explicitly avoided.
76182         (func_emit_lib_Makefile_am): Ignore the tests modules here.
76183         (func_emit_tests_Makefile_am): New function.
76184         (func_create_testdir): When --with-tests was specified, emit a
76185         tests/ directory.
76186         * MODULES.html.sh (Future developments): Update.
76187
76188 2005-08-24  Bruno Haible  <bruno@clisp.org>
76189
76190         * modules/tls-tests: New file.
76191         * tests/test-tls.c: New file, from GNU gettext.
76192
76193 2005-08-24  Bruno Haible  <bruno@clisp.org>
76194
76195         * modules/lock-tests: New file.
76196         * tests/test-lock.c: New file, from GNU gettext.
76197
76198 2005-08-24  Bruno Haible  <bruno@clisp.org>
76199
76200         * lib/lock.h: Add multiple inclusion guard.
76201         * lib/tls.h: Add multiple inclusion guard.
76202
76203 2005-08-24  Bruno Haible  <bruno@clisp.org>
76204
76205         * gnulib-tool: Add support for the --aux-dir option to
76206         --create-testdir, --create-megatestdir, --test, --megatest.
76207         (func_create_testdir, func_create_megatestdir): Optionally emit a
76208         AC_CONFIG_AUX_DIR directive.
76209         (create-testdir, create-megatestdir, test, megatest): Provide a
76210         default value for $auxdir.
76211
76212 2005-08-24  Bruno Haible  <bruno@clisp.org>
76213
76214         * gnulib-tool (import): Use compound statement instead of subshell
76215         where possible.
76216
76217 2005-08-24  Bruno Haible  <bruno@clisp.org>
76218
76219         * gnulib-tool (import): Change --aux-dir default to "build-aux".
76220
76221 2005-08-24  Bruno Haible  <bruno@clisp.org>
76222
76223         * gnulib-tool (func_version): Update.
76224
76225 2005-08-24  Bruno Haible  <bruno@clisp.org>
76226
76227         * gnulib-tool (func_import, func_create_testdir,
76228         func_create_megatestdir): Quote all autoconf macro arguments.
76229
76230 2005-08-24  Bruno Haible  <bruno@clisp.org>
76231
76232         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
76233         option --force, because --force causes the aclocal.m4 of each
76234         subdirectory to be newer than the corresponding config.h.in.
76235
76236 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76237
76238         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
76239         All contents moved to gl_REGEX.
76240         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
76241         assume that it does.
76242
76243 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76244
76245         * lib/regex.h (REG_NOSYS)
76246         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
76247         Define, since POSIX requires it as of 2001.
76248         (_REG_ENOSYS)
76249         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
76250         New private symbol, used to keep the enum signed in all cases.
76251         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
76252         Youngman in
76253         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
76254
76255         * lib/regex_internal.c (re_string_skip_chars, register_state):
76256         (calc_state_hash):
76257         Remove forward decls; no longer needed now that we use prototypes.
76258         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
76259         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
76260         (clean_state_log_if_needed): Likewise.
76261
76262 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76263
76264         * config/srclist.txt: Add glibc bugs 1231-1233.
76265
76266 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76267
76268         Fix problems reported by Sam Steingold in
76269         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
76270         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
76271         assumed that reg_errcode_t is a signed type, which is not
76272         necessarily true if _XOPEN_SOURCE is not defined.
76273         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
76274         since some compilers warn about it otherwise.
76275
76276 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76277
76278         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
76279         (init_word_char, create_initial_state, duplicate_node_closure):
76280         (fetch_token, peek_token_bracket, build_range_exp):
76281         (build_collating_symbol): Remove forward decls; no longer needed
76282         now that we use prototypes.
76283
76284         * lib/regcomp.c:
76285         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
76286         (re_compile_fastmap_iter, regcomp, regerror, regfree):
76287         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
76288         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
76289         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
76290         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
76291         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
76292         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
76293         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
76294         (build_range_exp, build_collating_symbol, parse_bracket_exp):
76295         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
76296         (build_charclass, build_charclass_op, fetch_number, create_tree):
76297         (create_token_tree, mark_opt_subexp, duplicate_tree):
76298         Use prototypes rather than old-style definitions.
76299
76300         * lib/regex_internal.c:
76301         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
76302         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
76303         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
76304         (re_string_reconstruct, re_string_peek_byte_case):
76305         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
76306         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
76307         (re_node_set_init_copy, re_node_set_add_intersect):
76308         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76309         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76310         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
76311         (re_acquire_state, re_acquire_state_context, register_state):
76312         (create_ci_newstate, create_cd_newstate, free_state):
76313         Likewise.
76314         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
76315         re_search_2):
76316         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
76317         (re_search_internal, prune_impossible_nodes):
76318         (acquire_init_state_context, check_matching, static):
76319         (check_halt_node_context, check_halt_state_context, proceed_next_node):
76320         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
76321         (update_regs, sift_states_backward, build_sifted_states):
76322         (clean_state_log_if_needed, merge_state_array):
76323         (update_cur_sifted_state, add_epsilon_src_nodes):
76324         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
76325         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
76326         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
76327         (find_recover_state, check_subexp_matching_top, transit_state_mb):
76328         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
76329         (check_arrival, check_arrival_add_next_nodes):
76330         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
76331         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
76332         (check_node_accept_bytes, check_node_accept, extend_buffers):
76333         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
76334         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
76335         (sift_ctx_init):
76336         Likewise.
76337
76338         * lib/regex_internal.h:
76339         (re_string_allocate, re_string_construct, re_string_reconstruct):
76340         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
76341         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
76342         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
76343         (re_string_context_at, re_string_peek_byte_case):
76344         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
76345         is defined, since we now use prototypes always.
76346
76347         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
76348         C89 or better.  All uses removed.
76349
76350 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76351
76352         * config/srclist.txt: Add glibc bugs 1220-1227.
76353
76354 2005-08-20  Jim Meyering  <jim@meyering.net>
76355
76356         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
76357         of unused local, dfa.
76358
76359 2005-08-20  Bruno Haible  <bruno@clisp.org>
76360
76361         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
76362
76363 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76364
76365         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
76366         (re_node_set_insert_last, re_dfa_add_node):
76367         Rename local variables to avoid GCC shadowing warnings.
76368
76369 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76370
76371         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
76372         [defined lint]: Suppress bogus uninitialized-variable warnings.
76373
76374         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
76375         and let the caller return REG_ESPACE if out of space.  This
76376         removes an uninitialied-variable warning with GCC 4.0.1, and also
76377         avoids taking the address of a local variable.  All callers
76378         changed.
76379
76380 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76381
76382         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
76383         $LIBCSRC/posix/regexec.c.
76384         Add glibc bug 1217 for regcomp.c.
76385
76386 2005-08-19  Jim Meyering  <jim@meyering.net>
76387
76388         * lib/regexec.c (proceed_next_node): Redo local variables to
76389         avoid GCC shadowing warnings.
76390
76391 2005-08-18  Bruno Haible  <bruno@clisp.org>
76392
76393         * lib/strstr.c (strstr): Fix return value in multibyte case.
76394         * lib/strcasestr.c (strcasestr): Likewise.
76395
76396 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76397
76398         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
76399
76400 2005-08-17  Jim Meyering  <jim@meyering.net>
76401
76402         Make the %s format (seconds since the epoch) work for a negative
76403         number and when used with a zero-padded field width, e.g. %015s.
76404
76405         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
76406         label so that it precedes the code to set `digits'.  Otherwise,
76407         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
76408         print `00-22'.  Now, it prints `-0022', as it should.
76409
76410 2005-08-17  Bruno Haible  <bruno@clisp.org>
76411
76412         * modules/strstr (Files): Add m4/mbrtowc.m4.
76413         (Depends-on): Add mbuiter.
76414
76415 2005-08-17  Bruno Haible  <bruno@clisp.org>
76416
76417         * modules/strcasestr: New file.
76418         * MODULES.html.sh (String handling, based on ANSI C 89): Add
76419         strcasestr.
76420
76421 2005-08-17  Bruno Haible  <bruno@clisp.org>
76422
76423         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
76424
76425 2005-08-17  Bruno Haible  <bruno@clisp.org>
76426
76427         * modules/mbuiter: New file.
76428         * MODULES.html.sh (Extended multibyte and wide character utilities):
76429         Add mbuiter.
76430
76431 2005-08-17  Bruno Haible  <bruno@clisp.org>
76432
76433         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
76434         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
76435
76436 2005-08-17  Bruno Haible  <bruno@clisp.org>
76437
76438         * m4/strcasestr.m4: New file.
76439
76440 2005-08-17  Bruno Haible  <bruno@clisp.org>
76441
76442         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
76443         * lib/strstr.c: Completely rewritten, with multibyte locale support.
76444
76445 2005-08-17  Bruno Haible  <bruno@clisp.org>
76446
76447         * lib/strcasestr.h: New file.
76448         * lib/strcasestr.c: New file.
76449
76450 2005-08-17  Bruno Haible  <bruno@clisp.org>
76451
76452         * lib/strcasecmp.c: Use mbuiter.h.
76453
76454 2005-08-17  Bruno Haible  <bruno@clisp.org>
76455
76456         * lib/mbuiter.h: New file.
76457
76458 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
76459
76460         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
76461         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
76462         and gl_GETOPT are both invoked via different paths (as happens
76463         with GNU tar CVS because it uses both argp and getopt), the former
76464         wins.
76465
76466 2005-08-16  Bruno Haible  <bruno@clisp.org>
76467
76468         * modules/tls: New file.
76469         * MODULES.html.sh (Multithreading): Add tls.
76470
76471 2005-08-16  Bruno Haible  <bruno@clisp.org>
76472
76473         * modules/strnlen1: New file.
76474         * MODULES.html.sh (String handling): Add strnlen1.
76475
76476 2005-08-16  Bruno Haible  <bruno@clisp.org>
76477
76478         * modules/strcase (Files): Add m4/mbrtowc.m4.
76479         (Depends-on): Add strnlen1, mbchar.
76480
76481 2005-08-16  Bruno Haible  <bruno@clisp.org>
76482
76483         * modules/mbiter: New file.
76484         * MODULES.html.sh (Extended multibyte and wide character utilities):
76485         Add mbiter.
76486
76487 2005-08-16  Bruno Haible  <bruno@clisp.org>
76488
76489         * modules/mbfile: New file.
76490         * MODULES.html.sh (Extended multibyte and wide character utilities):
76491         Add mbfile.
76492
76493 2005-08-16  Bruno Haible  <bruno@clisp.org>
76494
76495         * modules/mbchar: New file.
76496         * MODULES.html.sh (Extended multibyte and wide character utilities):
76497         New section.
76498
76499 2005-08-16  Bruno Haible  <bruno@clisp.org>
76500
76501         * m4/tls.m4: New file, from GNU gettext.
76502
76503 2005-08-16  Bruno Haible  <bruno@clisp.org>
76504
76505         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
76506         always.
76507         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
76508
76509 2005-08-16  Bruno Haible  <bruno@clisp.org>
76510
76511         * m4/mbiter.m4: New file.
76512
76513 2005-08-16  Bruno Haible  <bruno@clisp.org>
76514
76515         * m4/mbfile.m4: New file.
76516
76517 2005-08-16  Bruno Haible  <bruno@clisp.org>
76518
76519         * m4/mbchar.m4: New file.
76520
76521 2005-08-16  Bruno Haible  <bruno@clisp.org>
76522
76523         * lib/tls.h: New file, from GNU gettext.
76524         * lib/tls.c: New file, from GNU gettext.
76525
76526 2005-08-16  Bruno Haible  <bruno@clisp.org>
76527
76528         * lib/strnlen1.h: New file.
76529         * lib/strnlen1.c: New file.
76530
76531 2005-08-16  Bruno Haible  <bruno@clisp.org>
76532
76533         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
76534         (mbi_init): Update.
76535         (mbi_avail, mbi_advance): Let the iteration end before the terminating
76536         NUL byte, not after it.
76537
76538 2005-08-16  Bruno Haible  <bruno@clisp.org>
76539
76540         * lib/strcase.h (strcasecmp): Add note in comments.
76541         * lib/strncasecmp.c: Use code from strcasecmp.c.
76542         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
76543         (strcasecmp): Work correctly in multibyte locales.
76544
76545 2005-08-16  Bruno Haible  <bruno@clisp.org>
76546
76547         * lib/mbiter.h: New file.
76548
76549 2005-08-16  Bruno Haible  <bruno@clisp.org>
76550
76551         * lib/mbfile.h: New file.
76552
76553 2005-08-16  Bruno Haible  <bruno@clisp.org>
76554
76555         * lib/mbchar.h: New file.
76556         * lib/mbchar.c: New file.
76557
76558 2005-08-16  Bruno Haible  <bruno@clisp.org>
76559
76560         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
76561         the valid ones. Makes the comparison operations transitive:
76562         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
76563         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
76564
76565 2005-08-15  Simon Josefsson  <jas@extundo.com>
76566
76567         * modules/ssize_t (License): Change to 'unlimited'.
76568
76569         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
76570
76571 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76572
76573         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
76574         Add comments for each pending glibc patch.
76575
76576 2005-08-15  Bruno Haible  <bruno@clisp.org>
76577
76578         * lib/regex.h (__restrict_arr): Don't define to __restrict if
76579         __cplusplus is defined.
76580
76581 2005-08-14  Jim Meyering  <jim@meyering.net>
76582
76583         Sync from coreutils.
76584
76585         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
76586         Use the hash-table-based cycle-detection code not just when
76587         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
76588         Reported by James Youngman in
76589         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
76590         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
76591         FTS_TIGHT_CYCLE_CHECK.
76592         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
76593         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
76594         once again.
76595         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
76596         * lib/fts.c (fd_safer): Remove decl.
76597         Include fcntl--.h rather than unistd-safer.h
76598         (fts_safe_changedir): Don't call fd_safer; no longer needed
76599         now that we include fcntl--.h.
76600
76601 2005-08-12  Simon Josefsson  <jas@extundo.com>
76602
76603         * modules/getndelim2: Use ssize_t module.
76604         * modules/getnline: Likewise.
76605         * modules/safe-read: Likewise.
76606         * modules/xreadlink: Likewise.
76607
76608         * modules/ssize_t: New file.
76609
76610 2005-08-12  Simon Josefsson  <jas@extundo.com>
76611
76612         * m4/readline.m4: Look for termcap, curses or ncurses if required.
76613
76614 2005-08-12  Simon Josefsson  <jas@extundo.com>
76615
76616         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76617         ssize_t.
76618
76619 2005-08-12  Simon Josefsson  <jas@extundo.com>
76620
76621         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
76622         readline, getdelim and check_version.
76623         (Support for systems lacking ISO C 99: Sizes of integer types):
76624         Add size_max.
76625
76626 2005-08-12  Bruno Haible  <bruno@clisp.org>
76627
76628         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
76629
76630 2005-08-11  Simon Josefsson  <jas@extundo.com>
76631
76632         * modules/readline: New file.
76633
76634         * modules/strnlen (Files): Add strnlen.h.
76635
76636 2005-08-11  Simon Josefsson  <jas@extundo.com>
76637
76638         * m4/readline.m4: New file.
76639
76640 2005-08-11  Simon Josefsson  <jas@extundo.com>
76641
76642         * lib/readline.h, readline.c: New file.
76643
76644 2005-08-11  Simon Josefsson  <jas@extundo.com>
76645
76646         * doc/gnulib.texi (Initial import, Finishing touches): Mention
76647         gl_AVOID.
76648
76649 2005-08-11  Bruno Haible  <bruno@clisp.org>
76650
76651         * lib/strnlen.h (strnlen): Change parameter name to match comment.
76652
76653 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
76654
76655         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
76656
76657 2005-08-10  Simon Josefsson  <jas@extundo.com>
76658
76659         * tests/test-iconvme.c: New file.
76660
76661 2005-08-10  Simon Josefsson  <jas@extundo.com>
76662
76663         * m4/strnlen.m4: New file.
76664
76665         * m4/strndup.m4: Don't check for strnlen declaration, done in
76666         strnlen.m4.
76667
76668 2005-08-10  Simon Josefsson  <jas@extundo.com>
76669
76670         * lib/strndup.c: Use strnlen.h.
76671
76672         * lib/strnlen.h: New file.
76673
76674 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76675
76676         * README: Typos.
76677
76678 2005-08-02  Simon Josefsson  <jas@extundo.com>
76679
76680         * modules/readline: New file.
76681
76682 2005-08-02  Simon Josefsson  <jas@extundo.com>
76683
76684         * modules/getdelim: New file.
76685
76686         * modules/getline: Rewrite, don't use getndelim2.
76687
76688 2005-08-02  Simon Josefsson  <jas@extundo.com>
76689
76690         * m4/getline.m4: Separate out getdelim stuff into separate module.
76691
76692         * m4/getdelim.m4: New file.
76693
76694 2005-08-02  Simon Josefsson  <jas@extundo.com>
76695
76696         * lib/getline.h, getline.c: Rewrite.
76697
76698         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
76699
76700 2005-07-31  Bruno Haible  <bruno@clisp.org>
76701
76702         * lib/lock.h (gl_lock_initializer): New macro.
76703         (gl_lock_define_initialized): Use it.
76704         (gl_rwlock_initializer): New macro.
76705         (gl_rwlock_define_initialized): Use it.
76706         (gl_recursive_lock_initializer): New macro.
76707         (gl_recursive_lock_define_initialized): Use it.
76708
76709 2005-07-30  Karl Berry  <karl@gnu.org>
76710
76711         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
76712         Report from Ben Pfaff, regarding getopt.
76713
76714 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
76715
76716         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
76717         normal way.
76718         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
76719         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
76720         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
76721         (gl_GETOPT): Use the new macros.  Most of the implementation
76722         is moved to the new macros.  This is for programs like Emacs
76723         that don't want all the functionality of gl_GETOPT.
76724
76725 2005-07-26  Bruno Haible  <bruno@clisp.org>
76726
76727         * m4/lock.m4: Update from GNU gettext.
76728
76729 2005-07-26  Bruno Haible  <bruno@clisp.org>
76730
76731         * lib/lock.h: Update from GNU gettext.
76732         * lib/lock.c: Update from GNU gettext.
76733
76734 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
76735
76736         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
76737         obsolescent AC_TRY_RUN.  Include the default includes files, for
76738         'exit'.
76739
76740 2005-07-24  Bruno Haible  <bruno@clisp.org>
76741
76742         * modules/visibility: New file.
76743         * MODULES.html.sh (Misc): Add visibility.
76744
76745 2005-07-24  Bruno Haible  <bruno@clisp.org>
76746
76747         * m4/visibility.m4: New file.
76748
76749 2005-07-24  Bruno Haible  <bruno@clisp.org>
76750
76751         * doc/visibility.texi: New file.
76752
76753 2005-07-22  Bruno Haible  <bruno@clisp.org>
76754
76755         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
76756         $(ALLOCA_H), redundant through BUILT_SOURCES.
76757         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
76758         redundant through BUILT_SOURCES.
76759         * modules/byteswap (Makefile.am): Remove explicit dependency on
76760         $(BYTESWAP_H), redundant through BUILT_SOURCES.
76761         * modules/fnmatch (Makefile.am): Remove explicit dependency on
76762         $(FNMATCH_H), redundant through BUILT_SOURCES.
76763         * modules/getopt (Makefile.am): Remove explicit dependency on
76764         $(GETOPT_H), redundant through BUILT_SOURCES.
76765         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
76766         redundant through BUILT_SOURCES.
76767         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
76768         redundant through BUILT_SOURCES.
76769         * modules/stdbool (Makefile.am): Remove explicit dependency on
76770         $(STDBOOL_H), redundant through BUILT_SOURCES.
76771         * modules/stdint (Makefile.am): Remove explicit dependency on
76772         $(STDINT_H), redundant through BUILT_SOURCES.
76773         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
76774         Remove explicit dependency on $(SYSEXITS_H).
76775         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
76776
76777 2005-07-18  Simon Josefsson  <jas@extundo.com>
76778
76779         * lib/check-version.c (check_version): Accept identical versions too.
76780
76781 2005-07-18  Bruno Haible  <bruno@clisp.org>
76782
76783         * modules/lock: New file.
76784         * MODULES.html.sh (Multithreading): New section.
76785
76786 2005-07-18  Bruno Haible  <bruno@clisp.org>
76787
76788         * m4/lock.m4: New file, from GNU gettext.
76789
76790 2005-07-18  Bruno Haible  <bruno@clisp.org>
76791
76792         * lib/lock.h: New file, from GNU gettext.
76793         * lib/lock.c: New file, from GNU gettext.
76794
76795 2005-07-18  Bruno Haible  <bruno@clisp.org>
76796
76797         * lib/lock.h (gl_once_t): New type.
76798         (gl_once_define, gl_once): New macros.
76799         * lib/lock.c (fresh_once): New variable.
76800         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
76801         functions.
76802
76803 2005-07-16  Simon Josefsson  <jas@extundo.com>
76804
76805         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
76806         workaround, suggested by Bruno.
76807
76808 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76809
76810         * modules/xalloc (Depends-on): Add xalloc-die.
76811         * modules/xvasprintf (Depends-on): Add xalloc-die.
76812
76813 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76814
76815         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
76816         with a minor change.
76817
76818 2005-07-15  Bruno Haible  <bruno@clisp.org>
76819
76820         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
76821         When using lib/poll.c, define poll as rpl_poll.
76822
76823 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
76824
76825         * modules/argp (Depends-on): Remove unlocked-io.
76826
76827 2005-07-14  Derek Price  <derek@ximbiot.com>
76828
76829         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
76830         for glob symlink bug.
76831
76832 2005-07-14  Bruno Haible  <bruno@clisp.org>
76833
76834         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
76835         Instead, test for *_unlocked function declarations directly.
76836
76837 2005-07-11  Simon Josefsson  <jas@extundo.com>
76838
76839         * modules/size_max: New file.
76840
76841         * modules/xsize: Depend on size_max module for size_max.m4.
76842
76843 2005-07-11  Simon Josefsson  <jas@extundo.com>
76844
76845         * lib/size_max.h: New file.
76846
76847 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
76848
76849         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
76850         copyright symbol and the year.
76851         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
76852         (version_etc_va): Use parameterized copyright notice.
76853         Reword to conform to the current GNU coding standards.
76854
76855 2005-07-11  Karl Berry  <karl@gnu.org>
76856
76857         * doc/gnulib.texi (Quoting): new node.
76858         (Initial import): more info, from Patrice.
76859
76860 2005-07-11  Bruno Haible  <bruno@clisp.org>
76861
76862         * gnulib-tool (func_usage): Document option --avoid.
76863         (Command line options): Handle --avoid.
76864         (func_acceptable): New function.
76865         (func_modules_transitive_closure): Use it.
76866
76867 2005-07-11  Bruno Haible  <bruno@clisp.org>
76868
76869         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
76870         Reported by Jim Meyering.
76871
76872 2005-07-10  Bruno Haible  <bruno@clisp.org>
76873
76874         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
76875         Needed when size_t is smaller than 'unsigned int'.
76876         Reported by Paul Eggert.
76877
76878 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76879
76880         * modules/argp (Depends-on): Add unlocked-io
76881
76882 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76883
76884         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
76885         block of defines.
76886
76887 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76888
76889         * config/srclist.txt: Comment out regcomp.c, since we have a porting
76890         fix now.
76891
76892 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
76893         and Paul Eggert  <eggert@cs.ucla.edu>
76894
76895         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
76896         in wint_t, not wchar_t.  Remove now-unnecessary cast.
76897
76898 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76899
76900         * modules/regex (Files): Add lib/regex_internal.c,
76901         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
76902         (Depends-on): Add extensions.
76903         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
76904
76905 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76906
76907         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
76908         pathconf.
76909         * m4/same.m4 (gl_SAME): Likewise.
76910         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
76911
76912         * m4/regex.m4: Adjust to new libc regex implementation.
76913         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
76914         all the .c and .h parts of (the new) regex.
76915         Quote the m4 stuff better.
76916         Check for RE_ICASE bug of old gnulib.
76917         Check for REG_STARTEND of recent libc.
76918         Rename local variables from jm_* to gl_*.
76919         Quote operand of "test -f".
76920         Say "recent enough" version of libc, not "version 2".
76921         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
76922         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
76923         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
76924         Remove check for btowc, isascii.
76925         Require AM_LANGINFO_CODESET.
76926
76927 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76928
76929         * lib/regex.c, regex.h: Sync from libc.
76930         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
76931         * lib/regexec.c:
76932         New files, synced from libc, except that regex_internal.h
76933         currently has a small porting fix.
76934
76935 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76936
76937         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
76938         regex_internal.c, regexec.c.
76939         Add regex_internal.h too, but as a comment, since the libc version
76940         is currently broken in gnulib mode.
76941
76942 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76943
76944         Support programs like Emacs that use gnulib but not gettext.
76945         * MODULES.html.sh (Internationalization functions): Add gettext-h.
76946         * modules/gettext-h: New file.
76947         * modules/gettext (Files): Remove lib/gettext.h.
76948         (Depends-on): Add gettext-h.
76949         (Makefile.am): Remove lib_SOURCES.
76950         * modules/argmatch, modules/c-stack, modules/closeout:
76951         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
76952         * modules/execute, modules/file-type, modules/getaddrinfo:
76953         * modules/getopt, modules/human, modules/javacomp:
76954         * modules/javaexec, modules/mkdir-p, modules/obstack:
76955         * modules/openat, modules/pagealign_alloc, modules/pipe:
76956         * modules/quotearg, modules/regex, modules/rpmatch:
76957         * modules/unicodeio, modules/userspec, modules/version-etc:
76958         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
76959         * modules/xsetenv:
76960         Depend on gettext-h, not gettext.
76961
76962 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76963
76964         * gnulib-tool (func_import): Add support for 'public domain' license.
76965         * modules/alloca, modules/atexit, modules/memmove:
76966         Now public domain, not GPL.
76967         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
76968         * modules/realloc, modules/strerror, modules/strtod:
76969         Now LGPL, not GPL.
76970
76971 2005-07-05  Bruno Haible  <bruno@clisp.org>
76972
76973         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
76974         autoconf CVS. Needed for mingw.
76975
76976 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76977
76978         Remove the dependency of the strftime module on the tzset module.
76979         * modules/strftime (Depends-on): Remove dependency on tzset.
76980
76981 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76982
76983         Remove the dependency of the strftime module on the tzset module.
76984         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
76985         gl_FUNC_TZSET_CLOBBER.
76986
76987 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76988
76989         Remove the dependency of the strftime module on the tzset module.
76990         * lib/strftime.c (my_strftime)
76991         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
76992         Copy the input structure, to work around some of the bug with
76993         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
76994         Solaris releases, you should also use the tzset module, but we won't
76995         require it as a dependency any more since we don't want LGPLed code
76996         to depend on GPLed code.
76997
76998 2005-07-02  Jim Meyering  <jim@meyering.net>
76999
77000         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
77001         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
77002         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
77003         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
77004
77005 2005-07-02  Jim Meyering  <jim@meyering.net>
77006
77007         * lib/backupfile.c (backup_args): Change a `0' to NULL.
77008
77009 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77010
77011         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
77012         declares only 'struct timespec;' (!).
77013
77014 2005-07-01  Jim Meyering  <jim@meyering.net>
77015
77016         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
77017         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
77018         * lib/save-cwd.c, tempname.c:
77019         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
77020         and don't include <sys/file.h>).
77021
77022 2005-06-29  Jim Meyering  <jim@meyering.net>
77023
77024         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
77025         type name.  Use the variable name instead.
77026         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
77027         Likewise.
77028
77029 2005-06-28  Simon Josefsson  <jas@extundo.com>
77030
77031         * modules/check-version (Files): Add check-version.m4.
77032
77033 2005-06-28  Simon Josefsson  <jas@extundo.com>
77034
77035         * m4/check-version.m4: New file, suggested by Jim Meyering
77036         <jim@meyering.net>.
77037
77038 2005-06-28  Simon Josefsson  <jas@extundo.com>
77039
77040         * lib/check-version.h, lib/check-version.c: New files.
77041
77042 2005-06-28  Simon Josefsson  <jas@extundo.com>
77043
77044         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
77045         collision with global variable.  Better indentation.  Don't
77046         increment buffer pointer beyond buffer end.  Based on comments
77047         from Paul Eggert <eggert@cs.ucla.edu>.
77048
77049         * lib/base64.h: Indent.
77050
77051 2005-06-28  Simon Josefsson  <jas@extundo.com>
77052
77053         * doc/gnulib.texi (Library version handling): New section.
77054
77055 2005-06-28  Jim Meyering  <jim@meyering.net>
77056
77057         * check-module (find_included_lib_files): Hard-code another
77058         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
77059         but modules/fts-lgpl (correctly) does not list those files.
77060
77061         * modules/canonicalize (Files): Add lib/pathmax.h.
77062
77063 2005-06-25  Simon Josefsson  <jas@extundo.com>
77064
77065         * modules/check-version: New file.
77066
77067 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
77068
77069         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
77070         initializer of struct addrinfo, as an indication that we don't
77071         care how many members the structure has.
77072
77073 2005-06-24  Derek Price  <derek@ximbiot.com>
77074         and Bruno Haible  <bruno@clisp.org>
77075
77076         Remove stat module & update lstat.
77077         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
77078         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77079         * m4/stat.m4: Remove this file.
77080
77081 2005-06-24  Derek Price  <derek@ximbiot.com>
77082         and Bruno Haible  <bruno@clisp.org>
77083
77084         Remove stat module & update lstat.
77085         * lib/stat.c: Remove this file...
77086         (slash_aware_lstat): ...moving this content and its support...
77087         * lib/lstat.c (rpl_lstat): ...into here.
77088         * lib/lstat.h: New file.
77089
77090 2005-06-24  Derek Price  <derek@ximbiot.com>
77091         and Bruno Haible  <bruno@clisp.org>
77092
77093         Remove stat module & update lstat.
77094         * config/srclist.txt (libc sources): Remove stat.
77095
77096 2005-06-24  Derek Price  <derek@ximbiot.com>
77097         and Bruno Haible  <bruno@clisp.org>
77098
77099         Remove stat module & update lstat.
77100         * MODULES.html.sh (stat): Remove.
77101         * MODULES.html: Regenerated.
77102         * modules/lstat (Description): Correct function name.
77103         (Files): Add "lstat.h".
77104         (Depends-on): Remove stat, add xalloc, stat-macros.
77105         * modules/stat: Remove this file.
77106         (Include): Add "lstat.h", remove <sys/stat.h>.
77107
77108 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
77109
77110         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
77111         (ranged_convert): Don't save conversion in a temporary struct.
77112         This causes a warning with GCC 4.0.0, and anyway in the typical
77113         case it's not worth the extra 100 bytes or so of code.
77114         (ranged_convert, __mktime_internal): When calling a function via a
77115         pointer P, use P () rather than (*P) (), as we now assume C89 or
77116         better.
77117
77118 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77119
77120         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
77121         "who -r" failed to give output.  Problem reported by Tim Waugh.
77122
77123         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
77124         (xcalloc): Use it to avoid needless tests.
77125         Problem reported by Jim Meyering.
77126
77127 2005-06-20  Derek Price  <derek@ximbiot.com>
77128
77129         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
77130         unnecessary for Autoconfs > 2.59c.
77131
77132 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77133
77134         * lib/argp.h (__option_is_short): Check upper limit of
77135         __key. Isprint() requires its argument to have the value
77136         of an unsigned char or EOF.
77137
77138 2005-06-16  Jim Meyering  <jim@meyering.net>
77139
77140         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
77141         when either N or S is zero.
77142
77143 2005-06-16  Derek Price  <derek@ximbiot.com>
77144
77145         * m4/bison.m4: Declare YACC & YFLAGS precious.
77146
77147 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
77148
77149         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
77150         multibyte string or pattern, fall back on unibyte matching.
77151         Problem reported by James Youngman.
77152
77153 2005-06-08  Bruno Haible  <bruno@clisp.org>
77154
77155         * modules/csharpcomp: New file.
77156         * MODULES.html.sh (C#): Add csharpcomp.
77157
77158 2005-06-08  Bruno Haible  <bruno@clisp.org>
77159
77160         * m4/csharpcomp.m4: New file, from GNU gettext.
77161
77162 2005-06-08  Bruno Haible  <bruno@clisp.org>
77163
77164         * lib/csharpcomp.h: New file, from GNU gettext.
77165         * lib/csharpcomp.c: New file, from GNU gettext.
77166         * lib/csharpcomp.sh.in: New file, from GNU gettext.
77167
77168 2005-06-08  Bruno Haible  <bruno@clisp.org>
77169
77170         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
77171         warning on mingw.
77172
77173 2005-06-07  Derek Price  <derek@ximbiot.com>
77174
77175         Sync from CVS.
77176         * lib/glob_.h: Indent nested #ifdef.
77177
77178 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77179
77180         Sync from coreutils.
77181         Use "file name" when talking about file names, instead of "filename"
77182         or "path", as per the GNU coding standards.
77183         * lib/mkdir-p.c: Renamed from makepath.c.
77184         (make_dir_parents): Renamed from make_path.  All callers changed.
77185         * lib/mkdir-p.h: Likewise.  All includers changed.
77186         * lib/filenamecat.c: Renamed from path-concat.c.
77187         (file_name_concat): Renamed from path_concat.  All callers changed.
77188         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
77189         * lib/filenamecat.h: Likewise.  All includers changed.
77190         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
77191         in comments or local variable names.
77192         * lib/basename.c: Likewise.
77193         * lib/canonicalize.c, canonicalize.h: Likewise.
77194         * lib/dirname.c, dirname.h: Likewise.
77195         * lib/euidaccess.c: Likewise.
77196         * lib/exclude.c: Likewise
77197         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
77198         * lib/fsusage.c, fsuage.h: Likewise.
77199         * lib/fts.c, fts_.h: Likewise.
77200         * lib/getcwd.c: Likewise.
77201         * lib/getloadavg.c: Likewise.
77202         * lib/mkstemp.c: Likewise.
77203         * lib/mountlist.c, mountlist.h: Likewise.
77204         * lib/openat.c, openat.h: Likewise.
77205         * lib/readlink-stub.c: Likewise.
77206         * lib/readutmp.c, readutmp.h: Likewise.
77207         * lib/rename.c: Likewise.
77208         * lib/rmdir.c: Likewise.
77209         * lib/same.c: Likewise.
77210         * lib/savedir.c: Likewise.
77211         * lib/stripslash.c: Likewise.
77212         * lib/tempname.c: Likewise.
77213         * lib/xreadlink.c: Likewise.
77214         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
77215         All uses changed.
77216         * lib/exclude.h: Likewise.
77217
77218         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
77219         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77220         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
77221         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77222         * lib/pathmax.h: Include <limits.h> unconditionally, since other
77223         files have been getting away with it for years (MORE/BSD 4.3
77224         is extinct now).
77225         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
77226         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77227
77228         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
77229         Define to 256, not 255, as per modern POSIX.
77230
77231 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77232
77233         Sync from coreutils.
77234         Use "file name" when talking about file names, instead of "filename"
77235         or "path", as per the GNU coding standards.
77236         * MODULES.html.sh: mkdir-p renamed from makepath.
77237         filenamecat renamed from path-concat.
77238         * modules/filenamecat: Renamed from modules/path-concat.
77239         (Files): filenamecat.h and filenamecat.c renamed from
77240         path-concat.h and path-concat.c.
77241         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
77242         (Include): filenamecat.h, not path-concat.h.
77243         * modules/mkdir-p: Renamed from modules/makepath.
77244         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
77245         makepath.c.
77246         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
77247         (Include): mkdir-p.h, not makepath.h.
77248
77249 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77250
77251         Sync from coreutils.
77252         * m4/mkdir-p.m4: Renamed from makepath.m4.
77253         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
77254         Rename files from makepath.c to mkdir-p.c, and from
77255         makepath.h to mkdir-p.h.
77256         * m4/filenamecat.m4: Renamed from path-concat.m4.
77257         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
77258         Rename files from path-concat.c to filenamecat.c,
77259         and from path-concat.h to filenamecat.h.
77260         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
77261         "file name" in local variables or comments.
77262         * m4/rename.m4: Likewise.
77263
77264 2005-06-01  Bruno Haible  <bruno@clisp.org>
77265
77266         * modules/csharpexec: New file.
77267         * MODULES.html.sh (C#): New section.
77268
77269 2005-06-01  Bruno Haible  <bruno@clisp.org>
77270
77271         * m4/csharp.m4: New file, from GNU gettext.
77272         * m4/csharpexec.m4: New file, from GNU gettext.
77273
77274 2005-06-01  Bruno Haible  <bruno@clisp.org>
77275
77276         * lib/csharpexec.h: New file, from GNU gettext.
77277         * lib/csharpexec.c: New file, from GNU gettext.
77278         * lib/csharpexec.sh.in: New file, from GNU gettext.
77279
77280 2005-05-31  Derek Price  <derek@ximbiot.com>
77281             Paul Eggert  <eggert@cs.ucla.edu>
77282
77283         Sync from cvs.
77284         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
77285
77286 2005-05-31  Derek Price  <derek@ximbiot.com>
77287             Paul Eggert  <eggert@cs.ucla.edu>
77288
77289         Sync from cvs.
77290         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
77291
77292 2005-05-29  Derek Price  <derek@ximbiot.com>
77293
77294         * config/srclist.txt (glob_.h, glob.c): Add these files.
77295
77296 2005-05-29  Derek Price  <derek@ximbiot.com>
77297
77298         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
77299         * modules/glob: New file.
77300         * modules/getlogin_r: Add link to POSIX spec in description.
77301
77302 2005-05-29  Derek Price  <derek@ximbiot.com>
77303             Paul Eggert  <eggert@cs.ucla.edu>
77304
77305         * m4/glob.m4: New file.
77306
77307 2005-05-29  Derek Price  <derek@ximbiot.com>
77308             Paul Eggert  <eggert@cs.ucla.edu>
77309
77310         * lib/glob_.h, lib/glob.c: New files.
77311
77312 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77313
77314         * modules/fts (Files): Remove m4/inttypes-pri.m4.
77315         * modules/fts-lgpl (Depends-on): Remove gettext.
77316
77317 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77318
77319         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
77320         and don't require gt_INTTYPES_PRI.
77321
77322 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77323
77324         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
77325
77326         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
77327         the configuration hassle isn't worth it.
77328         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
77329         (LONGEST_MODIFIER, PRIuMAX): Remove.
77330
77331 2005-05-27  Bruno Haible  <bruno@clisp.org>
77332
77333         * lib/getlogin_r.h: Remove second include of <stddef.h>.
77334
77335 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
77336
77337         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
77338         _POSIX_PTHREAD_SEMANTICS for Solaris.
77339
77340 2005-05-25  Derek Price  <derek@ximbiot.com>
77341
77342         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
77343
77344 2005-05-25  Derek Price  <derek@ximbiot.com>
77345             Paul Eggert  <eggert@cs.ucla.edu>
77346
77347         * modules/getlogin_r, m4/getlogin_r.m4: New files.
77348         * lib/getlogin_r.c, getlogin_r.h: New files.
77349
77350 2005-05-25  Bruno Haible  <bruno@clisp.org>
77351             Derek Price  <derek@ximbiot.com>
77352
77353         * lib/getlogin_r.h: Simplify API documentation.
77354
77355 2005-05-23  Derek Price  <derek@ximbiot.com>
77356
77357         * modules/minmax (Files): Add m4/minmax.m4.
77358         (configure.ac): Add gl_MINMAX.
77359
77360 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
77361
77362         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
77363         so that unistd-safer.h (GPL'ed code) need not be included.
77364
77365 2005-05-22  Bruno Haible  <bruno@clisp.org>
77366
77367         * m4/minmax.m4: New file.
77368         Based on a patch by Derek Price <derek@ximbiot.com>.
77369
77370 2005-05-22  Bruno Haible  <bruno@clisp.org>
77371
77372         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
77373         (INT64_MIN): Fix definition.
77374         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
77375
77376         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
77377         NEED_SIGNED_INT_TYPES.
77378
77379         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
77380         HAVE_SYSTEM_INTTYPES.
77381
77382 2005-05-22  Bruno Haible  <bruno@clisp.org>
77383
77384         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
77385         Also include <sys/param.h> if it defines MIN, MAX.
77386         Based on a patch by Derek Price <derek@ximbiot.com>.
77387
77388 2005-05-21  Jim Meyering  <jim@meyering.net>
77389
77390         * modules/fts (Files): Add m4/inttypes-pri.m4.
77391         (Depends-on): Add lstat and remove gettext.  Alphabetize.
77392
77393 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77394
77395         New fts module.
77396         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
77397         (setup_dir, free_dir): New functions.
77398         (enter_dir, leave_dir): Define trivial
77399         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
77400         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
77401         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
77402         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
77403         Move to fts-cycle.c.
77404         (fts_open): Use setup_dir.
77405         (fts_close): Use free_dir.
77406         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
77407         This adds a label and some gotos, but the alternatives were messier.
77408         Check for memory allocation failure when entering a dir.
77409         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
77410         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
77411         (FTS): New member fts_cycle, that is a union that contains the
77412         old active_dir_ht and cycle_state.  All uses changed to mention
77413         fts_cycle.ht and fts_cycle.state.
77414         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
77415         fts.c, with the following changes:
77416         (setup_dir, free_dir): New functions.
77417         (enter_dir): Now returns bool.  Return true if successful, false
77418         if memory exhausted.  All callers changed.
77419         Do not bother partly cleaning up on
77420         memory allocation failure; that is free_dir's job.
77421         However, free ad if hash_insert fails, to avoid memory leak.
77422         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
77423         fts->fts_options to see which union member to use.
77424
77425 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77426
77427         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
77428         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
77429
77430 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77431
77432         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
77433
77434 2005-05-20  Jim Meyering  <jim@meyering.net>
77435
77436         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
77437         Now a macro, to pacify GCC.
77438
77439 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77440
77441         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
77442         of -1.
77443
77444 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77445
77446         * lib/chown.c (rpl_chown): Return -1 on failure.
77447
77448 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77449
77450         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
77451         Don't check for stddef.h.
77452         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
77453         don't use its results.
77454         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
77455         since we include them unconditionally.  Don't require
77456         AM_STDBOOL_H, since stdbool is a prerequisite.
77457         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
77458         since we assume C89 or better.
77459         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
77460         as we don't use their results.
77461         Don't check for fchdir, memmove, memset, strrchr, as we use
77462         them unconditionally.
77463         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
77464         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
77465
77466 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77467
77468         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
77469         Include <stddef.h> unconditionally, since we assume C89 now.
77470         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
77471         * lib/fts.c: Include fts_.h first, to check interface.
77472         Do not include intprops.h; no longer needed.
77473         Include cycle-check.h and hash.h, since fts_.h no longer does.
77474         Remove unnecessary casts of closedir to void.
77475         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
77476         decide whether to decrement nlinks.
77477         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
77478         (FTS): Use struct hash_table * instead of Hash_table, so that
77479         we no longer need to include hash.h here.
77480
77481 2005-05-18  Jim Meyering  <jim@meyering.net>
77482
77483         * modules/dirfd (License): Change to LGPL.  Most of the code
77484         is already in the public domain.
77485
77486 2005-05-18  Jim Meyering  <jim@meyering.net>
77487
77488         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
77489         Reported by Yoann Vandoorselaere.
77490
77491 2005-05-17  Jim Meyering  <jim@meyering.net>
77492
77493         * m4/fts.m4: New file, from coreutils.
77494
77495 2005-05-17  Jim Meyering  <jim@meyering.net>
77496
77497         * lib/fts.c, lib/fts_.h: New files, from coreutils.
77498
77499 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77500
77501         Sync from coreutils.
77502         * m4/unlinkdir.m4: New file.
77503
77504 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77505
77506         Sync from coreutils.
77507         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
77508         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
77509         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
77510         White space changes only.
77511         * lib/makepath.c (make_path): Port to hosts where leading "//" is
77512         special.
77513         * lib/yesno.c: Include getline.h, not ctype.h.
77514         (yesno): Don't remove leading white space; POSIX doesn't allow it.
77515         Use getline to remove arbitrary restriction on response length.
77516
77517 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77518
77519         * config/srclist-update: Spell out "Street" in FSF postal
77520         mail address; this is the style the FSF seems to prefer.
77521
77522         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
77523         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
77524         this updates FSF postal mail address.
77525
77526         Sync from coreutils.
77527         * modules/unlinkdir: New file.
77528         * modules/yesno (Depends-on): Add getline.
77529         * MODULES.html.sh (File system functions): Add unlinkdir.
77530
77531 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77532
77533         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
77534         lib/strsep.h:
77535         Change the initial comment to refer to GPL, not LGPL.
77536         gnulib-tool will change it to LGPL as needed.
77537
77538         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
77539         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
77540         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
77541         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
77542         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
77543         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
77544         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
77545         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
77546         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
77547         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
77548         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
77549         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
77550         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
77551         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
77552         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
77553         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
77554         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
77555         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
77556         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
77557         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
77558         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
77559         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
77560         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
77561         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
77562         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
77563         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
77564         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
77565         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
77566         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
77567         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
77568         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
77569         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
77570         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
77571         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
77572         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
77573         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
77574         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
77575         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
77576         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
77577         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
77578         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
77579         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
77580         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
77581         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
77582         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
77583         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
77584         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
77585         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
77586         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
77587         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
77588         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
77589         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
77590         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
77591         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
77592         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
77593         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
77594         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
77595         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
77596         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
77597         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
77598         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
77599         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
77600         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
77601         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
77602         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
77603         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
77604         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
77605         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
77606         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
77607         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
77608         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
77609         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
77610         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
77611         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
77612         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
77613         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
77614         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
77615         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
77616         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
77617         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
77618         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
77619         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
77620         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
77621         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
77622         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
77623         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
77624         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
77625         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
77626         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
77627         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
77628         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
77629         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
77630         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
77631         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
77632         lib/yesno.c, lib/yesno.h:
77633         Update FSF postal mail address.
77634
77635 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77636
77637         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
77638         tests/test-memmem.c, tests/test-stpncpy.c:
77639         Update FSF postal mail address.
77640
77641 2005-05-13  Bruno Haible  <bruno@clisp.org>
77642
77643         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
77644         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
77645         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
77646         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
77647         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
77648         Add support for 64-bit integers in the MSVC compiler.
77649
77650 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77651
77652         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
77653
77654 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
77655
77656         * gnulib-tool (func_import): Sort and uniquify recommended includes.
77657
77658 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
77659
77660         * doc/getdate.texi (General date syntax): Don't say that date
77661         date --iso-8601=ns generates acceptable dates; it doesn't yet.
77662         Problem reported by Nic Ferrier.
77663
77664 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77665
77666         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
77667         specified in ai_socktype. Fix invalid ai_protocol
77668         check. ai_protocol is usually set to 0 or depending on
77669         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
77670         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
77671         ai_socktype / ai_protocol in the returned addrinfo structure.
77672
77673 2005-05-10  Simon Josefsson  <jas@extundo.com>
77674
77675         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
77676         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77677
77678 2005-05-10  Karl Berry  <karl@gnu.org>
77679
77680         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
77681         (from http://www.gnu.org/licenses).
77682         * doc/COPYING.LIB: also rename to COPYING.LESSER.
77683         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
77684         fdl.texi suffices.
77685
77686 2005-05-10  Karl Berry  <karl@gnu.org>
77687
77688         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
77689         (COPYING.DOC): remove.
77690
77691         * config/srclist-update: new FSF address.
77692
77693 2005-05-10  Derek Price  <derek@ximbiot.com>
77694
77695         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
77696         possible.
77697
77698 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77699             Bruno Haible  <bruno@clisp.org>
77700
77701         * modules/inet_ntop: New file.
77702         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77703         inet_ntop.
77704
77705 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77706             Bruno Haible  <bruno@clisp.org>
77707
77708         * m4/inet_ntop.m4: New file.
77709
77710 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77711             Bruno Haible  <bruno@clisp.org>
77712
77713         * lib/inet_ntop.h: New file.
77714         * lib/inet_ntop.c: New file, from glibc with modifications.
77715
77716 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
77717
77718         * modules/time_r (License): Change to LGPL.
77719         * modules/extensions (License): Change to LGPL.  Actually,
77720         the license is more permissive than that, but currently gnulib-tool
77721         doesn't know how to handle more-permissive licenses.
77722
77723         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
77724         Problem reported by Dave Love.
77725
77726 2005-05-08  Jim Meyering  <jim@meyering.net>
77727
77728         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
77729         blank.
77730
77731 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77732
77733         * modules/argmatch (Depends-on): Add stdbool.
77734         * modules/backupfile (Depends-on): Likewise.
77735         * modules/chdir-long (Depends-on): Likewise.
77736         * modules/closeout (Depends-on): Likewise.
77737         * modules/cycle-check (Depends-on): Likewise.
77738         * modules/dirname (Depends-on): Likewise.
77739         * modules/fnmatch (Depends-on): Likewise.
77740         * modules/fsusage (Depends-on): Likewise.
77741         * modules/fwriteerror (Depends-on): Likewise.
77742         * modules/getcwd (Depends-on): Likewise.
77743         * modules/getloadavg (Depends-on): Likewise.
77744         * modules/hard-locale (Depends-on): Likewise.
77745         * modules/makepath (Depends-on): Likewise.
77746         * modules/mountlist (Depends-on): Likewise.
77747         * modules/nanosleep (Depends-on): Likewise.
77748         * modules/posixtm (Depends-on): Likewise.
77749         * modules/quotearg (Depends-on): Likewise.
77750         * modules/readtokens (Depends-on): Likewise.
77751         * modules/readtokens0 (Depends-on): Likewise.
77752         * modules/readutmp (Depends-on): Likewise.
77753         * modules/save-cwd (Depends-on): Likewise.
77754         * modules/strftime (Depends-on): Likewise.
77755         * modules/userspec (Depends-on): Likewise.
77756         * modules/utimecmp (Depends-on): Likewise.
77757         * modules/xgetcwd (Depends-on): Likewise.
77758         * modules/xnanosleep (Depends-on): Likewise.
77759         * modules/xstrtod (Depends-on): Likewise.
77760         * modules/yesno (Depends-on): Likewise.
77761
77762 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
77763
77764         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
77765         needless checks.
77766
77767 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77768
77769         Merge from coreutils.  Among other things,
77770         add bulletproofing for cases where stdin, stdout, or stderr are closed.
77771         * lib/fd-safer.c: New file.
77772         * lib/fcntl-safer.h, open-safer.c: Remove.
77773         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
77774         * lib/dup-safer.c: Include unistd-safer.h first.
77775         Don't include errno.h.
77776         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
77777         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
77778         * lib/file-type.c: Rely on file-type.h change.
77779         * lib/getloadavg.c: Include unistd-safer.h.
77780         (getloadavg): Use safer open.
77781         * lib/getusershell.c: Include "stdio-safer.h".
77782         (getusershell): Use safer fopen.
77783         * lib/long-options.c (long_options): Use NULL rather than 0.
77784         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
77785         'free'.
77786         * lib/modechange.c: Likewise.
77787         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
77788         (MODE_DONE): New constant.
77789         (struct mode_change): Remove 'next' member.
77790         (make_node_op_equals): New function; like the old one of the
77791         same name, except it allocates an array.
77792         (mode_compile, mode_create_from_ref): Use it.
77793         (mode_compile): Allocate result as an array, not a linked list.
77794         Parse octal string ourself, so that we catch mistakes like "+0".
77795         (mode_adjust): Arg is an array, not a linked list.
77796         * lib/modechange.c: Include stat-macros.h, xalloc.h.
77797         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
77798         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
77799         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
77800         Remove.  This is now stat-macros.h's job.
77801         (talloc): Remove.  All callers replaced by xalloc, so that
77802         our invokers don't have to worry about reporting memory failures.
77803         (make_node_op_equals): Remove.
77804         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77805         New constants.
77806         (struct mode_change): Moved here from modechange.h.
77807         (mode_append_entry): Remove.
77808         (mode_compile): Remove MASKED_OPS arg, since it encouraged
77809         apps to have incorrect behavior.  Use simpler algorithm for head
77810         and tail.  Don't futz with umask; that's now the job of mode_adjust.
77811         Detect more invalid usages rather than having somewhat-random behavior.
77812         Don't insert an "a=" action, as that leads to incorrect behavior.
77813         (mode_compile, mode_create_from_ref): Return NULL on error instead
77814         of an enum, since now there's only one way to have an error.  All
77815         callers changed.
77816         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
77817         at the correct time.  Simplify calculation of "+u" and its ilk.
77818         Don't mishandle "+X".
77819         (mode_free): Remove "register" and localize decls.
77820         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77821         (struct mode_change): Move to modechange.c; callers don't
77822         need to see this stuff.
77823         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
77824         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
77825         (mode_change, mode_adjust): Reflect the new signatures noted above.
77826         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
77827         that might redefine system include files.
77828         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
77829         (my_usleep): Use NULL rather than (void *) 0.
77830         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
77831         Use siginterrupt to specify that system calls should be interrupted.
77832         (rpl_nanosleep): Move initialization of suspended closer to call of
77833         my_usleep.
77834         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
77835         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
77836         (desirable_utmp_entry): New function.
77837         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
77838         using x2nrealloc, to simplify logic.
77839         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
77840         size calculation.  Do not assume utmp file is a regular file.
77841         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
77842         (READ_UTMP_CHECK_PIDS): New constant.
77843         * lib/save-cwd.c: Include unistd-safer.h.
77844         (save_cwd): Use fd_safer.
77845         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
77846         [!_LIBC] Include "stat-macros.h" instead.
77847         * lib/unistd-safer.h (fd_safer): New decl.
77848
77849 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77850
77851         * modules/getloadavg (Depends-on): Add unistd-safer.
77852         * modules/getusershell (Depends-on): Add stdio-safer.
77853         * modules/lstat (Depends-on): Remove xalloc.
77854         * modules/mkstemp (Depends-on): Add stat-macros.
77855         * modules/modechange (Depends-on): Remove xstrtol.
77856         Add stat-macros, xalloc.
77857         * modules/save-cwd (Depends-on): Add unistd-safer.
77858         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
77859         * modules/unistd-safer (Files): Add lib/fd-safer.c
77860         (Makefile.am): Remove lib_SOURCES.
77861
77862         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
77863         Remove fcntl-safer; unistd-safer supersedes it.
77864
77865 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77866
77867         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
77868         AC_HEADER_STAT.
77869         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
77870         (gl_PREREQ_CHOWN): Remove.
77871         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
77872         it.  Don't require AC_HEADER_STAT.
77873         (gl_PREREQ_LSTAT): Remove.
77874         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
77875         Don't require AC_HEADER_STAT.
77876         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
77877         (gl_PREREQ_RMDIR): Remove.
77878         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
77879         mention stat-macros.h or AC_HEADER_STAT, since we'll make
77880         the stat-macros module a prerequisite.
77881         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
77882         * m4/filemode.m4 (gl_FILEMODE): Likewise.
77883         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
77884         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
77885         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
77886         variable names.
77887         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
77888         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
77889         variable prefixes.
77890         * m4/fcntl-safer.m4: Remove.
77891         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
77892         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
77893         Invoke gl_PREREQ_FD_SAFER.
77894         (gl_PREREQ_FD_SAFER): New macro.
77895         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
77896         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
77897         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
77898         Remove duplicate call to AC_LIBOBJ(readutmp).
77899         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
77900
77901         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
77902         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
77903
77904 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77905
77906         * MODULES.html.sh (Misc): Add byteswap.
77907
77908 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77909
77910         * modules/getcwd (Depends-on): Add extensions.
77911         * modules/openat (Depends-on): Likewise.
77912
77913 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77914
77915         * modules/byteswap: New file.
77916
77917 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77918
77919         * m4/byteswap.m4: New file.
77920
77921 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77922
77923         * lib/byteswap_.h: New file.
77924
77925 2005-04-25  Karl Berry  <karl@gnu.org>
77926
77927         * m4/gettext.m4: Update from GNU gettext 0.14.4.
77928
77929 2005-04-25  Albert Chin  <china@thewrittenword.com>
77930
77931         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
77932         Toolkit C bug.
77933
77934 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
77935
77936         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
77937         (func_ln_if_changed): Remove forcibly for no error message
77938         in case file does not exist.
77939
77940 2005-04-19  Simon Josefsson  <jas@extundo.com>
77941
77942         * gnulib-tool (Options): Make --symlink mean --symbolic.
77943
77944 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
77945
77946         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
77947
77948 2005-04-16  Simon Josefsson  <jas@extundo.com>
77949
77950         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
77951
77952 2005-04-15  Simon Josefsson  <jas@extundo.com>
77953
77954         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
77955
77956 2005-04-15  Simon Josefsson  <jas@extundo.com>
77957
77958         * gnulib-tool: Rename --symlink to --symbolic.
77959
77960 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
77961
77962         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
77963         symbolic links to files instead of copying/moving.  Add --aux-dir,
77964         specifying directory relative --dir where auxiliary build tools
77965         are placed.
77966
77967 2005-04-14  Bruno Haible  <bruno@clisp.org>
77968
77969         * modules/allocsa (License): Change to LGPL.
77970         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
77971
77972 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77973
77974         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
77975         that "UTC +1 second" continues to work.  Problem reported
77976         by Dmitry V. Levin.
77977         (relunit_snumber): New rule.
77978         (relunit): Use it.
77979
77980 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
77981
77982         * lib/getdate.y (universal_time_zone_table): New constant.
77983         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
77984         universal_time_zone_table.
77985         (lookup_zone): Prefer universal_time_zone_table to
77986         local_time_zone_table, so that "GMT" time stamps are allowed in
77987         London during the summer.  Problem reported by Ian Abbott.
77988
77989 2005-04-12  Jim Meyering  <jim@meyering.net>
77990
77991         * lib/human.c (humblock): Set *options even when returning due to
77992         xstrtoumax conversion failure.  Thanks to a used-uninitialized
77993         warning from gcc-4.
77994
77995 2005-04-09  Jim Meyering  <jim@meyering.net>
77996
77997         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
77998         -Wuninitialized: initialize tm0.tm_year.
77999
78000 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
78001
78002         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
78003         count, since there's no maximum.  All uses changed.
78004         Add member dsts_seen.
78005         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
78006         not being INT_MAX.
78007         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
78008         Use pc_rels_seen to decide whther a date is absolute.
78009
78010         * lib/getdate.y (number): Don't overwrite year.
78011         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
78012         check.
78013
78014 2005-04-02  Simon Josefsson  <jas@extundo.com>
78015
78016         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
78017         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
78018
78019 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
78020
78021         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
78022         where no absolute path name can be longer than PATH_MAX.
78023
78024 2005-03-27  Jim Meyering  <jim@meyering.net>
78025
78026         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
78027
78028 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
78029
78030         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
78031         "one's complement" -> "ones' complement" in comment, as per Knuth.
78032         "value of type" -> "type or expression" in comment.
78033         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
78034
78035 2005-03-26  Jim Meyering  <jim@meyering.net>
78036
78037         Comment nits.
78038         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
78039         Correct typos: s/or/of/.
78040
78041 2005-03-26  Jim Meyering  <jim@meyering.net>
78042
78043         * modules/check-include-files: Move to ../ and rename to...
78044         * check-module: ...this.
78045
78046 2005-03-25  Jim Meyering  <jim@meyering.net>
78047
78048         * modules/xvasprintf (Files): Add xalloc.h.
78049
78050 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
78051
78052         * modules/gettext (Files): config/config.rpath ->
78053         build-aux/config.rpath
78054         * modules/iconv (Files): Likewise.
78055         Problem reported by Oskar Liljeblad.
78056
78057 2005-03-23  Jim Meyering  <jim@meyering.net>
78058
78059         * modules/check-include-files: New script to check for
78060         missing dependencies, multiple includes, etc.
78061
78062         * modules/c-strtold (Depends-on): Add xalloc.
78063         * modules/c-strtod (Depends-on): Add xalloc.
78064         * modules/hash (Depends-on): Add xalloc.
78065         (Files): Remove lib/xalloc.h.
78066
78067         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
78068         * modules/userspec (Files): Add lib/inttostr.h.
78069
78070 2005-03-23  Jim Meyering  <jim@meyering.net>
78071
78072         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
78073
78074 2005-03-22  Jim Meyering  <jim@meyering.net>
78075
78076         * modules/stat-macros: New module.
78077         * modules/canonicalize, modules/euidaccess, modules/file-type,
78078         * modules/filemode, modules/lchown, modules/makepath,
78079         * modules/rmdir, modules/stat: Depend on new stat-macros module
78080         rather than listing lib/stat-macros.h manually.
78081         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
78082
78083 2005-03-22  Jim Meyering  <jim@meyering.net>
78084
78085         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
78086
78087 2005-03-22  Bruno Haible  <bruno@clisp.org>
78088
78089         * config/srclist.txt: Replace target directory 'config' with
78090         'build-aux'.
78091         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
78092         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
78093         ../build-aux/.
78094
78095 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
78096
78097         * modules/chdir-long (Depends-on): Add mempcpy.
78098
78099         * modules/acl, modules/backupfile, modules/c-strtod,
78100         modules/c-strtold, modules/canon-host, modules/canonicalize,
78101         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
78102         modules/exclude, modules/exitfail, modules/file-type,
78103         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
78104         modules/getdate, modules/getline, modules/getpagesize,
78105         modules/getpass, modules/getugroups, modules/group-member,
78106         modules/hard-locale, modules/hash, modules/human, modules/idcache,
78107         modules/inttostr, modules/long-options, modules/makepath,
78108         modules/md5, modules/memcasecmp, modules/memcoll,
78109         modules/modechange, modules/mountlist, modules/path-concat,
78110         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
78111         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
78112         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
78113         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
78114         modules/strftime, modules/strndup, modules/strverscmp,
78115         modules/timespec, modules/unlocked-io, modules/userspec,
78116         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
78117         modules/yesno:
78118         Remove lib_SOURCES line from Makefile.am section, as this is now
78119         done automatically by the corresponding Autoconf macro.
78120
78121 2005-03-21  Jim Meyering  <jim@meyering.net>
78122
78123         Changes imported from coreutils.
78124
78125         * lib/cycle-check.c: Don't include xalloc.h.
78126
78127         * lib/path-concat.c: Don't include assert.h.
78128         (path_concat): Remove assertion that would have triggered
78129         for ABASE starting with more than one slash.
78130         Reported by Andreas Schwab.
78131
78132         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
78133         properly when ABASE is an absolute file name.
78134         Correct the description of this function.
78135         Include <assert.h>.
78136         Add an assertion and a test driver.
78137         This fixes a bug introduced on 2004-07-02.
78138         Andreas Schwab reported the resulting failure of cp --parents:
78139         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
78140
78141 2005-03-21  Jim Meyering  <jim@meyering.net>
78142
78143         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
78144         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
78145
78146 2005-03-21  Jim Meyering  <jim@meyering.net>
78147         and  Paul Eggert  <eggert@cs.ucla.edu>
78148
78149         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
78150         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
78151         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
78152         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
78153         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
78154         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
78155         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
78156         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
78157         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
78158         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
78159         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
78160         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
78161         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
78162         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
78163         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
78164         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
78165         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
78166         for these modules.
78167
78168 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
78169
78170         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
78171         (which shouldn't happen), generate nothing instead of returning 0
78172         immediately, so that nstrftime (NULL, ...) doesn't return 0.
78173
78174 2005-03-16  Bruno Haible  <bruno@clisp.org>
78175
78176         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
78177         HAVE_LONGLONG_64BIT.
78178
78179 2005-03-16  Bruno Haible  <bruno@clisp.org>
78180
78181         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
78182         HAVE_LONGLONG_64BIT.
78183
78184 2005-03-16  Bruno Haible  <bruno@clisp.org>
78185
78186         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
78187         HAVE_LONGLONG_64BIT.
78188
78189 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
78190
78191         * lib/strftime.c (my_strftime): Prepend space to format so that we can
78192         reliably distinguish strftime failure from empty output on POSIX
78193         hosts.
78194
78195 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
78196
78197         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
78198         (iconv_string): Don't guess a size-zero buffer, as that might cause
78199         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
78200         result would be 'too large', where 'too large' is (heuristically)
78201         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
78202         overflow concerns.  This will prevent some unwanted malloc failures
78203         when the inputs are very large.
78204
78205 2005-03-15  Karl Berry  <karl@gnu.org>
78206
78207         * config/srclist.txt (config.rpath): from gettext.
78208         * config/config.rpath: update.
78209
78210 2005-03-15  Bruno Haible  <bruno@clisp.org>
78211
78212         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
78213         to 'negate'.
78214
78215         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
78216         variable.
78217
78218         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
78219         results.
78220
78221 2005-03-14  Simon Josefsson  <jas@extundo.com>
78222
78223         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
78224         <fx@gnu.org>.
78225
78226 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
78227
78228         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
78229         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
78230         intprops.h.
78231         * lib/strtol.c: Likewise.
78232
78233 2005-03-14  Jim Meyering  <jim@meyering.net>
78234
78235         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
78236         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
78237         to be nonzero so that we (and caller) can detect the difference
78238         between a valid zero-length expansion and an error return, even
78239         when the underlying strftime fails before writing anything into
78240         that location.
78241
78242 2005-03-14  Bruno Haible  <bruno@clisp.org>
78243
78244         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
78245         Update from GNU gettext 0.14.3.
78246
78247 2005-03-10  Jim Meyering  <jim@meyering.net>
78248
78249         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
78250
78251 2005-03-10  Jim Meyering  <jim@meyering.net>
78252
78253         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
78254         so that this module works on systems without fchdir.
78255
78256 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
78257
78258         Factor int-properties macros into a single file, except for
78259         glibc-related files.
78260         * lib/intprops.h: New file.
78261         * lib/getloadavg.c: Include it instead of limits.h.
78262         (INT_STRLEN_BOUND): Remove.
78263         * lib/human.c: Include intprops.h.
78264         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
78265         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
78266         302/1000.
78267         * lib/inttostr.h: Include intprops.h instead of limits.h.
78268         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
78269         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
78270         for consistency with intprops.h.
78271         (time_t_is_integer, twos_complement_arithmetic): Use them.
78272         * lib/sig2str.h: Include <signal.h>, intprops.h.
78273         (INT_STRLEN_BOUND): Remove.
78274         * lib/strftime.c (TYPE_SIGNED): Remove.
78275         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
78276         * lib/strtol.c: Adjust comments to match intprops.h.
78277         * lib/userspec.c: Include intprops.h.
78278         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
78279         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
78280         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
78281         instead of rolling our own expressions.
78282         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
78283
78284         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
78285         instead of int.
78286         (my_strftime): Do not mishandle years close to INT_MAX, by doing
78287         the right thing even if adding 1900 would overflow.  Similarly
78288         for tm_mon + 1 and tm_yday + 1.
78289         Make %Y always equivalent to %C%y, and similarly for %G and %g.
78290         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
78291         (DO_SIGNED_NUMBER): New macro.
78292         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
78293
78294 2005-03-07  Bruno Haible  <bruno@clisp.org>
78295
78296         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
78297
78298 2005-03-07  Bruno Haible  <bruno@clisp.org>
78299
78300         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
78301
78302 2005-03-04  Derek R. Price  <derek@ximbiot.com>
78303
78304         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
78305         (func_import): Only replace files via --import when they have actually
78306         changed.
78307
78308 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78309
78310         * m4/mmap-anon.m4: New file.
78311         * m4/pagealign_alloc.m4: New file.
78312
78313 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78314             Bruno Haible  <bruno@clisp.org>
78315
78316         * modules/pagealign_alloc: New file.
78317         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
78318
78319 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78320             Bruno Haible  <bruno@clisp.org>
78321
78322         * lib/pagealign_alloc.h: New file.
78323         * lib/pagealign_alloc.c: New file.
78324
78325 2005-03-03  Bruno Haible  <bruno@clisp.org>
78326
78327         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
78328         Use an all-permissive copyright notice, recommended by RMS.
78329
78330 2005-03-02  Bruno Haible  <bruno@clisp.org>
78331
78332         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
78333         of AIX, the replacement has to be done only after <string.h> is
78334         included, therefore not in config.h. stpncpy.h does the replacement,
78335         and stpncpy.c uses it.
78336
78337 2005-03-02  Bruno Haible  <bruno@clisp.org>
78338
78339         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
78340         stpncpy.c uses it.
78341
78342 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78343
78344         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
78345         The workaround isn't strictly needed for POSIX conformance, and
78346         it's too much of a pain to configure and maintain.  We'll ask
78347         people to fix their kernels instead.
78348         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
78349         (NANOSLEEP_BUG_WORKAROUND): Remove.
78350         (xnanosleep): Remove the workaround.
78351
78352 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78353
78354         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
78355         Reported by Derek Price.
78356         (Include): Add "timespec.h".
78357
78358         * modules/xnanosleep (Depends-on): Remove gethrxtime.
78359
78360 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78361
78362         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
78363         to detect nanosleep bug.
78364
78365 2005-03-01  Bruno Haible  <bruno@clisp.org>
78366
78367         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
78368
78369 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78370
78371         * modules/gethrxtime: New file.
78372         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
78373         (Depends-on): Add gethrxtime.
78374         (configure.ac): Add gl_XNANOSLEEP.
78375         (Makefile.am): Remove lib_SOURCES line.
78376
78377 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78378
78379         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
78380         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
78381
78382 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78383
78384         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
78385         * lib/timespec.h (gettime): Return void, since it always
78386         succeeds now.  All uses changed.
78387         * lib/gettime.c (gettime): Likewise.
78388         [HAVE_NANOTIME]: Prefer nanotime.
78389         Assume gettimeofday succeeds, as POSIX requires.
78390         Assime time () succeeds, since other code already does.
78391         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
78392         (timespec_subtract): Remove.
78393         (NANOSLEEP_BUG_WORKAROUND): New constant.
78394         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
78395         things considerably.  Use it only on GNU/Linux hosts, since the
78396         workaround shouldn't be needed elsewhere.
78397
78398 2005-02-24  Bruno Haible  <bruno@clisp.org>
78399
78400         * modules/gettext (Files): Add m4/glibc2.m4.
78401
78402 2005-02-24  Bruno Haible  <bruno@clisp.org>
78403
78404         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
78405         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
78406         * m4/progtest.m4:
78407         Update from GNU gettext 0.14.2.
78408         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
78409
78410 2005-02-24  Bruno Haible  <bruno@clisp.org>
78411
78412         * lib/localcharset.c: Update from GNU gettext 0.14.2.
78413         * lib/config.charset: Update from GNU gettext 0.14.2.
78414
78415 2005-02-24  Bruno Haible  <bruno@clisp.org>
78416
78417         * lib/gettext.h: Update from GNU gettext 0.14.2.
78418
78419 2005-02-23  Simon Josefsson  <jas@extundo.com>
78420
78421         * m4/iconvme.m4: New file.
78422
78423 2005-02-23  Jim Meyering  <jim@meyering.net>
78424
78425         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
78426         change.
78427         Thanks to Bruno Haible for catching it.
78428
78429 2005-02-22  Simon Josefsson  <jas@extundo.com>
78430
78431         * modules/iconvme: New file.
78432
78433         * MODULES.html.sh: Add iconvme.
78434
78435 2005-02-22  Simon Josefsson  <jas@extundo.com>
78436
78437         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
78438
78439 2005-02-22  Simon Josefsson  <jas@extundo.com>
78440
78441         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
78442
78443 2005-02-22  Jim Meyering  <jim@meyering.net>
78444
78445         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
78446         s/ifndef/ifdef/.
78447
78448 2005-02-20  Neil Conway  <neilc@samurai.com>
78449
78450         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
78451         returned by OSX/Darwin if the specified buffer is not large
78452         enough for the hostname.
78453
78454 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78455
78456         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
78457         pass it to _help, otherwise the latter coredumps trying to
78458         dereference state.root_argp.
78459
78460 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78461
78462         * modules/chdir-long (Depends-on): Add memrchr.
78463         * modules/memrchr (Files): Add lib/memrchr.h.
78464         (Include): "memrchr.h".
78465
78466 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78467
78468         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
78469
78470 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78471
78472         * lib/memrchr.h: New file.
78473         * lib/chdir-long.c: Include it.
78474         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
78475         Don't bother including stddef.h.
78476
78477 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
78478
78479         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
78480         inclusion.
78481         Include <sys/types.h>, for dev_t.
78482         (ME_DUMMY, ME_REMOTE): Move from here....
78483         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
78484         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
78485         Dmitry V. Levin.
78486         Include mountlist.h first, to test the interface.
78487
78488 2005-01-29  Bruno Haible  <bruno@clisp.org>
78489
78490         * lib/progname.c (program_name): Initialize.
78491         Needed when linking statically on MacOS X.
78492
78493 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78494
78495         Sync from coreutils.
78496         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
78497         (Depends-on): Add c-strtod.
78498         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
78499
78500 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78501
78502         Sync from coreutils.
78503         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
78504
78505         Remove files that are specific to coreutils.
78506         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
78507
78508 2005-01-28  Bruno Haible  <bruno@clisp.org>
78509
78510         * modules/javacomp: New file.
78511         * MODULES.html.sh (Java): Add javacomp.
78512
78513 2005-01-28  Bruno Haible  <bruno@clisp.org>
78514
78515         * m4/javacomp.m4: New file, from GNU gettext.
78516
78517 2005-01-28  Bruno Haible  <bruno@clisp.org>
78518
78519         * lib/javacomp.sh.in: New file, from GNU gettext.
78520         * lib/javacomp.h: New file, from GNU gettext.
78521         * lib/javacomp.c: New file, from GNU gettext.
78522
78523 2005-01-26  Simon Josefsson  <jas@extundo.com>
78524
78525         * lib/gai_strerror.c: Use GPL in header.
78526
78527 2005-01-26  Bruno Haible  <bruno@clisp.org>
78528
78529         * modules/javaexec: New file.
78530         * MODULES.html.sh (Java): Add javaexec.
78531
78532 2005-01-26  Bruno Haible  <bruno@clisp.org>
78533
78534         * m4/javaexec.m4: New file, from GNU gettext.
78535
78536 2005-01-26  Bruno Haible  <bruno@clisp.org>
78537
78538         * lib/javaexec.sh.in: New file, from GNU gettext.
78539         * lib/javaexec.h: New file, from GNU gettext.
78540         * lib/javaexec.c: New file, from GNU gettext.
78541
78542 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78543
78544         * modules/lchown (Depends-on): Remove lchown.h
78545
78546 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78547
78548         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
78549         must be defined if the header file was not found, in order
78550         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
78551
78552 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78553
78554         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
78555         initializers for struct pentry_state.
78556         (__argp_error): Check return value of __asprintf
78557         (__argp_failure): Translate error message
78558
78559         * lib/argp-parse.c: Removed braces around the expansion of N_()
78560
78561 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78562
78563         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
78564         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
78565         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
78566         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
78567         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
78568         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
78569         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
78570         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
78571         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
78572         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
78573         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
78574         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
78575         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
78576         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
78577         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
78578         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
78579         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
78580         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
78581         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
78582         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
78583         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
78584         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
78585         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
78586         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
78587         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
78588         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
78589         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
78590         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
78591         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
78592         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
78593         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
78594         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
78595         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
78596         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
78597         xstrtol.m4, xstrtoumax.m4, yesno.m4:
78598         Use an all-permissive copyright notice, recommended by RMS.
78599
78600 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
78601
78602         * modules/chdir-long (Depends-on): Remove mempcpy.
78603
78604 2005-01-21  Jim Meyering  <jim@meyering.net>
78605
78606         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
78607         same value as for Solaris 9.
78608
78609         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
78610         component length.  This included changing the parameter to be
78611         of type `char *' rather than `char const *'.
78612         * lib/chdir-long.h (chdir_long): Update prototype.
78613
78614         * lib/openat.c (fdopendir, fstatat): New functions.
78615         * lib/openat.h: Include headers required for use of DIR and struct
78616         stat.
78617         [AT_SYMLINK_NOFOLLOW]: Define.
78618         (fdopendir, fstatat): Add prototypes.
78619
78620 2005-01-21  Bruno Haible  <bruno@clisp.org>
78621
78622         * modules/classpath: New file.
78623         * MODULES.html.sh (Java): Add classpath.
78624
78625 2005-01-21  Bruno Haible  <bruno@clisp.org>
78626
78627         * lib/classpath.h: New file, from GNU gettext.
78628         * lib/classpath.c: New file, from GNU gettext.
78629
78630 2005-01-20  Simon Josefsson  <jas@extundo.com>
78631
78632         * modules/version-etc-fsf: New file.
78633
78634 2005-01-20  Simon Josefsson  <jas@extundo.com>
78635
78636         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
78637         * lib/version-etc.c: Remove version_etc_copyright.
78638         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
78639         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
78640
78641 2005-01-20  Simon Josefsson  <jas@extundo.com>
78642
78643         * lib/base64.h (isbase64): Add.
78644
78645         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
78646         using a unsigned prototype, don't inline.
78647         (base64_decode): Use it.
78648
78649 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78650
78651         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
78652         it.
78653
78654 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78655
78656         * lib/save-cwd.c (save_cwd): Remove code to support the case
78657         where fchdir is missing or flaky.
78658
78659 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78660
78661         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
78662
78663 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
78664
78665         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
78666         AC_LIBSOURCES now does this.
78667         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
78668         with new ullong_max module.
78669
78670 2005-01-19  Bruno Haible  <bruno@clisp.org>
78671
78672         * modules/sh-quote: New file.
78673         * MODULES.html.sh (Executing programs): Add sh-quote.
78674
78675 2005-01-19  Bruno Haible  <bruno@clisp.org>
78676
78677         * lib/sh-quote.h: New file, from GNU gettext.
78678         * lib/sh-quote.c: New file, from GNU gettext.
78679
78680 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78681
78682         Merge from coreutils.
78683         * m4/ullong_max.m4: New file.
78684         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
78685         (gl_MACROS): Assume localeconv exists.
78686
78687 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78688
78689         Merge changes from coreutils, as described below in several
78690         changelogs dated today.
78691
78692         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
78693         (O_DIRECTORY): Remove; not needed here, since "." must be
78694         a directory.  All uses removed.
78695         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
78696         universal on Suns, and we also need to test for IRIX.
78697         Revamp code to use 'if' rather than '#if'.
78698         Avoid unnecessary comparison of cwd->desc to 0.
78699
78700         * lib/utimens.c (futimens): Robustify the previous patch, by checking
78701         for known valid error numbers rather than observed invalid ones.
78702
78703 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78704
78705         * modules/ullong_max: New file.
78706
78707         * modules/chdir-long, modules/openat: New files.
78708         * modules/save-cwd (Depends-on): Depend on chdir-long.
78709         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
78710
78711 2005-01-18  Jim Meyering  <jim@meyering.net>
78712
78713         Merge from coreutils.
78714         * m4/chdir-long.m4, m4/openat.m4: New files.
78715         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
78716         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
78717         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
78718         is sane and DOES follow symlinks.  Besides, testing 20 different
78719         systems found no broken chown implementations.
78720         Prompted by a change in rsync's copy of this macro.
78721         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
78722
78723         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
78724
78725         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
78726         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
78727         NULL-means-set-to-current-time semantics.
78728         Remove temporary file immediately, rather than waiting
78729         for configure's at-exit trap code to do it.
78730
78731 2005-01-18  Jim Meyering  <jim@meyering.net>
78732
78733         * lib/version-etc.c (version_etc_copyright): Update copyright date.
78734
78735         * lib/utimens.c (futimens): Account for the fact that futimes
78736         can also fail with errno == ENOSYS or errno == ENOENT.
78737         Patch from Dmitry V. Levin.
78738
78739         Change the name of the robust chdir function from chdir to chdir_long.
78740         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
78741         (restore_cwd): Use chdir_long, not chdir.
78742         * lib/chdir-long.c: Renamed from chdir.c.
78743         * lib/chdir-long.h: Renamed from chdir.h.
78744         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
78745         Hurd.
78746
78747 2005-01-18  Bruno Haible  <bruno@clisp.org>
78748
78749         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
78750         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
78751         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
78752         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
78753         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
78754         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
78755         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
78756         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
78757         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
78758         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
78759         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
78760         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
78761         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
78762         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
78763         Use an all-permissive copyright notice, recommended by RMS.
78764
78765 2005-01-18  Bob Proulx  <bob@proulx.com>
78766
78767         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
78768         simplify offsetof() macro construct to avoid compile failure with
78769         native HP-UX 11.0 ANSI C compiler.
78770
78771 2005-01-17  Bruno Haible  <bruno@clisp.org>
78772
78773         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
78774         redundant because stpncpy.m4 takes care of it.
78775
78776 2005-01-17  Bruno Haible  <bruno@clisp.org>
78777
78778         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
78779
78780 2005-01-17  Bruno Haible  <bruno@clisp.org>
78781
78782         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
78783         used.
78784
78785 2005-01-17  Bruno Haible  <bruno@clisp.org>
78786
78787         * lib/fwriteerror.h (fwriteerror): Change specification to include
78788         fclose.
78789         * lib/fwriteerror.c: Include <stdbool.h>.
78790         (fwriteerror): At the end, close the file stream. Record whether
78791         stdout was already closed.
78792
78793 2005-01-17  Bruno Haible  <bruno@clisp.org>
78794
78795         * lib/execute.c (environ): Declare if needed.
78796         * lib/pipe.c (environ): Likewise.
78797         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
78798
78799 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78800
78801         * modules/argp: Depend on vsnprintf
78802
78803 2005-01-10  Jim Meyering  <jim@meyering.net>
78804
78805         * modules/closeout (Depends-on): Add atexit.
78806
78807 2005-01-06  Bruno Haible  <bruno@clisp.org>
78808
78809         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
78810
78811 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78812
78813         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
78814         definitions to be after all include files, to avoid collisions.
78815         Problem reported by Bob Proulx.
78816
78817 2005-01-04  Jim Meyering  <jim@meyering.net>
78818
78819         Changes imported from coreutils.
78820         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
78821         as the mkstemp template, use a temporary directory and an
78822         8.3-friendly template to avoid trouble on systems like DJGPP.
78823         Reported by Juan M. Guerrero via Stepan Kasal.
78824         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
78825         close. Remove the temporary directory right away, rather than waiting
78826         for configure's at-exit trap code to do it.
78827         Suggestion from Stepan Kasal.
78828
78829 2005-01-01  Simon Josefsson  <jas@extundo.com>
78830
78831         * gnulib-tool: Print #include directives when --import'ing.
78832
78833 2004-12-28  Simon Josefsson  <jas@extundo.com>
78834
78835         * tests/test-base64.c: Include required header files.  Remove
78836         unused variables.
78837
78838 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78839
78840         * modules/error (Depends-on): Remove gettext.
78841
78842 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78843
78844         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
78845         not needed.  This removes a dependency on the gettext module.
78846         [defined _LIBC]: Do not include <libintl.h>; not needed.
78847
78848 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78849
78850         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
78851         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
78852
78853 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78854
78855         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
78856         HAVE_DECL_STRTOLD.
78857
78858 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78859
78860         * modules/getdate (Depends-on): Remove alloca-opt.
78861
78862 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78863
78864         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
78865
78866 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78867
78868         * lib/argp-parse.c: Include <stddef.h>.
78869         (alignof, alignto): New macros.
78870         (parser_init): Don't assume that void * is aligned sufficiently
78871         for struct option.
78872
78873         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
78874         need to extend the stack.
78875         (YYINITDEPTH): New macro, so that the initial stack isn't overly
78876         large.
78877
78878 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78879
78880         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
78881
78882 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78883
78884         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
78885         (2004-10-24) change.  Apparently this was a false alarm.
78886
78887         * modules/getdate: Depend on alloca-opt, not alloca.
78888
78889 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78890
78891         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
78892         Remove now-obsolete comment about AIX.
78893         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
78894         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
78895         (YYMAXDEPTH): New macro.
78896
78897 2004-12-18  Simon Josefsson  <jas@extundo.com>
78898
78899         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
78900
78901 2004-12-18  Bruno Haible  <bruno@clisp.org>
78902
78903         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
78904
78905 2004-12-18  Bruno Haible  <bruno@clisp.org>
78906
78907         * lib/fatal-signal.c (fatal_signals): Make non-const.
78908         (init_fatal_signals): New function.
78909         (uninstall_handlers, install_handlers): Ignore signals that were set to
78910         SIG_IGN.
78911         (at_fatal_signal): Call init_fatal_signals.
78912         (init_fatal_signal_set): Likewise. Ignore signals that were set to
78913         SIG_IGN.
78914         Reported by Paul Eggert.
78915
78916 2004-12-18  Bruno Haible  <bruno@clisp.org>
78917
78918         * doc/alloca.texi: New file.
78919         * doc/alloca-opt.texi: New file.
78920
78921 2004-12-17  Jim Meyering  <jim@meyering.net>
78922
78923         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
78924         Otherwise, install-sh could exit with improper exit status when
78925         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
78926
78927 2004-12-16  Simon Josefsson  <jas@extundo.com>
78928
78929         * tests/test-base64.c: Add license.
78930
78931 2004-12-15  Stepan Kasal  <address@hidden>
78932
78933         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
78934
78935 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
78936
78937         * modules/getcwd (Files): Add m4/d-ino.m4.
78938         Suggested by Mark D. Baushke.
78939
78940 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78941
78942         * lib/getdate.y (textint): New member "negative".
78943         (time_zone_hhmm): New function.
78944         Expect 14 shift-reduce conflicts, not 13.
78945         (o_colon_minutes): New rule.
78946         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
78947         (yylex): Set the "negative" member of signed numbers.
78948
78949 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78950
78951         * doc/getdate.texi (Time of day items, Time zone items):
78952         Describe new formats +00:00, UTC+00:00.
78953
78954 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78955
78956         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
78957         spurious "-l"s.  Problem reported by Stepan Kasal.
78958
78959 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
78960
78961         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
78962         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
78963
78964 2004-12-04  Simon Josefsson  <jas@extundo.com>
78965
78966         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
78967         Vandoorselaere <yoann@prelude-ids.org>.
78968
78969 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78970
78971         Changes imported from coreutils.
78972         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
78973         exist.
78974         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
78975
78976 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78977
78978         Changes imported from coreutils.
78979         * lib/hard-locale.c: Assume <locale.h> exists.
78980         Include "strdup.h".
78981         (GLIBC_VERSION): New macro.
78982         (hard_locale): Assume setlocale exists.
78983         Rewrite to avoid #ifdef.
78984         Use strdup rather than malloc + strcpy.
78985         * lib/human.c: Assume <locale.h> exists.
78986         (human_readable): Assume localeconv exists.
78987
78988 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78989
78990         * modules/hard-locale (Depends-on): Add strdup.
78991
78992 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
78993
78994         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
78995         convert T2, not T.  (Imported from libc.)
78996
78997 2004-11-30  Simon Josefsson  <jas@extundo.com>
78998
78999         * modules/restrict (License): Change to LGPL.
79000
79001 2004-11-30  Simon Josefsson  <jas@extundo.com>
79002
79003         * m4/restrict.m4: Add copyright and copying conditions.
79004
79005 2004-11-30  Simon Josefsson  <jas@extundo.com>
79006
79007         * m4/base64.m4: New file.
79008
79009 2004-11-30  Simon Josefsson  <jas@extundo.com>
79010
79011         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
79012         base64.
79013
79014         * tests/test-base64.c: New file.
79015
79016         * modules/base64: New file.
79017
79018 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
79019
79020         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
79021         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
79022
79023         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
79024
79025 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
79026
79027         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
79028         (__getcwd.c): Don't restore errno; glibc doesn't.
79029         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
79030         first, falling back to our code only if its results look suspicious.
79031         Ensure that the resulting buffer is only as large as necessary.
79032
79033         * lib/readutmp.c: Include readutmp.h first.
79034         Include <errno.h>, since readutmp.h no longer does that.
79035         * lib/readutmp.h: Don't include <errno.h>,
79036         <sys/param.h>, <time.h>; not needed to establish interface.
79037         (errno): Remove decl.
79038         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
79039         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
79040         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
79041
79042 2004-11-28  Simon Josefsson  <jas@extundo.com>
79043
79044         * lib/base64.h, base64.c: New file.
79045
79046 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
79047
79048         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
79049
79050 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
79051
79052         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
79053         (Depends-on): Remove pathmax, same.  Add mempcpy.
79054         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
79055         (Makefile.am): Append getcwd.h to lib_SOURCES.
79056         (Include): Add getcwd.h.
79057         (Maintainer): Change from Jim Meyering to "all, glibc",
79058         since getdate now uses intended-for-glibc code.
79059         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
79060         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
79061
79062 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79063
79064         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
79065         HP's ANSI C compiler.
79066         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
79067         Declaring int functions causes warnings on some modern systems and
79068         shouldn't be needed to compile on ancient ones.
79069         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
79070         defined.
79071
79072         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
79073         with the following changes.
79074         (__set_errno): Parenthesize properly.
79075         Include <stdbool.h>.
79076         (MIN, MAX, MATCHING_INO): New macros.
79077         (__getcwd): Define with prototype, not K&R form.
79078         Use heuristics to allocate default buffer on stack if possible.
79079         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
79080         behavior, and to avoid the PATH_MAX limit when computing
79081         ../../../../...
79082         Use MATCHING_INO to compare inode number to file.
79083         Check for arithmetic overflow in size calculations.
79084         Fix bug in reallocation of dot array that caused getcwd to fail
79085         on directories nested deeper than 75.
79086         Be more careful about saving errno on error.
79087         Do not use realloc; use only free+malloc, as this is a bit
79088         more flexible and avoids a needless copy operation.
79089         Do not inspect st_dev and st_ino for symbolic links; POSIX
79090         doesn't specify the latter.
79091         Check for closedir errors.
79092         Avoid needless casts.
79093         Use "#ifdef weak_alias" around weak_alias, to be like other
79094         glibc code.
79095         The following changes to getcwd.c have effect only when used in
79096         gnulib; they have no effect inside glibc proper.
79097         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
79098         as alloca isn't used.
79099         (alloca, __alloca): Likewise.
79100         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
79101         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
79102         unconditionally, as gnulib assumes C89 or better.
79103         Do not include <sys/param.h>.
79104         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
79105         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
79106         better.
79107         (NULL) [!defined NULL]: Remove; we assume C89 or better.
79108         Include <dirent.h> in a way that is compatible with modern Autoconf.
79109         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
79110         New macros, if not already defined.
79111         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
79112         Use "_LIBC", not "defined _LIBC", for consistency.
79113         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
79114         a mempcpy module.
79115         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
79116         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
79117         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
79118         credit only to Jim Meyering and adjust the copyright dates.
79119         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
79120         <stdlib.h>, <unistd.h>, "pathmax.h".
79121         Instead, include "xgetcwd.h" (first) and "getcwd.h".
79122         (INITIAL_BUFFER_SIZE): Remove.
79123         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
79124
79125 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79126
79127         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
79128         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
79129         Use the _ONCE methods, for efficiency.
79130         Check for fcntl.h.  In test program, include <errno.h>
79131         and <fcntl.h> if available.  Remove old K&R cruft from
79132         test program.  Check for common errors in GNU/Linux,
79133         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
79134         don't do AC_LIBOBJ, as that's getcwd.m4's job.
79135         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
79136         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
79137         name accordingly.
79138         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
79139         accommodate new getcwd.c.
79140         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
79141         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
79142         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
79143         that's all we need now.
79144
79145 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79146
79147         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
79148         argp-parse.c depends on getopt internals, that means we should
79149         always use our getopt, to be on the safe side.
79150         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
79151         order not to spoil the result of an eventual previous invocation
79152         of gl_GETOPT_SUBSTITUTE.
79153
79154 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79155
79156         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
79157         redefinition warnings. To avoid them, include the defines
79158         in `#if !defined __need_getopt ... #endif'. The only place
79159         where __getopt_argv_const is used is in definitions
79160         of getopt_long and getopt_long_only below, which are as well
79161         protected by `#ifndef __need_getopt'.
79162         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
79163         __need_getopt after including <stdio.h> and <unistd.h> These
79164         headers might have defined it.
79165
79166 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
79167
79168         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
79169
79170 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
79171
79172         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
79173         (futimens): New function, which uses futimes if available.
79174         (futimens, utimens): Support timespec==NULL, with same semantics
79175         as utime and utimens.
79176         * lib/utimens.h (futimens): New decl.
79177
79178 2004-11-23  Jim Meyering  <jim@meyering.net>
79179
79180         * lib/getopt_.h: Remove trailing blanks.
79181
79182 2004-11-23  Jim Meyering  <jim@meyering.net>
79183
79184         * lib/__fpending.c: Add comment.
79185
79186 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
79187
79188         * modules/canonicalize (Depends-on): Add xreadlink.
79189         Problem reported by James Youngman.
79190
79191 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
79192
79193         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
79194         New macros.
79195         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
79196         optopt): Use them instead of invoking ## directly; otherwise, the
79197         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
79198
79199 2004-11-19  Bruno Haible  <bruno@clisp.org>
79200
79201         * lib/strtok_r.c: Move comments from here...
79202         * lib/strtok_r.h: ... to here.
79203
79204 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
79205
79206         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
79207         implementations that mishandle size_t overflow.
79208
79209 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
79210
79211         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
79212         might fail.  Problem reported by Yoann Vandoorselaere.
79213         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
79214         implementations that mishandle size_t overflow.
79215
79216 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79217
79218         * modules/canon-host (Depends-on): Add strdup.
79219
79220 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79221
79222         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
79223
79224 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79225
79226         * lib/canon-host.c: Include "strdup.h".
79227         (canon_host): Use getaddrinfo if available, so that IPv6 works.
79228         Use strdup instead of malloc/strcpy to duplicate strings.
79229
79230         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
79231         (human_space_before_unit): New constant.
79232         * lib/human.c (human_readable): Support it.
79233
79234         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
79235         (xgetcwd): Set errno correctly when failing.
79236         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
79237         the failure is actually due to a PATH_MAX problem.
79238
79239         Further getopt changes to make it more likely that glibc will
79240         buy the changes back.
79241         * lib/getopt.c (POSIXLY_CORRECT): New constant.
79242         (getopt): Use it, so to preserve glibc semantic
79243         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
79244         when compiling for libc.
79245         * lib/getopt_.h (__getopt_argv_const): Bring it back.
79246         (getopt_long, getopt_long_only): Use it.
79247
79248         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79249         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
79250         (getopt): Argv is now char * const *, as per standard.
79251         (_getopt_internal_r, _getopt_internal): Argv is now char **,
79252         not char *__getopt_argv_const *.
79253         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79254         _getopt_long_only_r): Likewise.
79255         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
79256         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79257         _getopt_long_r, _getopt_long_only_r): Likewise.
79258         * lib/getopt_.h (__getopt_argv_const): Remove.
79259         (getopt): Argv is now char * const *, as per standard.
79260
79261         * lib/getdate.y (tORDINAL): New token.
79262         (day, relunit): Allow it for relative times.
79263         (relative_time_table): Use tORDINAL for ordinals.
79264
79265 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79266
79267         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
79268         Document that "second" isn't allowed as an ordinal number.
79269
79270 2004-11-16  Jim Meyering  <jim@meyering.net>
79271
79272         * modules/closeout (Depends-on): Add fpending.
79273
79274 2004-11-15  Jim Meyering  <jim@meyering.net>
79275
79276         * lib/closeout.c: Include "__fpending.h" once again.
79277         Include <stdbool.h>.
79278         (close_stdout): Don't fail just because stdout was closed initially,
79279         since some programs don't write to stdout in the normal course of
79280         operation (other than --version and --help), and we don't want this
79281         function to make e.g. `touch file >&-' fail.
79282         But do fail if it was closed and someone has tried to write to it.
79283         E.g., `printf foo >&-' must fail.
79284
79285 2004-11-13  Jim Meyering  <jim@meyering.net>
79286
79287         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
79288
79289 2004-11-12  Simon Josefsson  <jas@extundo.com>
79290
79291         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
79292         small doc fix is still pending.
79293
79294 2004-11-11  Simon Josefsson  <jas@extundo.com>
79295
79296         * modules/strtok_r: New file.
79297
79298         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79299         strtok_r.
79300
79301 2004-11-11  Simon Josefsson  <jas@extundo.com>
79302
79303         * m4/strtok_r.m4: New file.
79304
79305         * m4/getopt.m4: Replace opterr.
79306
79307 2004-11-11  Simon Josefsson  <jas@extundo.com>
79308
79309         * lib/strtok_r.h, strtok_r.c: New file.
79310
79311 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79312
79313         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
79314         of replacing opterr, getopt, etc.  This should handle the
79315         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
79316
79317 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79318
79319         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
79320         we can stop lying to compilers about the constness of argv when we
79321         are compiled outside glibc.
79322         (getopt, getopt_long, getopt_long_only): Use it.
79323         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79324         _getopt_internal, getopt): Likewise.
79325         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79326         _getopt_long_only_r): Likewise.
79327         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79328         _getopt_long_r, _getopt_long_only_r): Likewise.
79329
79330         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
79331         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
79332         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
79333         the other external symbols.
79334         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
79335         declaration, since the above renaming now works around collisions.
79336
79337 2004-11-11  Jim Meyering  <jim@meyering.net>
79338
79339         * lib/linebreak.c: Remove trailing blanks.
79340         * lib/alloca_.h: Likewise.
79341         * lib/acosl.c: Likewise.
79342         * lib/euidaccess.c: Likewise.
79343         * lib/allocsa.h: Likewise.
79344
79345 2004-11-10  Simon Josefsson  <jas@extundo.com>
79346
79347         * m4/getaddrinfo.m4: New file.
79348
79349 2004-11-10  Simon Josefsson  <jas@extundo.com>
79350
79351         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
79352
79353 2004-11-10  Simon Josefsson  <jas@extundo.com>
79354
79355         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79356         getaddrinfo.
79357
79358         * modules/getaddrinfo: New file.
79359
79360 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79361
79362         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
79363
79364 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79365
79366         * lib/mktime.c (SHR): New macro, which is a portable
79367         substitute for >> that should work even on Crays.
79368         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
79369         Problem reported by Mark D. Baushke in
79370         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
79371         * lib/getdate.y (SHR): Likewise.
79372         (tm_diff): Use it.
79373         * lib/strftime.c (SHR): Likewise.
79374         (tm_diff): Use it.
79375         * lib/quotearg.c (struct quoting_options): Use unsigned int for
79376         quote_these_too, so that right shifts are well defined.  All uses
79377         changed.
79378
79379 2004-11-10  Jim Meyering  <jim@meyering.net>
79380
79381         Ensure that no close failure goes unreported.
79382         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
79383         return early when it seems there's nothing to flush.
79384         Don't include __fpending.h.
79385
79386 2004-11-10  Jim Meyering  <jim@meyering.net>
79387
79388         * modules/closeout (Depends-on): Remove fpending.
79389
79390 2004-11-10  Jim Meyering  <jim@meyering.net>
79391
79392         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
79393
79394 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79395
79396         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
79397         gl_FUNC_STRFTIME.
79398         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
79399         and AC_REQUIRE when possible, to avoid duplicate checks.
79400         Check for <wchar.h>.
79401
79402 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79403
79404         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
79405
79406 2004-11-09  Bruno Haible  <bruno@clisp.org>
79407
79408         * m4/sockpfaf.m4: New file.
79409
79410 2004-11-05  Bruno Haible  <bruno@clisp.org>
79411
79412         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
79413         Reported by Mark D. Baushke <mdb@cvshome.org>.
79414
79415 2004-11-04  Bruno Haible  <bruno@clisp.org>
79416
79417         2004-09-11  Bruno Haible  <bruno@clisp.org>
79418                 * allocsa.valgrind: New file.
79419         2004-02-06  Bruno Haible  <bruno@clisp.org>
79420                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
79421                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
79422                 Reported by Christopher Seip <chris.seip@hp.com>.
79423
79424 2004-11-04  Bruno Haible  <bruno@clisp.org>
79425
79426         * modules/allocsa (Files): Add lib/allocsa.valgrind.
79427         (Makefile.am): Distribute it.
79428
79429 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
79430
79431         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
79432         with errno == ERANGE if the buffer is too small.
79433         Problem reported by Mark D. Baushke.
79434
79435 2004-11-03  Albert Chin  <china@thewrittenword.com>
79436             Paul Eggert  <eggert@cs.ucla.edu>
79437
79438         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
79439         equivalent, substitute $ac_type for equivalent type rather than
79440         blindly using uint32_t *always* which won't work if uint32_t is not
79441         available.  Define _UINT32_T to work around typedef of uint32_t if
79442         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
79443         2.5.1.
79444
79445 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79446
79447         * m4/jm-macros.m4: Sync from coreutils.
79448         (gl_MACROS): Check for mbrlen, for pathchk.
79449         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
79450
79451 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79452
79453         * lib/xreadlink.c (MAXSIZE): New macro.
79454         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
79455         size does not exceed MAXSIZE.  Avoid cast.
79456         As suggested by Mark D. Baushke in
79457         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
79458         if readlink fails with buffer size just under MAXSIZE, try again
79459         with MAXSIZE.
79460
79461 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79462
79463         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
79464
79465 2004-11-02  Derek R. Price  <derek@ximbiot.com>
79466         and  Paul Eggert  <eggert@cs.ucla.edu>
79467
79468         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
79469         (get_date): Overparenthesize to avoid GCC warning.
79470
79471 2004-11-02  Bruno Haible  <bruno@clisp.org>
79472
79473         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
79474         returns void.
79475
79476 2004-11-02  Bruno Haible  <bruno@clisp.org>
79477
79478         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
79479         function returns void.
79480
79481 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79482
79483         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
79484         fflush_unlocked, flockfile, funlockfile, funlockfile,
79485         fputs_unlocked, putc_unlocked.
79486
79487 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79488
79489         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79490         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
79491         already declared.
79492
79493 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79494
79495         * modules/getdate (Files): Add doc/getdate.texi.
79496         (Depends-on): Add setenv, xalloc.
79497
79498 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79499
79500         * lib/getdate.y: Add support for TZ="foo" within a date string.
79501         Fix some bugs near time_t boundaries.  Reject dates with
79502         out-of-range components, e.g., "Sept 31".
79503         Include <stdlib.h>, "setenv.h", "xalloc.h".
79504         (ISDIGIT_LOCALE): Remove; unused.
79505         Note that the TZ and time functions used here are not reentrant.
79506         (mktime_ok, get_tz): New functions.
79507         (TZBUFSIZE): New constant.
79508         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
79509         This requires that we sometimes generate our own TZ="XXX..." setting.
79510
79511 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79512
79513         * doc/getdate.texi: New file, from coreutils with modifications for
79514         the new TZ parsing.
79515
79516 2004-10-27  Derek R. Price  <derek@ximbiot.com>
79517
79518         * lib/mktime.c (not_equal_tm): Remove redundant check.
79519
79520 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79521
79522         * modules/regex (lib_SOURCES): Add regex.c.
79523         Reported by James Youngman in
79524         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
79525
79526 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79527
79528         * lib/getdate.y: Use Bison 1.875 features, and some minor
79529         code cleanups.  This change does not affect semantics.
79530         Don't include <stdlib.h>; no longer needed.
79531         Don't include unlocked-io.h; only the "#if TEST" code uses
79532         stdio, and performance isn't crucial there.
79533         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
79534         Bison 1.875 features as described below.
79535         All uses of "PC." replaced by "pc->".
79536         (YYSTYPE): Add a forward declaration.
79537         (yylex, yyerror): Use full prototypes in forward decls.
79538         Use "%pure-parser" rather than obsolescent "%pure_parser".
79539         Use %parse-param and %lex-param instead of obsolescent
79540         YYPARSE_PARAM and YYLEX_PARAM.
79541         (meridian_table, month_and_day_table, time_units_table,
79542         relative_time_table, time_zone_table, military_table,
79543         lookup_zone, lookup_word, get_date):
79544         Use NULL instead of 0 where appropriate.
79545         (to_hour): Avoid abort (), to avoid a dependency on
79546         stdlib.h.
79547         (yyerror, yylex): Now accepts parser_control * arg.
79548         (main) [TEST]: Use '\0' rather than 0 for char.
79549
79550 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79551
79552         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
79553
79554 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79555
79556         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
79557         It's now the caller's responsibility to handle the case where
79558         !HAVE_GETPAGESIZE && !defined getpagesize.
79559
79560         * lib/mktime.c (leapyear): Arg is long int, not int.
79561
79562 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
79563
79564         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
79565
79566 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
79567
79568         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
79569         missing.  Problem reported by James Youngman.
79570
79571 2004-10-16  Simon Josefsson  <jas@extundo.com>
79572
79573         * gnulib-tool: Fix comments.  Fix parse problem.
79574         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
79575
79576 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
79577
79578         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
79579         implementation of getopt_long.  Problem reported by Alexander Taler in:
79580         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
79581
79582 2004-10-15  Bruno Haible  <bruno@clisp.org>
79583
79584         * gnulib-tool: Untabify. Initialize supplied_libname.
79585         (func_usage): More homogenous output.
79586         (func_modules_transitive_closure, func_modules_to_filelist,
79587         func_emit_lib_Makefile_am): New functions.
79588         (func_import): New function, extracted from big case statement. Use
79589         func_get_license, func_modules_transitive_closure,
79590         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
79591         opt_lgpl. Don't use test -a, as it's not portable.
79592         (func_create_testdir): Use func_modules_transitive_closure,
79593         func_modules_to_filelist, func_emit_lib_Makefile_am.
79594
79595 2004-10-15  Bruno Haible  <bruno@clisp.org>
79596
79597         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
79598
79599 2004-10-15  Bruno Haible  <bruno@clisp.org>
79600
79601         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
79602         the portions belonging to each module.
79603         Suggested by Derek Robert Price <derek@ximbiot.com>.
79604
79605 2004-10-12  Simon Josefsson  <jas@extundo.com>
79606
79607         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79608         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
79609         to real functions.
79610
79611 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79612
79613         * modules/vsnprintf: New file.
79614
79615 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79616
79617         * m4/vsnprintf.m4: New file.
79618
79619 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79620
79621         * lib/vsnprintf.h: New file.
79622         * lib/vsnprintf.c: New file.
79623
79624 2004-10-11  Bruno Haible  <bruno@clisp.org>
79625
79626         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
79627         vsnprintf.
79628
79629 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79630
79631         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
79632
79633 2004-10-07  Bruno Haible  <bruno@clisp.org>
79634
79635         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
79636         fits into the provided buffer.
79637
79638 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79639
79640         * lib/diacrit.c, diacrit.h: Add GPL notice.
79641
79642         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
79643         notice.
79644         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
79645         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
79646         This avoids a potential constant-folding bug.
79647
79648 2004-10-05  Bruno Haible  <bruno@clisp.org>
79649
79650         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
79651         for the declaration of strsep.
79652
79653 2004-10-05  Bruno Haible  <bruno@clisp.org>
79654
79655         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
79656
79657 2004-10-04  Simon Josefsson  <jas@extundo.com>
79658
79659         * modules/memmem: New file.
79660         * tests/test-memmem.c: New file.
79661         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
79662
79663 2004-10-04  Simon Josefsson  <jas@extundo.com>
79664
79665         * m4/memmem.m4: New file.
79666
79667 2004-10-04  Simon Josefsson  <jas@extundo.com>
79668
79669         * lib/memmem.h: New file.
79670         * lib/memmem.c: New file, taken from glibc.
79671
79672 2004-10-04  Simon Josefsson  <jas@extundo.com>
79673
79674         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
79675         '#ifdef USE_UNLOCKED_IO'.
79676
79677 2004-10-04  Simon Josefsson  <jas@extundo.com>
79678
79679         * config/srclist.txt: Add memmem from glibc.
79680
79681 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79682
79683         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
79684
79685         * modules/argmatch, modules/argp, modules/closeout, modules/error,
79686         modules/exclude, modules/getdate, modules/getline,
79687         modules/getndelim2, modules/getpass, modules/getpass-gnu,
79688         modules/getusershell, modules/linebuffer, modules/md5,
79689         modules/mountlist, modules/posixtm, modules/readtokens,
79690         modules/readutmp, modules/regex, modules/sha1,
79691         modules/version-etc, modules/yesno:
79692         Remove dependency on unlocked-io.
79693
79694 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79695
79696         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
79697
79698         * m4/unlocked-io.m4: Add copyright notice.
79699         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
79700
79701 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79702
79703         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
79704         * lib/xmalloc.c (xmemdup): Likewise.
79705         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
79706         XFREE): Remove these long-obsolescent macros.
79707         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
79708         * lib/xstrdup.c: Remove.
79709
79710         * lib/regex.c (re_comp): Cast gettext return value to char *,
79711         Problem reported by Martin Neitzel via Mark D. Baushke.
79712
79713 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79714
79715         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
79716         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
79717         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
79718         regex.c, sha1.c, version-etc.c, yesno.c:
79719         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
79720         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
79721         the includer's responsibility.
79722
79723         Sync from coreutils.
79724
79725         * lib/modechange.c (mode_compile): Don't decrement a pointer that
79726         points to the start of a string, as the C Standard says the
79727         resulting behavior is undefined.
79728
79729         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
79730         simple -> simple_backups, numbered_existing ->
79731         numbered_existing_backups, numbered -> numbered_backups
79732         to avoid shadowing problems.  All uses changed.
79733         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
79734         * lib/backupfile.c (check_extension, numbered_backup):
79735         Rename locals to avoid shadowing 'basename'.
79736         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
79737         once.
79738
79739         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
79740         * lib/.cvsignore: Add getopt.h.
79741
79742 2004-10-04  Bruno Haible  <bruno@clisp.org>
79743
79744         * modules/README: New file.
79745         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
79746         not a module.
79747
79748 2004-10-02  Jim Meyering  <jim@meyering.net>
79749
79750         * lib/dirfd.h, getpagesize.h: Add copyright notice.
79751
79752 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79753
79754         * modules/strsep: New file.
79755
79756 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79757
79758         * m4/strsep.m4: New file.
79759
79760 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79761
79762         * lib/strsep.h: New file.
79763         * lib/strsep.c: New file.
79764
79765 2004-10-01  Simon Josefsson  <jas@extundo.com>
79766
79767         * lib/snprintf.c (snprintf): Handle size==0.
79768
79769 2004-10-01  Simon Josefsson  <jas@extundo.com>
79770             Bruno Haible  <bruno@clisp.org>
79771
79772         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
79773         (snprintf): Declare 'args'.
79774
79775 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
79776
79777         * lib/snprintf.c: Remove comments as to why each header is needed.
79778
79779 2004-10-01  Bruno Haible  <bruno@clisp.org>
79780
79781         * MODULES.html.sh: Add strsep.
79782
79783 2004-09-30  Simon Josefsson  <jas@extundo.com>
79784
79785         * modules/snprintf: New file.
79786
79787 2004-09-30  Simon Josefsson  <jas@extundo.com>
79788
79789         * m4/snprintf.m4: New file.
79790
79791 2004-09-30  Simon Josefsson  <jas@extundo.com>
79792
79793         * lib/snprintf.h, lib/snprintf.c: New files.
79794
79795 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79796
79797         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
79798         (hol_entry_help): Never translate an empty string.
79799         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
79800         * lib/argp.h (OPTION_NO_TRANS): New option.
79801
79802 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79803
79804         * modules/argp (Maintainer): Replace Simon Josefsson
79805         by Sergey Poznyakoff.
79806
79807 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79808
79809         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
79810         changes merged back into glibc.
79811
79812 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79813
79814         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
79815
79816 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
79817
79818         * lib/xvasprintf.c: Include xalloc.h.
79819         (xvasprintf): Use xalloc_die, not xmalloc_die.
79820
79821 2004-09-29  Bruno Haible  <bruno@clisp.org>
79822
79823         * modules/alloca-opt: New file, derived from modules/alloca.
79824         * modules/allocsa: Depend on alloca-opt instead of alloca.
79825         * modules/setenv: Likewise.
79826         * modules/vasnprintf: Likewise.
79827         * MODULES.html.sh: Add alloca-opt.
79828
79829 2004-09-28  Simon Josefsson  <jas@extundo.com>
79830
79831         * gnulib-tool: New parameter --lgpl, to asseert that modules are
79832         LGPL, and to replace license template from GPL to LGPL.
79833
79834 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79835
79836         * modules/dummy: Change license to LGPL.
79837
79838 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79839
79840         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
79841
79842 2004-09-24  Simon Josefsson  <jas@extundo.com>
79843
79844         * modules/minmax (License): Change from GPL to LGPL.
79845
79846 2004-09-23  Simon Josefsson  <jas@extundo.com>
79847
79848         * gnulib-tool (--import): Typo.
79849
79850 2004-09-23  Simon Josefsson  <jas@extundo.com>
79851
79852         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
79853
79854 2004-09-22  Bruno Haible  <bruno@clisp.org>
79855
79856         * modules/*: Add 'License' field.
79857         * gnulib-tool: Accept --extract-license option.
79858         (func_get_license): New function.
79859
79860 2004-09-21  Bruno Haible  <bruno@clisp.org>
79861
79862         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
79863         Reported by Simon Josefsson.
79864
79865 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79866
79867         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
79868         gl_AC_TYPE_LONG_LONG.
79869
79870 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79871
79872         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
79873
79874 2004-09-18  Simon Josefsson  <jas@extundo.com>
79875         and  Paul Eggert  <eggert@cs.ucla.edu>
79876
79877         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
79878         calls with autoreconf.  Define GL_LIB.
79879
79880 2004-09-14  Karl Berry  <karl@gnu.org>
79881
79882         * config/srclist.txt: unsync setenv.c, sigh.
79883
79884 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79885
79886         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
79887         Problem reported by Bruno Haible in:
79888         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
79889
79890 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79891
79892         * config/srclist.txt: Comment out argp-pvh.c.
79893
79894 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
79895
79896         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
79897         in case some system header has #define'd it.  Problem reported by
79898         Soeren D. Schulze in
79899         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
79900
79901 2004-09-09  Karl Berry  <karl@gnu.org>
79902
79903         * regex.[ch]: delete from the root.  These were supposed to be
79904                 synced with emacs cvs, but this has not happened for about
79905                 a year, and anyway nothing else uses emacs regex.[ch].
79906                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
79907                 lib/regex[.ch] is untouched.
79908
79909 2004-09-09  Bruno Haible  <bruno@clisp.org>
79910
79911         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
79912
79913 2004-09-09  Bruno Haible  <bruno@clisp.org>
79914
79915         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
79916         modifications.
79917         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
79918
79919 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79920
79921         * modules/xvasprintf: New file.
79922         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
79923
79924 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79925
79926         * lib/xvasprintf.h: New file.
79927         * lib/xvasprintf.c: New file.
79928         * lib/xasprintf.c: New file.
79929
79930 2004-09-08  Bruno Haible  <bruno@clisp.org>
79931
79932         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
79933
79934 2004-09-08  Bruno Haible  <bruno@clisp.org>
79935
79936         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
79937         length is > INT_MAX.
79938         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
79939         more.
79940
79941 2004-09-08  Bruno Haible  <bruno@clisp.org>
79942
79943         * lib/stdint_.h: New file, taken from GNU clisp.
79944
79945 2004-09-08  Bruno Haible  <bruno@clisp.org>
79946             Oskar Liljeblad  <oskar@osk.mine.nu>
79947
79948         * modules/stdint: New file.
79949         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
79950
79951 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79952
79953         Import from coreutils.
79954         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
79955         strings on unbounded length.  alloca's performance benefits aren't
79956         that important here.
79957         (V_STRDUP): Remove.
79958         (parse_with_separator): New function, with most of the internals
79959         of the old parse_user_spec.  Allow user to omit both user and group,
79960         for compatibility with FreeBSD.
79961         Clone only the user name, not the entire spec.
79962         Do not set *uid, *gid unless entirely successful.
79963         Avoid memory leak in some failing cases.
79964         Fix regression for USER.GROUP reported by Dmitry V. Levin in
79965         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
79966         (parse_user_spec): Rewrite to use parse_with_separator.
79967
79968 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79969
79970         * modules/userspec: Don't depend on alloca.
79971
79972 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79973
79974         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
79975
79976 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79977
79978         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
79979         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
79980         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
79981
79982 2004-08-16  Simon Josefsson  <jas@extundo.com>
79983
79984         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
79985         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
79986         Add --dry-run for --import.
79987         Let user provided command line parameters override configure.ac
79988         settings.
79989
79990 2004-08-12  Simon Josefsson  <jas@extundo.com>
79991
79992         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
79993         as discussed with Paul Eggert in threads rooted at
79994         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
79995         and
79996         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
79997         Before, the test was empty, and relied on ELIDE_CODE in source
79998         code.)
79999         (gl_PREREQ_GETOPT): New macro.
80000         (gl_GETOPT): Use them.
80001
80002 2004-08-12  Simon Josefsson  <jas@extundo.com>
80003
80004         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
80005         * lib/getopt_.h: Renamed from getopt.h.
80006
80007 2004-08-12  Simon Josefsson  <jas@extundo.com>
80008
80009         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
80010         Change default library name from libfoo to libgnu.
80011         Now, if you have a configure.ac that says:
80012                 gl_SOURCE_BASE(gl)
80013                 gl_M4_BASE(gl/m4)
80014                 gl_MODULES(error getopt etcetera)
80015                 gl_INIT
80016         you can import all you need by running:
80017                 ../gnulib/gnulib-tool --import
80018
80019         * modules/getopt (Files): Rename getopt.h to getopt_.h.
80020         (Makefile.am): Rewrite, use logic from argz.
80021         (Include): Use <getopt.h> instead of "getopt.h".
80022
80023 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80024
80025         * modules/argp (Files): Add m4/unlocked-io.m4.
80026         (Depends-on): Add extensions.
80027
80028 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80029
80030         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
80031         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
80032         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
80033         Check for program_invocation_name, program_invocation_short_name,
80034         flockfile, funlockfile, features.h, _getopt_long_only_r.
80035
80036 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80037
80038         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
80039         its complicated substitute.
80040         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
80041         and program_invocation_name.
80042         (__argp_basename) [!_LIBC]: Remove; the only use was
80043         replaced by its body.
80044         (__argp_short_program_name): Change condition from
80045         !defined __argp_short_program_name to
80046         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
80047         to match argp-namefrob.h.
80048         (__argp_failure): Don't assume strerror_r returns char *.
80049         * lib/argp-parse.c (N_): Define unconditionally.
80050         (argp_default_options): Fill out initializers with 0 to avoid
80051         gcc warnings.
80052
80053 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80054
80055         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
80056         getopt1.c.
80057
80058 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80059
80060         Merge from coreutils.
80061
80062         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
80063
80064         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
80065         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
80066
80067 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80068
80069         Merge from coreutils.
80070
80071         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
80072         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
80073         for Reliant Unix 5.43.
80074
80075         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
80076         (union fooround): Use uintmax_t, not long int.
80077         The rest is a merge from libc:
80078         [defined _LIBC]: Include <shlib-compat.h>.
80079         (_obstack) [defined _LIBC]: Remove after 2.3.4.
80080
80081         * lib/settime.c (settime): Recode to avoid warning with
80082         Sun Forte C 6U2.
80083
80084         * lib/strverscmp.c: Convert to UTF-8.
80085
80086 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80087
80088         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80089         m4/uintmax_t.m4.
80090
80091 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80092
80093         * modules/xalloc-die: New file.
80094         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
80095
80096         * modules/md5 (Files): Add m4/uint32_t.m4.
80097         * modules/sha1: Renamed from modules/sha.
80098         (Files):
80099         Rename lib/sha.h to lib/sha1.h.
80100         Rename lib/sha.c to lib/sha1.c.
80101         Rename m4/sha.m4 to m4/sha1.m4.
80102         (lib_SOURCES): Likewise.
80103         (configure.ac): Rename gl_SHA to gl_SHA1.
80104         (Include): sha.h -> sha1.h.
80105
80106 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80107
80108         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
80109         * m4/sha1.m4: Renamed from sha.m4.
80110         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
80111
80112 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80113
80114         * lib/obstack.h (obstack_empty_p):
80115         Don't assume that chunk->contents is suitably aligned.
80116         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
80117         Likewise. Problem reported by Benno in
80118         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
80119
80120         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
80121         readable.  This could be improved further but it'd take some work.
80122
80123 2004-08-08  Simon Josefsson  <jas@extundo.com>
80124
80125         * modules/xgethostname (Depends-on): Remove exit and error (not
80126         used).
80127
80128         * modules/getpass-gnu: Add getpass.h.
80129         (Depends-on): Add stdbool.
80130         * modules/getpass: Add getpass.h.
80131
80132 2004-08-08  Simon Josefsson  <jas@extundo.com>
80133
80134         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
80135         Check getpass declaration.
80136
80137 2004-08-08  Simon Josefsson  <jas@extundo.com>
80138
80139         * lib/xgethostname.c: Don't include error.h (not used).
80140
80141         * lib/getpass.h: Add.
80142         * lib/getpass.c: Include getpass.h first.
80143
80144 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
80145
80146         * lib/xalloc-die.c: New file.
80147         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
80148         All uses removed.
80149         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
80150         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
80151         xalloc-die.c.
80152         (_, N_, xalloc_die): Move to xalloc-die.c.
80153         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
80154         so that we needn't mess with xalloc_msg_memory_exhausted.
80155
80156         * lib/sha1.h: Renamed from sha.h.
80157         (SHA1_H): Renamed from _SHA_H.
80158         (sha1_ctx): Renamed from sha_ctx.
80159         (sha1_init_ctx): Renamed from sha_init_ctx.
80160         (sha1_process_block): Renamed from sha_process_block.
80161         (sha1_process_bytes): Renamed from sha_process_bytes.
80162         (sha1_finish_ctx): Renamed from sha_finish_ctx.
80163         (sha1_read_ctx): Renamed from sha_read_ctx.
80164         (sha1_stream): Renamed from sha_stream.
80165         (sha1_buffer): Renamed from sha_buffer.
80166         * lib/sha1.c: Likewise; renamed from sha.c.
80167         Do not include <sys/types.h>.
80168         Include <stddef.h> rather than <stdlib.h>.
80169
80170 2004-08-08  Bruno Haible  <bruno@clisp.org>
80171
80172         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
80173         FILESYSTEM_PREFIX_LEN.
80174         * lib/progreloc.c: Likewise.
80175         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
80176
80177 2004-08-06  Simon Josefsson  <jas@extundo.com>
80178
80179         * modules/progname (Depends-on): Don't depend on stdbool.
80180
80181 2004-08-06  Simon Josefsson  <jas@extundo.com>
80182
80183         * modules/getsubopt: New file.
80184         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80185         getsubopt.
80186
80187 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80188
80189         More merge from coreutils.
80190
80191         * m4/utimens.m4, m4/utimecmp.m4: New files.
80192         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
80193         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
80194         prereq.m4, sha.m4: Import changes from coreutils.
80195
80196 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80197
80198         More merge from coreutils.
80199         * modules/raise, modules/readtokens0, modules/utimens:
80200         * modules/utimecmp, module/xnanosleep: New files.
80201         * modules/strftime: Add lib/strftime.h.
80202         Change include from <time.h> to "strftime.h".
80203         * modules/yesno: Add lib/yesno.h.
80204         * modules/backupfile: Remove lib/addext.c.
80205         * modules/euidaccess: Add stat-macros.h.
80206         * modules/canonicalize, modules/euidaccess,
80207         modules/filemode, modules/lchown, modules/makepath,
80208         modules/rmdir, modules/stat: Likewise.
80209
80210 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80211
80212         Merge from tar.
80213         * lib/argp-help.c (make_hol, hol_append): Don't assume that
80214         SIZE_MAX is a valid preprocessor constant.
80215         (__argp_basename): Change from "#ifndef _LIBC"
80216         to "#ifndef __argp_short_program_name", so that
80217         we don't compile these functions for tar.
80218
80219         More merges from coreutils.
80220         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
80221         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
80222         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
80223         * lib/addext.c: Remove; no longer needed.
80224         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
80225         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
80226         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
80227         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
80228         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
80229         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
80230         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
80231         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
80232         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
80233         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
80234         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
80235         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
80236         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
80237         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
80238         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
80239         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
80240         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
80241         Import changes from coreutils.
80242
80243 2004-08-05  Simon Josefsson  <jas@extundo.com>
80244
80245         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
80246
80247 2004-08-05  Simon Josefsson  <jas@extundo.com>
80248
80249         * m4/getsubopt.m4: New file.
80250
80251 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80252
80253         Merge from coreutils.
80254
80255         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
80256         * m4/getcwd-path-max.m4: New files.
80257
80258         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
80259         FILESYSTEM_PREFIX_LEN ->
80260         FILE_SYSTEM_PREFIX_LEN.
80261         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
80262         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
80263         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
80264         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
80265
80266         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
80267         prerequisite modules now handle the DOS stuff.
80268         Don't check for unistd.h.
80269
80270 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80271
80272         Merge from coreutils.
80273
80274         * lib/.gdb-history: Remove; this doesn't belong here.
80275
80276         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
80277         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
80278         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
80279         * lib/getcwd.c: New files.
80280
80281         * lib/dirname.h: Include <stdbool.h>.
80282         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
80283         for consistency with POSIX terminology.  All uses changed.
80284         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
80285         (strip_trailing_slashes): Use bool for booleans.
80286         * lib/stripslash.c (strip_trailing_slashes): Likewise.
80287
80288         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
80289         sometimes returns a positive errno value even when it succeeds.
80290         (print_errno_message) [!LIBC]: Fall back on strerror if
80291         __strerror_r fails.
80292
80293         * lib/path-concat.c (mempcpy): Don't define if a system header defines
80294         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
80295         (longest_relative_suffix): New function.
80296         (path_concat): Use it.  Assume first argument is not NULL.
80297         Port to DOS.  Omit redundant separators.
80298         Report an error instead of returning NULL.
80299         Use mempcpy instead of memcpy.
80300         (xpath_concat): Remove: not declared or used.
80301
80302         * lib/same.h: Include <stdbool.h>
80303         (same_name): Return bool, not int.
80304         * lib/same.c (same_name): Likewise.
80305         (errno): Don't declare; we assume C89 or better now.
80306
80307         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
80308         if not already defined.
80309
80310         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
80311         * lib/dup-safer.c (errno): Likewise.
80312
80313 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80314
80315         Merge from coreutils.
80316         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
80317         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
80318         * modules/path-concat: Don't depend on strdup.
80319
80320 2004-08-03  Simon Josefsson  <jas@extundo.com>
80321
80322         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
80323         * lib/progname.h: Don't include stdbool.h.
80324
80325 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80326
80327         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
80328         * MODULES.html.sh (func_all_modules): Remove fatal.
80329
80330 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80331
80332         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
80333
80334 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80335
80336         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
80337         working.
80338
80339 2004-08-02  Simon Josefsson  <jas@extundo.com>
80340
80341         * lib/getsubopt.h: New file, with comments from Bruno Haible.
80342         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
80343         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
80344
80345 2004-08-01  Simon Josefsson  <jas@extundo.com>
80346
80347         * lib/xgetdomainname.c: Include stdlib.h, for free().
80348
80349 2004-07-19  Bruno Haible  <bruno@clisp.org>
80350
80351         * MODULES.html.sh (func_all_modules): Add dummy.
80352
80353 2004-07-16  Simon Josefsson  <jas@extundo.com>
80354
80355         * modules/dummy: New file.
80356
80357 2004-07-16  Simon Josefsson  <jas@extundo.com>
80358
80359         * lib/dummy.c: New file.
80360
80361 2004-07-16  Bruno Haible  <bruno@clisp.org>
80362
80363         * lib/backupfile.h: Add extern "C" for C++.
80364         * lib/closeout.h: Likewise.
80365         * lib/copy-file.h: Likewise.
80366         * lib/findprog.h: Likewise.
80367         * lib/full-write.h: Likewise.
80368         * lib/pathname.h: Likewise.
80369         * lib/progname.h: Likewise.
80370         * lib/stpcpy.h: Likewise.
80371         * lib/stpncpy.h: Likewise.
80372         * lib/strcase.h: Likewise.
80373         * lib/strstr.h: Likewise.
80374         * lib/xalloc.h: Likewise.
80375
80376         * lib/mbswidth.h: Add extern "C" for C++.
80377         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
80378
80379 2004-07-13  Robert Millan  <robertmh@gnu.org>
80380
80381         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
80382
80383 2004-07-09  Simon Josefsson  <jas@extundo.com>
80384
80385         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
80386         failed without this.)
80387
80388 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80389
80390         * modules/chown (Files): Add lib/fchown-stub.c, since
80391         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
80392
80393 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80394
80395         * lib/fchown-stub.c: New file.
80396
80397 2004-06-24  Jim Meyering  <jim@meyering.net>
80398
80399         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
80400
80401 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80402
80403         * modules/argz: Omit "#include".
80404
80405         * MODULES.html.sh (func_all_modules): Add calloc, to match
80406         2004-06-01 addition of calloc module.
80407
80408 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80409
80410         * m4/argz.m4: New file, which is autoupdated from libtool.
80411
80412 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80413
80414         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
80415         libtool.
80416
80417 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80418
80419         * config/srclist-update: Don't insist on "USA." before the
80420         close-comment, as libtool omits the period and puts the */ on a
80421         separate line.
80422         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
80423         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
80424
80425 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
80426
80427         * modules/argz: New file.
80428         * MODULES.html.sh (func_all_modules): Add argz.
80429
80430 2004-06-12  Jim Meyering  <jim@meyering.net>
80431         and  Paul Eggert  <eggert@cs.ucla.edu>
80432
80433         * modules/hash (Files): Add lib/xalloc.h.
80434         * modules/pipe (Depends-on): Add wait-process.
80435         * modules/stat (Depends-on): Add xalloc.
80436         * modules/userspec (Files): Add lib/userspec.h.
80437         * modules/xstrto
80438
80439         Upgrade from gettext-0.13.
80440         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
80441         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
80442         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
80443
80444 2004-06-10  Jim Meyering  <jim@meyering.net>
80445
80446         * lib/calloc.c: New file.
80447
80448 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
80449
80450         * lib/getdate.y (yylex): Allow space between sign and number.
80451         Problem reported by Dan Jacobson.
80452
80453 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80454
80455         Merge from coreutils CVS.
80456
80457         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
80458         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
80459         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
80460         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
80461         xstrtol.m4: Fix copyright date and/or serial number.
80462
80463         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
80464         See if we need an fchown replacement.
80465         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
80466         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
80467         and use the replacement function if we detect either defect.
80468
80469         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
80470         gl_UTIMECMP.
80471
80472 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80473         and  Jim Meyering  <jim@meyering.net>
80474
80475         Merge from coreutils CVS.
80476
80477         * lib/stat-macros.h: New file, with contents from file-type.h
80478         and coreutils' system.h.
80479         * lib/file-type.c: Include "stat-macros.h".
80480         * lib/file-type.h (file_type): Move all macro definitions to new file,
80481         stat-macros.h.
80482
80483         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
80484         Wrap old code with this conditional.
80485         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
80486         function that does not dereference symlinks.
80487         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
80488
80489         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
80490         dependency problems.
80491         (xreadlink): Accept new arg SIZE, for efficiency.
80492         All decls and uses changed.
80493         * lib/xreadlink.h: Include <stddef.h>, for size_t.
80494
80495         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
80496         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
80497
80498         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
80499         sysexits.h.
80500
80501 2004-06-01  Jim Meyering  <jim@meyering.net>
80502
80503         * m4/calloc.m4: New file.
80504
80505 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
80506
80507         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
80508         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
80509         Also, fix a typo in a diagnostic.
80510
80511 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80512
80513         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
80514         or AC_FUNC_REALLOC.
80515
80516 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80517
80518         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
80519         macros to be defined.
80520         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
80521         the allocator returns NULL because the requested size is zero.
80522
80523 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
80524
80525         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
80526         var.  Add comment explaining why libc still defines it.  This
80527         merges the following patch from glibc:
80528         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
80529
80530 2004-05-20  Andreas Schwab  <schwab@suse.de>
80531
80532         * m4/free.m4: Replace free if it not known to work, not the other
80533         way round.
80534
80535 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80536
80537         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
80538         present in glibc since revision 1.1 of this file.
80539         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
80540         obstack_alignment_mask, obstack_alloc, obstack_base,
80541         obstack_blank, obstack_blank_fast, obstack_chunk_size,
80542         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
80543         obstack_grow0, obstack_init, obstack_int_grow,
80544         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
80545         obstack_next_free, obstack_object_size, obstack_ptr_grow,
80546         obstack_ptr_grow_fast, obstack_room): Remove declarations of
80547         nonexistent functions.
80548
80549 2004-05-18  Karl Berry  <karl@gnu.org>
80550
80551         * config/srclist.txt: break link for vasnprintf.c.
80552
80553 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80554
80555         Port obstack to the AS/400, where pointers are 16 bytes wide and
80556         you cannot cast an integer to a valid pointer.  This patch is
80557         currently waiting to be integrated into glibc; see
80558         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
80559
80560         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
80561         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
80562         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
80563         (struct obstack): temp member is now a union of a pointer and
80564         an integer, instead of an integer.  All integer uses changed.
80565         This does not affect the physical layout of struct obstack,
80566         except on hosts (like the AS/400) where the size or alignment of
80567         void * is greater than that of ptrdiff_t.
80568         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
80569         __STDC__)]: Store temporary in pointer member of union, not
80570         integer member.
80571         * lib/obstack.c: Include <stddef.h>, for offsetof.
80572         (struct fooalign): Remove; it doesn't need a name.
80573         (union fooround): Change double to long double, and add void *.
80574         (DEFAULT_ALIGNMENT): Use offsetof to compute.
80575         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
80576         not a macro.  Hence the values are always int; so remove all
80577         casts-to-int in uses.
80578
80579 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80580
80581         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
80582         we can get this patch merged into glibc.
80583
80584 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80585             Paul Eggert  <eggert@cs.ucla.edu>
80586
80587         * m4/argp: Depend on alloca.
80588
80589 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80590             Paul Eggert  <eggert@cs.ucla.edu>
80591
80592         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
80593         freecoding.
80594
80595 2004-05-17  Bruno Haible  <bruno@clisp.org>
80596
80597         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
80598         precision that consists of a '.' followed by an empty digit string.
80599         Patch by Tor Lillqvist <tml@iki.fi>.
80600
80601 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80602
80603         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
80604         for backward compatibility with older code.  We need our own
80605         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
80606         it under some other name, and our alloca.h will define it.
80607
80608 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80609             Derek Price  <derek@ximbiot.com>
80610
80611         * lib/alloca.c: Include <alloca.h>, to get our interface.
80612         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
80613         include <alloca.h> first.  Use C89 prototype for alloca; this
80614         requires including <stddef.h> for size_t.  Use extern "C" if C++.
80615         Use #elif for simplicity, since we can assume C89 now.
80616         Don't try to source the system alloca.h since it will not be found
80617         and to prevent recursively including its replacement.
80618         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
80619         * lib/regex.c: Likewise.
80620
80621 2004-05-16  Derek Price  <derek@ximbiot.com>
80622             Paul Eggert  <eggert@cs.ucla.edu>
80623
80624         getline cleanup.  This changes the getndelim2 API: both order of
80625         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
80626         no delimiter).
80627
80628         * lib/getline.c: Don't include stddef.h or stdio.h, since our
80629         interface does that.
80630         (getline): Always use getdelim, so that we don't have two
80631         copies of this code.
80632         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
80633         if available.
80634         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
80635         (GETNDELIM2_MAXIMUM): New macro.
80636         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
80637         instead of the old practice of delim2==0.  All callers changed.
80638         Return -1 on overflow, instead of returning junk.
80639         Do not set *linesize unless allocation succeeds.
80640         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
80641         that we include sys/types.h.
80642         * lib/getnline.h: Likewise.
80643         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
80644         (getndelim2): Reorder arguments.
80645         * lib/getnline.c (getnline, getndelim):
80646         Don't discard the NMAX argument.
80647         (getnline): Invoke getndelim, to avoid code duplication.
80648         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
80649         of (size_t) -1 by callers of the getnline family.
80650
80651 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80652
80653         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
80654         Check for gettimeofday.
80655         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
80656         Check for settimeofday, stime.
80657
80658 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80659
80660         * lib/nanosleep.c (suspended): Change its type from int to
80661         sig_atomic_t volatile.
80662         (first_call): Make it private to rpl_nanosleep, and have it
80663         be zero initially as that's a bit faster.
80664         (my_usleep): Round up fractional times instead of truncating them,
80665         as this is the usual meaning for 'sleep'.
80666
80667         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
80668         doesn't work.
80669         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
80670         (ENOSYS): Define if not defined.
80671         (settime): Fall back on stime if it exists and settimeofday fails.
80672         But don't bother with fallbacks if a method fails with errno == EPERM.
80673
80674 2004-05-11  Jim Meyering  <jim@meyering.net>
80675
80676         Prior to this change, the save_cwd caller required read access to the
80677         current directory on most systems (ones with the fchdir function).
80678
80679         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
80680         fails, try write-only, and finally, resort to using xgetcwd.
80681
80682 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
80683
80684         * lib/obstack.c, obstack.h: Import changes from libc.
80685
80686 2004-04-28  Bruno Haible  <bruno@clisp.org>
80687
80688         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
80689         also implicitly appends .exe to executables.
80690         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
80691         accepts Windows pathnames.
80692         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80693         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80694         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80695         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80696         Reported by Derek Robert Price <derek@ximbiot.com>.
80697
80698 2004-04-21  Karl Berry  <karl@gnu.org>
80699
80700         * config/srclist.txt (localcharset.c): break sync.
80701
80702 2004-04-20  Paul Eggert  <eggert@twinsun.com>
80703
80704         * m4/host-os.m4: Add a copyright notice.
80705
80706 2004-04-20  Jim Meyering  <jim@meyering.net>
80707
80708         Change UTILS_ to gl_ in AC_DEFINE'd names.
80709         Change utils_- and jm_-prefixed variables, too.
80710         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
80711         UTILS_FUNC_MKDIR_TRAILING_SLASH.
80712         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
80713
80714         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
80715         Don't emit trailing blanks.
80716         Also rename jm_-prefixed variables to have gl_ prefix.
80717
80718         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
80719         Also rename jm_-prefixed variables to have gl_ prefix.
80720
80721         * m4/jm-macros.m4: Reflect the renamings.
80722         * m4/prereq.m4: Likewise.
80723
80724 2004-04-20  Jim Meyering  <jim@meyering.net>
80725
80726         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
80727         memory.
80728
80729 2004-04-20  Jim Meyering  <jim@meyering.net>
80730             Bruno Haible  <bruno@clisp.org>
80731
80732         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
80733         memory when realloc fails.
80734
80735 2004-04-19  Jim Meyering  <jim@meyering.net>
80736
80737         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
80738         now that readutmp.c may call `free (0)'.
80739
80740 2004-04-19  Bruno Haible  <bruno@clisp.org>
80741
80742         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
80743         * m4/inttypes_h.m4: Likewise.
80744         * m4/stdint_h.m4: Likewise.
80745         * m4/intmax_t.m4: Likewise.
80746         * m4/uintmax_t.m4: Likewise.
80747
80748 2004-04-18  Jim Meyering  <jim@meyering.net>
80749
80750         * m4/prereq.m4: Don't forbid jm_ prefix.
80751
80752         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
80753         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
80754         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
80755         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
80756         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
80757         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
80758         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
80759         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
80760         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
80761         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
80762         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
80763         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
80764         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
80765         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
80766         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
80767         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
80768         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
80769         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
80770         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
80771
80772 2004-04-18  Jim Meyering  <jim@meyering.net>
80773
80774         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
80775         failure, don't leak memory and do call END_UTMP_ENT.
80776
80777 2004-04-16  Jim Meyering  <jim@meyering.net>
80778
80779         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
80780         coreutils' stat program.
80781         (gl_PREREQ): Don't require jm_PREREQ_STAT.
80782
80783 2004-04-11  Paul Eggert  <eggert@twinsun.com>
80784
80785         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
80786         C89.
80787         (CHAR_BIT): Remove, since we assume C89.
80788         Include <stdint.h> if available, as per current Autoconf CVS advice.
80789
80790 2004-03-31  Jim Meyering  <jim@meyering.net>
80791
80792         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
80793         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
80794         * m4/xalloc.m4: Likewise.
80795
80796 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80797
80798         Merge from coreutils.
80799
80800         * m4/inttostr.m4: New file.
80801         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
80802         Require AM_STDBOOL_H and gl_TIMESPEC instead.
80803         Require gl_CLOCK_TIME.
80804         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
80805
80806 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80807
80808         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
80809         not bool, to be more consistent with Unix conventions.
80810         Suggested by Bruno Haible.
80811
80812         Merge from coreutils.
80813
80814         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
80815         * lib/umaxtostr.c: New files.
80816
80817         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
80818         the usual <time.h> dance.
80819         (get_date): Change signature to support fractional time stamps.
80820         All callers changed.
80821         * lib/getdate.y: Include "getdate.h" first, as we can now
80822         assume C89 and don't need to worry about 'const'.
80823         Similarly, include "unlocked-io.h" near start, not in middle.
80824         Include <limits.h>.
80825         (textint.value): Use long int rather than int.
80826         (textint.digits): Use size_t rather than int.
80827         (BILLION, LOG10_BILLION): New constants.
80828         (parser_control): New member rel_ns.  Members day_ordinal,
80829         time_zone, month, day, hour, minutes, rel_year, rel_month,
80830         rel_day, rel_hour, rel_minutes, rel_seconds
80831         are now long int, not int.  Member seconds is now struct timespec,
80832         not int.  New member timespec_seen.  Members dates_seen, days_seen,
80833         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
80834         not int.
80835         (%union.intval): Now long int, not int.
80836         New member timespec.
80837         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
80838         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
80839         (spec): Now is a timespec or an item list.
80840         (timespec, items): New nonterminals.
80841         (time, rel, relunit, number, get_date):
80842         Add support for fractional seconds.
80843         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
80844         (gmtime, localtime, mktime): Remove decls; not needed with C89.
80845         (to_hour): First arg is now long int, not int.
80846         (to_year): Returns long int, not int.
80847         Don't treat year -70 like 70.
80848         (tm_diff): Returns long int, not int.
80849         (lookup_word): Use bool instead of int when appropriate.
80850         (yylex): Use size_t for count, not int.
80851         Detect overflow when parsing large integer constants.
80852         Add support for fractions.
80853         (get_date): Make pointers 'const' if possible.
80854         Use more-portable code to detect integer overflow.
80855         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
80856         Don't use ctime; it's not reliable if the year has >4 digits.
80857
80858         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
80859         This is for compatibility with BSD.
80860
80861         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
80862         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
80863         From coreutils' system.h.
80864
80865         * lib/userspec.c: Don't include "posixver.h".
80866         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
80867         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
80868         compatible extension.  Simplify code by removing a boolean int
80869         that was always nonzero if a string was nonnull.
80870
80871 2004-03-30  Jim Meyering  <jim@meyering.net>
80872
80873         Merge from coreutils.
80874
80875         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
80876         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
80877         on some systems one must include <grp.h> before it.
80878         Reported by Christian Krackowizer.
80879
80880 2004-03-30  Jim Meyering  <jim@meyering.net>
80881
80882         Merge from coreutils.
80883
80884         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
80885
80886         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
80887         an empty input stream.
80888
80889         * lib/readtokens.c: Include <stdbool.h>.
80890         (readtoken): Use `size_t' rather than int/long.
80891         All callers adjusted.
80892         Use `bool' rather than `int' where appropriate.
80893         Use memset rather than an explicit loop.
80894         Use x2nrealloc rather than xrealloc.
80895         Allow the use of `\0' as a delimiter.
80896         (readtokens): Likewise.
80897         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
80898
80899 2004-03-30  Jim Meyering  <jim@meyering.net>
80900
80901         * m4/realloc.m4: Remove file, since now it does no more than
80902         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
80903         the `configure.ac' section of module/realloc.
80904         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
80905
80906 2004-03-30  Bruno Haible  <bruno@clisp.org>
80907
80908         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
80909         nonnull.
80910
80911 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80912
80913         Merge changes to getloadavg.c from coreutils and Emacs.
80914
80915         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
80916         Define to an expression, not to the empty string.
80917         Include cloexec.h and xalloc.h.
80918         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
80919         Use set_cloexec_flag rather than rolling our own.
80920         * lib/cloexec.c, lib/cloexec.h: New files.
80921
80922 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80923
80924         * m4/cloexec.m4: New file.
80925
80926 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80927
80928         * lib/getopt.h: Sync with libc CVS.
80929
80930 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80931             Bruno Haible  <bruno@clisp.org>
80932
80933         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
80934         mbswidth.
80935
80936 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80937             Bruno Haible  <bruno@clisp.org>
80938
80939         * lib/mbswidth.h: Include <wchar.h> only if
80940         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
80941         <wchar.h>.
80942         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
80943
80944 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80945
80946         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
80947         Sync with libc CVS.
80948         * lib/getopt_int.h: New file, also synced from libc.
80949
80950 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80951
80952         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
80953         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
80954         Bring back getopt.c, getopt.h, getopt1.c.
80955
80956 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80957
80958         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
80959         All uses changed.  Check for sa_sigaction member; this fixes
80960         a bug first reported by Jason Andrade in
80961         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80962
80963 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80964
80965         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
80966         '#if' expressions.  Unlike the code it replaces, it does not
80967         depend on (defined _SC_PAGESIZE).  However, it does depend on
80968         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
80969         first reported by Jason Andrade in
80970         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80971
80972 2004-02-25  Simon Josefsson  <jas@extundo.com>
80973
80974         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
80975
80976 2004-02-25  Simon Josefsson  <jas@extundo.com>
80977
80978         * lib/strdup.h: New file.
80979         * lib/strdup.c: Include it.
80980         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
80981         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
80982
80983 2004-02-23  Karl Berry  <karl@gnu.org>
80984
80985         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
80986         (from fencepost.gnu.org:/gd/gnuorg).
80987
80988 2004-02-23  Karl Berry  <karl@gnu.org>
80989
80990         * config/srclistvars.sh (GNUORG) [karl]: redefine.
80991         * config/srclist.txt: add maintain/standards documents.
80992
80993 2004-02-18  Bruno Haible  <bruno@clisp.org>
80994
80995         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
80996         Reported by Derek Robert Price <derek@ximbiot.com>.
80997
80998 2004-02-16  Karl Berry  <karl@gnu.org>
80999
81000         * config/mkinstalldirs, install-sh: update from automake.
81001
81002 2004-02-06  Karl Berry  <karl@gnu.org>
81003
81004         * m4/po.m4: update from gettext 0.14.1.
81005
81006 2004-02-06  Karl Berry  <karl@gnu.org>
81007
81008         * lib/config.charset: update from gettext 0.14.1.
81009
81010 2004-02-05  Paul Eggert  <eggert@twinsun.com>
81011
81012         Add comments and code, prompted by suggestions from Bruno Haible
81013         for sh-quote.
81014         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
81015         describing the enum quoting_style values.
81016         * lib/quotearg.c (quotearg_alloc): New function.
81017         (quotearg_buffer_restyled): Treat lone { and } as special.
81018         Treat = as special.  Work around bug with older shells
81019         that "see" a '\' that is really the 2nd byte of a multibyte char.
81020         Quote empty string with shell_quoting_style.
81021
81022 2004-02-03  Bruno Haible  <bruno@clisp.org>
81023
81024         * m4/pipe.m4: New file, from GNU gettext.
81025
81026 2004-02-03  Bruno Haible  <bruno@clisp.org>
81027
81028         * lib/pipe.h: New file, from GNU gettext.
81029         * lib/pipe.c: New file, from GNU gettext.
81030
81031 2004-01-27  Bruno Haible  <bruno@clisp.org>
81032
81033         * m4/execute.m4: New file, from GNU gettext.
81034
81035 2004-01-27  Bruno Haible  <bruno@clisp.org>
81036
81037         * lib/execute.h: New file, from GNU gettext.
81038         * lib/execute.c: New file, from GNU gettext.
81039         * lib/w32spawn.h: New file, from GNU gettext.
81040
81041 2004-01-24  Paul Eggert  <eggert@twinsun.com>
81042
81043         Merge from diffutils.
81044
81045         * lib/file-type.c (file_type): Add typed memory objects.
81046         * lib/file-type.h (S_TYPEISTMO): New macro.
81047
81048         * lib/c-stack.h (c_stack_action): Remove argv argument.
81049         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
81050         (die): Don't calculate message unless segv_action returns.
81051         (get_stack_location, min_address_from_argv, max_address_from_argv,
81052         volatile stack_base, volatile_stack_size): Remove.
81053         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
81054         that every segmentation violation is a stack overflow.  (Ouch!)
81055         See Debian bug 136249 (still outstanding) for more info about why
81056         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
81057
81058 2004-01-24  Paul Eggert  <eggert@twinsun.com>
81059
81060         Exit-status fix from coreutils.
81061
81062         Use exit_failure consistently in place of EXIT_FAILURE,
81063         so that program exit statuses are consistent on failure.
81064
81065         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
81066         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
81067         * lib/argmatch.h: Comment fix to match the above.
81068         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
81069         Now a macro referring to exit_failure, instead of a separate
81070         variable.  Include "exitfail.h" to get it.
81071         * lib/xstrtol.h: Include "exitfail.h".
81072         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
81073
81074         * lib/long-options.c (parse_long_options): Use prototype
81075         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
81076         for clarity.
81077
81078 2004-01-21  Jim Meyering  <jim@meyering.net>
81079
81080         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
81081         so as not to conflict with a different-sized __mktime_internal
81082         function in GNU libc.
81083         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
81084         Problem building statically-linked `ls' reported by Michael Brunnbauer.
81085
81086 2004-01-20  Karl Berry  <karl@gnu.org>
81087
81088         * config/config.guess: update from config.
81089
81090         * config/srclistvars.sh: GNUWWWLICENSES for karl.
81091
81092 2004-01-20  Bruno Haible  <bruno@clisp.org>
81093
81094         Safer stack allocation.
81095         * lib/setenv.c: Include allocsa.h.
81096         (alloca): Remove fallback definition.
81097         (freea): Remove macro.
81098         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
81099         instead of freea.
81100
81101 2004-01-20  Bruno Haible  <bruno@clisp.org>
81102
81103         * m4/eealloc.m4: New file, from GNU gettext.
81104
81105 2004-01-20  Bruno Haible  <bruno@clisp.org>
81106
81107         * m4/allocsa.m4: New file, from GNU gettext.
81108
81109 2004-01-20  Bruno Haible  <bruno@clisp.org>
81110
81111         * lib/xallocsa.h: New file, from GNU gettext.
81112         * lib/xallocsa.c: New file, from GNU gettext.
81113
81114 2004-01-20  Bruno Haible  <bruno@clisp.org>
81115
81116         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
81117
81118 2004-01-20  Bruno Haible  <bruno@clisp.org>
81119
81120         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
81121         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
81122         specially.
81123
81124 2004-01-20  Bruno Haible  <bruno@clisp.org>
81125
81126         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
81127         patch.
81128
81129 2004-01-20  Bruno Haible  <bruno@clisp.org>
81130
81131         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
81132
81133 2004-01-20  Bruno Haible  <bruno@clisp.org>
81134
81135         * lib/eealloc.h: New file.
81136
81137 2004-01-20  Bruno Haible  <bruno@clisp.org>
81138
81139         * lib/binary-io.h: Avoid warnings on Cygwin.
81140
81141 2004-01-20  Bruno Haible  <bruno@clisp.org>
81142
81143         * lib/allocsa.h: New file, from GNU gettext.
81144         * lib/allocsa.c: New file, from GNU gettext.
81145
81146 2004-01-18  Karl Berry  <karl@gnu.org>
81147
81148         * doc/gpl.texi, doc/lgpl.texi: new files.
81149
81150 2004-01-18  Karl Berry  <karl@gnu.org>
81151
81152         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
81153         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
81154
81155 2004-01-15  Paul Eggert  <eggert@twinsun.com>
81156
81157         Merge from coreutils.
81158
81159         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
81160         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
81161         (gl_DEFAULT_POSIX2_VERSION): Move
81162         the documentation from 'configure' into 'config.hin',
81163         so that 'configure --help' isn't burdened by it and
81164         we don't have to worry about its formatting there.
81165         Reword the documentation so that it's more succinct
81166         and can be run together into a single paragraph.
81167         * m4/same.m4 (gl_SAME): Check for pathconf.
81168
81169 2004-01-15  Paul Eggert  <eggert@twinsun.com>
81170
81171         Merge from coreutils.
81172
81173         * lib/posixver.c: Include posixver.h.
81174
81175         * lib/same.c: Include <stdbool.h>, <limits.h>.
81176         (_POSIX_NAME_MAX): Define if not defined.
81177         (MIN): New macro.
81178         (same_name): If file names are silently truncated, report
81179         that the file names are the same if they are the same after
81180         the silent truncation.
81181
81182         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
81183         conversion function.
81184         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
81185         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
81186         longer needed.
81187
81188 2004-01-15  Jim Meyering  <jim@meyering.net>
81189
81190         Merge from coreutils.
81191
81192         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
81193         if no library is required.
81194         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
81195         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
81196         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
81197         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
81198         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
81199         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
81200         value, $ac_cv_search_crypt, if it's "none required".
81201         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
81202         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
81203         not gl_FUNC_GETLOADAVG.
81204         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
81205         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
81206
81207 2004-01-15  Jim Meyering  <jim@meyering.net>
81208
81209         Merge from coreutils.
81210
81211         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
81212         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
81213         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
81214
81215         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
81216         optional configure-time default.
81217
81218         * lib/version-etc.c (version_etc_copyright): Update copyright date.
81219
81220         * lib/xreadlink.c (xreadlink): Correct outdated comment.
81221
81222 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
81223
81224         Merge from coreutils.
81225
81226         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
81227         value, $ac_cv_search_nanosleep, if it's "none required".
81228
81229 2004-01-14  Paul Eggert  <eggert@twinsun.com>
81230
81231         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
81232         with like-named macro in fnmatch.c.
81233         (EXT): Use an internal constant instead.
81234
81235         Merge fnmatch patches from glibc.
81236         * lib/fnmatch.c (mbsinit): Remove define.
81237         Add libc_hidden_ver (__fnmatch, fnmatch).
81238         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
81239         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
81240
81241 2004-01-14  Karl Berry  <karl@gnu.org>
81242
81243         * config/install-sh: update from automake.
81244
81245 2004-01-13  Karl Berry  <karl@gnu.org>
81246
81247         * config/install-sh: update from automake.
81248
81249 2004-01-09  Karl Berry  <karl@gnu.org>
81250
81251         * config/install-sh: update from automake.
81252
81253 2004-01-05  Karl Berry  <karl@gnu.org>
81254
81255         * config/config.{sub,guess}: update from config.
81256
81257 2003-12-31  Karl Berry  <karl@gnu.org>
81258
81259         * config/depcomp: update from automake.
81260
81261 2003-12-14  Karl Berry  <karl@gnu.org>
81262
81263         * lib/config.charset: update from gettext-runtime.
81264
81265 2003-12-03  Paul Eggert  <eggert@twinsun.com>
81266
81267         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
81268         Bug reported by Alfred M. Szmidt.
81269
81270 2003-12-03  Bruno Haible  <bruno@clisp.org>
81271
81272         * m4/gettext.m4: Upgrade from gettext-0.13.
81273         * m4/po.m4: Upgrade from gettext-0.13.
81274         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
81275         * m4/intmax.m4: New file, from gettext-0.13.
81276         * m4/printf-posix.m4: New file, from gettext-0.13.
81277
81278 2003-11-29  Karl Berry  <karl@gnu.org>
81279
81280         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
81281
81282 2003-11-25  Paul Eggert  <eggert@twinsun.com>
81283             Bruno Haible  <bruno@clisp.org>
81284
81285         * lib/printf-parse.h: Don't include sys/types.h.
81286         (ARG_NONE): New macro.
81287         (char_directive): Change type of *arg_index fields to size_t.
81288         * lib/printf-parse.c: Don't include sys/types.h.
81289         (SSIZE_MAX): Remove macro.
81290         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
81291         Remove unnecessary overflow check.
81292         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
81293         fields.
81294
81295 2003-11-25  Bruno Haible  <bruno@clisp.org>
81296
81297         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
81298
81299 2003-11-25  Bruno Haible  <bruno@clisp.org>
81300
81301         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
81302         gt_TYPE_SSIZE_T.
81303
81304 2003-11-24  Paul Eggert  <eggert@twinsun.com>
81305
81306         * modules/alloca: Remove dependency on xalloc.
81307
81308 2003-11-24  Paul Eggert  <eggert@twinsun.com>
81309
81310         * lib/alloca.c: Remove dependency on xalloc module.
81311         (xalloc_die): Remove.
81312         (memory_full) [!defined emacs]: New macro.
81313         [!defined emacs]: Don't include xalloc.h.
81314         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
81315         address arithmetic overflows.  Change datatypes a bit to avoid
81316         unnecessary casts.
81317
81318 2003-11-22  Jim Meyering  <jim@meyering.net>
81319
81320         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
81321         s/size/size_t/.
81322
81323 2003-11-21  Karl Berry  <karl@gnu.org>
81324
81325         * config/config.{sub,guess}: update from config.
81326
81327 2003-11-18  Karl Berry  <karl@gnu.org>
81328
81329         * config/config.{sub,guess}: update from config.
81330
81331         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
81332
81333 2003-11-17  Paul Eggert  <eggert@twinsun.com>
81334
81335         * README: Mention that S+T cannot overflow if S is the size of
81336         an existing object and T is sufficiently small.
81337
81338 2003-11-17  Jim Meyering  <jim@meyering.net>
81339
81340         On systems without utime and without a utimes function capable of
81341         dealing with a NULL struct utimbuf* argument, this utime replacement
81342         could -- in unusual circumstances -- leak a file descriptor.
81343         * lib/utime.c: Include <unistd.h> and <errno.h>.
81344         (utime_null): Be sure to close `fd' and to preserve errno.
81345         Reported by Geoff Collyer via Arnold Robbins.
81346
81347 2003-11-17  Bruno Haible  <bruno@clisp.org>
81348
81349         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
81350         (Depends-on): Add xsize.
81351
81352 2003-11-17  Bruno Haible  <bruno@clisp.org>
81353
81354         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
81355
81356 2003-11-17  Bruno Haible  <bruno@clisp.org>
81357
81358         * lib/vasnprintf.c (alloca): Remove fallback definition.
81359         (freea): Remove definition.
81360         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
81361         Reported by Paul Eggert.
81362
81363 2003-11-16  Paul Eggert  <eggert@twinsun.com>
81364             Bruno Haible  <bruno@clisp.org>
81365
81366         Protect against address arithmetic overflow.
81367         * lib/printf-args.h: Include stddef.h.
81368         (arguments): Change type of field 'count' to size_t.
81369         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
81370         'unsigned int' where appropriate.
81371         * lib/printf-parse.h: Include sys/types.h.
81372         (char_directive): Change type of *arg_index fields to ssize_t.
81373         (char_directives): Change type of fields 'count', max_*_length to
81374         size_t.
81375         * lib/printf-parse.c: Include sys/types.h and xsize.h.
81376         (SSIZE_MAX): Define fallback value.
81377         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
81378         instead of 'int' where appropriate. Check a_allocated, d_allocated
81379         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
81380         * lib/vasnprintf.c: Include xsize.h.
81381         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
81382         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
81383         overflow. Avoid wraparound when converting a width or precision from
81384         decimal to binary.
81385
81386 2003-11-16  Bruno Haible  <bruno@clisp.org>
81387
81388         Update from GNU gettext.
81389         * lib/printf-parse.c: Generalize to it can be compiled for wide
81390         strings.
81391         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
81392         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
81393         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
81394         SNPRINTF): New macros.
81395         Don't include <alloca.h> if the file is used inside libintl.
81396         (local_wcslen): New function, for Solaris 2.5.1.
81397         (VASNPRINTF): Use it instead of wcslen.
81398
81399 2003-11-16  Bruno Haible  <bruno@clisp.org>
81400
81401         * lib/xsize.h (xmax): New function.
81402         (xsum, xsum3, xsum4): Declare as "pure" functions.
81403
81404 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81405
81406         * modules/xalloc (Files): Undo latest change, since xalloc.h
81407         no longer needs SIZE_MAX or PTRDIFF_MAX.
81408
81409 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81410
81411         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
81412         gl_PTRDIFF_MAX.
81413
81414 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81415
81416         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
81417         "return", to pacify some unknown compiler.  Problem reported
81418         by Joerg Schilling.
81419
81420 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81421
81422         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
81423         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
81424         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
81425         heuristic is just as accurate as far as we know, and it removes a
81426         dependency on size_max.m4 and ptrdiff_max.m4.
81427
81428 2003-11-11  Bruno Haible  <bruno@clisp.org>
81429
81430         * modules/xsize (Files): Add m4/size_max.m4.
81431         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
81432
81433 2003-11-11  Bruno Haible  <bruno@clisp.org>
81434
81435         * m4/size_max.m4: New file.
81436         * m4/ptrdiff_max.m4: New file.
81437         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
81438         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
81439         (gl_XALLOC): Invoke it.
81440
81441 2003-11-11  Bruno Haible  <bruno@clisp.org>
81442
81443         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
81444         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
81445         defined.
81446
81447 2003-11-10  Paul Eggert  <eggert@twinsun.com>
81448
81449         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
81450         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
81451         rejected some allocations of exactly SIZE_MAX - 2 bytes.
81452         From Bruno Haible.
81453         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
81454         not (size_t) -1, since it's defined here.
81455
81456 2003-11-09  Karl Berry  <karl@gnu.org>
81457
81458         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
81459
81460 2003-11-06  Paul Eggert  <eggert@twinsun.com>
81461
81462         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
81463         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
81464         Reject sizes of exactly SIZE_MAX bytes.
81465         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
81466         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
81467
81468 2003-11-05  Bruno Haible  <bruno@clisp.org>
81469
81470         * lib/xsize.h: Include limits.h, to avoid a possible collision with
81471         SIZE_MAX defined in <limits.h> on Solaris.
81472
81473 2003-11-04  Jim Meyering  <jim@meyering.net>
81474
81475         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
81476         variable names, rather than @VAR@.
81477         * modules/poll: Likewise.
81478
81479 2003-11-04  Bruno Haible  <bruno@clisp.org>
81480
81481         * modules/xsize: New file.
81482         * modules/linebreak: Depend on xsize.
81483         * MODULES.html.sh (func_all_modules): Add xsize.
81484
81485 2003-11-04  Bruno Haible  <bruno@clisp.org>
81486
81487         * m4/xsize.m4: New file.
81488
81489 2003-11-04  Bruno Haible  <bruno@clisp.org>
81490
81491         * lib/xsize.h: New file.
81492         * lib/linebreak.c: Include xsize.h.
81493         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
81494         argument for overflow.
81495         Suggested by Paul Eggert.
81496
81497 2003-11-03  Karl Berry  <karl@gnu.org>
81498
81499         * config/config.{guess,sub}: update from config.
81500
81501 2003-11-03  Jim Meyering  <jim@meyering.net>
81502
81503         * modules/userspec (lib_SOURCES): Add userspec.h.
81504         (Include): Add "userspec.h".
81505         Improve description.
81506
81507 2003-11-03  Jim Meyering  <jim@meyering.net>
81508
81509         * lib/userspec.c: Include "userspec.h".
81510         * lib/userspec.h: New file.
81511
81512 2003-11-03  Bruno Haible  <bruno@clisp.org>
81513
81514         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
81515
81516 2003-11-03  Bruno Haible  <bruno@clisp.org>
81517
81518         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
81519         available, to avoid (extremely rare) race condition.
81520         Suggested by Paul Eggert.
81521
81522 2003-11-02  Karl Berry  <karl@gnu.org>
81523
81524         * config/srclist.txt (vasprintf.c): sync broken, sigh.
81525
81526 2003-10-31  Paul Eggert  <eggert@twinsun.com>
81527
81528         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
81529         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
81530         (read_filesystem_list): Set and use me_type_malloced.
81531         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
81532         whatever the type happens to be), for brevity and consistency.
81533         Check for size calculation overflow on Alphas running OSF/1.
81534
81535 2003-10-31  Jim Meyering  <jim@meyering.net>
81536
81537         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
81538
81539         * lib/linebuffer.c: Include <string.h> for declaration of memset.
81540
81541 2003-10-30  Paul Eggert  <eggert@twinsun.com>
81542             Bruno Haible  <bruno@clisp.org>
81543
81544         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
81545         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
81546
81547 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
81548
81549         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
81550         netbsd*-gnu*.  Suggested by Robert Millan.
81551
81552 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81553
81554         * modules/group-member: Depend on stdbool.
81555
81556 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81557
81558         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
81559
81560 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81561
81562         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
81563         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
81564         after the 'gnu' in these cases.  This fixes some bugs in the
81565         previous change, and is based on suggestions by Robert Millan.
81566
81567 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81568
81569         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
81570         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
81571         no longer needed.
81572         * lib/quotearg.c (quotearg_n_options): Use it.
81573         * lib/group-member.c: Include <stdbool.h>.
81574         (free_group_info): Arg is now const *; don't free arg.
81575         (get_group_info): Now returns bool and accepts struct group_info *,
81576         rather than returning a malloc'ed struct group_info *.
81577         All uses changed.  Check for overflow in internal size calculation.
81578
81579         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
81580         rather than xmalloc/xrealloc.
81581         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
81582         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
81583         conformance bug: the old code used a pointer after freeing the
81584         storage that it addressed.
81585         * lib/hash.c (hash_initialize): Simplify the code by using
81586         xalloc_oversized rather than doing it by hand.
81587         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
81588         the buffer preserved.  Use free and xmalloc instead.
81589         * lib/quotearg.c (quotearg_n_options): Likewise.
81590         Use a simpler test for size overflow.  Don't use xalloc_oversized
81591         because unsigned int might be wider than size_t (!); this suggests
81592         that we should switch from unsigned int to size_t for slot numbers.
81593
81594 2003-10-28  Paul Eggert  <eggert@twinsun.com>
81595
81596         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
81597         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
81598         NetBSD kernels.  Requested by Richard Stallman.
81599
81600 2003-10-27  Paul Eggert  <eggert@twinsun.com>
81601
81602         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
81603         to allocate the returned structure.  Do not allocate a subarray,
81604         as x2nrealloc will do that.
81605         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
81606         instead of xnrealloc.
81607         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
81608
81609 2003-10-27  Bruno Haible  <bruno@clisp.org>
81610
81611         * lib/stdbool_.h: Better support for BeOS.
81612
81613 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81614
81615         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
81616         now uses inline.
81617
81618 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81619
81620         * lib/xalloc.h (xalloc_oversized): New static inline function, for
81621         callers that want to do their own size-overflow checking.  Include
81622         <stdbool.h>, since xalloc_oversized returns bool.
81623         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
81624         to use xalloc_oversized.
81625
81626         Add two functions x2realloc, x2nrealloc, for programs that grow
81627         arrays dynamically by doubling their sizes.
81628         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
81629         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
81630         New functions.
81631
81632         Port to C99 semantics for 'inline' of external functions.
81633         Bug reported by Bruno Haible.
81634         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
81635         with the old contents of xnmalloc.
81636         (xnmalloc, xmalloc): Use it.
81637         (xnrealloc_inline): New static inline function,
81638         with the old contents of xnrealloc.
81639         (xnrealloc, xrealloc): Use it.
81640
81641         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
81642         that.
81643
81644 2003-10-26  Karl Berry  <karl@gnu.org>
81645
81646         * config/srclist.txt (COPYING.DOC): no longer available from
81647         /gd/gnuorg; don't know where the ultimate source is.
81648
81649 2003-10-25  Paul Eggert  <eggert@twinsun.com>
81650
81651         Fix several address-calculation bugs in the hash modules,
81652         plus some minor code cleanup.
81653
81654         * lib/hash.h: Include <stdbool.h>, for bool.
81655         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
81656         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
81657         hash_get_n_entries, hash_get_max_bucket_length,
81658         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
81659         hash_rehash): Use size_t rather than unsigned.
81660         * lib/hash.c (struct hash_table, hash_get_n_buckets,
81661         hash_get_n_buckets_used, hash_get_n_entries,
81662         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
81663         hash_get_entries, hash_do_for_each, hash_string, is_prime,
81664         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
81665         Likewise.
81666         (SIZE_MAX): Define if not defined.
81667         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
81668         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
81669         hash_print):
81670         Use const * when possible.
81671         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
81672         (check_tuning): Fix bug: if tuning parameters were very close to
81673         0 or 1, rounding errors could have caused subscript violations.
81674         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
81675         (hash_initialize): Add 'fail:' label
81676         to free table and return NULL, and use it to simplify code.
81677         Use calloc rather than clearing the storage ourself.
81678         (hash_initialize, hash_rehash): Check for arithmetic overflow in
81679         buffer size calculations.
81680         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
81681         Include <stddef.h>, for size_t.
81682         * lib/hash-pjw.c (hash_pjw): Likewise.
81683         Switch to method described by Bruno Haible.
81684         Include <limits.h>, for CHAR_BIT.
81685         (SIZE_BITS): New macro.
81686
81687 2003-10-23  Paul Eggert  <eggert@twinsun.com>
81688
81689         * m4/getline.m4 (AM_FUNC_GETLINE):
81690         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
81691         hosts.  Problem reported by Derek Robert Price in
81692         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
81693         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
81694         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
81695
81696 2003-10-21  Paul Eggert  <eggert@twinsun.com>
81697
81698         * lib/getndelim2.c (getndelim2): When size calculation overflows,
81699         ceiling the allocation at NMAX bytes rather than silently
81700         discarding input bytes before NMAX is reached.  This makes
81701         a difference only if NMAX exceeds SIZE_MAX / 2.
81702
81703         * lib/obstack.c: Merge from glibc.
81704         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
81705         Add libc_hidden_def (_obstack_newchunk).
81706         (_obstack_free) [! defined _LIBC]: Remove.
81707         [defined _LIBC]: Make a strong alias from obstack_free, rather than
81708         a clone of the function body.
81709         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
81710         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
81711
81712         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
81713         glibc.
81714         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
81715         arg to memcpy.
81716
81717         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
81718         (obstack_ptr_grow_fast, obstack_int_grow_fast):
81719         Don't use lvalue casts, as GCC plans to remove support for them
81720         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
81721         was also present in the non-GCC version, indicating that this
81722         code had always been buggy and had never been widely used.
81723         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
81724         Use the fast variant of each macro, rather than copying the
81725         definiens of the fast variant; that way, we'll be more likely to
81726         catch future bugs in the fast variants.
81727
81728 2003-10-20  Bruno Haible  <bruno@clisp.org>
81729
81730         * modules/wait-process: New file.
81731         * MODULES.html.sh (func_all_modules): Add wait-process.
81732
81733 2003-10-20  Bruno Haible  <bruno@clisp.org>
81734
81735         * m4/wait-process.m4: New file.
81736
81737 2003-10-20  Bruno Haible  <bruno@clisp.org>
81738
81739         * lib/wait-process.h: New file, from GNU gettext.
81740         * lib/wait-process.c: New file, from GNU gettext.
81741
81742 2003-10-19  Jim Meyering  <jim@meyering.net>
81743
81744         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
81745         HPUX 10.20.
81746
81747 2003-10-18  Karl Berry  <karl@gnu.org>
81748
81749         * config/config.guess: update from config.
81750
81751 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81752
81753         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
81754         (getgroups): First arg is int, not size_t.
81755         Don't let 'free' mangle errno.
81756
81757 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81758
81759         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
81760
81761 2003-10-16  Karl Berry  <karl@gnu.org>
81762
81763         * config/config.{guess,sub}: update from config.
81764
81765 2003-10-16  Jim Meyering  <jim@meyering.net>
81766
81767         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
81768         memcpy.
81769
81770 2003-10-15  Paul Eggert  <eggert@twinsun.com>
81771
81772         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
81773         (SIZE_MAX): Remove.
81774         (new_exclude, add_exclude_file): Initial size no longer needs to
81775         be a power of 2.
81776         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
81777         our own address arithmetic overflow checking.
81778
81779         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
81780         (fnmatch): Do not alloca more than 2000 wide characters;
81781         instead, use malloc for large buffers.
81782         Check for address arithmetic overflow, and return -1
81783         with errno set to ENOMEM in that case.
81784         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
81785         (NEW_PATTERN): Do not alloca more than 8000 bytes;
81786         instead, return -1.  Check for address arithmetic overflow.
81787
81788 2003-10-14  Paul Eggert  <eggert@twinsun.com>
81789
81790         Handle invalid suffixes and overflow independently, so that
81791         callers can treat them independently as needed.  Fix some bugs in
81792         suffix handling, e.g., "100k@" was not diagnosed as an invalid
81793         suffix for a human-readable blocksize.  The major caller-visible
81794         change is the addition of a new
81795         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
81796         that both overflow and suffix chars were found.
81797
81798         * lib/human.c (humblock): Don't check separately for invalid suffix
81799         char; that is xstrtoumax's job (now that its bug is fixed).
81800         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
81801         INTMAX_MAX]: New macros.
81802         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
81803         TYPE_MAXIMUM): New macros.
81804         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
81805         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
81806         if overflow occurs, as it's what __strtol does and it's more useful
81807         in practice.
81808         (__xstrtol): If __strtol reports some error other than ERANGE,
81809         reflect it to the caller as LONGINT_INVALID.  If it reports
81810         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
81811         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
81812         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
81813         value.
81814         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
81815         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
81816         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
81817         [defined UINTMAX_MAX]: New macros.
81818
81819 2003-10-14  Bruno Haible  <bruno@clisp.org>
81820
81821         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
81822
81823 2003-10-14  Bruno Haible  <bruno@clisp.org>
81824
81825         * m4/sig_atomic_t: New file, from GNU gettext.
81826         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
81827
81828 2003-10-14  Bruno Haible  <bruno@clisp.org>
81829
81830         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
81831         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
81832         Also use volatile where needed.
81833
81834 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81835
81836         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
81837         Change maintainer from Bruno Haible to 'all'.
81838
81839 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81840
81841         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
81842
81843 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81844
81845         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
81846         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
81847         and define in terms of the other primitives.
81848         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
81849         (SIZE_MAX): Define if not already defined.
81850         (array_size_overflow): New function.
81851         (xalloc_die): Abort instead of exiting if 'error' returns.
81852         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
81853         (xmalloc, xrealloc): Use them.
81854         (xcalloc): Check for address arithmetic overflow.
81855         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
81856         a bit faster than strcpy.
81857
81858 2003-10-10  Simon Josefsson  <jas@extundo.com>
81859
81860         * modules/argp (Depends-on): Add restrict and strcase.
81861
81862 2003-10-10  Simon Josefsson  <jas@extundo.com>
81863
81864         * m4/argp.m4: Add AC_C_INLINE.
81865
81866 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81867
81868         Merge getpass from libc, plus a few fixes.
81869
81870         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
81871         Include <stdbool.h>.
81872         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
81873         __fsetlocking to empty.
81874         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
81875         do include <bits/libc-lock.h>.
81876         Do not include <fcntl.h>; not needed.
81877         [_LIBC]: Include <wchar.h>.
81878         (NOTCANCEL_MODE): New macro.
81879         (flockfile, funlockfile) [_LIBC]: New macros.
81880         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
81881         [!_LIBC]: New macros.
81882         (call_fclose): New function.
81883         (getpass): Use it.  Save tty stream separately; this simplifies the
81884         code and makes it more reliable if stdin happens to equal stdout.
81885         Invoke __fsetlocking on tty.
81886         Handle thread cancellation if needed.
81887         Namespace cleanup (use __tcgetattr, __getline).
81888         Use bool for Booleans.
81889         [USE_IN_LIBIO]: Handle wide streams.
81890         [!_LIBC]: Unconditionally do the fseek, since we don't know what
81891         stream might go where.
81892
81893         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
81894         doesn't have to include <stdio.h> before us.
81895         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
81896         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
81897         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
81898         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
81899         if not declared, so that we can use getpass.c code from libc without
81900         rewriting it.
81901         (flockfile, ftrylockfile, funlockfile): New macros.
81902
81903 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81904
81905         * modules/getpass: Depend on stdbool.
81906
81907 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81908
81909         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
81910
81911 2003-10-07  Karl Berry  <karl@gnu.org>
81912
81913         * config/config.{guess,sub}: update from config.
81914
81915 2003-10-06  Jim Meyering  <jim@meyering.net>
81916             Bruno Haible  <bruno@clisp.org>
81917
81918         This lets translators provide better translations for the
81919         "Written by ..." part of --version output.
81920         * lib/version-etc.h: Include stdarg.h.
81921         (version_etc_copyright): Declare as readonly.
81922         (version_etc): Make this function variadic with a NULL-terminated list
81923         of author name strings.
81924         (version_etc_va): New declaration.
81925         * lib/version-etc.c: Include stdarg.h, stdlib.h.
81926         (version_etc_copyright): Declare as readonly.
81927         (version_etc_va): New function. Provide a different translatable string
81928         for each possible number of authors < 10. Abbreviate when there are 10
81929         authors or more.
81930         (version_etc): Make this function variadic. Call version_etc_va.
81931         Suggestion from Gary V. Vaughan.
81932
81933         * lib/long-options.h (parse_long_options): Change prototype: the
81934         authors string is moved to the end and becomes variadic.
81935         * lib/long-options.c: Include stdarg.h.
81936         (parse_long_options): Make this function variadic, too.
81937         Call version_etc_va, not version_etc.
81938
81939 2003-10-06  Bruno Haible  <bruno@clisp.org>
81940
81941         * modules/version-etc-2: Remove file.
81942         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
81943
81944 2003-10-06  Bruno Haible  <bruno@clisp.org>
81945
81946         * modules/fatal-signal: New file.
81947         * MODULES.html.sh (func_all_modules): Add fatal-signal.
81948
81949 2003-10-06  Bruno Haible  <bruno@clisp.org>
81950
81951         * m4/fatal-signal.m4: New file.
81952         * m4/signalblocking.m4: New file, from GNU gettext.
81953
81954 2003-10-06  Bruno Haible  <bruno@clisp.org>
81955
81956         * lib/version-etc-2.h: Remove file.
81957         * lib/version-etc-2.c: Remove file.
81958
81959 2003-10-06  Bruno Haible  <bruno@clisp.org>
81960
81961         * lib/fatal-signal.h: New file, from GNU gettext.
81962         * lib/fatal-signal.c: New file, from GNU gettext.
81963
81964 2003-10-05  Paul Eggert  <eggert@twinsun.com>
81965
81966         * README: Rework advice for preventing empty .o files.
81967         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
81968         not <sys/types.h>.
81969
81970 2003-10-04  Karl Berry  <karl@gnu.org>
81971
81972         * lib/argp*: update from libc.
81973
81974 2003-10-04  Karl Berry  <karl@gnu.org>
81975
81976         * config/config.{guess,sub}: update from config.
81977
81978 2003-10-02  Bruno Haible  <bruno@clisp.org>
81979
81980         * modules/lchown (Include): Add lchown.h.
81981         * modules/time_r (Include): Use "..." syntax.
81982         * modules/xgetdomainname (Include): Add xgetdomainname.h.
81983
81984 2003-10-01  Simon Josefsson  <jas@extundo.com>
81985
81986         * MODULES.html.sh (func_all_modules): Move gethostname from section
81987         'based on' to section 'lacking' POSIX:2001.
81988
81989 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
81990
81991         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
81992         to output mode on the same stream.
81993
81994 2003-09-29  Paul Eggert  <eggert@twinsun.com>
81995
81996         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
81997         Fix arg typo in previous patch.
81998
81999 2003-09-28  Jim Meyering  <jim@meyering.net>
82000
82001         * lib/error.c: Correct cpp indentation.
82002
82003 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82004
82005         * modules/free: New file.
82006
82007 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82008
82009         * m4/free.m4: New file.
82010
82011 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82012
82013         * lib/minmax.h (MIN, MAX)
82014         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
82015         Omit the special code that used __typeof__, since we worry that
82016         it could be more trouble than it's worth.  See:
82017         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
82018         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
82019
82020         * lib/free.c: New file.
82021
82022 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
82023
82024         Trivial fixes to Makefile.am parts of module listings.
82025         * modules/strstr: Append strstr.h to lib_SOURCES.
82026         * modules/strcase: Likewise, for strcase.h.
82027
82028 2003-09-27  Karl Berry  <karl@gnu.org>
82029
82030         * config/mkinstalldirs: update from automake.
82031
82032 2003-09-26  Paul Eggert  <eggert@twinsun.com>
82033
82034         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
82035         (error_tail): Do not loop, reallocating temporary buffer, since
82036         the output cannot contain more wide characters than the input
82037         contains bytes, the size must be big enough already.  This avoids
82038         one potential size overflow calculation.  Check for size overflow
82039         when calculating temporary buffer size.  Free temporary buffer
82040         when done, if it was allocated with malloc; this plugs a memory
82041         leak.  Remove casts from void * to pointers, that are no longer
82042         needed now that we're assuming C89 or better.
82043
82044         Merge error changes from glibc.
82045
82046         * lib/error.c, error.h: Update copyright notice header to match glibc.
82047         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
82048         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
82049         Disable cancellation while printing error.
82050         * lib/error.h: Prepend __ to parameter names.
82051
82052 2003-09-26  Jim Meyering  <jim@meyering.net>
82053
82054         * lib/error.c (error_tail): Move some declarations
82055         into inner scope where the local variables are used.
82056
82057 2003-09-26  Bruno Haible  <bruno@clisp.org>
82058
82059         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
82060         stpncpy().
82061         Don't define stpncpy through config.h; it's now done through stpncpy.h.
82062
82063 2003-09-26  Bruno Haible  <bruno@clisp.org>
82064
82065         * lib/stpncpy.h (gnu_stpncpy): New declaration.
82066         (stpncpy): Define as alias for gnu_stpncpy.
82067         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
82068
82069 2003-09-25  Simon Josefsson  <jas@extundo.com>
82070
82071         * lib/xgetdomainname.h: New file.
82072         * lib/xgetdomainname.c: New file.
82073
82074 2003-09-25  Simon Josefsson  <jas@extundo.com>
82075             Bruno Haible  <bruno@clisp.org>
82076
82077         * modules/getdomainname: New file.
82078         * modules/xgetdomainname: New file.
82079         * MODULES.html.sh (func_all_modules): Add getdomainname,
82080         xgetdomainname.
82081
82082 2003-09-25  Simon Josefsson  <jas@extundo.com>
82083             Bruno Haible  <bruno@clisp.org>
82084
82085         * m4/getdomainname.m4: New file.
82086
82087 2003-09-25  Simon Josefsson  <jas@extundo.com>
82088             Bruno Haible  <bruno@clisp.org>
82089
82090         * lib/getdomainname.h: New file.
82091         * lib/getdomainname.c: New file.
82092
82093 2003-09-25  Karl Berry  <karl@gnu.org>
82094
82095         * lib/argp-fmtstream.c, argp-help.c: update from libc.
82096
82097 2003-09-25  Karl Berry  <karl@gnu.org>
82098
82099         * config/install-sh: update from automake.
82100
82101 2003-09-25  Bruno Haible  <bruno@clisp.org>
82102
82103         * modules/version-etc-2: New file, from modules/version-etc with
82104         modifications.
82105         * MODULES.html.sh (func_all_modules): Add version-etc-2.
82106
82107 2003-09-25  Bruno Haible  <bruno@clisp.org>
82108
82109         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
82110         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
82111
82112 2003-09-24  Simon Josefsson  <jas@extundo.com>
82113
82114         * modules/xgethostname: Add xgethostname.h.
82115
82116 2003-09-24  Paul Eggert  <eggert@twinsun.com>
82117
82118         * lib/linebuffer.c (freebuffer): Don't free the argument, just
82119         the buffer associated with the argument.  Bug reported by
82120         Simon Josefsson.
82121
82122 2003-09-24  Paul Eggert  <eggert@twinsun.com>
82123
82124         * README: Document assumptions that 'int' is at least 32 bits
82125         wide, that integer arithmetic is 2's complement without overflow,
82126         that there are no holes in integer values, that adding sizes of
82127         two nonoverlapping objects can't overflow, and that all-bits-zero
82128         yields scalar zero.  Fix spelling and capitalization typos.
82129
82130 2003-09-19  Karl Berry  <karl@gnu.org>
82131
82132         * lib/argp.h: update from libc.
82133
82134 2003-09-17  Paul Eggert  <eggert@twinsun.com>
82135
82136         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
82137         to avoid spurious warnings like "AC_RUN_IFELSE was called before
82138         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
82139
82140 2003-09-17  Paul Eggert  <eggert@twinsun.com>
82141
82142         * gnulib-tool: Use "test -h", not "test -L", for portability
82143         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
82144         (tags_regexp): Remove, since \| doesn't conform to POSIX.
82145         (sed_extract_prog): Issue s commands one-by-one, rather than
82146         using \| in one s command.
82147
82148 2003-09-16  Paul Eggert  <eggert@twinsun.com>
82149
82150         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
82151         input error, instead of returning NULL the next time we are called
82152         (and therefore losing track of errno).
82153
82154 2003-09-16  Bruno Haible  <bruno@clisp.org>
82155
82156         * gnulib-tool (func_create_testdir): Warn about duplicated
82157         dependencies.
82158
82159 2003-09-15  Paul Eggert  <eggert@twinsun.com>
82160
82161         * modules/argmatch, modules/fatal, modules/obstack,
82162         modules/xalloc, modules/xgethostname: Sort dependencies by
82163         importance, not alphabetically.
82164
82165 2003-09-15  Paul Eggert  <eggert@twinsun.com>
82166
82167         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
82168         fails, so that the caller gets the proper errno.
82169
82170         * lib/readutmp.c (read_utmp): Likewise.
82171         Check for fstat error.  Close stream and free storage
82172         when failing.
82173
82174 2003-09-14  Karl Berry  <karl@gnu.org>
82175
82176         * config/srclist.txt (strdup.c): disable for c89 changes.
82177
82178 2003-09-14  Jim Meyering  <jim@meyering.net>
82179
82180         * lib/getloadavg.c: Correct cpp indentation.
82181         * lib/strdup.c: Likewise.
82182         * lib/vasnprintf.c: Likewise.
82183
82184 2003-09-14  Bruno Haible  <bruno@clisp.org>
82185
82186         * modules/fwriteerror: New file.
82187         * MODULES.html.sh (func_all_modules): Add fwriteerror.
82188
82189 2003-09-14  Bruno Haible  <bruno@clisp.org>
82190
82191         * lib/fwriteerror.h: New file.
82192         * lib/fwriteerror.c: New file.
82193
82194 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82195
82196         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
82197         modules/xgethostname, modules/xalloc: Depend on exit.
82198
82199 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82200
82201         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
82202
82203         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
82204         and AC_MINIX, too, so that their extensions are available.
82205
82206         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
82207         This macro has been superseded by gl_BACKUPFILE.
82208
82209         More patches to assume C89 or better.
82210
82211         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
82212
82213         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
82214         unconditionally.
82215         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
82216         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
82217         Include <string.h>, <stdlib.h> unconditionally.
82218         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
82219         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
82220         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
82221         headers or for string.h.
82222         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
82223         or strtoul.
82224
82225         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
82226         headers.
82227         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
82228         * m4/userspec.m4 (gl_USERSPEC): Likewise.
82229         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
82230         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
82231         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82232         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
82233         memcpy, memset.
82234         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
82235         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
82236         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
82237         strtol.
82238         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
82239         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
82240         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
82241         strtoul.
82242
82243 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82244
82245         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
82246         * lib/obstack.c [!defined _LIBC]: Likewise.
82247         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
82248         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
82249         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
82250
82251         More changes to assume C89 or better.
82252
82253         * lib/error.c (error_tail): Assume vprintf.
82254
82255         * lib/argmatch.c (getenv): Remove decl.
82256         * lib/progreloc.c (get_full_program_name): Define via prototype.
82257         * lib/setenv.c (clearenv): Likewise.
82258         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
82259         needed.
82260         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
82261         (malloc, memcpy): Remove decls.
82262         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
82263         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
82264         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
82265         (memcpy): Remove macro.
82266         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
82267         (__P): Remove.  All uses removed.
82268         (PTR): Remove.  All uses changed to void *.
82269         (CHAR_BIT, NULL): Remove.
82270         (spaces, zeros, memset_space, memset_zero)
82271         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
82272         Remove.
82273         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
82274         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
82275         Define with prototype.
82276         Remove now-unnecessary prototype decl.
82277         (extra_args_spec): Assume ANSI C.  All uses changed.
82278         (extra_args_spec_iso): Remove.
82279         (my_strftime, emacs_strftimeu): Define via prototype.
82280         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
82281         unconditionally.
82282         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
82283         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
82284         (strtoul, strtol): Remove decls.
82285         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
82286         LONG_MAX): Remove.
82287         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
82288         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
82289         (LOCALE_PARAM_PROTO): New macro.
82290         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
82291         (INTERNAL (strtol), strtol): Define with a prototype.
82292         (PARAMS): Remove.  All uses removed.
82293         * lib/tempname.c: Include <string.h> unconditionally.
82294         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
82295         * lib/xgethostname.c (main): Define with a prototype.
82296         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
82297         Include <stdlib.h> unconditionally.
82298         (calloc, malloc, realloc, free): Remove decls.
82299         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
82300         Include <stdlib.h> unconditionally.  Sort include file names.
82301         (strtod): Remove.
82302         (xstrtod): Define with a prototype.
82303         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
82304         (strtol, strtoul): Remove decls.
82305
82306 2003-09-11  Paul Eggert  <eggert@twinsun.com>
82307
82308         More patches to assume C89 or better.
82309         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
82310         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
82311         string.h, memchr, STDC_HEADERS.
82312
82313 2003-09-11  Paul Eggert  <eggert@twinsun.com>
82314
82315         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
82316         Include <stdlib.h>, <string.h> unconditionally.
82317         Remove now-unnecessary cast to char *.
82318         * lib/strnlen.c: Include <string.h> unconditionally.
82319         * lib/yesno.c (yesno): Define with a prototype.
82320
82321 2003-09-11  Bruno Haible  <bruno@clisp.org>
82322
82323         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
82324
82325 2003-09-10  Jim Meyering  <jim@meyering.net>
82326
82327         * lib/error.c: Correct indentation of cpp directives.
82328
82329 2003-09-10  Bruno Haible  <bruno@clisp.org>
82330
82331         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
82332         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
82333         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
82334         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
82335         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
82336         <stdlib.h> and <string.h> checks.
82337         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
82338         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
82339
82340 2003-09-10  Bruno Haible  <bruno@clisp.org>
82341
82342         * lib/strcspn.c: Include <string.h> unconditionally.
82343         * lib/strpbrk.c: Include <string.h> unconditionally.
82344         * lib/strstr.c: Include <string.h> unconditionally.
82345         * lib/unicodeio.c: Include <string.h> unconditionally.
82346         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
82347         * lib/unsetenv.c: Likewise.
82348         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
82349         * lib/yesno.c: Include <stdlib.h> unconditionally.
82350         (rpmatch): Add prototype.
82351
82352 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82353
82354         More patches to assume C89 or better.
82355         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
82356         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
82357         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
82358         or for string.h.
82359         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
82360         stdlib.h.
82361         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
82362         C headers.
82363         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
82364         string.h.
82365         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
82366         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
82367         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
82368         or for string.h.
82369         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
82370         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
82371         C headers.
82372         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
82373         memcpy.
82374         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
82375         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
82376         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
82377         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
82378         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
82379         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
82380         string.h, free.
82381         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
82382         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
82383         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
82384         C headers, or for string.h.
82385         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
82386         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
82387         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
82388         headers, memory.h, stdlib.h, string.h, strings.h.
82389         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
82390         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
82391         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
82392         strchr.
82393         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
82394         headers, memory.h, string.h.
82395         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
82396         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
82397         free.
82398         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
82399         headers.
82400         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
82401         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
82402         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
82403         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
82404         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
82405
82406 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82407
82408         More K&R removal.
82409
82410         * lib/acosl.c (main): Use a prototype.
82411         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
82412         tanl.c: Likewise.
82413
82414         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
82415
82416         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
82417         (getopt, etopt_long, getopt_long_only, _getopt_internal)
82418         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
82419         with a prototype.
82420         * lib/getopt.c (const): Remove macro.
82421         Include <string.h> unconditionally.
82422         (my_index): Remove; all uses changed to strchr.
82423         (strlen): Remove decl.
82424         (exchange): Remove forward decl; no longer needed.
82425         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
82426         Define with prototype.
82427         * lib/getopt1.c (const): Remove macro.
82428         (getopt_long, getopt_long_only, main): Define with prototype.
82429
82430         * lib/getugroups.c: Include <string.h> unconditionally.
82431
82432         * lib/getusershell.c: Include <stdlib.h> unconditionally.
82433         (getusershell, setusershell, endusershell, readname, main):
82434         Define with prototypes.
82435
82436         * lib/group-member.c: Include group-member.h first.
82437         Include <stdlib.h> unconditionally.
82438
82439         * lib/hard-locale.c: Include hard-locale.h first.
82440         Include <stdlib.h>, <string.h> unconditionally.
82441
82442         * lib/hash.c (free, malloc): Remove decls.
82443         Include <stdlib.h> unconditionally.
82444
82445         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
82446         (getenv): Do not declare.
82447
82448         * lib/idcache.c: Include <string.h> unconditionally.
82449
82450         * lib/long-options.c: Include long-options.h first, to test interface.
82451         Include <stdlib.h> unconditionally.
82452
82453         * lib/makepath.c: Include makepath.h first, to test interface.
82454         Include <stdlib.h> and <string.h> unconditionally.
82455
82456         * lib/linebuffer.c: Include <stdlib.h>.
82457         (free): Remove decl.
82458
82459         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
82460         stddef.h. rpl_malloc returns void *, not char *.
82461         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
82462         prototype.
82463
82464         * lib/md5.h: Include <limits.h> unconditionally.
82465         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
82466         (__P): Remove; all uses removed.
82467         * lib/md5.c: Include "md5.h" first.
82468         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
82469         md5_buffer, md5_process_bytes, md5_process_block):
82470         Define with prototypes.
82471         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
82472         * lib/sha.c: Include "sha.h" first.
82473         Include <stdlib.h>, <string.h> unconditionally.
82474
82475         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
82476         * lib/memcmp.c (__ptr_t): Likewise.
82477         * lib/memrchr.c (__ptr_t): Likewise.
82478         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
82479         Include <string.h> unconditionally.
82480         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
82481         * lib/memchr.c: Include <stdlib.h> unconditionally.
82482         * lib/memchr.c (LONG_MAX): Remove.
82483         * lib/memrchr.c (LONG_MAX): Likewise.
82484         * lib/memchr.c (__memchr): Define via a prototype.
82485         * lib/memrchr.c (__memrchr): Likewise.
82486         * lib/memcmp.c (__P): Remove, and remove all uses.
82487         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
82488         Remove forward decls; no longer needed.
82489         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
82490         Use types required by C89 in prototype.
82491
82492         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
82493         * lib/savedir.c: Likewise.
82494         * lib/mkdir.c (free): Remove decl.
82495         * lib/rmdir.c (rmdir): Define with a prototype.
82496         * lib/savedir.c: Include savedir.h first, to test interface.
82497
82498         * lib/mktime.c (STDC_HEADERS): Remove.
82499         Include <stdlib.h>, <string.h> unconditionally.
82500
82501         * lib/modechange.c: Include <stdlib.h> unconditionally.
82502         (malloc): Remove decl.
82503
82504         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
82505         (free): Remove decl.
82506
82507         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
82508         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
82509         (This type really should be intptr_t, but that's a C99ism.)
82510         (_obstack_memcpy): Remove: all uses changed to memcpy.
82511         Include <string.h> unconditionally.
82512         (struct obstack): Assume __STDC__ for types of members
82513         chunkfun, freefun, extra_arg.
82514         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
82515         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
82516         obstack_begin, obstack_specify_allocation,
82517         obstack_specify_allocation_with_arg, obstack_chunkfun,
82518         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
82519         Remove unprototyped decls and the macros that use them.
82520         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
82521         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
82522         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
82523         (defined __STDC__ && __STDC__)]:
82524         Remove nonprototyped code.
82525         Include <stdlib.h> unconditionally.
82526         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
82527         _obstack_allocated_p, _obstack_free, obstack_free,
82528         _obstack_memory_used, print_and_abort):
82529         Define using prototypes.
82530         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
82531         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
82532         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
82533         obstack_next_free, obstack_object_size, obstack_room) [0]:
82534         Remove unused, unprototyped code.
82535
82536         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
82537
82538         * lib/physmem.c (physmem_total, physmem_available, main): Define
82539         with prototypes.
82540
82541         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
82542         (main): Define with a prototype.
82543
82544         * lib/posixver.c (getenv): Remove decl.
82545
82546         * lib/putenv.c (malloc): Returns void *, not char *.
82547         Include <string.h> unconditionally.
82548         (strchr, memcpy, NULL): Do not define.
82549
82550         * lib/readtokens.c: Include readtokens.h first, to test interface.
82551         Include <stdlib.h>, <string.h> unconditionally.
82552         (init_tokenbuffer): Define with a prototype.
82553
82554         * lib/regex.c (PARAMS): Remove.  All uses removed.
82555         All uses of _RE_ARGS removed, too.
82556         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
82557         unconditionally.
82558         (bzero): Assume memset exists.
82559         (memcmp, memcpy, NULL): Remove.
82560         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
82561         char, or assignments to local vars of type signed char.
82562         (init_syntax_once, PREFIX(extract_number_and_incr),
82563         PREFIX(print_partial_compiled_pattern),
82564         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
82565         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
82566         PREFIX(regex_grow_registers), PREFIX(regex_compile),
82567         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
82568         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
82569         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
82570         wcs_compile_range, byte_compile_range, truncate_wchar,
82571         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
82572         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
82573         count_mbs_length, wcs_re_match_2_internal,
82574         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
82575         PREFIX(alt_match_null_string_p),
82576         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
82577         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
82578         regfree, PREFIX(extract_number)): Define with prototype.  Remove
82579         now-unnecessary declaration, if any.
82580         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
82581         regcomp, regexec):
82582         Remove now-unnecessary casts among pointer types.
82583         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
82584
82585         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
82586         (free): Remove decl.
82587
82588         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
82589
82590         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
82591         (free): Remove decl.
82592
82593         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
82594         * lib/xgetcwd.c: Likewise.
82595
82596         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
82597         (free): Remove decl.
82598
82599         * lib/strchrnul.c (strchrnul): Define with a prototype.
82600         Fix bug: c_in was not converted to char before searching.
82601
82602         The following changes are not K&R related:
82603
82604         * lib/group-member.h: Include <sys/types.h>, so that this file is
82605         self-contained.
82606         * lib/makepath.h: Likewise.
82607
82608         * lib/getusershell.c (readname, default_index, line_size, readname):
82609         Use size_t, not int, for sizes.
82610         (readname): If the size overflows, report an error instead of
82611         looping forever.
82612
82613 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82614
82615         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
82616         libc.
82617
82618 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82619
82620         * README: New section: portability guidelines.
82621
82622 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82623
82624         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
82625         C89 spec.
82626
82627 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82628
82629         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
82630
82631 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82632
82633         Assume C89 or better; remove K&R cruft.
82634         A few of these changes were first proposed by Derek Robert Price
82635         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
82636
82637         * lib/addext.c: Include <string.h> unconditionally.
82638         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
82639         Don't declare getenv or malloc.
82640
82641         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
82642         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
82643         (NULL): Remove.
82644         (find_stack_direction, alloca): Use prototypes.
82645
82646         * lib/atexit.c (atexit): Define using a prototype.
82647
82648         * lib/basename.c, dirname.c, stripslash.c:
82649         Include <string.h> unconditionally.
82650
82651         * lib/bcopy.c: Include <stddef.h>.
82652         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
82653
82654         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
82655
82656         * lib/error.h (error, error_at_line, error_print_progname)
82657         [! (defined (__STDC__) && __STDC__)]: Remove decls.
82658         * lib/error.c: Include error.h first, to check interface.
82659         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82660         (VA_START): Remove; all uses changeed to va_start.
82661         (exit, strerror): Remove decls.
82662         (error_print_progname): Prototype uncondionally.
82663         Don't include <errno.h>; no longer needed.
82664         (private_strerror): Remove.
82665         (error_tail): Always define.
82666         (error, error_at_line): Assume C89 or better; always use prototypes.
82667         * lib/fatal.c: Include "fatal.h" first, to test interface.
82668         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82669         (VA_START): Remove; all uses changed to va_start.
82670         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
82671         this case.
82672         (exit): Remove decl.
82673         (fatal): Prototype unconditionally.  Assume va_start works.
82674         Abort at end, to pacify gcc.
82675
82676         * lib/euidaccess.c (main): Define with a prototype.
82677
82678         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
82679
82680         * lib/exitfail.c: Include <stdlib.h> unconditionally.
82681
82682         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
82683         prototypes.
82684         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
82685         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
82686         (getenv): Remove decl.
82687         (fnmatch): Define using a prototype.
82688         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
82689         (FCT): Define using a prototype.
82690
82691         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
82692
82693         * lib/gethostname.c: Include <stddef.h>.
82694         (gethostname): Define with prototype.  Length is size_t, not int.
82695
82696 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82697
82698         Assume C89 or better; remove K&R cruft.
82699         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
82700         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
82701         string.h, getenv, malloc.
82702         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
82703         headers.
82704         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
82705         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
82706         do not check for strerror.
82707         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
82708         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
82709         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
82710         do not check for doprnt or vprintf.
82711         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
82712         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
82713
82714 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82715
82716         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
82717         getversion.c should have been removed then, but was accidentally
82718         preserved.
82719
82720         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
82721         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
82722
82723 2003-09-08  Karl Berry  <karl@gnu.org>
82724
82725         * config/config.sub, config.guess, srclistvars.sh: update from savannah
82726                 config, forget about prep.
82727
82728         * config/depcomp, missing: update from automake.
82729
82730 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82731
82732         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
82733         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82734
82735 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82736
82737         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
82738         copy_tm_result.  Bug reported by Simon Josefsson in
82739         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82740
82741 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82742
82743         * m4/time_r.m4: New file.
82744         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
82745         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
82746         is. Check for timegm declaration.
82747         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
82748         Do not check for gmtime_r.
82749         Replace mktime if __mktime_internal does not exist and if mktime
82750         hasn't been replaced already.
82751
82752 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82753
82754         * lib/time_r.c, lib/time_r.h: New files.
82755
82756         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
82757         __localtime_r.
82758         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
82759         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
82760
82761         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
82762         __gmtime_r.
82763         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
82764         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
82765         Include <time_r.h>.
82766
82767         * lib/timegm.c: Switch to glibc implementation, with the following
82768         changes:
82769         [defined HAVE_CONFIG_H]: Include <config.h>.
82770         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
82771         (__mktime_internal) [!defined _LIBC]: New decl.
82772         (__gmtime_r) [!defined _LIBC]: New macro and function.
82773         (timegm): Use a prototype, since gnulib assumes C89.
82774         Do not bother declaring tmp to be const, as it's not really usefu.
82775         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
82776         (timegm): Declare only if HAVE_DECL_TIMEGM.
82777
82778 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82779
82780         * MODULES.html.sh (func_all_modules): Add time_r.
82781         * modules/time_r: New file.
82782         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
82783         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
82784
82785 2003-09-03  Paul Eggert  <eggert@twinsun.com>
82786
82787         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
82788         Bug reported by Lute Kamstra in
82789         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
82790
82791         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
82792         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
82793         course with correspondingly smaller numbers for tomorrow and
82794         yesterday.  From Tadayoshi Funaba.  Originally installed into
82795         sh-utils on 1999-08-07, but the patch got lost (I guess during the
82796         coreutils merge?).
82797
82798 2003-08-31  Simon Josefsson  <jas@extundo.com>
82799
82800         * modules/timegm: New file.
82801         * MODULES.html.sh (func_all_modules): Add timegm.
82802
82803 2003-08-31  Simon Josefsson  <jas@extundo.com>
82804
82805         * m4/timegm.m4: New file.
82806
82807 2003-08-31  Simon Josefsson  <jas@extundo.com>
82808
82809         * lib/timegm.h: New file.
82810         * lib/timegm.c: New file.  Based on
82811         wget-1.8.2/src/http.c:mktime_from_utc.
82812
82813 2003-08-31  Karl Berry  <karl@gnu.org>
82814
82815         * lib/argp.h: update from libc.
82816
82817 2003-08-28  Bruno Haible  <bruno@clisp.org>
82818
82819         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
82820         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
82821         followed by '#define fnmatch fnmatch_posix' gives an error.
82822
82823 2003-08-28  Bruno Haible  <bruno@clisp.org>
82824
82825         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
82826         warning on QNX, which defines O_BINARY to 000000.
82827
82828 2003-08-27  Jim Meyering  <jim@meyering.net>
82829
82830         * m4/mkstemp.m4: Require that the system mkstemp be able to create
82831         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
82832         would fail after 32.  Reported by Danny Levinson.  Details here:
82833         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
82834
82835 2003-08-24  Bruno Haible  <bruno@clisp.org>
82836
82837         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
82838         MSVC7 <stdio.h> is included later.
82839
82840 2003-08-22  Simon Josefsson  <jas@extundo.com>
82841
82842         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
82843
82844 2003-08-20  Karl Berry  <karl@gnu.org>
82845
82846         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
82847
82848 2003-08-20  Bruno Haible  <bruno@clisp.org>
82849
82850         * modules/progname: New file.
82851         * MODULES.html.sh (func_all_modules): Add progname.
82852
82853 2003-08-20  Bruno Haible  <bruno@clisp.org>
82854
82855         * lib/progname.h: New file, from GNU gettext.
82856         * lib/progname.c: New file, from GNU gettext.
82857         * lib/progreloc.c: New file, from GNU gettext.
82858
82859 2003-08-19  Jim Meyering  <jim@meyering.net>
82860
82861         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
82862         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
82863
82864 2003-08-19  Bruno Haible  <bruno@clisp.org>
82865
82866         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
82867         more.
82868
82869 2003-08-19  Bruno Haible  <bruno@clisp.org>
82870
82871         * lib/xstrdup.c: Assume <string.h> exists.
82872
82873 2003-08-18  Paul Eggert  <eggert@twinsun.com>
82874
82875         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
82876         in makefile rules.
82877
82878 2003-08-18  Jim Meyering  <jim@meyering.net>
82879
82880         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
82881         * m4/lib-ld.m4: Likewise.
82882
82883 2003-08-18  Jim Meyering  <jim@meyering.net>
82884
82885         * lib/setenv.h: Indent nested cpp directive.
82886         * lib/vasnprintf.c: Remove trailing blanks.
82887
82888 2003-08-17  Simon Josefsson  <jas@extundo.com>
82889
82890         * modules/xstrndup: New file.
82891         * MODULES.html.sh (func_all_modules): Add xstrndup.
82892
82893 2003-08-17  Simon Josefsson  <jas@extundo.com>
82894
82895         * modules/argp: Fix autoconf macro name. Add more dependencies.
82896
82897 2003-08-17  Simon Josefsson  <jas@extundo.com>
82898
82899         * m4/xstrndup.m4: New file.
82900
82901 2003-08-17  Simon Josefsson  <jas@extundo.com>
82902
82903         * m4/argp.m4: New file.
82904
82905 2003-08-17  Simon Josefsson  <jas@extundo.com>
82906             Bruno Haible  <bruno@clisp.org>
82907
82908         * lib/xstrndup.h: New file.
82909         * lib/xstrndup.c: New file.
82910
82911 2003-08-17  Bruno Haible  <bruno@clisp.org>
82912
82913         * modules/strndup (Files, Include): Add lib/strndup.h.
82914
82915 2003-08-17  Bruno Haible  <bruno@clisp.org>
82916
82917         * modules/euidaccess (Files): Add lib/euidaccess.h.
82918
82919 2003-08-17  Bruno Haible  <bruno@clisp.org>
82920
82921         * lib/strndup.h: New file.
82922
82923 2003-08-17  Bruno Haible  <bruno@clisp.org>
82924
82925         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
82926         like AC_GNU_SOURCE.
82927         * modules/extensions (configure.ac): Comment out the invocation of
82928         gl_USE_SYSTEM_EXTENSIONS.
82929
82930 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82931
82932         Merges from coreutils, etc.
82933         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
82934         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
82935         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
82936         fixing a typo.
82937         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
82938         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
82939
82940 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82941
82942         Document merge from coreutils.
82943         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
82944         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
82945         * modules/utime: Add m4/utimes-null.m4.
82946
82947 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82948
82949         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
82950         space, undoing this 2003-08-12 change:
82951         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82952
82953 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82954
82955         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
82956         strtoul.c from libc, undoing this 2003-08-12 change:
82957         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82958
82959 2003-08-16  Jim Meyering  <jim@meyering.net>
82960
82961         Merges from coreutils.
82962         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
82963         prefix.  Adjust cache variables similarly.  Create 500 rather than
82964         just 300 files, to exercise bug on Darwin6.5, too.
82965         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
82966         $missing_dir.
82967         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
82968         AM_SYS_POSIX_TERMIOS.
82969         Reported by mkc@mathdogs.com.
82970         Also change use of $am_cv_sys_posix_termios
82971         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
82972         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
82973         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
82974         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
82975         in /proc/mounts until it finds one with matching device number.  This
82976         is unnecessary when the FILE argument *is* a mount point.  No stat call
82977         is necessary in that case.  So, disable the statvfs-testing code on
82978         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
82979         as RedHat bug# 84846.
82980         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82981         to 1MB, so as not to render systems with no stack size limit (e.g.,
82982         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
82983         Include <unistd.h>.  On some systems,
82984         it is required for the definition of _SC_PAGESIZE.
82985
82986 2003-08-16  Jim Meyering  <jim@meyering.net>
82987
82988         Merge from coreutils.
82989         * lib/xstrtoimax.c: #else #if -> #elif.
82990         * lib/xstrtoumax.c: Likewise.
82991
82992 2003-08-16  Jim Meyering  <jim@meyering.net>
82993
82994         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
82995         * m4/utimes.m4: Removed.
82996         * m4/utimes-null.m4: Renamed from utimes.m4.
82997
82998         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
82999         to 1MB, so as not to render systems with no stack size limit (e.g.,
83000         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
83001         Include <unistd.h>.  On some systems,
83002         it is required for the definition of _SC_PAGESIZE.
83003
83004 2003-08-16  Jim Meyering  <jim@meyering.net>
83005         and Paul Eggert  <eggert@cs.ucla.edu>
83006
83007         Merges from coreutils, etc.
83008
83009         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
83010         using the latest version from cvs.  This avoids problems with #line
83011         directives using a vendor (Sun) compiler.
83012         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
83013         Don't set GETGROUPS_LIB here; now it's
83014         done via getgroups.m4's wrapper function.
83015         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
83016         rather than just in sh-util/configure.in, so that the
83017         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
83018         same.
83019         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
83020         AC_FUNC_GETLOADAVG where to find getloadavg.c.
83021         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
83022         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
83023         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
83024         Remove code that is now done by the newly-required macros.
83025         Append $(EXEEXT) to DF_PROG.
83026         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
83027         Do not invoke or require the following here,
83028         since prereq.m4 or some gnulib .m4 now does this for us:
83029         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
83030         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
83031         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
83032         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
83033         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
83034         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
83035         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
83036         AC_FUNC_OBSTACK.
83037         Do not replace the following functions, as this is now the job
83038         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
83039         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
83040         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
83041         atexit getpass, strdup, getpagesize.
83042         Replace 'raise'.
83043         Do not check for the following functions, as this is now the job
83044         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
83045         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
83046         setregid.
83047         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
83048         Check for sys/sysctl.h.
83049         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
83050         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
83051         of checking for ssize_t ourselves.
83052
83053         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
83054         Require every macro that gnulib/modules/* suggests for us.
83055         (jm_PREREQ_ADDEXT): New macro.
83056         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
83057         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
83058
83059         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
83060         (gl_PHYSMEM): Use it.
83061         Also check for `table' function.
83062         Check for new headers and functions.
83063         Add check for sys/sysmp.h.
83064         With suggestions from Kaveh Ghazi.
83065         Ignore headers that are present but cannot be compiled.  This
83066         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
83067         C 5.4.
83068
83069 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83070
83071         Document merge from coreutils.
83072         * modules/userspec: Depend on posixver.
83073         * modules/strftime: Depend on tzset.
83074
83075 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83076
83077         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
83078         rather than tab, after '#' in shell-script copyright notices.
83079         Suggested by Bruno Haible.
83080
83081 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83082
83083         * config/srclist-update: Use three spaces, rather than tab, after '#'
83084         in shell-script copyright notices.  Suggested by Bruno Haible.
83085         Remove unnecessary parenthesization in regular expression.
83086
83087 2003-08-15  Jim Meyering  <jim@meyering.net>
83088
83089         Merge from coreutils.
83090         * lib/xgethostname.c: Include <stdlib.h>.
83091         (xghostname): Don't exit for anything other than memory-related
83092         failure; just return NULL.
83093         * lib/userspec.c: Include "posixver.h".
83094         (parse_user_spec): Accept `.' as a separator only
83095         in pre-POSIX-200112 mode.
83096         * lib/strtoimax.c: Use #elif rather than #else #if.
83097         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
83098         Remove function, now that we can rely on a working tzset function.
83099         [!_LIBC]: Ensure that the required autoconf test has been run.
83100         [!defined _NL_CURRENT && HAVE_STRFTIME]:
83101         Use underlying_strftime for %r.
83102         * lib/sha.c: Merge in some clean-up and optimization changes from
83103         glibc.
83104         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
83105         Ensure that it is a multiple of 64.
83106         Rearrange loop exit tests so as to avoid performing an
83107         additional fread after encountering an error or EOF.
83108         * lib/realloc.c: Update copyright date.
83109
83110 2003-08-15  Jim Meyering  <jim@meyering.net>
83111         and Paul Eggert  <eggert@twinsun.com>
83112
83113         Merge from coreutils.
83114         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
83115         member but strut utmpx does not.  Needed for AIX 4.3.3.
83116         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
83117
83118 2003-08-15  Jim Meyering  <jim@meyering.net>
83119         and Paul Eggert  <eggert@cs.ucla.edu>
83120
83121         Merges from coreutils, etc.
83122         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
83123         Require gl_FUNC_TZSET_CLOBBER.
83124         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
83125         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
83126         members.
83127
83128 2003-08-14  Paul Eggert  <eggert@twinsun.com>
83129
83130         Help the merge from coreutils.
83131         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
83132         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
83133         * m4/tzset.m4: Use it too.
83134
83135 2003-08-14  Paul Eggert  <eggert@twinsun.com>
83136
83137         * modules/tzset: New file.
83138
83139 2003-08-14  Jim Meyering  <jim@meyering.net>
83140
83141         Merges from coreutils.
83142         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
83143         variable names, rather than @FNMATCH_H@.
83144         * modules/alloca: Likewise for $(ALLOCA_H).
83145
83146         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
83147         the three copies of the literal target, `fnmatch.h'.
83148         * modules/alloca (alloca.h): Likewise.
83149
83150 2003-08-14  Jim Meyering  <jim@meyering.net>
83151
83152         Merge from coreutils.
83153         * m4/tzset.m4: New file.
83154         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
83155         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
83156         otherwise, AIX 5.1 systems would end up using the latter.
83157         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
83158         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
83159         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
83160         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
83161
83162 2003-08-14  Jim Meyering  <jim@meyering.net>
83163
83164         Merge from coreutils.
83165         * lib/obstack.h: Whitespace changes.
83166         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
83167         and xcalloc return values.
83168         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
83169         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
83170         hang on OSF/1 5.1 for DIR on both local and remote file systems.
83171         Reported by (and fix confirmed by) Nelson H. F. Beebe.
83172         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
83173         error from mntctl.
83174         Use mntctl's return value to drive the entry-processing loop, since
83175         we can't rely on the value of the vmt_length member in the last
83176         entry.  On some systems doing so could result in exhausting
83177         virtual memory.  Based in part on a patch from Mike Jetzer.
83178
83179 2003-08-14  Jim Meyering  <jim@meyering.net>
83180         and Paul Eggert  <eggert@twinsun.com>
83181
83182         Merges from coreutils, plus other fixes.
83183         * lib/physmem.c: Merge in portability changes from gcc/libiberty
83184         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
83185         for credits and details.  Thanks to Kaveh Ghazi for helping
83186         to keep these files in sync.
83187         (ARRAY_SIZE): Define it.
83188         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
83189         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
83190         (memcasecmp): Don't assume size_t fits in unsigned int.
83191         Remove casts and duplicate code.
83192         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
83193         (memcpy): Remove definition.
83194         Merge in some clean-up and optimization changes from glibc.
83195         [BLOCKSIZE]: Move definition to top of file.
83196         Ensure that it is a multiple of 64.
83197         Rearrange loop exit tests so as to avoid performing an
83198         additional fread after encountering an error or EOF.
83199         * lib/md5.h (md5_uintptr): Define.
83200         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
83201         return to the initial working directory.  Preserve errno
83202         for caller.
83203         * lib/idcache.c: Include "xalloc.h".
83204         (xmalloc, xrealloc): Remove decls.
83205         (getuser): Remove casts no longer required in C89.
83206         * lib/human.c: Include stdio.h, for sprintf.
83207         * lib/group-member.c: Include "xalloc.h".
83208         (xmalloc, xrealloc): Remove decls.
83209         (get_group_info): Remove casts no longer required in C89.
83210         * lib/getusershell.c (readname): Remove casts no longer required in
83211         C89.
83212         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
83213         * lib/getline.c: Whitespace fix, from coreutils.
83214
83215 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83216
83217         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
83218         Check for isascii.
83219
83220         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83221         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83222         Undo previous (whitespace-only) change.
83223
83224 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83225
83226         * lib/exclude.c: Include <ctype.h>
83227         (IN_CTYPE_DOMAIN): New macro.
83228         (is_space): New fn.
83229         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
83230         and empty lines.
83231
83232         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83233         Undo previous (whitespace-only) change.
83234
83235 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83236
83237         * config/srclist-update: Change update back to the old behavior,
83238         leaving whitespace alone.  Use one 'sed' command rather than a
83239         pipeline.
83240         (fixlicense): Now a variable, not a function.
83241         (remove_trailing_blanks): Remove.
83242         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
83243         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83244         Undo previous (whitespace-only) change.
83245
83246 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83247
83248         Merge from coreutils.
83249         * modules/euidaccess: Add lib_SOURCES, include for new
83250         file euidaccess.h
83251
83252 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83253
83254         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83255         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83256         Normalize leading white space and remove trailing white space.
83257
83258         Merge from coreutils
83259         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
83260
83261         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
83262         0.12.1.  These files are now being upgraded automatically by
83263         ../config/srclist-update.
83264
83265 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83266
83267         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83268         Normalize leading white space and remove trailing white space.
83269         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
83270         notice, as per ../config/srclist-update.
83271
83272         Merge from coreutils.
83273         * lib/euidaccess.h: New file.
83274         * lib/euidaccess.c: Include it.
83275         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
83276         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
83277         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
83278
83279 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83280
83281         * config/srclist-update: Add copyright notice.
83282         (remove_id_lines, remove_trailing_blanks): New constants.
83283         (fixfile): Use them to normalize spacing a bit in copied files.
83284         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83285         Normalize leading white space and remove trailing white space.
83286
83287         * config/texinfo.tex: Sync with texinfo.
83288
83289         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
83290         strtoul.c from libc, to merge coreutils whitespace changes.
83291
83292         * config/srclist.txt: Get the following m4 files from gettext:
83293         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
83294         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
83295         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
83296         wint_t.m4.
83297
83298 2003-08-12  Karl Berry  <karl@gnu.org>
83299
83300         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
83301         been made.
83302
83303 2003-08-11  Paul Eggert  <eggert@twinsun.com>
83304
83305         * modules/gnu-source, m4/gnu-source.m4:
83306         Remove; we're assuming Autoconf 2.54 or later now.
83307         Suggested by Bruno Haible.
83308         * MODULES.html.sh (func_all_modules): Remove gnu-source.
83309
83310 2003-08-11  Bruno Haible  <bruno@clisp.org>
83311
83312         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
83313
83314 2003-08-11  Bruno Haible  <bruno@clisp.org>
83315
83316         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
83317         (vasnprintf): Use it instead of wcslen.
83318
83319 2003-08-11  Bruno Haible  <bruno@clisp.org>
83320
83321         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
83322         value to ensure that _Bool promotes to int. Use #define for _Bool when
83323         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
83324
83325 2003-08-10  Karl Berry  <karl@gnu.org>
83326
83327         * lib/regex.h: update from libc (whitespace fix).
83328
83329 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83330
83331         Merge some files from coreutils.  These changes were
83332         originally made by Jim Meyering.
83333         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
83334         many older Unixes require this.
83335         * lib/alloca.c (alloca): Remove cast to argument of free;
83336         no longer needed in C89.
83337         * lib/alloca_.h, regex.h: Fix white space to match
83338         what GNU indent does.
83339
83340 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83341
83342         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
83343         apparently Emacs's Unicode mode got confused before my 2003-08-05
83344         checkin.
83345
83346 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83347
83348         * m4/extensions.m4: New file.
83349         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
83350         Require gl_USE_SYSTEM_EXTENSIONS.
83351         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
83352         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
83353
83354 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83355
83356         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
83357         * modules/extensions, modules/gnu-source: New files.
83358         * modules/timespec, modules/unlocked-io: Depend on extensions.
83359
83360 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83361
83362         * modules/restrict: New file.
83363         * MODULES.html.sh (func_all_modules): Add restrict.
83364         * modules/regex: Depend on restrict.
83365
83366 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83367
83368         * m4/restrict.m4: New file.
83369         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
83370
83371 2003-08-07  Bruno Haible  <bruno@clisp.org>
83372
83373         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
83374         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
83375
83376 2003-08-07  Bruno Haible  <bruno@clisp.org>
83377
83378         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
83379         makes the module 'getndelim2' compatible with the module 'getline'.
83380
83381 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83382
83383         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
83384         byte with "\201" to avoid glitches when editing that source file
83385         with multi-gnome-terminal.
83386
83387 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83388
83389         * lib/bumpalloc.h: Remove.
83390
83391 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83392
83393         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
83394         * modules/bumpalloc: Remove.
83395
83396 2003-08-04  Paul Eggert  <eggert@twinsun.com>
83397
83398         * lib/getloadavg.c: Change copyright notice and spacing to conform to
83399         GNU coding style.
83400
83401         Merge from coreutils.
83402         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
83403         1. From glibc.
83404         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
83405         from Karl Berry, implemented by Jim Meyering.
83406         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
83407         from Dmitry V. Levin.
83408         Remove anachronistic cast of xrealloc.
83409         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
83410         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
83411         type. Otherwise, it wouldn't compile with at least /bin/cc on
83412         ymp-cray-unicos9.0.2.X.
83413         Combine two mostly-identical uses of alloca into one.
83414         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
83415
83416 2003-08-04  Dave Love  <d.love@dl.ac.uk>
83417
83418         [From Emacs.]
83419
83420         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
83421         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
83422         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
83423         obsolete NLIST_NAME_UNION.
83424         [__GNU__]: Undef BSD and FSCALE.
83425         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
83426
83427 2003-08-03  Paul Eggert  <eggert@twinsun.com>
83428
83429         * lib/stdbool_.h (_Bool): Make it signed char, instead of
83430         an enum type, so that it's guaranteed to promote to int.  See:
83431         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
83432
83433 2003-08-03  Karl Berry  <karl@gnu.org>
83434
83435         * config/depcomp: update from automake.
83436
83437 2003-07-31  Paul Eggert  <eggert@twinsun.com>
83438
83439         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
83440         (strerror): Don't assume that a printable int fits in 14 bytes.
83441
83442 2003-07-31  Bruno Haible  <bruno@clisp.org>
83443
83444         * modules/getpass-gnu: New file.
83445         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
83446
83447 2003-07-31  Bruno Haible  <bruno@clisp.org>
83448
83449         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
83450
83451 2003-07-24  Karl Berry  <karl@gnu.org>
83452
83453         * config/missing: update from automake.
83454
83455 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
83456             Bruno Haible  <bruno@clisp.org>
83457
83458         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
83459         * lib/getline.c (getline, getdelim): Likewise.
83460         Remove _GNU_SOURCE define; now it's defined in config.h through
83461         m4/getline.m4.
83462
83463 2003-07-23  Karl Berry  <karl@gnu.org>
83464
83465         * config/config.sub: update from prep.
83466
83467 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83468
83469         * modules/xalloc (Depends-on): Add exitfail.
83470         * modules/xmemcoll: Likewise.
83471
83472 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83473
83474         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
83475         over-parenthesization in macros.
83476
83477         Sync with coreutils.
83478
83479         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
83480         required by C99.
83481
83482         Use `exit_failure' for xalloc and xmemcoll instead of their own
83483         private exit-failure variables.
83484         * lib/xalloc.h (xalloc_exit_failure): Remove.
83485         * lib/xmalloc.c: Likewise.  Include exitfail.h.
83486         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
83487         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
83488         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
83489         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
83490
83491 2003-07-20  Jim Meyering  <jim@meyering.net>
83492
83493         * modules/closeout (Depends-on): Add exitfail.
83494         Suggestion from Bruno Haible.
83495
83496 2003-07-19  Karl Berry  <karl@gnu.org>
83497
83498         * config/config.sub: update from prep.
83499
83500 2003-07-18  Paul Eggert  <eggert@twinsun.com>
83501
83502         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
83503         Remove.
83504         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
83505         to test that it can stand by itself.  Include "exitfail.h".
83506         Clients should set exit_failure instead.
83507         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
83508
83509 2003-07-18  Bruno Haible  <bruno@clisp.org>
83510
83511         * modules/getndelim2: New file.
83512         * modules/getline: Share files with module getndelim2.
83513         * modules/getnline: Depend on getndelim2 instead of sharing files with
83514         it. Add getnline.c to lib_SOURCES.
83515         * MODULES.html.sh (func_all_modules): Add getndelim2.
83516
83517 2003-07-18  Bruno Haible  <bruno@clisp.org>
83518
83519         * m4/getndelim2.m4: New file.
83520         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
83521         invoke gl_PREREQ_GETNDELIM2.
83522         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
83523         gl_PREREQ_GETNDELIM2.
83524         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
83525         gl_GETNDELIM2.
83526
83527 2003-07-18  Bruno Haible  <bruno@clisp.org>
83528
83529         * lib/getndelim2.h: New file.
83530         * lib/getndelim2.c: Make into a module of its own. Include config.h,
83531         getndelim2.h.
83532         (getndelim2): Make non-static. Change return type to ssize_t.
83533         * lib/getline.h: Change argument names.
83534         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
83535         * lib/getnline.c: Include getndelim2.h.
83536
83537 2003-07-18  Andreas Schwab  <schwab@suse.de>
83538
83539         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
83540
83541 2003-07-17  Karl Berry  <karl@gnu.org>
83542
83543         * config/config.sub: update from prep.
83544
83545 2003-07-17  Bruno Haible  <bruno@clisp.org>
83546
83547         * modules/getnline: New file.
83548         * modules/getline: Add lib/getndelim2.c to source file list.
83549         * MODULES.html.sh (func_all_modules): Add getnline.
83550
83551 2003-07-17  Bruno Haible  <bruno@clisp.org>
83552
83553         * m4/getnline.m4: New file.
83554
83555 2003-07-17  Bruno Haible  <bruno@clisp.org>
83556
83557         * m4/Makefile.am.in: Remove file.
83558         * m4/Makefile.am: Remove file.
83559         * m4/Makefile.in: Remove file.
83560
83561 2003-07-17  Bruno Haible  <bruno@clisp.org>
83562
83563         * lib/getnline.h: New file.
83564         * lib/getnline.c: New file.
83565         * lib/getndelim2.c: New file, extracted from getline.c.
83566         (getndelim2): Renamed from getdelim2, with added nmax argument.
83567         * lib/getline.c: Include getndelim2.c.
83568         (getdelim2): Moved out to getndelim2.c.
83569         (getline, getdelim): Update.
83570
83571 2003-07-17  Bruno Haible  <bruno@clisp.org>
83572
83573         * lib/Makefile.am: Remove file.
83574         * lib/Makefile.in: Remove file.
83575
83576 2003-07-17  Bruno Haible  <bruno@clisp.org>
83577
83578         * configure.in: Remove file.
83579         * Makefile.in: Remove file.
83580
83581 2003-07-17  Bruno Haible  <bruno@clisp.org>
83582
83583         * MODULES.html.sh: Put the </BODY> right before </HTML>.
83584
83585 2003-07-16  Karl Berry  <karl@gnu.org>
83586
83587         * config/srclist-update: was running fixlicense twice, which caused
83588                 texinfo.tex to be nullified for some reason.  Simplify,
83589                 $gplsrc is no longer needed as far as I can see?
83590
83591 2003-07-16  Jim Meyering  <jim@meyering.net>
83592
83593         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
83594
83595 2003-07-15  Paul Eggert  <eggert@twinsun.com>
83596
83597         * config/srclist.txt: Get the following files from gettext-runtime/intl
83598         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
83599         ref-del.sin.  From Bruno Haible.
83600         * config/srclist-update (fixfile): Change grep pattern again, since the
83601         previous fix didn't work (there was another trailing $).  Use
83602         '[$]' to escape the $s.
83603
83604 2003-07-15  Karl Berry  <karl@gnu.org>
83605
83606         * lib/vasnprintf.c: update from gettext.
83607
83608 2003-07-15  Karl Berry  <karl@gnu.org>
83609
83610         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
83611         gets expanded when surrounded by '$'.
83612
83613 2003-07-15  Jim Meyering  <jim@meyering.net>
83614
83615         * modules/save-cwd: Don't depend on error.  From Derek Price.
83616
83617 2003-07-15  Jim Meyering  <jim@meyering.net>
83618
83619         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
83620
83621 2003-07-14  Simon Josefsson  <jas@extundo.com>
83622
83623         * modules/mempcpy: New file.
83624         * MODULES.html.sh (func_all_modules): Add mempcpy.
83625
83626 2003-07-14  Simon Josefsson  <jas@extundo.com>
83627
83628         * m4/mempcpy.m4: New file.
83629
83630 2003-07-14  Simon Josefsson  <jas@extundo.com>
83631
83632         * lib/mempcpy.h: New file.
83633         * lib/mempcpy.c: New file.
83634
83635 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83636
83637         * modules/getdate, modules/posixtm: Depend on mktime.
83638
83639 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83640
83641         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
83642         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
83643         unicodeio.c, unicodeio.h, unlocked-io.h:
83644         Switch from LGPL to GPL.
83645
83646 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83647
83648         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
83649         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
83650         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
83651         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
83652         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
83653         updated automatically by ../config/srclist-update.  This changes
83654         their license from LPGL to GPL.
83655
83656 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83657
83658         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
83659         assumed to refer to the root of the most recent stable gettext version.
83660         * config/srclistvars.sh: Add defaults for eggert.
83661         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
83662         Match "This program" as well as "The program".  This is needed
83663         for gettext.
83664
83665 2003-07-14  Jim Meyering  <jim@meyering.net>
83666
83667         Don't emit diagnostics.  Let callers do that.
83668         * lib/save-cwd.c: Don't include "error.h".
83669         (save_cwd): Don't call error.  Ensure that errno is valid
83670         when returning nonzero.
83671
83672         * lib/save-cwd.h (restore_cwd): Update prototype.
83673         * lib/save-cwd.c (restore_cwd): Remove two parameters.
83674         Simplify.  Don't call error upon failure.  Let callers do that.
83675         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
83676         when auditing is enabled.  But don't bother updating the #if.
83677
83678 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
83679
83680         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
83681         it breaks C++ compilation.
83682         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
83683
83684 2003-07-10  Simon Josefsson  <jas@extundo.com>
83685
83686         * modules/strchrnul (Makefile.am): Add strchrnul.h.
83687
83688 2003-07-10  Jim Meyering  <jim@meyering.net>
83689
83690         * m4/clock_time.m4: Remove trailing blank.
83691         * m4/intmax_t.m4: Likewise.
83692
83693 2003-07-10  Jim Meyering  <jim@meyering.net>
83694
83695         * lib/vasnprintf.c: Remove trailing blanks.
83696         Make cpp indentation consistent.
83697
83698 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83699
83700         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
83701         posixver.c, strftime.c, strnlen.c, strverscmp.c:
83702         Switch from LGPL to GPL.
83703
83704 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83705
83706         * config/srclist.txt: Sort sublists.  Add
83707         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
83708         that differ from gnulib for one reason or another; we'd like this list
83709         to be smaller but for now let's document what we have.
83710
83711 2003-07-08  Paul Eggert  <eggert@twinsun.com>
83712
83713         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
83714         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
83715         and sweeter "eval x=$x".
83716         * config/srclist.txt: Get lib/argp* from glibc.
83717
83718 2003-07-07  Paul Eggert  <eggert@twinsun.com>
83719
83720         * lib/mktime.c: Fix some boundary cases and remove need for floating
83721         point.
83722
83723         Issue a compile-time diagnostic if time_t is floating point, or if
83724         two's complement arithmetic is not in effect, or if arithmetic
83725         right shift does not propagate the sign.  These assumptions were
83726         all in the original code but they weren't checked.
83727
83728         (TIME_T_MIDPOINT, verify): New macros.
83729         (__isleap): Remove; it has integer overflow problems.
83730         (leapyear): New function, without those problems.
83731         (ydhms_tm_diff): Remove; splitting into two parts.
83732         (ydhms_diff): New function, containing the arithmetic part of
83733         the old ydhms_tm_diff function.  Issue a compile-time
83734         diagnostic if we are not using C99 integer division.
83735         Avoid casts when possible.
83736         (guess_time_tm): New function, containing the checking part of
83737         the old ydhms_tm_diff function.  Return the new value, rather than
83738         the difference between it and the old.  Accept a new argument T
83739         so that *T specifies the old value.  Check for overflow in the result.
83740
83741         (__mktime_internal): Use a time_t offset, not a long int offset.
83742         This undoes the 2003-06-04 change, which is no longer needed now
83743         that we have better overflow checking.
83744         (localtime_offset): Likewise.
83745
83746         (__mktime_internal): Avoid harmful overflow on hosts where time_t
83747         and long are 64-bit but int is only 32-bit.
83748         (ydhms_diff): Use long int to store year1 and yday1.
83749         Issue a compile-time diagnostic if long int is not wide enough.
83750
83751         (__mktime_internal): Use long int to store adjusted year and yday.
83752         Use plain C rather than preprocessor commands, if that doesn't
83753         affect efficiency.
83754         Check for overflow (and try to repair) after each probe
83755         rather than checking only at the very end.  This avoids some bugs
83756         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
83757         does not equal GMT offset at maximum time).
83758         Use integer to check for overflow rather than floating point; this
83759         is more portable to non-IEEE hosts, and is a tad faster.
83760         When we detect that we are oscillating between two values,
83761         don't check whether tm_isdst has the requested value, since
83762         we already know the answer.  When tm_isdst has the wrong value,
83763         use a different heuristic to find the right one, based on the
83764         extreme values actually observed in practice in tz2003a,
83765         rather than the (overly optimistic) "previous 3 calendar quarters".
83766
83767         (not_equal_tm, print_tm, check_result): Use "const T" rather than
83768         "T const" to accommodate glibc style.
83769         (check_result): Use less-confusing report format.  "long" -> "long int.
83770         (main): Likewise.
83771         Don't loop if the iteration overflows time_t.
83772         Allow a negative step in the iteration.
83773
83774 2003-07-06  Karl Berry  <karl@gnu.org>
83775
83776         * config/depcomp: update from automake.
83777         * config/config.sub: update from prep.
83778
83779 2003-07-03  Karl Berry  <karl@gnu.org>
83780
83781         * config/config.guess: update from prep.
83782
83783 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83784
83785         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
83786         xreadlink.c now includes it unconditionally.
83787
83788 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83789
83790         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
83791         having it depend on HAVE_SYS_TYPES_H.
83792
83793 2003-07-01  Bruno Haible  <bruno@clisp.org>
83794
83795         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
83796         <sys/types.h> should be sufficient.
83797         Reported by Paul Eggert.
83798
83799 2003-06-26  Karl Berry  <karl@gnu.org>
83800
83801         * config/depcomp: update from automake.
83802
83803 2003-06-26  Bruno Haible  <bruno@clisp.org>
83804
83805         * modules/human: Depend on module stdbool.
83806
83807 2003-06-25  Bruno Haible  <bruno@clisp.org>
83808
83809         * modules/readlink: New file.
83810         * modules/xreadlink: Depend on it.
83811         * MODULES.html.sh (func_all_modules): Add readlink.
83812
83813 2003-06-25  Bruno Haible  <bruno@clisp.org>
83814
83815         * m4/readlink.m4: New file.
83816
83817 2003-06-25  Bruno Haible  <bruno@clisp.org>
83818
83819         * lib/readlink.c: New file.
83820
83821 2003-06-22  Karl Berry  <karl@gnu.org>
83822
83823         * config/srclist.txt: update mkinstalldirs from automake.
83824         * config/mkinstalldirs: update.
83825
83826 2003-06-22  Bruno Haible  <bruno@clisp.org>
83827
83828         Portability to mingw32.
83829         * m4/ssize_t.m4: New file, from GNU gettext.
83830         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
83831         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
83832
83833 2003-06-22  Bruno Haible  <bruno@clisp.org>
83834
83835         * modules/safe-read: Add m4/ssize_t.m4.
83836         * modules/xreadlink: Add m4/ssize_t.m4.
83837
83838 2003-06-20  Bruno Haible  <bruno@clisp.org>
83839
83840         Assume C89, so PARAMS isn't needed.
83841         * lib/unicodeio.h (PARAMS): Remove.
83842         * lib/unicodeio.c: Don't use PARAMS.
83843
83844 2003-06-18  Karl Berry  <karl@gnu.org>
83845
83846         * config/config.{guess,sub}: update from prep.
83847
83848 2003-06-18  Jim Meyering  <jim@meyering.net>
83849
83850         Merge changes from coreutils.
83851         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
83852         Remove explicit declarations of xmalloc and realloc.
83853         Include xalloc.h.
83854         (read_utmp): Remove anachronistic cast of xmalloc.
83855
83856 2003-06-17  Paul Eggert  <eggert@twinsun.com>
83857
83858         Assume C89, so PARAMS isn't needed.
83859         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
83860         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
83861         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
83862         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
83863         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
83864         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
83865         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
83866         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
83867         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
83868         lib/xstrtod.h, lib/xstrtol.h: Likewise.
83869         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
83870         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
83871         no longer needed. Anyway, config.h should always be included before any
83872         other file.
83873
83874 2003-06-11  Simon Josefsson  <jas@extundo.com>
83875
83876         * modules/sysexits: New file.
83877         * MODULES.html.sh (func_all_modules): Add sysexits.
83878
83879 2003-06-11  Simon Josefsson  <jas@extundo.com>
83880
83881         * lib/sysexit_.h: New file.
83882
83883 2003-06-11  Derek Price  <derek@ximbiot.com>
83884
83885         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
83886         necessary.
83887
83888 2003-06-11  Bruno Haible  <bruno@clisp.org>
83889
83890         * m4/sysexits.m4: New file.
83891
83892 2003-06-10  Simon Josefsson  <jas@extundo.com>
83893
83894         * lib/argp.h: New file, from glibc.
83895         * lib/argp-ba.c: New file, from glibc.
83896         * lib/argp-eexst.c: New file, from glibc.
83897         * lib/argp-fmtstream.c: New file, from glibc.
83898         * lib/argp-fmtstream.h: New file, from glibc.
83899         * lib/argp-fs-xinl.c: New file, from glibc.
83900         * lib/argp-help.c: New file, from glibc.
83901         * lib/argp-namefrob.h: New file, from glibc.
83902         * lib/argp-parse.c: New file, from glibc.
83903         * lib/argp-pv.c: New file, from glibc.
83904         * lib/argp-pvh.c: New file, from glibc.
83905         * lib/argp-xinl.c: New file, from glibc.
83906
83907 2003-06-10  Simon Josefsson  <jas@extundo.com>
83908
83909         * modules/strchrnul: New file.
83910
83911 2003-06-10  Simon Josefsson  <jas@extundo.com>
83912
83913         * modules/argp: New file.
83914
83915 2003-06-10  Simon Josefsson  <jas@extundo.com>
83916
83917         * m4/strchrnul.m4: New file.
83918
83919 2003-06-10  Simon Josefsson  <jas@extundo.com>
83920
83921         * lib/strchrnul.h: New file.
83922         * lib/strchrnul.c: New file.
83923
83924 2003-06-10  Bruno Haible  <bruno@clisp.org>
83925
83926         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
83927
83928 2003-06-07  Karl Berry  <karl@gnu.org>
83929
83930         * config/config.{guess,sub}: update from prep.
83931
83932 2003-06-07  Jim Meyering  <jim@meyering.net>
83933
83934         * modules/strtod: Use $(...) notation, not @...@ for
83935         AC_REPLACE'd variables.
83936         * modules/localcharset: Likewise.
83937
83938 2003-06-07  Jim Meyering  <jim@meyering.net>
83939
83940         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
83941         in place of my name in the copyright comment.
83942         Remove definition and uses of __P.
83943
83944         From coreutils.
83945         * lib/stat.c: Don't declare xmalloc explicitly.
83946         Instead, include "xalloc.h".
83947         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
83948         xrealloc, and xcalloc return values.
83949         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
83950         Improve comment.
83951         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
83952
83953 2003-06-07  Bruno Haible  <bruno@clisp.org>
83954
83955         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
83956         avoid AC_CONFIG_LINKS.
83957         * modules/fnmatch (Makefile.am): Use explicit creation rule for
83958         fnmatch.h, to avoid AC_CONFIG_LINKS.
83959         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
83960
83961 2003-06-07  Bruno Haible  <bruno@clisp.org>
83962
83963         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
83964         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
83965         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83966         directory.
83967         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
83968         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83969         directory.
83970
83971 2003-06-06  Jim Meyering  <jim@meyering.net>
83972
83973         Merge from coreutils.
83974         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
83975         Consolidate declarations and initializations of *_base* locals.
83976
83977         Merge from coreutils.
83978         This avoids a core dump on systems without GNU putenv,
83979         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
83980         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
83981         (unsetenv): New static function, from GNU libc.
83982         (rpl_putenv): Use it.
83983
83984         * lib/modechange.c: Remove trailing blanks.
83985
83986         Merge from coreutils.
83987         * lib/fsusage.c: Remove declaration of statfs.
83988         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
83989
83990         * lib/posixtm.c: Include <stdbool.h> unconditionally.
83991
83992 2003-06-06  Jim Meyering  <jim@meyering.net>
83993
83994         * lib/stdbool_.h: Renamed from stdbool.h.in.
83995
83996 2003-06-06  Jim Meyering  <jim@meyering.net>
83997             Bruno Haible  <bruno@clisp.org>
83998
83999         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
84000         Adjust Makefile.am snippet not to redirect directly to target.
84001         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
84002
84003 2003-06-05  Paul Eggert  <eggert@twinsun.com>
84004
84005         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
84006         mismatch, look in future quarters as well as past.  This fixes a
84007         bug when processing fall-backwards gaps immediately after a long
84008         period of daylight-saving time.
84009
84010         * lib/mktime.c: Assume freestanding C89 or better.
84011         (HAVE_LIMITS_H): Remove.  Assume it's 1.
84012         (__P): Remove; not used.
84013         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
84014         (mktime, not_equal_tm, print_tm, check_result,
84015         main): Use prototypes.  Use const * where appropriate.
84016         (main): Fix typo in testing code that uncovered by above changes.
84017         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
84018
84019 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84020
84021         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
84022         locale.h, localeconv.  This merges changes from coreutils.
84023
84024         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
84025         It can be removed after the next Autoconf is released.
84026         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
84027         needed.
84028
84029 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84030
84031         * lib/mktime.c: Fix Debian bug 177940
84032         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
84033         (localtime_offset): Now long int, not time_t, because we want it
84034         to be guaranteed to be signed.  All uses changed.
84035         (__mktime_internal): If overflow would occur when adding offset,
84036         don't add it.
84037
84038         Merge 'human' changes from coreutils.  Rewrite to support
84039         locale-specific notations like thousands separators.
84040         * lib/human.c: Simplify authorship notice.
84041         Include human.h immediately after config.h.
84042         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
84043         <limits.h>: Do not include, since human.h does.
84044         (SIZE_MAX, UINTMAX_MAX): New macros.
84045         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
84046         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
84047         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
84048         (power_letter): Renamed from suffixes.
84049         (generate_suffix_backwards): Remove.
84050         (adjust_value): Now takes int style (because of human.h changes)
84051         and long double value (for greater precision on some platforms).
84052         (group_number): New function.
84053         (human_readable): Use it.  Use integer options, not enum.
84054         Put the options before the sizes in the arg list.
84055         Support all the new options.
84056         The old human_readable function has been removed;
84057         use inttostr.h instead.
84058         (human_readable, default_block_size, humblock):
84059         Use uintmax_t, not int, for block sizes.
84060         (human_readable_inexact, block_size_types): Remove.
84061         (block_size_opts): New constant.
84062         (human_options): Renamed from human_block_size, with new signature
84063         that allows block sizes up to UINTMAX_MAX.  All callers changed.
84064         * lib/human.h: Add copyright and authorship notice.
84065         Include <limits.h> and <stdbool.h> unconditionally.
84066         (PARAMS): Remove.  All uses removed.
84067         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
84068         (enum human_inexact_style): Remove tag; now a nameless enum.
84069         (human_floor, human_ceiling, human_round_to_even): Now have
84070         values 2, 0, 1 rather than -1, 1, 0.
84071         (human_group_digits, human_suppress_point_zero, human_autoscale,
84072         human_base_1024, human_SI, human_B): New constants.
84073         (human_readable_inexact, human_block_size): Remove.
84074         (human_readable): Size args are now uintmax_t, not int.
84075         (human_options): New decl.
84076
84077         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
84078         unnecessary now that we assume C89 or better.  This change
84079         imported from coreutils.
84080
84081         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
84082         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
84083         in the 2003-05-30 sync from glibc.
84084
84085         .h files should stand alone, but we shouldn't include <sys/types.h>
84086         if we can get away with just <stddef.h>.
84087
84088         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
84089         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
84090         rather than <sys/types.h>, as we merely need size_t.
84091         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
84092         to get size_t.
84093         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
84094         Include <stdio.h>, to get FILE.
84095         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
84096         memcasecmp.h has included <stddef.h> and all we need is size_t.
84097         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
84098         our interface, instead of including <sys/types.h>
84099
84100 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84101
84102         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
84103         now, as glibc mktime is buggy on non-glibc systems.
84104
84105 2003-06-03  Karl Berry  <karl@gnu.org>
84106
84107         * config/config.sub: update from prep.
84108
84109 2003-06-02  Paul Eggert  <eggert@twinsun.com>
84110
84111         [from coreutils]
84112         Fix some minor time-related bugs with POSIX time arguments.
84113         Some valid time stamps were being rejected (notably -1, and
84114         time stamps before 1900 on 64-bit hosts).  And some invalid
84115         time stamps were being accepted, e.g. September 31.
84116
84117         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
84118         that we can return (time_t) -1 successfully.
84119         * lib/posixtm.c: Likewise.
84120         [HAVE_STDBOOL_H]: Include <stdbool.h>.
84121         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
84122         (t): Remove static var.
84123         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
84124         of static var.  All uses changed.
84125         (year): Do not reject years before 1900; they can occur with
84126         64-bit time_t.
84127         (posix_time_parse): Do not check for out-of-range components;
84128         that is now the caller's responsibility, since our checks were
84129         only approximations.
84130         (posixtime): Use mktime to check for out-of-range components,
84131         since it knows them exactly.
84132         If mktime returns (time_t) -1, check whether an error actually occurred
84133         by invoking localtime on -1.
84134         (main) [TEST_POSIXTIME]: Check for input data errors, and report
84135         posixtime failures better.
84136         Improve the test data (in comments only).
84137
84138 2003-06-02  Karl Berry  <karl@gnu.org>
84139
84140         * config/mkinstalldirs (version): new variable.
84141         (--version): new option.
84142         (usage): improve message.
84143
84144 2003-05-30  Karl Berry  <karl@gnu.org>
84145
84146         * lib/mktime.c: update from libc.
84147
84148 2003-05-30  Bruno Haible  <bruno@clisp.org>
84149
84150         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
84151         * config/config.rpath: Upgrade to gettext-0.12.1.
84152
84153 2003-05-30  Bruno Haible  <bruno@clisp.org>
84154
84155         * m4/gettext.m4: Upgrade to gettext-0.12.1.
84156         * m4/nls.m4: New file, from gettext-0.12.1.
84157         * m4/po.m4: New file, from gettext-0.12.1.
84158         * m4/progtest.m4: Upgrade to gettext-0.12.1.
84159
84160 2003-05-30  Bruno Haible  <bruno@clisp.org>
84161
84162         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
84163         * lib/localcharset.h: Likewise.
84164         * lib/localcharset.c: Likewise.
84165
84166 2003-05-29  Karl Berry  <karl@gnu.org>
84167
84168         * config/config.rpath: update from gettext.
84169
84170 2003-05-28  Paul Eggert  <eggert@twinsun.com>
84171
84172         Assume the headers required for C89 freestanding compilers.
84173         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
84174         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
84175         * m4/human.m4 (gl_HUMAN): Likewise.
84176         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
84177         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
84178         * m4/userspec.m4 (gl_USERSPEC): Likewise.
84179         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
84180         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
84181         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
84182
84183 2003-05-28  Paul Eggert  <eggert@twinsun.com>
84184
84185         Assume the headers required for C89 freestanding compilers.
84186         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
84187         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
84188         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
84189         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
84190         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
84191         define, since <limits.h> is guaranteed to do that.
84192         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
84193         * lib/exclude.c: Include <stdbool.h> unconditionally.
84194         * lib/tempname.c: Include <stddef.h> unconditionally.
84195         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
84196         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
84197         <stddef.h> does that.
84198         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
84199         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
84200         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
84201         needed.
84202         * lib/xstrtol.c: Likewise.
84203         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
84204         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
84205
84206         * lib/addext.c (addext): Use assignment rather than cast, to avoid
84207         warnings on some platforms.
84208
84209         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
84210         arbitrarily.
84211
84212 2003-05-26  Jim Meyering  <jim@meyering.net>
84213
84214         Merge in a change from coreutils:
84215         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
84216         that is guaranteed to be `no'.  Use `no_such_member' to indicate
84217         that condition, rather than `-1' which is slightly misleading.
84218         Change the name of the cache variable to have the gl_ prefix.
84219         Prompted by a patch from Richard Dawe for DJGPP.
84220
84221 2003-05-24  Karl Berry  <karl@gnu.org>
84222
84223         * config/config.guess: update from prep.
84224
84225 2003-05-22  Karl Berry  <karl@gnu.org>
84226
84227         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
84228
84229 2003-05-20  Karl Berry  <karl@gnu.org>
84230
84231         * config/config.guess: update from prep.
84232
84233 2003-05-18  Karl Berry  <karl@gnu.org>
84234
84235         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
84236         might actually be set by the user.
84237
84238         * config/depcomp, install-sh, mdate-sh: update from automake.
84239
84240 2003-05-17  Bruno Haible  <bruno@clisp.org>
84241
84242         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
84243         invalid expansion for AC_EGREP_CPP.
84244         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
84245         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
84246         Suggested by Akim Demaille <akim@epita.fr> in
84247         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
84248
84249 2003-05-12  Jim Meyering  <jim@meyering.net>
84250
84251         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
84252         the space-padded-by-default conversion specifiers, %e, %k, %l.
84253
84254 2003-05-12  Bruno Haible  <bruno@clisp.org>
84255
84256         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
84257         the string is longer than 4 KB.
84258
84259 2003-05-11  Karl Berry  <karl@gnu.org>
84260
84261         * config/config.{guess,sub}: update from prep.
84262
84263 2003-05-09  Bruno Haible  <bruno@clisp.org>
84264
84265         * modules/error: Add m4/strerror_r.m4 to file list.
84266
84267 2003-05-03  Bruno Haible  <bruno@clisp.org>
84268
84269         Upgrade to Unicode-4.0.
84270         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
84271         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
84272         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
84273         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
84274         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
84275         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
84276         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
84277         Change width of U+E0100..U+E01EF from 1 to 0.
84278
84279 2003-04-25  Jim Meyering  <jim@meyering.net>
84280
84281         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
84282         of type size_t, not int.
84283
84284 2003-04-25  Bruno Haible  <bruno@clisp.org>
84285
84286         * lib/copy-file.c: Include <stddef.h>, for size_t.
84287
84288 2003-04-21  Paul Eggert  <eggert@twinsun.com>
84289
84290         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
84291         code which expansion is under static control.  Patch imported from
84292         Akim Demaille's patch to Bison; see
84293         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
84294
84295 2003-04-14  Bruno Haible  <bruno@clisp.org>
84296
84297         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
84298
84299 2003-04-11  Jim Meyering  <jim@meyering.net>
84300
84301         Merge changes from Coreutils.
84302
84303         2003-03-22  Jim Meyering  <jim@meyering.net>
84304
84305         * lib/strftime.c (widen): Cast alloca return value to proper type.
84306
84307         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
84308
84309         From GNU libc.
84310         * lib/strftime.c (my_strftime): Handle very large width
84311         specifications for numeric values correctly.  Improve checks for
84312         overflow.
84313
84314         2003-01-19  Jim Meyering  <jim@meyering.net>
84315
84316         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
84317         definitions.
84318         (nl_get_alt_digit) [! defined my_strftime]: Define.
84319         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
84320         _nl_get_alt_digit and _nl_get_walt_digit.
84321
84322         * lib/strftime.c (my_strftime): Merge in locale-related changes from
84323         libc. These changes have no effect outside of _LIBC.
84324
84325 2003-04-10  Bruno Haible  <bruno@clisp.org>
84326
84327         * modules/findprog: New file.
84328         * MODULES.html.sh (func_all_modules): Add it.
84329
84330 2003-04-10  Bruno Haible  <bruno@clisp.org>
84331
84332         * m4/findprog.m4: New file.
84333         * m4/eaccess.m4: New file.
84334
84335 2003-04-10  Bruno Haible  <bruno@clisp.org>
84336
84337         * lib/findprog.h: New file, from GNU gettext.
84338         * lib/findprog.c: New file, from GNU gettext.
84339
84340 2003-04-05  Jim Meyering  <jim@meyering.net>
84341
84342         Merge changes from Coreutils.
84343
84344         * lib/exclude.h (PARAMS): Remove definition and uses.
84345         * lib/exclude.c: Remove uses of `PARAMS'.
84346
84347         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
84348         Add test-cases for DOS filenames. Declare program_name.
84349         (main): Set up program_name.  Patch by Rich Dawe.
84350
84351         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
84352         error from mntctl.
84353         Use mntctl's return value to drive the entry-processing loop, since
84354         we can't rely on the value of the vmt_length member in the last
84355         entry.  On some systems doing so could result in exhausting
84356         virtual memory.  Based in part on a patch from Mike Jetzer.
84357
84358 2003-04-04  Bruno Haible  <bruno@clisp.org>
84359
84360         * modules/linebreak: New file.
84361         * MODULES.html.sh (func_all_modules): Add it.
84362
84363 2003-04-04  Bruno Haible  <bruno@clisp.org>
84364
84365         * m4/linebreak.m4: New file.
84366
84367 2003-04-04  Bruno Haible  <bruno@clisp.org>
84368
84369         * lib/linebreak.h: New file, from GNU gettext.
84370         * lib/linebreak.c: New file, from GNU gettext with slight
84371         modifications.
84372         * lib/lbrkprop.h: New file, from GNU gettext.
84373
84374 2003-04-03  Bruno Haible  <bruno@clisp.org>
84375
84376         * modules/utf8-ucs4: New file.
84377         * modules/utf16-ucs4: New file.
84378         * modules/ucs4-utf8: New file.
84379         * modules/ucs4-utf16: New file.
84380         * MODULES.html.sh (func_all_modules): Add them.
84381
84382 2003-04-03  Bruno Haible  <bruno@clisp.org>
84383
84384         * m4/utf-ucs4.m4: New file.
84385         * m4/ucs4-utf.m4: New file.
84386
84387 2003-04-03  Bruno Haible  <bruno@clisp.org>
84388
84389         * lib/utf8-ucs4.h: New file, from GNU gettext.
84390         * lib/utf16-ucs4.h: New file, from GNU gettext.
84391         * lib/ucs4-utf8.h: New file, from GNU gettext.
84392         * lib/ucs4-utf16.h: New file, from GNU gettext.
84393
84394 2003-04-02  Bruno Haible  <bruno@clisp.org>
84395
84396         * modules/binary-io: New file.
84397         * MODULES.html.sh (func_all_modules): Add it.
84398
84399 2003-04-02  Bruno Haible  <bruno@clisp.org>
84400
84401         * lib/binary-io.h: New file, from GNU gettext.
84402
84403 2003-04-01  Bruno Haible  <bruno@clisp.org>
84404
84405         * modules/pathname: New file.
84406         * MODULES.html.sh (func_all_modules): Add it.
84407
84408 2003-04-01  Bruno Haible  <bruno@clisp.org>
84409
84410         * lib/pathname.h: New file, from GNU gettext.
84411         * lib/concatpath.c: New file, from GNU gettext.
84412
84413 2003-03-30  Bruno Haible  <bruno@clisp.org>
84414
84415         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
84416
84417 2003-03-30  Bruno Haible  <bruno@clisp.org>
84418
84419         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
84420         function chown() doesn't exist.
84421
84422 2003-03-28  Bruno Haible  <bruno@clisp.org>
84423
84424         * modules/copy-file: New file.
84425         * MODULES.html.sh (func_all_modules): Add it.
84426
84427 2003-03-28  Bruno Haible  <bruno@clisp.org>
84428
84429         * m4/copy-file.m4: New file.
84430
84431 2003-03-28  Bruno Haible  <bruno@clisp.org>
84432
84433         * lib/copy-file.h: New file, from GNU gettext.
84434         * lib/copy-file.c: New file, from GNU gettext.
84435
84436 2003-03-18  Jim Meyering  <jim@meyering.net>
84437
84438         * lib/quote.c (quote_n): Fix typo in comment.
84439
84440 2003-03-18  Bruno Haible  <bruno@clisp.org>
84441
84442         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
84443         checking.
84444         * m4/onceonly_2_57.m4: Likewise.
84445
84446 2003-03-17  Bruno Haible  <bruno@clisp.org>
84447
84448         * m4/onceonly.m4: Require autoconf 2.54 or newer.
84449         (m4_quote): Remove macro.
84450         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
84451
84452 2003-03-14  Jim Meyering  <jim@meyering.net>
84453
84454         Merge changes from Coreutils.
84455         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
84456         to be const, in order to avoid warnings.
84457         (obstack_room): Likewise.
84458         (obstack_empty_p): Likewise.
84459
84460 2003-03-14  Bruno Haible  <bruno@clisp.org>
84461
84462         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
84463         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
84464
84465 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84466
84467         Merge changes from Bison.
84468         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
84469         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
84470         when compiling Bison 1.875's `bitset bset = obstack_alloc
84471         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
84472         * lib/hash.c: Include <stdbool.h> unconditionally.
84473
84474 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84475
84476         * m4/onceonly.m4 (m4_quote): New macro.
84477         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
84478         Quote AC_FOREACH variable-expansions properly.
84479
84480 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84481
84482         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
84483
84484 2003-03-09  Paul Eggert  <eggert@twinsun.com>
84485
84486         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
84487         Reported by Bruce Becker; see:
84488         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
84489
84490 2003-03-03  Paul Eggert  <eggert@twinsun.com>
84491             Bruno Haible  <bruno@clisp.org>
84492
84493         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
84494         Reported by John Hughes, see
84495         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
84496
84497 2003-02-20  Bruno Haible  <bruno@clisp.org>
84498
84499         * MODULES.html.sh (func_all_modules): Add poll.
84500
84501 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84502
84503         * modules/poll: New file.
84504
84505 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84506
84507         * lib/poll_.h: New file.
84508         * lib/poll.c: New file.
84509
84510 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84511
84512         * m4/poll.m4: New file.
84513
84514 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84515
84516         * modules/mathl: New file.
84517
84518 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84519
84520         * lib/mathl.h: New file.
84521         * lib/acosl.c: New file.
84522         * lib/asinl.c: New file.
84523         * lib/atanl.c: New file.
84524         * lib/ceill.c: New file.
84525         * lib/cosl.c: New file.
84526         * lib/expl.c: New file.
84527         * lib/floorl.c: New file.
84528         * lib/frexpl.c: New file.
84529         * lib/ldexpl.c: New file.
84530         * lib/logl.c: New file.
84531         * lib/sincosl.c: New file.
84532         * lib/sinl.c: New file.
84533         * lib/sqrtl.c: New file.
84534         * lib/tanl.c: New file.
84535         * lib/trigl.c: New file.
84536         * lib/trigl.h: New file.
84537
84538 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84539
84540         * m4/mathl.m4: New file.
84541
84542 2003-02-18  Bruno Haible  <bruno@clisp.org>
84543
84544         * MODULES.html.sh (func_all_modules): Add mathl.
84545
84546 2003-02-17  Bruno Haible  <bruno@clisp.org>
84547
84548         * modules/mkdtemp: New module.
84549         * MODULES.html.sh (func_all_modules): Add it.
84550
84551 2003-02-17  Bruno Haible  <bruno@clisp.org>
84552
84553         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
84554
84555 2003-02-17  Bruno Haible  <bruno@clisp.org>
84556
84557         * lib/mkdtemp.h: New file, from GNU gettext.
84558         * lib/mkdtemp.c: New file, from GNU gettext.
84559
84560 2003-02-02  Jim Meyering  <jim@meyering.net>
84561
84562         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
84563         e.g. glibc-2.2.93.
84564
84565 2003-01-31  Bruno Haible  <bruno@clisp.org>
84566
84567         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
84568         'rpl_rename'.
84569         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
84570         'rpl_strnlen'.
84571         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
84572         'rpl_strtod'.
84573         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
84574         'rpl_utime'.
84575
84576 2003-01-31  Bruno Haible  <bruno@clisp.org>
84577
84578         * lib/rename.c: #undef rename before defining rpl_rename.
84579         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
84580
84581 2003-01-30  Bruno Haible  <bruno@clisp.org>
84582
84583         * modules/vasnprintf, modules/vasprintf: New modules.
84584         * MODULES.html.sh (func_all_modules): Add them.
84585
84586 2003-01-30  Bruno Haible  <bruno@clisp.org>
84587
84588         * m4/signed.m4: New file, from GNU gettext.
84589         * m4/longdouble.m4: New file, from GNU gettext.
84590         * m4/wchar_t.m4: New file, from GNU gettext.
84591         * m4/wint_t.m4: New file, from GNU gettext.
84592         * m4/vasnprintf.m4: New file.
84593         * m4/vasprintf.m4: New file.
84594
84595 2003-01-30  Bruno Haible  <bruno@clisp.org>
84596
84597         * lib/printf-args.h: New file, from GNU gettext.
84598         * lib/printf-args.c: New file, from GNU gettext.
84599         * lib/printf-parse.h: New file, from GNU gettext.
84600         * lib/printf-parse.c: New file, from GNU gettext.
84601         * lib/vasnprintf.h: New file, from GNU gettext.
84602         * lib/vasnprintf.c: New file, from GNU gettext.
84603         * lib/asnprintf.c: New file, from GNU gettext.
84604         * lib/vasprintf.h: New file, from GNU gettext with modifications.
84605         * lib/vasprintf.c: New file, from GNU gettext.
84606         * lib/asprintf.c: New file, from GNU gettext.
84607
84608 2003-01-29  Bruno Haible  <bruno@clisp.org>
84609
84610         * modules/stpncpy: New module.
84611         * MODULES.html.sh (func_all_modules): Add it.
84612
84613 2003-01-29  Bruno Haible  <bruno@clisp.org>
84614
84615         * m4/stpncpy.m4: New file.
84616
84617 2003-01-29  Bruno Haible  <bruno@clisp.org>
84618
84619         * lib/stpncpy.h: New file, from GNU gettext with modifications.
84620         * lib/stpncpy.c: New file, from GNU gettext with modifications.
84621
84622 2003-01-28  Bruno Haible  <bruno@clisp.org>
84623
84624         * modules/c-ctype: New module.
84625         * MODULES.html.sh (func_all_modules): Add it.
84626
84627 2003-01-28  Bruno Haible  <bruno@clisp.org>
84628
84629         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
84630         Paul Eggert.
84631         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
84632         Paul Eggert.
84633
84634 2003-01-27  Bruno Haible  <bruno@clisp.org>
84635
84636         * modules/xsetenv: New module.
84637         * MODULES.html.sh (func_all_modules): Add it.
84638
84639 2003-01-27  Bruno Haible  <bruno@clisp.org>
84640
84641         * lib/xsetenv.h: New file, from GNU gettext.
84642         * lib/xsetenv.c: New file, from GNU gettext.
84643
84644 2003-01-23  Jim Meyering  <jim@meyering.net>
84645
84646         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
84647         from working on systems without dirfd (at least Irix and OSF1/Tru64).
84648
84649 2003-01-23  Bruno Haible  <bruno@clisp.org>
84650
84651         * modules/minmax: New module.
84652         * MODULES.html.sh (func_all_modules): Add it.
84653
84654 2003-01-23  Bruno Haible  <bruno@clisp.org>
84655
84656         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
84657         Eggert.
84658
84659 2003-01-22  Bruno Haible  <bruno@clisp.org>
84660
84661         * modules/exit: New module.
84662         * MODULES.html.sh (func_all_modules): Add it.
84663
84664 2003-01-22  Bruno Haible  <bruno@clisp.org>
84665
84666         * lib/exit.h: New file, from GNU gettext.
84667
84668 2003-01-19  Bruno Haible  <bruno@clisp.org>
84669
84670         * gnulib-tool: Recognize option --extract-maintainer.
84671         (func_get_maintainer): New function.
84672         * modules/*: Add Maintainer entry.
84673
84674 2003-01-16  Jim Meyering  <jim@meyering.net>
84675
84676         * m4/regex.m4: The `regex' struct is both input and output.
84677         Initialize it before each use.  Patch by Tim Waugh.
84678
84679 2003-01-16  Bruno Haible  <bruno@clisp.org>
84680
84681         * MODULES.html.sh: Add a table of contents. Add the module name as
84682         leftmost column. Add hyperlinks.
84683
84684 2003-01-15  Bruno Haible  <bruno@clisp.org>
84685
84686         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
84687
84688 2003-01-15  Bruno Haible  <bruno@clisp.org>
84689
84690         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
84691         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
84692         suffix.
84693
84694 2003-01-15  Bruno Haible  <bruno@clisp.org>
84695
84696         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
84697
84698 2003-01-15  Bruno Haible  <bruno@clisp.org>
84699
84700         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
84701         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
84702
84703 2003-01-14  Jim Meyering  <jim@meyering.net>
84704
84705         * lib/same.c (same_name): Tweak a comment.
84706
84707 2003-01-14  Bruno Haible  <bruno@clisp.org>
84708
84709         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
84710         when a string comparison is sufficient.
84711
84712 2003-01-14  Bruno Haible  <bruno@clisp.org>
84713
84714         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
84715         'unsigned int'.
84716
84717 2003-01-14  Bruno Haible  <bruno@clisp.org>
84718
84719         * lib/hash-pjw.c: Add comment about low quality of this function.
84720
84721 2003-01-13  Bruno Haible  <bruno@clisp.org>
84722
84723         * modules/stpcpy: Distribute lib/stpcpy.h.
84724         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
84725
84726 2003-01-13  Bruno Haible  <bruno@clisp.org>
84727
84728         * modules/*: Add a description.
84729         * modules/strpbrk: Fix Makefile.am snippet.
84730         * modules/strtoimax: Fix dependencies.
84731         * modules/strtoumax: Likewise.
84732
84733 2003-01-13  Bruno Haible  <bruno@clisp.org>
84734
84735         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
84736         * modules/alloca (Makefile.am): All object files depend on alloca.h.
84737         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
84738
84739 2003-01-13  Bruno Haible  <bruno@clisp.org>
84740
84741         * gnulib-tool (func_create_testdir): Store config/* files in the main
84742         directory.
84743         * config.rpath: Move to ...
84744         * config/config.rpath: ... here.
84745         * modules/gettext: Contains config/config.rpath, not config.rpath.
84746         * modules/iconv: Likewise.
84747
84748 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84749
84750         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84751         to avoid collisions with libcurses and libreadline.
84752
84753         * m4/getstr.m4: Remove.
84754         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
84755
84756 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84757
84758         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84759         to avoid collisions with libcurses and libreadline.
84760
84761         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
84762         * lib/getstr.h, getstr.c: Remove.
84763         * lib/getline.c: Include "getline.h", to check interface.
84764         Move body of old getstr.c here: this defines MIN_CHUNK and
84765         declares getdelim2, which is renamed from getstr.
84766         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
84767
84768         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
84769         All uses changed.
84770         * lib/linebuffer.h: Likewise.
84771         (readline): Remove backward-compatibility macro.
84772
84773 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84774
84775         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84776         to avoid collisions with libcurses and libreadline.
84777         * getstr: Remove.
84778         * MODULES.html.sh: Remove getstr.
84779         * modules/getline: Depend on unlocked-io, not getstr.
84780
84781 2003-01-12  Jim Meyering  <jim@meyering.net>
84782
84783         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
84784
84785 2003-01-10  Bruno Haible  <bruno@clisp.org>
84786
84787         * modules/alloca: Change Makefile.am requirements. Simplify Include
84788         requirements. Add lib/alloca_.h to file list.
84789
84790 2003-01-10  Bruno Haible  <bruno@clisp.org>
84791
84792         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
84793
84794 2003-01-10  Bruno Haible  <bruno@clisp.org>
84795
84796         * lib/alloca_.h: New file.
84797         * lib/getdate.y: Unconditionally include alloca.h.
84798         * lib/makepath.c: Likewise.
84799         * lib/setenv.c: Likewise.
84800         * lib/userspec.c: Likewise.
84801
84802 2003-01-09  Karl Berry  <karl@gnu.org>
84803
84804         * MODULES.html.sh: include `dirname $0` in PATH, to find
84805         gnulib-tool.
84806
84807 2003-01-09  Bruno Haible  <bruno@clisp.org>
84808
84809         * modules/stdbool: Change configure.ac, Makefile.am requirements.
84810         Simplify Include requirements. Add lib/stdbool.h.in to file list.
84811
84812 2003-01-09  Bruno Haible  <bruno@clisp.org>
84813
84814         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
84815
84816 2003-01-09  Bruno Haible  <bruno@clisp.org>
84817
84818         * lib/stdbool.h.in: New file.
84819
84820 2003-01-09  Bruno Haible  <bruno@clisp.org>
84821
84822         * gnulib-tool (func_all_modules): Ignore files ending in ~.
84823         * MODULES.html.sh: Likewise.
84824
84825 2003-01-08  Jim Meyering  <jim@meyering.net>
84826
84827         * lib/full-write.c: Undefine and define-away `const' after inclusion
84828         of errno.h, not before.  Suggestion from Bruno Haible.
84829
84830 2003-01-08  Bruno Haible  <bruno@clisp.org>
84831
84832         * modules/full-read: Depend on full-write.
84833
84834 2003-01-08  Bruno Haible  <bruno@clisp.org>
84835
84836         * lib/safe-read.c: Include specification header first, to ensure its
84837         selfcontainedness.
84838         * lib/full-write.c: Likewise.
84839
84840 2003-01-07  Jim Meyering  <jim@meyering.net>
84841
84842         * lib/full-write.c: Rework so that it may serve to define full_read,
84843         too.
84844         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
84845
84846 2003-01-07  Bruno Haible  <bruno@clisp.org>
84847
84848         * lib/strtoimax.c: Include <stdint.h> as an alternative to
84849         <inttypes.h>.
84850         * lib/xstrtol.h: Likewise.
84851         * lib/xstrtoimax.c: Likewise.
84852         * lib/xstrtoumax.c: Likewise.
84853         * lib/human.h: Likewise.
84854
84855         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
84856         on systems that have <inttypes.h> but not <stdint.h>.
84857
84858 2003-01-07  Bruno Haible  <bruno@clisp.org>
84859
84860         * MODULES.html.sh: Add copyright notice.
84861         (missed_files): Omit CVS directory entries.
84862         (func_module): Make it work with sed-3.02.
84863         * MODULES.txt: Remove file.
84864
84865 2003-01-06  Jim Meyering  <jim@meyering.net>
84866
84867         * lib/version-etc.c: Update year in translatable copyright string.
84868
84869 2003-01-03  Karl Berry  <karl@gnu.org>
84870
84871         * config/config.{guess,sub}: update from prep.
84872
84873 2003-01-02  Karl Berry  <karl@gnu.org>
84874
84875         * doc/COPYING.DOC: belatedly updated to 1.2.
84876
84877 2003-01-01  Karl Berry  <karl@gnu.org>
84878
84879         * gnulib-tool (func_verify_module): report module name $module in
84880         error message, not $1.
84881         * gnulib-tool (create-testdir): don't complain if destdir couldn't
84882         be created, only if it doesn't exist.
84883         * gnulib-tool (last_checkin_date): don't expand the $Date here.
84884
84885 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84886
84887         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
84888
84889 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84890
84891         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
84892         memcmp if strcoll doesn't work.
84893
84894 2002-12-31  Bruno Haible  <bruno@clisp.org>
84895
84896         * lib/utime.c (utime_null): No need to call ftruncate if the file was
84897         nonempty.
84898
84899 2002-12-31  Bruno Haible  <bruno@clisp.org>
84900
84901         * lib/memcoll.c (STRCOLL): New macro.
84902         (memcoll): Use it.
84903
84904 2002-12-31  Bruno Haible  <bruno@clisp.org>
84905
84906         * lib/localcharset.h: New file.
84907         * lib/localcharset.c: Include it.
84908         * lib/unicodeio.c: Likewise.
84909
84910 2002-12-31  Bruno Haible  <bruno@clisp.org>
84911
84912         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
84913         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
84914
84915 2002-12-31  Bruno Haible  <bruno@clisp.org>
84916
84917         * lib/getline.h: Include <stddef.h>, for size_t.
84918
84919         * lib/unicodeio.h: Include <stddef.h>, for size_t.
84920         * lib/unicodeio.c: Don't include <stddef.h>.
84921
84922 2002-12-31  Bruno Haible  <bruno@clisp.org>
84923
84924         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
84925         HAVE_TM_ZONE.
84926
84927 2002-12-24  Karl Berry  <karl@gnu.org>
84928
84929         * config/config.guess: update from prep.
84930
84931 2002-12-24  Bruno Haible  <bruno@clisp.org>
84932
84933         General infrasructure.
84934         * m4/README: Rewritten.
84935         * m4/onceonly.m4: New file.
84936         * m4/onceonly_2_57.m4: New file.
84937
84938         Module atexit.
84939         * m4/atexit.m4: New file.
84940
84941         Module strtod.
84942         * m4/strtod.m4: New file.
84943
84944         Module strtol.
84945         * m4/strtol.m4: New file.
84946
84947         Module strtoul.
84948         * m4/strtoul.m4: New file.
84949
84950         Module memchr.
84951         * m4/memchr.m4: New file.
84952
84953         Module memcmp.
84954         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
84955         (jm_FUNC_MEMCMP): Invoke it.
84956
84957         Module memcpy.
84958         * m4/memcpy.m4: New file.
84959
84960         Module memmove.
84961         * m4/memmove.m4: New file.
84962
84963         Module memset.
84964         * m4/memset.m4: New file.
84965
84966         Module strcspn.
84967         * m4/strcspn.m4: New file.
84968
84969         Module strpbrk.
84970         * m4/strpbrk.m4: New file.
84971
84972         Module strstr.
84973         * m4/strstr.m4: New file.
84974
84975         Module strerror.
84976         * m4/strerror.m4: New file.
84977
84978         Module mktime.
84979         * m4/mktime.m4: Renamed from jm-mktime.m4.
84980         (gl_PREREQ_MKTIME): New macro.
84981         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
84982
84983         Module malloc.
84984         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
84985         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
84986         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
84987
84988         Module realloc.
84989         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
84990         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
84991         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
84992
84993         Module strftime.
84994         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
84995         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
84996         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
84997         gl_TM_GMTOFF.
84998         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
84999
85000         Module xalloc.
85001         * m4/xalloc.m4: New file.
85002
85003         Module alloca.
85004         * m4/alloca.m4: New file.
85005
85006         Module putenv.
85007         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
85008         (jm_FUNC_PUTENV): Invoke it.
85009
85010         Module setenv.
85011         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
85012         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
85013         when invoked twice.
85014         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
85015         gt_FUNC_SETENV.
85016
85017         Module memrchr.
85018         * m4/memrchr.m4: New file.
85019
85020         Module stpcpy.
85021         * m4/stpcpy.m4: New file.
85022
85023         Module strcase.
85024         * m4/strcase.m4: New file.
85025
85026         Module strdup.
85027         * m4/strdup.m4: New file.
85028
85029         Module strnlen.
85030         * m4/strnlen.m4: New file.
85031
85032         Module strndup.
85033         * m4/strndup.m4: New file.
85034
85035         Module xstrtod.
85036         * m4/xstrtod.m4: New file.
85037
85038         Module xstrtol.
85039         * m4/xstrtol.m4: New file.
85040
85041         Module getdate.
85042         * m4/getdate.m4: New file.
85043
85044         Module unlocked-io.
85045         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
85046         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
85047         * m4/jm-glibc-io.m4n: Remove file.
85048
85049         Module long-options.
85050         * m4/long-options.m4: New file.
85051
85052         Module md5.
85053         * m4/md5.m4: New file.
85054
85055         Module sha.
85056         * m4/sha.m4: New file.
85057
85058         Module getstr.
85059         * m4/getstr.m4: New file.
85060
85061         Module getline.
85062         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
85063         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
85064         <sys/types.h>, for size_t. Use the function name gnu_getline, not
85065         simply getline. Infoke gl_PREREQ_GETLINE.
85066
85067         Module obstack.
85068         * m4/obstack.m4: New file.
85069
85070         Module hash.
85071         * m4/hash.m4: New file.
85072
85073         Module readtokens.
85074         * m4/readtokens.m4: New file.
85075
85076         Module strverscmp.
85077         * m4/strverscmp.m4: New file.
85078
85079         Module stdbool.
85080         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
85081         OSF/1.
85082
85083         Module strtoll.
85084         * m4/strtoll.m4: New file.
85085
85086         Module strtoull.
85087         * m4/strtoull.m4: New file.
85088
85089         Module strtoimax.
85090         * m4/strtoimax.m4: New file.
85091
85092         Module strtoumax.
85093         * m4/strtoumax.m4: New file.
85094
85095         Module xstrtoimax.
85096         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
85097         jm_AC_PREREQ_XSTRTOIMAX.
85098         Moved the strtol prerequisites to strtol.m4.
85099         Moved the strtoll prerequisites to strtoll.m4.
85100         Moved the strtoimax prerequisites to strtoimax.m4.
85101
85102         Module xstrtoumax.
85103         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
85104         jm_AC_PREREQ_XSTRTOUMAX.
85105         Moved the strtoul prerequisites to strtoul.m4.
85106         Moved the strtoull prerequisites to strtoull.m4.
85107         Moved the strtoumax prerequisites to strtoumax.m4.
85108
85109         Module chown.
85110         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
85111         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
85112
85113         Module dup2.
85114         * m4/dup2.m4: New file.
85115
85116         Module ftruncate.
85117         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
85118         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
85119
85120         Module getgroups.
85121         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
85122         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
85123
85124         Module gettimeofday.
85125         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
85126         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
85127         gl_PREREQ_GETTIMEOFDAY.
85128
85129         Module mkdir.
85130         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
85131         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
85132
85133         Module mkstemp.
85134         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
85135         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
85136         jm_AC_TYPE_UINTMAX_T.
85137         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
85138
85139         Module stat.
85140         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
85141         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
85142
85143         Module lstat.
85144         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
85145         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
85146
85147         Module timespec.
85148         * m4/timespec.m4 (gl_TIMESPEC): New macro.
85149         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
85150         * m4/st_mtim.m4: Indentation.
85151
85152         Module nanosleep.
85153         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
85154         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
85155         gl_PREREQ_NANOSLEEP.
85156
85157         Module regex.
85158         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
85159         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
85160         (gl_REGEX): New macro.
85161
85162         Module rename.
85163         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
85164         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
85165
85166         Module rmdir.
85167         * m4/rmdir.m4: New file.
85168
85169         Module utime.
85170         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
85171         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
85172         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
85173
85174         Module dirname.
85175         * m4/dirname.m4: New file.
85176
85177         Module getopt.
85178         * m4/getopt.m4: New file.
85179
85180         Module unistd-safer.
85181         * m4/unistd-safer.m4: New file.
85182
85183         Module fnmatch.
85184         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
85185         declaration.
85186         (gl_PREREQ_FNMATCH_EXTRA): New macro.
85187         (gl_FUNC_FNMATCH_POSIX): New macro.
85188         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
85189         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
85190         simply fnmatch.
85191
85192         Module exclude.
85193         * m4/exclude.m4: New file.
85194
85195         Module human.
85196         * m4/human.m4: New file.
85197
85198         Module acl.
85199         * m4/acl.m4: Nop.
85200
85201         Module backupfile.
85202         * m4/backupfile.m4: New file.
85203         * m4/d-ino.m4: Indentation.
85204
85205         Module fsusage.
85206         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
85207         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
85208         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
85209
85210         Module dirfd.
85211         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
85212         requirements.
85213
85214         Module euidaccess.
85215         * m4/euidaccess.m4: New file.
85216
85217         Module file-type.
85218         * m4/file-type.m4: New file.
85219
85220         Module fileblocks.
85221         * m4/fileblocks.m4: New file.
85222
85223         Module filemode.
85224         * m4/filemode.m4: New file.
85225
85226         Module isdir.
85227         * m4/isdir.m4: New file.
85228
85229         Module lchown.
85230         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
85231         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
85232
85233         Module makepath.
85234         * m4/makepath.m4: New file.
85235
85236         Module modechange.
85237         * m4/modechange.m4: New file.
85238
85239         Module mountlist.
85240         * m4/mountlist.m4: New file.
85241         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
85242         Indentation.
85243
85244         Module path-concat.
85245         * m4/path-concat.m4: New file.
85246
85247         Module pathmax.
85248         * m4/pathmax.m4: New file.
85249
85250         Module same.
85251         * m4/same.m4: New file.
85252
85253         Module save-cwd.
85254         * m4/save-cwd.m4: New file.
85255
85256         Module savedir.
85257         * m4/savedir.m4: New file.
85258
85259         Module xgetcwd.
85260         * m4/xgetcwd.m4: New file.
85261         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
85262
85263         Module xreadlink.
85264         * m4/xreadlink.m4: New file.
85265
85266         Module safe-read.
85267         * m4/safe-read.m4: New file.
85268
85269         Module safe-write.
85270         * m4/safe-write.m4: New file.
85271
85272         Module closeout.
85273         * m4/closeout.m4: New file.
85274
85275         Module stdio-safer.
85276         * m4/stdio-safer.m4: New file.
85277
85278         Module getpass.
85279         * m4/getpass.m4: New file.
85280
85281         Module getugroups.
85282         * m4/getugroups.m4: New file.
85283
85284         Module group-member.
85285         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
85286         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
85287
85288         Module idcache.
85289         * m4/idcache.m4: New file.
85290
85291         Module userspec.
85292         * m4/userspec.m4: New file.
85293
85294         Module gettime.
85295         * m4/clock_time.m4: New file.
85296         * m4/gettime.m4: New file.
85297
85298         Module settime.
85299         * m4/settime.m4: New file.
85300
85301         Module posixtm.
85302         * m4/posixtm.m4: New file.
85303
85304         Module gethostname.
85305         * m4/gethostname.m4: New file.
85306
85307         Module canon-host.
85308         * m4/canon-host.m4: New file.
85309
85310         Module gettext.
85311         * m4/codeset.m4: New file, from gettext-0.11.5.
85312         * m4/gettext.m4: New file, from gettext-0.11.5.
85313         * m4/glibc21.m4: New file, from gettext-0.11.5.
85314         * m4/iconv.m4: New file, from gettext-0.11.5.
85315         * m4/intdiv0.m4: New file, from gettext-0.11.5.
85316         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
85317         * m4/inttypes.m4: New file, from gettext-0.11.5.
85318         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
85319         * m4/isc-posix.m4: New file, from gettext-0.11.5.
85320         * m4/lcmessage.m4: New file, from gettext-0.11.5.
85321         * m4/lib-ld.m4: New file, from gettext-0.11.5.
85322         * m4/lib-link.m4: New file, from gettext-0.11.5.
85323         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
85324         * m4/progtest.m4: New file, from gettext-0.11.5.
85325         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
85326         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
85327         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
85328
85329         Module localcharset.
85330         * m4/localcharset.m4: New file.
85331
85332         Module hard-locale.
85333         * m4/hard-locale.m4: New file.
85334
85335         Module mbswidth.
85336         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
85337         onceonly macros.
85338         * m4/mbrtowc.m4: Add comment.
85339
85340         Module memcasecmp.
85341         * m4/memcasecmp.m4: New file.
85342
85343         Module memcoll.
85344         * m4/memcoll.m4: New file.
85345
85346         Module unicodeio.
85347         * m4/unicodeio.m4: New file.
85348
85349         Module rpmatch.
85350         * m4/rpmatch.m4: New file.
85351
85352         Module yesno.
85353         * m4/yesno.m4: New file.
85354
85355         Module exitfail.
85356         * m4/exitfail.m4: New file.
85357
85358         Module c-stack.
85359         * m4/c-stack.m4 (gl_C_STACK): New macro.
85360         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
85361
85362         Module error.
85363         * m4/error.m4 (gl_ERROR): New macro.
85364         (jm_PREREQ_ERROR): Use onceonly macros.
85365
85366         Module fatal.
85367         * m4/fatal.m4: New file.
85368
85369         Module getloadavg.
85370         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
85371         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
85372
85373         Module getpagesize.
85374         * m4/getpagesize.m4: New file.
85375
85376         Module getusershell.
85377         * m4/getusershell.m4: New file.
85378
85379         Module physmem.
85380         * m4/physmem.m4: New file.
85381
85382         Module posixver.
85383         * m4/posixver.m4: New file.
85384
85385         Module quotearg.
85386         * m4/quotearg.m4: New file.
85387
85388         Module quote.
85389         * m4/quote.m4: New file.
85390
85391         Module readutmp.
85392         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
85393
85394         Module sig2str.
85395         * m4/sig2str.m4: New file.
85396
85397         Other.
85398         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
85399         ulonglong.m4.
85400         * m4/intmax_t.m4: New file.
85401         * m4/d-type.m4: Indentation.
85402         * m4/jm-macros.m4: Update.
85403         * m4/prereq.m4 (jm_PREREQ): Update.
85404         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
85405         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
85406         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
85407         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
85408         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
85409         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
85410         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
85411         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
85412         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
85413         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
85414         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
85415         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
85416         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
85417         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
85418         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
85419         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
85420         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
85421         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
85422         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
85423
85424 2002-12-24  Bruno Haible  <bruno@clisp.org>
85425
85426         * MODULES.txt: Update according to m4/ changes.
85427
85428         Module gettext.
85429         * config.rpath: New file, from gettext-0.11.5.
85430
85431         * modules/*: New module descriptions.
85432         * gnulib-tool: New file.
85433         * MODULES.html.sh: New file.
85434
85435 2002-12-21  Karl Berry  <karl@gnu.org>
85436
85437         * doc/fdl.texi: update to version 1.2.
85438
85439 2002-12-19  Karl Berry  <karl@gnu.org>
85440
85441         * config/config.guess: update from prep.
85442
85443 2002-12-18  Bruno Haible  <bruno@clisp.org>
85444
85445         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
85446         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
85447
85448 2002-12-17  Bruno Haible  <bruno@clisp.org>
85449
85450         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
85451         stdlib.h, string.h.
85452
85453 2002-12-17  Bruno Haible  <bruno@clisp.org>
85454
85455         * lib/canon-host.c (strdup): Remove unused declaration.
85456
85457         * lib/fsusage.c: Include full_read.h.
85458         (get_fs_usage): Use full_read instead of safe_read.
85459
85460         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
85461
85462 2002-12-12  Karl Berry  <karl@gnu.org>
85463
85464         * config/config.guess: update from prep.
85465
85466 2002-12-11  Bruno Haible  <bruno@clisp.org>
85467
85468         * m4/setenv.m4: New file, from gettext-0.11.5.
85469
85470 2002-12-11  Bruno Haible  <bruno@clisp.org>
85471
85472         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
85473         not unsetenv().
85474         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
85475         modifications:
85476
85477         2002-12-11  Bruno Haible  <bruno@clisp.org>
85478
85479                 * setenv.c (alloca): Fall back to malloc.
85480                 (freea): New macro.
85481                 (setenv): Use freea() to free memory allocated with alloca().
85482
85483         2002-11-13  Bruno Haible  <bruno@clisp.org>
85484
85485                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
85486                 function declarations.
85487                 * unsetenv.c (unsetenv): Likewise.
85488
85489         2002-03-04  Bruno Haible  <bruno@clisp.org>
85490
85491                 Portability to AIX 4.3.3.
85492                 * unsetenv.c: New file, extracted from setenv.c.
85493                 * setenv.c: Move the unsetenv() function to unsetenv.c.
85494
85495         2001-12-20  Bruno Haible  <bruno@clisp.org>
85496
85497                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
85498                 use malloc instead. For SunOS 4.
85499
85500         2001-12-11  Bruno Haible  <bruno@clisp.org>
85501
85502                 * setenv.c: Declare alloca.
85503                 (compar_fn_t): New typedef.
85504                 (KNOWN_VALUE, STORE_VALUE): Use it.
85505
85506         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
85507         setenv.h.
85508
85509 2002-12-10  Paul Eggert  <eggert@twinsun.com>
85510
85511         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
85512         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
85513         Choose values that are less likely to collide with system fnmatch
85514         options.
85515         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
85516         defined (e.g., a pure POSIX system).
85517         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
85518         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
85519
85520 2002-12-06  Paul Eggert  <eggert@twinsun.com>
85521
85522         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
85523         a pain in practice to deal with generated m4 files.  This change
85524         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
85525
85526         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
85527         and jm-glibc-io.m4, as they are no longer a special case.
85528         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
85529         kludge and the auto-generation stuff.  Check only whether the
85530         functions are declared, not whether they exist, since older hosts
85531         that don't declare the functions can't use the optimization anyway.
85532
85533 2002-12-06  Jim Meyering  <jim@meyering.net>
85534
85535         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
85536
85537         Merge in changes from libc's misc/error.c, in preparation
85538         for the merge of gnulib's changes back into libc.
85539
85540         * lib/error.c (_): Define only if not already defined.
85541         Move definition to follow all #include directives.
85542         Include unlocked-io.h only if !_LIBC.
85543         [_LIBC]: Include <libio/libioP.h>.
85544         [USE_IN_LIBIO]: Include <libio/iolibio.h>
85545         (fflush): Tweak definition to use INTUSE.
85546         (putc): Define.
85547
85548 2002-12-05  Paul Eggert  <eggert@twinsun.com>
85549
85550         * lib/alloca.c [defined emacs]: Include "lisp.h".
85551         (xalloc_die) [defined emacs]: New macro.
85552         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
85553         [! defined emacs]: Include <xalloc.h>.
85554         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
85555         (pointer): Typedef to POINTER_TYPE *.
85556         (malloc): Remove decl; we now always use xmalloc.
85557         (alloca): Use old-style definition, since Emacs needs this.
85558         Check for arithmetic overflow when computing combined size.
85559
85560 2002-12-04  Paul Eggert  <eggert@twinsun.com>
85561
85562         Do not generate unlocked-io.h automatically, since it's easier to
85563         maintain it by hand.
85564
85565         * lib/unlocked-io.h: New file, from GNU diffutils,
85566         but with proper copyright notice and attribution.
85567         * lib/gen-uio: Remove.
85568         * lib/Makefile.am: Add copyright notice.
85569         (libfetish_a_SOURCES): Add unlocked-io.h.
85570         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
85571         (DISTCLEANFILES, io_functions): Remove macros.
85572         (EXTRA_DIST): Remove gen_uio.
85573         (unlocked-io.h): Remove rule.
85574
85575 2002-12-04  Jim Meyering  <jim@meyering.net>
85576
85577         Reflect the fact that stat.c and lstat.c are no longer generated.
85578         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
85579         (DISTCLEANFILES): Likewise.
85580         (EXTRA_DIST): Likewise.
85581         (all_local): Don't depend on stat.c or lstat.c.
85582         (stat.c, lstat.c): Remove rules.
85583         (EXTRA_DIST): Remove xstat.in.
85584
85585         * lib/xstat.in: Remove file.  Contents moved into stat.c.
85586         * lib/stat.c: New file.  Contents mostly from xstat.in.
85587         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
85588         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
85589
85590         * lib/safe-read.c: Rework so that it may serve to define safe_write,
85591         too.
85592         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
85593
85594 2002-12-03  Jim Meyering  <jim@meyering.net>
85595
85596         * lib/safe-read.c, safe-write.c: Change variable names and comments,
85597         but not semantics, to minimize the differences between these two files.
85598         (safe_read): Change comment to mention SAFE_READ_ERROR.
85599
85600         * lib/safe-read.c (IS_EINTR): Define.
85601         (safe_read): Use IS_EINTR in place of in-function cpp directives.
85602
85603 2002-12-02  Jim Meyering  <jim@meyering.net>
85604
85605         * lib/safe-read.c (EINTR): Define.
85606         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
85607         (INT_MAX): Provide fallback.
85608         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
85609
85610         * lib/safe-read.h (SAFE_READ_ERROR): Define.
85611
85612 2002-12-02  Bruno Haible  <bruno@clisp.org>
85613
85614         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
85615         Define, taken from safe-read.c.
85616         (INT_MAX): Provide fallback.
85617         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
85618         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
85619
85620         * lib/safe-read.c (EINTR): Remove definition.
85621         (safe_read): Don't use EINTR if it is absent.
85622
85623 2002-12-01  Jim Meyering  <jim@meyering.net>
85624
85625         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
85626         zero.
85627         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
85628
85629 2002-11-27  Paul Eggert  <eggert@twinsun.com>
85630
85631         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
85632         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
85633         with `if (! (value < limit)) abort ();', for readability.
85634
85635 2002-11-26  Karl Berry  <karl@gnu.org>
85636
85637         * lib/strdup.c: copy from libc again, with jim's ok.
85638         * lib/.cppi-disable: re-add strdup.c
85639
85640 2002-11-25  Karl Berry  <karl@gnu.org>
85641
85642         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
85643         instead of "strtol.c".
85644
85645 2002-11-25  Karl Berry  <karl@gnu.org>
85646
85647         * config/install-sh: update from automake for variable quoting, $0 in
85648         error msgs, etc.
85649
85650         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
85651         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
85652         entry.
85653
85654 2002-11-25  Jim Meyering  <jim@meyering.net>
85655
85656         * lib/mktime.c: Sync from libc, now that it has the latest fix.
85657
85658 2002-11-24  Karl Berry  <karl@gnu.org>
85659
85660         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
85661         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
85662
85663 2002-11-24  Jim Meyering  <jim@meyering.net>
85664
85665         Update from coreutils:
85666
85667         * lib/mktime.c: Merge in changes from libc.
85668
85669         Avoid a link-time failure on some Linux systems.
85670         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
85671         (otherwise).
85672         (__mon_yday): Declare with the STATIC attribute.
85673         (__mktime_internal): Likewise.
85674         Based on a report from Greg Schafer.
85675
85676 2002-11-23  Jim Meyering  <jim@meyering.net>
85677
85678         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
85679         Use `unsigned', not `int', as type of index.
85680
85681         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
85682
85683         * lib/fsusage.c: Remove unneeded parentheses around operands of
85684         `defined'.
85685
85686 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85687
85688         * lib/quotearg.h: Allow multiple inclusion by surrounding with
85689         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
85690         so that we can be included first.
85691         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
85692         * lib/quotearg.c: Include quotearg.h immediately after config.h.
85693         No need to include stddef.h or sys/types.h any more.
85694         Surround local include files with "", not "<>".
85695         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
85696         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
85697         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
85698         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
85699         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
85700         (ISPRINT): Remove; no longer needed now that we assume C89.
85701
85702         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
85703         Preserve errno.
85704
85705         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
85706         quotearg_char): Use SIZE_MAX rather than
85707         (size_t) -1 when we are talking about "infinity".
85708
85709         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
85710
85711 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85712
85713         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
85714         hint that one should use `if (! x) abort ();' rather than `assert
85715         (x);', and anyway it's one less thing to worry about configuring.
85716         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
85717         hash_rehash, hash_insert): Use abort rather than assert.
85718
85719 2002-11-22  Bruno Haible  <bruno@clisp.org>
85720
85721         * lib/safe-read.h: Assume C89. Add comments.
85722         (safe_read): Change return type to size_t.
85723         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
85724         byte counts > SSIZE_MAX correctly.
85725         * lib/safe-write.h: New file.
85726         * lib/safe-write.c: New file.
85727         * lib/full-read.h: New file.
85728         * lib/full-read.c: New file.
85729         * lib/full-write.h: Assume C89. Add comments.
85730         * lib/full-write.c: Include safe-write.h.
85731         (full_write): Rewritten to use safe_write.
85732         Suggested by Jim Meyering and Paul Eggert.
85733
85734 2002-11-21  Jim Meyering  <jim@meyering.net>
85735
85736         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
85737
85738         Merge in changes from the coreutils.
85739
85740         2002-09-25  Paul Eggert  <eggert@twinsun.com>
85741         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
85742         <stdint.h>.
85743         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
85744         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
85745         int.  Work more efficiently if X is the same width as uintmax_t.
85746         Do not compare X to -1, to avoid bogus compiler warning.
85747         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
85748         Don't assume that f_frsize and f_bsize are the same type.
85749
85750         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
85751         warning on FreeBSD.
85752
85753         * lib/makepath.c (make_path): Restore umask *before* creating the final
85754         component.
85755         (make_path): Minor reformatting.
85756
85757         * lib/xmalloc.c: Adjust to work with new autoconf macros,
85758         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
85759         HAVE_MALLOC/HAVE_REALLOC.
85760
85761         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
85762         dummy ones.  At least on GNU/Linux systems, `auto' means something
85763         else.
85764         From Michael Stone.
85765
85766 2002-11-21  Bruno Haible  <bruno@clisp.org>
85767
85768         Remove case insensitive option matching.
85769         * lib/argmatch.h (argcasematch): Remove declaration.
85770         (ARGCASEMATCH): Remove macro.
85771         (__xargmatch_internal): Remove case_sensitive argument.
85772         (XARGMATCH): Update.
85773         (XARGCASEMATCH): Remove macro.
85774         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
85775         case_sensitive argument.
85776         (argcasematch): Remove function.
85777         (__xargmatch_internal): Remove case_sensitive argument.
85778         (main): Use XARGMATCH instead of XARGCASEMATCH.
85779
85780         * lib/xmalloc.c: Change compile-time error message. Add comment about
85781         required autoconf version.
85782
85783 2002-11-20  Paul Eggert  <eggert@twinsun.com>
85784
85785         Merge argmatch cleanups from Bison.  Assume C89.
85786
85787         * lib/argmatch.c: Include config.h here, not in argmatch.h.
85788         Include stdlib.h, for EXIT_FAILURE.
85789         Always include <string.h>, since we assume C89.
85790         (EXIT_FAILURE): Remove pre-C89 bug workaround.
85791         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
85792         Include <stddef.h> instead, since it's all we need for size_t.
85793         (PARAMS): Remove.  All uses removed.
85794         (ARRAY_CARDINALITY): Do not bother to #undef.
85795         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
85796         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85797         Remove unnecessary parentheses.
85798         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85799         Insert necessary parentheses.
85800         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
85801         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
85802
85803 2002-11-19  Bruno Haible  <bruno@clisp.org>
85804
85805         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
85806         * lib/mbswidth.h: Include <stddef.h>, for size_t.
85807
85808         * lib/mbswidth.h (PARAMS): Remove macro.
85809         (mbswidth, mbsnwidth): Use ANSI C function declarations.
85810         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
85811
85812         * lib/gcd.h (PARAMS): Remove macro.
85813         (gcd): Use ANSI C function declarations.
85814         * lib/gcd.c (gcd): Likewise.
85815
85816 2002-11-15  Bruno Haible  <bruno@clisp.org>
85817
85818         * lib/strcspn.c: Include <stddef.h>.
85819         (strcspn): Use ANSI C function declaration. Change return type to
85820         size_t. Use NULL.
85821         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
85822         (strpbrk): Use NULL.
85823         * lib/strpbrk.h (PARAMS): Remove macro.
85824         (strpbrk): Use ANSI C function declaration.
85825         * lib/strstr.c: Don't include <sys/types.h>.
85826         * lib/strstr.h (PARAMS): Remove macro.
85827         (strstr): Use ANSI C function declarations.
85828
85829 2002-11-14  Karl Berry  <karl@gnu.org>
85830
85831         * config/mkinstalldirs: `do' on separate line, instead of
85832         `for var; do'.
85833
85834 2002-11-06  Bruno Haible  <bruno@clisp.org>
85835
85836         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
85837         * lib/gcd.c (gcd): Likewise.
85838
85839 2002-11-05  Bruno Haible  <bruno@clisp.org>
85840
85841         * lib/gcd.h: New file, from gettext-0.11.5.
85842         * lib/gcd.c: New file, from gettext-0.11.5.
85843
85844 2002-11-05  Bruno Haible  <bruno@clisp.org>
85845
85846         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85847         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85848         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85849         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85850
85851         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
85852         <libintl.h>.
85853         * lib/makepath.c: Include gettext.h instead of <locale.h> and
85854         <libintl.h>.
85855
85856         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
85857         * lib/human.c: Include gettext.h instead of <libintl.h>.
85858         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
85859         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
85860         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
85861         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
85862         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
85863         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
85864         (textdomain): Remove definition.
85865         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
85866
85867         * lib/long-options.c: Remove include of <libintl.h> and definition of
85868         _.
85869         * lib/same.c: Remove include of <libintl.h> and definition of _.
85870
85871 2002-11-04  Owen Taylor  <otaylor@redhat.com>
85872
85873         * lib/config.charset: A few additions for Solaris.
85874
85875 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85876
85877         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
85878         * lib/localcharset.c (locale_charset): Declare as extern "C".
85879
85880 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85881
85882         * lib/config.charset: msdos in uk_UA uses CP1125.
85883
85884 2002-11-04  Bruno Haible  <bruno@clisp.org>
85885
85886         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
85887         * lib/strcase.h: New file, from GNU gettext-0.11.5.
85888         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
85889         * lib/strstr.h: New file, from GNU gettext-0.11.5.
85890         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
85891
85892 2002-11-04  Bruno Haible  <bruno@clisp.org>
85893
85894         * lib/localcharset.c (locale_charset): Don't return an empty string.
85895
85896 2002-11-04  Bruno Haible  <bruno@clisp.org>
85897
85898         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
85899         aliases.
85900
85901 2002-11-04  Bruno Haible  <bruno@clisp.org>
85902
85903         * lib/config.charset: Update for newest glibc. Add canonical names
85904         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
85905
85906 2002-11-04  Bruno Haible  <bruno@clisp.org>
85907
85908         * lib/config.charset: Add support for NetBSD.
85909
85910 2002-11-04  Bruno Haible  <bruno@clisp.org>
85911
85912         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
85913
85914 2002-11-01  Bruno Haible  <bruno@clisp.org>
85915
85916         * configure.in: Add AC_CONFIG_AUX_DIR call.
85917         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
85918         test/Makefile.
85919         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
85920
85921 2002-09-28  Karl Berry  <karl@gnu.org>
85922
85923         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
85924         installed automake until the next release, since changes have been
85925         made.
85926
85927 2002-09-25  Karl Berry  <karl@gnu.org>
85928
85929         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
85930         * lib/getopt*: copy from libc/posix.
85931         * lib/gettext.h: copy from gettext.
85932         * lib/.cppi-disable: add strdup.c, gettext.h.
85933
85934 2002-09-25  Karl Berry  <karl@gnu.org>
85935
85936         * config/srclist.txt: enable gettext.h check.
85937         * config/config.{guess,sub}: update from prep.
85938         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
85939                 from automake 1.6.3.
85940         See srclist*.
85941
85942 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
85943
85944         * regex.c (PATFETCH): Remove the translating fetch.
85945         (PATFETCH_RAW): Rename to PATFETCH.
85946         (set_image_of_range): New fun.
85947         (SET_RANGE_TABLE_WORK_AREA): Use it.
85948         (regex_compile): Don't translate the pattern chars so eagerly.
85949         Only do it when inserting an `exactn' bytecode or when handling
85950         a char-range.
85951         (mutually_exclusive_p): Avoid empty statement.
85952
85953 2002-07-06  Jim Meyering  <meyering@lucent.com>
85954
85955         * m4/README: Don't mention Makefile.am.in.
85956         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
85957
85958 2002-07-01  Jim Meyering  <meyering@lucent.com>
85959
85960         * lib/c-stack.c: Include sys/time.h.
85961         From Volker Borchert.
85962
85963 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85964
85965         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
85966
85967 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85968
85969         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
85970         New macro.  Use it uniformly instead of
85971         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
85972         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
85973         reported by Vin Shelton.
85974
85975 2002-06-22  Paul Eggert  <eggert@twinsun.com>
85976
85977         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
85978         Do not assume SA_SIGINFO behavior.
85979         Bug reported by Jim Meyering on NetBSD 1.5.2.
85980
85981 2002-06-22  Jim Meyering  <meyering@lucent.com>
85982
85983         * m4/c-stack.m4: New file, from diffutils-2.8.2.
85984         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
85985
85986         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
85987         now that configure.ac uses AC_GNU_SOURCE.
85988         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
85989         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
85990
85991         Update to latest tools.  Suggestions from Paul Eggert.
85992         * m4/stdbool.m4: New file, from diffutils-2.8.2.
85993         * m4/gnu-source.m4: Update from diffutils-2.8.2.
85994         * m4/fnmatch.m4: Likewise.
85995         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
85996         to AC_HEADER_STDBOOL
85997
85998 2002-06-22  Jim Meyering  <meyering@lucent.com>
85999
86000         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
86001         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
86002
86003 2002-06-22  Jim Meyering  <meyering@lucent.com>
86004
86005         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
86006
86007         * lib/exitfail.c, exitfail.h: Likewise.
86008         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
86009
86010         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
86011         of fnmatch.h.
86012         (EXTRA_DIST): Add fnmatch_loop.c.
86013         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
86014
86015         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
86016         * lib/fnmatch.c: Update from diffutils-2.8.2.
86017         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
86018         * lib/fnmatch.h: Remove file.
86019
86020 2002-06-21  Jim Meyering  <meyering@lucent.com>
86021
86022         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
86023         * m4/mbrtowc.m4: Likewise.
86024
86025         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
86026         * m4/mbswidth.m4: Reflect name change:
86027         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
86028         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
86029
86030         * m4/lib-link.m4: Update from gettext-0.11.2.
86031         * m4/gettext.m4: Likewise.
86032
86033         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
86034         From Alfred M. Szmidt.
86035
86036 2002-06-18  Paul Eggert  <eggert@twinsun.com>
86037
86038         * lib/file-type.h: Report an error if neither S_ISREG nor
86039         S_IFREG is defined, instead of using a test specific to glibc
86040         2.2.  This should be safe, since POSIX requires S_ISREG and
86041         Unix Version 7 had S_IFREG.  We don't need to check for
86042         <sys/types.h> since we don't use any symbols that it defines.
86043
86044 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
86045
86046         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
86047         $@-t, so that each temporary file name is unique and valid in the first
86048         8 characters, for operation under DOS.
86049
86050 2002-06-15  Paul Eggert  <eggert@twinsun.com>
86051
86052         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
86053
86054 2002-06-15  Jim Meyering  <meyering@lucent.com>
86055
86056         Work even with DJGPP 2.03, which lacks support for symlinks.
86057         From Richard Dawe.
86058         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
86059         is defined.
86060         * lib/lchown.c (S_ISLNK): Likewise.
86061
86062 2002-06-15  Jim Meyering  <meyering@lucent.com>
86063
86064         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
86065         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
86066         have been included before this file.
86067
86068 2002-06-14  Jim Meyering  <meyering@lucent.com>
86069
86070         * lib/file-type.h: Use the version from diffutils-2.8.2.
86071         * lib/file-type.c: Likewise.
86072
86073 2002-06-07  Jim Meyering  <meyering@lucent.com>
86074
86075         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
86076         They're needed at least for NetBSD 1.5.2.
86077         ($statxfs_includes): Include those same headers.
86078         ($statxfs_includes): Include sys/vfs.h if available.
86079         ($statxfs_includes): Likewise for sys/statvfs.h.
86080         Check for the following members in both structs statfs and statvfs:
86081         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
86082
86083 2002-06-01  Jim Meyering  <meyering@lucent.com>
86084
86085         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
86086         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
86087
86088 2002-05-28  Jim Meyering  <meyering@lucent.com>
86089
86090         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
86091         Reported by Volker Borchert.
86092
86093 2002-05-27  Jim Meyering  <meyering@lucent.com>
86094
86095         Fix a problem seen only on nonconforming systems whereby ls.c's
86096         use of localtime, and then of gettimeofday would cause trouble:
86097         the localtime call used to initialize rpl_gettimeofday's save
86098         mechanism would clobber ls's current local time information so
86099         that in any long listing the first file would always be listed
86100         with date 1970-01-01.  Analysis by Volker Borchert.
86101
86102         * lib/gettimeofday.c (localtime): Undefine.
86103         (rpl_localtime): New function.
86104
86105 2002-05-27  Jim Meyering  <meyering@lucent.com>
86106
86107         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
86108         localtime.
86109
86110         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
86111         use the replacement function; it wouldn't resolve at link time.
86112         Reported by Volker Borchert.
86113
86114 2002-05-22  Jim Meyering  <meyering@lucent.com>
86115
86116         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
86117         file-type.h.
86118         * lib/file-type.h: New file.
86119         * lib/file-type.c (file_type): New file/function.  Extracted from
86120         diffutils.
86121
86122 2002-04-30  Jim Meyering  <meyering@lucent.com>
86123
86124         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
86125
86126 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86127
86128         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
86129
86130 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86131
86132         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
86133         Do not check for alloca.h (no longer used) or stdbool.h (was never
86134         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
86135
86136 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86137
86138         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
86139
86140 2002-04-29  Jim Meyering  <meyering@lucent.com>
86141
86142         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
86143         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
86144         Use AC_FUNC_STRNLEN here instead.
86145
86146         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
86147         With autoconf-2.53a, it's part of AC_PROG_CC.
86148
86149 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86150
86151         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
86152         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
86153
86154 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86155
86156         * lib/sig2str.h, lib/sig2str.c: New files.
86157         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
86158
86159 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86160
86161         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
86162         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
86163         of 127, since 64 is the largest conceivable number for ancient
86164         nonstandard hosts.
86165         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
86166
86167 2002-04-28  Jim Meyering  <meyering@lucent.com>
86168
86169         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
86170
86171 2002-04-24  Jim Meyering  <meyering@lucent.com>
86172
86173         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
86174         (jm_PREREQ): Use it.
86175
86176         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
86177         mach/mach.h fcntl.h.
86178         Check for this function: setlocale.
86179
86180 2002-04-24  Jim Meyering  <meyering@lucent.com>
86181
86182         * lib/gettext.h: New file, from Gettext.
86183         * lib/Makefile.am (INCLUDES): Remove -I../intl.
86184         (libfetish_a_SOURCES): Add gettext.h.
86185
86186 2002-04-16  Jim Meyering  <meyering@lucent.com>
86187
86188         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
86189         ut_pid, ut_id, ut_exit.
86190
86191 2002-04-16  Jim Meyering  <meyering@lucent.com>
86192
86193         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
86194         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
86195         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
86196
86197 2002-04-12  Jim Meyering  <meyering@lucent.com>
86198
86199         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
86200         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
86201         existence of the getmntinfo function.  Needed for Darwin 5.3.
86202
86203         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
86204         This is necessary at least on Darwin 5.3.
86205
86206         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
86207         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
86208         strnlen.o in the library, and that makes some versions of ranlib
86209         object.
86210
86211 2002-04-12  Jim Meyering  <meyering@lucent.com>
86212
86213         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
86214
86215 2002-04-09  Jim Meyering  <meyering@lucent.com>
86216
86217         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
86218         to be more precise.  Rather than saying we're checking whether the
86219         function `works', say what we're testing.
86220         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
86221         Reported by Bruno Haible.
86222
86223 2002-03-10  Jim Meyering  <meyering@lucent.com>
86224
86225         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
86226         Suggestion from Santiago Vila.
86227
86228 2002-03-08  Jim Meyering  <meyering@lucent.com>
86229
86230         * lib/rename.c: Mention that this wrapper is needed also on
86231         mips-dec-ultrix4.4 systems.
86232
86233 2002-03-02  Jim Meyering  <meyering@lucent.com>
86234
86235         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
86236         not HAVE_CLOCK_SETTIME.
86237
86238 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86239
86240         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
86241         Check for clock_settime.
86242
86243 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86244
86245         * lib/nanosleep.h: Rename to....
86246         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
86247
86248         * lib/gettime.c: New file.
86249         * lib/settime.c: New file.
86250         * lib/stime.c: Remove.
86251
86252         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
86253         timespec.h.  Remove nanosleep.h.
86254
86255 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86256
86257         * m4/acl.m4: New file.
86258         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
86259         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
86260
86261 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86262
86263         * lib/acl.c, lib/acl.h: New files.
86264         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
86265
86266 2002-02-24  Jim Meyering  <meyering@lucent.com>
86267
86268         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
86269         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
86270         cause trouble.  Reported by Nelson Beebe.
86271
86272 2002-02-23  Paul Eggert  <eggert@twinsun.com>
86273
86274         * lib/path-concat.c (xpath_concat): Reorder code to pacify
86275         compilers that don't know that xalloc_die never returns.
86276
86277 2002-02-20  Jim Meyering  <meyering@lucent.com>
86278
86279         * lib/getdate.c: Regenerate using bison-1.33.
86280
86281 2002-02-17  Jim Meyering  <meyering@lucent.com>
86282
86283         * config/config.guess (main): Don't use `head -1'; it's no longer
86284         portable. Use `sed 1q' instead.
86285
86286 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
86287
86288         * m4/codeset.m4: Upgrade to gettext-0.11.
86289         * m4/gettext.m4: Upgrade to gettext-0.11.
86290         * m4/glibc21.m4: Upgrade to gettext-0.11.
86291         * m4/iconv.m4: Upgrade to gettext-0.11.
86292         * m4/isc-posix.m4: Upgrade to gettext-0.11.
86293         * m4/lcmessage.m4: Upgrade to gettext-0.11.
86294         * m4/lib-ld.m4: New file, from gettext-0.11.
86295         * m4/lib-link.m4: New file, from gettext-0.11.
86296         * m4/lib-prefix.m4: New file, from gettext-0.11.
86297         * m4/progtest.m4: Upgrade to gettext-0.11.
86298
86299 2002-02-15  Paul Eggert  <eggert@twinsun.com>
86300
86301         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
86302         (jm_PREREQ): Use it.
86303
86304 2002-02-15  Paul Eggert  <eggert@twinsun.com>
86305
86306         * lib/posixver.c, lib/posixver.h: New files.
86307         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86308
86309 2002-02-02  Paul Eggert  <eggert@twinsun.com>
86310             Bruno Haible  <bruno@clisp.org>
86311
86312         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
86313         (fwrite_success_callback): New declaration.
86314         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
86315         print_unicode_char. Call failure callback instead of error.
86316         (fwrite_success_callback): New function.
86317         (exit_failure_callback): New function.
86318         (fallback_failure_callback): New function.
86319         (print_unicode_char): Call unicode_to_mb.
86320
86321 2002-01-26  Jim Meyering  <meyering@lucent.com>
86322
86323         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
86324         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
86325
86326 2002-01-26  Jim Meyering  <meyering@lucent.com>
86327
86328         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
86329
86330 2002-01-22  Paul Eggert  <eggert@twinsun.com>
86331
86332         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
86333
86334 2002-01-22  Jim Meyering  <meyering@lucent.com>
86335
86336         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
86337         Otherwise, some versions of automake would omit the rule that makes
86338         Makefile from Makefile.in.
86339
86340 2002-01-21  Paul Eggert  <eggert@twinsun.com>
86341
86342         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
86343         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86344         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
86345         (memcoll): Set errno to zero if there is no error.
86346
86347         * lib/quotearg.c (quotearg_buffer_restyled):
86348         Fix bug with quoting buffers containing NUL when backslashing escapes.
86349         This bug was exposed by the other changes in this patch.
86350         (quotearg_n_options): New arg ARGSIZE.
86351         All callers changed.
86352         (quoting_options_from_style): New function.
86353         (quotearg_n_style): Use it.
86354         (quotearg_n_style_mem): New function.
86355
86356         * lib/quotearg.h (quotearg_n_style_mem): New function.
86357
86358 2002-01-19  Jim Meyering  <meyering@lucent.com>
86359
86360         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
86361         Remove useless quotes: DF_PROG="df".
86362         * m4/strnlen.m4: New file.
86363
86364 2002-01-16  Paul Eggert  <eggert@twinsun.com>
86365
86366         * lib/backupfile.c (ISDIGIT): Comment fix.
86367         * lib/getdate.y (ISDIGIT): Likewise.
86368         * lib/posixtm.c (ISDIGIT, year): Likewise.
86369         * lib/strverscmp.c (ISDIGIT): Likewise.
86370         * lib/userspec.c (ISDIGIT): Likewise.
86371
86372 2002-01-16  Jim Meyering  <meyering@lucent.com>
86373
86374         * lib/getdate.y: Add three semicolons, each just before a closing
86375         brace. Bison (as of version 1.31) no longer papers over that mistake.
86376
86377 2002-01-05  Jim Meyering  <meyering@lucent.com>
86378
86379         * lib/version-etc.c (version_etc_copyright): Update copyright year.
86380
86381 2001-12-19  Paul Eggert  <eggert@twinsun.com>
86382
86383         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
86384         not silently exit merely because the output buffer happens to
86385         have nothing pending.
86386
86387 2001-12-18  Paul Eggert  <eggert@twinsun.com>
86388
86389         See the big note in ../ChangeLog.
86390         * lib/human.c (suffixes): Prefer K to k for 1024.
86391         (generate_suffix_backwards): New function.
86392         (human_readable_inexact): Use it.
86393         * lib/xstrtol.c (__xstrtol): If there is no number but there
86394         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
86395         Accept 'K' as well as 'k'.
86396
86397 2001-12-15  Jim Meyering  <meyering@lucent.com>
86398
86399         * lib/regex.h (__restrict_arr): Update from libc.
86400
86401         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
86402         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
86403         (STREQ): Define.
86404
86405 2001-12-14  Jim Meyering  <meyering@lucent.com>
86406
86407         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
86408         Suggestion from Bruno Haible.
86409
86410 2001-12-10  Jim Meyering  <meyering@lucent.com>
86411
86412         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
86413         xrealloc, Instead, include "xalloc.h".
86414         (initbuffer): Don't cast xmalloc return value to char*.
86415         (readline): Reword comment.
86416         Don't cast xrealloc return value to char*
86417         Return NULL, not 0.
86418
86419 2001-12-09  Jim Meyering  <meyering@lucent.com>
86420
86421         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
86422         about `signed and unsigned type in conditional expression'.
86423         * lib/posixtm.c (posix_time_parse): Likewise.
86424
86425         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
86426
86427         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
86428         to avoid a pedantic warning.
86429
86430         * lib/getstr.c: Don't include assert.h.
86431         (getstr): Remove warning-evoking assertions.
86432         Return -1 if offset parameter is out of bounds.
86433         Change the type of a local from int to size_t.
86434
86435         * lib/strftime.c (my_strftime_localtime_r): Include this function
86436         definition in the `#if ! HAVE_TM_GMTOFF' block.
86437
86438         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
86439         Include xalloc.h instead.
86440
86441 2001-12-02  Jim Meyering  <meyering@lucent.com>
86442
86443         * lib/tempname.c: Don't declare getenv, thus reverting the change of
86444         2001-11-18.  It's no longer necessary, now that stdlib.h is always
86445         included.
86446
86447         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
86448         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
86449
86450 2001-11-30  Akim Demaille  <akim@epita.fr>
86451
86452         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
86453         before being defined.
86454
86455 2001-11-27  Paul Eggert  <eggert@twinsun.com>
86456
86457         * lib/quotearg.h (quotearg_n, quotearg_n_style):
86458         First arg is int, not unsigned.
86459         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
86460         (SIZE_MAX, UINT_MAX): New macros.
86461         (quotearg_n_options): Abort if N is negative.
86462         Avoid overflow check on hosts where size_t is 64 bits and int
86463         is 32 bits, as overflow is impossible there.
86464         Fix off-by-one typo that caused unnecessary reallocation.
86465
86466 2001-11-27  Jim Meyering  <meyering@lucent.com>
86467
86468         * lib/tempname.c: Merge with version from libc.
86469         * lib/regex.c: Likewise.
86470
86471         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
86472         systems for which STDC_HEADERS is 0, it was not included, resulting in
86473         a warning about an integer-to-pointer conversion problem with getenv.
86474         Reported by Volker Borchert.
86475
86476 2001-11-26  Jim Meyering  <meyering@lucent.com>
86477
86478         * lib/gtod.h: Remove file.
86479         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
86480         * lib/gettimeofday.c: Don't include gtod.h.
86481         (GTOD_init): Remove function.
86482         (rpl_gettimeofday): Do its job here instead, rather than aborting.
86483         Suggestion from Volker Borchert.
86484
86485 2001-11-23  Jim Meyering  <meyering@lucent.com>
86486
86487         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
86488         it.
86489         * lib/hash.c (struct hash_table): Define it here instead.
86490
86491 2001-11-22  Jim Meyering  <meyering@lucent.com>
86492
86493         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
86494
86495 2001-11-20  Jim Meyering  <meyering@lucent.com>
86496
86497         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
86498         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
86499
86500 2001-11-19  Jim Meyering  <meyering@lucent.com>
86501
86502         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
86503         directory.  Use "conftestXXXXXX" as the template.
86504         Suggestion from Paul Eggert.
86505
86506         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
86507         immediately, so the test doesn't mistakenly hit the max-open-files
86508         limit.
86509
86510 2001-11-18  Paul Eggert  <eggert@twinsun.com>
86511
86512         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
86513         (TEMPORARIES): New macro.
86514         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
86515         removes an artificial limitation (e.g. HP-UX 10.20, where
86516         TMP_MAX is 17576).
86517
86518 2001-11-18  Jim Meyering  <meyering@lucent.com>
86519
86520         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
86521
86522 2001-11-18  Jim Meyering  <meyering@lucent.com>
86523
86524         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
86525         on SunOS 4.
86526
86527         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
86528         files will be created before anything else.
86529
86530 2001-11-17  Paul Eggert  <eggert@twinsun.com>
86531
86532         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
86533         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
86534
86535 2001-11-17  Jim Meyering  <meyering@lucent.com>
86536
86537         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
86538         Prompted by a report from Bob Proulx.
86539
86540         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
86541         Instead, require UTILS_FUNC_MKSTEMP.
86542
86543 2001-11-17  Jim Meyering  <meyering@lucent.com>
86544
86545         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
86546         Now, that's done as part of AC_FUNC_STRTOD.
86547
86548 2001-11-17  Jim Meyering  <meyering@lucent.com>
86549
86550         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
86551         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
86552         rather than group writable.  Patch by Juan F. Codagnone.
86553
86554         * lib/readtokens.c: Remove explicit declarations of xmalloc and
86555         xrealloc, Instead, include "xalloc.h".
86556
86557         * lib/mountlist.c: Include unlocked-io.h after all system headers.
86558         Remove explicit declarations of xmalloc, xrealloc,
86559         and xstrdup.  Instead, include "xalloc.h".
86560
86561         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
86562         unlocked-io.h.
86563         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
86564         Likewise.
86565         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
86566
86567         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
86568         Reported by Padraig Brady.
86569
86570         * lib/mkstemp.c: #undef mkstemp.
86571         Include config.h.
86572         (rpl_mkstemp): Rename from mkstemp.
86573         Protoize.
86574
86575 2001-11-16  Jim Meyering  <meyering@lucent.com>
86576
86577         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
86578         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
86579         determine the amount of total physical memory, use pstat_getstatic.
86580         HPUX-11 doesn't define _SC_PHYS_PAGES.
86581         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
86582         If sysconf couldn't be used to determine the amount of available
86583         physical memory, use both pstat_getstatic and pstat_getdynamic.
86584         Based on a patch from Bob Proulx.
86585
86586 2001-11-10  Jim Meyering  <meyering@lucent.com>
86587
86588         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
86589         (jm_PREREQ): Use it.
86590
86591 2001-11-09  Jim Meyering  <meyering@lucent.com>
86592
86593         * m4/jm-macros.m4: Require autoconf-2.52f.
86594         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
86595         Use these AC_-prefixed names, not the AM_-prefixed ones.
86596
86597         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
86598
86599 2001-11-05  Jim Meyering  <meyering@lucent.com>
86600
86601         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
86602
86603 2001-11-04  Jim Meyering  <meyering@lucent.com>
86604
86605         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
86606         $DEFS.
86607
86608 2001-11-03  Jim Meyering  <meyering@lucent.com>
86609
86610         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
86611         of AC_DEFUN.
86612
86613         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
86614         know the name of the variable in the macro definition.
86615
86616 2001-11-03  Jim Meyering  <meyering@lucent.com>
86617
86618         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
86619         in argmatch_to_argument call.
86620
86621         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
86622         argument.
86623
86624         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
86625         e.g., a fault due to an attempt to free a NULL pointer.
86626
86627 2001-11-01  Jim Meyering  <meyering@lucent.com>
86628
86629         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
86630         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
86631
86632 2001-11-01  Jim Meyering  <meyering@lucent.com>
86633
86634         * lib/dirfd.c, lib/dirfd.h: New files.
86635         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
86636
86637         * lib/hash.c (hash_print) [TESTING]: Clean up.
86638
86639 2001-10-22  Paul Eggert  <eggert@twinsun.com>
86640
86641         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
86642         to avoid a warning if -Wall.
86643
86644 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
86645
86646         * README: New file
86647         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
86648         (per RMS's instructions, this is now the canonical source)
86649         * lgpl/, gpl/: New directories.
86650
86651 2001-10-21  Paul Eggert  <eggert@twinsun.com>
86652
86653         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
86654
86655 2001-10-21  Jim Meyering  <meyering@lucent.com>
86656
86657         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
86658         this code would end up calling gettext even in packages built
86659         with --disable-nls.
86660         * lib/getopt.c (_): Likewise.
86661         * lib/regex.c (_): Likewise.
86662
86663 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86664
86665         * m4/error.m4 (jm_PREREQ_ERROR):
86666         Do not invoke AC_CHECK_FUNCS with strerror_r, as
86667         AC_FUNC_STRERROR_R does that.
86668         Check for strerror declaration.
86669
86670         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
86671         are supposed to have them these days.
86672         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
86673         Merge changes from latest Autoconf CVS.
86674         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
86675         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
86676         POSIX decided to standardize on the int flavor of strerror_r.
86677
86678 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86679
86680         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
86681         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
86682         Use strerror_r that is only a macro, even if it is not a function.
86683         (strerror): Check for HAVE_DECL_STRERROR before declaring.
86684         (private_strerror): Use prototypes, not old-style function definition.
86685         (print_errno_message): New function.
86686         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
86687         char*-flavored one.
86688         (error_tail, error, error_at_line): Use it.
86689
86690 2001-10-11  Jim Meyering  <meyering@lucent.com>
86691
86692         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
86693         and quote_n (1, ... to avoid clobbering a buffer.
86694
86695 2001-10-05  Jim Meyering  <meyering@lucent.com>
86696
86697         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
86698         hash-pjw.h.
86699         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
86700         * lib/hash-pjw.h: New file.
86701
86702 2001-09-30  Jim Meyering  <meyering@lucent.com>
86703
86704         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
86705         `struct fsstat' has the `f_fstypename' member.
86706         Use that to define FS_TYPE, which is now used to make
86707         the getfsstat link test tighter.
86708
86709 2001-09-30  Jim Meyering  <meyering@lucent.com>
86710
86711         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
86712         Include <sys/ucred.h>, for Apple Darwin.
86713         Include sys/mount.h and sys/fs_types.h only if available.
86714         (FS_TYPE): Define.
86715         (read_filesystem_list): Use FS_TYPE.
86716
86717 2001-09-29  Paul Eggert  <eggert@twinsun.com>
86718
86719         * lib/exclude.c (excluded_filename): 0 -> false, since it's
86720         a boolean context.
86721
86722 2001-09-29  Jim Meyering  <meyering@lucent.com>
86723
86724         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86725         [one-argument getmntent function]): Include stdio.h before mntent.h.
86726         SunOS 4.1.x needs it for the declaration of `FILE'.
86727         Patch by Volker Borchert.
86728
86729         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86730         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
86731         sys/fs_types.h, and make the link-test for getfsstat guard #include
86732         directives with appropriate #if HAVE_*_H tests so that we can
86733         detect getfsstat on Apple Darwin1.3.7 systems.
86734         Reported by Nelson Beebe.
86735         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
86736
86737 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86738
86739         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86740         #defines strtoimax.  Also treat the other strto* functions
86741         like strtoimax.
86742
86743         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86744         Check for strtoul and strtoumax,
86745         as those declarations are made even in the signed case.
86746         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
86747         Likewise, for strtol and strtoimax.
86748
86749 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86750
86751         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86752         #defines strtoimax.  Also treat the other strto* functions
86753         like strtoimax.
86754
86755         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
86756         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
86757         (strtoimax, strtoumax): Do not declare if already defined as a macro.
86758
86759 2001-09-26  Jim Meyering  <meyering@lucent.com>
86760
86761         Most macros in unlocked-io.h had the wrong number of arguments.
86762         * lib/gen-uio: New script.
86763         (USE_UNLOCKED_IO): Define to 1 if not already defined.
86764         * lib/unlocked-io.hin: Remove file.
86765         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
86766         rather than trying to embed it here.
86767         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
86768         Reported by Padraig Brady.
86769
86770 2001-09-25  Volker Borchert  <bt@teknon.de>
86771
86772         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
86773         `result'.
86774
86775 2001-09-24  Jim Meyering  <meyering@lucent.com>
86776
86777         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
86778
86779 2001-09-23  Jim Meyering  <meyering@lucent.com>
86780
86781         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
86782         instead of the mere test for existence of mntent.h.  The latter
86783         would get a false-positive on AIX 3.4 systems.
86784         In the outer getmntent if-block, don't die if neither of the getmntent
86785         tests succeeds.  Instead, just fall through and continue with the
86786         remaining tests.
86787
86788 2001-09-23  Jim Meyering  <meyering@lucent.com>
86789
86790         * lib/mountlist.c: Remove useless parentheses in #if directives.
86791         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
86792         the deprecated MOUNTED symbol is no longer defined in mntent.h.
86793
86794 2001-09-22  Jim Meyering  <meyering@lucent.com>
86795
86796         * m4/gettext.m4: New file.  From gettext.
86797         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
86798         * m4/progtest.m4: Likewise
86799         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
86800         * m4/glibc21.m4: Likewise.
86801
86802         * m4/libintl.m4: Remove.  No longer used.
86803
86804 2001-09-22  Jim Meyering  <meyering@lucent.com>
86805
86806         * lib/localcharset.c: Update from latest gettext.
86807         * lib/config.charset: Likewise.
86808
86809 2001-09-20  Jim Meyering  <meyering@lucent.com>
86810
86811         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
86812         strtoimax.
86813         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
86814         strtoumax.
86815
86816 2001-09-20  Jim Meyering  <meyering@lucent.com>
86817
86818         * lib/xstrtol.c (strtoimax): Guard declaration with
86819         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
86820         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
86821         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
86822         (strtoumax): Likewise, for completeness (it wasn't necessary).
86823
86824 2001-09-17  Paul Eggert  <eggert@twinsun.com>
86825
86826         * lib/strtoimax.c (HAVE_LONG_LONG):
86827         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
86828         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
86829         to work around bug in IBM C compiler.
86830
86831 2001-09-17  Jim Meyering  <meyering@lucent.com>
86832
86833         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
86834         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
86835         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
86836         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
86837         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
86838         whenever the right hand side need not be expanded by the shell.
86839
86840 2001-09-16  Paul Eggert  <eggert@twinsun.com>
86841
86842         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
86843         library.  It's not correct, as some older glibcs are buggy.
86844         fnmatch wasn't fixed until glibc 2.2.
86845
86846         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
86847         special shell magic here.
86848
86849 2001-09-16  Jim Meyering  <meyering@lucent.com>
86850
86851         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
86852         * m4/jm-macros.m4: Require it.
86853
86854 2001-09-16  Jim Meyering  <meyering@lucent.com>
86855
86856         * lib/mkdir.c: New file.
86857
86858 2001-09-15  Jim Meyering  <meyering@lucent.com>
86859
86860         * m4/jm-macros.m4: Check for help2man.
86861
86862 2001-09-11  Jim Meyering  <meyering@lucent.com>
86863
86864         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
86865         The body, by Paul Eggert, was moved here from configure.in.
86866         * m4/jm-macros.m4: Require UTILS_HOST_OS.
86867
86868 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86869
86870         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
86871         (jm_PREREQ): Use it.
86872
86873 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86874
86875         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
86876         Use ssize_t, not int, to store result of readlink.
86877         Check for ssize_t overflow as well as size_t overflow,
86878         as POSIX says the result of readlink is implementation-defined
86879         when ssize_t overflows.
86880         Remove unnecessary cast to char*.
86881         Use free+malloc instead of realloc, as the storage doesn't need
86882         to be preserved and it's clearer and can be more efficient that way.
86883         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
86884         * lib/xreadlink.h (xreadlink): Update prototype.
86885
86886 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86887
86888         * lib/xgetcwd.c: Revert some of the previous change; intead,
86889         fix the HAVE_GETCWD_NULL code to behave more like the
86890         !HAVE_GETCWD_NULL code used to.
86891
86892         Include "xalloc.h".
86893         (xgetcwd): Do not return NULL when memory is exhausted; instead,
86894         invoke xalloc_die.
86895
86896 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86897
86898         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
86899         sys/param.h, as pathmax.h includes them.
86900
86901 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86902
86903         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
86904         (jm_PREREQ_XGETCWD): New macro.
86905
86906         * m4/getcwd.m4: New file.
86907
86908 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86909
86910         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
86911         like the HAVE_GETCWD_NULL code.
86912         Include pathmax.h if not HAVE_GETCWD.
86913         Do not include xalloc.h.
86914         (INITIAL_BUFFER_SIZE): New symbol.
86915         Do not use xmalloc / xrealloc, since the caller is responsible for
86916         handling errors.  Preserve errno around `free' during failure.
86917         Do not overrun buffer when using getwd.
86918
86919 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86920
86921         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
86922         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
86923         getcwd (NULL, 0).
86924
86925 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86926
86927         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
86928         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
86929         spotted by Jim Meyering.
86930
86931 2001-09-03  Jim Meyering  <meyering@lucent.com>
86932
86933         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
86934         failure.
86935
86936 2001-09-02  Jim Meyering  <meyering@lucent.com>
86937
86938         * lib/error.c: Update from GNU libc.
86939
86940 2001-09-01  Jim Meyering  <meyering@lucent.com>
86941
86942         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
86943         Used by df.
86944
86945 2001-09-01  Jim Meyering  <meyering@lucent.com>
86946
86947         * lib/xreadlink.c: New file.
86948         * lib/xreadlink.h: New file.
86949         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
86950         xreadlink.h.
86951
86952         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
86953         doesn't conflict with sparc Solaris 7's definition in
86954         /usr/include/sys/int_types.h.
86955
86956         * lib/exclude.c: Use `""', not `<>' to #include non-system header
86957         files.
86958         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
86959         and strncasecmp as r-values.  Unixware didn't have declarations.
86960
86961 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86962
86963         * lib/xstrtol.h: Add copyright notice.
86964         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
86965         LONGINT_INVALID_SUFFIX_CHAR.
86966
86967 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86968
86969         * lib/xstrtol.c (strtoimax): New decl.
86970
86971 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86972
86973         * lib/xgetcwd.c: Don't include pathmax.h.
86974         Include stdlib.h and unistd.h if available.
86975         Include xalloc.h.
86976         (xmalloc, xstrdup, free): Remove decls.
86977         (xgetcwd): Don't assume sizes fit in unsigned.
86978         Check for overflow when computing sizes.
86979         Simplify reallocation code.
86980
86981 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86982
86983         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
86984         a directory's st_size can have an arbitrary value, so the old
86985         usage could waste an arbitrary amount of memory.  All uses
86986         changed.
86987         * lib/savedir.h: Update prototype.
86988
86989 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86990
86991         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
86992
86993         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
86994         old strtoimax.c.
86995
86996         Also, make the following further changes to make this file's
86997         configuration more similar to that of strtol.c:
86998         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
86999         (strtoumax, uintmax_t, strtoull, strtol): Remove.
87000         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
87001         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
87002         changed to signed values.
87003
87004         And make the following changes as well:
87005         Fix copyright notice, as 1999 was missing.
87006         (verify): New macro.
87007         (strtoimax): Check sizes at compile-time, not run-time.
87008         Prefer strtol to strtoll if both work.
87009         (main): Remove; it was not that useful and was a pain to maintain.
87010
87011         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
87012
87013 2001-08-31  Jim Meyering  <meyering@lucent.com>
87014
87015         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
87016         Use an initial, malloc'd, buffer of length 128 rather than
87017         a statically allocated one of length 1024.
87018
87019 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87020
87021         Simplify code, partly by assuming autoconf 2.52 semantics.
87022
87023         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
87024
87025         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
87026         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
87027         All uses removed.
87028         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
87029         Move AC_REQUIRE to next-to-top level, to avoid confusion.
87030         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
87031         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
87032         jm_AC_HEADER_INTTYPES_H.
87033         * m4/jm-macros.m4 (jm_MACROS): Likewise.
87034
87035         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
87036
87037         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
87038         Quote first arg of AC_DEFUN.
87039         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
87040         since they are needed to parse the include file even if we need
87041         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
87042         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
87043         but with opposite signedness.
87044
87045 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87046
87047         Merge 'exclude' changes from tar 1.13.22.
87048         This fixes one or two unlikely storage allocation overflow bugs,
87049         but doesn't change user-visible behavior otherwise.
87050
87051 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87052
87053         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
87054         (jm_PREREQ_EXCLUDE): New macro.
87055
87056 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87057
87058         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
87059         tm to be declared.
87060
87061 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87062
87063         * lib/hash.c: Remove '2001' from copyright notice.
87064
87065 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87066
87067         * lib/full-write.h: New file.
87068         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
87069         * lib/full-write.c: Correct credits, as cccp.c no longer
87070         exists and anyway it was so heavily changed from the old cccp
87071         code as to be unrecognizable.  Include full-write.h.
87072         (full_write): Return size_t, with short writes meaning failure.
87073         All callers changed.  This fixes a bug with large buffers
87074         on 64-bit hosts.
87075         * lib/utime.c: Include full-write.h.
87076
87077 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87078
87079         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
87080         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
87081         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
87082         Include if available.
87083         (<xalloc.h>): Include
87084         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
87085         (verify): New macro.  Use it to verify that EXCLUDE macros do not
87086         collide with FNM macros.
87087         (struct patopts): New struct.
87088         (struct exclude): Use it, as exclude patterns now come with options.
87089         (new_exclude): Support above changes.
87090         (new_exclude, add_exclude_file):
87091         Initial size must now be a power of two to simplify overflow checking.
87092         (free_exclude, fnmatch_no_wildcards): New function.
87093         (excluded_filename): No longer requires options arg, as the options
87094         are determined by add_exclude.  Now returns bool, not int.
87095         (excluded_filename, add_exclude):
87096         Add support for the fancy new exclusion options.
87097         (add_exclude, add_exclude_file): Now takes int options arg.
87098         Check for arithmetic overflow when computing sizes.
87099         (add_exclude_file): xrealloc might modify errno, so don't
87100         realloc until after errno might be used.
87101
87102         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
87103         New macros.
87104         (free_exclude): New decl.
87105         (add_exclude, add_exclude_file): Now takes int options arg.
87106         (excluded_filename): No longer requires options arg, as the options
87107         are determined by add_exclude.  Now returns bool, not int.
87108
87109 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87110
87111         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
87112
87113 2001-08-27  Jim Meyering  <meyering@lucent.com>
87114
87115         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
87116
87117         * lib/version-etc.c (N_): Remove definition.
87118         Revert most of last change.
87119         Instead, simply don't mark the `Copyright...' string for translation.
87120         Based on advice from Paul Eggert.
87121
87122         * lib/strtoxmax.c: Tweak comment.
87123
87124 2001-08-26  Jim Meyering  <meyering@lucent.com>
87125
87126         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
87127
87128         * m4/xstrtoimax.m4: New file.
87129         * m4/xstrtoumax.m4: Add comments explaining why we
87130         AC_REPLACE_FUNCS(strtol).
87131
87132 2001-08-26  Jim Meyering  <meyering@lucent.com>
87133
87134         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
87135         of copyright with `%s' so translators don't get an untranslated
87136         message in 2002.
87137         (COPYRIGHT_YEAR): Define.
87138         (version_etc): Use fprintf rather than fputs.
87139         Suggestion from Ulrich Drepper.
87140
87141         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
87142
87143         * lib/strtoll.c: New file, from GNU libc.
87144         * lib/xstrtoimax.c: New file.
87145
87146         * lib/xstrtol.h: Add xstrtoimax.
87147         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
87148         * lib/strtoimax.c: New file.  Likewise, but first define
87149         STRTOUXMAX_SIGNED.
87150
87151         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
87152         ...
87153         * lib/strtoxmax.c: ... then renamed to this.
87154
87155 2001-08-18  Paul Eggert  <eggert@twinsun.com>
87156
87157         * m4/inttypes.m4: Add AC_PREREQ(2.13).
87158         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
87159         (jm_AC_TYPE_INTMAX_T): New macro.
87160         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
87161
87162         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
87163
87164         * m4/longlong.m4: Renamed from ulonglong.m4.
87165         * m4/inttypes.m4: Renamed from inttypes_h.m4.
87166         * m4/uintmax_t.m4: Removed.
87167
87168 2001-08-13  Paul Eggert  <eggert@twinsun.com>
87169
87170         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
87171         Port to Solaris 8, where 'sed' requires a space after the 'r'
87172         command, and where sh dislikes "$/".  Clean up the spacing a bit.
87173         Redirect output to $tmp just once.
87174
87175 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
87176
87177         * lib/addext.c (<errno.h>): Include.
87178         (errno): Declare if not defined.
87179         (addext): Work correctly when pathconf returns -1 and leaves
87180         errno alone because there is no limit.  Also, work even if
87181         pathconf returns a value greater than SIZE_MAX.
87182
87183 2001-08-12  Jim Meyering  <meyering@lucent.com>
87184
87185         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
87186         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
87187         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
87188         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
87189         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
87190         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
87191         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
87192         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
87193         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
87194         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
87195         utime.m4, utimes.m4, xstrtoumax.m4:
87196         Quote the first argument in each use of AC_DEFUN.
87197
87198 2001-08-12  Jim Meyering  <meyering@lucent.com>
87199
87200         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
87201         Simply `return getcwd (NULL, 0);'.
87202         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
87203         Use 1300 as initial value for length, not PATH_MAX.
87204
87205         * lib/pathmax.h: Clean up cpp syntax.
87206
87207 2001-08-12  Jim Meyering  <meyering@lucent.com>
87208
87209         * lib/gettimeofday.c: New file.
87210         * lib/gtod.h: New file.
87211         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
87212
87213 2001-08-05  Jim Meyering  <meyering@lucent.com>
87214
87215         * m4/jm-macros.m4: Require autoconf-2.52.
87216
87217 2001-08-04  Jim Meyering  <meyering@lucent.com>
87218
87219         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
87220         stmt, to get in sync with glibc.
87221
87222 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87223
87224         The following changes are from gettext 0.10.39 as maintained by
87225         Bruno Haible.
87226
87227         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
87228         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
87229         with inverted sense.  All uses changed.
87230
87231         * lib/mbswidth.c: Don't include <limits.h>.
87232         Include <stdlib.h> and <string.h> unconditionally.
87233         (iswcntrl, mbsinit, ISCNTRL): New macros.
87234         (mbsnwidth): Use K&R style function declarations.
87235         Don't bother checking for MB_LEN_MAX == 1, since the compiler
87236         can optimize it when MB_CUR_MAX == 1.
87237         The width of control characters is zero, not 1.
87238
87239 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87240
87241         The following changes are from gettext 0.10.39 as maintained by
87242         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
87243
87244         * m4/codeset.m4: Upgrade to serial AM1.
87245         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
87246         all uses changed.  Quote first arg of AC_DEFUN.
87247         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
87248
87249         * m4/iconv.m4: Upgrade to serial AM2.
87250         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
87251         Add --with-libconv-prefix.
87252         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
87253         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
87254         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
87255         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
87256         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
87257
87258         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
87259         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
87260         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
87261         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
87262         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
87263         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
87264         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
87265         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
87266         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
87267
87268         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
87269         string.h any more.
87270
87271         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
87272         not the default value.
87273
87274         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
87275         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
87276         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
87277         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
87278         Also check for iswcntrl, used for wcwidth fallback.
87279         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
87280         to Autoconf 2.13.
87281
87282 2001-08-03  Jim Meyering  <meyering@lucent.com>
87283
87284         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
87285         as it was in the original.  Reported by Paul Eggert.
87286
87287 2001-07-16  Jim Meyering  <meyering@lucent.com>
87288
87289         * m4/gettimeofday.m4: New file.
87290         Prompted by a report from Bernhard Baehr.
87291
87292 2001-07-15  Jim Meyering  <meyering@lucent.com>
87293
87294         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
87295         stuff. Now it's in ../Makefile.cfg.
87296
87297 2001-07-15  Jim Meyering  <meyering@lucent.com>
87298
87299         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
87300         (BUILT_SOURCES): Add unlocked-io.h.
87301         (io_functions): Define.
87302         (unlocked-io.h): New rule.
87303         (DISTCLEANFILES): Add unlocked-io.h.
87304         (all-local): Depend on unlocked-io.h, to ensure it is created.
87305
87306         * lib/unlocked-io.hin: New file
87307
87308         * lib/regex.c: Update from glibc.
87309
87310 2001-07-05  Jim Meyering  <meyering@lucent.com>
87311
87312         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
87313         recommendation.
87314         (libfetish_a_SOURCES): Put all .h files here instead.
87315         Remove a thus-exposed (better checks in automake) duplicate and
87316         two unnecessary .h files.
87317
87318 2001-07-04  Jim Meyering  <meyering@lucent.com>
87319
87320         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
87321         that generates jm-glibc-io.m4 so that it doesn't trigger any make
87322         distcheck failure.
87323
87324 2001-07-02  Jim Meyering  <meyering@lucent.com>
87325
87326         The following changes were prompted by suggestions from Bruno Haible.
87327
87328         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
87329         is now generated.
87330         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
87331         definition of EXTRA_DIST.
87332         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
87333         ensure that the generated file is created/updated whenever the list
87334         of $(unlocked_functions) is changed.
87335         (jm-glibc-io.m4): New rule.
87336         (unlocked-io.h): New rule -- currently unused.
87337
87338 2001-06-24  Jim Meyering  <meyering@lucent.com>
87339
87340         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
87341         unmatched right bracket, rather than kludging it with an extra,
87342         falsely-matching quote in a comment.  Patch by Akim Demaille.
87343
87344 2001-06-11  Jim Meyering  <meyering@lucent.com>
87345
87346         * lib/regex.c: Update from GNU libc.
87347
87348 2001-05-27  Jim Meyering  <meyering@lucent.com>
87349
87350         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
87351         Check for ut_type in struct utmp.
87352
87353 2001-05-27  Jim Meyering  <meyering@lucent.com>
87354
87355         * lib/readutmp.h (UT_TYPE): Define.
87356
87357 2001-05-24  Jim Meyering  <meyering@lucent.com>
87358
87359         * lib/argmatch.c: Include "quote.h".
87360         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
87361         quote function.  Reported by Göran Uddeborg.
87362
87363 2001-05-22  Jim Meyering  <meyering@lucent.com>
87364
87365         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
87366         now that we use the package-supplied version unconditionally.
87367         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
87368
87369 2001-05-21  Jim Meyering  <meyering@lucent.com>
87370
87371         * m4/regex.m4: Change a couple backticks to single quotes to avoid
87372         shell syntax errors.
87373
87374 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87375
87376         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
87377
87378 2001-05-20  Paul Eggert  <eggert@twinsun.com>
87379
87380         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
87381         Don't bother to check library strftime, since
87382         we'll be using our own my_strftime function anyway.
87383         Define my_strftime instead of strftime.
87384
87385 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
87386
87387         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
87388         which is not yet declared.
87389
87390 2001-05-15  Jim Meyering  <meyering@lucent.com>
87391
87392         * m4/regex.m4: Use proper quoting so brackets appear in the test
87393         program.
87394         Reported by, and with help from, Bruno Haible.
87395
87396 2001-05-13  Jim Meyering  <meyering@lucent.com>
87397
87398         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
87399         undefined.
87400
87401 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87402
87403         dirname code cleanup.  base_name now behaves more compatibly
87404         with POSIX basename when given file names that have trailing
87405         slashes, and similarly for dir_name.  Add new primitives
87406         base_len and dir_len.  Put the directory-name-related decls
87407         into dirname.h.
87408
87409         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
87410         * lib/backupfile.c (base_name): Likewise.
87411         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
87412         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
87413         * lib/makepath.c (strip_trailing_slashes): Likewise.
87414         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
87415         ISSLASH): Likewise.
87416         * lib/rename.c (strip_trailing_slashes): Likewise.
87417         * lib/same.c (base_name): Likewise.
87418         * lib/stripslash.c (ISSLASH): Likewise.
87419
87420         * lib/addext.c: Include <dirname.h> after size_t is defined.
87421         * lib/backupfile.c: Likewise.
87422
87423         * lib/addext.c (addext): Use base_len to trim redundant
87424         trailing slashes instead of doing it ourselves.
87425         But do not trim the last slash if it is not redundant.
87426
87427         * lib/backupfile.c (find_backup_file_name,
87428         max_backup_version): Use base_len instead of rolling it ourselves.
87429         Handle the case of "" and (on DOS) "C:" correctly.
87430
87431         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
87432         needed. Include <string.h>, <dirname.h>.
87433         (base_name): Allow file names ending in slashes, other than names
87434         that are all slashes.  In this case, return the basename followed
87435         by the slashes.  This is more general, and can be used in places
87436         where the original base_name purposely had an assertion failure.
87437         (base_len): New function.
87438
87439         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
87440         Do not include <assert.h>; no longer needed.
87441         Include xalloc.h.
87442         (memrchr): Remove decl.
87443         (dir_name_r): Remove.
87444         (dir_len): Renamed from dirlen.  All callers changed.
87445         Rewrite in terms of base_name, for simplicity and consistency.
87446         (dir_name): Never return NULL.  All callers changed.
87447         Do not include <stdlib.h> in test program; no longer needed.
87448         return 0; is fine for test program.
87449
87450         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
87451         New macros.
87452         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
87453
87454         * lib/path-concat.c (path_concat): Use base_len to compute
87455         base length, not strlen; this means we cannot rely on memcpy
87456         to null-terminate.
87457
87458         * lib/same.c (STREQ): Remove.
87459         (same_name): Handle the case where the basename ends in trailing '/'.
87460
87461         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
87462         a slash was stripped.  Do not strip the last slash after a
87463         file system prefix.
87464
87465 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87466
87467         * lib/Makefile.am (libfetish_a_SOURCES):
87468         Add strftime.c, since we now compile it on all hosts.
87469
87470         * lib/strftime.c (my_strftime):
87471         Define to nstrftime if emacs, but only if my_strftime is not defined.
87472         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
87473         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
87474         Add one more extra argument: a nanoseconds value.
87475         All uses changed.
87476         (ns): New macro.
87477         (my_strftime function): Add %N format.
87478         (emacs_strftimeu): Renamed from emacs_strftime,
87479         with extra ut argument.
87480
87481 2001-05-09  Paul Eggert  <eggert@twinsun.com>
87482
87483         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
87484
87485 2001-04-21  Jim Meyering  <meyering@lucent.com>
87486
87487         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
87488         doesn't interfere.
87489
87490 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87491
87492         * m4/ftruncate.m4: Check for chsize.
87493         Link with ftruncate.o unconditionally if ftruncate is missing.
87494         This was required when cross-compiling to i586-mingw32msvc.
87495
87496 2001-04-08  Jim Meyering  <meyering@lucent.com>
87497
87498         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
87499         recomputed; that's necessary when the offset spans a DST transition.
87500         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
87501
87502 2001-04-02  Jim Meyering  <meyering@lucent.com>
87503
87504         * lib/regex.h, regex.c: Update from GNU libc.
87505
87506 2001-03-24  Jim Meyering  <meyering@lucent.com>
87507
87508         * m4/jm-macros.m4: Require autoconf-2.49d.
87509
87510 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
87511
87512         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
87513
87514 2001-03-19  Paul Eggert  <eggert@twinsun.com>
87515
87516         * lib/version-etc.c (version_etc_copyright): Update to 2001.
87517
87518 2001-03-17  Jim Meyering  <meyering@lucent.com>
87519
87520         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
87521         now that the version in autoconf is equivalent.
87522         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
87523
87524         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
87525         Suggestion from Akim Demaille.
87526
87527         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
87528         (jm_PREREQ_TEMPNAME): New function.
87529
87530 2001-03-16  Paul Eggert  <eggert@twinsun.com>
87531
87532         * lib/tempname.c (uint64_t): Define to uintmax_t if
87533         not defined, and if UINT64_MAX is not defined.
87534         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
87535         Reported by John David Anglin.
87536
87537 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
87538
87539         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
87540         resolve alias if codeset is empty.
87541         * lib/config.charset (BeOS): Use wildcard syntax.
87542
87543 2001-03-13  Jim Meyering  <meyering@lucent.com>
87544
87545         * lib/path-concat.c (path_concat)
87546         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
87547         concatenating e.g., `C:' and `foo'.
87548         From Bruno Haible.
87549
87550 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87551
87552         * lib/localcharset.c (locale_charset): Don't use
87553         setlocale(LC_CTYPE,NULL). Don't return NULL.
87554         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
87555
87556 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87557
87558         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
87559         support for DOS/DJGPP.
87560
87561 2001-03-01  Paul Eggert  <eggert@twinsun.com>
87562
87563         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
87564         lacks mkstemp.  Compile our own tempname.c if we compile our own
87565         mkstemp.c, as mkstemp relies on tempname.
87566
87567 2001-03-01  Jim Meyering  <meyering@lucent.com>
87568
87569         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
87570         AH_VERBATIM really does output its argument verbatim.
87571
87572 2001-02-28  Paul Eggert  <eggert@twinsun.com>
87573
87574         * lib/Makefile.am (libfetish_a_SOURCES):
87575         Add dup-safer.c, fopen-safer.c.
87576         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
87577
87578         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
87579         * lib/unistd-safer.h: New files.
87580
87581 2001-02-25  Paul Eggert  <eggert@twinsun.com>
87582
87583         The mkstemp replacement is taken from glibc 2.2.2, with some
87584         portability fixes for use outside glibc, as follows:
87585
87586         * lib/tempname.c (struct_stat64): New macro.
87587         (direxists, __gen_tempname): Use it.
87588         This avoids a portability problem with Solaris 8.
87589
87590         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
87591         (<stddef.h>, <stdint.h>, <string.h>):
87592         Include only if STDC_HEADERS || _LIBC.
87593         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
87594         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
87595         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
87596         (__set_errno): Define this macro if <errno.h> doesn't.
87597         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
87598         Define these macros if <stdio.h> doesn't.
87599         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
87600         Define these macros if <sys/stat.h>
87601         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
87602         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
87603         __xstat64): Define if not _LIBC.
87604         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
87605         (__gen_tempname): Invoke gettimeofday only if
87606         HAVE_GETTIMEOFDAY || _LIBC;
87607         otherwise, fall back on plain "time".
87608         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
87609
87610         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
87611
87612         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
87613
87614 2001-02-18  Paul Eggert  <eggert@twinsun.com>
87615
87616         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
87617
87618 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87619
87620         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
87621         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
87622         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
87623         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
87624
87625 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87626
87627         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
87628         Remove workaround macros for hosts that have mbrtowc but not
87629         mbstate_t, as we now insist on proper declarations for both
87630         before using mbrtowc.
87631
87632 2001-02-17  Jim Meyering  <meyering@lucent.com>
87633
87634         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
87635         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
87636         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
87637         UnixWare 7.1.1.
87638
87639         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
87640         rather than AC_CACHE_VAL.
87641
87642 2001-02-17  Jim Meyering  <meyering@lucent.com>
87643
87644         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
87645         around included file name.
87646
87647         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
87648
87649         * lib/strftime.c: Update from GNU libc (the only changes were to
87650         comments).
87651
87652 2001-02-17  Jim Meyering  <meyering@lucent.com>
87653
87654         * lib/regex.c: Update from libc.
87655
87656 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
87657
87658         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
87659         clash.
87660
87661 2001-02-16  Paul Eggert  <eggert@twinsun.com>
87662
87663         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
87664         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
87665         Reported by Mark Hounschell via Paul Eggert.
87666
87667 2001-02-07  Jim Meyering  <meyering@lucent.com>
87668
87669         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
87670
87671 2001-02-05  Jim Meyering  <meyering@lucent.com>
87672
87673         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
87674         it includes the patch required for `large file' support with at least
87675         HP-UX's 10.20 /bin/cc.
87676
87677 2001-02-03  Jim Meyering  <meyering@lucent.com>
87678
87679         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
87680         AS_IF, now that it works once again (mysteriously).
87681         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87682
87683 2001-01-30  Jim Meyering  <meyering@lucent.com>
87684
87685         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
87686         * m4/chown.m4: Rename conftestchown to conftest.chown.
87687         * m4/rename.m4: s/conftestdir/conftest.d1/ and
87688         s/conftestdir2/conftest.d2/.
87689         * m4/utimes.m4: s/conftestdata/conftest.data/
87690         Inspired by Pavel Roskin's change in autoconf.
87691
87692 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
87693
87694         * lib/config.charset: Update for FreeBSD 4.2.
87695
87696 2001-01-27  Jim Meyering  <meyering@lucent.com>
87697
87698         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
87699         a use of AS_IF.
87700         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87701
87702 2001-01-26  Jim Meyering  <meyering@lucent.com>
87703
87704         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
87705         quotearg.c includes it.
87706
87707 2001-01-26  Jim Meyering  <meyering@lucent.com>
87708
87709         * lib/quotearg.c: Include stddef.h.
87710         * lib/quote.c: Include stddef.h.
87711         Reported by Axel Kittenberger.
87712
87713         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
87714         line in double quotes so that it evokes a better diagnostic.
87715         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
87716         Reported by Axel Kittenberger.
87717
87718 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
87719
87720         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
87721         as if it was a `charset'.
87722
87723 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87724
87725         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
87726         has const.
87727
87728 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87729
87730         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
87731         to avoid a warning.  Add back 'const' to inptr.
87732
87733 2001-01-20  Jim Meyering  <meyering@lucent.com>
87734
87735         Be sure that headers are checked before used in code compiled
87736         for the type checks.
87737         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
87738         In place of that, invoke jm_CHECK_ALL_TYPES.
87739         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
87740         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
87741         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
87742         The check for ssize_t was mistakenly run before the test for unistd.h.
87743
87744         The configure-time check for stdbool.h was missing.
87745         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
87746         (jm_PREREQ_HASH): New function.
87747
87748 2001-01-17  Jim Meyering  <meyering@lucent.com>
87749
87750         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
87751         for autoconf-2.49c.
87752         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
87753
87754 2001-01-16  Jim Meyering  <meyering@lucent.com>
87755
87756         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
87757         From Bruno Haible.
87758
87759 2001-01-14  Jim Meyering  <meyering@lucent.com>
87760
87761         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
87762         foo and bar.  Create conftestdir/ in the script, not in the C code.
87763         Remove directories in the script, not in the C code.
87764         Remove conftestdir{,2} before trying to create the directory.
87765         Make the entire configure script fail if the mkdir fails.
87766
87767 2001-01-14  Jim Meyering  <meyering@lucent.com>
87768
87769         * lib/rename.c: New file.  From Volker Borchert.
87770         Include stdlib.h, string.h or strings.h, and xalloc.h.
87771         Use strip_trailing_slashes rather than open-coding it.
87772
87773 2001-01-03  Paul Eggert  <eggert@twinsun.com>
87774
87775         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
87776
87777 2001-01-03  Jim Meyering  <meyering@lucent.com>
87778
87779         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
87780         of local `inptr' to avoid warning with some system declarations of
87781         iconv.
87782
87783 2001-01-02  Volker Borchert  <bt@teknon.de>
87784
87785         * m4/rename.m4: New file.
87786         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
87787
87788 2001-01-01  Jim Meyering  <meyering@lucent.com>
87789
87790         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
87791         even on systems with utmpx.h.  It's necessary for the declaration of
87792         utmp's ut_user member.  Reported by Andreas Jaeger.
87793
87794         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
87795         available. They are required for the declarations of getgrgid and
87796         getpwuid resp.
87797         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
87798         Reported by Andreas Jaeger.
87799
87800 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
87801
87802         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
87803         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
87804         so `make install' also works in VPATH builds.
87805
87806 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
87807
87808         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
87809         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
87810         can be used in subdirectories.
87811
87812 2000-12-29  Paul Eggert  <eggert@twinsun.com>
87813
87814         * lib/modechange.c: Do not assume that mode_t uses the
87815         traditional octal encoding.  E.g. "chmod 1 FOO" should set
87816         the other-execute bit of FOO even if S_IXOTH != 1.
87817
87818         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
87819         WOTH, XOTH, ALLM): New macros.
87820         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
87821          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
87822         Use them.
87823         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
87824         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
87825         (mode_compile):
87826         No need to use uintmax_t; unsigned long is long enough.
87827         Don't bother to get suffix since we don't use it.
87828
87829 2000-12-26  Jim Meyering  <meyering@lucent.com>
87830
87831         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
87832         better with autoheader.
87833
87834 2000-12-24  Jim Meyering  <meyering@lucent.com>
87835
87836         * lib/hash.c (is_prime): Return explicit boolean values.
87837         (hash_get_first): Return NULL to appease Irix5.6's 89.
87838         Reported by Nelson Beebe.
87839
87840 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
87841
87842         * lib/localcharset.c (locale_charset): Add support for Win32.
87843
87844 2000-12-18  Paul Eggert  <eggert@twinsun.com>
87845
87846         * lib/physmem.h, lib/physmem.c: New files.
87847
87848         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
87849         (noinst_HEADERS): Add physmem.h.
87850
87851         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
87852         't' for compatibility with Solaris 8 sort.
87853
87854 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
87855
87856         * lib/config.charset: Add support for BeOS.
87857
87858 2000-12-17  Jim Meyering  <meyering@lucent.com>
87859
87860         * m4/dos.m4 (jm_AC_DOS): New file and macro.
87861         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
87862
87863 2000-12-16  Jim Meyering  <meyering@lucent.com>
87864
87865         This bug had a serious impact on chown: `chown N:M FILE' (for integer
87866         N and M) would have treated it like `chown N:N FILE'.
87867
87868         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
87869
87870 2000-12-16  Jim Meyering  <meyering@lucent.com>
87871
87872         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
87873         SHELLS_FILE to a file name that's useful on djgpp systems.
87874         Include stdlib.h.
87875         (ADDITIONAL_DEFAULT_SHELLS): Define.
87876         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
87877         Based mostly on a patch from Prashant TR.
87878
87879 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
87880
87881         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
87882         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
87883         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
87884
87885 2000-12-08  Andreas Schwab  <schwab@suse.de>
87886
87887         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
87888         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
87889
87890 2000-12-07  Jim Meyering  <meyering@lucent.com>
87891
87892         * lib/stripslash.c (ISSLASH): Define.
87893         (strip_trailing_slashes): Use ISSLASH rather than comparing against
87894         `/'.
87895         From Prashant TR.
87896
87897         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
87898         (dir_name_r): Declare this function as static.
87899         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
87900         manifest itself on a name containing a mix of slashes and
87901         backslashes.
87902         Make this function work with names starting with a DOS-style
87903         drive letter and colon prefix.
87904         (dir_name): Append `.' if necessary.
87905         Based mostly on patches from Prashant TR and Eli Zaretskii.
87906
87907         * lib/dirname.h (dir_name_r): Remove prototype.
87908
87909 2000-12-06  Paul Eggert  <eggert@twinsun.com>
87910
87911         * m4/off_t-format.m4: Remove this file.
87912         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
87913
87914 2000-12-06  Jim Meyering  <meyering@lucent.com>
87915
87916         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
87917         replacement strtoull, we may well need the replacement strtoul, too.
87918         Check for declarations of strtoul and strtoull.
87919         Check for strtol.  Mainly as a cue to cause automake to include
87920         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
87921         Check for limits.h -- strtol.c needs it.
87922
87923 2000-12-05  Jim Meyering  <meyering@lucent.com>
87924
87925         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
87926
87927 2000-12-04  Jim Meyering  <meyering@lucent.com>
87928
87929         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
87930         Also include memory.h, stdlib.h, unistd.h if appropriate.
87931         Reported by Andreas Jaeger (conflicting declaration of malloc).
87932
87933 2000-12-02  Jim Meyering  <meyering@lucent.com>
87934
87935         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
87936         * m4/jm-macros.m4 (jm_MACROS): require it.
87937
87938 2000-12-02  Jim Meyering  <meyering@lucent.com>
87939
87940         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
87941
87942 2000-12-01  Paul Eggert  <eggert@twinsun.com>
87943
87944         * lib/memrchr.c: Include <config.h> before any system include file.
87945
87946 2000-11-30  Jim Meyering  <meyering@lucent.com>
87947
87948         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
87949
87950 2000-11-30  Jim Meyering  <meyering@lucent.com>
87951
87952         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
87953
87954 2000-11-29  Paul Eggert  <eggert@twinsun.com>
87955
87956         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
87957
87958 2000-11-26  Jim Meyering  <meyering@lucent.com>
87959
87960         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
87961
87962 2000-11-22  Paul Eggert  <eggert@twinsun.com>
87963
87964         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
87965         size of (size_t) -1; it's not portable.
87966
87967 2000-11-17  Jim Meyering  <meyering@lucent.com>
87968
87969         * lib/strstr.c: Update from GNU libc.
87970
87971 2000-11-17  Akim Demaille  <akim@epita.fr>
87972
87973         * lib/obstack.h: Formatting changes.
87974         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
87975         prevent type checking.
87976         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
87977         cast the value to (void *): assigning a `foo *' to a `void *'
87978         variable is valid.
87979         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
87980
87981 2000-11-16  Jim Meyering  <meyering@lucent.com>
87982
87983         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
87984
87985 2000-11-11  Jim Meyering  <meyering@lucent.com>
87986
87987         * lib/error.c: Add a couple #includes, merging from GNU libc version.
87988
87989 2000-11-10  Jim Meyering  <meyering@lucent.com>
87990
87991         * lib/obstack.h: Update from GNU libc.
87992         * lib/obstack.c: Likewise.
87993
87994 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
87995
87996         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
87997
87998 2000-11-06  Paul Eggert  <eggert@twinsun.com>
87999
88000         * lib/getusershell.c (setusershell): Use rewind rather than
88001         fseek/fseeko, to avoid configuration hassles with fseeko.
88002         Don't bother opening SHELLS_FILE if shellstream is NULL;
88003         it's not necessary.
88004
88005 2000-11-05  Jim Meyering  <meyering@lucent.com>
88006
88007         * lib/makepath.h (make_dir): Declare.
88008         * lib/makepath.c (make_dir): Remove `static' attribute.
88009         Tweak a comment.
88010
88011 2000-11-04  Jim Meyering  <meyering@lucent.com>
88012
88013         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
88014
88015 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
88016
88017         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
88018         last one in a bucket, advance to the next bucket.
88019
88020 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
88021
88022         * lib/fnmatch.c: Do not comment out all the code if we are using
88023         the GNU C library, because in some cases we are replacing buggy
88024         code in the GNU C library itself.
88025
88026 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
88027
88028         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
88029         (regex_compile): Catch bogus \(\1\).
88030
88031 2000-10-30  Paul Eggert  <eggert@twinsun.com>
88032
88033         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
88034         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
88035         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
88036
88037 2000-10-30  Paul Eggert  <eggert@twinsun.com>
88038
88039         * lib/error.h, getline.h, modechange.h:
88040         Remove "2000" from Copyright line, as the file hasn't been
88041         changed this year other than in the copyright notice.
88042
88043         * lib/xalloc.h: Add "2000" to Copyright line, as this file
88044         was changed this year.
88045
88046 2000-10-29  Jim Meyering  <meyering@lucent.com>
88047
88048         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
88049         renaming.
88050         * m4/ls-mntd-fs.m4: Likewise
88051
88052 2000-10-29  Jim Meyering  <meyering@lucent.com>
88053
88054         * lib/xstat.in: Fix grammar in comment.
88055
88056 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
88057
88058         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
88059         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
88060         doesn't define __restrict_arr.
88061
88062 2000-10-28  Jim Meyering  <meyering@lucent.com>
88063
88064         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
88065         (jm_PREREQ_MEMCHR): New function.
88066
88067 2000-10-28  Jim Meyering  <meyering@lucent.com>
88068
88069         * lib/memchr.c: Update from libc.
88070         Adjust for portability:
88071         [HAVE_STDLIB_H]: Include stdlib.h.
88072         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
88073         Undef __memchr, too.
88074         [!weak_alias]: Define __memchr to memchr.
88075
88076         * lib/regex.c: Update from libc.
88077         * lib/regex.h: Likewise.
88078         * lib/getopt1.c: Likewise.
88079         * lib/memcmp.c: Likewise.
88080
88081         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
88082         Avoid using fseek, when possible -- it's broken by design.
88083         Patch by Ulrich Drepper.
88084
88085 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
88086
88087         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
88088         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
88089         Giving in to popular pressure to shut up the compiler with casts.
88090
88091 2000-10-26  Jim Meyering  <meyering@lucent.com>
88092
88093         * lib/strftime.c: Update from libc.
88094
88095 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
88096
88097         * regex.c: More `unsigned char' -> `re_char' changes.
88098         Also change several `int' into `re_wchar_t'.
88099         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
88100         (PUSH_FAILURE_POINTER): Don't cast any more.
88101         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
88102         We want GCC to complain, since this piece of code makes
88103         re_match non-reentrant, which *should* be fixed.
88104         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
88105         (EXTEND_BUFFER): Use RETALLOC.
88106         (SET_LIST_BIT): Don't cast.
88107         (re_wchar_t): New type.
88108         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
88109         that those two functions will always properly return.
88110         (IMMEDIATE_QUIT_CHECK): Cast to void.
88111         (analyse_first): Use recursion rather than an explicit stack.
88112         (re_compile_fastmap): Can't fail anymore.
88113         (re_search_2): Don't check re_compile_fastmap for failure.
88114         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
88115         Now also sets the new value (passed in a new argument).
88116         (re_match_2_internal): Use it.
88117         Also, use a new var `reg' of type size_t when looping through regs
88118         rather than reuse the inappropriate `mcnt'.
88119
88120 2000-10-25  Jim Meyering  <meyering@lucent.com>
88121
88122         * lib/obstack.c: Update from libc.
88123
88124 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
88125
88126         * regex.c (regex_compile): Change the way of handling a range from
88127         a char less than 256 to a char not less than 256.
88128
88129 2000-10-24  Andrew Innes  <andrewi@gnu.org>
88130
88131         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
88132         NT-Emacs only.
88133         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
88134         so that re_search functions only quit when callers expect them to.
88135
88136 2000-10-23  Jim Meyering  <meyering@lucent.com>
88137
88138         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
88139         wrong.  That set_locale call must not have any side effects.
88140         From Paul Eggert.
88141
88142 2000-10-22  Jim Meyering  <meyering@lucent.com>
88143
88144         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
88145         [CYCLIC]: Remove now-unused definition.
88146
88147         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
88148         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
88149         Suggestion from Ulrich Drepper.
88150
88151 2000-10-21  Jim Meyering  <meyering@lucent.com>
88152
88153         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
88154         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
88155         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
88156
88157 2000-10-21  Jim Meyering  <meyering@lucent.com>
88158
88159         * lib/dirname.c (memrchr): Declare if necessary.
88160         (dir_name): Remove the restriction that there be no
88161         trailing slashes.  Now, this code skips past them, effectively
88162         ignoring them.
88163         [TEST_DIRNAME] (main): New unit tests.
88164
88165         * lib/memrchr.c: New file from GNU libc.
88166         Undef __memrchr, too.
88167         [!weak_alias]: Define __memrchr to memrchr.
88168         Guard weak_alias use with `#ifdef weak_alias'.
88169
88170 2000-10-21  Jim Meyering  <meyering@lucent.com>
88171
88172         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
88173         (dir_name): Use dir_name_r.
88174         * lib/dirname.h (dir_name_r): Declare it.
88175
88176 2000-10-17  Jim Meyering  <meyering@lucent.com>
88177
88178         * lib/quote.h (PARAMS): Define and use.
88179         Reported by Akim Demaille.
88180
88181         * lib/getopt.c: Update from libc.
88182
88183 2000-10-16  Jim Meyering  <meyering@lucent.com>
88184
88185         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
88186         setlocale.
88187         From Jan Fedak.
88188
88189 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
88190
88191         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
88192
88193 2000-09-25  Jim Meyering  <meyering@lucent.com>
88194
88195         * lib/md5.h (rol): Define (from GnuPG).
88196
88197         * lib/sha.c: Give credit (GnuPG) where due.
88198         (M): Use rol rather than open-coding it.
88199         Add a FIXME comment.
88200
88201 2000-09-21  Jim Meyering  <meyering@lucent.com>
88202
88203         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
88204         Reported by Michael Stone.
88205
88206 2000-09-20  Jim Meyering  <meyering@lucent.com>
88207
88208         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
88209         (noinst_HEADERS): Add sha.h.
88210         Based on code from Scott G. Miller and from GnuPG.
88211
88212 2000-09-18  Jim Meyering  <meyering@lucent.com>
88213
88214         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
88215         LIBS. Otherwise, everyone ends up linking with -lelf for some
88216         configurations.
88217         Reported by Mike Stone.
88218
88219 2000-09-15  Jim Meyering  <meyering@lucent.com>
88220
88221         * lib/regex.c: Update from libc.
88222
88223 2000-09-10  Jim Meyering  <meyering@lucent.com>
88224
88225         * lib/getopt.c (_getopt_internal): Update from glibc.
88226
88227 2000-09-09  Jim Meyering  <meyering@lucent.com>
88228
88229         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
88230         think it should be used as a general replacement for isascii.
88231         * lib/fnmatch.c: Likewise.
88232         * lib/mbswidth.c: Likewise
88233         * lib/regex.c: Likewise.
88234
88235         Don't use atoi.
88236         * lib/userspec.c: Include sys/param.h and limits.h.
88237         Include xstrtol.h.
88238         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
88239         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
88240         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
88241         UID, GID.  Check range.
88242
88243 2000-09-06  Jim Meyering  <meyering@lucent.com>
88244
88245         * lib/getopt.c (_getopt_internal): Update from glibc.
88246
88247 2000-08-30  Jim Meyering  <meyering@lucent.com>
88248
88249         * lib/strftime.c: Merge in changes from GNU libc.
88250
88251 2000-08-26  Jim Meyering  <meyering@lucent.com>
88252
88253         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
88254         * m4/fpending.m4: New file.
88255
88256 2000-08-26  Jim Meyering  <meyering@lucent.com>
88257
88258         * lib/closeout.c: Include "__fpending.h".
88259         (close_stdout_status): Return right away if there's nothing to flush.
88260
88261         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
88262         * lib/__fpending.c: New file.
88263         * lib/__fpending.h: New file.
88264
88265 2000-08-20  Jim Meyering  <meyering@lucent.com>
88266
88267         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
88268         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
88269         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
88270
88271 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
88272
88273         Improve fileutils installation on systems where running
88274         programs (like install) can't be unlinked.
88275         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
88276         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
88277
88278 2000-08-07  Paul Eggert  <eggert@twinsun.com>
88279
88280         Standardize on "memory exhausted" instead of "Memory exhausted"
88281         or "virtual memory exhausted".
88282         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
88283         "virtual memory exhausted".
88284         * lib/same.c (same_name): Invoke xalloc_die instead of printing
88285         our own message.
88286         * lib/userspec.c (parse_user_spec): Likewise.
88287         * lib/bumpalloc.h: comment fix
88288         * lib/same.c, userspec.c: Include xalloc.h.
88289
88290         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
88291         not char *const and pointing to a constant array.
88292         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
88293         (xrealloc): Comment fix.
88294
88295         * lib/userspec.c (parse_user_spec):
88296         Don't translate a message until just before returning,
88297         to avoid unnecessary translation.
88298
88299 2000-08-07  Jim Meyering  <meyering@lucent.com>
88300
88301         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
88302         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
88303         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
88304         getgroups.c, gethostname.c, getopt.h, group-member.c,
88305         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
88306         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
88307         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
88308         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
88309         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
88310         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
88311         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
88312         yesno.c: Back out Copyright date changes for each file with no change
88313         this year.  This eases coordination with other programs using the same
88314         source code modules.  From Paul Eggert.
88315
88316 2000-08-06  Paul Eggert  <eggert@twinsun.com>
88317
88318         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
88319         not char, for compatibility with glibc 2.1.3 strftime.c.
88320
88321 2000-08-03  Greg McGary  <greg@mcgary.org>
88322
88323         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
88324         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
88325         (EXTEND_BUFFER): Use them.
88326
88327 2000-08-01  Jim Meyering  <meyering@lucent.com>
88328
88329         * lib/dirname.c (ISSLASH): Define.
88330         (BACKSLASH_IS_PATH_SEPARATOR): Define.
88331         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
88332         both `\' and `/' may be use as path separators.
88333         Based on a patch from Prashant TR.
88334
88335 2000-07-31  Paul Eggert  <eggert@twinsun.com>
88336
88337         * lib/quotearg.c (quotearg_n_options): Don't make the initial
88338         slot vector a constant, since it might get modified.
88339
88340 2000-07-31  Jim Meyering  <meyering@lucent.com>
88341
88342         * lib/xmalloc.c: Use `virtual memory exhausted', not
88343         `Memory exhausted'.
88344         * lib/obstack.c (print_and_abort): Likewise.
88345
88346 2000-07-30  Paul Eggert  <eggert@twinsun.com>
88347
88348         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
88349         buffer, so that the caller can always quote one small
88350         component of a "memory exhausted" message in slot 0.
88351         From a suggestion by Jim Meyering.
88352
88353 2000-07-30  Jim Meyering  <meyering@lucent.com>
88354
88355         * lib/makepath.c (make_path): Quote the other instance, too.
88356
88357         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
88358         (STATIC_BUF_SIZE): Define.
88359         (quotearg_n_options): Use only statically allocated storage when
88360         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
88361         than STATIC_BUF_SIZE.
88362
88363 2000-07-29  Jim Meyering  <meyering@lucent.com>
88364
88365         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
88366         * lib/dirname.c (dir_name): Likewise.
88367
88368         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
88369         `/'.
88370
88371         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
88372         (dir_name): Assert that there are no trailing slashes.
88373
88374 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
88375
88376         * lib/mbswidth.h (mbswidth): Add a flags argument.
88377         (mbswidth): New declaration.
88378         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
88379         * lib/mbswidth.c (mbswidth): Add a flags argument.
88380         (mbsnwidth): New function.
88381
88382 2000-07-24  Jim Meyering  <meyering@lucent.com>
88383
88384         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
88385
88386 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88387
88388         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
88389
88390 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88391
88392         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
88393         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
88394         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
88395         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
88396         invoke multibyte primitives.
88397
88398 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88399
88400         * lib/quotearg.c:
88401         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
88402         so that mbstate_t is always defined.
88403
88404         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
88405         be 1 in at least one GCC installation, and this configuration
88406         error is likely to be common.  Ignoring MB_LEN_MAX hurts
88407         performance on hosts that have mbrtowc but have only unibyte
88408         locales, but I assume these hosts are rare.
88409
88410 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88411
88412         * lib/mbswidth.c (_XOPEN_SOURCE):
88413         Don't define; this causes problems on Solaris 7.
88414         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
88415
88416 2000-07-23  Jim Meyering  <meyering@lucent.com>
88417
88418         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
88419         too: getgrgid, getpwuid, getuid.
88420
88421 2000-07-23  Jim Meyering  <meyering@lucent.com>
88422
88423         * lib/basename.c (base_name): Add an assertion.
88424
88425 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
88426
88427         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
88428         shadow its mbsinit function.
88429
88430 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88431
88432         * lib/mbswidth.h: New file.
88433         * lib/mbswidth.c: New file.
88434         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
88435         (noinst_HEADERS): Add mbswidth.h.
88436
88437 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88438
88439         * lib/config.charset: Add support for FreeBSD. Improve support for
88440         HP-UX and IRIX 6.
88441
88442 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
88443
88444         * m4/mbswidth.m4: New file.
88445         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
88446
88447 2000-07-15  Jim Meyering  <meyering@lucent.com>
88448
88449         * lib/makepath.c: Include quote.h.
88450         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
88451         corresponding argument in a `quote (...)' call.
88452         Give better diagnostics.
88453
88454         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
88455         (noinst_HEADERS): Add quote.h.
88456
88457         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
88458         from tar's src/misc.c.
88459         * lib/quote.h: New file.  Prototypes for same.
88460
88461 2000-07-14  Paul Eggert  <eggert@twinsun.com>
88462
88463         From a suggestion by Bruno Haible.
88464         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
88465         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
88466         to decide whether to define the BeOS workaround macro;
88467         this adjusts to the change to AC_MBSTATE_T.
88468
88469 2000-07-14  Jim Meyering  <meyering@lucent.com>
88470
88471         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
88472         jm_AC_TYPE_UINTMAX_T.
88473
88474 2000-07-13  Paul Eggert  <eggert@twinsun.com>
88475
88476         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
88477
88478         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
88479         quotearg_buffer_restyled): Add support for
88480         clocale_quoting_style.  Undo previous change to
88481         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
88482         and "{RIGHT QUOTATION MARK}" msgids.
88483
88484 2000-07-10  Paul Eggert  <eggert@twinsun.com>
88485
88486         From a suggestion by Bruno Haible.
88487         * m4/mbstate_t.m4 (AC_MBSTATE_T):
88488         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
88489         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
88490         and mbstate_t, to a single-part test that simply defines mbstate_t.
88491         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
88492         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
88493
88494 2000-07-10  Jim Meyering  <meyering@lucent.com>
88495
88496         * m4/strerror_r.m4: Mirror the correction made in autoconf.
88497
88498         * m4/gnu-source.m4: Output to confdefs.h directly.
88499         Suggestion from Akim Demaille.
88500
88501 2000-07-09  Paul Eggert  <eggert@twinsun.com>
88502
88503         The old behavior of quoting `like this' doesn't look good with
88504         newer, ISO-style fonts.  See:
88505         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
88506
88507         Instead, quote "like this" by default.  Let the translator
88508         tailor the locale-specific quoting behavior by providing
88509         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
88510
88511         * lib/quotearg.c (N_): New macro.
88512         (gettext_default): New function.
88513         (quotearg_buffer_restyled): Use
88514         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
88515         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
88516
88517 2000-07-09  Jim Meyering  <meyering@lucent.com>
88518
88519         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
88520         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
88521
88522         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
88523         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
88524
88525 2000-07-09  Jim Meyering  <meyering@lucent.com>
88526
88527         * lib/Most files: Update copyright dates to include 2000.
88528
88529 2000-07-08  Jim Meyering  <meyering@lucent.com>
88530
88531         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
88532         if not defined.
88533         (xgethostname): Remove now-unnecessary #ifdef.
88534         Move declaration of `err' into loop where it's used.
88535
88536 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88537         and Bruno Haible  <haible@clisp.cons.org>
88538
88539         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
88540         only if the test for an object-type mbstate_t fails.  This
88541         prevents us from mistakenly reporting that mbstate_t is a
88542         system object type after we "#define mbstate_t int" to work
88543         around its lack.
88544
88545 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88546         and Bruno Haible  <haible@clisp.cons.org>
88547
88548         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
88549
88550 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88551
88552         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
88553         to strerror_r.
88554         Include <ctype.h> for use of isalpha.
88555
88556 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88557
88558         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
88559         by allocating a larger buffer. Test the gethostname return value for
88560         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
88561         returns an error and ENAMETOOLONG isn't defined.
88562
88563 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88564
88565         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
88566         dimension.
88567
88568 2000-07-04  Jim Meyering  <meyering@lucent.com>
88569
88570         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
88571         of the deprecated AC_CHECKING.
88572
88573 2000-07-04  Jim Meyering  <meyering@lucent.com>
88574
88575         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
88576         Reported by Bruno Haible.
88577
88578 2000-07-04  Jim Meyering  <meyering@lucent.com>
88579
88580         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
88581         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
88582         lacks mbrtowc.
88583
88584 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88585
88586         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
88587         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
88588
88589 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88590         and Bruno Haible  <haible@clisp.cons.org>
88591
88592         * lib/quotearg.c (mbrtowc):
88593         Assign to *pwc, and return 1 only if result is nonzero.
88594         (iswprint): Use ISPRINT when substituting our own mbrtowc.
88595
88596 2000-07-03  Jim Meyering  <meyering@lucent.com>
88597
88598         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
88599
88600 2000-07-03  Jim Meyering  <meyering@lucent.com>
88601
88602         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
88603         This is necessary to get a definition of e.g., UTMP_FILE on
88604         HP-UX 10.20.
88605         From Bob Proulx.
88606
88607 2000-07-02  Jim Meyering  <meyering@lucent.com>
88608
88609         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
88610
88611         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
88612         AC_LIBOBJ(function_name).
88613         * m4/chown.m4: Likewise.
88614         * m4/fnmatch.m4: Likewise.
88615         * m4/ftruncate.m4: Likewise.
88616         * m4/getgroups.m4: Likewise.
88617         * m4/getline.m4: Likewise.
88618         * m4/group-member.m4: Likewise.
88619         * m4/jm-macros.m4: Likewise.
88620         * m4/lstat.m4: Likewise.
88621         * m4/malloc.m4: Likewise.
88622         * m4/memcmp.m4: Likewise.
88623         * m4/nanosleep.m4: Likewise.
88624         * m4/putenv.m4: Likewise.
88625         * m4/realloc.m4: Likewise.
88626         * m4/regex.m4: Likewise.
88627         * m4/stat.m4: Likewise.
88628         * m4/strftime.m4: Likewise.
88629
88630 2000-07-02  Jim Meyering  <meyering@lucent.com>
88631
88632         * lib/quotearg.c (mbstate_t): Don't define here.
88633
88634 2000-07-02  Jim Meyering  <meyering@lucent.com>
88635
88636         * lib/nanosleep.c (SIGCONT): Define if not already defined.
88637
88638 2000-07-01  Jim Meyering  <meyering@lucent.com>
88639
88640         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
88641
88642 2000-07-01  Jim Meyering  <meyering@lucent.com>
88643
88644         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
88645         problem.
88646
88647 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88648
88649         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
88650         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
88651
88652 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88653
88654         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
88655         per change in ../m4/ls-mntd-fs.m4.
88656         (read_filesystem_list): Ignore symbolic links.
88657
88658 2000-06-29  Jim Meyering  <meyering@lucent.com>
88659
88660         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
88661         for declaration of strcmp.
88662
88663         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
88664
88665         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
88666         Avoid warning by casting result to `char *' to remove `const'.
88667
88668 2000-06-28  Jim Meyering  <meyering@lucent.com>
88669
88670         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
88671         included by quotearg.c, for which we perform this test.  From
88672         Bruno Haible.
88673
88674 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88675
88676         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
88677         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
88678         <utmpx.h> exists, put readutmp.o into LIBOBJS.
88679
88680 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88681
88682         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
88683
88684 2000-06-26  Paul Eggert  <eggert@twinsun.com>
88685
88686         savedir now sets errno on failure and invokes xmalloc to get memory.
88687         Fix a couple of other minor bugs while we're at it.
88688
88689         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
88690         (NAMLEN): Remove macro.
88691         (malloc, realloc): Remove decls.
88692         (stpcpy): Likewise.
88693         ("xalloc.h"): Include.
88694         (NAME_SIZE_DEFAULT): New macro.
88695         (savedir): Use xmalloc / xrealloc to allocate memory.
88696         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
88697         Skip "" directory entries.
88698         Use strlen to calculate directory entry length, since the old method
88699         is rarely used these days and isn't worth supporting.
88700         Don't use a pointer after freeing it.
88701         Check for integer overflow when calculating allocation size.
88702         Use memcpy to copy entries, instead of stpcpy.
88703         Set errno properly when returning NULL.
88704         Check for readdir error.
88705
88706 2000-06-26  Jim Meyering  <meyering@lucent.com>
88707
88708         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
88709
88710 2000-06-25  Jim Meyering  <meyering@lucent.com>
88711
88712         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
88713         Linux header bug when _XOPEN_SOURCE is defined to 500.
88714
88715 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88716
88717         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
88718         deficiency.
88719
88720 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88721
88722         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
88723         Include xalloc.h.
88724         Don't include <stdlib.h>.  Don't declare malloc, realloc.
88725
88726 2000-06-24  Jim Meyering  <meyering@lucent.com>
88727
88728         * m4/strerror_r.m4: Revive this file -- to try out an experimental
88729         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
88730         for which strerror does return char*, but which lacks a conveniently
88731         accessible declaration of the function.  If the compile-test says
88732         strerror_r doesn't work, then resort to a `run'-test that works on
88733         BeOS and segfaults on DEC Unix.
88734
88735 2000-06-24  Jim Meyering  <meyering@lucent.com>
88736
88737         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
88738
88739 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88740
88741         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
88742         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
88743
88744 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88745
88746         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
88747         (mbrtowc, mbstate_t): Define substitutes if
88748         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
88749         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
88750         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
88751
88752 2000-06-23  Jim Meyering  <meyering@lucent.com>
88753
88754         * m4/afs.m4: Add missing AC_MSG_RESULT.
88755         Reported by Bruno Haible.
88756
88757         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
88758         Suggestion from Bruno Haible.
88759
88760 2000-06-23  Jim Meyering  <meyering@lucent.com>
88761
88762         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
88763
88764 2000-06-21  Jim Meyering  <meyering@lucent.com>
88765
88766         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
88767
88768 2000-06-21  Jim Meyering  <meyering@lucent.com>
88769
88770         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
88771         (noinst_HEADERS): Add getstr.h.
88772
88773         * lib/getline.c (getstr): Move into a separate file.
88774         * lib/getstr.c (getstr): New file, extracted from getline.c, with
88775         the following changes: new parameter, delim2; both delim[12]
88776         parameters have type `int', not `char'.  The latter would lose
88777         with 8-bit delimiters.
88778         * lib/getstr.h: New file.
88779
88780 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88781
88782         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
88783         than 1024, return a memory chunk of least possible size, instead
88784         of size PATH_MAX + 2. In the loop, increment the size proportionally.
88785         Use free/xmalloc instead of xrealloc to avoid copying for very long
88786         paths.
88787
88788 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88789
88790         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
88791         the empty string.
88792
88793 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88794
88795         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
88796         address, not strdup.  Include <stdlib.h> and don't declare free().
88797
88798 2000-06-19  Jim Meyering  <meyering@lucent.com>
88799
88800         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
88801
88802 2000-06-18  Jim Meyering  <meyering@lucent.com>
88803
88804         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
88805
88806         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
88807         `checking whether...' message to be consistent with that of the
88808         lstat test.
88809
88810 2000-06-18  Jim Meyering  <meyering@lucent.com>
88811
88812         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
88813         Besides, these days every porting target provides a mkdir function.
88814
88815         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
88816         needed. (this snippet comes from src/system.h).
88817
88818 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
88819
88820         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
88821
88822 2000-06-15  Paul Eggert  <eggert@twinsun.com>
88823
88824         * lib/human.c (adjust_value): New function.
88825         (human_readable_inexact): Apply rounding style even when
88826         printing approximate values.
88827
88828 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88829
88830         * lib/human.c (human_readable_inexact): Allow an input block
88831         size that is not a multiple of the output block size, and vice versa.
88832         Reported by Piergiorgio Sartor.
88833
88834 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88835
88836         * lib/getdate.y (get_date): Apply relative times after time
88837         zone indicator, not before.  Reported by Todd A. Jacobs.
88838
88839 2000-06-13  Jim Meyering  <meyering@lucent.com>
88840
88841         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
88842
88843         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
88844
88845 2000-06-12  Paul Eggert  <eggert@twinsun.com>
88846
88847         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
88848
88849 2000-06-12  Jim Meyering  <meyering@lucent.com>
88850
88851         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
88852         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
88853         optional argument.
88854         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
88855         the optional argument, `lib'.
88856
88857 2000-06-08  Jim Meyering  <meyering@lucent.com>
88858
88859         * m4/largefile.m4: Remove file (now that it's part of autoconf).
88860
88861 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88862
88863         Rewrite largefile configuration so that we don't need to run
88864         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
88865         AC_CANONICAL_HOST in configure.in -- jmm]
88866
88867         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
88868         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
88869         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
88870         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
88871         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
88872         All uses changed.
88873         Instead of inspecting the output of getconf, try to compile the
88874         test program without and with the macro definition.
88875         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
88876         for getconf.  Instead, check for the needed flags by compiling
88877         test programs.
88878
88879 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88880
88881         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
88882
88883 2000-06-04  Jim Meyering  <meyering@lucent.com>
88884
88885         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
88886         SunOS 4.1.4 for which gid_t is an unsigned type.
88887
88888 2000-06-03  Jim Meyering  <meyering@lucent.com>
88889
88890         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
88891         now that autoconf requires that.
88892
88893         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
88894         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
88895         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
88896
88897 2000-06-03  Jim Meyering  <meyering@lucent.com>
88898
88899         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
88900
88901 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88902
88903         * m4/glibc21.m4: New file.
88904         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
88905
88906 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88907
88908         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
88909         newer, don't install charset.alias.
88910         * lib/config.charset: Change the Linux/glibc rules so they become empty
88911         on glibc-2.1 or newer.
88912
88913 2000-06-02  Jim Meyering  <meyering@lucent.com>
88914
88915         * lib/mountlist.c: Back out last change.  Instead, do this...
88916         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
88917         me_dummy member using the same `ignore'-testing code.
88918         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
88919         fs_type strings.
88920         From Mark D. Roth.
88921
88922 2000-05-29  Jim Meyering  <meyering@lucent.com>
88923
88924         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
88925         mounts with the `ignore' attribute.  Based on a patch from
88926         Mark D. Roth.
88927
88928 2000-05-28  Jim Meyering  <meyering@lucent.com>
88929
88930         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
88931         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88932         * m4/stat.m4: Likewise.
88933         * m4/lstat.m4: Likewise.
88934         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
88935
88936         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
88937         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
88938
88939 2000-05-26  Jim Meyering  <meyering@lucent.com>
88940
88941         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
88942
88943 2000-05-24  Jim Meyering  <meyering@lucent.com>
88944
88945         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
88946         autoconf requires that.
88947         * m4/lib-check.m4: Likewise.
88948         * m4/jm-macros.m4: Likewise.
88949         * m4/strftime.m4: Likewise.
88950
88951         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
88952         AC_CHECK_DECLS, now that autoconf requires that.
88953
88954 2000-05-22  Jim Meyering  <meyering@lucent.com>
88955
88956         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88957         * m4/lstat.m4: Likewise.
88958
88959 2000-05-22  Jim Meyering  <meyering@lucent.com>
88960
88961         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
88962
88963 2000-05-20  Jim Meyering  <meyering@lucent.com>
88964
88965         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
88966         (jm_PREREQ): Use it.
88967
88968 2000-05-18  Jim Meyering  <meyering@lucent.com>
88969
88970         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
88971         back, too, since it may have been modified by allocate_entry.
88972         (hash_delete): Rewrite to use neither the assignment operator
88973         nor the comma operator in an if-expression.
88974
88975 2000-05-15  Paul Eggert  <eggert@twinsun.com>
88976
88977         * lib/closeout.c:
88978         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
88979         Remove; no longer needed.
88980         "quotearg.h": Add include.
88981         (file_name): Do not bother to explicitly initialize to NULL; it's less
88982         efficient on some hosts.
88983         (close_stdout_status): Remove test as to whether stdout was already
88984         closed; it breaks for the case "echo x | sort >&-".
88985         Quote file name colons.
88986         Do not assume that _("write error") lacks format strings.
88987
88988 2000-05-15  Jim Meyering  <meyering@lucent.com>
88989
88990         * lib/version-etc.c (version_etc_copyright): Update the copyright
88991         string used in all --version output.
88992
88993 2000-05-14  Jim Meyering  <meyering@lucent.com>
88994
88995         * lib/closeout.c (close_stdout_set_file_name): New function.
88996         (close_stdout_status): Use new file-scoped global.
88997         Return right away if fstat says the stdout file descriptor is invalid.
88998         * lib/closeout.h (close_stdout_set_file_name): Declare.
88999
89000 2000-05-10  Jim Meyering  <meyering@lucent.com>
89001
89002         * lib/closeout.c [default_exit_status]: New file-scoped variable.
89003         (close_stdout_set_status): New function.
89004         * lib/closeout.h (close_stdout_set_status): Declare.
89005
89006 2000-05-09  Jim Meyering  <meyering@lucent.com>
89007
89008         * m4/gettext.m4: Rename this...
89009         * m4/libintl.m4: ...to this.
89010
89011 2000-05-08  Jim Meyering  <meyering@lucent.com>
89012
89013         * lib/long-options.c: Don't include closeout.h.
89014         (parse_long_options): Don't call close_stdout for --version.
89015
89016 2000-05-06  Paul Eggert  <eggert@twinsun.com>
89017
89018         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
89019         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
89020         2.1.3 bug.  This avoids a clash when files like regex.c define
89021         _GNU_SOURCE.
89022
89023 2000-05-06  Jim Meyering  <meyering@lucent.com>
89024
89025         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
89026         (AC_REPLACE_FUNCS): Add strnlen.
89027
89028         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
89029         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
89030
89031         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
89032         AC_SEARCH_LIBS call for nanosleep.
89033         (LIB_NANOSLEEP): Set and AC_SUBST.
89034
89035 2000-05-06  Jim Meyering  <meyering@lucent.com>
89036
89037         * lib/strnlen.c: Undefine __strnlen and strnlen.
89038         [!weak_alias]: Define __strnlen to strnlen.
89039
89040         * lib/atexit.c: New file, from libiberty.
89041
89042 2000-05-06  Jim Meyering  <meyering@lucent.com>
89043
89044         * lib/closeout.c (close_stdout_status): Also check for errors on the
89045         stderr stream.
89046
89047 2000-05-05  Jim Meyering  <meyering@lucent.com>
89048
89049         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
89050         AC_SEARCH_LIBS call for clock_gettime.
89051         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
89052
89053         * m4/search-libs.m4: Update from autoconf.
89054
89055         su doesn't work on Solaris 2.6.
89056         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
89057         <shadow.h>.  Reported by Dragos Harabor.
89058
89059 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
89060
89061         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
89062         memcpy instead of xmalloc, xrealloc, path_concat.
89063         (locale_charset): Treat empty environment variables as absent.
89064         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
89065
89066 2000-05-04  Jim Meyering  <meyering@lucent.com>
89067
89068         * lib/getopt.c: Update from glibc.
89069         * lib/obstack.c: Likewise.
89070         * lib/obstack.h: Likewise.
89071         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
89072         file
89073
89074         * lib/regex.h: Likewise.
89075         * lib/strndup.c: Likewise.
89076         * lib/strnlen.c: New file, from glibc.
89077
89078 2000-05-03  Jim Meyering  <meyering@lucent.com>
89079
89080         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
89081
89082 2000-05-02  Paul Eggert  <eggert@twinsun.com>
89083
89084         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
89085         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
89086         compile-time test, rather than inspecting host and OS, to
89087         decide whether to define _LARGEFILE_SOURCE.
89088
89089 2000-05-01  Jim Meyering  <meyering@lucent.com>
89090
89091         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
89092
89093         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
89094         Based on a patch from Bruno Haible.
89095
89096 2000-05-01  Jim Meyering  <meyering@lucent.com>
89097
89098         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
89099
89100 2000-04-29  Jim Meyering  <meyering@lucent.com>
89101
89102         * lib/path-concat.c: Declare strdup only if it's not defined.
89103         * lib/canon-host.c: Likewise.
89104
89105 2000-04-28  Jim Meyering  <meyering@lucent.com>
89106
89107         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
89108         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
89109         is included first, then limits.h is included by locale.h by libintl.h.
89110         From John David Anglin.
89111
89112 2000-04-25  Jim Meyering  <meyering@lucent.com>
89113
89114         * lib/makepath.c (S_IRWXUGO): Define.
89115         (make_path): Always perform explicit chmod if MODE specifies any
89116         of the `special' permission bits.  Prompted by a bug report against
89117         install from Mate Wierdl and Joost van Baal.
89118
89119 2000-04-18  Jim Meyering  <meyering@lucent.com>
89120
89121         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
89122         (jm_PREREQ): Use it.
89123
89124 2000-04-18  Jim Meyering  <meyering@lucent.com>
89125
89126         * lib/README: New file.
89127
89128         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
89129         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
89130
89131 2000-04-17  Jim Meyering  <meyering@lucent.com>
89132
89133         Get it right :-)
89134         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
89135         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
89136         Suggestion from Akim Demaille.
89137
89138 2000-04-17  Jim Meyering  <meyering@lucent.com>
89139
89140         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
89141         the definition of it to rpl_strftime also defined-away the system's
89142         declaration.
89143
89144 2000-04-15  Jim Meyering  <meyering@lucent.com>
89145
89146         Use `C' to denote so-called `contiguous' files, the same way
89147         that tar does.
89148         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
89149         (ftypelet): Use S_ISCTG.
89150         From Michael Deutschmann.
89151
89152 2000-04-14  Jim Meyering  <meyering@lucent.com>
89153
89154         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
89155         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
89156         clobbered.
89157
89158 2000-04-14  Jim Meyering  <meyering@lucent.com>
89159
89160         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
89161
89162 2000-04-13  Jim Meyering  <meyering@lucent.com>
89163
89164         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
89165         AH_VERBATIM to insert required #ifndef into config.h.in.
89166         Suggestion from Akim Demaille.
89167
89168 2000-04-12  Jim Meyering  <meyering@lucent.com>
89169
89170         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
89171         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
89172         Christian Krackowizer.
89173
89174         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
89175         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
89176         (AC_SYS_LARGEFILE): Require.
89177         (AM_C_PROTOTYPES): Require.
89178
89179 2000-04-08  Jim Meyering  <meyering@lucent.com>
89180
89181         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
89182         names don't conflict.  Reported by Eli Zaretskii.
89183
89184 2000-04-07  Jim Meyering  <meyering@lucent.com>
89185
89186         * lib/putenv.c: Move inclusion of errno.h so it follows that of
89187         sys/types.h, to work around system header problems on AIX 3.2.5.
89188         From Bruno Haible.
89189
89190 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
89191
89192         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
89193         bug.  Deal with the different error behavior of Irix iconv.
89194
89195 2000-04-05  Paul Eggert  <eggert@twinsun.com>
89196
89197         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
89198         IRIX if the installer said otherwise.
89199
89200 2000-04-05  Jim Meyering  <meyering@lucent.com>
89201
89202         Portability tweaks required for ultrix4.3.
89203         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
89204         (jm_CHECK_DECLS): Add getutent to the list of functions.
89205         (_jm_DECL_HEADERS): Add utmpx.h.
89206         From John David Anglin.
89207
89208         * m4/strftime.m4: Back out the 2000-04-02 change.
89209         Instead of that change, simply undefine putenv in the test program.
89210
89211 2000-04-05  Jim Meyering  <meyering@lucent.com>
89212
89213         Portability tweaks required for ultrix4.3.
89214         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
89215         getutent.
89216         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
89217         * lib/canon-host.c: Declare strdup.
89218         * lib/path-concat.c: Likewise.
89219         From John David Anglin.
89220
89221 2000-04-04  Jim Meyering  <meyering@lucent.com>
89222
89223         Be more DOS 8.3-friendly.
89224         * lib/ref-add.sin: Renamed from ref-add.sed.in.
89225         * lib/ref-del.sin: Renamed from ref-del.sed.in.
89226         * lib/Makefile.am: Reflect renaming.
89227         Reported by Eli Zaretskii.
89228
89229         Use a temporary file name that won't clash with `charset.alias'
89230         in the DOS 8.3 name space.
89231         * lib/Makefile.am (charset_tmp): Define.
89232         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
89233         (uninstall-local): Likewise.
89234         Reported by Eli Zaretskii.
89235
89236 2000-04-03  Jim Meyering  <meyering@lucent.com>
89237
89238         * m4/gettext.m4: Fix typo in comment.
89239
89240         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
89241         textutils/configure.in).  Suggestion from Paul Eggert.
89242         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
89243
89244 2000-04-02  Paul Eggert  <eggert@twinsun.com>
89245
89246         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
89247         variable in the shell rather than using putenv, which isn't
89248         portable.  This avoids the configure-time inter-test dependency
89249         on the potentially-renamed putenv function.
89250
89251 2000-03-30  Paul Eggert  <eggert@twinsun.com>
89252
89253         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
89254         before checking struct stat.st_blksize, so that
89255         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
89256
89257 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89258
89259         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
89260         since strftime.c uses HAVE_STRFTIME to decide whether to use
89261         the underlying strftime.
89262
89263 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89264
89265         * lib/time/strftime.c (my_strftime): Make sure we call the system
89266         strftime, not ourselves, when invoking the underlying strftime.
89267
89268 2000-03-24  Jim Meyering  <meyering@lucent.com>
89269
89270         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
89271         (charset_alias): Define.
89272         (install-exec-local): Factor out common code.
89273         (uninstall-local): Split lines longer than 80.
89274         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
89275         (SUFFIXES): Define.
89276         (.sed.in.sed): New rule.  Don't redirect directly to $@.
89277         (CLEANFILES): Add ref-add.sed and ref-del.sed.
89278
89279 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
89280
89281         * lib/config.charset: Output a line containing "Packages using this
89282         file".
89283         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
89284         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
89285         ref-del.sed): New rules.
89286
89287 2000-03-17  Jim Meyering  <meyering@lucent.com>
89288
89289         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
89290         Otherwise, include <strings.h>
89291
89292 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
89293
89294         * lib/unicodeio.c (utf8_wctomb): New function.
89295         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
89296         format instead of in UCS-4 with platform dependent endianness.
89297
89298 2000-03-10  Jim Meyering  <meyering@lucent.com>
89299
89300         * m4/lib-check.m4: Look for getspnam in -lgen, too.
89301         From Marco Franzen.
89302
89303 2000-03-07  Paul Eggert  <eggert@twinsun.com>
89304
89305         * lib/savedir.c (savedir): Work even if directory size is
89306         negative; this can happen with some screwy NFS configurations.
89307
89308 2000-03-06  Jim Meyering  <meyering@lucent.com>
89309
89310         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
89311         if it's NULL (because we ran out of memory).  From Bruno Haible.
89312
89313 2000-03-05  Jim Meyering  <meyering@lucent.com>
89314
89315         * lib/localcharset.c ("path-concat.h"): Include.
89316         (get_charset_aliases): Use path_concat instead of ANSI string
89317         concatenation.
89318
89319         * lib/unicodeio.h (PARAMS): Define.
89320         Use it to guard prototype.
89321
89322 2000-03-04  Jim Meyering  <meyering@lucent.com>
89323
89324         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
89325         for lib/localcharset.c.
89326
89327 2000-03-04  Jim Meyering  <meyering@lucent.com>
89328
89329         * lib/Makefile.am (install-exec-local): Create $(libdir) before
89330         installing into it.
89331         (uninstall-local): Uncomment this rule so `make distcheck' works
89332         once again.
89333
89334         * lib/unicodeio.c (<errno.h>): Include it.
89335         (errno): Declare if not defined.
89336
89337         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
89338
89339         * lib/config.charset: New version, incorporating remarks from a linux
89340         i18n mailing list.  From Bruno Haible.
89341
89342 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
89343
89344         * m4/codeset.m4: New file.
89345         * m4/iconv.m4: New file.
89346         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
89347
89348 2000-03-03  Jim Meyering  <meyering@lucent.com>
89349
89350         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
89351
89352 2000-03-02  Jim Meyering  <meyering@lucent.com>
89353
89354         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
89355         the messages come out on separate lines.
89356
89357         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
89358         rather than jm_CHECK_DECLARATIONS.
89359         * m4/decl.m4: Remove now-unused file.
89360
89361         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
89362         geteuid.
89363
89364 2000-03-02  Jim Meyering  <meyering@lucent.com>
89365
89366         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
89367
89368 2000-03-01  Jim Meyering  <meyering@lucent.com>
89369
89370         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
89371         * lib/unicodeio.c: Likewise.
89372
89373 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
89374
89375         * lib/config.charset: New file.
89376         * lib/localcharset.c: New file.
89377         * lib/unicodeio.h, lib/unicodeio.c: New files.
89378         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
89379         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
89380         (noinst_HEADERS): Add unicodeio.h.
89381         (all-local, install-exec-local, charset.alias): New targets.
89382
89383 2000-02-28  Paul Eggert  <eggert@twinsun.com>
89384
89385         * lib/quotearg.c (ALERT_CHAR): New macro.
89386         (quotearg_buffer_restyled): Use it.
89387
89388 2000-02-27  Jim Meyering  <meyering@lucent.com>
89389
89390         * m4/check-decl.m4: Add getenv to the list.
89391
89392 2000-02-27  Jim Meyering  <meyering@lucent.com>
89393
89394         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
89395         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
89396
89397         * lib/backupfile.c: Guard inclusion of stdlib.h with
89398         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
89399         Declare malloc if needed.
89400
89401         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
89402         `#ifndef HAVE_DECL..'
89403         now that autoconf always defines the HAVE_DECL_ symbols.
89404         * lib/human.c: Likewise.
89405         * lib/same.c: Likewise.
89406         * lib/strtoumax.c: Likewise.
89407
89408         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
89409         declaration check was not run.
89410         * lib/hash.c: Likewise.
89411         * lib/human.c: Likewise.
89412         * lib/same.c: Likewise.
89413         * lib/strtoumax.c: Likewise.
89414
89415         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
89416         `.', then first look up the entire `.'-containing string as a login
89417         name.
89418
89419 2000-02-23  Jim Meyering  <meyering@lucent.com>
89420
89421         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
89422         in place of my hack.
89423
89424 2000-02-18  Paul Eggert  <eggert@twinsun.com>
89425
89426         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
89427         (textint): New typedef.
89428         (parser_control): Member year changed from int to textint.
89429         All uses changed.
89430         (YYSTYPE): Removed; replaced by %union with int and textint members.
89431         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
89432         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
89433         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
89434         (tSNUMBER, tUNUMBER): Now of type <textintval>.
89435         (date, number, to_year): Use width of number in digits, not its value,
89436         to determine whether it's a 2-digit year, or a 2-digit time.
89437         (yylex): Store number of digits of numeric tokens.
89438         Reported by John Kendall.
89439
89440         (parser_control): Changed from struct parser_control to typedef (for
89441         consistency).  All uses changed.
89442
89443         (tID): Removed; not used.
89444         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
89445
89446 2000-02-14  Paul Eggert  <eggert@twinsun.com>
89447
89448         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
89449         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
89450
89451 2000-02-12  Jim Meyering  <meyering@lucent.com>
89452
89453         * lib/userspec.c (ISDIGIT): Define it.
89454         (isdigit): Remove definition.
89455         (is_number): Use ISDIGIT, not isdigit.
89456         <libintl.h>: Include.
89457         (_ and N_): Define.
89458         (parse_user_spec): Mark translatable strings.
89459
89460 2000-02-10  Jim Meyering  <meyering@lucent.com>
89461
89462         With these changes, nanosleep.[ch] are finally enough like the other
89463         lib/* replacement files to compile on a few more losing systems.
89464
89465         * lib/nanosleep.h: Don't include config.h.
89466         Remove prototype from declaration of nanosleep.
89467         (PARAMS): Remove now-unneeded definition.
89468         * lib/nanosleep.c: #undef nanosleep.
89469         (rpl_nanosleep): Rename from nanosleep.
89470
89471 2000-02-10  Jim Meyering  <meyering@lucent.com>
89472
89473         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
89474         gnu_nanosleep to rpl_nanosleep.
89475
89476 2000-02-09  Jim Meyering  <meyering@lucent.com>
89477
89478         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
89479         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
89480
89481 2000-02-08  Akim Demaille  <akim@epita.fr>
89482
89483         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
89484         `[' and `]' and remove uses of `changequote'.
89485         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
89486         (AC_SYS_LARGEFILE): Likewise.
89487         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
89488         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
89489         of changequote.
89490         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
89491         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
89492         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
89493         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
89494
89495 2000-02-05  Jim Meyering  <meyering@lucent.com>
89496
89497         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
89498         Remove explicit use of AC_HEADER_TIME.  It is required by
89499         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
89500         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
89501         in autoconf whereby the expansion of the latter ended up preceding
89502         the expansion of its prerequisite, AC_HEADER_TIME.
89503         Reported by Volker Borchert.
89504
89505 2000-02-03  Jim Meyering  <meyering@lucent.com>
89506
89507         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
89508
89509 2000-02-03  Jim Meyering  <meyering@lucent.com>
89510
89511         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
89512         rather than with `#if HAVE_UTMPNAME'.
89513
89514 2000-02-02  Jim Meyering  <meyering@lucent.com>
89515
89516         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
89517         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
89518         Reported by Eli Zaretskii.
89519
89520 2000-02-01  Jim Meyering  <meyering@lucent.com>
89521
89522         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
89523
89524 2000-01-31  Jim Meyering  <meyering@lucent.com>
89525
89526         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
89527         functions.  Add the time.h and sys/time.h headers along with the
89528         AC_REQUIRE'ment of AC_HEADER_TIME.
89529
89530 2000-01-31  Jim Meyering  <meyering@lucent.com>
89531
89532         * lib/nanosleep.h (nanosleep): Guard declaration with
89533         `#if ! HAVE_DECL_NANOSLEEP'.
89534         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
89535         the declaration in that vendor's sys/timers.h.
89536         Reported by Christian Krackowizer.
89537
89538         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
89539         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
89540         (ISPRINT): Likewise.
89541         Reported by Tom Tromey.
89542
89543 2000-01-30  Jim Meyering  <meyering@lucent.com>
89544
89545         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
89546
89547         * m4/prereq.m4 (utmp_includes): Define.
89548         Check for ut_user and ut_name members in both struct utmpx
89549         and struct utmp.
89550
89551 2000-01-30  Jim Meyering  <meyering@lucent.com>
89552
89553         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
89554         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
89555         header files where only utmpx.ut_user is declared.
89556
89557         * lib/readutmp.h (UT_USER): Define.
89558
89559 2000-01-29  Jim Meyering  <meyering@lucent.com>
89560
89561         * m4/lib-check.m4: New file containing library-related checks from
89562         fileutils and sh-utils (textutils had none).
89563
89564 2000-01-28  Jim Meyering  <meyering@lucent.com>
89565
89566         * m4/perl.m4: Change format of warning message to look more like that
89567         from the missing script.  Suggestion from François Pinard.
89568
89569 2000-01-25  Jim Meyering  <meyering@lucent.com>
89570
89571         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
89572         well as time.h in the compile check.
89573         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
89574         Fix typo in cross-compiling case: s/yes/no/.
89575
89576 2000-01-23  Jim Meyering  <meyering@lucent.com>
89577
89578         * m4/jm-macros.m4: Move df-related tests here from
89579         fileutils/configure.in
89580
89581         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
89582         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
89583
89584         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
89585         s/space/ac_fsusage_space/.
89586         (jm_FILE_SYSTEM_USAGE): Take two parameters.
89587
89588         * m4/ftruncate.m4: New file (derived from part of
89589         fileutils/configure.in).
89590         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
89591         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
89592
89593         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
89594         AC_SUBST these here, rather than just in sh-util/configure.in, so
89595         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
89596         all the same.
89597         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
89598         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
89599         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
89600         (AC_SUBST(POW_LIBM)): Likewise.
89601         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
89602
89603 2000-01-23  Jim Meyering  <meyering@lucent.com>
89604
89605         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
89606         obstack.c.
89607
89608 2000-01-22  Jim Meyering  <meyering@lucent.com>
89609
89610         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
89611
89612         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
89613
89614         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
89615         configure.in
89616         (AC_CHECK_HEADERS): Likewise for sh-utils.
89617         (AC_CHECK_HEADERS): Likewise for textutils.
89618         Merge the three lists of headers.
89619
89620         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
89621         from fileutils' configure.in.
89622
89623         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
89624         code. Moved tests into their own function (_jm_DECL_HEADERS) in
89625         check-decl.m4.
89626
89627         * m4/check-decl.m4: Use #if rather than #ifdef.
89628         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
89629         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
89630         (_jm_DECL_HEADERS): Define new function.
89631         (jm_CHECK_DECLARATIONS): Require it.
89632
89633 2000-01-22  Jim Meyering  <meyering@lucent.com>
89634
89635         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
89636         [! HAVE_DECL_STRTOULL]: Declare strtoull.
89637         Required for some AIX systems.  Reported by Christian Krackowizer.
89638         [TESTING] (main): New function.
89639
89640         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
89641         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
89642         letters.
89643
89644         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
89645         iswprint.
89646
89647         * lib/strverscmp.c (ISDIGIT): Define.
89648         (strverscmp): Use ISDIGIT, not isdigit.
89649
89650 2000-01-19  Jim Meyering  <meyering@lucent.com>
89651
89652         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
89653         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
89654         defines `struct timespec' in <sys/time.h>
89655
89656         * m4/c-bs-a.m4: Remove uses of changequote altogether.
89657         Thanks to Akim for explaining.
89658
89659 2000-01-17  Paul Eggert  <eggert@twinsun.com>
89660
89661         * lib/nanosleep.c (nanosleep):
89662         Don't use SA_INTERRUPT to decide whether to call sigaction, as
89663         POSIX.1 doesn't require SA_INTERRUPT and some systems
89664         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
89665         it's been part of POSIX.1 since day 1 (in 1988).
89666
89667 2000-01-17  Jim Meyering  <meyering@lucent.com>
89668
89669         * lib/interlock: Remove unused file.  Reported by François Pinard.
89670
89671 2000-01-16  Paul Eggert  <eggert@twinsun.com>
89672
89673         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
89674         alert, backslash, formfeed, and vertical tab unnecessarily in
89675         shell quoting style.
89676
89677 2000-01-16  Jim Meyering  <meyering@lucent.com>
89678
89679         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
89680         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
89681         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
89682         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
89683
89684 2000-01-16  Jim Meyering  <meyering@lucent.com>
89685
89686         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
89687         because the latter didn't work.
89688
89689 2000-01-15  Jim Meyering  <meyering@lucent.com>
89690
89691         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
89692         (AC_REPLACE_FUNCS): Add memcpy and memset.
89693         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
89694         Add strpbrk.
89695         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
89696
89697 2000-01-12  Jim Meyering  <meyering@lucent.com>
89698
89699         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
89700         (jm_PREREQ): Use it.
89701         (jm_PREREQ_READUTMP): New macro.
89702         (jm_PREREQ): Use it.
89703
89704 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89705
89706         Quote multibyte characters correctly.
89707         * m4/c-bs-a.m4: New file.
89708         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
89709         (jm_PREREQ): Use it.
89710
89711 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89712
89713         * m4/uintmax_t.m4: Port to autoconf 2.13.
89714
89715 2000-01-08  Jim Meyering  <meyering@ascend.com>
89716
89717         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
89718         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
89719
89720 2000-01-04  Jim Meyering  <meyering@ascend.com>
89721
89722         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
89723         jm_STRUCT_DIRENT_D_TYPE.
89724         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
89725         jm_STRUCT_DIRENT_D_INO.
89726         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
89727         jm_STRUCT_UTIMBUF.
89728         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
89729         renamings.
89730         * m4/utime.m4: Likewise.
89731
89732         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
89733         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
89734
89735 2000-01-03  Paul Eggert  <eggert@twinsun.com>
89736
89737         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
89738         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
89739
89740 2000-01-02  Jim Meyering  <meyering@ascend.com>
89741
89742         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
89743         remember if this is necessary.
89744
89745 1999-12-26  Jim Meyering  <meyering@ascend.com>
89746
89747         * m4/jm-macros.m4: Use it here.
89748         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
89749
89750 1999-12-23  Jim Meyering  <meyering@ascend.com>
89751
89752         * m4/jm-macros.m4: Check for clock_gettime (moved from
89753         fileutils/configure.in)
89754         Check for gettimeofday.
89755
89756 1999-12-20  Jim Meyering  <meyering@ascend.com>
89757
89758         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
89759         autoconf-2.14a-1999-12-20.
89760
89761 1999-12-19  Jim Meyering  <meyering@ascend.com>
89762
89763         * m4/lstat-slash.m4: New file.
89764         * m4/jm-macros.m4: Use the new macro:
89765         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89766
89767 1999-12-07  Jim Meyering  <meyering@ascend.com>
89768
89769         * m4/perl.m4: Require that File::Compare be available, too.
89770         Too many systems seem to lack it.
89771
89772         * m4/strftime.m4: Add checks for most of the cpp macros tested in
89773         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
89774
89775 1999-11-18  Paul Eggert  <eggert@twinsun.com>
89776
89777         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
89778         problem with the QNX 4.25 shell, which doesn't propagate exit
89779         status of failed commands inside shell assignments.
89780
89781 1999-11-17  Jim Meyering  <meyering@ascend.com>
89782
89783         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
89784
89785 1999-11-07  Jim Meyering  <meyering@ascend.com>
89786
89787         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
89788
89789 1999-11-06  Jim Meyering  <meyering@ascend.com>
89790
89791         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
89792         * m4/jm-macros.m4 (jm_MACROS): Use it here.
89793
89794 1999-11-05  Jim Meyering  <meyering@ascend.com>
89795
89796         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
89797         configure.in of textutils, fileutils, and sh-utils into this one
89798         (shared between those packages) file.
89799         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
89800         AC_STRUCT_ST_BLKSIZE.
89801
89802 1999-11-03  Jim Meyering  <meyering@ascend.com>
89803
89804         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
89805         of AC_CHECK_TYPE checks includes unistd.h.
89806         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
89807         Suggestion from Akim Demaille.
89808
89809 1999-10-30  Jim Meyering  <meyering@ascend.com>
89810
89811         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
89812         m4-quoted string.
89813         * m4/ls-mntd-fs.m4: Likewise.
89814         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
89815         * m4/jm-winsz1.m4: Likewise.
89816
89817         * m4/const.m4: Remove file, since the fix made it into the experimental
89818         version of autoconf.
89819         * m4/mktime.m4: Likewise.
89820
89821         * m4/check-type.m4: Remove file, now that the latest version of
89822         AC_CHECK_TYPE takes a third arg to specify additional #includes.
89823
89824         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
89825         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
89826         AC_CHECK_TYPE.
89827
89828 1999-10-04  Jim Meyering  <meyering@ascend.com>
89829
89830         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
89831
89832 1999-09-22  Paul Eggert  <eggert@twinsun.com>
89833
89834         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
89835         2.95.1 bug with HP-UX 10.20.
89836
89837 1999-09-17  Jim Meyering  <meyering@ascend.com>
89838
89839         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
89840         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
89841         due to missing strdup (against sh-utils-2.0).
89842
89843 1999-08-29  Jim Meyering  <meyering@ascend.com>
89844
89845         * m4/jm-macros.m4: Require jm_BISON.
89846         * m4/bison.m4: New file.
89847
89848 1999-08-17  Paul Eggert  <eggert@twinsun.com>
89849
89850         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
89851         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
89852
89853 1999-08-05  Jim Meyering  <meyering@ascend.com>
89854
89855         * m4/getline.m4: Rename test file from conftestdata to conftest.data
89856         to avoid conflicts with `conftest' on 8+3 filesystems.
89857         Suggestion from Eli Zaretskii.
89858
89859 1999-08-04  Jim Meyering  <meyering@ascend.com>
89860
89861         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
89862         fileutils and sh-utils (textutils's getline test was inadequate).
89863         (AM_FUNC_GETLINE): Run this test.
89864         (AC_CHECK_FUNCS): Check for getdelim.
89865         Reported by Bob Proulx.
89866
89867 1999-08-02  Jim Meyering  <meyering@ascend.com>
89868
89869         * m4/jm-macros.m4: Add a comment.
89870
89871 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89872
89873         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
89874         <inttypes.h> defines strtoumax as a macro (and not as a
89875         function).
89876
89877 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89878
89879         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
89880         that we can shift, multiply and divide unsigned long long
89881         values; Ultrix cc can't do it.
89882
89883 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89884
89885         * m4/mktime.m4: New file, which is a preview of what should appear
89886         in the next public autoconf release.
89887
89888 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89889
89890         * m4/lfs.m4: Remove this file.
89891         * m4/largefile.m4: New file.  It contains the old contents of
89892         lfs.m4, except that all names with prefix AC_LFS have been
89893         changed to use the prefix AC_SYS_LARGEFILE instead, to be
89894         compatible with future autoconf versions.  Also, some minor m4
89895         quoting problems have been fixed.
89896
89897 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89898
89899         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
89900         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
89901         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
89902         and simplify the shell code.
89903
89904 1999-08-01  Jim Meyering  <meyering@ascend.com>
89905
89906         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
89907         m4.
89908
89909 1999-07-20  Jim Meyering  <meyering@ascend.com>
89910
89911         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
89912
89913 1999-07-15  Jim Meyering  <meyering@ascend.com>
89914
89915         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
89916
89917 1999-05-22  Jim Meyering  <meyering@ascend.com>
89918
89919         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
89920
89921 1999-05-20  Jim Meyering  <meyering@ascend.com>
89922
89923         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
89924         Add a colon after each `then' in case $4 is empty.
89925
89926 1999-05-16  Jim Meyering  <meyering@ascend.com>
89927
89928         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
89929
89930 1999-05-10  Jim Meyering  <meyering@ascend.com>
89931
89932         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
89933
89934         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
89935         AC_FUNC_MKTIME.
89936
89937 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
89938
89939         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
89940
89941 1999-05-04  Paul Eggert  <eggert@twinsun.com>
89942
89943         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
89944         not CPPFLAGS, so that linking works correctly in IRIX.
89945
89946 1999-04-30  Paul Eggert  <eggert@twinsun.com>
89947
89948         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
89949
89950 1999-04-20  Paul Eggert  <eggert@twinsun.com>
89951
89952         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
89953         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
89954         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
89955         jm_AC_TYPE_UNSIGNED_LONG_LONG.
89956         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
89957
89958         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
89959
89960 1999-04-20  Jim Meyering  <meyering@ascend.com>
89961
89962         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
89963         AC_REPLACE xstroull if necessary.  From Paul Eggert.
89964         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
89965
89966 1999-04-18  Jim Meyering  <meyering@ascend.com>
89967
89968         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
89969         * m4/jm-macros.m4: Use it.
89970
89971 1999-04-06  Jim Meyering  <meyering@ascend.com>
89972
89973         * m4/strftime.m4: Remove test for %f.
89974
89975 1999-03-29  Jim Meyering  <meyering@ascend.com>
89976
89977         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
89978         superset of the AC_TYPE_* checks in the textutils, fileutils,
89979         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
89980         AC_TYPE_PID_T.
89981
89982 1999-03-28  Jim Meyering  <meyering@ascend.com>
89983
89984         * m4/jm-macros.m4: Define GNU_PACKAGE here.
89985         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
89986         replaced e.g., in the *.sh files of the sh-utils.
89987
89988 1999-03-20  Jim Meyering  <meyering@ascend.com>
89989
89990         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
89991         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
89992         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
89993
89994 1999-03-19  Jim Meyering  <meyering@ascend.com>
89995
89996         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
89997
89998 1999-03-12  Jim Meyering  <meyering@ascend.com>
89999
90000         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
90001
90002 1999-03-07  Jim Meyering  <meyering@ascend.com>
90003
90004         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
90005         declared.
90006
90007 1999-02-17  Jim Meyering  <meyering@ascend.com>
90008
90009         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
90010         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
90011
90012 1999-02-07  Jim Meyering  <meyering@ascend.com>
90013
90014         * m4/group-member.m4: New file -- extracted from sh-utils'
90015         configure.in.
90016
90017         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
90018         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
90019
90020 1999-02-06  Jim Meyering  <meyering@ascend.com>
90021
90022         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
90023         * m4/fnmatch.m4: Likewise.
90024         * m4/getgroups.m4: Likewise.
90025         * m4/lstat.m4: Likewise.
90026         * m4/malloc.m4: Likewise.
90027         * m4/putenv.m4: Likewise.
90028         * m4/realloc.m4: Likewise.
90029         * m4/regex.m4: Likewise.
90030         * m4/stat.m4: Likewise.
90031         * m4/strftime.m4: Likewise.
90032         Suggestion from Alain Magloire.
90033
90034         * m4/chown.m4: Use `.$ac_objext', not `.o'.
90035         * m4/fnmatch.m4: Likewise.
90036         * m4/getgroups.m4: Likewise.
90037         * m4/getline.m4: Likewise.
90038         * m4/lstat.m4: Likewise.
90039         * m4/malloc.m4: Likewise.
90040         * m4/memcmp.m4: Likewise.
90041         * m4/putenv.m4: Likewise.
90042         * m4/realloc.m4: Likewise.
90043         * m4/regex.m4: Likewise.
90044         * m4/stat.m4: Likewise.
90045         * m4/strftime.m4: Likewise.
90046         Suggestion from Alain Magloire.
90047
90048         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
90049         an argument.
90050
90051         * m4/regex.m4: Add a run-time Test for proper operation of
90052         re_compile_pattern.
90053
90054 1999-01-31  Jim Meyering  <meyering@ascend.com>
90055
90056         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
90057
90058 1999-01-30  Jim Meyering  <meyering@ascend.com>
90059
90060         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
90061
90062         * m4/jm-mktime.m4: Make this a wrapper around the official
90063         AM_FUNC_MKTIME rather than my private copy, now that the official one
90064         is up to date.
90065         * m4/mktime.m4: Remove file.
90066
90067         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
90068         * m4/uptime.m4: Likewise.
90069         * m4/uintmax_t.m4: Likewise.
90070
90071 1999-01-28  Jim Meyering  <meyering@ascend.com>
90072
90073         * m4/jm-macros.m4: Use jm_AFS.
90074         * m4/afs.m4: New file (from fileutils' configure.in).
90075
90076         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
90077         * m4/chown.m4: Likewise.
90078         * m4/d-ino.m4: Likewise.
90079         * m4/d-type.m4: Likewise.
90080         * m4/fnmatch.m4: Likewise.
90081         * m4/getgroups.m4: Likewise.
90082         * m4/gettext.m4: Likewise.
90083         * m4/jm-mktime.m4: Likewise.
90084         * m4/jm-winsz2.m4: Likewise.
90085         * m4/lcmessage.m4: Likewise.
90086         * m4/ls-mntd-fs.m4: Likewise.
90087         * m4/malloc.m4: Likewise.
90088         * m4/memcmp.m4: Likewise.
90089         * m4/putenv.m4: Likewise.
90090         * m4/realloc.m4: Likewise.
90091         * m4/st_mtim.m4: Likewise.
90092         * m4/strftime.m4: Likewise.
90093
90094 1999-01-16  Jim Meyering  <meyering@ascend.com>
90095
90096         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
90097         (ARGMATCH_DIE_DECL): Define.
90098
90099 1999-01-12  Jim Meyering  <meyering@ascend.com>
90100
90101         * m4/Makefile.am.in: Rewrite to avoid using fmt.
90102         Reported by Lars Hecking.
90103
90104 1999-01-10  Jim Meyering  <meyering@ascend.com>
90105
90106         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
90107         gross kludge.
90108         * m4/inttypes_h.m4: Likewise.
90109         * m4/lstat.m4: Likewise.
90110         * m4/malloc.m4: Likewise.
90111         * m4/readdir.m4: Likewise.
90112         * m4/realloc.m4: Likewise.
90113         * m4/st_dm_mode.m4: Likewise.
90114         * m4/stat.m4: Likewise.
90115         * m4/utimbuf.m4: Likewise.
90116         * m4/utimes.m4: Likewise.
90117
90118         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
90119         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
90120         comments in config.h.in are meaningful.
90121
90122         * m4/jm-macros.m4: Require autoconf-2.13 here.
90123
90124         * m4/regex.m4: By default, don't use the included regex.c on systems
90125         with glibc 2.  Suggestion from Uli Drepper.
90126
90127 1999-01-02  Jim Meyering  <meyering@ascend.com>
90128
90129         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
90130
90131 1998-12-18  Jim Meyering  <meyering@ascend.com>
90132
90133         * m4/Makefile.am.in (Makefile.am): Simplify rule.
90134         Based on a suggestion from Lars Hecking.
90135
90136 1998-11-16  Paul Eggert  <eggert@twinsun.com>
90137
90138         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
90139
90140 1998-11-16  Jim Meyering  <meyering@ascend.com>
90141
90142         * m4/lfs.m4: Double-quote the `uname...` expression.
90143
90144 1998-11-14  Jim Meyering  <meyering@ascend.com>
90145
90146         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
90147         * m4/stat.m4: Likewise.
90148
90149 1998-11-03  Jim Meyering  <meyering@ascend.com>
90150
90151         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
90152         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
90153
90154 1998-10-18  Jim Meyering  <meyering@ascend.com>
90155
90156         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
90157
90158 1998-10-17  Jim Meyering  <meyering@ascend.com>
90159
90160         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
90161         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
90162         calls for those previously hard-coded headers.  Instead, take a new
90163         parameter.
90164         (jm_CHECK_DECLARATIONS): Reflect interface change.
90165         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
90166         (jm_CHECK_DECL_LOCALTIME_R): New macro.
90167
90168         * m4/mktime.m4: Test for spring-forward gap before long-running test.
90169
90170 1998-10-14  Jim Meyering  <meyering@ascend.com>
90171
90172         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
90173         instead of "TZ=America/Vancouver".  From Paul Eggert.
90174
90175 1998-10-11  Jim Meyering  <meyering@ascend.com>
90176
90177         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
90178         This adds a test for a recently added compatibility fix for mktime.c.
90179         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
90180
90181 1998-09-27  Jim Meyering  <meyering@ascend.com>
90182
90183         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
90184
90185         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
90186         ../configure.in, including a change from Gordon Matzigkeit to allow
90187         cross-compiling for the Hurd.
90188
90189         * m4/glibc.m4: New file/macro to test for the GNU C Library
90190         versions 1 and 2.  From Gordon Matzigkeit.
90191         Indent.
90192
90193 1998-09-21  Jim Meyering  <meyering@ascend.com>
90194
90195         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
90196
90197 1998-08-18  Paul Eggert  <eggert@twinsun.com>
90198
90199         Port nanosecond-resolution times to UnixWare 2.1.2 and
90200         pedantic Solaris 2.6.
90201
90202         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
90203         AC_STRUCT_ST_MTIM.
90204         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
90205         Generate name of ns member, instead of just 1 or undef.
90206         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
90207
90208 1998-08-15  Jim Meyering  <meyering@ascend.com>
90209
90210         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
90211         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
90212         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
90213         instead of jm_TYPE_SSIZE_T.
90214
90215 1998-08-12  Jim Meyering  <meyering@ascend.com>
90216
90217         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
90218
90219 1998-08-02  Jim Meyering  <meyering@ascend.com>
90220
90221         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
90222         in acconfig.h manually.
90223
90224 1998-07-31  Paul Eggert  <eggert@twinsun.com>
90225
90226         * m4/st_mtim.m4: New file.
90227
90228 1998-07-28  Jim Meyering  <meyering@ascend.com>
90229
90230         * m4/utimes.m4: Undef stat.
90231
90232 1998-07-25  Jim Meyering  <meyering@ascend.com>
90233
90234         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
90235         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
90236
90237 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
90238
90239         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
90240         uid and gid actually remain unchanged.
90241
90242 1998-07-07  Jim Meyering  <meyering@ascend.com>
90243
90244         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
90245
90246 1998-07-04  Jim Meyering  <meyering@ascend.com>
90247
90248         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
90249         to prove that this macro can be used in packages without regex.c.
90250
90251 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
90252
90253         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
90254         is to be used.
90255
90256 1998-07-03  Jim Meyering  <meyering@ascend.com>
90257
90258         * m4/gettext.m4: Add -lintl if it's found to be necessary.
90259
90260         * m4/gettext.m4: New file -- from gettext-0.10.35.
90261         * m4/lcmessage.m4: Likewise.
90262         * m4/progtest.m4: Likewise.
90263
90264         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
90265         * m4/jm-macros.m4: Require the new macro.
90266
90267 1998-06-29  Jim Meyering  <meyering@ascend.com>
90268
90269         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
90270         for the definition of NGROUPS (used in a system header included
90271         by sys/mount.h).
90272
90273 1998-06-28  Jim Meyering  <meyering@ascend.com>
90274
90275         * m4/ls-mntd-fs.m4: New file.
90276         * m4/fstypename.m4: New file.
90277
90278         * m4/jm-macros.m4: Require the new macro.
90279         * m4/jm-glibc-io.m4: New file.
90280
90281 1998-05-19  Jim Meyering  <meyering@ascend.com>
90282
90283         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
90284         * m4/lchown.m4: New file.
90285
90286         * m4/Makefile.am.in: New file.
90287         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
90288
90289 1998-05-14  Jim Meyering  <meyering@ascend.com>
90290
90291         * m4/Makefile.am (EXTRA_DIST): Add them.
90292         * m4/jm-macros.m4: New file.
90293         * m4/utimbuf.m4: New file.
90294
90295 1998-05-12  Jim Meyering  <meyering@ascend.com>
90296
90297         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
90298
90299 1998-05-11  Jim Meyering  <meyering@ascend.com>
90300
90301         * m4/isc-posix.m4: New file.
90302
90303 1998-05-10  Jim Meyering  <meyering@ascend.com>
90304
90305         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
90306
90307 1998-05-09  Jim Meyering  <meyering@ascend.com>
90308
90309         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
90310         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
90311         with automake.
90312
90313         * m4/ssize_t.m4: New file.
90314         * m4/mktime.m4: Remove file -- the new automake has this now.
90315
90316 1998-04-26  Jim Meyering  <meyering@ascend.com>
90317
90318         * m4/assert.m4: New file.
90319         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
90320
90321 1998-04-05  Jim Meyering  <meyering@ascend.com>
90322
90323         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
90324         (jm_PREREQ): Use it here.
90325
90326 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
90327
90328         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
90329         in acconfig.h.
90330
90331 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
90332
90333         * m4/prereq.m4: New file.
90334         * m4/error.m4: New file.
90335         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
90336
90337 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
90338
90339         * m4/getline.m4: Don't set am_cv_func_working_getline before the
90340         cache-check for the same variable -- that defeated the purpose of
90341         the test; the test program was never run.  This was a problem only
90342         on systems with losing getline functions -- HP-UX 10.20 is one.
90343         Reported by Bjorn Helgaas.
90344
90345 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
90346
90347         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
90348
90349 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
90350
90351         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
90352
90353         * m4/const.m4: New file.  Use an initializer in this declaration
90354         typedef int charset[2]; const charset x;
90355         Reported by Bob Glickstein.
90356
90357 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
90358
90359         * m4/chown.m4: Fix reversed types on -1 args to chown.
90360         From Kaveh Ghazi.
90361
90362 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
90363
90364         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
90365         Add lseek and memchr.
90366
90367         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
90368         T.E.Dickey <dickey@clark.net> said that some older preprocessors
90369         have a 20-character limit on names.
90370
90371 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
90372
90373         * m4/inttypes_h.m4: New file.
90374         * m4/uintmax_t.m4: New file.
90375         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
90376
90377
90378         -----
90379
90380         Local Variables:
90381         coding: utf-8
90382         End:
90383
90384         Copyright (C) 1997-2011 Free Software Foundation, Inc.
90385
90386         Copying and distribution of this file, with or without
90387         modification, are permitted provided the copyright notice
90388         and this notice are preserved.