README-release: fix punctuation
[gnulib.git] / ChangeLog
1 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
2
3         * top/README-release: fix punctuation.
4
5 2011-12-17  Jim Meyering  <meyering@redhat.com>
6
7         bootstrap: correct the recent buildreq change
8         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
9         had no effect.
10         * build-aux/bootstrap (buildreq): Bracket each search term with
11         "*...*", so that the shell "case" statement works as intended.
12         Add comments.
13
14 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
15
16         build: let bootstrap resort to wget when downloading .po files
17         * build-aux/bootstrap (download_po_files): Fallback to wget when
18         downloading the .po files via rsync fails.  This is necessary to
19         bootstrap from behind a strict firewall.
20
21 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
22
23         stdint: don't assume C++11 when compiling with g++
24         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
25         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
26         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
27         work also in C++ before C++11, as that improperly inhibits
28         generating a substitute stdint.h for that case.
29
30 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
31
32         alloca: protect comment from gnulib-tool
33         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
34         that gnulib-tool doesn't think it's a license, and munge it to
35         say "GCC version 3".
36
37 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
38
39         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
40         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
41         $(abs_top_builddir) instead of $(top_builddir).
42
43 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
44
45         strftime-tests: also test nanoseconds
46         * tests/test-strftime.c (T): Add a test of %N.
47
48 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
49
50         inttypes, stdint: add C++11 support
51         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
52         when including inttypes.h and stdint.h.  Support this change to
53         the standard.
54         * doc/posix-headers/inttypes.texi (inttypes.h):
55         * doc/posix-headers/stdint.texi (stdint.h): Document this.
56         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
57         Define if not defined already, for the benefit of pre-C++11 hosts.
58         Define the standard format macros (e.g., PRId8) always.
59         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
60         Likewise, if __cpluspus.  Define the standard constant and limit
61         macros (e.g., INT8_C, INT8_MAX) always.
62         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
63         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
64         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
65         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
66         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
67         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
68         Likewise.
69
70 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
71
72         nonblocking tests: Fix test failure on Linux/PPC.
73         Suggested by Prerna Saxena in
74         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
75         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
76         Set to 1100000.
77
78 2011-12-12  Jim Meyering  <meyering@redhat.com>
79
80         argmatch: don't hard-code `' when listing valid option arguments
81         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
82         use the quote function to add quotes.  Use fputs rather than
83         fprintf for the format string with no format directive.
84
85 2011-12-07  Eric Blake  <eblake@redhat.com>
86
87         bootstrap: detect tools required by gnulib-tool
88         * build-aux/bootstrap (buildreq): Provide minimum implicit
89         dependencies.
90         * DEPENDENCIES: Mention patch as a prereq.
91
92 2011-12-04  Bruno Haible  <bruno@clisp.org>
93
94         sethostname: Port to Windows platforms.
95         * lib/sethostname.c: Provide an alternate implementation for Windows
96         platforms.
97         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
98         (main): Skip the test if sethostname() fails with EPERM. On Windows
99         platforms, don't check the result of gethostname().
100
101 2011-12-04  Bruno Haible  <bruno@clisp.org>
102             Jim Meyering  <meyering@redhat.com>
103
104         tests: Avoid spurious error message on platforms without mktemp program.
105         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
106
107 2011-12-04  Bruno Haible  <bruno@clisp.org>
108
109         sethostname: Fix documentation.
110         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
111         "not fixed" section.
112
113 2011-12-03  Bruno Haible  <bruno@clisp.org>
114
115         gnulib-tool: Verify that the License field is present and non-empty.
116         * gnulib-tool (func_get_license_raw): New function, extracted from
117         func_get_license.
118         (func_get_license): Use it. Warn if the module is not a test module and
119         has no license.
120         Suggested by Jim Meyering.
121
122 2011-12-03  Bruno Haible  <bruno@clisp.org>
123
124         sethostname tests: Fix link error on mingw.
125         * tests/test-sethostname1.c: New file, extracted from
126         tests/test-sethostname.c.
127         * tests/test-sethostname2.c: New file, extracted from
128         tests/test-sethostname.c.
129         * tests/test-sethostname.c: Remove file.
130         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
131         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
132         (Depends-on): Add gethostname.
133         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
134         Link the latter with $(GETHOSTNAME_LIB).
135
136         sethostname tests: Fix compilation error on mingw.
137         * tests/test-sethostname.c: Don't include <sys/types.h>.
138         (geteuid): Use a dummy value without uid_t.
139         * modules/sethostname-tests (Depends-on): Remove sys_types.
140
141         sethostname tests: Avoid a gcc warning.
142         * tests/test-sethostname.c (main): Remove an unused variable.
143
144         Tweak last commit.
145         * modules/sethostname-tests (Files): Sort by decreasing importance.
146         (configure.ac): Check for geteuid.
147         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
148         the test when there's nothing to test. Drop an unnecessary cast.
149         Improve an error message. Verify that the final sethostname() call
150         succeeds.
151
152 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
153
154         Add a test suite for the sethostname module.
155         * modules/sethostname-tests: New file.  A test program
156         for the sethostname module.
157         * tests/test-sethostname.c: Likewise.
158
159 2011-12-03  Bruno Haible  <bruno@clisp.org>
160
161         Tweak last commit.
162         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
163         Fix preprocessor directives indentation. Fix typos.
164         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
165         * modules/unistd (Makefile): Likewise.
166
167 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
168
169         Integrate the sethostname module into unistd.
170         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
171         into the unistd.h header.
172         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
173         preprocessor directives.
174         * modules/unistd: Setup the Makefile substitutions of the
175         SETHOSTNAME preprocessor directives.
176
177 2011-12-03  Bruno Haible  <bruno@clisp.org>
178
179         Tweak last commit.
180         * lib/sethostname.c: Don't include <string.h>.
181         (sethostname): No need to copy the argument string to the stack. Don't
182         call clearerr. Preserve errno when fprintf failed.
183         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
184         Don't invoke AC_REPLACE_FUNCS.
185         * modules/sethostname (Link): Remove empty section.
186         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
187         failure problem.
188
189 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
190
191         New module 'sethostname'.
192         * lib/sethostname.c (sethostname): New file.  Provide sethostname
193         for systems that lack it.
194         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
195         sethostname declaration and function.
196         * modules/sethostname: New file.  Define the sethostname module.
197
198 2011-12-03  Bruno Haible  <bruno@clisp.org>
199
200         Tweak last commit.
201         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
202
203 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
204
205         Split the HOST_NAME_MAX detection into a separate m4 macro.
206         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
207         macro so it can be used by the pending sethostname module.
208
209 2011-12-03  Bruno Haible  <bruno@clisp.org>
210
211         Fix module descriptions syntax.
212         * modules/argv-iter (License): Fix syntax.
213         * modules/di-set (License): Likewise.
214         * modules/ino-map (License): Likewise.
215         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
216
217 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
218
219         stdalign: port to Clang 3.0
220         Problem reported by Simon Josefsson in
221         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
222         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
223         which has <stdalign.h> but which does not define alignof.
224         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
225
226 2011-12-01  Eric Blake  <eblake@redhat.com>
227
228         mktempd: silence dd usage
229         * build-aux/mktempd (rand_bytes): Silence dd.
230
231 2011-11-30  Simon Josefsson  <simon@josefsson.org>
232
233         manywarnings: Don't mention gcc version in docstring.
234         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
235         Jim Meyering <meyering@redhat.com>.
236
237 2011-11-30  Jim Meyering  <meyering@redhat.com>
238
239         hash: mark a few floating point constants with "f" suffix
240         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
241         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
242         floating point constants with "f", since they're destined to be
243         saved/used as "float"s.
244
245 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
246
247         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
248         * tests/test-float.c (test_long_double): Correct and re-enable the
249         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
250
251 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
252
253         Avoid subtracting two pointers that don't point into the same block.
254         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
255         only pointers into the same memory block are subtracted. We cannot
256         assume that sizeof (ptrdiff_t) == sizeof (void *).
257
258 2011-11-29  Eric Blake  <eblake@redhat.com>
259
260         maint.mk: add syntax check for use of compare from init.sh
261         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
262         moved here from coreutils.
263
264         manywarnings: drop -Wunsuffixed-float-constants
265         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
266         '1.0D', which is the only way to silence this warning for 'double'.
267
268 2011-11-29  Jim Meyering  <meyering@redhat.com>
269
270         hash: mark compute_bucket_size with the pure attribute
271         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
272
273         quotearg, propername: correct pragma guard expression
274         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
275         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
276
277 2011-11-28  Jim Meyering  <meyering@redhat.com>
278
279         propername: do not mark proper_name with the const attribute
280         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
281         since it examines data pointed to by its parameter.
282         * lib/propername.c (proper_name): Instead, add a pragma to suppress
283         the suggestion from -Wsuggest-attribute=const.
284
285         propername: mark one more function as const
286         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
287
288 2011-11-27  Jim Meyering  <meyering@redhat.com>
289
290         mark functions with const and pure attributes
291
292         Mark functions per suggestions from gcc-4.6 when using these options:
293         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
294         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
295         Follow these guidelines: when possible, apply the attribute to
296         an extern declaration, not to its definition.  Apply it to the
297         definition only when the definition is static.
298         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
299         * lib/argv-iter.h (argv_iter_n_args): Likewise.
300         * lib/base64.h (isbase64): Likewise.
301         * lib/basename-lgpl.c (last_component, base_len): Likewise.
302         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
303         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
304         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
305         (c_tolower, c_toupper): Likewise.
306         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
307         * lib/chdir-long.c (find_non_slash): Likewise.
308         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
309         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
310         * lib/file-type.h (file_type): Likewise.
311         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
312         * lib/filevercmp.c (verrevcmp): Likewise.
313         * lib/freadahead.h (freadahead): Likewise.
314         * lib/fts.c (fts_maxarglen): Likewise.
315         * lib/hash-pjw.h (hash_pjw): Likewise.
316         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
317         * lib/hash.c (is_prime, next_prime): Likewise.
318         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
319         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
320         (hash_table_ok, hash_get_first, hash_string): Likewise.
321         (compute_bucket_size): Likewise.
322         * lib/i-ring.h (i_ring_empty): Likewise.
323         * lib/isnan.c (isnanl): Likewise.
324         * lib/math.h (isnanl, rpl_isnanl): Likewise.
325         * lib/memcasecmp.h (memcasecmp): Likewise.
326         * lib/memchr2.h (memchr2): Likewise.
327         * lib/memcmp2.h (memcmp2): Likewise.
328         * lib/parse-datetime.y (lookup_zone): Likewise.
329         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
330         [!WINDOWS_SOCKETS]: Likewise.
331         * lib/strnlen1.h (strnlen1): Likewise.
332         * lib/uniwidth.in.h (uc_width): Likewise.
333         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
334         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
335         (quoting_options_from_style): Add a comment.
336         * lib/propername.h (proper_name): Add a comment.
337
338 2011-11-27  Bruno Haible  <bruno@clisp.org>
339
340         Remove unused macros from !_LIBC code in glibc-borrowed files.
341         * lib/fnmatch.c (STRCOLL): Remove macro.
342         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
343         * lib/glob.c (__stat, __readdir64): Remove macros.
344         * lib/tempname.c (__open64, __xstat64): Remove macros.
345         Suggested by Paul Eggert.
346
347 2011-11-27  Bruno Haible  <bruno@clisp.org>
348
349         getcwd: Fix link error on MSVC 9.
350         * modules/getcwd (Depends-on): Add readdir, rewinddir.
351
352 2011-11-27  Bruno Haible  <bruno@clisp.org>
353
354         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
355         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
356         HAVE_OPENDIR is 0.
357         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
358         HAVE_CLOSEDIR is 0.
359         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
360         is 0.
361         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
362
363 2011-11-27  Bruno Haible  <bruno@clisp.org>
364
365         getcwd: Fix bug from 2011-08-17.
366         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
367         platforms that need it.
368         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
369         code of 4 to be a failure, not a success. This ensures that
370         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
371
372 2011-11-27  Bruno Haible  <bruno@clisp.org>
373
374         binary-io tests: Avoid test failure on mingw when libtool is used.
375         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
376         Don't verify the size of t-bin-out1.tmp here.
377         * tests/test-binary-io.sh: Verify it here.
378         Reported by Simon Josefsson.
379
380 2011-11-26  Bruno Haible  <bruno@clisp.org>
381
382         Fix conflict between two instantiations of module 'unistd'.
383         * gnulib-tool (func_emit_autoconf_snippet): Substitute
384         ${include_guard_prefix} also in the autoconf snippet.
385         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
386         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
387         GNULIB_UNISTD_H_GETOPT.
388         * modules/getopt-posix (configure.ac): Set the
389         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
390         * modules/getopt-gnu (configure.ac): Likewise.
391         * modules/unistd (Makefile.am): Change the substitution value of
392         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
393         Reported by Simon Josefsson.
394
395 2011-11-25  Bruno Haible  <bruno@clisp.org>
396
397         pagealign_alloc: Doc and comments.
398         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
399         module.
400         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
401
402 2011-11-25  Jim Meyering  <meyering@redhat.com>
403
404         test-update-copyright.sh: avoid false-positive failure
405         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
406         around false positive failure on Cygwin/Windows.  The latter was
407         matching erroneously-created files with names like
408         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
409
410 2011-11-25  Simon Josefsson  <simon@josefsson.org>
411
412         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
413         * m4/valgrind-tests.m4: Check that the parameters that will be
414         used works, not just a subset of them.  Reported by Bruno Haible
415         <bruno@clisp.org>.
416
417 2011-11-24  Jim Meyering  <meyering@redhat.com>
418
419         test-stdalign.c: comment out long double tests
420         * tests/test-stdalign.c: Don't try to reduce alignment of long double
421         variables.  That provokes errors like this from gcc-4.7.0 20111124:
422         error: '_Alignas' specifiers cannot reduce alignment of \
423         'static_longdouble_alignas'.
424
425 2011-11-22  Jim Meyering  <meyering@redhat.com>
426
427         init.sh: make "compare /dev/null FILE" output more readable
428         * tests/init.sh (compare_): Document the preferred order of arguments.
429         (emit_diff_u_header_): New function.
430         (compare_dev_null_): Emit a simulated diff, rather than just the
431         contents of the unexpected file.  Suggestion from Bruno Haible.
432
433 2011-11-21  Jim Meyering  <meyering@redhat.com>
434             Eric Blake  <eblake@redhat.com>
435
436         init.sh: work around OSF/1 5.1's mishandling of /dev/null
437         * tests/init.sh: Make our compare function slightly more portable.
438         Reported by Bruno Haible in
439         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
440
441 2011-11-21  Simon Josefsson  <simon@josefsson.org>
442
443         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
444         before using it, in code that ends up in config.h.
445
446 2011-11-20  Bruno Haible  <bruno@clisp.org>
447
448         getcwd: Work around getcwd bug on AIX 5..7.
449         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
450         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
451         Use a different value for gl_cv_func_getcwd_path_max. Move the
452         definition of HAVE_PARTLY_WORKING_GETCWD from here...
453         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
454         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
455         Define HAVE_MINIMALLY_WORKING_GETCWD.
456         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
457         where it is not even minimally working, that is, on AIX.
458         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
459         m4/getcwd-path-max.m4.
460         (main): Update exit code computation.
461         * doc/posix-functions/getcwd.texi: Mention list of platforms where
462         getcwd does not handle long file names.
463
464 2011-11-20  Bruno Haible  <bruno@clisp.org>
465
466         getcwd: Fix bug from 2009-09-10.
467         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
468         like "no".
469
470 2011-11-20  Simon Josefsson  <simon@josefsson.org>
471
472         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
473
474 2011-11-20  Bruno Haible  <bruno@clisp.org>
475
476         fma tests: Avoid shadowing local variables.
477         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
478         expected.
479
480 2011-11-20  Bruno Haible  <bruno@clisp.org>
481
482         copysignf tests: Fix.
483         * tests/test-copysignf.c: Fix signature check.
484
485 2011-11-20  Bruno Haible  <bruno@clisp.org>
486
487         fma: Remove unused code.
488         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
489         unused macros.
490
491 2011-11-20  Bruno Haible  <bruno@clisp.org>
492
493         sethostname: Fix doc about AIX.
494         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
495         sethostname; it has it.
496
497         sethostname: Mention more portability problems.
498         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
499         problem.
500         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
501
502 2011-11-19  Bruno Haible  <bruno@clisp.org>
503
504         Depend on module fcntl-h when AT_FDCWD is used.
505         * modules/utimens (Depends-on): Add fcntl-h.
506         * modules/areadlinkat (Depends-on): Likewise.
507         * modules/areadlinkat-with-size (Depends-on): Likewise.
508         * modules/faccessat (Depends-on): Likewise.
509         * modules/fchmodat (Depends-on): Likewise.
510         * modules/fchownat (Depends-on): Likewise.
511         * modules/getcwd (Depends-on): Likewise.
512         * modules/mkdirat (Depends-on): Likewise.
513         * modules/mkfifoat (Depends-on): Likewise.
514         * modules/readlinkat (Depends-on): Likewise.
515         * modules/symlinkat (Depends-on): Likewise.
516         * modules/dup2-tests (Depends-on): Likewise.
517         * modules/fdutimensat-tests (Depends-on): Likewise.
518         * modules/futimens-tests (Depends-on): Likewise.
519
520 2011-11-19  Bruno Haible  <bruno@clisp.org>
521
522         euidaccess: Update a comment.
523         * lib/euidaccess.c: Update comment about platforms with faccessat.
524
525 2011-11-19  Bruno Haible  <bruno@clisp.org>
526
527         openat: Fix file list.
528         * modules/openat (Files): Remove lib/at-func.c.
529
530 2011-11-19  Bruno Haible  <bruno@clisp.org>
531
532         fstatat: Simplify.
533         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
534         gnulib should define rpl_fstatat, there is a
535         "#define fstatat rpl_fstatat" in <sys/stat.h>.
536
537 2011-11-19  Bruno Haible  <bruno@clisp.org>
538
539         Ensure 'inline' can be used in tests/test-utimens-common.h.
540         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
541         * modules/futimens-tests (configure.ac): Likewise.
542         * modules/utimens-tests (configure.ac): Likewise.
543         * modules/utimensat-tests (configure.ac): Likewise.
544
545 2011-11-19  Simon Josefsson  <simon@josefsson.org>
546
547         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
548         not hash_insert0.
549         (hash_insert_if_absent): Doc fix.
550
551 2011-11-19  Simon Josefsson  <simon@josefsson.org>
552
553         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
554
555 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
556
557         test-getcwd: disambiguate exit status
558         * tests/test-getcwd.c (test_long_name): Return 0..7.
559         (main): Exit with an unambiguous exit status.  The old
560         code yielded a mysterious mixture of two failure codes.
561
562         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
563         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
564         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
565         rpl_fstatat or fstatat.  This should fix the other problem
566         reported by Kai Habel in
567         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
568         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
569         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
570         and I reproduced it on a Solaris 8 host we still have in production.
571
572 2011-11-18  Jim Meyering  <meyering@redhat.com>
573
574         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
575         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
576         Add a sentence to the comment.
577         (hash_insert0): New function that simply calls hash_insert_if_absent.
578         * lib/hash.h (hash_insert_if_absent): Declare it.
579         (hash_insert0): Add deprecation attribute.
580         (_GL_ATTRIBUTE_DEPRECATED): Define.
581         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
582         not hash_insert0.
583         * NEWS: Mention it, even though it's not really an incompatible change.
584
585 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
586
587         openat: avoid compilation failure due to lack of <errno.h> inclusion
588         * lib/openat.c: Include <errno.h>.
589
590 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
591
592         * modules/getcwd (Depends-on): Add fdopendir.
593         This fixes one of the two problems reported by Kai Habel in
594         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
595
596         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
597         stdalign problem reported by Ian Beckwith in
598         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
599         * modules/crypto/gc-arcfour (Depends-on):
600         Depend conditionally on crypto/arcfour.
601         * modules/crypto/gc-arctwo (Depends-on):
602         Depend conditionally on crypto/arctwo.
603         * modules/crypto/gc-des (Depends-on):
604         Depend conditionally on crypto/des.
605         * modules/crypto/gc-hmac-md5 (Depends-on):
606         Depend conditionally on crypto/hmac-md5.
607         * modules/crypto/gc-hmac-sha1 (Depends-on):
608         Depend conditionally on crypto/hmac-sha1.
609         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
610         * modules/crypto/gc-md4 (Depends-on):
611         Depend conditionally on crypto/md4.
612         * modules/crypto/gc-md5 (Depends-on):
613         Depend conditionally on crypto/md5.
614         * modules/crypto/gc-rijndael (Depends-on):
615         Depend conditionally on crypto/rijndael.
616         * modules/crypto/gc-sha1 (Depends-on):
617         Depend conditionally on crypto/sha1.
618         * modules/crypto/gc-arcfour:
619         * modules/crypto/gc-arctwo:
620         * modules/crypto/gc-des:
621         * modules/crypto/gc-hmac-md5:
622         * modules/crypto/gc-hmac-sha1:
623         * modules/crypto/gc-md2:
624         * modules/crypto/gc-md4:
625         * modules/crypto/gc-md5:
626         * modules/crypto/gc-rijndael:
627         * modules/crypto/gc-sha1:
628         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
629         now that the conditional dependencies do the work for us.
630
631 2011-11-17  Jim Meyering  <meyering@redhat.com>
632
633         tests: factor st_ctime-comparison out of two headers
634         * tests/test-utimens-common.h (ctime_compare): Define.
635         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
636         * tests/test-lutimens.h (test_lutimens): Likewise.
637         * tests/test-utimens.h (test_utimens): Likewise.
638
639         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
640         Invoke the test program via an init.sh-using wrapper.
641         * tests/test-getcwd.sh: New file.
642         * modules/getcwd-tests (Files): Add it.
643         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
644
645 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
646
647         gitlog-to-changelog: support multi-author commits.
648         The FSF cares about keeping track of all authors of patches to its
649         projects, but Git doesn't provide obvious support for multi-author
650         changesets. Consensus seems to be forming around the use of extra
651         Signed-off-by inspired lines in the log message formatted as
652         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
653         multi-author commits between version control systems.
654         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
655         log message and output in standard ChangeLog multi-author format.
656         Reported by Peter Rosin <peda@lysator.liu.se>
657
658 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
659             Bruno Haible  <bruno@clisp.org>
660
661         Fix some modules' file list.
662         * modules/fstatat (Files): Add m4/lstat.m4.
663         * modules/openat (Files): Likewise.
664         * modules/unlinkat (Files): Likewise.
665
666 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
667
668         maint.mk: fix tight-scope.mk generation in VPATH builds.
669         * top/maint.mk (tight-scope.mk): Make sure to prefix file
670         reference with $(srcdir) so that the file is found correctly even
671         when running `make syntax-check' in a VPATH build.
672
673 2011-11-13  Bruno Haible  <bruno@clisp.org>
674             Jim Meyering  <meyering@redhat.com>
675
676         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
677         * tests/init.sh (compare): Remove "No differences encountered" or
678         synonymous output from the 'diff' program.
679
680 2011-11-13  Bruno Haible  <bruno@clisp.org>
681
682         Makefile: Tweak indentation.
683         * Makefile: Use tab as first character in every line that contains rule
684         commands.
685
686 2011-11-13  Bruno Haible  <bruno@clisp.org>
687
688         Syntax check for copyright statements.
689         * check-copyright: New file.
690         * Makefile (sc_check_copyright): New rule.
691
692 2011-11-13  Simon Josefsson  <simon@josefsson.org>
693
694         * build-aux/git-version-gen: Add --prefix to configure the tag
695         match string.
696
697 2011-11-13  Simon Josefsson  <simon@josefsson.org>
698
699         * build-aux/git-version-gen: Add --help and --version.
700
701 2011-11-12  Jim Meyering  <meyering@redhat.com>
702
703         revamp the other test-exclude?.sh scripts to use init.sh, too
704         * tests/test-exclude1.sh: Use init.sh.
705         * tests/test-exclude2.sh: Likewise.
706         * tests/test-exclude3.sh: Likewise.
707         * tests/test-exclude4.sh: Likewise.
708         * tests/test-exclude5.sh: Likewise.
709         * tests/test-exclude6.sh: Likewise.
710         * tests/test-exclude7.sh: Likewise.
711         * tests/test-exclude8.sh: Likewise.
712         * modules/exclude-tests (Files): List init.sh.
713
714         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
715         These shell scripts ignored failure of the binary test-exclude,
716         so making the latter return 77 didn't cause them to be skipped.
717         * tests/test-exclude5.sh: Exit with test-exclude's error status
718         when that program fails.  Revamp to use init.sh.
719         * tests/test-exclude2.sh: Likewise.
720
721         test-exclude: fix a typo
722         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
723
724 2011-11-11  Bruno Haible  <bruno@clisp.org>
725
726         obstack: Fix compilation error on MSVC 9.
727         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
728
729 2011-11-11  Jim Meyering  <meyering@redhat.com>
730
731         test-exclude: skip tests rather than failing on deficient systems
732         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
733         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
734         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
735         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
736
737 2011-11-10  Bruno Haible  <bruno@clisp.org>
738
739         ptsname_r test: Avoid gcc warning on glibc systems.
740         * tests/test-ptsname_r.c (null_ptr): New function.
741         (test_errors): Use it.
742
743 2011-11-10  Bruno Haible  <bruno@clisp.org>
744
745         ptsname_r: Avoid compilation error on OSF/1 5.1.
746         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
747         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
748         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
749         function is not declared or incompatibly declared.
750         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
751         * modules/ptsname_r (Depends-on, configure.ac): Update.
752         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
753
754 2011-11-10  Bruno Haible  <bruno@clisp.org>
755
756         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
757         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
758         When cross-compiling, guess yes on all platforms except AIX.
759         Reported by Ludovic Courtès <ludo@gnu.org>.
760
761 2011-11-09  Bruno Haible  <bruno@clisp.org>
762
763         ptsname_r tests: Fix bugs.
764         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
765         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
766
767 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
768
769         fstatat: work with cross-compilation
770         Problem reported by Ludovic Courtès in
771         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
772         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
773         "cross-compiling" and assume the bug is present.  Replace
774         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
775         an inverted sense, to be more conservative about our assumptions.
776         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
777
778 2011-11-09  Bruno Haible  <bruno@clisp.org>
779
780         Improve MODULES.html output.
781         * modules/mkfifoat (Description): Use the word "function".
782         * modules/readlinkat (Description): Likewise.
783         * modules/symlinkat (Description): Likewise.
784
785 2011-11-09  Eric Blake  <eblake@redhat.com>
786
787         ptsname_r-tests: new test module
788         * modules/ptsname_r-tests: New module.
789         * tests/test-ptsname_r.c: New file.
790
791         ptsname_r: new module
792         * modules/ptsname_r: New module.
793         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
794         * lib/ptsname.c (__ptsname_r): Split...
795         * lib/ptsname_r.c: ...into new file.
796         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
797         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
798         * modules/stdlib (Makefile.am): Substitute witnesses.
799         * lib/stdlib.in.h (ptsname_r): Declare it.
800         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
801         * MODULES.html.sh (Misc): Likewise.
802         * modules/ptsname (Depends-on): Alter dependency.
803         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
804
805 2011-11-09  Jim Meyering  <meyering@redhat.com>
806
807         announce-gen: be more concise when there's only one URL+tarball
808         * build-aux/announce-gen (get_tool_versions): When you distribute
809         only one type of tarball, combine the first two "Here are..."
810         sections and make the key-checking grammar independent of
811         how many tarballs there are.
812
813 2011-11-09  Eric Blake  <eblake@redhat.com>
814
815         openpty: provide a stub on mingw
816         * lib/pty.in.h (includes): Provide forward declarations.
817         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
818
819         raise: fix mingw handling of SIGPIPE
820         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
821
822 2011-11-08  Bruno Haible  <bruno@clisp.org>
823
824         More conditional dependencies.
825         * modules/faccessat (Depends-on): Add conditions.
826         * modules/fchmodat (Depends-on): Likewise.
827         * modules/fchownat (Depends-on): Likewise.
828         * modules/fstatat (Depends-on): Likewise.
829         * modules/mkfifoat (Depends-on): Likewise.
830         * modules/readlinkat (Depends-on): Likewise.
831         * modules/symlinkat (Depends-on): Likewise.
832         * modules/unlinkat (Depends-on): Likewise.
833         * modules/utimensat (Depends-on): Likewise.
834         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
835         * modules/linkat (Depends-on): Refine the conditions.
836         * modules/renameat (Depends-on): Likewise.
837
838 2011-11-08  Bruno Haible  <bruno@clisp.org>
839
840         faccessat: Move AC_LIBOBJ invocation to module description.
841         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
842         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
843         invocation from here...
844         * modules/faccessat (configure.ac): ... to here. Invoke
845         gl_PREREQ_FACCESSAT.
846
847 2011-11-08  Bruno Haible  <bruno@clisp.org>
848
849         faccessat: Simplify autoconf macro.
850         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
851         gl_FUNC_EUIDACCESS.
852
853 2011-11-08  Bruno Haible  <bruno@clisp.org>
854
855         renameat: Fix dependencies.
856         * modules/renameat (Depends-on): Add stdbool.
857
858 2011-11-08  Bruno Haible  <bruno@clisp.org>
859
860         mkfifoat: Fix module description.
861         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
862         not gl_UNISTD_MODULE_INDICATOR.
863
864 2011-11-08  Bruno Haible  <bruno@clisp.org>
865
866         fstatat: Remove unused dependency.
867         * modules/fstatat (Depends-on): Remove fstat.
868
869 2011-11-08  Simon Josefsson  <simon@josefsson.org>
870
871         GNUmakefile: behave when Makefile is missing.
872         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
873
874 2011-11-08  Bruno Haible  <bruno@clisp.org>
875
876         openat: Conditionalize dependencies.
877         * lib/openat.c: Reduce the scope of some #includes.
878         * modules/openat (Depends-on): Add conditions.
879
880 2011-11-07  Jim Meyering  <meyering@redhat.com>
881
882         maint.mk: extract GPG key ID without using a temporary file
883         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
884         without using a temporary file.  Based on a suggestion from Werner Koch
885         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
886
887 2011-11-07  Eric Blake  <eblake@redhat.com>
888
889         grantpt: fix typo
890         * lib/stdlib.in.h (grantpt): Check correct function.
891
892         maint.mk: silence new syntax check
893         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
894
895 2011-11-06  Bruno Haible  <bruno@clisp.org>
896
897         Doc about floating-point and math API.
898         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
899         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
900
901 2011-11-06  Bruno Haible  <bruno@clisp.org>
902
903         stdalign tests: Skip the test when compiled by Sun C.
904         * tests/test-stdalign.c (main): Skip the test on Sun C.
905
906 2011-11-06  Bruno Haible  <bruno@clisp.org>
907
908         ansi-c++-opt: Complete the 2011-06-05 change.
909         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
910         does not support namespaces, set the variable to "no", not to ":".
911
912 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
913
914         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
915
916 2011-11-06  Bruno Haible  <bruno@clisp.org>
917
918         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
919         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
920         (minus_zerol) [HP-UX]: New macro.
921         (unary_minus) [HP-UX]: New function.
922         (copysignl) [HP-UX]: Use unary_minus function.
923
924 2011-11-06  Bruno Haible  <bruno@clisp.org>
925
926         ldexp, ldexpf, ldexpl: Enhance tests.
927         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
928         and tests/test-ldexpl.c.
929         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
930         LDEXP, MIN_EXP, MAX_EXP): New macros.
931         Include test-ldexp.h.
932         (main): Just call test_function.
933         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
934         infinity.h, nan.h.
935         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
936         MAX_EXP): New macros.
937         Include test-ldexp.h.
938         (x, y): Remove variables.
939         (main): Just call test_function.
940         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
941         infinity.h, nan.h.
942         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
943         MAX_EXP): New macros.
944         Include test-ldexp.h.
945         (x, y): Remove variables.
946         (main): Just call test_function.
947         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
948         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
949         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
950         (Depends-on): Add isnand-nolibm, signbit, float.
951         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
952         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
953         (Depends-on): Add isnanf-nolibm, signbit, float.
954
955 2011-11-06  Bruno Haible  <bruno@clisp.org>
956
957         math tests: Cosmetics.
958         * tests/test-math-c++.cc: Reorder declarations.
959
960 2011-11-05  Bruno Haible  <bruno@clisp.org>
961
962         fma*: Simplify test.
963         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
964         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
965
966         Tests for module 'fmal'.
967         * modules/fmal-tests: New file.
968         * tests/test-fmal1.c: New file.
969         * tests/test-fmal2.c: New file.
970
971         New module 'fmal'.
972         * lib/math.in.h (fmal): New declaration.
973         * lib/fmal.c: New file.
974         * m4/fmal.m4: New file.
975         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
976         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
977         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
978         REPLACE_FMAL.
979         * modules/fmal: New file.
980         * doc/posix-functions/fmal.texi: Mention the new module and the various
981         bugs.
982
983         Tests for module 'fmaf'.
984         * modules/fmaf-tests: New file.
985         * tests/test-fmaf1.c: New file.
986         * tests/test-fmaf2.c: New file.
987
988         New module 'fmaf'.
989         * lib/math.in.h (fmaf): New declaration.
990         * lib/fmaf.c: New file.
991         * m4/fmaf.m4: New file.
992         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
993         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
994         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
995         REPLACE_FMAF.
996         * modules/fmaf: New file.
997         * doc/posix-functions/fmaf.texi: Mention the new module and the various
998         bugs.
999
1000         Tests for module 'fma'.
1001         * modules/fma-tests: New file.
1002         * tests/test-fma1.c: New file.
1003         * tests/test-fma1.h: New file.
1004         * tests/test-fma2.c: New file.
1005         * tests/test-fma2.h: New file.
1006
1007         New module 'fma'.
1008         * lib/math.in.h (fma): New declaration.
1009         * lib/fma.c: New file.
1010         * m4/fma.m4: New file.
1011         * m4/fegetround.m4: New file.
1012         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
1013         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
1014         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
1015         REPLACE_FMA.
1016         * modules/fma: New file.
1017         * doc/posix-functions/fma.texi: Mention the new module and the various
1018         bugs.
1019
1020         Extend gl_MATHFUNC.
1021         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
1022         Support 'void' as argument type.
1023         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
1024
1025 2011-11-05  Jim Meyering  <meyering@redhat.com>
1026
1027         maint.mk: also prohibit inclusion of dirent.h without use
1028         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
1029
1030 2011-11-05  Bruno Haible  <bruno@clisp.org>
1031
1032         ldexpl tests: Avoid test failure on MSVC 9.
1033         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
1034         value. Needed in order to enforce the conversion from a value greater
1035         than LDBL_MAX to Infinity.
1036
1037 2011-11-05  Bruno Haible  <bruno@clisp.org>
1038
1039         New modules 'at-internal', 'openat-h', split off from module 'openat'.
1040         * modules/at-internal: New file, extracted from modules/openat.
1041         * modules/openat-h: New file.
1042         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
1043         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
1044         * modules/openat (Description): Add reference to POSIX function.
1045         (Files): Remove lib/openat.h, lib/openat-proc.c.
1046         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
1047         intprops, unistd.
1048         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
1049         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
1050         gl_FCNTL_MODULE_INDICATOR.
1051         (Include): Remove unistd.h, openat.h.
1052         * modules/areadlinkat (Files): Add lib/at-func.c.
1053         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1054         openat-die, openat-h, save-cwd.
1055         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
1056         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1057         openat-die, openat-h, save-cwd, unistd.
1058         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
1059         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1060         openat-h, save-cwd. Remove fcntl-h, openat.
1061         * modules/fchmodat (Files): Remove lib/openat.h.
1062         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1063         openat, stdbool, unistd.
1064         * modules/fchownat (Files): Remove lib/openat.h.
1065         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1066         openat, stdbool, sys_stat.
1067         * modules/fdopendir (Files): Remove lib/openat-priv.h,
1068         lib/openat-proc.c.
1069         (Depends-on): Add at-internal.
1070         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
1071         * modules/fstatat (Files): Remove lib/openat.h.
1072         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
1073         stdbool, unistd.
1074         * modules/fts (Depends-on): Add openat-h.
1075         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
1076         openat.
1077         * modules/mkdirat (Files): Remove lib/openat.h.
1078         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1079         openat, stdbool, sys_stat.
1080         * modules/mkfifoat (Files): Add lib/at-func.c.
1081         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1082         openat-h, save-cwd. Remove fcntl-h, openat.
1083         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
1084         * modules/readlinkat (Files): Add lib/at-func.c.
1085         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1086         openat-h, save-cwd. Remove fcntl-h, openat.
1087         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
1088         openat.
1089         * modules/selinux-at (Files): Add lib/at-func.c.
1090         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1091         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
1092         * modules/symlinkat (Files): Add lib/at-func.c.
1093         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1094         openat-h, save-cwd. Remove fcntl-h, openat.
1095         * modules/unlinkat (Files): Remove lib/openat.h.
1096         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
1097         stdbool.
1098         * modules/utimensat (Files): Add lib/at-func.c.
1099         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
1100         openat-die, openat-h, save-cwd.
1101         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
1102         * modules/fdutimensat-tests (Depends-on): Add openat.
1103         * modules/fstatat-tests (Depends-on): Add openat-h.
1104         * modules/readlinkat-tests (Depends-on): Add openat.
1105         * modules/symlinkat-tests (Depends-on): Add openat.
1106
1107 2011-11-05  Bruno Haible  <bruno@clisp.org>
1108
1109         openat: Include <stdbool.h>.
1110         * lib/openat.c: Include <stdbool.h>.
1111
1112 2011-11-04  Bruno Haible  <bruno@clisp.org>
1113
1114         fchownat, renameat, unlinkat: Fix dependencies.
1115         * modules/fchownat (Depends-on): Add fstatat.
1116         * modules/renameat (Depends-on): Likewise.
1117         * modules/unlinkat (Depends-on): Likewise.
1118
1119 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
1120
1121         openat: remove direct dependency on dirent
1122         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
1123         and hasn't been needed ever since fdopendir was split into its own
1124         module on 2009-08-31.
1125         * modules/openat (Depends-on): Remove dirent.
1126
1127 2011-11-04  Bruno Haible  <bruno@clisp.org>
1128
1129         renameat: Optimize code size.
1130         * modules/renameat (configure.ac): Don't compile at-func2.c if
1131         REPLACE_RENAMEAT is 1.
1132
1133 2011-11-04  Bruno Haible  <bruno@clisp.org>
1134
1135         openat tests: Fix file list.
1136         * modules/openat-tests (Files): Add tests/test-open.h.
1137
1138 2011-11-04  Bruno Haible  <bruno@clisp.org>
1139
1140         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
1141         * modules/fchmodat (Depends-on): Add openat-die.
1142         * modules/fchownat (Depends-on): Likewise.
1143         * modules/linkat (Depends-on): Likewise.
1144         * modules/renameat (Depends-on): Likewise.
1145         * modules/openat (Depends-on): Add dirent.
1146
1147 2011-11-04  Jim Meyering  <meyering@redhat.com>
1148
1149         at-func*.c: fix comments
1150         * lib/at-func2.c: Correct/improve first-line comment.
1151         * lib/at-func.c: Correct grammar in first-line comment.
1152
1153 2011-11-04  Bruno Haible  <bruno@clisp.org>
1154
1155         New module 'mkdirat', split off from module 'openat'.
1156         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
1157         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
1158         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
1159         * modules/mkdirat: New file, extracted from modules/openat.
1160         * modules/openat (Files): Remove lib/mkdirat.c.
1161         (Depends-on): Remove mkdir.
1162         (configure.ac): Remove AC_LIBOBJ of mkdirat.
1163         (Include): Remove <sys/stat.h>.
1164         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
1165         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
1166         tests/test-mkdir.h.
1167         (Depends-on): Remove ignore-value.
1168         (Makefile.am): Remove rules for test-mkdirat.
1169         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
1170         of module 'openat'.
1171         * NEWS: Mention the change.
1172
1173 2011-11-04  Bruno Haible  <bruno@clisp.org>
1174
1175         closedir: Avoid warning on mingw.
1176         * lib/closedir.c: Include <unistd.h>.
1177
1178 2011-11-04  Bruno Haible  <bruno@clisp.org>
1179
1180         New module 'fstatat', split off from module 'openat'.
1181         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
1182         defined.
1183         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
1184         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
1185         gl_FUNC_FSTATAT.
1186         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
1187         * modules/fstatat: New file, extracted from modules/openat.
1188         * modules/openat (Files): Remove lib/fstatat.c.
1189         (Depends-on): Remove lstat.
1190         (configure.ac): Remove AC_LIBOBJ of fstatat.
1191         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
1192         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
1193         tests/test-lstat.h, tests/test-stat.h.
1194         (Depends-on): Remove getcwd-lgpl.
1195         (Makefile.am): Remove rules for test-fstatat.
1196         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
1197         of module 'openat'.
1198         * NEWS: Mention the change.
1199         * modules/getcwd (Depends-on): Add fstatat.
1200         * modules/linkat (Depends-on): Likewise.
1201         * modules/mkfifoat-tests (Depends-on): Likewise.
1202         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
1203
1204 2011-11-03  Bruno Haible  <bruno@clisp.org>
1205
1206         New module 'unlinkat', split off from module 'openat'.
1207         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
1208         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
1209         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
1210         * modules/unlinkat: New file, extracted from modules/openat. Correct
1211         the dependency conditions.
1212         * modules/openat (Files): Remove lib/unlinkat.c.
1213         (Depends-on): Remove rmdir, unlink.
1214         (configure.ac): Remove AC_LIBOBJ of unlinkat.
1215         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
1216         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
1217         tests/test-rmdir.h, tests/test-unlink.h.
1218         (Depends-on): Remove unlinkdir.
1219         (Makefile.am): Remove rules for test-unlinkat.
1220         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
1221         of module 'openat'.
1222         * NEWS: Mention the change.
1223         * modules/linkat-tests (Depends-on): Add unlinkat.
1224         * modules/mkfifoat-tests (Depends-on): Likewise.
1225         * modules/readlinkat-tests (Depends-on): Likewise.
1226
1227 2011-11-02  Bruno Haible  <bruno@clisp.org>
1228
1229         New module 'fchmodat', split off from module 'openat'.
1230         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
1231         defined.
1232         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
1233         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
1234         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
1235         * modules/fchmodat: New file, extracted from modules/openat.
1236         * modules/openat (Files): Remove lib/fchmodat.c.
1237         (configure.ac): Remove AC_LIBOBJ of fchmodat.
1238         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
1239         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
1240         (Makefile.am): Remove rules for test-fchmodat.
1241         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
1242         of module 'openat'.
1243         * NEWS: Mention the change.
1244
1245 2011-11-02  Jim Meyering  <meyering@redhat.com>
1246
1247         putenv: indent #definition of "environ" to placate cppi
1248         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
1249
1250         gitlog-to-changelog: provide a ChangeLog-repair mechanism
1251         Git logs are often treated as immutable, because editing them
1252         changes the SHA1 checksums of all descendants.  Thus, errors in
1253         git logs tend to stay there forever.  However, when we generate
1254         a ChangeLog file -- typically for distribution -- from that git log,
1255         we can actually make corrections in the generated file.  The key
1256         lies in recording in machine-readable/applicable form the desired
1257         corrections.  See --help for description and an example.
1258         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
1259         (usage): Describe it; alphabetize option descriptions.
1260         (main): Honor the new option, carefully.
1261
1262 2011-11-01  Jim Meyering  <meyering@redhat.com>
1263
1264         gitlog-to-changelog: avoid an infloop
1265         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
1266         that ends up being empty.
1267
1268 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1269
1270         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
1271         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
1272         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
1273         contains (possibly-quoted) backslashes.  This should avoid
1274         all-too-common shell bugs if COMPLICATED contains backslashes in
1275         the "wrong" places.  Reported by David Evans in
1276         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
1277         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
1278         because we want ASCII ranges.  Is there some reason we don't use
1279         the C locale everywhere in this script?
1280         (func_module, top level): Avoid unwanted pathname expansion when
1281         $repo_url_prefix or $repo_url_suffix_repl contain shell
1282         metacharacters like '?' and '*'.
1283
1284 2011-11-01  Bruno Haible  <bruno@clisp.org>
1285
1286         fchownat: Improve description.
1287         * modules/fchownat (Description): Add link to function.
1288
1289 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
1290
1291         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
1292         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
1293         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
1294         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
1295
1296 2011-11-01  Bruno Haible  <bruno@clisp.org>
1297
1298         alignof: Avoid collision with stdalign module.
1299         * lib/alignof.h (alignof): Remove macro.
1300         * NEWS: Mention the change.
1301         Reported by Paul Eggert.
1302
1303 2011-11-01  Bruno Haible  <bruno@clisp.org>
1304
1305         New module 'fchownat', split off from module 'openat'.
1306         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
1307         defined.
1308         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
1309         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
1310         invoke gl_FUNC_FCHOWNAT.
1311         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
1312         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
1313         * modules/fchownat: New file, extracted from modules/openat.
1314         * modules/openat (Files): Remove lib/fchownat.c.
1315         (Depends-on): Remove lchown.
1316         (configure.ac): Remove AC_LIBOBJ of fchownat.
1317         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
1318         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
1319         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
1320         (Depends-on): Remove mgetgroups, usleep, stat-time.
1321         (configure.ac): Remove test for getegid.
1322         (Makefile.am): Remove rules for test-fchownat.
1323         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
1324         of module 'openat'.
1325         * NEWS: Mention the change.
1326
1327 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
1328
1329         stdalign: port better to MSVC and to Sun C 5.11
1330         This fixes some of the problems reported by Bruno Haible in
1331         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
1332         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
1333         shortcomings of MSVC and of Sun C 5.11.
1334         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
1335         around __declspec arg.
1336         * modules/stdalign-tests (Files): Add tests/macros.h.
1337         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
1338         Include macros.h, for ASSERT.
1339         (DECLARE_ALIGNED): Remove.
1340         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
1341         to catch bug), and to 1 if not (simplifies the rest of the code).
1342         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
1343         (CHECK_AUTO): Remove.
1344         (CHECK_ALIGNED): Check only the alignment of the static vars,
1345         since auto var alignment isn't supported by Sun C 5.11.
1346         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
1347         ASSERT failures are easier to diagnose.
1348
1349 2011-10-31  Bruno Haible  <bruno@clisp.org>
1350
1351         doc about some IRIX 5.3 problems.
1352         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
1353         on IRIX 5.3.
1354         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
1355         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
1356         5.3.
1357         * doc/posix-functions/grantpt.texi: Likewise.
1358         * doc/posix-functions/unlockpt.texi: Likewise.
1359         * doc/posix-functions/lgamma.texi: Likewise.
1360         * doc/posix-functions/nextafter.texi: Likewise.
1361         * doc/posix-functions/remainder.texi: Likewise.
1362         * doc/posix-functions/select.texi: Mention misplaced declaration on
1363         IRIX 5.3.
1364         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1365
1366 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
1367
1368         gitlog-to-changelog: fix git-log invocation.
1369         git-log mishandles date strings before 1970-01-01 UTC, and there is
1370         no use to specify --since=1970-01-01 by default anyway.
1371         * build-aux/gitlog-to-changelog: By default, when no --since option
1372         was given, do not specify explicit --since option to git-log.
1373
1374 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
1375
1376         gitlog-to-changelog: new option --append-dot.
1377         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
1378         first non-blank line of each commit message terminated with a dot.
1379
1380 2011-10-30  Bruno Haible  <bruno@clisp.org>
1381
1382         ffsl, ffsll: Avoid compilation error due to 'restrict'.
1383         * lib/ffsl.h: Include <config.h>.
1384         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
1385
1386 2011-10-30  Jim Meyering  <meyering@redhat.com>
1387
1388         GNUmakefile: reenable "make syntax-check" for most projects
1389         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
1390         build-aux variable", "syntax-check" would do nothing but succeed with
1391         the "No version control files detected..." diagnostic (unless you
1392         happened to override _build-aux via cfg.mk).
1393         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
1394         to precede inclusion of maint.mk.  Otherwise, these variables would
1395         be used undefined in any project that does not override the default.
1396
1397 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
1398
1399         gitlog-to-changelog: treat a message with only blank lines as empty.
1400         * build-aux/gitlog-to-changelog: Move the code that removes leading and
1401         trailing blank lines before the code that issues a warning about an
1402         empty commit message.
1403
1404 2011-10-30  Jim Meyering  <meyering@redhat.com>
1405
1406         test-parse-datetime.c: avoid new DST-related false positive test failure
1407         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
1408         based on the time/date we'll convert, not the current time.
1409         Otherwise, the moment we cross a DST boundary like today's in
1410         Europe, (CEST to CET), that offset ends up being one hour off.
1411
1412 2011-10-27  Bruno Haible  <bruno@clisp.org>
1413
1414         fstat: Tweak documentation.
1415         * modules/fstat (Description): More precise description.
1416
1417 2011-10-27  Bruno Haible  <bruno@clisp.org>
1418
1419         Update documentation regarding 'largefile' module.
1420         * doc/posix-functions/fstat.texi: Tweak wording.
1421         * doc/posix-functions/opendir.texi: Mention that the module fixes the
1422         problems with huge directories and/or small ino_t types.
1423         * doc/posix-functions/readdir.texi: Likewise.
1424         * doc/posix-functions/rewinddir.texi: Likewise.
1425
1426 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
1427
1428         maint.mk: don't maintain a second build-aux variable.
1429         * maint.mk (build_aux): Removed.  The maintainer-makefile module
1430         depends on GNUmakefile, which already maintains a cfg.mk
1431         overridable $(_build-aux) for projects with a non-standard
1432         build-aux directory location, although without the $(srcdir)
1433         prefix.  Use that variable consistently instead of introducing a
1434         second one.  Adjust all call sites.
1435
1436 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
1437
1438         Add stdalign module and use it in other modules.
1439         This is based on a previous proposal by Bruno Haible
1440         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
1441
1442         stdalign: new module
1443         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
1444         * modules/stdalign: New files.
1445         * MODULES.html.sh (c1x_core_properties): Add stdalign.
1446         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
1447
1448         stdalign-tests: new module
1449         * modules/stdalign-tests, tests/test-stdalign.c: New files.
1450
1451         argp: use stdalign
1452         * lib/argp-parse.c: Include <stdalign.h>.
1453         (alignof): Remove.
1454         * modules/argp (Depends-on): Add stdalign.
1455
1456         crypto libraries: use stdalign
1457         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
1458         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
1459         Do not include <stdlib.h> twice, in md4.c.
1460         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
1461         because we are accessing a pointer's bit-pattern, not a size.
1462         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
1463         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
1464         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
1465         * modules/crypto/sha512: Likewise.
1466
1467         sys_socket: use stdalign, not alignof
1468         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
1469         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
1470
1471 2011-10-27  Bruno Haible  <bruno@clisp.org>
1472
1473         raise test: Avoid a test failure on Linux/MIPS.
1474         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
1475         because 99 is a valid signal on Linux/MIPS.
1476
1477 2011-10-27  Bruno Haible  <bruno@clisp.org>
1478
1479         nonblocking tests: Fix test failure on Linux/MIPS.
1480         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
1481         Set to 270000.
1482
1483 2011-10-27  Bruno Haible  <bruno@clisp.org>
1484
1485         utimensat: Work around problem on Linux/hppa.
1486         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
1487         values.
1488         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
1489
1490 2011-10-25  Jim Meyering  <meyering@redhat.com>
1491
1492         maint.mk: fix a bug in sc_prohibit_stddef_without_use
1493         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
1494         after symbols like NULL, size_t, etc.
1495         Reported by Alfred M. Szmidt.
1496
1497         maint.mk: exempt ENODATA from a syntax-check rule
1498         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
1499         from the sc_prohibit_always-defined_macros syntax-check rule.
1500         Add a comment.  See this for more details:
1501         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
1502
1503 2011-10-23  Jim Meyering  <meyering@redhat.com>
1504
1505         fts: close parent dir FD before returning from post-traversal fts_read
1506         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
1507         unlink A, even though an FD open on A remained.  This is suboptimal
1508         (holding a file descriptor open longer than needed), but otherwise not
1509         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
1510         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
1511         that represents a real problem: it causes the removal of A to fail
1512         with e.g., "rm: cannot remove `A': Device or resource busy"
1513
1514         fts visits each directory twice and keeps a cache (fts_fd_ring) of
1515         directory file descriptors.  After completing the final, FTS_DP,
1516         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
1517         cache, but then proceeded to add a new FD to it via the subsequent
1518         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
1519         final file descriptor would be closed only via fts_close's call to
1520         fd_ring_clear.  Now, it is usually closed earlier, via the final
1521         FTS_DP-returning fts_read call.
1522         * lib/fts.c (restore_initial_cwd): New function, converted from
1523         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
1524         Update callers.
1525         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
1526         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
1527
1528 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
1529             Bruno Haible  <bruno@clisp.org>
1530             Jim Meyering  <jim@meyering.net>
1531
1532         readme-release: improve safety of release prep instructions.
1533         * README-release: Don't git pull all branches when only master
1534         is needed for the release process.
1535         Run make maintainer-clean before changing trees and merging.
1536         Don't try to run ./configure right after git pull in case files
1537         that influence the bootstrap process have changed, move the
1538         ./configure step to after running ./bootstrap.
1539         Don't bootstrap "one last time"... it's the first time!
1540
1541 2011-10-22  Bruno Haible  <bruno@clisp.org>
1542
1543         errno, strerror-override: Support for MSVC 10.
1544         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
1545         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
1546         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
1547         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
1548         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
1549         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
1550         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
1551         Assign values compatible with MSVC 10.
1552         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
1553         New macros.
1554         (GNULIB_defined_EWINSOCK): New macro.
1555         * lib/strerror-override.c (strerror_override): Update accordingly.
1556         * lib/strerror-override.h: Likewise.
1557         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
1558         longer equal to the corresponding errno value.
1559         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1560
1561 2011-10-22  Bruno Haible  <bruno@clisp.org>
1562
1563         perror: Recognize when test program crashes.
1564         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
1565         strerror, set gl_cv_func_perror_works to no.
1566         Reported by Daniel Richard G. <skunk@iskunk.org>.
1567
1568         perror: Fix indentation.
1569         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
1570
1571 2011-10-22  Bruno Haible  <bruno@clisp.org>
1572
1573         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
1574         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
1575         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
1576         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
1577         functions, not as a macro.
1578         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
1579         macros.
1580         (isfinite, isinf, isnan, signbit): Check overloaded functions and
1581         absence of macro.
1582         Suggested by Eric Blake.
1583         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1584
1585 2011-10-21  Bruno Haible  <bruno@clisp.org>
1586
1587         relocatable-prog-wrapper: Don't leave object files behind.
1588         * build-aux/install-reloc: Re-synchronize list of .o files to be
1589         removed with list of compilation units.
1590
1591 2011-10-20  Bruno Haible  <bruno@clisp.org>
1592
1593         openpty, posix_openpt: Remove code duplication.
1594         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
1595         * lib/openpty.c: Include <stdlib.h>.
1596         (openpty): Use posix_openpt on all platforms except IRIX.
1597         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
1598
1599 2011-10-20  Bruno Haible  <bruno@clisp.org>
1600
1601         unlockpt: Detect invalid argument.
1602         * lib/unlockpt.c: Include <fcntl.h>.
1603         (unlockpt): Check whether fd is valid, using fcntl().
1604         * modules/unlockpt (Depends-on): Add fcntl-h.
1605
1606 2011-10-20  Bruno Haible  <bruno@clisp.org>
1607
1608         openpty: Avoid compilation error on AIX 6.1.
1609         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
1610
1611 2011-10-20  Bruno Haible  <bruno@clisp.org>
1612
1613         posix_openpt: Support for OpenBSD.
1614         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
1615         (posix_openpt) [OpenBSD]: New code.
1616         * lib/grantpt.c: Include <fcntl.h>.
1617         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
1618         * modules/grantpt (Depends-on): Add fcntl-h.
1619
1620 2011-10-20  Bruno Haible  <bruno@clisp.org>
1621
1622         posix_openpt test: Coding style.
1623         * tests/test-posix_openpt.c: Use GNU coding style.
1624
1625 2011-10-20  Bruno Haible  <bruno@clisp.org>
1626
1627         grantpt: Support --avoid=pt_chown.
1628         * modules/grantpt (Files): Add lib/pty-private.h.
1629
1630 2011-10-20  Bruno Haible  <bruno@clisp.org>
1631
1632         posix_openpt: Fix autoconf macro.
1633         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
1634         unneeded check for _getpty.
1635
1636 2011-10-20  Bruno Haible  <bruno@clisp.org>
1637
1638         openpty: Update comments.
1639         * lib/openpty.c: Add comments about Minix.
1640
1641 2011-10-19  Eric Blake  <eblake@redhat.com>
1642
1643         openpty: relax license
1644         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
1645
1646         pt_chown: use configmake to simplify build
1647         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
1648
1649         ptsname and others: relax license
1650         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
1651         * modules/unlockpt (License): Likewise.
1652         * modules/pt_chown (License): Likewise.
1653         * modules/ptsname (License): Likewise.
1654         * modules/ttyname_r (License): Likewise.
1655
1656 2011-10-19  Jim Meyering  <meyering@redhat.com>
1657
1658         posix_openpt: remove spurious #endif
1659         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
1660
1661 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
1662
1663         maint.mk: Respect $(build_aux) in web-manual rule.
1664         * top/maint.mk (web-manual): Find gen-announce script in user's
1665         $(build_aux) directory instead of hard-coding 'build-aux'.
1666
1667 2011-10-19  Bruno Haible  <bruno@clisp.org>
1668
1669         posix_openpt: Fix compilation error.
1670         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
1671         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
1672         Mention the openpty module as an alternative.
1673
1674 2011-10-19  Bruno Haible  <bruno@clisp.org>
1675
1676         Support for old NeXTstep 3.3 frexp().
1677         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
1678         execution time of the test to 5 seconds.
1679         Reported by Daniel Richard G. <skunk@iskunk.org>.
1680
1681 2011-10-19  Bruno Haible  <bruno@clisp.org>
1682
1683         Support for old NeXTstep 3.3 sed.
1684         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
1685         part, use /.../, not \|...|. Escape periods in the header file name.
1686         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
1687         Reported by Daniel Richard G. <skunk@iskunk.org>.
1688
1689 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1690
1691         Support for old NeXTstep 3.3 gcc.
1692         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
1693         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
1694         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
1695         * lib/spawn.in.h (_Restrict_arr_): Likewise.
1696         * lib/regex.h (_Restrict_arr_): Likewise.
1697         * lib/regex_internal.h (re_token_t): Likewise.
1698         * lib/regexec.c (check_node_accept_bytes): Likewise.
1699         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
1700
1701 2011-10-18  Eric Blake  <eblake@redhat.com>
1702
1703         posix_openpt: new module
1704         * modules/posix_openpt: New module.
1705         * m4/posix_openpt.m4: New file.
1706         * lib/posix_openpt.c: Likewise.
1707         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1708         (gl_STDLIB_H_DEFAULTS): Set defaults.
1709         * modules/stdlib (Makefile.am): Substitute macros.
1710         * lib/stdlib.in.h (posix_openpt): Declare.
1711         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
1712         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
1713         * modules/posix_openpt-tests: New test module.
1714         * tests/test-posix_openpt.c: New test.
1715
1716 2011-10-15  Bruno Haible  <bruno@clisp.org>
1717
1718         xstrtoll: Fix compilation failure.
1719         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
1720         from lib/strtol.c.
1721         * doc/posix-headers/limits.texi: Mention missing numerical limits on
1722         some platforms.
1723         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1724
1725 2011-10-15  Bruno Haible  <bruno@clisp.org>
1726
1727         vasnprintf: Optimize bit search operation.
1728         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
1729         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
1730         gl_DOUBLE_EXPONENT_LOCATION.
1731         * modules/vasnprintf (Files): Add m4/exponentd.m4.
1732         * modules/unistdio/u8-vasnprintf (Files): Likewise.
1733         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
1734         * modules/unistdio/u16-vasnprintf (Files): Likewise.
1735         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
1736         * modules/unistdio/u32-vasnprintf (Files): Likewise.
1737         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
1738         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
1739         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
1740
1741 2011-10-15  Bruno Haible  <bruno@clisp.org>
1742
1743         vasnprintf: Fix comments.
1744         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
1745
1746 2011-10-14  Bruno Haible  <bruno@clisp.org>
1747
1748         Tests for module 'integer_length_ll'.
1749         * modules/integer_length_ll-tests: New file.
1750         * tests/test-integer_length_ll.c: New file.
1751
1752         New module 'integer_length_ll'.
1753         * lib/integer_length_ll.c: New file.
1754         * modules/integer_length_ll: New file.
1755
1756 2011-10-14  Bruno Haible  <bruno@clisp.org>
1757
1758         Tests for module 'integer_length_l'.
1759         * modules/integer_length_l-tests: New file.
1760         * tests/test-integer_length_l.c: New file.
1761
1762         New module 'integer_length_l'.
1763         * lib/integer_length_l.c: New file.
1764         * modules/integer_length_l: New file.
1765
1766 2011-10-14  Bruno Haible  <bruno@clisp.org>
1767
1768         Tests for module 'integer_length'.
1769         * modules/integer_length-tests: New file.
1770         * tests/test-integer_length.c: New file.
1771
1772         New module 'integer_length'.
1773         * lib/integer_length.h: New file.
1774         * lib/integer_length.c: New file.
1775         * modules/integer_length: New file.
1776
1777 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1778
1779         popen: Fix dependency conditions.
1780         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
1781
1782 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
1783
1784         perror: Fix autoconf test.
1785         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
1786         <stdlib.h> and <string.h>.
1787
1788 2011-10-14  Bruno Haible  <bruno@clisp.org>
1789
1790         ffsl: Optimize on 64-bit platforms.
1791         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
1792         unrolling.
1793
1794 2011-10-13  Bruno Haible  <bruno@clisp.org>
1795
1796         ffsl: Optimize on 32-bit platforms.
1797         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
1798         use ffs() without a loop.
1799
1800         ffsl, ffsll: Optimize for GCC.
1801         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
1802         * lib/ffsl.c (GCC_BUILTIN): New macro.
1803         * lib/ffsll.c (GCC_BUILTIN): Likewise.
1804
1805 2011-10-13  Bruno Haible  <bruno@clisp.org>
1806
1807         ffs, bcopy, memset: Support symbol renaming via config.h.
1808         * lib/ffs.c: Include <config.h>.
1809         * lib/bcopy.c: Likewise.
1810         * lib/memset.c: Likewise.
1811
1812 2011-10-10  Bruno Haible  <bruno@clisp.org>
1813
1814         atanl: Simplify for platforms where 'long double' == 'double'.
1815         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1816         alternative implementation.
1817         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1818         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1819         * modules/atanl (Depends-on): Add atan. Update conditions.
1820
1821 2011-10-10  Bruno Haible  <bruno@clisp.org>
1822
1823         acosl: Simplify for platforms where 'long double' == 'double'.
1824         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1825         alternative implementation.
1826         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1827         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1828         * modules/acosl (Depends-on): Add acos. Update conditions.
1829
1830 2011-10-10  Bruno Haible  <bruno@clisp.org>
1831
1832         asinl: Simplify for platforms where 'long double' == 'double'.
1833         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1834         alternative implementation.
1835         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1836         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1837         * modules/asinl (Depends-on): Add asin. Update conditions.
1838
1839 2011-10-10  Bruno Haible  <bruno@clisp.org>
1840
1841         tanl: Simplify for platforms where 'long double' == 'double'.
1842         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1843         implementation.
1844         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1845         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1846         * modules/tanl (Depends-on): Add tan. Update conditions.
1847         (configure.ac): Don't compile trigl.c if
1848         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1849
1850 2011-10-10  Bruno Haible  <bruno@clisp.org>
1851
1852         cosl: Simplify for platforms where 'long double' == 'double'.
1853         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1854         implementation.
1855         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1856         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1857         * modules/cosl (Depends-on): Add cos. Update conditions.
1858         (configure.ac): Don't compile sincosl.c and trigl.c if
1859         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1860
1861 2011-10-10  Bruno Haible  <bruno@clisp.org>
1862
1863         sinl: Simplify for platforms where 'long double' == 'double'.
1864         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1865         implementation.
1866         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1867         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1868         * modules/sinl (Depends-on): Add sin. Update conditions.
1869         (configure.ac): Don't compile sincosl.c and trigl.c if
1870         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1871
1872 2011-10-10  Bruno Haible  <bruno@clisp.org>
1873
1874         logl: Simplify for platforms where 'long double' == 'double'.
1875         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1876         implementation.
1877         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1878         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1879         * modules/logl (Depends-on): Add log. Update conditions.
1880
1881 2011-10-10  Bruno Haible  <bruno@clisp.org>
1882
1883         expl: Simplify for platforms where 'long double' == 'double'.
1884         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
1885         implementation.
1886         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1887         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1888         * modules/expl (Depends-on): Add exp. Update conditions.
1889
1890 2011-10-10  Bruno Haible  <bruno@clisp.org>
1891
1892         sqrtl: Simplify for platforms where 'long double' == 'double'.
1893         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1894         alternative implementation.
1895         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1896         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1897         * modules/sqrtl (Depends-on): Update conditions.
1898
1899 2011-10-10  Bruno Haible  <bruno@clisp.org>
1900
1901         ldexpl: Simplify for platforms where 'long double' == 'double'.
1902         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
1903         alternative implementation.
1904         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1905         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1906         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
1907
1908 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
1909
1910         ffsll: set correct witness
1911         * modules/ffsll (configure.ac): Fix typo.
1912
1913 2011-10-10  Bruno Haible  <bruno@clisp.org>
1914
1915         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
1916         * lib/printf-frexpl.c: Include <config.h>.
1917         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1918         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
1919         second time.
1920         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
1921         gl_LONG_DOUBLE_VS_DOUBLE.
1922         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
1923         conditions.
1924
1925 2011-10-10  Bruno Haible  <bruno@clisp.org>
1926
1927         frexpl: Simplify for platforms where 'long double' == 'double'.
1928         * lib/frexpl.c: Include <config.h>.
1929         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1930         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1931         time.
1932         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1933         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1934         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
1935         * modules/frexpl (Depends-on): Add frexp. Update conditions.
1936         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
1937         conditions.
1938
1939 2011-10-10  Jim Meyering  <meyering@redhat.com>
1940
1941         test-renameat: don't leave behind a temporary file
1942         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
1943           ERROR: files left in build directory after distclean:
1944           ./gltests/test-renameat.too
1945           make[1]: *** [distcleancheck] Error 1
1946         Reported by Tom G. Christensen.
1947
1948 2011-10-09  Bruno Haible  <bruno@clisp.org>
1949
1950         rint: Determine RINT_LIBM correctly on AIX 7.
1951         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
1952         directly, not only through a function pointer. Also accept an optional
1953         4th argument with extra code.
1954         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
1955         rintf() call by gcc when optimizing.
1956
1957         mathfunc.m4: Refactor.
1958         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
1959         m4 variable.
1960
1961 2011-10-09  Bruno Haible  <bruno@clisp.org>
1962
1963         rintl: Simplify for platforms where 'long double' == 'double'.
1964         * lib/rintl.c: Include <config.h>.
1965         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1966         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1967         time.
1968         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1969         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1970         * modules/rintl (Depends-on): Add rint. Update conditions.
1971
1972 2011-10-09  Bruno Haible  <bruno@clisp.org>
1973
1974         roundl: Simplify for platforms where 'long double' == 'double'.
1975         * lib/roundl.c: Include <config.h>.
1976         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1977         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1978         time.
1979         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1980         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1981         * modules/roundl (Depends-on): Add round. Update conditions.
1982
1983 2011-10-09  Bruno Haible  <bruno@clisp.org>
1984
1985         truncl: Simplify for platforms where 'long double' == 'double'.
1986         * lib/truncl.c: Include <config.h>.
1987         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1988         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
1989         time.
1990         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
1991         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
1992         * modules/truncl (Depends-on): Add trunc. Update conditions.
1993
1994 2011-10-09  Bruno Haible  <bruno@clisp.org>
1995
1996         ceill: Simplify for platforms where 'long double' == 'double'.
1997         * lib/ceill.c: Include <config.h>.
1998         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
1999         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2000         time.
2001         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2002         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2003         * modules/ceill (Depends-on): Add ceil. Update conditions.
2004
2005 2011-10-09  Bruno Haible  <bruno@clisp.org>
2006
2007         floorl: Simplify for platforms where 'long double' == 'double'.
2008         * lib/floorl.c: Include <config.h>.
2009         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2010         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2011         time.
2012         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2013         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2014         * modules/floorl (Depends-on): Add floor. Update conditions.
2015
2016 2011-10-09  Bruno Haible  <bruno@clisp.org>
2017
2018         rint: Fix ordering constraints.
2019         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
2020         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2021         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2022
2023 2011-10-09  Bruno Haible  <bruno@clisp.org>
2024
2025         copysignl: Simplify for platforms where 'long double' == 'double'.
2026         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2027         alternative.
2028         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2029         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2030         * modules/copysignl (Depends-on): Add copysign. Update conditions.
2031
2032 2011-10-09  Bruno Haible  <bruno@clisp.org>
2033
2034         Tests for module 'rintl'.
2035         * modules/rintl-tests: New file.
2036         * tests/test-rintl.c: New file.
2037
2038         New module 'rintl'.
2039         * lib/math.in.h (rintl): New declaration.
2040         * lib/rintl.c: New file.
2041         * m4/rintl.m4: New file.
2042         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
2043         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
2044         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
2045         * modules/rintl: New file.
2046         * tests/test-math-c++.cc: Check the declaration of rintl.
2047         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2048         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
2049         * doc/posix-functions/rintl.texi: Mention the new module.
2050
2051 2011-10-09  Bruno Haible  <bruno@clisp.org>
2052
2053         Tests for module 'rintf'.
2054         * modules/rintf-tests: New file.
2055         * tests/test-rintf.c: New file.
2056
2057         New module 'rintf'.
2058         * lib/math.in.h (rintf): New declaration.
2059         * lib/rintf.c: New file.
2060         * m4/rintf.m4: New file.
2061         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
2062         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
2063         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
2064         * modules/rintf: New file.
2065         * tests/test-math-c++.cc: Check the declaration of rintf.
2066         * doc/posix-functions/rintf.texi: Mention the new module.
2067
2068 2011-10-09  Bruno Haible  <bruno@clisp.org>
2069
2070         rint: Support for MSVC.
2071         * lib/math.in.h (rint): New declaration.
2072         * lib/rint.c: New file.
2073         * m4/rint.m4: New file.
2074         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
2075         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
2076         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
2077         * modules/rint (Description): Fix.
2078         (Files): Add lib/rint.c, m4/rint.m4.
2079         (Depends-on): Add math.
2080         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
2081         gl_MATH_MODULE_INDICATOR.
2082         * tests/test-math-c++.cc: Check the declaration of rint.
2083         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2084         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
2085         * doc/posix-functions/rint.texi: Mention the replacement provided by
2086         the module.
2087
2088         rint tests: More tests.
2089         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
2090         minus-zero.h, infinity.h, nan.h.
2091         (main): Skip the test if the current rounding mode is not standard. Add
2092         tests for negative numbers, minus zero, infinity, NaN.
2093         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
2094         tests/nan.h.
2095         (Depends-on): Add isnand-nolibm.
2096
2097 2011-10-09  Bruno Haible  <bruno@clisp.org>
2098
2099         Tests for module 'copysignl'.
2100         * modules/copysignl-tests: New file.
2101         * tests/test-copysignl.c: New file.
2102
2103         New module 'copysignl'.
2104         * lib/math.in.h (copysignl): New declaration.
2105         * lib/copysignl.c: New file.
2106         * m4/copysignl.m4: New file.
2107         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
2108         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
2109         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
2110         HAVE_COPYSIGNL.
2111         * modules/copysignl: New file.
2112         * tests/test-math-c++.cc: Check the declaration of copysignl.
2113         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2114         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
2115         * doc/posix-functions/copysignl.texi: Mention the new module.
2116
2117 2011-10-09  Bruno Haible  <bruno@clisp.org>
2118
2119         Tests for module 'copysignf'.
2120         * modules/copysignf-tests: New file.
2121         * tests/test-copysignf.c: New file.
2122
2123         New module 'copysignf'.
2124         * lib/math.in.h (copysignf): New declaration.
2125         * lib/copysignf.c: New file.
2126         * m4/copysignf.m4: New file.
2127         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
2128         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
2129         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
2130         HAVE_COPYSIGNF.
2131         * modules/copysignf: New file.
2132         * tests/test-math-c++.cc: Check the declaration of copysignf.
2133         * doc/posix-functions/copysignf.texi: Mention the new module.
2134
2135 2011-10-09  Bruno Haible  <bruno@clisp.org>
2136
2137         Ensure that HAVE_* variables are set to 1 before they are set to 0.
2138         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
2139         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
2140         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
2141         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
2142         gl_SIGNAL_H_DEFAULTS.
2143
2144 2011-10-09  Bruno Haible  <bruno@clisp.org>
2145
2146         poll: Make macro safer.
2147         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
2148         ac_cv_header_poll_h is not set.
2149
2150 2011-10-09  Bruno Haible  <bruno@clisp.org>
2151
2152         copysign: Provide replacement.
2153         * lib/math.in.h (copysign): New declaration.
2154         * lib/copysign.c: New file.
2155         * m4/copysign.m4: New file.
2156         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
2157         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
2158         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
2159         HAVE_COPYSIGN.
2160         * modules/copysign (Description): Clarify.
2161         (Files): Add lib/copysign.c, m4/copysign.m4.
2162         (Depends-on): Add math, signbit.
2163         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
2164         gl_MATH_MODULE_INDICATOR.
2165         * tests/test-math-c++.cc: Check the declaration of copysign.
2166         * doc/posix-functions/copysign.texi: Mention the effects of the module
2167         on Minix and MSVC.
2168
2169 2011-10-09  Bruno Haible  <bruno@clisp.org>
2170
2171         isinf: Ensure macro on AIX 5.1.
2172         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
2173         macro.
2174         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
2175
2176 2011-10-09  Bruno Haible  <bruno@clisp.org>
2177
2178         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
2179         * modules/snprintf-posix-tests (configure.ac): Require
2180         gl_LONG_DOUBLE_VS_DOUBLE.
2181         * modules/sprintf-posix-tests (configure.ac): Likewise.
2182         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
2183         * modules/vasprintf-posix-tests (configure.ac): Likewise.
2184         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
2185         * modules/vsprintf-posix-tests (configure.ac): Likewise.
2186         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
2187         tests on platforms where 'long double' is the same as 'double'.
2188         * tests/test-sprintf-posix.h (test_function): Likewise.
2189         * tests/test-vasnprintf-posix.c (test_function): Likewise.
2190         * tests/test-vasprintf-posix.c (test_function): Likewise.
2191
2192         *printf: Fix for platforms where 'long double' == 'double'.
2193         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
2194         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
2195         * modules/dprintf-posix (Files): Add m4/math_h.m4.
2196         * modules/fprintf-posix (Files): Likewise.
2197         * modules/obstack-printf-posix (Files): Likewise.
2198         * modules/snprintf-posix (Files): Likewise.
2199         * modules/sprintf-posix (Files): Likewise.
2200         * modules/vasnprintf (Files): Likewise.
2201         * modules/vasnprintf-posix (Files): Likewise.
2202         * modules/vasprintf-posix (Files): Likewise.
2203         * modules/vdprintf-posix (Files): Likewise.
2204         * modules/vfprintf-posix (Files): Likewise.
2205         * modules/vsnprintf-posix (Files): Likewise.
2206         * modules/vsprintf-posix (Files): Likewise.
2207         * modules/unistdio/u8-vasnprintf (Files): Likewise.
2208         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
2209         * modules/unistdio/u16-vasnprintf (Files): Likewise.
2210         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
2211         * modules/unistdio/u32-vasnprintf (Files): Likewise.
2212         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
2213         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
2214
2215         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
2216         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
2217         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2218         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
2219         'long double'.
2220         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
2221
2222         isinf: Fix for platforms where 'long double' == 'double'.
2223         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
2224         Don't blindly assume 80-bit 'long double'.
2225
2226         isfinite: Fix for platforms where 'long double' == 'double'.
2227         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
2228         Don't blindly assume 80-bit 'long double'.
2229
2230         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
2231         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
2232         * modules/isfinite-tests (configure.ac): Require
2233         gl_LONG_DOUBLE_VS_DOUBLE.
2234         * modules/isinf-tests (configure.ac): Likewise.
2235         * modules/isnan-tests (configure.ac): Likewise.
2236         * modules/isnanl-tests (configure.ac): Likewise.
2237         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
2238         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
2239         tests on platforms where 'long double' is the same as 'double'.
2240         * tests/test-isinf.c (test_isinfl): Likewise.
2241         * tests/test-isnan.c (test_long_double): Likewise.
2242         * tests/test-isnanl.h (main): Likewise.
2243
2244 2011-10-08  Bruno Haible  <bruno@clisp.org>
2245
2246         Tests for module 'tanhf'.
2247         * modules/tanhf-tests: New file.
2248         * tests/test-tanhf.c: New file.
2249
2250         New module 'tanhf'.
2251         * lib/math.in.h (tanhf): New declaration.
2252         * lib/tanhf.c: New file.
2253         * m4/tanhf.m4: New file.
2254         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
2255         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
2256         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
2257         * modules/tanhf: New file.
2258         * tests/test-math-c++.cc: Check the declaration of tanhf.
2259         * doc/posix-functions/tanhf.texi: Mention the new module.
2260
2261         tanh: Use a .m4 file.
2262         * m4/tanh.m4: New file.
2263         * modules/tanh (Files): Add it.
2264         (configure.ac): Just invoke gl_FUNC_TANH.
2265
2266 2011-10-08  Bruno Haible  <bruno@clisp.org>
2267
2268         Tests for module 'coshf'.
2269         * modules/coshf-tests: New file.
2270         * tests/test-coshf.c: New file.
2271
2272         New module 'coshf'.
2273         * lib/math.in.h (coshf): New declaration.
2274         * lib/coshf.c: New file.
2275         * m4/coshf.m4: New file.
2276         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
2277         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
2278         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
2279         * modules/coshf: New file.
2280         * tests/test-math-c++.cc: Check the declaration of coshf.
2281         * doc/posix-functions/coshf.texi: Mention the new module.
2282
2283         cosh: Use a .m4 file.
2284         * m4/cosh.m4: New file.
2285         * modules/cosh (Files): Add it.
2286         (configure.ac): Just invoke gl_FUNC_COSH.
2287
2288 2011-10-08  Bruno Haible  <bruno@clisp.org>
2289
2290         Tests for module 'sinhf'.
2291         * modules/sinhf-tests: New file.
2292         * tests/test-sinhf.c: New file.
2293
2294         New module 'sinhf'.
2295         * lib/math.in.h (sinhf): New declaration.
2296         * lib/sinhf.c: New file.
2297         * m4/sinhf.m4: New file.
2298         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
2299         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
2300         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
2301         * modules/sinhf: New file.
2302         * tests/test-math-c++.cc: Check the declaration of sinhf.
2303         * doc/posix-functions/sinhf.texi: Mention the new module.
2304
2305         sinh: Use a .m4 file.
2306         * m4/sinh.m4: New file.
2307         * modules/sinh (Files): Add it.
2308         (configure.ac): Just invoke gl_FUNC_SINH.
2309
2310 2011-10-08  Bruno Haible  <bruno@clisp.org>
2311
2312         Tests for module 'atan2f'.
2313         * modules/atan2f-tests: New file.
2314         * tests/test-atan2f.c: New file.
2315
2316         New module 'atan2f'.
2317         * lib/math.in.h (atan2f): New declaration.
2318         * lib/atan2f.c: New file.
2319         * m4/atan2f.m4: New file.
2320         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
2321         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
2322         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
2323         * modules/atan2f: New file.
2324         * tests/test-math-c++.cc: Check the declaration of atan2f.
2325         * doc/posix-functions/atan2f.texi: Mention the new module.
2326
2327         atan2: Use a .m4 file.
2328         * m4/atan2.m4: New file.
2329         * modules/atan2 (Files): Add it.
2330         (configure.ac): Just invoke gl_FUNC_ATAN2.
2331
2332 2011-10-08  Bruno Haible  <bruno@clisp.org>
2333
2334         Tests for module 'atanf'.
2335         * modules/atanf-tests: New file.
2336         * tests/test-atanf.c: New file.
2337
2338         New module 'atanf'.
2339         * lib/math.in.h (atanf): New declaration.
2340         * lib/atanf.c: New file.
2341         * m4/atanf.m4: New file.
2342         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
2343         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
2344         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
2345         * modules/atanf: New file.
2346         * tests/test-math-c++.cc: Check the declaration of atanf.
2347         * doc/posix-functions/atanf.texi: Mention the new module.
2348
2349         atan: Use a .m4 file.
2350         * m4/atan.m4: New file.
2351         * modules/atan (Files): Add it.
2352         (configure.ac): Just invoke gl_FUNC_ATAN.
2353
2354 2011-10-08  Bruno Haible  <bruno@clisp.org>
2355
2356         Tests for module 'acosf'.
2357         * modules/acosf-tests: New file.
2358         * tests/test-acosf.c: New file.
2359
2360         New module 'acosf'.
2361         * lib/math.in.h (acosf): New declaration.
2362         * lib/acosf.c: New file.
2363         * m4/acosf.m4: New file.
2364         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
2365         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
2366         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
2367         * modules/acosf: New file.
2368         * tests/test-math-c++.cc: Check the declaration of acosf.
2369         * doc/posix-functions/acosf.texi: Mention the new module.
2370
2371         acos: Use a .m4 file.
2372         * m4/acos.m4: New file.
2373         * modules/acos (Files): Add it.
2374         (configure.ac): Just invoke gl_FUNC_ACOS.
2375
2376 2011-10-08  Bruno Haible  <bruno@clisp.org>
2377
2378         Tests for module 'asinf'.
2379         * modules/asinf-tests: New file.
2380         * tests/test-asinf.c: New file.
2381
2382         New module 'asinf'.
2383         * lib/math.in.h (asinf): New declaration.
2384         * lib/asinf.c: New file.
2385         * m4/asinf.m4: New file.
2386         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
2387         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
2388         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
2389         * modules/asinf: New file.
2390         * tests/test-math-c++.cc: Check the declaration of asinf.
2391         * doc/posix-functions/asinf.texi: Mention the new module.
2392
2393         asin: Use a .m4 file.
2394         * m4/asin.m4: New file.
2395         * modules/asin (Files): Add it.
2396         (configure.ac): Just invoke gl_FUNC_ASIN.
2397
2398 2011-10-08  Bruno Haible  <bruno@clisp.org>
2399
2400         Tests for module 'tanf'.
2401         * modules/tanf-tests: New file.
2402         * tests/test-tanf.c: New file.
2403
2404         New module 'tanf'.
2405         * lib/math.in.h (tanf): New declaration.
2406         * lib/tanf.c: New file.
2407         * m4/tanf.m4: New file.
2408         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
2409         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
2410         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
2411         * modules/tanf: New file.
2412         * tests/test-math-c++.cc: Check the declaration of tanf.
2413         * doc/posix-functions/tanf.texi: Mention the new module.
2414
2415         tan: Use a .m4 file.
2416         * m4/tan.m4: New file.
2417         * modules/tan (Files): Add it.
2418         (configure.ac): Just invoke gl_FUNC_TAN.
2419
2420 2011-10-08  Bruno Haible  <bruno@clisp.org>
2421
2422         Tests for module 'cosf'.
2423         * modules/cosf-tests: New file.
2424         * tests/test-cosf.c: New file.
2425
2426         New module 'cosf'.
2427         * lib/math.in.h (cosf): New declaration.
2428         * lib/cosf.c: New file.
2429         * m4/cosf.m4: New file.
2430         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
2431         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
2432         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
2433         * modules/cosf: New file.
2434         * tests/test-math-c++.cc: Check the declaration of cosf.
2435         * doc/posix-functions/cosf.texi: Mention the new module.
2436
2437         cos: Use a .m4 file.
2438         * m4/cos.m4: New file.
2439         * modules/cos (Files): Add it.
2440         (configure.ac): Just invoke gl_FUNC_COS.
2441
2442 2011-10-08  Bruno Haible  <bruno@clisp.org>
2443
2444         Tests for module 'sinf'.
2445         * modules/sinf-tests: New file.
2446         * tests/test-sinf.c: New file.
2447
2448         New module 'sinf'.
2449         * lib/math.in.h (sinf): New declaration.
2450         * lib/sinf.c: New file.
2451         * m4/sinf.m4: New file.
2452         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
2453         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
2454         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
2455         * modules/sinf: New file.
2456         * tests/test-math-c++.cc: Check the declaration of sinf.
2457         * doc/posix-functions/sinf.texi: Mention the new module.
2458
2459         sin: Use a .m4 file.
2460         * m4/sin.m4: New file.
2461         * modules/sin (Files): Add it.
2462         (configure.ac): Just invoke gl_FUNC_SIN.
2463
2464 2011-10-08  Bruno Haible  <bruno@clisp.org>
2465
2466         Tests for module 'powf'.
2467         * modules/powf-tests: New file.
2468         * tests/test-powf.c: New file.
2469
2470         New module 'powf'.
2471         * lib/math.in.h (powf): New declaration.
2472         * lib/powf.c: New file.
2473         * m4/powf.m4: New file.
2474         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
2475         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
2476         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
2477         * modules/powf: New file.
2478         * tests/test-math-c++.cc: Check the declaration of powf.
2479         * doc/posix-functions/powf.texi: Mention the new module.
2480
2481         pow: Use a .m4 file.
2482         * m4/pow.m4: New file.
2483         * modules/pow (Files): Add it.
2484         (configure.ac): Just invoke gl_FUNC_POW.
2485
2486 2011-10-08  Bruno Haible  <bruno@clisp.org>
2487
2488         Tests for module 'log10f'.
2489         * modules/log10f-tests: New file.
2490         * tests/test-log10f.c: New file.
2491
2492         New module 'log10f'.
2493         * lib/math.in.h (log10f): New declaration.
2494         * lib/log10f.c: New file.
2495         * m4/log10f.m4: New file.
2496         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
2497         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
2498         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
2499         * modules/log10f: New file.
2500         * tests/test-math-c++.cc: Check the declaration of log10f.
2501         * doc/posix-functions/log10f.texi: Mention the new module.
2502
2503         log10: Use a .m4 file.
2504         * m4/log10.m4: New file.
2505         * modules/log10 (Files): Add it.
2506         (configure.ac): Just invoke gl_FUNC_LOG10.
2507
2508 2011-10-08  Bruno Haible  <bruno@clisp.org>
2509
2510         Tests for module 'logf'.
2511         * modules/logf-tests: New file.
2512         * tests/test-logf.c: New file.
2513
2514         New module 'logf'.
2515         * lib/math.in.h (logf): New declaration.
2516         * lib/logf.c: New file.
2517         * m4/logf.m4: New file.
2518         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
2519         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
2520         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
2521         * modules/logf: New file.
2522         * tests/test-math-c++.cc: Check the declaration of logf.
2523         * doc/posix-functions/logf.texi: Mention the new module.
2524
2525         log: Use a .m4 file.
2526         * m4/log.m4: New file.
2527         * modules/log (Files): Add it.
2528         (configure.ac): Just invoke gl_FUNC_LOG.
2529
2530 2011-10-08  Bruno Haible  <bruno@clisp.org>
2531
2532         Tests for module 'expf'.
2533         * modules/expf-tests: New file.
2534         * tests/test-expf.c: New file.
2535
2536         New module 'expf'.
2537         * lib/math.in.h (expf): New declaration.
2538         * lib/expf.c: New file.
2539         * m4/expf.m4: New file.
2540         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
2541         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
2542         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
2543         * modules/expf: New file.
2544         * tests/test-math-c++.cc: Check the declaration of expf.
2545         * doc/posix-functions/expf.texi: Mention the new module.
2546
2547         exp: Use a .m4 file.
2548         * m4/exp.m4: New file.
2549         * modules/exp (Files): Add it.
2550         (configure.ac): Just invoke gl_FUNC_EXP.
2551
2552 2011-10-08  Bruno Haible  <bruno@clisp.org>
2553
2554         Tests for module 'sqrtf'.
2555         * modules/sqrtf-tests: New file.
2556         * tests/test-sqrtf.c: New file.
2557
2558         New module 'sqrtf'.
2559         * lib/math.in.h (sqrtf): New declaration.
2560         * lib/sqrtf.c: New file.
2561         * m4/sqrtf.m4: New file.
2562         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
2563         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
2564         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
2565         * modules/sqrtf: New file.
2566         * tests/test-math-c++.cc: Check the declaration of sqrtf.
2567         * doc/posix-functions/sqrtf.texi: Mention the new module.
2568
2569 2011-10-08  Bruno Haible  <bruno@clisp.org>
2570
2571         Tests: Avoid link failures w.r.t. libintl.
2572         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
2573         $(LIBINTL).
2574         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
2575         $(LIBINTL).
2576         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
2577         against $(LIBINTL).
2578         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
2579         $(LIBINTL).
2580         * modules/openat-tests (Makefile.am): Link test-fchmodat against
2581         $(LIBINTL).
2582         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
2583
2584 2011-10-08  Bruno Haible  <bruno@clisp.org>
2585
2586         pow tests: Defeat compiler optimizations.
2587         * tests/test-pow.c (main): Assign arguments to x and y before use.
2588
2589 2011-10-08  Bruno Haible  <bruno@clisp.org>
2590
2591         gnulib-tool: Improve last commit.
2592         * gnulib-tool (func_modules_transitive_closure): Simplify code.
2593         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
2594         ignore dependencies that are not among the modules list.
2595
2596 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
2597
2598         gnulib-tool: don't follow dependencies to avoided modules
2599         This fixes a bug that is related to the previous one.
2600         * gnulib-tool (func_modules_transitive_closure)
2601         (func_emit_autoconf_snippets):
2602         Check whether a dependency is acceptable before using it.
2603         (--extract-dependencies): Report an error if --avoid is also used,
2604         since this combination of options is not yet supported.
2605
2606         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
2607         Problem reported by Peter Dyballa in
2608         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
2609         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
2610         when echoing "$condition".
2611
2612 2011-10-07  Bruno Haible  <bruno@clisp.org>
2613
2614         Fix documentation about math functions on MacOS X.
2615         * doc/posix-functions/exp2.texi: Don't say the function is missing on
2616         MacOS X 10.5.
2617         * doc/posix-functions/fdim.texi: Likewise.
2618         * doc/posix-functions/feclearexcept.texi: Likewise.
2619         * doc/posix-functions/fegetenv.texi: Likewise.
2620         * doc/posix-functions/fegetround.texi: Likewise.
2621         * doc/posix-functions/feholdexcept.texi: Likewise.
2622         * doc/posix-functions/feraiseexcept.texi: Likewise.
2623         * doc/posix-functions/fesetenv.texi: Likewise.
2624         * doc/posix-functions/fesetround.texi: Likewise.
2625         * doc/posix-functions/fetestexcept.texi: Likewise.
2626         * doc/posix-functions/feupdateenv.texi: Likewise.
2627         * doc/posix-functions/fmax.texi: Likewise.
2628         * doc/posix-functions/fmin.texi: Likewise.
2629         * doc/posix-functions/log2.texi: Likewise.
2630         * doc/posix-functions/modff.texi: Likewise.
2631         * doc/posix-functions/nan.texi: Likewise.
2632         * doc/posix-functions/nanf.texi: Likewise.
2633         * doc/posix-functions/nextafterf.texi: Likewise.
2634         * doc/posix-functions/remquo.texi: Likewise.
2635
2636 2011-10-07  Bruno Haible  <bruno@clisp.org>
2637
2638         modff: Drop assumption about library that defines modff.
2639         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
2640         AC_CHECK_FUNCS.
2641         * modules/modff (Files): Add m4/mathfunc.m4.
2642
2643 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
2644
2645         raise tests: Avoid a GCC warning.
2646         * tests/test-raise.c (handler): Use _Noreturn.
2647
2648 2011-10-07  Bruno Haible  <bruno@clisp.org>
2649
2650         Tests for module 'ldexpf'.
2651         * modules/ldexpf-tests: New file.
2652         * tests/test-ldexpf.c: New file.
2653
2654         New module 'ldexpf'.
2655         * lib/math.in.h (ldexpf): New declaration.
2656         * lib/ldexpf.c: New file.
2657         * m4/ldexpf.m4: New file.
2658         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
2659         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
2660         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
2661         * modules/ldexpf: New file.
2662         * tests/test-math-c++.cc: Check the declaration of ldexpf.
2663         * doc/posix-functions/ldexpf.texi: Mention the new module.
2664
2665 2011-10-06  Bruno Haible  <bruno@clisp.org>
2666
2667         frexpf: Work around problems on IRIX and mingw.
2668         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
2669         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
2670         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
2671         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
2672         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
2673         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
2674         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
2675
2676 2011-10-06  Bruno Haible  <bruno@clisp.org>
2677
2678         fabsf: Drop assumption about library that defines fabsf.
2679         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
2680         AC_CHECK_FUNCS.
2681         * modules/fabsf (Files): Add m4/mathfunc.m4.
2682
2683 2011-10-06  Bruno Haible  <bruno@clisp.org>
2684
2685         frexpf: Drop assumption about library that defines frexpf.
2686         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
2687         'int *', 'float *', 'long double *', 'float', 'long double'.
2688         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
2689         AC_CHECK_FUNCS.
2690         * modules/frexpf (Files): Add m4/mathfunc.m4.
2691
2692         Tests for module 'frexpf'.
2693         * modules/frexpf-tests: New file.
2694         * tests/test-frexpf.c: New file.
2695
2696         New module 'frexpf'.
2697         * lib/math.in.h (frexpf): New declaration.
2698         * lib/frexpf.c: New file.
2699         * m4/frexpf.m4: New file.
2700         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
2701         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
2702         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
2703         * modules/frexpf: New file.
2704         * tests/test-math-c++.cc: Check the declaration of frexpf.
2705         * doc/posix-functions/frexpf.texi: Mention the new module.
2706
2707 2011-10-06  Bruno Haible  <bruno@clisp.org>
2708
2709         math: Sort function declarations of math.in.h.
2710         * lib/math.in.h (frexp, logb): Move declarations.
2711
2712 2011-10-05  Bruno Haible  <bruno@clisp.org>
2713
2714         Tests for module 'modff'.
2715         * modules/modff-tests: New file.
2716         * tests/test-modff.c: New file.
2717
2718         New module 'modff'.
2719         * lib/math.in.h (modff): New declaration.
2720         * lib/modff.c: New file.
2721         * m4/modff.m4: New file.
2722         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
2723         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
2724         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
2725         * modules/modff: New file.
2726         * tests/test-math-c++.cc: Check the declaration of modff.
2727         * doc/posix-functions/modff.texi: Mention the new module.
2728
2729         modf tests: Make test sharper.
2730         * tests/test-modf.c (main): Strengthen upper bound.
2731
2732         modf: Use a .m4 file.
2733         * m4/modf.m4: New file.
2734         * modules/modf (Files): Add it.
2735         (configure.ac): Just invoke gl_FUNC_MODF.
2736
2737 2011-10-05  Bruno Haible  <bruno@clisp.org>
2738
2739         Tests for module 'fmodf'.
2740         * modules/fmodf-tests: New file.
2741         * tests/test-fmodf.c: New file.
2742
2743         New module 'fmodf'.
2744         * lib/math.in.h (fmodf): New declaration.
2745         * lib/fmodf.c: New file.
2746         * m4/fmodf.m4: New file.
2747         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
2748         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
2749         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
2750         * modules/fmodf: New file.
2751         * tests/test-math-c++.cc: Check the declaration of fmodf.
2752         * doc/posix-functions/fmodf.texi: Mention the new module.
2753
2754         fmod: Use a .m4 file.
2755         * m4/fmod.m4: New file.
2756         * modules/fmod (Files): Add it.
2757         (configure.ac): Just invoke gl_FUNC_FMOD.
2758
2759 2011-10-05  Bruno Haible  <bruno@clisp.org>
2760
2761         Tests for module 'fabsf'.
2762         * modules/fabsf-tests: New file.
2763         * tests/test-fabsf.c: New file.
2764
2765         New module 'fabsf'.
2766         * lib/math.in.h (fabsf): New declaration.
2767         * lib/fabsf.c: New file.
2768         * m4/fabsf.m4: New file.
2769         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
2770         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
2771         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
2772         * modules/fabsf: New file.
2773         * tests/test-math-c++.cc: Check the declaration of fabsf.
2774         * doc/posix-functions/fabsf.texi: Mention the new module.
2775
2776         fabs: Use a .m4 file.
2777         * m4/fabs.m4: New file.
2778         * modules/fabs (Files): Add it.
2779         (configure.ac): Just invoke gl_FUNC_FABS.
2780
2781 2011-10-05  Jim Meyering  <meyering@redhat.com>
2782
2783         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
2784         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
2785         ls -lL regression introduced in coreutils-8.12, it does so at the
2786         cost of an additional stat call in the common case.  Besides, now
2787         that the kernel change that prompted commit 95f7c57f has been reverted
2788         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
2789         we have no use for commit 95f7c57f, "file-has-acl: use
2790         acl_extended_file_nofollow if available".
2791
2792 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
2793
2794         file-has-acl: revert unintended change in behavior of ls -L
2795         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
2796         derived from...
2797         (file_has_acl): ...code here.  Call it.
2798         This problem was introduced with 2011-07-22 commit 95f7c57f,
2799         "file-has-acl: use acl_extended_file_nofollow if available".
2800         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
2801
2802 2011-10-03  Bruno Haible  <bruno@clisp.org>
2803
2804         poll: Avoid link errors on MSVC.
2805         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
2806         * modules/poll (Depends-on): Add sockets.
2807         (Link): New section.
2808         * NEWS: Mention the change.
2809         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
2810         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
2811         $(LIB_POLL) instead of $(LIBSOCKET).
2812
2813 2011-10-03  Bruno Haible  <bruno@clisp.org>
2814
2815         sys_select tests: Fix link error on MSVC 9.
2816         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
2817         with $(LIB_SELECT) instead of $(LIBSOCKET).
2818
2819 2011-10-03  Bruno Haible  <bruno@clisp.org>
2820
2821         sys_select: Fix compilation error on mingw.
2822         * lib/sys_select.in.h: On native Windows, include <io.h>.
2823
2824 2011-10-03  Bruno Haible  <bruno@clisp.org>
2825
2826         wmemset: Support for MSVC.
2827         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
2828         whether wmemset() exists.
2829
2830 2011-10-03  Bruno Haible  <bruno@clisp.org>
2831
2832         wmemmove: Support for MSVC.
2833         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
2834         whether wmemmove() exists.
2835
2836 2011-10-03  Bruno Haible  <bruno@clisp.org>
2837
2838         wmemcpy: Support for MSVC.
2839         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
2840         whether wmemcpy() exists.
2841
2842 2011-10-03  Bruno Haible  <bruno@clisp.org>
2843
2844         wmemcmp: Support for MSVC.
2845         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
2846         whether wmemcmp() exists.
2847
2848 2011-10-03  Bruno Haible  <bruno@clisp.org>
2849
2850         wmemchr: Support for MSVC.
2851         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
2852         whether wmemchr() exists.
2853
2854 2011-10-03  Bruno Haible  <bruno@clisp.org>
2855
2856         glthread/*, strsignal: Support for MSVC.
2857         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
2858         including <winsock.h> on MSVC 9.
2859         * lib/glthread/lock.h: Likewise.
2860         * lib/glthread/thread.h: Likewise.
2861         * lib/glthread/tls.h: Likewise.
2862         * lib/glthread/yield.h: Likewise.
2863         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
2864         if HAVE_UNISTD_H is false.
2865         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
2866
2867 2011-10-03  Bruno Haible  <bruno@clisp.org>
2868
2869         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
2870         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
2871         Set to 100000.
2872
2873 2011-10-03  Bruno Haible  <bruno@clisp.org>
2874
2875         acl: Fix specification.
2876         * lib/file-has-acl.c (file_has_acl): Fix specification.
2877
2878 2011-10-03  Bruno Haible  <bruno@clisp.org>
2879
2880         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
2881         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
2882         (compute_curr_prefix, shared_library_fullname,
2883         find_shared_library_fullname, get_shared_library_fullname, relocate):
2884         Use it together with PIC && INSTALLDIR.
2885         Reported by <jojelino@gmail.com>
2886         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
2887
2888 2011-10-01  Jim Meyering  <meyering@redhat.com>
2889
2890         maint.mk: adjust a release-related rule not to require use of gzip
2891         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
2892         Instead, check each file in $(DIST_ARCHIVES).  This is better for
2893         projects that build only .tar.xz files.  Also fix an erroneous test.
2894
2895         test-linkat: don't leave behind a temporary file
2896         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
2897         Otherwise, coreutils' "make distcheck" would fail with this:
2898           Only in /c/cu/tests/torture/coreutils/test/\
2899             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
2900           make[2]: *** [my-distcheck] Error 1
2901
2902         float, math: add omitted file
2903         * lib/itold.c: Add file, required for yesterday's float change.
2904
2905 2011-10-01  Bruno Haible  <bruno@clisp.org>
2906
2907         isinf: Fix for OpenBSD/x86.
2908         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
2909         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
2910         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
2911
2912 2011-10-01  Bruno Haible  <bruno@clisp.org>
2913
2914         isfinite: Fix syntax error in configure test.
2915         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
2916
2917         isfinite: Fix typo.
2918         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
2919         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
2920
2921 2011-10-01  Bruno Haible  <bruno@clisp.org>
2922
2923         nonblocking tests: Fix test failure on Linux/IA-64.
2924         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
2925         Set to 270000.
2926
2927 2011-10-01  Bruno Haible  <bruno@clisp.org>
2928
2929         mkfifoat tests: Fix a test failure on mingw.
2930         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
2931         with error ENOSYS.
2932
2933 2011-09-30  Bruno Haible  <bruno@clisp.org>
2934
2935         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
2936         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
2937         'long double'. Set REPLACE_ITOLD.
2938         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
2939         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
2940         * lib/itold.c: New file.
2941         * modules/float (Files): Add lib/itold.c.
2942         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
2943         (Makefile.am): Substitute REPLACE_ITOLD.
2944         * modules/math (Depends-on): Add float.
2945         (Makefile.am): Substitute REPLACE_ITOLD.
2946         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
2947         * doc/posix-headers/math.texi: Likewise.
2948         * doc/posix-functions/logl.texi: Likewise.
2949
2950 2011-09-30  Bruno Haible  <bruno@clisp.org>
2951
2952         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
2953         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
2954         Set to 140000.
2955
2956 2011-09-30  Bruno Haible  <bruno@clisp.org>
2957
2958         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
2959         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
2960         invocation, say "right after AC_PROG_CC_STDC", not "right after
2961         AC_PROG_CC".
2962         Reported by Gary V. Vaughan <gary@gnu.org>.
2963
2964 2011-09-30  Bruno Haible  <bruno@clisp.org>
2965
2966         Centralize C99 requirement.
2967         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
2968         * modules/stdarg (configure.ac-early): Invoke it instead of
2969         AC_PROG_CC_STDC.
2970         Reported by Gary V. Vaughan and Paul Eggert.
2971
2972 2011-09-29  Bruno Haible  <bruno@clisp.org>
2973
2974         float: Fix LDBL_MAX value on Linux/PowerPC.
2975         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
2976         on Linux/PowerPC.
2977         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
2978         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
2979         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
2980         platform.
2981         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
2982
2983 2011-09-29  Bruno Haible  <bruno@clisp.org>
2984
2985         doc: Improve doc about gl_EARLY.
2986         * doc/gnulib-tool.texi (Initial import): Mention where to place an
2987         AC_PROG_CC_STDC invocation.
2988         Reported by Gary V. Vaughan <gary@gnu.org>.
2989
2990 2011-09-28  Bruno Haible  <bruno@clisp.org>
2991
2992         fgetc, fputc, fread, fwrite tests: Fix link error.
2993         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
2994         on non-MSVC platforms.
2995         * tests/test-fputc.c (main): Likewise.
2996         * tests/test-fread.c (main): Likewise.
2997         * tests/test-fwrite.c (main): Likewise.
2998         Reported by Jim Meyering.
2999
3000 2011-09-27  Bruno Haible  <bruno@clisp.org>
3001
3002         fputc, fwrite tests: Avoid test failure on MSVC.
3003         * tests/test-fgetc.c: Include msvc-inval.h.
3004         (main): Invoke gl_msvc_inval_ensure_handler.
3005         * tests/test-fputc.c: Include msvc-inval.h.
3006         (main): Invoke gl_msvc_inval_ensure_handler.
3007         * tests/test-fread.c: Include msvc-inval.h.
3008         (main): Invoke gl_msvc_inval_ensure_handler.
3009         * tests/test-fwrite.c: Include msvc-inval.h.
3010         (main): Invoke gl_msvc_inval_ensure_handler.
3011         * modules/fgetc-tests (Depends-on): Add msvc-inval.
3012         * modules/fputc-tests (Depends-on): Likewise.
3013         * modules/fread-tests (Depends-on): Likewise.
3014         * modules/fwrite-tests (Depends-on): Likewise.
3015
3016 2011-09-27  Bruno Haible  <bruno@clisp.org>
3017
3018         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
3019         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
3020         (raise): Remove older, duplicated declaration.
3021         (_gl_raise_SIGPIPE): New declaration.
3022         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
3023         (rpl_raise): Remove function.
3024         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
3025         a gnulib-defined SIGPIPE here.
3026         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
3027         'sigprocmask' has detected missing signal-blocking and the module
3028         'sigpipe' is enabled.
3029         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
3030
3031 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
3032
3033         base64-tests: avoid memory leak
3034         * tests/test-base64.c (main): Plug memory leak.
3035
3036         base32: new module
3037         * modules/base32: New module.
3038         * lib/base32.c: New file.
3039         * lib/base32.h: Likewise.
3040         * m4/base32.m4: Likewise.
3041         * modules/base32-tests: New test.
3042         * tests/test-base32.c: Likewise.
3043         * MODULES.html.sh (Misc): Mention it.
3044
3045 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3046
3047         gnulib: use more-standard license notice wording
3048         * gnulib-tool (func_emit_copyright_notice): When emitting a
3049         license notice into a file, use the standard wording as suggested
3050         by the current information for GNU maintainers, except say "file"
3051         rather than "program".  The new wording gives a license version
3052         number, which addresses an issue raised by Glenn Morris in
3053         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
3054         * m4/onceonly.m4: Use that same wording here, too.
3055
3056         dup2: minor simplification
3057         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
3058         as lib/dup2.c no longer uses 'inline'.
3059
3060 2011-09-25  Bruno Haible  <bruno@clisp.org>
3061
3062         strings: Fix compilation error on MSVC.
3063         * lib/strings.in.h: Include <stddef.h> for size_t.
3064
3065 2011-09-25  Bruno Haible  <bruno@clisp.org>
3066
3067         fflush et al.: Document limitation on MSVC.
3068         * doc/posix-functions/fflush.texi: Document possible crash in handling
3069         mode other than DEFAULT_HANDLING.
3070         * doc/posix-functions/fgetc.texi: Likewise.
3071         * doc/posix-functions/fputc.texi: Likewise.
3072         * doc/posix-functions/fread.texi: Likewise.
3073         * doc/posix-functions/fwrite.texi: Likewise.
3074
3075 2011-09-25  Bruno Haible  <bruno@clisp.org>
3076
3077         msvc-inval: Allow three invalid parameter handling modes.
3078         * lib/msvc-inval.h: Don't include <stdlib.h> here.
3079         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
3080         macros.
3081         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
3082         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
3083         SANE_LIBRARY_HANDLING as a no-op.
3084         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
3085         <stdlib.h>.
3086         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
3087
3088 2011-09-25  Bruno Haible  <bruno@clisp.org>
3089
3090         msvc-inval: Make handler multithread-safe.
3091         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
3092         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
3093         declarations.
3094         (gl_msvc_inval_current): New declaration.
3095         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
3096         Operate on the structure returned by gl_msvc_inval_current().
3097         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
3098         Remove varaiables.
3099         (tls_index, tls_initialized): New variables.
3100         (not_per_thread): New variable.
3101         (gl_msvc_inval_current): New function.
3102         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
3103         returned by gl_msvc_inval_current().
3104
3105 2011-09-25  Bruno Haible  <bruno@clisp.org>
3106
3107         msvc-inval: Install handler globally.
3108         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
3109         !_MSC_VER.
3110         (gl_msvc_invalid_parameter_handler): Remove declaration.
3111         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
3112         declarations.
3113         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
3114         Install the handler globally, don't uninstall it.
3115         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
3116         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
3117         currently valid, call RaiseException instead.
3118         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
3119         for !_MSC_VER.
3120
3121 2011-09-25  Bruno Haible  <bruno@clisp.org>
3122
3123         strerror_r-posix: Fix for MSVC 9.
3124         * lib/strerror_r.c (local_snprintf): New function.
3125         (snprintf): Define to local_snprintf, not to _snprintf.
3126
3127 2011-09-25  Bruno Haible  <bruno@clisp.org>
3128
3129         ftruncate: Support for MSVC 9.
3130         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
3131         (chsize_nothrow): New function.
3132         (chsize): Redefine as a macro.
3133         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
3134         * modules/ftruncate (Depends-on): Add msvc-inval.
3135
3136 2011-09-25  Bruno Haible  <bruno@clisp.org>
3137
3138         New module 'fstat'.
3139         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
3140         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
3141         * lib/fchdir.c (rpl_fstat): Remove function.
3142         * m4/fstat.m4: New file.
3143         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
3144         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
3145         declared.
3146         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
3147         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
3148         * modules/fstat: New file.
3149         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
3150         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
3151         is set.
3152         * doc/posix-functions/fstat.texi: Mention the new module and the
3153         problem on MSVC.
3154         * NEWS: Mention the change.
3155         * modules/acl (Depends-on): Add fstat.
3156         * modules/chdir-safer (Depends-on): Likewise.
3157         * modules/chown (Depends-on): Likewise.
3158         * modules/copy-file (Depends-on): Likewise.
3159         * modules/fchdir (Depends-on): Likewise.
3160         * modules/fdopendir (Depends-on): Likewise.
3161         * modules/fopen (Depends-on): Likewise.
3162         * modules/fts (Depends-on): Likewise.
3163         * modules/getcwd (Depends-on): Likewise.
3164         * modules/isapipe (Depends-on): Likewise.
3165         * modules/linkat (Depends-on): Likewise.
3166         * modules/lseek (Depends-on): Likewise.
3167         * modules/mkdir-p (Depends-on): Likewise.
3168         * modules/open (Depends-on): Likewise.
3169         * modules/openat (Depends-on): Likewise.
3170         * modules/read-file (Depends-on): Likewise.
3171         * modules/renameat (Depends-on): Likewise.
3172         * modules/utimens (Depends-on): Likewise.
3173
3174 2011-09-25  Bruno Haible  <bruno@clisp.org>
3175
3176         linkat: Fix compilation on MSVC 9.
3177         * lib/linkat.c: Don't include <stdint.h>.
3178
3179 2011-09-25  Bruno Haible  <bruno@clisp.org>
3180
3181         fclose: Support for MSVC 9.
3182         * lib/fclose.c: Include msvc-inval.h.
3183         (fclose_nothrow): New function.
3184         (rpl_fclose): Use it.
3185         * modules/fclose (Depends-on): Add msvc-inval.
3186         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
3187
3188 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
3189
3190         dup2: minor simplifications
3191         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
3192         that it's a performance win.
3193         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
3194         ! defined __CYGWIN__)" to "ifdef F_GETFL".
3195
3196 2011-09-24  Jim Meyering  <meyering@redhat.com>
3197
3198         test-futimens: avoid a warning from gcc -Wshadow
3199         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
3200         to avoid a shadowing warning.
3201
3202 2011-09-24  Bruno Haible  <bruno@clisp.org>
3203
3204         fdopen: Support for MSVC 9.
3205         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
3206         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
3207         * lib/fdopen.c: Include msvc-inval.h.
3208         (fdopen_nothrow): New function.
3209         (rpl_fdopen): Use it.
3210         * modules/fdopen (Depends-on): Add msvc-inval.
3211         * modules/fclose-tests (Depends-on): Add fdopen.
3212         * modules/fflush-tests (Depends-on): Likewise.
3213         * modules/fgetc-tests (Depends-on): Likewise.
3214         * modules/fputc-tests (Depends-on): Likewise.
3215         * modules/fread-tests (Depends-on): Likewise.
3216         * modules/freopen-tests (Depends-on): Likewise.
3217         * modules/fseeko-tests (Depends-on): Likewise.
3218         * modules/ftello-tests (Depends-on): Likewise.
3219         * modules/fwrite-tests  (Depends-on): Likewise.
3220         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
3221
3222 2011-09-24  Bruno Haible  <bruno@clisp.org>
3223
3224         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
3225         * modules/fgetc-tests (Depends-on): Add unistd.
3226         * modules/fputc-tests (Depends-on): Likewise.
3227         * modules/fread-tests (Depends-on): Likewise.
3228         * modules/fwrite-tests (Depends-on): Likewise.
3229
3230 2011-09-24  Bruno Haible  <bruno@clisp.org>
3231
3232         dup: Simplify autoconf test.
3233         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
3234         on gl_MSVC_INVAL's result.
3235
3236 2011-09-24  Bruno Haible  <bruno@clisp.org>
3237
3238         Tests for function fwrite().
3239         * modules/fwrite-tests: New file.
3240         * tests/test-fwrite.c: New file.
3241         * modules/stdio-tests (Depends-on): Add fwrite-tests.
3242
3243         Tests for function fread().
3244         * modules/fread-tests: New file.
3245         * tests/test-fread.c: New file.
3246         * modules/stdio-tests (Depends-on): Add fread-tests.
3247
3248         Activate fputc tests.
3249         * modules/stdio-tests (Depends-on): Add fputc-tests.
3250
3251         Enhance fgetc, fputc tests.
3252         * tests/test-fgetc.c (main): Also test the stream's error indicator.
3253         * tests/test-fputc.c (main): Likewise.
3254
3255 2011-09-24  Bruno Haible  <bruno@clisp.org>
3256
3257         write: Support for MSVC 9.
3258         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3259         is not 1.
3260         * lib/write.c (write_nothrow): New function.
3261         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
3262         not 1. Use write_nothrow.
3263         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
3264         invalid parameter handler.
3265         (gl_PREREQ_WRITE): New macro.
3266         * modules/write (Depends-on): Add msvc-inval.
3267         (configure.ac): Invoke gl_PREREQ_WRITE.
3268         * doc/posix-functions/write.texi: Mention the problem on MSVC.
3269
3270 2011-09-24  Bruno Haible  <bruno@clisp.org>
3271
3272         read: Fix last commit.
3273         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
3274
3275 2011-09-24  Bruno Haible  <bruno@clisp.org>
3276
3277         dup2: Fix last commit.
3278         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
3279         (rpl_dup2): Disable fcntl workaround on native Windows.
3280
3281         sigprocmask: Make code safer.
3282         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
3283         section that changes macro definitions for this compilation unit.
3284
3285 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
3286
3287         dup2: clarify by coalescing Windows-specific material
3288         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
3289         "msvc-nothrow.h"' to the Windows-specific section, so that the
3290         Emacs source need not contain these include files.
3291         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
3292         Windows-specific fixes into this function rather than just the
3293         nothrow fix, as this shortens and clarifies the code.  Always
3294         define as a function, as that's a bit cleaner than having it be
3295         sometimes a function and sometimes a macro.
3296         (rpl_dup2): Move the Windows-specific stuff out of here and into
3297         ms_windows_dup2.  Don't protect the Haiku-related fix with
3298         "#if !defined __linux__", as the same code also works around
3299         a Linux kernel bug, and it doesn't add any system calls on any
3300         platform.  Add comment about FreeBSD 6.1.
3301
3302         sigprocmask: move #include directive
3303         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
3304         Windows-specific section, so that the Emacs source need not
3305         contain msvc-inval.h.
3306
3307 2011-09-23  Bruno Haible  <bruno@clisp.org>
3308
3309         read: Support for MSVC 9.
3310         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
3311         is not 1.
3312         * lib/read.c (read_nothrow): New function.
3313         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
3314         read_nothrow.
3315         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
3316         invalid parameter handler.
3317         (gl_PREREQ_READ): New macro.
3318         * modules/read (Depends-on): Add msvc-inval.
3319         (configure.ac): Invoke gl_PREREQ_READ.
3320         * doc/posix-functions/read.texi: Mention the problem on MSVC.
3321
3322 2011-09-23  Bruno Haible  <bruno@clisp.org>
3323
3324         close: Support for MSVC 9.
3325         * lib/close.c: Include <errno.h>, msvc-inval.h.
3326         (close_nothrow): New function.
3327         (rpl_close): Use it.
3328         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
3329         invalid parameter handler.
3330         * modules/close (Depends-on): Add msvc-inval.
3331         * modules/dup2-tests (Depends-on): Add close.
3332         * modules/dup3-tests (Depends-on): Likewise.
3333         * modules/fcntl-tests (Depends-on): Likewise.
3334         * modules/spawn-pipe-tests (Depends-on): Likewise.
3335         * modules/unistd-safer-tests (Depends-on): Likewise.
3336         * doc/posix-functions/close.texi: Mention the problem on MSVC.
3337
3338 2011-09-23  Bruno Haible  <bruno@clisp.org>
3339
3340         New module 'dup'.
3341         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
3342         Allow replacement.
3343         * lib/dup.c: New file.
3344         * lib/fchdir.c (rpl_dup): Remove function.
3345         * m4/dup.m4: New file.
3346         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
3347         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
3348         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
3349         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
3350         * modules/dup: New file.
3351         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
3352         'dup' module is in use.
3353         * modules/fdopendir (Depends-on): Add dup.
3354         * modules/fdutimensat-tests (Depends-on): Likewise.
3355         * modules/fts (Depends-on): Likewise.
3356         * modules/futimens-tests (Depends-on): Likewise.
3357         * modules/posix_spawnp-tests (Depends-on): Likewise.
3358         * modules/unistd-safer-tests (Depends-on): Likewise.
3359         * modules/utimens-tests (Depends-on): Likewise.
3360         * doc/posix-functions/dup.texi: Mention the new module and the problem
3361         on MSVC.
3362
3363 2011-09-23  Bruno Haible  <bruno@clisp.org>
3364
3365         getdtablesize: Support for MSVC 9.
3366         * lib/getdtablesize.c: Include msvc-inval.h.
3367         (_setmaxstdio_nothrow): New function.
3368         (_setmaxstdio): Redefine it.
3369         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
3370         * modules/getdtablesize (Depends-on): Add msvc-inval.
3371         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
3372
3373 2011-09-23  Bruno Haible  <bruno@clisp.org>
3374
3375         signal-h: Rename from signal.
3376         * modules/signal-h: Renamed from modules/signal.
3377         * modules/pthread_sigmask (Depends-on): Update.
3378         * modules/raise (Depends-on): Likewise.
3379         * modules/sigaction (Depends-on): Likewise.
3380         * modules/sigpipe (Depends-on): Likewise.
3381         * modules/sigprocmask (Depends-on): Likewise.
3382         * modules/sys_select (Depends-on): Likewise.
3383         * modules/signal-h-tests: Renamed from modules/signal-tests.
3384         (Files, Depends-on, Makefile.am): Update.
3385         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
3386         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
3387         (Files, Makefile.am): Update.
3388         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
3389         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
3390         * modules/signal: New placeholder file.
3391         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
3392         * doc/posix-headers/signal.texi: Update.
3393         * NEWS: Mention the change.
3394
3395 2011-09-23  Bruno Haible  <bruno@clisp.org>
3396
3397         sigprocmask: Avoid crashes through signal() on MSVC 9.
3398         * lib/sigprocmask.c: Include msvc-inval.h.
3399         (signal_nothrow): New function.
3400         (signal): Redefine it.
3401         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
3402         * modules/sigprocmask (Depends-on): Add msvc-inval.
3403         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
3404
3405 2011-09-23  Bruno Haible  <bruno@clisp.org>
3406
3407         Tests for module 'raise'.
3408         * modules/raise-tests: New file.
3409         * tests/test-raise.c: New file.
3410
3411         raise: Support for MSVC.
3412         * lib/signal.in.h (raise): New declaration.
3413         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
3414         for native Windows platforms.
3415         * m4/raise.m4: New file.
3416         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
3417         HAVE_RAISE, REPLACE_RAISE.
3418         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
3419         REPLACE_RAISE.
3420         * modules/raise (Status, Notice): Remove fields.
3421         (Files): Add m4/raise.m4.
3422         (Depends-on): Add signal, msvc-inval.
3423         (configure.ac): Use the common idioms.
3424         (Maintainer): Add me.
3425         * tests/test-signal-c++.cc: Check the signature of raise.
3426         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
3427
3428 2011-09-23  Bruno Haible  <bruno@clisp.org>
3429
3430         pipe2: Fix compilation on pre-C99 compilers.
3431         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
3432
3433 2011-09-23  Bruno Haible  <bruno@clisp.org>
3434
3435         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
3436         * lib/msvc-nothrow.h: New file.
3437         * lib/msvc-nothrow.c: New file.
3438         * m4/msvc-nothrow.m4: New file.
3439         * modules/msvc-nothrow: New file.
3440         * lib/dup2.c: Include msvc-nothrow.h.
3441         (rpl_dup2): No need to protect _get_osfhandle call here.
3442         * lib/accept4.c: Include msvc-nothrow.h.
3443         * lib/error.c: Likewise.
3444         * lib/fcntl.c: Likewise.
3445         * lib/lseek.c: Likewise.
3446         * lib/nonblocking.c: Likewise.
3447         * lib/poll.c: Likewise.
3448         * lib/read.c: Likewise.
3449         * lib/select.c: Likewise.
3450         * lib/sockets.h: Likewise.
3451         * lib/sockets.c: Likewise.
3452         * lib/stdio-read.c: Likewise.
3453         * lib/stdio-write.c: Likewise.
3454         * lib/write.c: Likewise.
3455         * lib/w32sock.h: Likewise.
3456         * lib/w32spawn.h: Likewise.
3457         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
3458         * lib/fsync.c: Likewise.
3459         * lib/isapipe.c: Likewise.
3460         * modules/dup2 (Depends-on): Add msvc-nothrow.
3461         * modules/accept4 (Depends-on): Likewise.
3462         * modules/error (Depends-on): Likewise.
3463         * modules/fcntl (Depends-on): Likewise.
3464         * modules/lseek (Depends-on): Likewise.
3465         * modules/nonblocking (Depends-on): Likewise.
3466         * modules/poll (Depends-on): Likewise.
3467         * modules/read (Depends-on): Likewise.
3468         * modules/select (Depends-on): Likewise.
3469         * modules/sockets (Depends-on): Likewise.
3470         * modules/sigpipe (Depends-on): Likewise.
3471         * modules/write (Depends-on): Likewise.
3472         * modules/accept (Depends-on): Likewise.
3473         * modules/bind (Depends-on): Likewise.
3474         * modules/connect (Depends-on): Likewise.
3475         * modules/gethostname (Depends-on): Likewise.
3476         * modules/getpeername (Depends-on): Likewise.
3477         * modules/getsockname (Depends-on): Likewise.
3478         * modules/getsockopt (Depends-on): Likewise.
3479         * modules/ioctl (Depends-on): Likewise.
3480         * modules/listen (Depends-on): Likewise.
3481         * modules/recv (Depends-on): Likewise.
3482         * modules/recvfrom (Depends-on): Likewise.
3483         * modules/send (Depends-on): Likewise.
3484         * modules/sendto (Depends-on): Likewise.
3485         * modules/setsockopt (Depends-on): Likewise.
3486         * modules/shutdown (Depends-on): Likewise.
3487         * modules/socket (Depends-on): Likewise.
3488         * modules/execute (Depends-on): Likewise.
3489         * modules/spawn-pipe (Depends-on): Likewise.
3490         * modules/flock (Depends-on): Likewise.
3491         * modules/fsync (Depends-on): Likewise.
3492         * modules/isapipe (Depends-on): Likewise.
3493         * tests/test-cloexec.c: Include msvc-nothrow.h.
3494         * tests/test-dup-safer.c: Likewise.
3495         * tests/test-dup2.c: Likewise.
3496         * tests/test-dup3.c: Likewise.
3497         * tests/test-fcntl.c: Likewise.
3498         * tests/test-pipe.c: Likewise.
3499         * tests/test-pipe2.c: Likewise.
3500         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
3501         * modules/unistd-safer-tests (Depends-on): Likewise.
3502         * modules/dup2-tests (Depends-on): Likewise.
3503         * modules/dup3-tests (Depends-on): Likewise.
3504         * modules/fcntl-tests (Depends-on): Likewise.
3505         * modules/pipe-posix-tests (Depends-on): Likewise.
3506         * modules/pipe2-tests (Depends-on): Likewise.
3507
3508 2011-09-23  Bruno Haible  <bruno@clisp.org>
3509
3510         dup2: Make code more maintainable.
3511         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
3512         (rpl_dup2): Use it.
3513         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
3514         * modules/dup2 (configure.ac): Invoke it.
3515         Reported by Paul Eggert.
3516
3517 2011-09-23  Bruno Haible  <bruno@clisp.org>
3518
3519         msvc-inval: Fix compilation error.
3520         * lib/msvc-inval.h: Include <excpt.h>.
3521
3522 2011-09-23  Bruno Haible  <bruno@clisp.org>
3523
3524         mkdir: Tweak for MSVC 9.
3525         * lib/sys_stat.in.h: Update comments.
3526         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
3527
3528         Tests for module 'chdir'.
3529         * modules/chdir-tests: New file.
3530         * tests/test-chdir.c: New file.
3531
3532         New module 'chdir'.
3533         * modules/chdir: New file.
3534         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
3535         (chdir): New declaration.
3536         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
3537         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
3538         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
3539         * tests/test-unistd-c++.cc: Check signature of chdir.
3540         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
3541         * modules/chdir-long (Depends-on): Add chdir.
3542         * modules/fchdir (Depends-on): Likewise.
3543         * modules/rename (Depends-on): Likewise.
3544         * modules/savewd (Depends-on): Likewise.
3545
3546         rmdir: Support for mingw, MSVC 9.
3547         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
3548         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
3549
3550         getcwd: Tweak for MSVC 9.
3551         * lib/unistd.in.h: Update comments.
3552         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
3553
3554 2011-09-22  Bruno Haible  <bruno@clisp.org>
3555
3556         strerror_r-posix: Avoid a link error on MSVC.
3557         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
3558         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
3559
3560 2011-09-22  Bruno Haible  <bruno@clisp.org>
3561
3562         select: Avoid link errors on MSVC.
3563         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
3564         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
3565         * modules/pselect (Link): Likewise.
3566         * NEWS: Mention the change.
3567         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
3568         test-select-stdin against $(LIB_SELECT).
3569         * modules/pselect-tests (Makefile.am): Link test-pselect against
3570         $(LIB_SELECT).
3571
3572 2011-09-22  Bruno Haible  <bruno@clisp.org>
3573
3574         select: Avoid compilation error on MSVC.
3575         * lib/select.c: Don't include <stdbool.h>.
3576
3577 2011-09-21  Bruno Haible  <bruno@clisp.org>
3578
3579         Consolidate all uses of PATH_MAX in *.m4 files.
3580         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
3581         macros.
3582         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
3583         and gl_PATHMAX_SNIPPET.
3584         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
3585         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
3586         * modules/chdir-long (Files): Add m4/pathmax.m4.
3587         * modules/getcwd (Files): Likewise.
3588
3589 2011-09-21  Bruno Haible  <bruno@clisp.org>
3590
3591         ftruncate: Un-deprecate, concentrate on Win32 support.
3592         * modules/ftruncate (Status, Notice): Remove sections.
3593         (Depends-on): Add largefile.
3594         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
3595         non-mingw platforms.
3596         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
3597         include <io.h>.
3598         * modules/perror-tests (Depends-on): Add ftruncate.
3599         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
3600         'ftruncate' module.
3601
3602 2011-09-21  Bruno Haible  <bruno@clisp.org>
3603
3604         Add dependencies to new dirent related modules.
3605         * modules/opendir (Depends-on): Add closedir.
3606         * modules/getcwd (Depends-on): Add opendir, closedir.
3607         * modules/dirent-safer-tests (Depends-on): Likewise.
3608         * modules/fdopendir-tests (Depends-on): Likewise.
3609         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
3610         * modules/renameat-tests (Depends-on): Likewise.
3611
3612 2011-09-21  Bruno Haible  <bruno@clisp.org>
3613
3614         opendir: Avoid compilation error on mingw.
3615         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
3616         * modules/opendir (Depends-on): Add unistd.
3617
3618 2011-09-21  Bruno Haible  <bruno@clisp.org>
3619
3620         ftruncate tests: Avoid a test failure on mingw.
3621         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
3622
3623 2011-09-21  Bruno Haible  <bruno@clisp.org>
3624
3625         select tests: Avoid test failures on OSF/1 5.1 and mingw.
3626         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
3627         native Windows.
3628
3629 2011-09-21  Bruno Haible  <bruno@clisp.org>
3630
3631         New module 'fdopen'.
3632         * lib/stdio.in.h (fdopen): New declaration.
3633         * lib/fdopen.c: New file.
3634         * m4/fdopen.m4: New file.
3635         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
3636         REPLACE_FDOPEN.
3637         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
3638         REPLACE_FDOPEN.
3639         * modules/fdopen: New file.
3640         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
3641         * tests/test-stdio-c++.cc: Check signature of fdopen.
3642         * doc/posix-functions/fdopen.texi: Mention the new module.
3643
3644 2011-09-21  Bruno Haible  <bruno@clisp.org>
3645
3646         unlockpt tests: Avoid test failure on NetBSD 5.1.
3647         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
3648         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
3649
3650 2011-09-21  Bruno Haible  <bruno@clisp.org>
3651
3652         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
3653         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
3654         * tests/test-getlogin_r.c (main): Likewise.
3655
3656 2011-09-20  Bruno Haible  <bruno@clisp.org>
3657
3658         time tests: Don't require pid_t.
3659         * doc/posix-headers/time.texi: Revert last change.
3660         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
3661         * tests/test-time.c: Comment out the check for pid_t.
3662
3663 2011-09-20  Bruno Haible  <bruno@clisp.org>
3664
3665         fsync tests: Avoid a test failure on mingw.
3666         * tests/test-fsync.c (main): Allow a failure with EIO.
3667
3668 2011-09-20  Bruno Haible  <bruno@clisp.org>
3669
3670         euidaccess: Update comments.
3671         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
3672
3673 2011-09-20  Bruno Haible  <bruno@clisp.org>
3674
3675         Ensure EBADF returns for socket functions on mingw.
3676         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
3677         descriptor is invalid.
3678         * lib/bind.c (rpl_bind): Likewise.
3679         * lib/connect.c (rpl_connect): Likewise.
3680         * lib/getpeername.c (rpl_getpeername): Likewise.
3681         * lib/getsockname.c (rpl_getsockname): Likewise.
3682         * lib/getsockopt.c (rpl_getsockopt): Likewise.
3683         * lib/listen.c (rpl_listen): Likewise.
3684         * lib/recv.c (rpl_recv): Likewise.
3685         * lib/recvfrom.c (rpl_recvfrom): Likewise.
3686         * lib/send.c (rpl_send): Likewise.
3687         * lib/sendto.c (rpl_sendto): Likewise.
3688         * lib/setsockopt.c (rpl_setsockopt): Likewise.
3689         * lib/shutdown.c (rpl_shutdown): Likewise.
3690
3691 2011-09-20  Bruno Haible  <bruno@clisp.org>
3692
3693         select tests: EBADF tests.
3694         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
3695         test_bad_fd): New functions.
3696         (test_function): Invoke also test_bad_fd.
3697
3698 2011-09-20  Bruno Haible  <bruno@clisp.org>
3699
3700         Tests for module 'posix_spawn_file_actions_addopen.
3701         * modules/posix_spawn_file_actions_addopen-tests: New file.
3702         * tests/test-posix_spawn_file_actions_addopen.c: New file.
3703
3704         Tests for module 'posix_spawn_file_actions_adddup2'.
3705         * modules/posix_spawn_file_actions_adddup2-tests: New file.
3706         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
3707
3708         Tests for module 'posix_spawn_file_actions_addclose'.
3709         * modules/posix_spawn_file_actions_addclose-tests: New file.
3710         * tests/test-posix_spawn_file_actions_addclose.c: New file.
3711
3712 2011-09-20  Bruno Haible  <bruno@clisp.org>
3713
3714         Tests for module 'unlockpt'.
3715         * modules/unlockpt-tests: New file.
3716         * tests/test-unlockpt.c: New file.
3717         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
3718
3719         Tests for module 'grantpt'.
3720         * modules/grantpt-tests: New file.
3721         * tests/test-grantpt.c: New file.
3722         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
3723
3724 2011-09-20  Bruno Haible  <bruno@clisp.org>
3725
3726         freopen tests: EBADF tests.
3727         * tests/test-freopen.c: Include errno.h, unistd.h.
3728         (main): Add tests for EBADF, commented out for the moment.
3729
3730         fclose tests: EBADF tests.
3731         * tests/test-fclose.c (main): Add tests for EBADF.
3732
3733         fflush tests: EBADF tests.
3734         * tests/test-fflush.c: Include errno.h, macros.h.
3735         (main): Add tests for EBADF.
3736
3737         ftello tests: EBADF tests.
3738         * tests/test-ftello4.sh: New file.
3739         * tests/test-ftello4.c: New file.
3740         * modules/ftello-tests (Files): Add them.
3741         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
3742
3743         fseeko tests: EBADF tests.
3744         * tests/test-fseeko4.sh: New file.
3745         * tests/test-fseeko4.c: New file.
3746         * modules/fseeko-tests (Files): Add them.
3747         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
3748
3749         Tests for function fputc().
3750         * modules/fputc-tests: New file.
3751         * tests/test-fputc.c: New file.
3752         * modules/stdio-tests (Depends-on): Add fputc-tests.
3753
3754         Tests for function fgetc().
3755         * modules/fgetc-tests: New file.
3756         * tests/test-fgetc.c: New file.
3757         * modules/stdio-tests (Depends-on): Add fgetc-tests.
3758
3759         Tests for function fdopen().
3760         * modules/fdopen-tests: New file.
3761         * tests/test-fdopen.c: New file.
3762         * modules/stdio-tests (Depends-on): Add fdopen-tests.
3763
3764         Tests for module 'vdprintf'.
3765         * modules/vdprintf-tests: New file.
3766         * tests/test-vdprintf.c: New file.
3767
3768         Tests for module 'dprintf'.
3769         * modules/dprintf-tests: New file.
3770         * tests/test-dprintf.c: New file.
3771
3772 2011-09-20  Bruno Haible  <bruno@clisp.org>
3773
3774         Tests for module 'ioctl'.
3775         * modules/ioctl-tests: New file.
3776         * tests/test-ioctl.c: New file.
3777
3778 2011-09-20  Bruno Haible  <bruno@clisp.org>
3779
3780         fcntl tests: EBADF tests.
3781         * tests/test-fcntl.c (main): Add more tests for EBADF.
3782
3783 2011-09-20  Bruno Haible  <bruno@clisp.org>
3784
3785         utimensat tests: EBADF tests.
3786         * tests/test-utimensat.c (main): Add tests for EBADF.
3787
3788         renameat tests: EBADF tests.
3789         * tests/test-renameat.c (main): Add tests for EBADF.
3790
3791         mkfifoat tests: EBADF tests.
3792         * tests/test-mkfifoat.c (main): Add tests for EBADF.
3793
3794         readlinkat tests: EBADF tests.
3795         * tests/test-readlinkat.c (main): Add tests for EBADF.
3796
3797         symlinkat tests: EBADF tests.
3798         * tests/test-symlinkat.c (main): Add tests for EBADF.
3799
3800         linkat tests: EBADF tests.
3801         * tests/test-linkat.c (main): Add tests for EBADF.
3802
3803         Tests for module 'faccessat'.
3804         * modules/faccessat-tests: New file.
3805         * tests/test-faccessat.c: New file.
3806
3807         fdopendir tests: EBADF tests.
3808         * tests/test-fdopendir.c (main): Add more tests for EBADF.
3809
3810         openat tests: EBADF tests.
3811         * tests/test-fchownat.c (main): Add tests for EBADF.
3812         * tests/test-fstatat.c (main): Likewise.
3813         * tests/test-mkdirat.c (main): Likewise.
3814         * tests/test-openat.c (main): Likewise.
3815         * tests/test-unlinkat.c (main): Likewise.
3816         * tests/test-fchmodat.c: New file.
3817         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
3818         (Makefile.am): Also run 'test-fchmodat'.
3819
3820 2011-09-20  Bruno Haible  <bruno@clisp.org>
3821
3822         utimens, futimens, fdutimensat tests: EBADF tests.
3823         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
3824
3825         Tests for function fstat().
3826         * modules/fstat-tests: New file.
3827         * tests/test-fstat.c: New file.
3828         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
3829
3830 2011-09-20  Bruno Haible  <bruno@clisp.org>
3831
3832         test-ttyname_r tests: EBADF tests.
3833         * tests/test-ttyname_r.c (main): Add tests for EBADF.
3834
3835         Tests for module 'isatty'.
3836         * modules/isatty-tests: New file.
3837         * tests/test-isatty.c: New file.
3838
3839         Tests for module 'write'.
3840         * modules/write-tests: New file.
3841         * tests/test-write.c: New file.
3842
3843         Tests for module 'read'.
3844         * modules/read-tests: New file.
3845         * tests/test-read.c: New file.
3846
3847         pwrite tests: EBADF tests.
3848         * tests/test-pwrite.c (main): Add tests for EBADF.
3849
3850         pread tests: EBADF tests.
3851         * tests/test-pread.c (main): Add tests for EBADF.
3852
3853         lseek tests: EBADF tests.
3854         * tests/test-lseek.c (main): Add more tests for EBADF.
3855
3856         Tests for module 'ftruncate'.
3857         * modules/ftruncate-tests: New file.
3858         * tests/test-ftruncate.sh: New file.
3859         * tests/test-ftruncate.c: New file.
3860
3861         fsync tests: EBADF tests.
3862         * tests/test-fsync.c (main): Add more tests for EBADF.
3863
3864         fdatasync tests: EBADF tests.
3865         * tests/test-fdatasync.c (main): Add more tests for EBADF.
3866
3867         Tests for module 'fchown'.
3868         * modules/fchown-tests: New file.
3869         * tests/test-fchown.c: New file.
3870
3871         Tests for module 'fchmod'.
3872         * modules/fchmod-tests: New file.
3873         * tests/test-fchmod.c: New file.
3874
3875         fchdir tests: EBADF tests.
3876         * tests/test-fchdir.c (main): Add more tests for EBADF.
3877
3878         dup2 tests: EBADF tests.
3879         * tests/test-dup2.c (main): Add more tests for EBADF.
3880
3881         Tests for module 'dup'.
3882         * modules/dup-tests: New file.
3883         * tests/test-dup.c: New file.
3884
3885         Tests for module 'close'.
3886         * modules/close-tests: New file.
3887         * tests/test-close.c: New file.
3888
3889 2011-09-20  Bruno Haible  <bruno@clisp.org>
3890
3891         Tests for module 'shutdown'.
3892         * modules/shutdown-tests: New file.
3893         * tests/test-shutdown.c: New file.
3894
3895         Tests for module 'setsockopt'.
3896         * modules/setsockopt-tests: New file.
3897         * tests/test-setsockopt.c: New file.
3898
3899         Tests for module 'sendto'.
3900         * modules/sendto-tests: New file.
3901         * tests/test-sendto.c: New file.
3902
3903         Tests for module 'send'.
3904         * modules/send-tests: New file.
3905         * tests/test-send.c: New file.
3906
3907         Tests for module 'recvfrom'.
3908         * modules/recvfrom-tests: New file.
3909         * tests/test-recvfrom.c: New file.
3910
3911         Tests for module 'recv'.
3912         * modules/recv-tests: New file.
3913         * tests/test-recv.c: New file.
3914
3915         Tests for module 'listen'.
3916         * modules/listen-tests: New file.
3917         * tests/test-listen.c: New file.
3918
3919         Tests for module 'getsockopt'.
3920         * modules/getsockopt-tests: New file.
3921         * tests/test-getsockopt.c: New file.
3922
3923         Tests for module 'getsockname'.
3924         * modules/getsockname-tests: New file.
3925         * tests/test-getsockname.c: New file.
3926
3927         Tests for module 'getpeername'.
3928         * modules/getpeername-tests: New file.
3929         * tests/test-getpeername.c: New file.
3930
3931         Tests for module 'connect'.
3932         * modules/connect-tests: New file.
3933         * tests/test-connect.c: New file.
3934
3935         Tests for module 'bind'.
3936         * modules/bind-tests: New file.
3937         * tests/test-bind.c: New file.
3938
3939         accept4 tests: Fix for native Windows.
3940         * tests/test-accept4.c: Include sockets.h.
3941         (main): Invoke gl_sockets_startup.
3942         * modules/accept4-tests (Depends-on): Add sockets.
3943
3944         accept tests: Fix for native Windows.
3945         * tests/test-accept.c: Include sockets.h.
3946         (main): Invoke gl_sockets_startup.
3947         * modules/accept-tests (Depends-on): Add sockets.
3948
3949 2011-09-19  Bruno Haible  <bruno@clisp.org>
3950
3951         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
3952         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
3953         do...while(0).
3954         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
3955         Suggested by Paul Eggert.
3956
3957 2011-09-19  Bruno Haible  <bruno@clisp.org>
3958
3959         sched: Ensure pid_t is defined.
3960         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
3961         not define pid_t.
3962         * lib/sched.in.h: Include <sys/types.h>.
3963         * doc/posix-headers/sched.texi: Mention the pid_t problem.
3964         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3965
3966 2011-09-19  Bruno Haible  <bruno@clisp.org>
3967
3968         msvc-inval: Ensure the entire expansion is a single statement.
3969         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
3970         of braces.
3971
3972 2011-09-19  Jim Meyering  <meyering@redhat.com>
3973
3974         tests: use printf, not echo in init.sh's warn_ function
3975         * tests/init.sh (warn_): Use printf, not echo.  The latter would
3976         misbehave when given strings containing a backslash or starting
3977         with e.g., -n.  James Youngman suggested setting IFS.
3978
3979 2011-09-19  Eric Blake  <eblake@redhat.com>
3980
3981         futimens: enhance test
3982         * tests/test-futimens.h (test_futimens): Also check for EBADF on
3983         closed non-negative fd.
3984
3985         date: accept 'hence' as opposite of 'ago'
3986         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
3987         * tests/test-parse-datetime.c (main): Enhance test.
3988         Suggested by Jesse Wilson.
3989
3990 2011-09-19  Jim Meyering  <meyering@redhat.com>
3991
3992         getcwd: don't fail in a deep directory on a system without openat
3993         Before this change, getcwd would fail when called from a directory
3994         of depth PATH_MAX / 3 or greater.  That was due to the fact that
3995         the non-openat implementation used "..", "../..", "../../..", etc.
3996         to access ancestor directories.  With too many, that string would
3997         be longer than PATH_MAX.
3998         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
3999         using gnulib's openat replacement.
4000         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
4001         we're using the replacement function.
4002
4003 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
4004
4005         maint.mk: avoid warnings from perl about missing files
4006         * top/maint.mk (def_sym_regex): Ignore files listed in
4007         $(gl_other_headers_) that do not exist, say because a project
4008         does not use a corresponding module.
4009
4010 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
4011
4012         stat: use pathmax.h only if needed
4013         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
4014         This is better for Emacs, which does not have a mingw port and
4015         therefore can avoid the pathmax module.
4016
4017         utimens: remove dependency on dup2
4018         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
4019         to work around the Linux kernel bug.
4020         * modules/utimens (Depends-on): Remove dup2.
4021
4022 2011-09-18  Bruno Haible  <bruno@clisp.org>
4023
4024         inet_ntop, inet_pton: Look for it also in libresolv.
4025         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
4026         libnsl, search for it in libresolv.
4027         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4028         Needed on Solaris 7.
4029
4030 2011-09-18  Bruno Haible  <bruno@clisp.org>
4031
4032         accept, accept4 tests: Avoid link error on Solaris.
4033         * modules/accept-tests (Makefile.am): Link test-accept against
4034         $(LIBSOCKET).
4035         * modules/accept4-tests (Makefile.am): Link test-accept4 against
4036         $(LIBSOCKET).
4037
4038         accept4: Avoid link error on Solaris.
4039         * modules/accept4 (Link): New section.
4040
4041         socket functions: Avoid link errors on Solaris.
4042         * modules/accept (Depends-on): Add socketlib.
4043         (Link): New section.
4044         * modules/bind (Depends-on): Add socketlib.
4045         (Link): New section.
4046         * modules/connect (Depends-on): Add socketlib.
4047         (Link): New section.
4048         * modules/getpeername (Depends-on): Add socketlib.
4049         (Link): New section.
4050         * modules/getsockname (Depends-on): Add socketlib.
4051         (Link): New section.
4052         * modules/getsockopt (Depends-on): Add socketlib.
4053         (Link): New section.
4054         * modules/listen (Depends-on): Add socketlib.
4055         (Link): New section.
4056         * modules/recv (Depends-on): Add socketlib.
4057         (Link): New section.
4058         * modules/recvfrom (Depends-on): Add socketlib.
4059         (Link): New section.
4060         * modules/send (Depends-on): Add socketlib.
4061         (Link): New section.
4062         * modules/sendto (Depends-on): Add socketlib.
4063         (Link): New section.
4064         * modules/setsockopt (Depends-on): Add socketlib.
4065         (Link): New section.
4066         * modules/shutdown (Depends-on): Add socketlib.
4067         (Link): New section.
4068         * modules/socket (Depends-on): Add socketlib.
4069         (Link): New section.
4070
4071 2011-09-18  Bruno Haible  <bruno@clisp.org>
4072
4073         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
4074         * tests/test-ptsname.c (main): Terminate the test if it takes longer
4075         than 5 seconds.
4076         * modules/ptsname-tests (configure.ac): Test for alarm.
4077
4078 2011-09-18  Bruno Haible  <bruno@clisp.org>
4079
4080         posix_spawn_file_actions_add*: Fix module dependencies.
4081         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
4082         posix_spawn_file_actions_init.
4083         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
4084         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
4085
4086 2011-09-18  Bruno Haible  <bruno@clisp.org>
4087
4088         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
4089         * tests/test-rename.h (test_rename): Allow error code EEXIST.
4090         * tests/test-renameat.c (main): Likewise.
4091
4092 2011-09-18  Bruno Haible  <bruno@clisp.org>
4093
4094         Tests for module 'accept4'.
4095         * modules/accept4-tests: New file.
4096         * tests/test-accept4.c: New file.
4097
4098 2011-09-18  Bruno Haible  <bruno@clisp.org>
4099
4100         Tests for module 'accept'.
4101         * modules/accept-tests: New file.
4102         * tests/test-accept.c: New file.
4103
4104 2011-09-18  Bruno Haible  <bruno@clisp.org>
4105
4106         dup2: Support for MSVC.
4107         * lib/dup2.c: Include msvc-inval.h.
4108         (rpl_dup2): Handle invalid parameter notifications during dup2 and
4109         _get_osfhandle calls.
4110         * modules/dup2 (Depends-on): Add msvc-inval.
4111         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
4112
4113         New module 'msvc-inval'.
4114         * lib/msvc-inval.h: New file.
4115         * lib/msvc-inval.c: New file.
4116         * m4/msvc-inval.m4: New file.
4117         * modules/msvc-inval: New file.
4118
4119 2011-09-17  Bruno Haible  <bruno@clisp.org>
4120
4121         Tests for module 'pclose'.
4122         * modules/pclose-tests: New file.
4123
4124         New module 'pclose'.
4125         * lib/stdio.in.h (pclose): New declaration.
4126         * lib/pclose.c: New file.
4127         * m4/pclose.m4: New file.
4128         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
4129         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
4130         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
4131         * modules/pclose: New file.
4132         * modules/popen-tests (Depends-on): Add pclose.
4133         * modules/popen-safer-tests (Depends-on): Likewise.
4134         * doc/posix-functions/pclose.texi: Mention the new module.
4135
4136 2011-09-17  Bruno Haible  <bruno@clisp.org>
4137
4138         popen: Support for MSVC.
4139         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
4140         * lib/popen.c (popen): Provide alternate definition for native Windows.
4141         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
4142         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
4143         * modules/popen (Depends-on, configure.ac): Update condition.
4144         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
4145         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
4146         fixed.
4147
4148 2011-09-17  Bruno Haible  <bruno@clisp.org>
4149
4150         isnanl, isnand, isnanf: Work around MSVC bug.
4151         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
4152
4153 2011-09-17  Bruno Haible  <bruno@clisp.org>
4154
4155         sys_socket tests: Fix recent mistake.
4156         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
4157
4158 2011-09-17  Bruno Haible  <bruno@clisp.org>
4159
4160         putenv: Support for MSVC.
4161         * modules/putenv (Depends-on): Add environ.
4162         * lib/putenv.c (environ): Disable declaration.
4163         * lib/unistd.in.h: Update comment.
4164
4165 2011-09-17  Bruno Haible  <bruno@clisp.org>
4166
4167         math: Avoid macro redefinition warnings on MSVC.
4168         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
4169         Undefine before redefining.
4170
4171 2011-09-17  Bruno Haible  <bruno@clisp.org>
4172
4173         doc: Mention functions which are declared as macros.
4174         * doc/posix-functions/*[fl].texi: Mention that some functions are
4175         defined as macros with arguments only.
4176
4177 2011-09-17  Bruno Haible  <bruno@clisp.org>
4178
4179         Add dependencies to new dirent related modules.
4180         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
4181         * modules/fts (Depends-on): Likewise.
4182         * modules/glob (Depends-on): Likewise.
4183         * modules/savedir (Depends-on): Likewise.
4184         * modules/scandir (Depends-on): Likewise.
4185         * modules/dirent-safer (Depends-on): Add opendir, closedir.
4186         * modules/fdopendir (Depends-on): Add opendir.
4187
4188 2011-09-17  Bruno Haible  <bruno@clisp.org>
4189
4190         inet_pton: Support for MSVC on Windows Vista or newer.
4191         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
4192         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
4193         HAVE_DECL_INET_PTON is defined.
4194         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
4195         On platforms with <winsock2.h>, test whether inet_pton is declared in
4196         <ws2tcpip.h>. If so, arrange to replace it.
4197         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
4198         REPLACE_INET_PTON.
4199         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
4200         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
4201         (Depends-on, configure.ac): Update condition.
4202         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
4203
4204 2011-09-17  Bruno Haible  <bruno@clisp.org>
4205
4206         inet_ntop: Support for MSVC on Windows Vista or newer.
4207         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
4208         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
4209         HAVE_DECL_INET_NTOP is defined.
4210         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
4211         On platforms with <winsock2.h>, test whether inet_ntop is declared in
4212         <ws2tcpip.h>. If so, arrange to replace it.
4213         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
4214         REPLACE_INET_NTOP.
4215         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
4216         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
4217         (Depends-on, configure.ac): Update condition.
4218         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
4219
4220 2011-09-16  Eric Blake  <eblake@redhat.com>
4221
4222         test-fsync: yet another enhancement
4223         * tests/test-fsync.c (main): Also test behavior on read-only text
4224         file.
4225
4226 2011-09-16  Bruno Haible  <bruno@clisp.org>
4227
4228         Enhance fsync, fdatasync tests.
4229         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
4230         * tests/test-fdatasync.c (main): Likewise.
4231
4232 2011-09-16  Bruno Haible  <bruno@clisp.org>
4233
4234         Support for MSVC compiler: Ensure mode_t gets defined.
4235         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
4236         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4237         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
4238         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
4239         * tests/test-fcntl-h.c: Check that mode_t is defined.
4240         * tests/test-sys_stat.c: Likewise.
4241         * tests/test-sys_types.c: Likewise.
4242         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
4243         * doc/posix-headers/sys_stat.texi: Likewise.
4244         * doc/posix-headers/sys_types.texi: Likewise.
4245
4246 2011-09-16  Bruno Haible  <bruno@clisp.org>
4247
4248         sys_stat: Support for MSVC.
4249         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
4250         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
4251         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
4252         MSVC.
4253
4254 2011-09-16  Bruno Haible  <bruno@clisp.org>
4255
4256         Support for MSVC compiler: Ensure off_t gets defined.
4257         * lib/unistd.in.h: Include <sys/types.h>.
4258         * tests/test-fcntl-h.c: Check that off_t is defined.
4259         * tests/test-sys_stat.c: Likewise.
4260         * tests/test-sys_types.c: Likewise.
4261
4262 2011-09-16  Eric Blake  <eblake@redhat.com>
4263
4264         fdatasync: port to Solaris
4265         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
4266         * modules/fdatasync (Link): Document it.
4267         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
4268
4269         fdatasync: port to MacOS X 10.7
4270         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
4271         declared.
4272         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
4273         * modules/unistd (Makefile.am): Substitute it.
4274         * lib/unistd.in.h (fdatasync): Declare on MacOS.
4275         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
4276
4277         fdatasync: minor improvements
4278         * modules/fdatasync (Depends-on): Add condition for fsync.
4279         * lib/fdatasync.c (fdatasync): Add comment.
4280         * tests/test-unistd-c++.cc: Test fdatasync.
4281
4282         unistd: update refs to newer POSIX
4283         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
4284         Suggested by Bruno Haible.
4285
4286         fdatasync: new module
4287         * modules/fsync (Description): Document difference to fdatasync.
4288         * modules/fdatasync: New module.
4289         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
4290         * lib/fdatasync.c (fdatasync): Likewise.
4291         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
4292         defaults.
4293         * modules/unistd (Makefile.am): Set witnesses.
4294         * lib/unistd.in.h (fdatasync): Declare.
4295         * MODULES.html.sh: Document it.
4296         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
4297         * modules/fdatasync-tests: New test.
4298         * tests/test-fdatasync.c: Likewise.
4299
4300 2011-09-16  Eric Blake  <eblake@redhat.com>
4301
4302         test-fsync: enhance tests
4303         * modules/fsync-tests (Depends-on): Add errno, for mingw.
4304         * tests/test-fsync.c (main): Enhance test.
4305
4306 2011-09-15  Bruno Haible  <bruno@clisp.org>
4307
4308         Support for MSVC compiler: Ensure ssize_t gets defined.
4309         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
4310         * doc/posix-headers/stdio.texi: Likewise.
4311         * modules/stdio (Depends-on): Add ssize_t.
4312         * modules/sys_socket (Depends-on): Likewise.
4313         * modules/sys_types (Depends-on): Likewise.
4314         * modules/sys_uio (Depends-on): Likewise.
4315         * modules/unistd (Depends-on): Likewise.
4316         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
4317         * tests/test-sys_types.c: Check that ssize_t is defined.
4318
4319 2011-09-14  Bruno Haible  <bruno@clisp.org>
4320
4321         Avoid using #, the m4 comment starter character, near brackets.
4322         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
4323         delimiter character in sed expressions.
4324         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
4325         Suggested by Eric Blake.
4326
4327         Properly quote AC_CHECK_DECLS' 4th argument.
4328         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
4329         argument.
4330         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
4331         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4332         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4333         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
4334         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
4335         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
4336         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
4337         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
4338         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
4339         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
4340         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
4341         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4342         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
4343         * m4/isinf.m4 (gl_ISINF): Likewise.
4344         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
4345         * m4/readutmp.m4 (gl_READUTMP): Likewise.
4346         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
4347         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4348         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4349         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
4350         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
4351         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
4352         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
4353         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
4354         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4355         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4356         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
4357         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
4358         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
4359         Reported by Eric Blake.
4360
4361         Properly quote AC_CHECK_DECL's 4th argument.
4362         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
4363         argument.
4364         * m4/argp.m4 (gl_ARGP): Likewise.
4365         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
4366         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
4367         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
4368         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
4369         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
4370         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
4371         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
4372         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
4373         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
4374         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
4375         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
4376         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
4377         Reported by Eric Blake.
4378
4379 2011-09-14  Eric Blake  <eblake@redhat.com>
4380
4381         opendir: avoid compile warning
4382         * lib/opendir.c (includes): Always include errno.h.
4383         Reported by Tatsuro MATSUOKA.
4384
4385 2011-09-14  Jim Meyering  <meyering@redhat.com>
4386
4387         maint.mk: sc_tight_scope: propagate failure from sub-make
4388         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
4389         Reported by Martin von Gagern.
4390
4391 2011-09-13  Bruno Haible  <bruno@clisp.org>
4392
4393         tempname: Support for MSVC.
4394         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
4395         MSVC.
4396         * modules/tempname (Depends-on): Add fcntl-h.
4397
4398 2011-09-13  Bruno Haible  <bruno@clisp.org>
4399
4400         sys_time: Support for MSVC.
4401         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
4402         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
4403         include <winsock2.h>.
4404         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
4405         function declarations that collide with POSIX.
4406         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
4407         (Makefile.am): Substitute HAVE_WINSOCK2_H.
4408
4409 2011-09-13  Bruno Haible  <bruno@clisp.org>
4410
4411         stat: Support for MSVC.
4412         * lib/stat.c: Include pathmax.h.
4413         * modules/stat (Depends-on): Add pathmax.
4414
4415         pathmax: Support for native Windows.
4416         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
4417
4418 2011-09-12  Bruno Haible  <bruno@clisp.org>
4419
4420         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
4421         * lib/dirent.in.h (struct dirent): New type.
4422         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
4423         DT_WHT): New macros.
4424         (DIR): New type.
4425         (opendir, closedir): Declare only if the module 'opendir' is enabled.
4426         (readdir, rewinddir): New declarations.
4427         * lib/dirent-private.h: New file.
4428         * lib/opendir.c: New file.
4429         * lib/readdir.c: New file.
4430         * lib/rewinddir.c: New file.
4431         * lib/closedir.c: New file.
4432         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
4433         * m4/opendir.m4: New file.
4434         * m4/readdir.m4: New file.
4435         * m4/rewinddir.m4: New file.
4436         * m4/closedir.m4: New file.
4437         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
4438         REPLACE_CLOSEDIR here.
4439         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
4440         readdir, rewinddir are declared.
4441         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
4442         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
4443         HAVE_REWINDDIR, HAVE_CLOSEDIR.
4444         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
4445         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
4446         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
4447         * modules/opendir: New file.
4448         * modules/readdir: New file.
4449         * modules/rewinddir: New file.
4450         * modules/closedir: New file.
4451         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
4452         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
4453         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
4454         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
4455         * NEWS: Mention the 'fchdir' change.
4456
4457 2011-09-11  Bruno Haible  <bruno@clisp.org>
4458
4459         asm-underscore.m4: Support for MSVC.
4460         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
4461         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
4462
4463 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
4464
4465         Doc about crypt functions.
4466         * doc/posix-functions/crypt.texi: Expand range of glibc versions
4467         needing for _GNU_SOURCE to get crypt.
4468         * doc/posix-functions/encrypt.texi: Likewise.
4469         * doc/posix-functions/setkey.texi: Likewise.
4470
4471 2011-09-11  Bruno Haible  <bruno@clisp.org>
4472
4473         doc: Update regarding MSVC 9.
4474         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
4475         tested".
4476         * doc/posix-functions/*.texi: Update with info about MSVC 9.
4477         * doc/posix-headers/*.texi: Likewise.
4478         * doc/pastposix-functions/*.texi: Likewise.
4479         * doc/glibc-functions/*.texi: Likewise.
4480         * doc/glibc-headers/*.texi: Likewise.
4481
4482 2011-09-11  Bruno Haible  <bruno@clisp.org>
4483
4484         unistd et al.: Don't assume <unistd.h> exists.
4485         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
4486         does not exist.
4487         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
4488         exist. But include <stdlib.h>.
4489         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
4490         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
4491         symlink() does not exist.
4492         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
4493         include <io.h> instead.
4494         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
4495         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
4496         include <direct.h> instead.
4497         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4498         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4499         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
4500         <io.h> instead.
4501         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
4502         correctly if the system does not have hard links.
4503         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
4504         <direct.h> instead.
4505         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
4506         it when looking for function declarations.
4507         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
4508         <direct.h> and <io.h> instead.
4509         * doc/posix-headers/unistd.texi: More details about MSVC problem.
4510
4511 2011-09-11  Bruno Haible  <bruno@clisp.org>
4512
4513         strcase: Support for MSVC.
4514         * modules/strcase (Status, Notice): Remove obsoletion mark.
4515         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
4516         * doc/posix-functions/strncasecmp.texi: Likewise.
4517
4518         strings: Don't assume <strings.h> exists.
4519         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
4520         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
4521         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
4522         * doc/posix-headers/strings.texi: Mention the MSVC problem.
4523
4524 2011-09-11  Bruno Haible  <bruno@clisp.org>
4525
4526         dirent: Don't assume <dirent.h> exists.
4527         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
4528         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
4529         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
4530         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
4531
4532 2011-09-11  Bruno Haible  <bruno@clisp.org>
4533
4534         Fix wint_t on MSVC.
4535         * lib/wchar.in.h (wint_t): On MSVC, override it.
4536         * lib/wctype.in.h (wint_t): Likewise.
4537         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
4538         MSVC.
4539         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
4540         * doc/posix-headers/wctype.texi: Likewise.
4541
4542 2011-09-11  Bruno Haible  <bruno@clisp.org>
4543
4544         sys_types: Fix typo.
4545         * lib/sys_types.in.h: Fix typo in comment.
4546         Reported by Paul Eggert.
4547
4548         Support for MSVC compiler: Ensure size_t gets defined.
4549         * modules/strings (Depends-on): Add 'sys_types'.
4550         * modules/sys_uio (Depends-on): Likewise.
4551         * lib/sys_uio.in.h: Update comment.
4552
4553         C++ tests for module 'sys_types'.
4554         * modules/sys_types-c++-tests: New file.
4555         * tests/test-sys_types-c++.cc: New file.
4556
4557         Tests for module 'sys_types'.
4558         * modules/sys_types-tests: New file.
4559         * tests/test-sys_types.c: New file.
4560
4561         New module 'sys_types'.
4562         * lib/sys_types.in.h: New file.
4563         * m4/sys_types_h.m4: New file.
4564         * modules/sys_types: New file.
4565         * doc/posix-headers/sys_types.texi: Mention the new module and the
4566         size_t problem on MSVC 9.
4567
4568 2011-09-11  Bruno Haible  <bruno@clisp.org>
4569
4570         Support for MSVC compiler: Avoid division by a literal 0.
4571         * lib/math.in.h (NAN): Define through a function call also on MSVC.
4572         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
4573         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
4574         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
4575         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
4576         * tests/infinity.h: New file.
4577         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
4578         on MSVC.
4579         * tests/test-ceilf1.c: Include infinity.h.
4580         (main): Use Infinityf.
4581         * tests/test-ceil1.c: Include infinity.h.
4582         (main): Use Infinityd.
4583         * tests/test-ceill.c: Include infinity.h.
4584         (main): Use Infinityl.
4585         * tests/test-dprintf-posix.c: Include infinity.h.
4586         (test_function): Use Infinityd.
4587         * tests/test-floorf1.c: Include infinity.h.
4588         (main): Use Infinityf.
4589         * tests/test-floor1.c: Include infinity.h.
4590         (main): Use Infinityd.
4591         * tests/test-floorl.c: Include infinity.h.
4592         (main): Use Infinityl.
4593         * tests/test-fprintf-posix.c: Include infinity.h.
4594         (test_function): Use Infinityd.
4595         * tests/test-frexp.c: Include infinity.h.
4596         (main): Use Infinityd.
4597         * tests/test-frexpl.c: Include infinity.h.
4598         (main): Use Infinityl.
4599         * tests/test-isfinite.c: Include infinity.h.
4600         (test_isfinitef): Use Infinityf.
4601         (test_isfinited): Use Infinityd.
4602         (test_isfinitel): Use Infinityl.
4603         * tests/test-isinf.c: Include infinity.h.
4604         (test_isinff): Use Infinityf.
4605         (test_isinfd): Use Infinityd.
4606         (test_isinfl): Use Infinityl.
4607         * tests/test-isnan.c: Include infinity.h.
4608         (test_float): Use Infinityf.
4609         (test_double): Use Infinityd.
4610         (test_long_double): Use Infinityl.
4611         * tests/test-isnanf.h: Include infinity.h.
4612         (main): Use Infinityf.
4613         * tests/test-isnand.h: Include infinity.h.
4614         (main): Use Infinityd.
4615         * tests/test-isnanl.h: Include infinity.h.
4616         (main): Use Infinityl.
4617         * tests/test-ldexpl.c: Include infinity.h.
4618         (main): Use Infinityl.
4619         * tests/test-printf-posix.h: Include infinity.h.
4620         (test_function): Use Infinityd.
4621         * tests/test-roundf1.c: Include infinity.h.
4622         (main): Use Infinityf.
4623         * tests/test-round1.c: Include infinity.h.
4624         (main): Use Infinityd.
4625         * tests/test-roundl.c: Include infinity.h.
4626         (main): Use Infinityl.
4627         * tests/test-signbit.c: Include infinity.h.
4628         (test_signbitf): Use Infinityf.
4629         (test_signbitd): Use Infinityd.
4630         (test_signbitl): Use Infinityl.
4631         * tests/test-snprintf-posix.h: Include infinity.h.
4632         (test_function): Use Infinityd, Infinityl.
4633         * tests/test-sprintf-posix.h: Include infinity.h.
4634         (test_function): Use Infinityd, Infinityl.
4635         * tests/test-truncf1.c: Include infinity.h.
4636         (main): Use Infinityf.
4637         * tests/test-trunc1.c: Include infinity.h.
4638         (main): Use Infinityd.
4639         * tests/test-truncl.c: Include infinity.h.
4640         (main): Use Infinityl.
4641         * tests/test-vasnprintf-posix.c: Include infinity.h.
4642         (test_function): Use Infinityd, Infinityl.
4643         * tests/test-vasprintf-posix.c: Include infinity.h.
4644         (test_function): Use Infinityd, Infinityl.
4645         * modules/ceilf-tests (Files): Add tests/infinity.h.
4646         * modules/ceil-tests (Files): Likewise.
4647         * modules/ceill-tests (Files): Likewise.
4648         * modules/dprintf-posix-tests (Files): Likewise.
4649         * modules/floorf-tests (Files): Likewise.
4650         * modules/floor-tests (Files): Likewise.
4651         * modules/floorl-tests (Files): Likewise.
4652         * modules/fprintf-posix-tests (Files): Likewise.
4653         * modules/frexp-tests (Files): Likewise.
4654         * modules/frexp-nolibm-tests (Files): Likewise.
4655         * modules/frexpl-tests (Files): Likewise.
4656         * modules/frexpl-nolibm-tests (Files): Likewise.
4657         * modules/isfinite-tests (Files): Likewise.
4658         * modules/isinf-tests (Files): Likewise.
4659         * modules/isnan-tests (Files): Likewise.
4660         * modules/isnanf-tests (Files): Likewise.
4661         * modules/isnanf-nolibm-tests (Files): Likewise.
4662         * modules/isnand-tests (Files): Likewise.
4663         * modules/isnand-nolibm-tests (Files): Likewise.
4664         * modules/isnanl-tests (Files): Likewise.
4665         * modules/isnanl-nolibm-tests (Files): Likewise.
4666         * modules/ldexpl-tests (Files): Likewise.
4667         * modules/printf-posix-tests (Files): Likewise.
4668         * modules/roundf-tests (Files): Likewise.
4669         * modules/round-tests (Files): Likewise.
4670         * modules/roundl-tests (Files): Likewise.
4671         * modules/signbit-tests (Files): Likewise.
4672         * modules/snprintf-posix-tests (Files): Likewise.
4673         * modules/sprintf-posix-tests (Files): Likewise.
4674         * modules/truncf-tests (Files): Likewise.
4675         * modules/trunc-tests (Files): Likewise.
4676         * modules/truncl-tests (Files): Likewise.
4677         * modules/vasnprintf-posix-tests (Files): Likewise.
4678         * modules/vasprintf-posix-tests (Files): Likewise.
4679         * modules/vdprintf-posix-tests (Files): Likewise.
4680         * modules/vfprintf-posix-tests (Files): Likewise.
4681         * modules/vprintf-posix-tests (Files): Likewise.
4682         * modules/vsnprintf-posix-tests (Files): Likewise.
4683         * modules/vsprintf-posix-tests (Files): Likewise.
4684         * modules/xprintf-posix-tests (Files): Likewise.
4685
4686 2011-09-11  Bruno Haible  <bruno@clisp.org>
4687
4688         Ensure pid_t gets defined.
4689         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
4690         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
4691         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
4692         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
4693         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
4694         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
4695         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
4696         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4697         * tests/test-fcntl-h.c: Check that pid_t is defined.
4698         * tests/test-sched.c: Likewise.
4699         * tests/test-termios.c: Likewise.
4700         * tests/test-time.c: Likewise.
4701         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
4702         * doc/posix-headers/signal.texi: Likewise.
4703         * doc/posix-headers/sys_types.texi: Likewise.
4704         * doc/posix-headers/time.texi: Likewise.
4705
4706 2011-09-11  Bruno Haible  <bruno@clisp.org>
4707
4708         acl: Fix compilation on Solaris 10 (older version).
4709         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
4710         of ACE_EVERYONE.
4711         * lib/set-mode-acl.c (qset_acl): Likewise.
4712         Reported by Christian Jullien <eligis@orange.fr>.
4713
4714 2011-09-10  Bruno Haible  <bruno@clisp.org>
4715
4716         iconv, unsetenv: Add support for MSVC compiler.
4717         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
4718         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
4719
4720 2011-09-10  Bruno Haible  <bruno@clisp.org>
4721
4722         *printf: Add support for MSVC compiler.
4723         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
4724         handles the exception caused by the %n directive. When cross-compiling,
4725         guess no on native Windows.
4726         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
4727         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
4728         emulate it through vsnprintf.
4729         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
4730         * doc/posix-functions/dprintf.texi: Update documentation regarding
4731         MSVC 9.
4732         * doc/posix-functions/fprintf.texi: Likewise.
4733         * doc/posix-functions/printf.texi: Likewise.
4734         * doc/posix-functions/snprintf.texi: Likewise.
4735         * doc/posix-functions/sprintf.texi: Likewise.
4736         * doc/posix-functions/swprintf.texi: Likewise.
4737         * doc/posix-functions/vdprintf.texi: Likewise.
4738         * doc/posix-functions/vfprintf.texi: Likewise.
4739         * doc/posix-functions/vprintf.texi: Likewise.
4740         * doc/posix-functions/vsnprintf.texi: Likewise.
4741         * doc/posix-functions/vsprintf.texi: Likewise.
4742         * doc/glibc-functions/asprintf.texi: Likewise.
4743         * doc/glibc-functions/obstack_printf.texi: Likewise.
4744         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
4745         * doc/glibc-functions/vasprintf.texi: Likewise.
4746
4747 2011-09-10  Bruno Haible  <bruno@clisp.org>
4748
4749         nocrash: Add support for native Windows.
4750         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
4751
4752 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
4753             Bruno Haible  <bruno@clisp.org>
4754
4755         absolute-header, include-next: Add support for MSVC compiler.
4756         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
4757         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
4758         directory separator in #line directives.
4759         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
4760         recognize also backslash as directory separator in #line directives.
4761
4762 2011-09-08  Jim Meyering  <meyering@redhat.com>
4763
4764         maint.mk: mark the post-release commit log with "maint: " prefix
4765         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
4766         one-line commit-log summary.
4767
4768 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
4769             Bruno Haible  <bruno@clisp.org>
4770
4771         Doc about crypt functions.
4772         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
4773         systems.
4774         * doc/posix-functions/encrypt.texi: Likewise.
4775         * doc/posix-functions/setkey.texi: Likewise.
4776
4777 2011-09-08  Simon Josefsson  <simon@josefsson.org>
4778
4779         * lib/gc.h: Fix copyright header.
4780
4781 2011-09-07  Bruno Haible  <bruno@clisp.org>
4782
4783         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
4784         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
4785         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
4786
4787 2011-09-07  Bruno Haible  <bruno@clisp.org>
4788
4789         openat: Work around compilation error with OSF/1 5.1 DTK cc.
4790         * lib/fopen.c: Use different syntax for include of <stdio.h>.
4791         * lib/freopen.c: Likewise.
4792         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
4793         * lib/lstat.c: Likewise.
4794         * lib/stat.c: Likewise.
4795         * lib/open.c: Use different syntax for include of <fcntl.h>.
4796         * lib/openat.c: Include fcntl.h again, explicitly.
4797
4798 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
4799
4800         parse-datetime: document the newly accepted format
4801         * doc/parse-datetime.texi (Combined date and time of day items):
4802         New section.
4803
4804 2011-09-06  Bruno Haible  <bruno@clisp.org>
4805
4806         acl: Fix a test failure on newer Solaris 10 with ZFS.
4807         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
4808         ENOSYS as no ACL.
4809         Reported by Jim Meyering.
4810
4811 2011-09-06  Bruno Haible  <bruno@clisp.org>
4812
4813         acl: Update for AIX >= 5.3 with NFS.
4814         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
4815         ENOSYS as no ACL.
4816
4817         acl: Fix a test failure on AIX >= 5.3 with NFS.
4818         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
4819         as no ACL.
4820
4821 2011-09-06  Bruno Haible  <bruno@clisp.org>
4822
4823         acl: Fix a test failure on IRIX 6.5 with NFS.
4824         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
4825         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
4826         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
4827         * lib/copy-acl.c (qcopy_acl): Likewise.
4828
4829 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
4830
4831         openat: port to AIX 7.1 with large files
4832         AIX 7.1 does a "#define openat open64at" if large files are in use,
4833         so we can't simply #undef openat.  Use the orig_openat trick (similar
4834         to orig_open in lib/open.c) to work around the problem.  Problem
4835         reported by Kevin Brott for GNU tar, in the thread containing
4836         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
4837         * lib/openat.c (__need_system_fcntl_h): Define first.
4838         Include <fcntl.h> and <sys/types.h> before undefining.
4839         (orig_openat) [HAVE_OPENAT]: New inline function.
4840         (openat) [HAVE_OPENAT]: Do not undef.
4841         (rpl_openat): Use orig_openat, not openat.
4842
4843 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
4844             Bruno Haible  <bruno@clisp.org>
4845
4846         acl: Avoid errors on NonStop Kernel.
4847         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
4848         ENOTSUP errors.
4849
4850 2011-09-05  Bruno Haible  <bruno@clisp.org>
4851
4852         acl: Clean up Solaris code.
4853         * lib/acl-internal.h: Remove no-op #if.
4854         * lib/file-has-acl.c: Likewise.
4855         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
4856         * lib/copy-acl.c (qcopy_acl): Likewise.
4857
4858 2011-09-05  Bruno Haible  <bruno@clisp.org>
4859
4860         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
4861         binaries built on the original Solaris 10.
4862         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
4863         trivial.
4864
4865 2011-09-05  Bruno Haible  <bruno@clisp.org>
4866
4867         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4868         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
4869         10.
4870         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
4871         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
4872         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
4873         instead of acl_get, facl_get, acl_set, facl_set.
4874
4875 2011-09-05  Bruno Haible  <bruno@clisp.org>
4876
4877         copy-file: Try unit tests on more file systems.
4878         * tests/test-copy-file-1.sh: New file.
4879         * tests/test-copy-file-2.sh: New file.
4880         * modules/copy-file-tests (Files): Add them.
4881         (Makefile.am): Add them to TESTS.
4882
4883         acl: Try unit tests on more file systems.
4884         * tests/test-file-has-acl-1.sh: New file.
4885         * tests/test-file-has-acl-2.sh: New file.
4886         * tests/test-set-mode-acl-1.sh: New file.
4887         * tests/test-set-mode-acl-2.sh: New file.
4888         * tests/test-copy-acl-1.sh: New file.
4889         * tests/test-copy-acl-2.sh: New file.
4890         * modules/acl-tests (Files): Add them.
4891         (Makefile.am): Add them to TESTS.
4892
4893 2011-09-04  Bruno Haible  <bruno@clisp.org>
4894
4895         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
4896         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
4897         10.
4898         (OLD_ALLOW, OLD_DENY): New macros.
4899         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
4900         ACE_ACCESS_ALLOWED_ACE_TYPE.
4901         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
4902         ACE_ACCESS_DENIED_ACE_TYPE.
4903         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
4904         (NEW_ACE_EXECUTE): Fix value.
4905         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
4906         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
4907         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
4908         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
4909         NEW_ACE_SYNCHRONIZE): New macros.
4910         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
4911         instead of acl_fromtext, acl_set, facl_set.
4912         Fixes a coreutils/tests/cp/perm failure.
4913
4914 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
4915
4916         openat: test for fstatat (..., 0) bug
4917         Further testing with tar suggests that fstatat (..., 0)
4918         does not work in general, on AIX 7.1; see
4919         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
4920         So, give up entirely on AIX 7.1's fstatat, and fall back on our
4921         replacement fstatat (which is what older AIX releases were using
4922         anyway).
4923         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
4924         use is now changed to orig_fstatat.  This was probably the right
4925         thing to do anyway.
4926         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
4927         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
4928         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
4929         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
4930         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
4931         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
4932         if the bug is found.
4933
4934         openat: test for fstatat (AT_FDCWD, ..., 0) bug
4935         This tests for another fstatat bug on AIX 7.1:
4936         fstatat (AT_FDCWD, ..., 0) does not work.  See
4937         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
4938         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
4939         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
4940         (rpl_fstatat): Adjust so that it works around either (or both)
4941         bugs if present.
4942         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
4943
4944 2011-09-03  Karl Berry  <karl@gnu.org>
4945
4946         * doc/regex.texi (Character Class Operators): Avoid literal ":"
4947         in index entries.
4948
4949 2011-09-02  Bruno Haible  <bruno@clisp.org>
4950
4951         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
4952         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
4953         values of AR, ARFLAGS, RANLIB.
4954         Reported by John W. Eaton <jwe@gnu.org> for Octave.
4955
4956 2011-09-02  Bruno Haible  <bruno@clisp.org>
4957
4958         Find 'ar' program that fits with --host argument.
4959         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
4960
4961 2011-09-02  Bruno Haible  <bruno@clisp.org>
4962
4963         tests: init.sh: Support any non-GNU diff.
4964         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
4965         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
4966         Solaris 8.
4967
4968 2011-09-02  Bruno Haible  <bruno@clisp.org>
4969
4970         tests: init.sh: work also with any non-GNU diff that supports -u
4971         * tests/init.sh: Relax check for diff -u support.
4972         Rather than checking for GNU diff via --version, simply check
4973         for support for -u itself.  Useful at least on OpenBSD 4.9,
4974         AIX 7.1, IRIX 6.5, and Solaris 10.
4975
4976 2011-09-01  Bruno Haible  <bruno@clisp.org>
4977
4978         strtoimax, strtoumax: Document problem on HP-UX 11.
4979         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
4980         * doc/posix-functions/strtoumax.texi: Likewise.
4981
4982 2011-09-01  Bruno Haible  <bruno@clisp.org>
4983
4984         strtoumax: Avoid link error on OSF/1 with DTK cc.
4985         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
4986         defined as a function.
4987         * modules/strtoumax (Depends-on, configure.ac): Test only whether
4988         strtoumax is defined, not whether it is declared.
4989
4990 2011-09-01  Bruno Haible  <bruno@clisp.org>
4991
4992         strtoimax: Avoid link error on OSF/1 with DTK cc.
4993         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
4994         defined as a function.
4995         * modules/strtoimax (Depends-on, configure.ac): Test only whether
4996         strtoimax is defined, not whether it is declared.
4997
4998 2011-09-01  Bruno Haible  <bruno@clisp.org>
4999
5000         imaxdiv: Avoid link error on OSF/1 with DTK cc.
5001         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
5002         as a function.
5003         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
5004         whether it is declared.
5005
5006 2011-09-01  Bruno Haible  <bruno@clisp.org>
5007
5008         imaxabs: Avoid link error on OSF/1 with DTK cc.
5009         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
5010         as a function.
5011         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
5012         whether it is declared.
5013
5014 2011-09-01  Bruno Haible  <bruno@clisp.org>
5015
5016         Tests for module 'strtoumax'.
5017         * modules/strtoumax-tests: New file.
5018         * tests/test-strtoumax.c: New file.
5019
5020         Tests for module 'strtoimax'.
5021         * modules/strtoimax-tests: New file.
5022         * tests/test-strtoimax.c: New file.
5023
5024         Tests for module 'imaxdiv'.
5025         * modules/imaxdiv-tests: New file.
5026         * tests/test-imaxdiv.c: New file.
5027
5028         Tests for module 'imaxabs'.
5029         * modules/imaxabs-tests: New file.
5030         * tests/test-imaxabs.c: New file.
5031
5032 2011-09-01  Bruno Haible  <bruno@clisp.org>
5033
5034         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
5035         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
5036         pthread_create.
5037
5038 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5039
5040         openat: work around AIX 7.1 fstatat issue
5041         This should fix the problem that was not properly fixed
5042         in the previous change, dated 2011-08-30.
5043         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
5044         __need_system_stat_h defined.
5045         (orig_fstatat) [HAVE_FSTATAT]: New function.
5046         (rpl_fstatat): Go back to the old way of doing things,
5047         except call orig_fstatat instead of fstatat.
5048         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
5049         Remove unnecessary check whether fstatat fills in st_size etc.
5050
5051 2011-09-01  Bruno Haible  <bruno@clisp.org>
5052
5053         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
5054         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
5055         just include the system's header.
5056
5057 2011-08-31  Jim Meyering  <meyering@redhat.com>
5058
5059         tests: avoid spurious assertion failure in test-float.c on ppc64
5060         * tests/test-float.c (test_long_double): Comment out an assertion,
5061         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
5062         with gcc-4.4.4.
5063
5064         maint: indent with spaces, not TABs
5065         I need to get in the habit of running gnulib's "make check".
5066         Both of these would have been caught.
5067         * m4/largefile.m4: Indent with spaces, not TABs.
5068         * lib/parse-datetime.y (iso_8601_time): Likewise.
5069         Spotted by Pádraig Brady.
5070
5071         test-parse-datetime.c: accommodate a relatively strict gcc warning
5072         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
5073         to avoid a warning from gcc's -Werror=missing-declarations.
5074         Insert a few spaces-before-funcall-parenthesis.
5075
5076 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
5077
5078         parse-datetime: accept ISO 8601 date and time rep with "T" separator
5079         The parser now accepts ISO 8601 date-time strings with "T" as the
5080         separator.  It has long parsed dates like "2004-02-29 16:21:42"
5081         with a space between the date and time strings.  Now it also parses
5082         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
5083         variants like "2004-02-29T16:21:42.333-07:00"
5084         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
5085         of day representation using the 'T' separator character.
5086         * doc/parse-datetime.texi (General date syntax): replace use of
5087         deprecated --iso-8601 option with --rfc-3339 in example of date
5088         command output formats that can be parsed.
5089         * tests/test-parse-datetime.c (tm_diff): New function, taken from
5090         lib/parse-datetime.y.
5091         (gmt_offset): New function.
5092         (main): Add additional test cases to validate ISO8601 extended
5093         date and time of day parsing.
5094
5095 2011-08-31  Bruno Haible  <bruno@clisp.org>
5096
5097         freopen: Documentation.
5098         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
5099         name.
5100         Reported by Claudio Bley <claudio.bley@gmail.com>.
5101
5102 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
5103
5104         freopen: Don't crash if the filename argument is NULL.
5105         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
5106         NULL.
5107
5108 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
5109
5110         openat: work around AIX 7.1 fstatat bug
5111         Problem reported by Kevin Brott for GNU tar, in the thread containing
5112         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
5113         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
5114         FSTATAT_ST_SIZE_ETC_BROKEN.
5115         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
5116         rpl_fstatat.
5117         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
5118         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
5119         AC_CHECK_FUNCS_ONCE for fstatat.
5120         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
5121         fchmodat, mkdirat, openat and unlinkat.
5122
5123 2011-08-30  Bruno Haible  <bruno@clisp.org>
5124
5125         Avoid endless recursions if config.h includes some header files.
5126         * lib/fopen.c (__need_FILE): Define already before including config.h.
5127         * lib/freopen.c (__need_FILE): Likewise.
5128         * lib/open.c (__need_system_fcntl_h): Likewise.
5129         * lib/stat.c (__need_system_sys_stat_h): Likewise.
5130         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
5131         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5132
5133 2011-08-25  Karl Berry  <karl@gnu.org>
5134
5135         * config/srclist.txt (ylwrap): new try.
5136         * build-aux/ylwrap: new file.
5137
5138 2011-08-23  Bruno Haible  <bruno@clisp.org>
5139
5140         tmpdir: Use a good default directory on native Windows.
5141         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
5142         (P_tmpdir): Default to _P_tmpdir on native Windows.
5143         (path_search): On native Windows, try the value returned by GetTempPath
5144         before trying P_tmpdir.
5145         * modules/tmpdir (Depends-on): Add pathmax.
5146         Suggested by John Darrington <john@darrington.wattle.id.au>.
5147
5148 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
5149
5150         doc: fix typo in README-release
5151         * top/README-release: Capitalize first word of a sentence.
5152
5153 2011-08-19  Jim Meyering  <meyering@redhat.com>
5154
5155         fts: do not exhaust memory when processing million-entry directories
5156         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
5157         directory would require about 256*N bytes of memory.  Thus, it was
5158         easy to construct a directory too large to be processed by any of
5159         those tools.  With this change, fts' maximum memory utilization is
5160         now limited to around 30MB.
5161         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
5162         (fts_read): When we've processed the final entry (i.e., when
5163         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
5164         using the parent entry to read any remaining entries.  Dispatch
5165         depending on what fts_build returns:
5166         - NULL+stop, aka failure: stop
5167         - NULL otherwise: move up in the dir hierarchy
5168         - non-NULL: handle this new entry
5169         (fts_build): Declare and use new local, continue_readdir.
5170         Prepare to be called from fts_read, when the entries
5171         from a partially-read directory have just been exhausted.
5172         In that case, we'll skip the opendir and instead use the parent's
5173         fts_dirp and derive dir_fd from that.
5174         Finally, in the readdir loop, if we read max_entries entries,
5175         exit the loop ensuring *not* to call closedir.  This is required
5176         so that fts_dirp can be reused on a subsequent call.
5177         Prompted by Ben England's report of memory exhaustion in find
5178         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
5179
5180         maint: fts: move decl of `dp' down into while loop; split a long line
5181         * lib/fts.c (fts_build): No semantic change.
5182
5183         fts: add/use new struct member, fts_dirp
5184         We are about to use this to manage any directory with
5185         too many entries to read all of them into memory at once.
5186         To do that, we'll need to save the DIR* pointer in each
5187         affected FTSENT struct.
5188         * lib/fts_.h: Include <dirent.h>.
5189         (struct FTSENT) [fts_dirp]: New member.
5190         * lib/fts.c (closedir_and_clear): Define.
5191         Use it in place of closedir so that we are sure to
5192         clear the new fts_dirp member when done with it.
5193         (fts_alloc): Initialize the new member.
5194         (fts_lfree): Free, if needed.
5195
5196         maint: fts: give __opendir2 a new parameter and rename
5197         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
5198         than surreptitiously using sole caller's "dir_fd".
5199         (fts_opendir): Rename from __opendir2.
5200
5201         maint: fts.c: remove __opendir2's now-unused parameter, oflag
5202         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
5203
5204         maint: fts.c: correct off-by-one indentation
5205         * lib/fts.c (fts_build): Correct indentation, change style
5206         of a couple of block comments, and bracing style.
5207
5208         maint: fts.c: move __opendir2 #define "up" out of function body
5209         * lib/fts.c (__opendir2): Move "up".  No semantic change.
5210
5211         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
5212         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
5213         out for a long time and besides was useful only on BSD systems.
5214
5215 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
5216
5217         regex: port to Stratus OpenVOS
5218         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
5219         define to empty, rather than attempting nonportable optimizations.
5220         Problem reported by Paul Green in:
5221         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
5222         and fix suggested by Eric Blake in:
5223         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
5224
5225 2011-08-17  Eric Blake  <eblake@redhat.com>
5226
5227         getcwd: fix test failures on mingw
5228         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
5229         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
5230         test if long directory cannot be created, and allow mingw errno.
5231
5232         getcwd-lgpl: fix m4 to match relaxed test for BSD
5233         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
5234         (gl_FUNC_GETCWD_SIGNATURE): New macro.
5235         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
5236         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
5237         signature problem.
5238
5239         getcwd: fix compilation on mingw64
5240         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
5241         getcwd.
5242         Reported by Marc-André Lureau.
5243
5244         pipe2: silence compiler warning
5245         * lib/pipe2.c (pipe2): Hide label if it is not used.
5246
5247 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
5248
5249         relocatable-prog: fix link error
5250         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
5251         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
5252         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
5253         into modules/relocatable-lib without noticing that
5254         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
5255         also needs to build relocatable.c.
5256
5257 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
5258
5259         getaddrinfo: fix sh typo in gai_strerrorA decl checking
5260         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
5261         shell code: it contained a 'break' that was not in a loop.
5262         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
5263         via a shell-language loop; this may have been true in old Autoconf
5264         versions, but it's not true in Autoconf 2.68.  I found this bug
5265         when testing coreutils git on Solaris 8, whose shell complains
5266         about the syntax error.
5267
5268 2011-08-12  Simon Josefsson  <simon@josefsson.org>
5269
5270         * lib/base64.c: Fix comment to reference RFC 4648.
5271         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
5272         <gvtulder@gmail.com>.
5273
5274 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
5275
5276         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
5277
5278         po/Makefile.in.in: fix make -q problem
5279         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
5280         rule, since there's no file named 'check-macro-version' and its
5281         use as a file breaks make -q.
5282         (all): Don't depend on check-macro-version.
5283         (CHECK_MACRO_VERSION): New macro.
5284         (stamp-po): Use it.
5285
5286         configmake: fix make -q problem
5287         * modules/configmake (configmake.h): Update configmake.h's time stamp
5288         even if the file does not change.  Otherwise, 'make -q' fails.
5289         Problem reported by Simon Josefsson in
5290         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
5291
5292 2011-08-11  Jim Meyering  <meyering@redhat.com>
5293
5294         git-version-gen: correct the advice in a comment
5295         * build-aux/git-version-gen: Correct comment.
5296         Don't recommend to list .tarball-version in .gitignore.
5297
5298 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
5299
5300         base64: fix off-by-one buffer size bug
5301         Problem and (trivial) fix reported by Gijs van Tulder in
5302         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
5303         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
5304         * tests/test-base64.c (main): Catch the bug.
5305
5306 2011-08-10  Eric Blake  <eblake@redhat.com>
5307
5308         closein: correct comments
5309         * lib/closein.c (close_stdin): Improve comments.
5310
5311 2011-08-09  Bruno Haible  <bruno@clisp.org>
5312
5313         More tests for 'fseeko'.
5314         * tests/test-fseeko3.c: New file, from Eric Blake.
5315         * tests/test-fseeko3.sh: New file.
5316         * modules/fseeko-tests (Files): Add them.
5317         (TESTS): Add test-fseeko3.sh.
5318         (check_PROGRAMS): Add test-fseeko3.
5319
5320 2011-08-09  Eric Blake  <eblake@redhat.com>
5321
5322         fseeko: remove unneeded hack
5323         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
5324
5325         fseeko: fix bug on glibc
5326         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
5327         Reported by John W. Eaton.
5328
5329 2011-08-08  Bruno Haible  <bruno@clisp.org>
5330
5331         unictype/base: Fix interoperability with preinstalled libunistring.
5332         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
5333         Reported by Simon Josefsson.
5334
5335 2011-08-08  Bruno Haible  <bruno@clisp.org>
5336
5337         iswblank: Detect declaration correctly.
5338         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
5339         AC_CHECK_DECLS invocation.
5340
5341 2011-08-08  Bruno Haible  <bruno@clisp.org>
5342
5343         tcgetsid: Detect declaration correctly.
5344         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
5345         AC_CHECK_DECLS invocation.
5346         Reported by Simon Josefsson.
5347
5348 2011-08-08  Eric Blake  <eblake@redhat.com>
5349
5350         largefile: fix typo that regressed large file support
5351         * modules/largefile (configure.ac-early): Fix section name.
5352
5353 2011-08-06  Karl Berry  <karl@gnu.org>
5354
5355         * MODULES.html.sh (func_all_files): _Noreturn is no longer
5356         a separate module.
5357
5358 2011-08-05  Simon Josefsson  <simon@josefsson.org>
5359
5360         openat: Fix warnings and commens when building unlinkat.c on Hurd.
5361         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
5362         get prototype for free.
5363
5364 2011-08-04  Bruno Haible  <bruno@clisp.org>
5365
5366         Tests for module 'pathmax'.
5367         * modules/pathmax-tests: New file.
5368         * tests/test-pathmax.c: New file.
5369
5370         canonicalize-lgpl: Support larger filenames on the Hurd.
5371         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
5372         Reported by Paul Eggert.
5373
5374         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
5375         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
5376         * lib/chdir-long.h: Include pathmax.h.
5377         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
5378         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
5379         (PATH_MAX): Remove code that is done by pathmax.h.
5380         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
5381         * lib/tmpfile.c: Add a comment.
5382         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
5383         * modules/chdir-long (Depends-on): Add pathmax.
5384         * modules/getcwd (Depends-on): Add pathmax.
5385         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
5386         is not defined.
5387         * doc/posix-headers/limits.texi: Mention the pathmax module.
5388         * NEWS: Mention the change.
5389
5390 2011-08-02  Bruno Haible  <bruno@clisp.org>
5391
5392         pthread_sigmask: Actually use results of gl_THREADLIB.
5393         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
5394         gl_THREADLIB, not gl_[]THREADLIB.
5395         Reported by Eric Blake.
5396
5397 2011-08-02  Jim Meyering  <meyering@redhat.com>
5398
5399         maint.mk: relax the default _gl_TS_function_match regexp
5400         * top/maint.mk (_gl_TS_function_match): Don't require at least one
5401         space between function name and "(" in an "extern" declaration.
5402         That would fail to match a decl with no space there: extern void foo();
5403
5404 2011-07-31  Iain Nicol  <iain@thenicols.net>
5405
5406         git-version-gen: document that EXTRA_DIST must include .version
5407         * build-aux/git-version-gen: In the how-to-use comment, document
5408         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
5409         will fail when run from an unpacked distribution tarball.
5410
5411 2011-08-01  Bruno Haible  <bruno@clisp.org>
5412
5413         wctype-h: Fix last change.
5414         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
5415         REPLACE_TOWLOWER to 0.
5416         Reported by Sam Steingold <sds@gnu.org>.
5417
5418 2011-07-31  Bruno Haible  <bruno@clisp.org>
5419
5420         frexpl: Update autoconf test.
5421         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
5422         according to changes of 2011-06-20.
5423
5424 2011-07-31  Bruno Haible  <bruno@clisp.org>
5425
5426         sys_utsname: Add support for Minix.
5427         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
5428         <sys/utsname.h>.
5429         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
5430         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
5431
5432 2011-07-31  Bruno Haible  <bruno@clisp.org>
5433
5434         strings: Add support for Minix.
5435         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
5436         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
5437         * doc/posix-headers/strings.texi: Document the Minix problem.
5438
5439 2011-07-31  Bruno Haible  <bruno@clisp.org>
5440
5441         wctype-h: Add support for Minix.
5442         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
5443         REPLACE_TOWLOWER.
5444         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
5445         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
5446         REPLACE_ISWCNTRL.
5447
5448 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
5449
5450         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
5451         This is a performance improvement for 64-bit hosts: it causes the
5452         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
5453
5454 2011-07-31  Bruno Haible  <bruno@clisp.org>
5455
5456         stdioext: Add support for Minix.
5457         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
5458         * lib/fpurge.c (fpurge): Likewise.
5459         * lib/freadahead.c (freadahead): Likewise.
5460         * lib/freadable.c (freadable): Likewise.
5461         * lib/freading.c (freading): Likewise.
5462         * lib/freadptr.c (freadptr): Likewise.
5463         * lib/freadseek.c (freadptrinc): Likewise.
5464         * lib/fseeko.c (rpl_fseeko): Likewise.
5465         * lib/fseterr.c (fseterr): Likewise.
5466         * lib/fwritable.c (fwritable): Likewise.
5467         * lib/fwriting.c (fwriting): Likewise.
5468         * lib/fflush.c (clear_ungetc_buffer): Update comment.
5469         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
5470
5471 2011-07-31  Bruno Haible  <bruno@clisp.org>
5472
5473         errno: Port to Minix.
5474         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
5475         ECONNABORTED are defined.
5476         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
5477         GNULIB_defined_ECONNABORTED): New macros.
5478         * lib/strerror-override.h (strerror_override): Test also
5479         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
5480         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
5481         ECONNABORTED.
5482         * doc/posix-headers/errno.texi: Mention the Minix problem.
5483
5484 2011-07-31  Bruno Haible  <bruno@clisp.org>
5485
5486         Work around declaration collisions on Minix.
5487         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
5488         defined, set REPLACE_MBSINIT.
5489         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
5490         defined, set REPLACE_MBRTOWC.
5491         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
5492         set REPLACE_MBRLEN.
5493         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
5494         defined, set REPLACE_MBSRTOWCS.
5495         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
5496         defined, set REPLACE_WCRTOMB.
5497         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
5498         defined, set REPLACE_WCSRTOMBS.
5499
5500 2011-07-31  Bruno Haible  <bruno@clisp.org>
5501
5502         Add support for Minix with ACK compiler.
5503         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
5504         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
5505         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
5506
5507 2011-07-31  Bruno Haible  <bruno@clisp.org>
5508
5509         Documentation about Minix.
5510         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
5511         * doc/glibc-headers/*.texi: Likewise.
5512         * doc/posix-functions/*.texi: Likewise.
5513         * doc/glibc-functions/*.texi: Likewise.
5514
5515 2011-07-31  Bruno Haible  <bruno@clisp.org>
5516
5517         snippet/warn-on-use: Fix indentation.
5518         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
5519
5520 2011-07-25  Jim Meyering  <meyering@redhat.com>
5521
5522         tests: test-update-copyright.sh: remove unnecessary "rm" commands
5523         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
5524         commands.
5525
5526 2011-07-27  Jim Meyering  <meyering@redhat.com>
5527
5528         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
5529         * top/maint.mk (gl_extract_significant_defines_): Now that
5530         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
5531         gnulib/lib/signal.in.h, and now that we recommend to
5532         define-if-undefined those two symbols in application code,
5533         we must filter them out of the "significant" list.
5534         This avoids a "make syntax-check" failure in coreutils.
5535
5536 2011-07-26  Eric Blake  <eblake@redhat.com>
5537
5538         warnings: add comments about previous patch
5539         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
5540         * m4/include_next.m4: Likewise.
5541         * m4/warn-on-use.m4: Likewise.
5542         * m4/warnings.m4: Likewise, and simplify use.
5543         Suggested by Stefano Lattarini.
5544
5545         include-next, warnings: support older autoconf
5546         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
5547         AS_VAR_PUSHDEF in a way that works with older autoconf.
5548         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
5549         Reported by Daniel P. Berrange.
5550
5551 2011-07-25  Bruno Haible  <bruno@clisp.org>
5552
5553         fseek, ftell: Fix doc.
5554         * doc/posix-functions/fseek.texi: Reword statement about
5555         AC_SYS_LARGEFILE.
5556         * doc/posix-functions/ftell.texi: Likewise.
5557
5558 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5559             Bruno Haible  <bruno@clisp.org>
5560
5561         Add dependencies to the 'largefile' module.
5562         * modules/fopen (Depends-on): Add 'largefile'.
5563         * modules/freopen (Depends-on): Likewise.
5564         * modules/fseeko (Depends-on): Likewise.
5565         * modules/ftello (Depends-on): Likewise.
5566         * modules/glob (Depends-on): Likewise.
5567         * modules/lseek (Depends-on): Likewise.
5568         * modules/lstat (Depends-on): Likewise.
5569         * modules/mkostemp (Depends-on): Likewise.
5570         * modules/mkostemps (Depends-on): Likewise.
5571         * modules/mkstemp (Depends-on): Likewise.
5572         * modules/mkstemps (Depends-on): Likewise.
5573         * modules/open (Depends-on): Likewise.
5574         * modules/openat (Depends-on): Likewise.
5575         * modules/pread (Depends-on): Likewise.
5576         * modules/pwrite (Depends-on): Likewise.
5577         * modules/scandir (Depends-on): Likewise.
5578         * modules/stat (Depends-on): Likewise.
5579         * modules/tmpfile (Depends-on): Likewise.
5580         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
5581         since the containing module now depends on the largefile module.
5582         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
5583         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
5584         off_t is fixed by gnulib.
5585         * doc/posix-functions/freopen.texi: Likewise.
5586         * doc/posix-functions/fseeko.texi: Likewise.
5587         * doc/posix-functions/fstatat.texi: Likewise.
5588         * doc/posix-functions/ftello.texi: Likewise.
5589         * doc/posix-functions/glob.texi: Likewise.
5590         * doc/posix-functions/lseek.texi: Likewise.
5591         * doc/posix-functions/lstat.texi: Likewise.
5592         * doc/posix-functions/mkstemp.texi: Likewise.
5593         * doc/posix-functions/open.texi: Likewise.
5594         * doc/posix-functions/openat.texi: Likewise.
5595         * doc/posix-functions/pread.texi: Likewise.
5596         * doc/posix-functions/pwrite.texi: Likewise.
5597         * doc/posix-functions/scandir.texi: Likewise.
5598         * doc/posix-functions/stat.texi: Likewise.
5599         * doc/posix-functions/tmpfile.texi: Likewise.
5600         * doc/glibc-functions/mkostemp.texi: Likewise.
5601         * doc/glibc-functions/mkostemps.texi: Likewise.
5602         * doc/glibc-functions/mkstemps.texi: Likewise.
5603
5604 2011-07-25  Bruno Haible  <bruno@clisp.org>
5605
5606         fcntl: Move AC_LIBOBJ invocation to module description.
5607         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
5608         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
5609
5610         fcntl: Remove call-in from fchdir.m4.
5611         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
5612         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
5613
5614         dup3: Remove potential call-in from fchdir.m4.
5615         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
5616         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
5617
5618         dup2: Move AC_LIBOBJ invocation to module description.
5619         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
5620         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
5621         Don't invoke AC_LIBOBJ.
5622         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
5623
5624         dup2: Remove call-in from fchdir.m4.
5625         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
5626         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
5627
5628         fclose: Move AC_LIBOBJ invocation to module description.
5629         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
5630         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
5631         to 1.
5632         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
5633
5634         fclose: Remove call-in from close.m4.
5635         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
5636         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
5637
5638         close: Move AC_LIBOBJ invocation to module description.
5639         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
5640         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
5641         1.
5642         * modules/close (configure.ac): Invoke AC_LIBOBJ.
5643
5644         close: Remove call-in from fchdir.m4.
5645         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
5646         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
5647
5648         open: Move AC_LIBOBJ invocation to module description.
5649         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
5650         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
5651         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
5652
5653         open: Remove call-in from fchdir.m4.
5654         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
5655         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
5656
5657         fchdir: Start to remove gl_REPLACE_* idiom.
5658         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
5659         (gl_FUNC_FCHDIR): Invoke it.
5660
5661 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
5662
5663         * lib/ftell.c (ftell): Comment out cast.
5664
5665         close: use gl_REPLACE_FCLOSE only if defined
5666         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
5667         is defined.  The close module doesn't depend on the fclose module
5668         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
5669         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
5670         I reproduced the problem with "./gnulib-tool --test close sys_socket".
5671
5672 2011-07-24  Jim Meyering  <meyering@redhat.com>
5673
5674         test-select.h: avoid warning when using gcc's -Wmissing-declarations
5675         * tests/test-select.h (test_function): Declare as "static".
5676
5677 2011-07-24  Bruno Haible  <bruno@clisp.org>
5678
5679         doc: Mention the effects of AC_SYS_LARGEFILE.
5680         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
5681         on this function.
5682         * doc/posix-functions/aio_error.texi: Likewise.
5683         * doc/posix-functions/aio_fsync.texi: Likewise.
5684         * doc/posix-functions/aio_read.texi: Likewise.
5685         * doc/posix-functions/aio_return.texi: Likewise.
5686         * doc/posix-functions/aio_suspend.texi: Likewise.
5687         * doc/posix-functions/aio_write.texi: Likewise.
5688         * doc/posix-functions/fgetpos.texi: Likewise.
5689         * doc/posix-functions/fopen.texi: Likewise.
5690         * doc/posix-functions/freopen.texi: Likewise.
5691         * doc/posix-functions/fsetpos.texi: Likewise.
5692         * doc/posix-functions/fstatvfs.texi: Likewise.
5693         * doc/posix-functions/ftruncate.texi: Likewise.
5694         * doc/posix-functions/ftw.texi: Likewise.
5695         * doc/posix-functions/getrlimit.texi: Likewise.
5696         * doc/posix-functions/glob.texi: Likewise.
5697         * doc/posix-functions/lio_listio.texi: Likewise.
5698         * doc/posix-functions/lockf.texi: Likewise.
5699         * doc/posix-functions/mkstemp.texi: Likewise.
5700         * doc/posix-functions/mmap.texi: Likewise.
5701         * doc/posix-functions/nftw.texi: Likewise.
5702         * doc/posix-functions/openat.texi: Likewise.
5703         * doc/posix-functions/opendir.texi: Likewise.
5704         * doc/posix-functions/posix_fadvise.texi: Likewise.
5705         * doc/posix-functions/posix_fallocate.texi: Likewise.
5706         * doc/posix-functions/pread.texi: Likewise.
5707         * doc/posix-functions/pwrite.texi: Likewise.
5708         * doc/posix-functions/readdir.texi: Likewise.
5709         * doc/posix-functions/readdir_r.texi: Likewise.
5710         * doc/posix-functions/rewinddir.texi: Likewise.
5711         * doc/posix-functions/scandir.texi: Likewise.
5712         * doc/posix-functions/seekdir.texi: Likewise.
5713         * doc/posix-functions/setrlimit.texi: Likewise.
5714         * doc/posix-functions/statvfs.texi: Likewise.
5715         * doc/posix-functions/telldir.texi: Likewise.
5716         * doc/posix-functions/tmpfile.texi: Likewise.
5717         * doc/posix-functions/truncate.texi: Likewise.
5718         * doc/glibc-functions/fallocate.texi: Likewise.
5719         * doc/glibc-functions/fstatfs.texi: Likewise.
5720         * doc/glibc-functions/fts_children.texi: Likewise.
5721         * doc/glibc-functions/fts_read.texi: Likewise.
5722         * doc/glibc-functions/getdirentries.texi: Likewise.
5723         * doc/glibc-functions/mkostemp.texi: Likewise.
5724         * doc/glibc-functions/mkostemps.texi: Likewise.
5725         * doc/glibc-functions/mkstemps.texi: Likewise.
5726         * doc/glibc-functions/preadv.texi: Likewise.
5727         * doc/glibc-functions/pwritev.texi: Likewise.
5728         * doc/glibc-functions/sendfile.texi: Likewise.
5729         * doc/glibc-functions/statfs.texi: Likewise.
5730
5731 2011-07-24  Bruno Haible  <bruno@clisp.org>
5732
5733         doc: Fix typo.
5734         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
5735
5736 2011-07-24  Bruno Haible  <bruno@clisp.org>
5737
5738         doc: Mention fsusage.
5739         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
5740
5741 2011-07-24  Bruno Haible  <bruno@clisp.org>
5742
5743         doc: Mention new glibc headers and functions.
5744         * doc/glibc-headers/gshadow.texi: New file.
5745         * doc/glibc-functions/endsgent.texi: New file.
5746         * doc/glibc-functions/fgetsgent.texi: New file.
5747         * doc/glibc-functions/fgetsgent_r.texi: New file.
5748         * doc/glibc-functions/getsgent.texi: New file.
5749         * doc/glibc-functions/getsgent_r.texi: New file.
5750         * doc/glibc-functions/getsgnam.texi: New file.
5751         * doc/glibc-functions/getsgnam_r.texi: New file.
5752         * doc/glibc-functions/putsgent.texi: New file.
5753         * doc/glibc-functions/setsgent.texi: New file.
5754         * doc/glibc-functions/sgetsgent.texi: New file.
5755         * doc/glibc-functions/sgetsgent_r.texi: New file.
5756         * doc/glibc-functions/malloc_info.texi: New file.
5757         * doc/glibc-functions/preadv.texi: New file.
5758         * doc/glibc-functions/pwritev.texi: New file.
5759         * doc/glibc-functions/register_printf_modifier.texi: New file.
5760         * doc/glibc-functions/register_printf_specifier.texi: New file.
5761         * doc/glibc-functions/register_printf_type.texi: New file.
5762         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
5763         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
5764         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
5765         * doc/glibc-functions/pthread_getname_np.texi: New file.
5766         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
5767         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
5768         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
5769         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
5770         * doc/glibc-functions/pthread_setname_np.texi: New file.
5771         * doc/glibc-functions/pthread_sigqueue.texi: New file.
5772         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
5773         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
5774         * doc/glibc-functions/qsort_r.texi: New file.
5775         * doc/glibc-functions/quick_exit.texi: New file.
5776         * doc/glibc-functions/syncfs.texi: New file.
5777         * doc/gnulib.texi: Include them.
5778         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
5779         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
5780         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
5781         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
5782         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
5783         * doc/glibc-functions/execvpe.texi: Likewise.
5784
5785 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5786
5787         ftell: don't include <unistd.h>
5788         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
5789         guaranteed to define off_t, and the ftell module depends on the
5790         stdio module.
5791
5792         ftell: do not assume wraparound signed arithmetic
5793         * lib/ftell.c: Include <limits.h>.
5794         (ftell): Don't assume wraparound signed arithmetic.
5795
5796 2011-07-24  Bruno Haible  <bruno@clisp.org>
5797
5798         close: No longer depend on module 'fclose'.
5799         * modules/close (Depends-on): Remove fclose.
5800         * NEWS: Mention the change.
5801         Suggested by Sam Steingold <sds@gnu.org>.
5802
5803 2011-07-24  Bruno Haible  <bruno@clisp.org>
5804
5805         fsusage: Enable large volume support on AIX >= 5.2.
5806         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
5807         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
5808         instead of STAT_STATVFS.
5809         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
5810
5811         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
5812         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
5813         f_blocks field only on MacOS X.
5814
5815         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
5816         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
5817         * modules/fsusage (Depends-on): Add largefile.
5818
5819 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5820
5821         * README: Modernize discussion of signed integers.
5822         Assuming overflow wraparound is no longer safe.
5823         Mention ones' complement and signed magnitude.
5824
5825 2011-07-22  Bruno Haible  <bruno@clisp.org>
5826
5827         select tests, pselect tests: Refactor.
5828         * tests/test-select.h: New file, extracted from tests/test-select.c.
5829         (select_fn): New type.
5830         (test, do_select, do_select_nowait, do_select_wait, test_tty,
5831         test_connect_first, test_accept_first, test_pair, test_socket_pair,
5832         test_pipe): Add my_select argument.
5833         (test_function): Renamed from main. Add my_select argument.
5834         * tests/test-select.c: Move most code to tests/test-select.h. Include
5835         test-select.h.
5836         * modules/select-tests (Files): Add tests/test-select.h.
5837         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
5838         (my_select, main): New functions.
5839         * modules/pselect-tests (Files): Add tests/test-select.h,
5840         tests/macros.h, tests/signature.h.
5841         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
5842         (configure.ac): Check for <sys/wait.h>.
5843
5844 2011-07-22  Bruno Haible  <bruno@clisp.org>
5845
5846         sys_select tests: Check the signature of FD_*.
5847         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
5848         signature tests from here...
5849         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
5850         here.
5851         * modules/sys_select-tests (Files): Add tests/signature.h.
5852
5853 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
5854
5855         largefile: new module, replacing large-inode
5856         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
5857         * MODULES.html.sh: Add largefile, remove large-inode.
5858         * modules/largefile, m4/largefile.m4: New files.
5859         * modules/large-inode, m4/large-inode.m4: Remove.
5860
5861         fsusage: port to MacOS X 10.7 with 4 TiB file systems
5862         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
5863         implementations that use only 32 bits to count blocks.
5864         On typical hosts with 1024-byte blocks, this fails with file
5865         systems as small as 4 TiB.  Problem reported by Herb Wartens
5866         <http://debbugs.gnu.org/9140> and this should also fix a similar
5867         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
5868
5869         large-inode: New module
5870         * MODULES.html.sh: Add it.
5871         * modules/large-inode, m4/large-inode.m4: New files.
5872
5873         extensions: Enable extensions on MacOS X 10.5 and later.
5874         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
5875
5876 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
5877
5878         file-has-acl: use acl_extended_file_nofollow if available
5879         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
5880         (acl_extended_file): New macro.
5881         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
5882         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
5883
5884 2011-07-21  Bruno Haible  <bruno@clisp.org>
5885
5886         Declare system functions in a way that works with C++.
5887         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
5888         declare fdopendir as extern "C".
5889         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
5890         declare frexpl as extern "C".
5891         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
5892         declare gai_strerror as extern "C".
5893         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
5894         programs, declare gai_strerror as extern "C".
5895         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
5896         declare getlogin_r as extern "C".
5897         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
5898         as extern "C".
5899         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
5900         declare ldexpl as extern "C".
5901         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
5902         as extern "C".
5903         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
5904         program, declare getmntinfo as extern "C".
5905         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
5906         stpncpy as extern "C".
5907         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
5908         program, declare __xpg_strerror_r as extern "C".
5909         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
5910         strndup as extern "C".
5911         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
5912         declare memset and bzero as extern "C".
5913         Reported by Sam Steingold <sds@gnu.org>.
5914
5915 2011-07-12  Jim Meyering  <meyering@redhat.com>
5916
5917         maint.mk: prohibit inclusion of "verify.h" without use
5918         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
5919
5920 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5921
5922         timer-time: A new module to check for timer_settime()
5923         * m4/timer_time.m4: Check for the posix function.
5924         * modules/timer-time: Add the new module.
5925         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
5926         Mention it.
5927
5928 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
5929             Bruno Haible  <bruno@clisp.org>
5930
5931         pthread_sigmask: assume POSIX threads if --avoid=threadlib
5932         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
5933         not defined, assume POSIX threads and look for pthread_sigmask in
5934         $LIBS, without changing $CPPFLAGS.
5935
5936 2011-07-19  Bruno Haible  <bruno@clisp.org>
5937
5938         strstr: Update cross-compilation guess.
5939         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
5940         CPUs, guess no, in view of glibc
5941         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
5942         Suggested by Eric Blake. Reported by Reuben Thomas.
5943
5944 2011-07-19  Pádraig Brady  <P@draigBrady.com>
5945
5946         getopt-gnu: suppress core dumps from detection code
5947         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
5948         to suppress core dumps that may well occur on glibc systems.
5949         * modules/getopt-gnu: Depend on nocrash.
5950
5951 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
5952
5953         pthread_sigmask: ensure usleep is declared
5954         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
5955         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
5956
5957 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
5958
5959         doc: Document NonStop portability issues.
5960         * doc/posix-functions/sigaction.texi (sigaction):
5961         * doc/posix-headers/signal.texi (signal.h):
5962         Document NonStop.  See Joachim Schmitz in
5963         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
5964
5965 2011-07-15  Bruno Haible  <bruno@clisp.org>
5966
5967         ffsl, ffsll: Avoid unportable behaviour.
5968         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
5969
5970 2011-07-15  Bruno Haible  <bruno@clisp.org>
5971
5972         ffs: More tests.
5973         * tests/test-ffs.c (NBITS): New macro.
5974         (main): Add more tests.
5975         * tests/test-ffsl.c (NBITS): New macro.
5976         (main): Add more tests.
5977         * tests/test-ffsll.c (NBITS): New macro.
5978         (main): Add more tests.
5979
5980 2011-07-15  Eric Blake  <eblake@redhat.com>
5981
5982         ffsl, ffsll: new modules
5983         * modules/ffsl: New file.
5984         * modules/ffsll: Likewise.
5985         * m4/ffsl.m4: Likewise.
5986         * m4/ffsll.m4: Likewise.
5987         * lib/ffsl.c: Likewise.
5988         * lib/ffsl.h: Likewise.
5989         * lib/ffsll.c: Likewise.
5990         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
5991         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
5992         * modules/string (Makefile.am): Substitute witnesses.
5993         * lib/strings.in.h (ffsl, ffsll): Declare.
5994         * modules/ffsl-tests: New test file.
5995         * modules/ffsll-tests: Likewise.
5996         * tests/test-ffsl.c: Likewise.
5997         * tests/test-ffsll.c: Likewise.
5998         * MODULES.html.sh (Integer arithmetic functions): Mention it.
5999         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
6000         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
6001
6002         ffs: fix m4 prerequisite
6003         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
6004
6005         ffs: avoid undefined behavior
6006         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
6007         * tests/test-ffs.c (naive, main): Avoid signed shifts.
6008         Reported by Bruno Haible.
6009
6010 2011-07-12  Bruno Haible  <bruno@clisp.org>
6011
6012         pthread_sigmask: Rely on module 'threadlib'.
6013         * modules/pthread_sigmask (Depends-on): Add threadlib.
6014         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
6015         is defined.
6016
6017 2011-07-12  Bruno Haible  <bruno@clisp.org>
6018
6019         regex: Depend on module 'strcase'.
6020         * modules/regex (Depends-on): Add strcase, for strcasecmp().
6021
6022 2011-07-12  Jim Meyering  <meyering@redhat.com>
6023
6024         warn-on-use: fix typo in file name
6025         * modules/snippet/warn-on-use (Files): Correct file name:
6026         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
6027
6028 2011-07-12  Bruno Haible  <bruno@clisp.org>
6029
6030         strings: Document module.
6031         * doc/posix-headers/strings.texi: Mention module 'strings'.
6032
6033 2011-07-12  Bruno Haible  <bruno@clisp.org>
6034
6035         Rename module '_Noreturn' to 'snippet/_Noreturn'.
6036         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
6037         (Files, Makefile.am): Update.
6038         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
6039         * modules/stdlib (Depends-on): Update.
6040
6041 2011-07-12  Bruno Haible  <bruno@clisp.org>
6042
6043         * NEWS: Mention the changes.
6044
6045         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
6046         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
6047         (Files, Makefile.am): Update.
6048         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
6049         * modules/arpa_inet (Depends-on): Update.
6050         * modules/ctype (Depends-on): Update.
6051         * modules/dirent (Depends-on): Update.
6052         * modules/fcntl-h (Depends-on): Update.
6053         * modules/glob (Depends-on): Update.
6054         * modules/iconv-h (Depends-on): Update.
6055         * modules/inttypes-incomplete (Depends-on): Update.
6056         * modules/langinfo (Depends-on): Update.
6057         * modules/locale (Depends-on): Update.
6058         * modules/math (Depends-on): Update.
6059         * modules/netdb (Depends-on): Update.
6060         * modules/poll-h (Depends-on): Update.
6061         * modules/pty (Depends-on): Update.
6062         * modules/search (Depends-on): Update.
6063         * modules/signal (Depends-on): Update.
6064         * modules/spawn (Depends-on): Update.
6065         * modules/stdio (Depends-on): Update.
6066         * modules/stdlib (Depends-on): Update.
6067         * modules/string (Depends-on): Update.
6068         * modules/strings (Depends-on): Update.
6069         * modules/sys_file (Depends-on): Update.
6070         * modules/sys_ioctl (Depends-on): Update.
6071         * modules/sys_select (Depends-on): Update.
6072         * modules/sys_socket (Depends-on): Update.
6073         * modules/sys_stat (Depends-on): Update.
6074         * modules/sys_time (Depends-on): Update.
6075         * modules/sys_times (Depends-on): Update.
6076         * modules/sys_utsname (Depends-on): Update.
6077         * modules/sys_wait (Depends-on): Update.
6078         * modules/termios (Depends-on): Update.
6079         * modules/time (Depends-on): Update.
6080         * modules/unistd (Depends-on): Update.
6081         * modules/wchar (Depends-on): Update.
6082         * modules/wctype-h (Depends-on): Update.
6083         * MODULES.html.sh (Support for building libraries and executables):
6084         Update.
6085
6086         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
6087         * modules/snippet/unused-parameter: Renamed from
6088         modules/unused-parameter.
6089         (Files, Makefile.am): Update.
6090         * build-aux/snippet/unused-parameter.h: Renamed from
6091         build-aux/unused-parameter.h.
6092         * modules/selinux-h (Depends-on): Update.
6093         * modules/unistr/base (Depends-on): Update.
6094         * MODULES.html.sh (Core language properties): Update.
6095
6096         Rename module 'link-warning' to 'snippet/link-warning'.
6097         * modules/snippet/link-warning: Renamed from modules/link-warning.
6098         (Files, Makefile.am): Update.
6099         * build-aux/snippet/link-warning.h: Renamed from
6100         build-aux/link-warning.h.
6101         * MODULES.html.sh (Support for building libraries and executables):
6102         Update.
6103
6104         Rename module 'c++defs' to 'snippet/c++defs'.
6105         * modules/snippet/c++defs: Renamed from modules/c++defs.
6106         (Files, Makefile.am): Update.
6107         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
6108         * modules/arpa_inet (Depends-on): Update.
6109         * modules/ctype (Depends-on): Update.
6110         * modules/dirent (Depends-on): Update.
6111         * modules/fcntl-h (Depends-on): Update.
6112         * modules/glob (Depends-on): Update.
6113         * modules/iconv-h (Depends-on): Update.
6114         * modules/langinfo (Depends-on): Update.
6115         * modules/locale (Depends-on): Update.
6116         * modules/math (Depends-on): Update.
6117         * modules/netdb (Depends-on): Update.
6118         * modules/poll-h (Depends-on): Update.
6119         * modules/pty (Depends-on): Update.
6120         * modules/search (Depends-on): Update.
6121         * modules/signal (Depends-on): Update.
6122         * modules/spawn (Depends-on): Update.
6123         * modules/stdio (Depends-on): Update.
6124         * modules/stdlib (Depends-on): Update.
6125         * modules/string (Depends-on): Update.
6126         * modules/strings (Depends-on): Update.
6127         * modules/sys_ioctl (Depends-on): Update.
6128         * modules/sys_select (Depends-on): Update.
6129         * modules/sys_socket (Depends-on): Update.
6130         * modules/sys_stat (Depends-on): Update.
6131         * modules/sys_time (Depends-on): Update.
6132         * modules/sys_wait (Depends-on): Update.
6133         * modules/termios (Depends-on): Update.
6134         * modules/time (Depends-on): Update.
6135         * modules/unistd (Depends-on): Update.
6136         * modules/wchar (Depends-on): Update.
6137         * modules/wctype-h (Depends-on): Update.
6138
6139         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
6140         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
6141         (Files, Makefile.am): Update.
6142         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
6143         * modules/argv-iter (Depends-on): Update.
6144         * modules/arpa_inet (Depends-on): Update.
6145         * modules/dirent (Depends-on): Update.
6146         * modules/fcntl-h (Depends-on): Update.
6147         * modules/fnmatch (Depends-on): Update.
6148         * modules/getopt-posix (Depends-on): Update.
6149         * modules/glob (Depends-on): Update.
6150         * modules/iconv-h (Depends-on): Update.
6151         * modules/inttypes-incomplete (Depends-on): Update.
6152         * modules/locale (Depends-on): Update.
6153         * modules/math (Depends-on): Update.
6154         * modules/netdb (Depends-on): Update.
6155         * modules/search (Depends-on): Update.
6156         * modules/signal (Depends-on): Update.
6157         * modules/spawn (Depends-on): Update.
6158         * modules/stdio (Depends-on): Update.
6159         * modules/stdlib (Depends-on): Update.
6160         * modules/string (Depends-on): Update.
6161         * modules/strings (Depends-on): Update.
6162         * modules/sys_socket (Depends-on): Update.
6163         * modules/sys_stat (Depends-on): Update.
6164         * modules/sys_time (Depends-on): Update.
6165         * modules/sys_times (Depends-on): Update.
6166         * modules/sys_utsname (Depends-on): Update.
6167         * modules/time (Depends-on): Update.
6168         * modules/unistd (Depends-on): Update.
6169         * modules/wchar (Depends-on): Update.
6170         * MODULES.html.sh (Support for building libraries and executables):
6171         Update.
6172
6173 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
6174
6175         Improvements on _Noreturn and related modules.
6176
6177         modules/_Exit-tests: test _Noreturn too
6178         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
6179         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
6180         (main): Use them.
6181
6182         stdnoreturn, stdnoreturn-tests: remove modules
6183         They're not needed here and a bit premature for use elsewhere.  See
6184         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
6185         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
6186         * tests/test-stdnoreturn.c: Remove files.
6187         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
6188         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
6189         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
6190         and using noreturn.
6191         * modules/openat, modules/sigpipe-die, modules/xalloc:
6192         * modules/xmemdup0, modules/xstrtol:
6193         Remove dependency on stdnoreturn.
6194
6195         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
6196         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
6197         Reparenthesize to avoid GCC warning.
6198         Support Microsoft's syntax.
6199         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
6200
6201         _Noreturn-tests: remove module
6202         * modules/_Noreturn-tests: Remove.
6203         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
6204         * tests/test-_Noreturn.c: Remove.
6205         * tests/test-stdnoreturn.c: Merge from the old
6206         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
6207
6208 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
6209
6210         _Noreturn, stdnoreturn, and related modules.
6211
6212         * top/maint.mk: Adjust to new noreturn support.
6213         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
6214         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
6215
6216         xalloc: use stdnoreturn.h
6217         * lib/xalloc.h: Include <stdnoreturn.h>.
6218         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6219         * modules/xalloc (Depends-on): Add stdnoreturn.
6220
6221         xstrtol: use stdnoreturn.h
6222         * lib/xstrtol.h: Include <stdnoreturn.h>.
6223         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6224         * modules/xstrtol (Depends-on): Add stdnoreturn.
6225
6226         xmemdup0: use stdnoreturn.h
6227         * lib/xmemdup0.h: Include <stdnoreturn.h>.
6228         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6229         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
6230
6231         sigpipe-die: use stdnoreturn.h
6232         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
6233         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6234         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
6235
6236         openat: use stdnoreturn.h
6237         * lib/openat.h: Include <stdnoreturn.h>.
6238         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
6239         * modules/openat (Depends-on): Add stdnoreturn.
6240
6241         * lib/openat-die.c (openat_save_fail): Modernize comment.
6242
6243         * lib/xalloc-die.c (xalloc_die): Modernize comment.
6244
6245         * lib/glthread/thread.h: Modernize comment.
6246
6247         obstack: use _Noreturn
6248         * lib/obstack.c (__attribute__): Remove macro.
6249         (print_and_abort): Use _Noreturn.
6250
6251         c-stack: use _Noreturn
6252         * lib/c-stack.c (die, overflow_handler, segv_handler):
6253         Use _Noreturn rather than __attribute__((noreturn)).
6254
6255         argmatch-tests, exclude_tests: use _Noreturn
6256         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
6257         Remove.
6258         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
6259
6260         stdlib: use _Noreturn
6261         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
6262         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
6263         * modules/stdlib (Depends-on): Add _Noreturn.
6264         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
6265
6266         stdnoreturn-tests: new module
6267         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
6268
6269         stdnoreturn: new module
6270         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
6271         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
6272
6273         _Noreturn-tests: new module
6274         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
6275
6276         _Noreturn: new module
6277         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
6278         New section, mentioning it.
6279         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
6280
6281         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
6282
6283 2011-07-11  Eric Blake  <eblake@redhat.com>
6284
6285         ffs: new module
6286         * modules/ffs: New file.
6287         * m4/ffs.m4: Likewise.
6288         * lib/ffs.c: Likewise.
6289         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
6290         * modules/strings (Makefile.am): Substitute witness.
6291         (Depends-on): Add c++defs.
6292         * lib/strings.in.h (ffs): Declare.
6293         * modules/ffs-tests: New test file.
6294         * tests/test-ffs.c: Test new module.
6295         * MODULES.html.sh (Integer arithmetic functions): Mention it.
6296         * doc/posix-functions/ffs.texi (ffs): Likewise.
6297
6298         regex: avoid compiler warning
6299         * lib/regex.c (includes): Include <strings.h>, for use of
6300         strcasecmp in regcomp.c.
6301         Reported by Joachim Schmitz.
6302
6303 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
6304
6305         stdint: respect system's intmax_t if INTMAX_MAX
6306         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
6307         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
6308         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
6309         long but int64_t is long long, and where we will clash with the
6310         system intmax_t if we override it.  See
6311         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
6312         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
6313         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
6314         similarly for UINTMAX_C.
6315
6316 2011-07-08  Bruno Haible  <bruno@clisp.org>
6317
6318         pthread_sigmask tests: Avoid a compiler warning.
6319         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
6320         non-zero.
6321
6322         sigprocmask tests: A better way to avoid a compiler warning.
6323         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
6324         (main): Complain if system() returns non-zero.
6325         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
6326
6327 2011-07-08  Bruno Haible  <bruno@clisp.org>
6328
6329         pthread_sigmask: Work around IRIX bug.
6330         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
6331         bug.
6332         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
6333         there may be unblocked pending signals.
6334         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
6335
6336 2011-07-08  Bruno Haible  <bruno@clisp.org>
6337
6338         pthread_sigmask: Work around Cygwin bug.
6339         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
6340         bug.
6341         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
6342         the system's pthread_sigmask function.
6343         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
6344
6345 2011-07-08  Bruno Haible  <bruno@clisp.org>
6346
6347         pthread_sigmask: Work around bug in single-threaded implementation.
6348         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
6349         FreeBSD, HP-UX, Solaris bug.
6350         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
6351         * lib/pthread_sigmask.c: Include <stddef.h>.
6352         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
6353         the system's pthread_sigmask function.
6354         * modules/pthread_sigmask (configure.ac): Invoke
6355         gl_PREREQ_PTHREAD_SIGMASK.
6356         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
6357         HP-UX, Solaris.
6358
6359 2011-07-08  Eric Blake  <eblake@redhat.com>
6360
6361         test-sigprocmask: avoid compiler warning
6362         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
6363         * tests/test-sigprocmask.c (main): Use it to silence warning.
6364         Reported by Jim Meyering.
6365
6366         test-snprintf: avoid compiler warning
6367         * tests/test-snprintf.c (main): Avoid shadowed declaration.
6368         * tests/test-vsnprintf.c (main): Likewise.
6369         Reported by Jim Meyering.
6370
6371 2011-07-08  Bruno Haible  <bruno@clisp.org>
6372
6373         Tests for module 'pthread_sigmask'.
6374         * modules/pthread_sigmask-tests: New file.
6375         * tests/test-pthread_sigmask1.c: New file, based on
6376         tests/test-sigprocmask.c.
6377         * tests/test-pthread_sigmask2.c: New file.
6378
6379 2011-07-08  Jim Meyering  <meyering@redhat.com>
6380
6381         test-getopt.h: avoid warning about an unused variable
6382         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
6383
6384 2011-07-07  Jim Meyering  <meyering@redhat.com>
6385
6386         maint: reduce list of files exempt from sc_prohibit_leading_TABs
6387         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
6388         now that it no longer contains leading TABs.
6389         Remove unused "url=FIXME" statement.
6390
6391 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
6392
6393         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
6394         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6395         When gl_THREADLIB is not in use, assume that the POSIX sematics
6396         are desired.  This is better for Emacs, which uses POSIX semantics
6397         on GNUish and/or POSIXish platforms, and does not use threads at
6398         all otherwise.
6399
6400         pthread_sigmask: fix typo when testing for libraries
6401         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
6402         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
6403
6404 2011-07-08  Eric Blake  <eblake@redhat.com>
6405
6406         fts: introduce FTS_NOATIME
6407         * lib/fts_.h (FTS_NOATIME): New bit flag.
6408         (FTS_OPTIONMASK): Adjust.
6409         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
6410         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
6411
6412 2011-07-08  Bruno Haible  <bruno@clisp.org>
6413
6414         Tests for module 'thread'.
6415         * modules/thread-tests: New file.
6416         * tests/test-thread_self.c: New file.
6417         * tests/test-thread_create.cc: New file.
6418
6419 2011-07-08  Bruno Haible  <bruno@clisp.org>
6420
6421         thread: Avoid gcc warnings when using gl_thread_self().
6422         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
6423         'void *'.
6424         (gl_thread_self_pointer): Update.
6425
6426 2011-07-07  Bruno Haible  <bruno@clisp.org>
6427
6428         signal-c++-tests: Check declaration of pthread_sigmask.
6429         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
6430         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
6431         $(LIB_PTHREAD_SIGMASK).
6432
6433 2011-07-07  Bruno Haible  <bruno@clisp.org>
6434
6435         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
6436         * lib/signal.in.h (pthread_sigmask): Override if
6437         REPLACE_PTHREAD_SIGMASK is 1.
6438         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6439         REPLACE_PTHREAD_SIGMASK.
6440         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
6441         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
6442         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
6443         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6444         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
6445
6446 2011-07-07  Bruno Haible  <bruno@clisp.org>
6447
6448         pthread_sigmask: Ensure declaration in <signal.h>.
6449         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
6450         include <pthread.h>.
6451         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
6452         problem.
6453
6454 2011-07-07  Bruno Haible  <bruno@clisp.org>
6455
6456         pthread_sigmask: Document the module.
6457         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
6458
6459 2011-07-07  Bruno Haible  <bruno@clisp.org>
6460
6461         pthread_sigmask: Follow gnulib conventions.
6462         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
6463         gl_PTHREAD_SIGMASK.
6464         * modules/pthread_sigmask (configure.ac): Update.
6465
6466 2011-07-07  Bruno Haible  <bruno@clisp.org>
6467
6468         pthread_sigmask: Make declaration C++ safe.
6469         * lib/signal.in.h: In two special conditions, just do an #include_next.
6470         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6471         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
6472         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
6473         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
6474         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
6475         not REPLACE_PTHREAD_MASK.
6476         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
6477         not REPLACE_PTHREAD_MASK.
6478         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
6479
6480 2011-07-07  Bruno Haible  <bruno@clisp.org>
6481
6482         pthread_sigmask: Fix return value.
6483         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
6484         * lib/pthread_sigmask.c: New file.
6485         * modules/pthread_sigmask (Files): Add it.
6486         (configure.ac): Invoke AC_LIBOBJ.
6487
6488 2011-07-07  Eric Blake  <eblake@redhat.com>
6489
6490         getopt: more portable argv creation
6491         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
6492         const, use char arrays rather than strings.
6493         Suggested by Paul Eggert.
6494
6495 2011-07-07  Bruno Haible  <bruno@clisp.org>
6496
6497         Tests for module 'sigprocmask'.
6498         * modules/sigprocmask-tests: New file.
6499         * tests/test-sigprocmask.c: New file.
6500
6501 2011-07-07  Bruno Haible  <bruno@clisp.org>
6502
6503         float tests: Tweak.
6504         * tests/test-float.c (main): Tweak skip message.
6505
6506 2011-07-07  Eric Blake  <eblake@redhat.com>
6507
6508         getopt: avoid compiler warning during configure
6509         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
6510         assigning string literals to non-const pointer.
6511
6512         getopt-gnu: avoid crash in glibc getopt
6513         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
6514         * tests/test-getopt.h (test_getopt): Enhance test.
6515         * tests/test-getopt_long.h (test_getopt_long): Likewise.
6516         * doc/posix-functions/getopt.texi (getopt): Document it.
6517         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
6518         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
6519         Likewise.
6520
6521 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
6522
6523         getopt: handle W; without long options in getopt [BZ #12922]
6524         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
6525         but no long options are defined, just return 'W'.
6526
6527 2011-07-07  Bruno Haible  <bruno@clisp.org>
6528
6529         Avoid literal tabs.
6530         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
6531         variable containing a tab instead of a literal tab.
6532         Reported by Jim Meyering.
6533
6534 2011-07-07  Bruno Haible  <bruno@clisp.org>
6535
6536         Comments.
6537         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
6538
6539 2011-07-06  Bruno Haible  <bruno@clisp.org>
6540
6541         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
6542         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
6543         <winsock2.h>.
6544         (rpl_fd_isset, FD_ISSET): New definitions, copied from
6545         lib/sys_socket.in.h.
6546         (close, gethostname): Hide declarations from <winsock2.h>.
6547         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6548         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
6549         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
6550         (select): Don't override if gnulib's <sys/select.h> was already
6551         included.
6552         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
6553         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
6554         setsockopt, shutdown, select): Tweak indentation.
6555
6556 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6557
6558         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
6559         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
6560         in an application that does not use the sys_select module.
6561
6562 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
6563
6564         poll: do not return 0 on timeout=-1
6565         * lib/poll.c: Loop with yield if no events occured
6566
6567 2011-07-06  Eric Blake  <eblake@redhat.com>
6568
6569         pthread_sigmask: always replace when not using pthread
6570         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
6571         replacement when using some threading other than pthread.  Fix
6572         logic bug.
6573
6574 2011-07-06  Bruno Haible  <bruno@clisp.org>
6575
6576         Comments.
6577         * m4/printf.m4: Update comments about mingw.
6578
6579 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
6580
6581         sys_select: define sigset_t more portably
6582         * lib/sys_select.in.h: Always include <sys/types.h>, since
6583         we now need sigset_t and mingw defines it there.
6584         Include <signal.h> before split inclusion guard, to avoid
6585         mishaps on Solaris, whose <signal.h> eventually includes us.
6586         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
6587         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
6588         which come from ...
6589         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
6590         gl_CHECK_TYPE_SIGSET_T.
6591         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
6592         does the real work.
6593         * modules/sys_select (Depends-on): Add 'signal'.
6594
6595         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
6596         Suggested by Bruno Haible.
6597
6598         pselect: Use pthread_sigmask, not sigprocmask.
6599         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
6600         multithreaded apps better than sigprocmask does.
6601         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
6602         sigprocmask directly.
6603
6604 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
6605
6606         * lib/pselect.c (pselect): Use plain name, without "rpl_".
6607         Don't #undef,  since we don't need any underlying pselect.
6608         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
6609         (Depends-on): Add select.
6610         (Link): Add $(LIBSOCKET).
6611         These changes suggested by Bruno Haible.
6612
6613         pselect: document better
6614         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6615         * doc/posix-functions/pselect.texi (pselect): Document new module.
6616
6617         pthread_sigmask: new module
6618         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
6619         * doc/posix-functions/pthread_sigmask.texi: Document new module.
6620         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
6621         This is done only as a macro; I don't know how well that'll
6622         work for C++.  Move <sys/types.h> include before the include_next,
6623         to avoid mishap on Solaris.
6624         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
6625         * modules/signal (Makefile.am): Substitute the check's results.
6626         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
6627
6628         test-pselect: new module
6629         * modules/pselect-tests, tests/test-pselect.c: New files.
6630         * tests/test-select.c, tests/test-sys_select-c++.cc:
6631         If TEST_PSELECT is defined, test pselect instead of testing select.
6632
6633         * tests/test-sys_select.c (sigset_t): Test for it, too.
6634         Suggested by Bruno Haible.
6635
6636 2011-07-05  Eric Blake  <eblake@redhat.com>
6637
6638         snprintf: guarantee %1$d, for libintl
6639         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
6640         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
6641         * doc/posix-functions/snprintf.texi (snprintf): Update.
6642         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6643         * tests/test-snprintf.c (main): Enhance test.
6644         * tests/test-vsnprintf.c (main): Likewise.
6645
6646 2011-07-05  Jim Meyering  <meyering@redhat.com>
6647
6648         maint: exempt stdio-read.c and stdio-write.c from the cppi check
6649         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
6650         per Bruno's request, to accommodate this idiom (no space after "#")
6651         even when the function is inside an #if block:
6652         char *
6653         gets (char *s)
6654         #undef gets
6655         {
6656           ...
6657         }
6658
6659 2011-07-04  Jim Meyering  <meyering@redhat.com>
6660
6661         maint: indent with spaces, not TABs, and add a rule to check this
6662         * tests/test-userspec.c: Indent with spaces, not TABs.
6663         * tests/test-argp.c: Likewise.
6664         * tests/test-c-stack2.sh: Likewise.
6665         * tests/test-parse-duration.sh: Likewise
6666         * m4/strtod.m4: Likewise.
6667         * m4/alloca.m4: Likewise.
6668         * m4/pselect.m4: Likewise.
6669         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
6670
6671 2011-07-03  Jim Meyering  <meyering@redhat.com>
6672
6673         maint.mk: correct omissions in prohibit_argmatch_without_use check
6674         This rule would mistakenly report that argmatch.h is included without
6675         use even when both the argmatch and invalid_arg macro were used.
6676         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
6677         of argmatch and invalid_arg.
6678
6679 2011-07-03  Bruno Haible  <bruno@clisp.org>
6680
6681         Comments about EINTR.
6682         * lib/safe-read.h: Explain the purpose of this module.
6683         * lib/safe-write.h: Likewise.
6684         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
6685         module.
6686         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
6687         module.
6688         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
6689
6690 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
6691
6692         xnanosleep: Rewrite to use new dtotimespec module.
6693         It has the conversion code that used to be in xnanosleep.
6694         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
6695         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
6696         (TIME_T_MAX): Remove.
6697         (xnanosleep): Rewrite in terms of dtotimespec.
6698         * modules/xnanosleep (Depends-on): Add dtotimespec.
6699         Remove intprops, stdbool.
6700
6701         timespec-add, timespec-sub: new modules
6702         * lib/timespec.h (timespec_add, timespec_sub): New decls.
6703         * lib/timespec-add.c, lib/timespec-sub.c:
6704         * modules/timespec-add, modules/timespec-sub: New files.
6705
6706         dtotimespec: new module
6707         * lib/timespec.h (dtotimespec): New decl.
6708         * lib/dtotimespec.c, modules/dtotimespec: New files.
6709
6710         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
6711
6712         pselect: new module
6713         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
6714         (pselect): New decls.
6715         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
6716         since the standard pselect decl uses 'restrict'.
6717         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
6718         HAVE_PSELECT, REPLACE_PSELECT.
6719         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
6720         HAVE_PSELECT, REPLACE_PSELECT.
6721         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
6722
6723         sys_select: don't depend on sys_socket
6724         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
6725         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
6726         This fix works on GNU and GNU-like platforms, but has not been tested
6727         on native Windows.
6728         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
6729         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
6730         gl_HEADER_SYS_SOCKET.
6731         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
6732         gl_PREREQ_SYS_H_WINSOCK2.
6733
6734 2011-06-29  Eric Blake  <eblake@redhat.com>
6735
6736         pipe2: fix C89 compile problem
6737         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
6738         Reported by Bruno Haible.
6739
6740         pipe, pipe2: don't corrupt fd on error
6741         * lib/pipe.c (pipe): Leave fd unchanged on error.
6742         * lib/pipe2.c (pipe2): Likewise.
6743         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
6744         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
6745
6746 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
6747
6748         mmap-anon: do not use regular expressions inadvertently
6749         * m4/mmap-anon.m4: Remove trailing period from strings sought
6750         in the output.
6751
6752 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
6753
6754         nanosleep: fix integer overflow problem
6755         * lib/nanosleep.c (my_usleep): Don't assume signed integer
6756         arithmetic wraps around on overflow.
6757
6758         nanosleep: simplify carrying
6759         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
6760         first call to the underyling nanosleep, not for the last one.
6761         This doesn't fix any bugs, but it simplifies the computation of
6762         the remaining delay.  Found while auditing integer overflow issues.
6763
6764         dup2: remove test for existence of fcntl
6765         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
6766         "#if HAVE_FCNTL", in the configure-time test program.
6767         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
6768         and therefore speeds up "configure" a bit.  Found while
6769         adding the dup2 module to Emacs.
6770
6771 2011-06-24  Eric Blake  <eblake@redhat.com>
6772
6773         maint.mk: enhance useless header checks
6774         * top/maint.mk (_sc_header_without_use): Check both include
6775         styles.
6776         (sc_prohibit_assert_without_use)
6777         (sc_prohibit_close_stream_without_use)
6778         (sc_prohibit_getopt_without_use)
6779         (sc_prohibit_quotearg_without_use)
6780         (sc_prohibit_quote_without_use)
6781         (sc_prohibit_long_options_without_use)
6782         (sc_prohibit_inttostr_without_use)
6783         (sc_prohibit_ignore_value_without_use)
6784         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
6785         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
6786         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
6787         (sc_prohibit_hash_pjw_without_use)
6788         (sc_prohibit_safe_read_without_use)
6789         (sc_prohibit_argmatch_without_use)
6790         (sc_prohibit_canonicalize_without_use)
6791         (sc_prohibit_root_dev_ino_without_use)
6792         (sc_prohibit_openat_without_use)
6793         (sc_prohibit_c_ctype_without_use)
6794         (sc_prohibit_signal_without_use)
6795         (sc_prohibit_stdio--_without_use)
6796         (sc_prohibit_stdio-safer_without_use)
6797         (sc_prohibit_strings_without_use)
6798         (sc_prohibit_intprops_without_use)
6799         (sc_prohibit_stddef_without_use)
6800         (sc_prohibit_xfreopen_without_use): Update clients.
6801
6802 2011-06-24  Jim Meyering  <meyering@redhat.com>
6803
6804         syntax-check: keep one maint.mk rule in sync with its header
6805         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
6806         of the bug Eric has just fixed, with today's commit 25e4c2ec.
6807         I prefer to avoid temporary files here, so use <(...), but that
6808         is not supported by /bin/sh, so...
6809         (SHELL): Define to /bin/bash.
6810
6811 2011-06-24  Eric Blake  <eblake@redhat.com>
6812
6813         maint.mk: update sc_prohibit_intprops_without_use
6814         * top/maint.mk (_intprops_names): Match recent changes.
6815
6816 2011-06-24  Bruno Haible  <bruno@clisp.org>
6817
6818         strerror-override: No-op tweak.
6819         * lib/strerror-override.h (strerror_override): Reorder conditions,
6820         for consistency with lib/strerror-override.c.
6821
6822 2011-06-23  Eric Blake  <eblake@redhat.com>
6823
6824         maint.mk: test further PATH_MAX issues
6825         * top/maint.mk (sc_prohibit_path_max_array): Rename...
6826         (sc_prohibit_path_max_allocation): ...and also test alloca.
6827         Suggested by Jim Meyering.
6828
6829 2011-06-22  Eric Blake  <eblake@redhat.com>
6830
6831         maint.mk: add syntax-check to avoid char[PATH_MAX]
6832         * top/maint.mk (sc_prohibit_path_max_array): New rule.
6833
6834         stat: be robust to PATH_MAX definition
6835         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
6836         * modules/stat (Depends-on): Add verify.
6837
6838         link: work around IRIX bug
6839         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
6840         * lib/link.c (rpl_link): Work around it.
6841         * tests/test-link.h (test_link): Enhance test.
6842         * doc/posix-functions/link.texi (link): Document the bug.
6843
6844         getopt: silence clang warning
6845         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
6846         dereference.
6847         Reported by Gustavo Martin Domato.
6848
6849 2011-06-22  Jim Meyering  <meyering@redhat.com>
6850
6851         bootstrap: do not insert a blank line into each .gitignore file
6852         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
6853
6854 2011-06-21  Eric Blake  <eblake@redhat.com>
6855
6856         perror: test for output mismatch
6857         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
6858         perror on IRIX.
6859
6860         strerror_r: fix OpenBSD behavior on out-of-range
6861         * lib/strerror_r.c (strerror_r): Always use maximal string.
6862         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6863
6864         strerror_r: fix OpenBSD behavior on 0
6865         * lib/strerror-override.c (strerror_override): Also override 0
6866         when needed.
6867         * lib/strerror-override.h (strerror_override): Likewise.
6868         * lib/strerror.c (strerror): Simplify, now that 0 override is done
6869         earlier.
6870         * lib/strerror_r.c (strerror_r): Likewise.
6871         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
6872         behavior...
6873         (gl_FUNC_STRERROR_0): ...into new macro.
6874         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
6875         is overridden.
6876         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
6877         * modules/strerror-override (Files): Add strerror.m4.
6878         (configure.ac): Also provide override for 0 when needed.
6879         * doc/posix-functions/strerror.texi (strerror): Document this.
6880         * doc/posix-functions/perror.texi (perror): Likewise.
6881
6882         perror: adjust array size
6883         * modules/perror (Depends-on): Add strerror-override.
6884         * lib/perror.c (perror): Use it to avoid magic number.
6885
6886         strerror-override: reduce size
6887         * lib/strerror-override.c (strerror_override): Use fewer lines.
6888
6889 2011-06-20  Bruno Haible  <bruno@clisp.org>
6890
6891         pathmax: Ensure correct value for PATH_MAX on HP-UX.
6892         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
6893
6894 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
6895
6896         alloca: port to compilers that can optimize like GCC 4.6.0
6897         * lib/alloca.c (find_stack_direction): New signature, taken from
6898         Autoconf git.  This works with GCC 4.6.0.  This code should never
6899         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
6900         be used with other compilers that optimize as well as GCC 4.6.0 does.
6901         (alloca): Adjust to new signature.
6902         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
6903         New macro, which patches Autoconf in a similar way.
6904
6905         c-stack: stop worrying about stack direction
6906         * lib/c-stack.c (find_stack_direction): Remove.
6907         (segv_handler): Don't worry about stack direction growth, as it's
6908         too much of a pain to configure this correctly, given how compilers
6909         are optimizing-away our stack-growth detection code.  Instead, assume
6910         that any access to just before or just after the stack is OK.
6911         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
6912         Don't require AC_FUNC_ALLOCA; no longer needed.
6913
6914 2011-06-20  Eric Blake  <eblake@redhat.com>
6915
6916         test-stat: don't allocate PATH_MAX bytes
6917         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
6918         PATH_MAX-sized buffer.
6919         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
6920         * modules/stat-tests (Depends-on): Likewise.
6921         * tests/test-fstatat.c (includes): Drop pathmax.h.
6922         * tests/test-stat.c (includes): Likewise.
6923         Reported by Bruno Haible.
6924
6925 2011-06-20  Bruno Haible  <bruno@clisp.org>
6926
6927         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
6928         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
6929         * lib/float.c: New file.
6930         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
6931         REPLACE_FLOAT_LDBL.
6932         * modules/float (Files): Add lib/float.c.
6933         (configure.ac): Invoke AC_LIBOBJ.
6934         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
6935
6936 2011-06-20  Bruno Haible  <bruno@clisp.org>
6937
6938         Tests for module 'float'.
6939         * modules/float-tests: New file.
6940         * tests/test-float.c: New file.
6941
6942 2011-06-19  Bruno Haible  <bruno@clisp.org>
6943
6944         isinf: Coding style.
6945         * lib/isinf.c: Use GNU coding style.
6946
6947 2011-06-19  Bruno Haible  <bruno@clisp.org>
6948
6949         linkat test: Avoid test failure on AIX 7.1.
6950         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
6951         * tests/test-link.h (test_link): Likewise.
6952
6953 2011-06-19  Bruno Haible  <bruno@clisp.org>
6954
6955         pread test: Avoid test failure on OpenBSD 4.9.
6956         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
6957
6958 2011-06-19  Bruno Haible  <bruno@clisp.org>
6959
6960         sprintf-posix: Fix test failure on AIX 7.1.
6961         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
6962         * doc/posix-functions/dprintf.texi: Mention limited precision problem
6963         on AIX.
6964         * doc/posix-functions/fprintf.texi: Likewise.
6965         * doc/posix-functions/printf.texi: Likewise.
6966         * doc/posix-functions/snprintf.texi: Likewise.
6967         * doc/posix-functions/sprintf.texi: Likewise.
6968         * doc/posix-functions/vdprintf.texi: Likewise.
6969         * doc/posix-functions/vfprintf.texi: Likewise.
6970         * doc/posix-functions/vprintf.texi: Likewise.
6971         * doc/posix-functions/vsnprintf.texi: Likewise.
6972         * doc/posix-functions/vsprintf.texi: Likewise.
6973
6974 2011-06-19  Bruno Haible  <bruno@clisp.org>
6975
6976         roundl-ieee: Fix test failure on AIX 7.1.
6977         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
6978         * doc/posix-functions/roundl.texi: Mention problem with negative
6979         arguments.
6980
6981 2011-06-19  Bruno Haible  <bruno@clisp.org>
6982
6983         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6984         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
6985         * doc/posix-functions/round.texi: Mention problem with negative
6986         arguments.
6987         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
6988
6989 2011-06-19  Bruno Haible  <bruno@clisp.org>
6990
6991         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
6992         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
6993         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
6994         * doc/posix-functions/roundf.texi: Mention problem with negative
6995         arguments.
6996         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
6997
6998 2011-06-19  Bruno Haible  <bruno@clisp.org>
6999
7000         ceilf-ieee: Work around bug on MacOS X 10.5.
7001         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
7002
7003         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
7004         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
7005         IEEE compliant, avoid compiler optimizations.
7006         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
7007         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
7008         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
7009         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
7010         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
7011         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
7012         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
7013         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7014         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7015         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
7016
7017 2011-06-19  Bruno Haible  <bruno@clisp.org>
7018
7019         ceilf-ieee: Work around bug on AIX 7.1.
7020         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
7021         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
7022
7023 2011-06-19  Bruno Haible  <bruno@clisp.org>
7024
7025         ceil-ieee: Work around bug on AIX 7.1.
7026         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
7027         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
7028
7029 2011-06-18  Bruno Haible  <bruno@clisp.org>
7030
7031         fsync test: Avoid test failure on MacOS X and AIX.
7032         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
7033         EINVAL.
7034
7035 2011-06-18  Bruno Haible  <bruno@clisp.org>
7036
7037         openat, fdopendir tests: Fix link errors.
7038         * modules/openat-tests (Depends-on): Add progname.
7039         * modules/fdopendir-tests (Depends-on): Likewise.
7040         * tests/test-fchownat.c: Include progname.h.
7041         (main): Call set_program_name.
7042         * tests/test-fstatat.c: Include progname.h.
7043         (main): Call set_program_name.
7044         * tests/test-mkdirat.c: Include progname.h.
7045         (main): Call set_program_name.
7046         * tests/test-openat.c: Include progname.h.
7047         (main): Call set_program_name.
7048         * tests/test-unlinkat.c: Include progname.h.
7049         (main): Call set_program_name.
7050         * tests/test-fdopendir.c: Include progname.h.
7051         (main): Call set_program_name.
7052
7053 2011-06-18  Bruno Haible  <bruno@clisp.org>
7054
7055         Doc update.
7056         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
7057         HP-UX.
7058         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
7059
7060 2011-06-18  Bruno Haible  <bruno@clisp.org>
7061
7062         getcwd tests: Avoid compilation error on HP-UX 11.31.
7063         * modules/getcwd-tests (Depends-on): Add pathmax.
7064         * tests/test-getcwd.c: Include pathmax.h.
7065
7066 2011-06-18  Bruno Haible  <bruno@clisp.org>
7067
7068         isfinite, isinf: Fix link error on AIX 6 and 7.
7069         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
7070         needed, also test the macro with a 'float' argument.
7071         * m4/isinf.m4 (gl_ISINF): Likewise.
7072
7073 2011-06-18  Bruno Haible  <bruno@clisp.org>
7074
7075         getloadavg: Don't clobber LIBS. Regression from previous commit.
7076         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
7077         AC_CHECK_LIB from here...
7078         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
7079         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
7080         gl_func_getloadavg_done.
7081         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7082
7083 2011-06-18  Bruno Haible  <bruno@clisp.org>
7084
7085         clean-temp: Improve documentation.
7086         * lib/clean-temp.h: Explain better how to use this module.
7087         Reported by John Darrington <john@darrington.wattle.id.au>.
7088
7089 2011-06-17  Bruno Haible  <bruno@clisp.org>
7090
7091         pread, pwrite: Avoid cc warning on AIX.
7092         * lib/unistd.in.h (pread): Undefine before defining as a macro.
7093         (pwrite): Likewise.
7094
7095 2011-06-17  Bruno Haible  <bruno@clisp.org>
7096
7097         spawn-pipe tests: Fix link error.
7098         * tests/test-spawn-pipe-child.c: Undefine fprintf.
7099         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7100
7101 2011-06-17  Bruno Haible  <bruno@clisp.org>
7102
7103         Tests: Remove unnecessary dependency.
7104         * modules/canonicalize-tests (Depends-on): Remove progname.
7105         * modules/chown-tests (Depends-on): Likewise.
7106         * modules/dirname-tests (Depends-on): Likewise.
7107         * modules/fdopendir-tests (Depends-on): Likewise.
7108         * modules/fdutimensat-tests (Depends-on): Likewise.
7109         * modules/hash-tests (Depends-on): Likewise.
7110         * modules/lchown-tests (Depends-on): Likewise.
7111         * modules/linkat-tests (Depends-on): Likewise.
7112         * modules/renameat-tests (Depends-on): Likewise.
7113         * modules/spawn-pipe-tests (Depends-on): Likewise.
7114         * modules/utimensat-tests (Depends-on): Likewise.
7115
7116 2011-06-17  Bruno Haible  <bruno@clisp.org>
7117
7118         spawn-pipe tests: Fix link error.
7119         * tests/test-spawn-pipe-child.c: Undefine fflush.
7120
7121 2011-06-17  Bruno Haible  <bruno@clisp.org>
7122
7123         Fix tests link errors.
7124         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
7125         * modules/chown-tests (Makefile.am): Don't link test-chown with
7126         LIBINTL.
7127         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
7128         LIBINTL.
7129         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
7130         LIBINTL.
7131         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
7132         LIBINTL.
7133
7134 2011-06-16  Bruno Haible  <bruno@clisp.org>
7135
7136         crypto/gc-sha1: Fix recent regression.
7137         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
7138         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
7139
7140         crypto/gc-md5: Fix recent regression.
7141         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
7142
7143         crypto/gc-md4: Fix recent regression.
7144         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
7145         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
7146
7147         crypto/gc-arctwo: Fix recent regression.
7148         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
7149         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
7150
7151         crypto/gc-rijndael: Fix recent regression.
7152         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
7153         (configure.ac): Invoke AC_LIBOBJ here.
7154         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
7155         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7156
7157         crypto/gc-hmac-sha1: Fix recent regression.
7158         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
7159         (configure.ac): Invoke AC_LIBOBJ here.
7160         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
7161         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7162
7163         crypto/gc-hmac-md5: Fix recent regression.
7164         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
7165         (configure.ac): Invoke AC_LIBOBJ here.
7166         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
7167         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7168
7169         crypto/gc-des: Fix recent regression.
7170         * modules/crypto/gc-des (Files): Remove m4/des.m4.
7171         (configure.ac): Invoke AC_LIBOBJ here.
7172         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
7173         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7174
7175         crypto/gc-arcfour: Fix recent regression.
7176         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
7177         (configure.ac): Invoke AC_LIBOBJ here.
7178         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
7179         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7180
7181 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
7182
7183         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
7184         After the 2011-05-21 change, this macro requires
7185         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
7186         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
7187
7188 2011-06-16  Bruno Haible  <bruno@clisp.org>
7189
7190         fprintftime: Move AC_LIBOBJ invocations to module description.
7191         * m4/fprintftime.m4: Remove file.
7192         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
7193         (configure.ac): Remove gl_FPRINTFTIME call.
7194         (Makefile.am): Augment lib_SOURCES.
7195         Reported by Jim Meyering.
7196
7197 2011-06-16  Bruno Haible  <bruno@clisp.org>
7198
7199         tmpfile-safer: Finish 2011-05-23 commit.
7200         * m4/stdio-safer.m4: Really remove file.
7201         Reported by Jim Meyering.
7202
7203 2011-06-16  Bruno Haible  <bruno@clisp.org>
7204
7205         syntax-check: Fix typo.
7206         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
7207         printf-posix.m4.
7208         Reported by Jim Meyering.
7209
7210 2011-06-13  Jim Meyering  <meyering@redhat.com>
7211
7212         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
7213         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
7214
7215 2011-05-23  Bruno Haible  <bruno@clisp.org>
7216
7217         yesno: Move AC_LIBOBJ invocations to module description.
7218         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
7219         * modules/yesno (Makefile.am): Augment lib_SOURCES.
7220
7221 2011-05-23  Bruno Haible  <bruno@clisp.org>
7222
7223         xstrtol: Move AC_LIBOBJ invocations to module description.
7224         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
7225         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
7226
7227 2011-05-23  Bruno Haible  <bruno@clisp.org>
7228
7229         xstrtold: Move AC_LIBOBJ invocations to module description.
7230         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
7231         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
7232
7233 2011-05-23  Bruno Haible  <bruno@clisp.org>
7234
7235         xstrtod: Move AC_LIBOBJ invocations to module description.
7236         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
7237         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
7238
7239 2011-05-23  Bruno Haible  <bruno@clisp.org>
7240
7241         xnanosleep: Move AC_LIBOBJ invocations to module description.
7242         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
7243         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
7244
7245 2011-05-23  Bruno Haible  <bruno@clisp.org>
7246
7247         xgetcwd: Move AC_LIBOBJ invocations to module description.
7248         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
7249         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
7250
7251 2011-05-23  Bruno Haible  <bruno@clisp.org>
7252
7253         xalloc: Move AC_LIBOBJ invocations to module description.
7254         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
7255         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
7256
7257 2011-05-23  Bruno Haible  <bruno@clisp.org>
7258
7259         write-any-file: Move AC_LIBOBJ invocations to module description.
7260         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
7261         invocation.
7262         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
7263
7264 2011-05-23  Bruno Haible  <bruno@clisp.org>
7265
7266         utimens: Move AC_LIBOBJ invocations to module description.
7267         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
7268         * modules/utimens (Makefile.am): Augment lib_SOURCES.
7269
7270 2011-05-23  Bruno Haible  <bruno@clisp.org>
7271
7272         utimecmp: Move AC_LIBOBJ invocations to module description.
7273         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
7274         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
7275
7276 2011-05-23  Bruno Haible  <bruno@clisp.org>
7277
7278         userspec: Move AC_LIBOBJ invocations to module description.
7279         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
7280         * modules/userspec (Makefile.am): Augment lib_SOURCES.
7281
7282 2011-05-23  Bruno Haible  <bruno@clisp.org>
7283
7284         unlinkdir: Move AC_LIBOBJ invocations to module description.
7285         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
7286         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
7287
7288 2011-05-23  Bruno Haible  <bruno@clisp.org>
7289
7290         unistd-safer: Move AC_LIBOBJ invocations to module description.
7291         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
7292         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
7293
7294 2011-05-23  Bruno Haible  <bruno@clisp.org>
7295
7296         tempname: Move AC_LIBOBJ invocations to module description.
7297         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
7298         * modules/tempname (Makefile.am): Augment lib_SOURCES.
7299
7300 2011-05-23  Bruno Haible  <bruno@clisp.org>
7301
7302         strftime: Move AC_LIBOBJ invocations to module description.
7303         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
7304         * modules/strftime (Makefile.am): Augment lib_SOURCES.
7305
7306 2011-05-23  Bruno Haible  <bruno@clisp.org>
7307
7308         stdlib-safer: Move AC_LIBOBJ invocations to module description.
7309         * m4/stdlib-safer.m4: Remove file.
7310         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
7311         (configure.ac): Remove gl_STDLIB_SAFER call.
7312         (Makefile.am): Augment lib_SOURCES.
7313
7314 2011-05-23  Bruno Haible  <bruno@clisp.org>
7315
7316         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
7317         * m4/stdio-safer.m4: Remove file.
7318         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
7319         (configure.ac): Remove gl_TMPFILE_SAFER call.
7320         (Makefile.am): Augment lib_SOURCES.
7321
7322 2011-05-23  Bruno Haible  <bruno@clisp.org>
7323
7324         popen-safer: Move AC_LIBOBJ invocations to module description.
7325         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
7326         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
7327         (configure.ac): Remove gl_POPEN_SAFER call.
7328         (Makefile.am): Augment lib_SOURCES.
7329
7330 2011-05-23  Bruno Haible  <bruno@clisp.org>
7331
7332         freopen-safer: Move AC_LIBOBJ invocations to module description.
7333         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
7334         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
7335         (configure.ac): Remove gl_FREOPEN_SAFER call.
7336         (Makefile.am): Augment lib_SOURCES.
7337
7338 2011-05-23  Bruno Haible  <bruno@clisp.org>
7339
7340         fopen-safer: Move AC_LIBOBJ invocations to module description.
7341         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
7342         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
7343         (configure.ac): Remove gl_FOPEN_SAFER call.
7344         (Makefile.am): Augment lib_SOURCES.
7345
7346 2011-05-23  Bruno Haible  <bruno@clisp.org>
7347
7348         crypto/sha512: Move AC_LIBOBJ invocations to module description.
7349         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
7350         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
7351
7352 2011-05-23  Bruno Haible  <bruno@clisp.org>
7353
7354         crypto/sha256: Move AC_LIBOBJ invocations to module description.
7355         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
7356         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
7357
7358 2011-05-23  Bruno Haible  <bruno@clisp.org>
7359
7360         crypto/sha1: Move AC_LIBOBJ invocations to module description.
7361         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
7362         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
7363
7364 2011-05-23  Bruno Haible  <bruno@clisp.org>
7365
7366         settime: Move AC_LIBOBJ invocations to module description.
7367         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
7368         * modules/settime (Makefile.am): Augment lib_SOURCES.
7369
7370 2011-05-23  Bruno Haible  <bruno@clisp.org>
7371
7372         savedir: Move AC_LIBOBJ invocations to module description.
7373         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
7374         * modules/savedir (Makefile.am): Augment lib_SOURCES.
7375
7376 2011-05-23  Bruno Haible  <bruno@clisp.org>
7377
7378         save-cwd: Move AC_LIBOBJ invocations to module description.
7379         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
7380         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
7381
7382 2011-05-23  Bruno Haible  <bruno@clisp.org>
7383
7384         same: Move AC_LIBOBJ invocations to module description.
7385         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
7386         * modules/same (Makefile.am): Augment lib_SOURCES.
7387
7388 2011-05-23  Bruno Haible  <bruno@clisp.org>
7389
7390         safe-write: Move AC_LIBOBJ invocations to module description.
7391         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
7392         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
7393         instead of gl_SAFE_WRITE.
7394         (Makefile.am): Augment lib_SOURCES.
7395
7396 2011-05-23  Bruno Haible  <bruno@clisp.org>
7397
7398         safe-read: Move AC_LIBOBJ invocations to module description.
7399         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
7400         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
7401         of gl_SAFE_READ.
7402         (Makefile.am): Augment lib_SOURCES.
7403
7404 2011-05-23  Bruno Haible  <bruno@clisp.org>
7405
7406         safe-alloc: Move AC_LIBOBJ invocations to module description.
7407         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
7408         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
7409
7410 2011-05-23  Bruno Haible  <bruno@clisp.org>
7411
7412         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
7413         * m4/rijndael.m4: Remove file.
7414         * modules/crypto/rijndael (Files): Remove it.
7415         (configure.ac): Remove gl_RIJNDAEL call.
7416         (Makefile.am): Augment lib_SOURCES.
7417
7418 2011-05-23  Bruno Haible  <bruno@clisp.org>
7419
7420         readtokens: Move AC_LIBOBJ invocations to module description.
7421         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
7422         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
7423
7424 2011-05-23  Bruno Haible  <bruno@clisp.org>
7425
7426         read-file: Move AC_LIBOBJ invocations to module description.
7427         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
7428         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
7429         of gl_FUNC_READ_FILE.
7430         (Makefile.am): Augment lib_SOURCES.
7431
7432 2011-05-23  Bruno Haible  <bruno@clisp.org>
7433
7434         quotearg: Move AC_LIBOBJ invocations to module description.
7435         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
7436         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
7437
7438 2011-05-23  Bruno Haible  <bruno@clisp.org>
7439
7440         quote: Move AC_LIBOBJ invocations to module description.
7441         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
7442         * modules/quote (Makefile.am): Augment lib_SOURCES.
7443
7444 2011-05-23  Bruno Haible  <bruno@clisp.org>
7445
7446         posixver: Move AC_LIBOBJ invocations to module description.
7447         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
7448         * modules/posixver (Makefile.am): Augment lib_SOURCES.
7449
7450 2011-05-23  Bruno Haible  <bruno@clisp.org>
7451
7452         posixtm: Move AC_LIBOBJ invocations to module description.
7453         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
7454         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
7455
7456 2011-05-23  Bruno Haible  <bruno@clisp.org>
7457
7458         physmem: Move AC_LIBOBJ invocations to module description.
7459         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
7460         * modules/physmem (Makefile.am): Augment lib_SOURCES.
7461
7462 2011-05-23  Bruno Haible  <bruno@clisp.org>
7463
7464         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
7465         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
7466         invocation.
7467         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
7468
7469 2011-05-23  Bruno Haible  <bruno@clisp.org>
7470
7471         mpsort: Move AC_LIBOBJ invocations to module description.
7472         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
7473         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
7474
7475 2011-05-23  Bruno Haible  <bruno@clisp.org>
7476
7477         modechange: Move AC_LIBOBJ invocations to module description.
7478         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
7479         * modules/modechange (Makefile.am): Augment lib_SOURCES.
7480
7481 2011-05-23  Bruno Haible  <bruno@clisp.org>
7482
7483         mkdir-p: Move AC_LIBOBJ invocations to module description.
7484         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
7485         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
7486
7487 2011-05-23  Bruno Haible  <bruno@clisp.org>
7488
7489         mkancesdirs: Move AC_LIBOBJ invocations to module description.
7490         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
7491         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
7492
7493 2011-05-23  Bruno Haible  <bruno@clisp.org>
7494
7495         mgetgroups: Move AC_LIBOBJ invocations to module description.
7496         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
7497         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
7498
7499 2011-05-23  Bruno Haible  <bruno@clisp.org>
7500
7501         memxor: Move AC_LIBOBJ invocations to module description.
7502         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
7503         * modules/memxor (Makefile.am): Augment lib_SOURCES.
7504
7505 2011-05-23  Bruno Haible  <bruno@clisp.org>
7506
7507         memcoll: Move AC_LIBOBJ invocations to module description.
7508         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
7509         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
7510
7511 2011-05-23  Bruno Haible  <bruno@clisp.org>
7512
7513         memcasecmp: Move AC_LIBOBJ invocations to module description.
7514         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
7515         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
7516
7517 2011-05-23  Bruno Haible  <bruno@clisp.org>
7518
7519         crypto/md5: Move AC_LIBOBJ invocations to module description.
7520         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
7521         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
7522
7523 2011-05-23  Bruno Haible  <bruno@clisp.org>
7524
7525         crypto/md4: Move AC_LIBOBJ invocations to module description.
7526         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
7527         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
7528
7529 2011-05-23  Bruno Haible  <bruno@clisp.org>
7530
7531         crypto/md2: Move AC_LIBOBJ invocations to module description.
7532         * m4/md2.m4: Remove file.
7533         * modules/crypto/md2 (Files): Remove it.
7534         (configure.ac): Remove gl_MD2 call.
7535         (Makefile.am): Augment lib_SOURCES.
7536
7537 2011-05-23  Bruno Haible  <bruno@clisp.org>
7538
7539         long-options: Move AC_LIBOBJ invocations to module description.
7540         * m4/long-options.m4: Remove file.
7541         * modules/long-options (Files): Remove it.
7542         (configure.ac): Remove gl_LONG_OPTIONS call.
7543         (Makefile.am): Augment lib_SOURCES.
7544
7545 2011-05-23  Bruno Haible  <bruno@clisp.org>
7546
7547         i-ring: Move AC_LIBOBJ invocations to module description.
7548         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
7549         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
7550
7551 2011-05-23  Bruno Haible  <bruno@clisp.org>
7552
7553         idcache: Move AC_LIBOBJ invocations to module description.
7554         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
7555         * modules/idcache (Makefile.am): Augment lib_SOURCES.
7556
7557 2011-05-23  Bruno Haible  <bruno@clisp.org>
7558
7559         human: Move AC_LIBOBJ invocations to module description.
7560         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
7561         * modules/human (Makefile.am): Augment lib_SOURCES.
7562
7563 2011-05-23  Bruno Haible  <bruno@clisp.org>
7564
7565         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
7566         * m4/hmac-sha1.m4: Remove file.
7567         * modules/crypto/hmac-sha1 (Files): Remove it.
7568         (configure.ac): Remove gl_HMAC_SHA1 call.
7569         (Makefile.am): Augment lib_SOURCES.
7570
7571 2011-05-23  Bruno Haible  <bruno@clisp.org>
7572
7573         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
7574         * m4/hmac-md5.m4: Remove file.
7575         * modules/crypto/hmac-md5 (Files): Remove it.
7576         (configure.ac): Remove gl_HMAC_MD5 call.
7577         (Makefile.am): Augment lib_SOURCES.
7578
7579 2011-05-23  Bruno Haible  <bruno@clisp.org>
7580
7581         hash: Move AC_LIBOBJ invocations to module description.
7582         * m4/hash.m4: Remove file.
7583         * modules/hash (Files): Remove it.
7584         (configure.ac): Remove gl_HASH call.
7585         (Makefile.am): Augment lib_SOURCES.
7586
7587 2011-05-23  Bruno Haible  <bruno@clisp.org>
7588
7589         hard-locale: Move AC_LIBOBJ invocations to module description.
7590         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
7591         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
7592
7593 2011-05-23  Bruno Haible  <bruno@clisp.org>
7594
7595         getugroups: Move AC_LIBOBJ invocations to module description.
7596         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
7597         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
7598
7599 2011-05-23  Bruno Haible  <bruno@clisp.org>
7600
7601         gettime: Move AC_LIBOBJ invocations to module description.
7602         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
7603         * modules/gettime (Makefile.am): Augment lib_SOURCES.
7604
7605 2011-05-23  Bruno Haible  <bruno@clisp.org>
7606
7607         getndelim2: Move AC_LIBOBJ invocations to module description.
7608         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
7609         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
7610
7611 2011-05-23  Bruno Haible  <bruno@clisp.org>
7612
7613         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
7614         * m4/gc-pbkdf2-sha1.m4: Remove file.
7615         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
7616         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
7617         (Makefile.am): Augment lib_SOURCES.
7618
7619 2011-05-23  Bruno Haible  <bruno@clisp.org>
7620
7621         fts: Move AC_LIBOBJ invocations to module description.
7622         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
7623         * modules/fts (configure.ac): ... to here.
7624
7625 2011-05-23  Bruno Haible  <bruno@clisp.org>
7626
7627         file-type: Move AC_LIBOBJ invocations to module description.
7628         * m4/file-type.m4: Remove file.
7629         * modules/file-type (Files): Remove it.
7630         (configure.ac): Remove gl_FILE_TYPE call.
7631         (Makefile.am): Augment lib_SOURCES.
7632
7633 2011-05-23  Bruno Haible  <bruno@clisp.org>
7634
7635         filenamecat*: Respect rules for use of AC_LIBOBJ.
7636         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
7637         Remove AC_LIBOBJ invocation.
7638         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
7639         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
7640
7641 2011-05-23  Bruno Haible  <bruno@clisp.org>
7642
7643         filemode: Move AC_LIBOBJ invocations to module description.
7644         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
7645         * modules/filemode (Makefile.am): Augment lib_SOURCES.
7646
7647 2011-05-23  Bruno Haible  <bruno@clisp.org>
7648
7649         openat-safer: Move AC_LIBOBJ invocations to module description.
7650         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
7651         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
7652
7653 2011-05-23  Bruno Haible  <bruno@clisp.org>
7654
7655         fcntl-safer: Move AC_LIBOBJ invocations to module description.
7656         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
7657         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
7658
7659 2011-05-23  Bruno Haible  <bruno@clisp.org>
7660
7661         exclude: Move AC_LIBOBJ invocations to module description.
7662         * m4/exclude.m4: Remove file.
7663         * modules/exclude (Files): Remove it.
7664         (configure.ac): Remove gl_EXCLUDE call.
7665         (Makefile.am): Augment lib_SOURCES.
7666
7667 2011-05-23  Bruno Haible  <bruno@clisp.org>
7668
7669         dirname*: Respect rules for use of AC_LIBOBJ.
7670         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
7671         invocations.
7672         * modules/dirname (Makefile.am): Augment lib_SOURCES.
7673         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
7674
7675 2011-05-23  Bruno Haible  <bruno@clisp.org>
7676
7677         dirent-safer: Move AC_LIBOBJ invocations to module description.
7678         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
7679         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
7680
7681 2011-05-23  Bruno Haible  <bruno@clisp.org>
7682
7683         crypto/des: Move AC_LIBOBJ invocations to module description.
7684         * m4/des.m4: Remove file.
7685         * modules/crypto/des (Files): Remove it.
7686         (configure.ac): Remove gl_DES call.
7687         (Makefile.am): Augment lib_SOURCES.
7688
7689 2011-05-23  Bruno Haible  <bruno@clisp.org>
7690
7691         cycle-check: Move AC_LIBOBJ invocations to module description.
7692         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
7693         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
7694
7695 2011-05-23  Bruno Haible  <bruno@clisp.org>
7696
7697         c-strtold: Move AC_LIBOBJ invocations to module description.
7698         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
7699         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
7700
7701 2011-05-23  Bruno Haible  <bruno@clisp.org>
7702
7703         c-strtod: Move AC_LIBOBJ invocations to module description.
7704         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
7705         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
7706
7707 2011-05-23  Bruno Haible  <bruno@clisp.org>
7708
7709         crc: Move AC_LIBOBJ invocations to module description.
7710         * m4/crc.m4: Remove file.
7711         * modules/crc (Files): Remove it.
7712         (configure.ac): Remove gl_CRC call.
7713         (Makefile.am): Augment lib_SOURCES.
7714
7715 2011-05-23  Bruno Haible  <bruno@clisp.org>
7716
7717         close-stream: Move AC_LIBOBJ invocations to module description.
7718         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
7719         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
7720
7721 2011-05-23  Bruno Haible  <bruno@clisp.org>
7722
7723         closeout: Move AC_LIBOBJ invocations to module description.
7724         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
7725         * modules/closeout (Makefile.am): Augment lib_SOURCES.
7726
7727 2011-05-23  Bruno Haible  <bruno@clisp.org>
7728
7729         closein: Move AC_LIBOBJ invocations to module description.
7730         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
7731         * modules/closein (Makefile.am): Augment lib_SOURCES.
7732
7733 2011-05-23  Bruno Haible  <bruno@clisp.org>
7734
7735         cloexec: Move AC_LIBOBJ invocations to module description.
7736         * m4/cloexec.m4: Remove file.
7737         * modules/cloexec (Files): Remove it.
7738         (configure.ac): Remove gl_CLOEXEC call.
7739         (Makefile.am): Augment lib_SOURCES.
7740
7741 2011-05-23  Bruno Haible  <bruno@clisp.org>
7742
7743         check-version: Move AC_LIBOBJ invocations to module description.
7744         * m4/check-version.m4: Remove file.
7745         * modules/check-version (Files): Remove it.
7746         (configure.ac): Remove gl_CHECK_VERSION call.
7747         (Makefile.am): Augment lib_SOURCES.
7748
7749 2011-05-23  Bruno Haible  <bruno@clisp.org>
7750
7751         chdir-safer: Move AC_LIBOBJ invocations to module description.
7752         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
7753         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
7754
7755 2011-05-23  Bruno Haible  <bruno@clisp.org>
7756
7757         canonicalize: Move AC_LIBOBJ invocations to module description.
7758         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
7759         AC_LIBOBJ invocation.
7760         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
7761
7762 2011-05-23  Bruno Haible  <bruno@clisp.org>
7763
7764         canon-host: Move AC_LIBOBJ invocations to module description.
7765         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
7766         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
7767         instead of gl_CANON_HOST.
7768         (Makefile.am): Augment lib_SOURCES.
7769
7770 2011-05-23  Bruno Haible  <bruno@clisp.org>
7771
7772         backupfile: Move AC_LIBOBJ invocations to module description.
7773         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
7774         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
7775
7776 2011-05-23  Bruno Haible  <bruno@clisp.org>
7777
7778         argmatch: Move AC_LIBOBJ invocations to module description.
7779         * m4/argmatch.m4: Remove file.
7780         * modules/argmatch (Files): Remove it.
7781         (configure.ac): Remove gl_ARGMATCH call.
7782         (Makefile.am): Augment lib_SOURCES.
7783
7784 2011-05-23  Bruno Haible  <bruno@clisp.org>
7785
7786         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
7787         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
7788         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
7789
7790 2011-05-23  Bruno Haible  <bruno@clisp.org>
7791
7792         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
7793         * m4/arcfour.m4: Remove file.
7794         * modules/crypto/arcfour (Files): Remove it.
7795         (configure.ac): Remove gl_ARCFOUR call.
7796         (Makefile.am): Augment lib_SOURCES.
7797
7798 2011-05-22  Bruno Haible  <bruno@clisp.org>
7799
7800         write: Move AC_LIBOBJ invocations to module description.
7801         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
7802         * modules/write (configure.ac): ... to here.
7803
7804 2011-05-22  Bruno Haible  <bruno@clisp.org>
7805
7806         wmemset: Move AC_LIBOBJ invocations to module description.
7807         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
7808         here...
7809         * modules/wmemset (configure.ac): ... to here.
7810
7811 2011-05-22  Bruno Haible  <bruno@clisp.org>
7812
7813         wmemmove: Move AC_LIBOBJ invocations to module description.
7814         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
7815         here...
7816         * modules/wmemmove (configure.ac): ... to here.
7817
7818 2011-05-22  Bruno Haible  <bruno@clisp.org>
7819
7820         wmemcpy: Move AC_LIBOBJ invocations to module description.
7821         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
7822         here...
7823         * modules/wmemcpy (configure.ac): ... to here.
7824
7825 2011-05-22  Bruno Haible  <bruno@clisp.org>
7826
7827         wmemcmp: Move AC_LIBOBJ invocations to module description.
7828         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
7829         here...
7830         * modules/wmemcmp (configure.ac): ... to here.
7831
7832 2011-05-22  Bruno Haible  <bruno@clisp.org>
7833
7834         wmemchr: Move AC_LIBOBJ invocations to module description.
7835         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
7836         here...
7837         * modules/wmemchr (configure.ac): ... to here.
7838
7839 2011-05-22  Bruno Haible  <bruno@clisp.org>
7840
7841         wcswidth: Move AC_LIBOBJ invocations to module description.
7842         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
7843         here...
7844         * modules/wcswidth (configure.ac): ... to here.
7845
7846 2011-05-22  Bruno Haible  <bruno@clisp.org>
7847
7848         wcwidth: Respect rules for use of AC_LIBOBJ.
7849         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
7850         invocation from here...
7851         * modules/wcwidth (configure.ac): ... to here.
7852         (Depends-on): Update conditions.
7853
7854 2011-05-22  Bruno Haible  <bruno@clisp.org>
7855
7856         wctype: Move AC_LIBOBJ invocations to module description.
7857         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
7858         invocation from here...
7859         * modules/wctype (configure.ac): ... to here.
7860         (Depends-on): Update conditions.
7861
7862 2011-05-22  Bruno Haible  <bruno@clisp.org>
7863
7864         wctrans: Move AC_LIBOBJ invocations to module description.
7865         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
7866         invocation from here...
7867         * modules/wctrans (configure.ac): ... to here.
7868
7869 2011-05-22  Bruno Haible  <bruno@clisp.org>
7870
7871         wctomb: Move AC_LIBOBJ invocations to module description.
7872         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
7873         invocations from here...
7874         * modules/wctomb (configure.ac): ... to here.
7875
7876 2011-05-22  Bruno Haible  <bruno@clisp.org>
7877
7878         wctob: Move AC_LIBOBJ invocations to module description.
7879         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
7880         gl_PREREQ_WCTOB invocations from here...
7881         * modules/wctob (configure.ac): ... to here.
7882         (Depends-on): Update conditions.
7883
7884 2011-05-22  Bruno Haible  <bruno@clisp.org>
7885
7886         wcsxfrm: Move AC_LIBOBJ invocations to module description.
7887         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
7888         here...
7889         * modules/wcsxfrm (configure.ac): ... to here.
7890
7891 2011-05-22  Bruno Haible  <bruno@clisp.org>
7892
7893         wcstok: Move AC_LIBOBJ invocations to module description.
7894         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
7895         * modules/wcstok (configure.ac): ... to here.
7896
7897 2011-05-22  Bruno Haible  <bruno@clisp.org>
7898
7899         wcsstr: Move AC_LIBOBJ invocations to module description.
7900         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
7901         * modules/wcsstr (configure.ac): ... to here.
7902
7903 2011-05-22  Bruno Haible  <bruno@clisp.org>
7904
7905         wcsspn: Move AC_LIBOBJ invocations to module description.
7906         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
7907         * modules/wcsspn (configure.ac): ... to here.
7908
7909 2011-05-22  Bruno Haible  <bruno@clisp.org>
7910
7911         wcsrtombs: Move AC_LIBOBJ invocations to module description.
7912         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
7913         gl_PREREQ_WCSRTOMBS invocations from here...
7914         * modules/wcsrtombs (configure.ac): ... to here.
7915
7916 2011-05-22  Bruno Haible  <bruno@clisp.org>
7917
7918         wcsrchr: Move AC_LIBOBJ invocations to module description.
7919         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
7920         here...
7921         * modules/wcsrchr (configure.ac): ... to here.
7922
7923 2011-05-22  Bruno Haible  <bruno@clisp.org>
7924
7925         wcspbrk: Move AC_LIBOBJ invocations to module description.
7926         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
7927         here...
7928         * modules/wcspbrk (configure.ac): ... to here.
7929
7930 2011-05-22  Bruno Haible  <bruno@clisp.org>
7931
7932         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
7933         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
7934         gl_PREREQ_WCSNRTOMBS invocations from here...
7935         * modules/wcsnrtombs (configure.ac): ... to here.
7936
7937 2011-05-22  Bruno Haible  <bruno@clisp.org>
7938
7939         wcsnlen: Move AC_LIBOBJ invocations to module description.
7940         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
7941         here...
7942         * modules/wcsnlen (configure.ac): ... to here.
7943
7944 2011-05-22  Bruno Haible  <bruno@clisp.org>
7945
7946         wcsncpy: Move AC_LIBOBJ invocations to module description.
7947         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
7948         here...
7949         * modules/wcsncpy (configure.ac): ... to here.
7950
7951 2011-05-22  Bruno Haible  <bruno@clisp.org>
7952
7953         wcsncmp: Move AC_LIBOBJ invocations to module description.
7954         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
7955         here...
7956         * modules/wcsncmp (configure.ac): ... to here.
7957
7958 2011-05-22  Bruno Haible  <bruno@clisp.org>
7959
7960         wcsncat: Move AC_LIBOBJ invocations to module description.
7961         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
7962         here...
7963         * modules/wcsncat (configure.ac): ... to here.
7964
7965 2011-05-22  Bruno Haible  <bruno@clisp.org>
7966
7967         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
7968         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
7969         from here...
7970         * modules/wcsncasecmp (configure.ac): ... to here.
7971
7972 2011-05-22  Bruno Haible  <bruno@clisp.org>
7973
7974         wcslen: Move AC_LIBOBJ invocations to module description.
7975         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
7976         * modules/wcslen (configure.ac): ... to here.
7977
7978 2011-05-22  Bruno Haible  <bruno@clisp.org>
7979
7980         wcsdup: Move AC_LIBOBJ invocations to module description.
7981         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
7982         * modules/wcsdup (configure.ac): ... to here.
7983
7984 2011-05-22  Bruno Haible  <bruno@clisp.org>
7985
7986         wcscspn: Move AC_LIBOBJ invocations to module description.
7987         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
7988         here...
7989         * modules/wcscspn (configure.ac): ... to here.
7990
7991 2011-05-22  Bruno Haible  <bruno@clisp.org>
7992
7993         wcscpy: Move AC_LIBOBJ invocations to module description.
7994         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
7995         * modules/wcscpy (configure.ac): ... to here.
7996
7997 2011-05-22  Bruno Haible  <bruno@clisp.org>
7998
7999         wcscoll: Move AC_LIBOBJ invocations to module description.
8000         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
8001         here...
8002         * modules/wcscoll (configure.ac): ... to here.
8003
8004 2011-05-22  Bruno Haible  <bruno@clisp.org>
8005
8006         wcscmp: Move AC_LIBOBJ invocations to module description.
8007         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
8008         * modules/wcscmp (configure.ac): ... to here.
8009
8010 2011-05-22  Bruno Haible  <bruno@clisp.org>
8011
8012         wcschr: Move AC_LIBOBJ invocations to module description.
8013         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
8014         * modules/wcschr (configure.ac): ... to here.
8015
8016 2011-05-22  Bruno Haible  <bruno@clisp.org>
8017
8018         wcscat: Move AC_LIBOBJ invocations to module description.
8019         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
8020         * modules/wcscat (configure.ac): ... to here.
8021
8022 2011-05-22  Bruno Haible  <bruno@clisp.org>
8023
8024         wcscasecmp: Move AC_LIBOBJ invocations to module description.
8025         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
8026         here...
8027         * modules/wcscasecmp (configure.ac): ... to here.
8028
8029 2011-05-22  Bruno Haible  <bruno@clisp.org>
8030
8031         wcrtomb: Move AC_LIBOBJ invocations to module description.
8032         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
8033         invocations from here...
8034         * modules/wcrtomb (configure.ac): ... to here.
8035
8036 2011-05-22  Bruno Haible  <bruno@clisp.org>
8037
8038         wcpncpy: Move AC_LIBOBJ invocations to module description.
8039         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
8040         here...
8041         * modules/wcpncpy (configure.ac): ... to here.
8042
8043 2011-05-22  Bruno Haible  <bruno@clisp.org>
8044
8045         wcpcpy: Move AC_LIBOBJ invocations to module description.
8046         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
8047         * modules/wcpcpy (configure.ac): ... to here.
8048
8049 2011-05-22  Bruno Haible  <bruno@clisp.org>
8050
8051         waitpid: Move AC_LIBOBJ invocations to module description.
8052         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
8053         invocation from here...
8054         * modules/waitpid (configure.ac): ... to here.
8055
8056 2011-05-22  Bruno Haible  <bruno@clisp.org>
8057
8058         utimensat: Move AC_LIBOBJ invocations to module description.
8059         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
8060         here...
8061         * modules/utimensat (configure.ac): ... to here.
8062
8063 2011-05-22  Bruno Haible  <bruno@clisp.org>
8064
8065         usleep: Move AC_LIBOBJ invocations to module description.
8066         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
8067         here...
8068         * modules/usleep (configure.ac): ... to here.
8069
8070 2011-05-22  Bruno Haible  <bruno@clisp.org>
8071
8072         unlockpt: Move AC_LIBOBJ invocations to module description.
8073         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
8074         gl_PREREQ_UNLOCKPT invocations from here...
8075         * modules/unlockpt (configure.ac): ... to here.
8076
8077 2011-05-22  Bruno Haible  <bruno@clisp.org>
8078
8079         unlink: Respect rules for use of AC_LIBOBJ.
8080         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
8081         * modules/unlink (configure.ac): ... to here.
8082
8083 2011-05-22  Bruno Haible  <bruno@clisp.org>
8084
8085         uname: Move AC_LIBOBJ invocations to module description.
8086         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
8087         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
8088         here...
8089         * modules/uname (configure.ac): ... to here.
8090
8091 2011-05-22  Bruno Haible  <bruno@clisp.org>
8092
8093         ttyname_r: Move AC_LIBOBJ invocations to module description.
8094         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
8095         gl_PREREQ_TTYNAME_R invocations from here...
8096         * modules/ttyname_r (configure.ac): ... to here.
8097
8098 2011-05-22  Bruno Haible  <bruno@clisp.org>
8099
8100         tsearch: Move AC_LIBOBJ invocations to module description.
8101         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
8102         invocations from here...
8103         * modules/tsearch (configure.ac): ... to here.
8104
8105 2011-05-22  Bruno Haible  <bruno@clisp.org>
8106
8107         towctrans: Move AC_LIBOBJ invocations to module description.
8108         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
8109         AC_LIBOBJ invocation from here...
8110         * modules/towctrans (configure.ac): ... to here.
8111
8112 2011-05-22  Bruno Haible  <bruno@clisp.org>
8113
8114         tmpfile: Move AC_LIBOBJ invocations to module description.
8115         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
8116         invocations from here...
8117         * modules/tmpfile (configure.ac): ... to here.
8118
8119 2011-05-22  Bruno Haible  <bruno@clisp.org>
8120
8121         times: Move AC_LIBOBJ invocations to module description.
8122         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
8123         * modules/times (configure.ac): ... to here.
8124
8125 2011-05-22  Bruno Haible  <bruno@clisp.org>
8126
8127         time_r: Move AC_LIBOBJ invocations to module description.
8128         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
8129         invocations from here...
8130         * modules/time_r (configure.ac): ... to here.
8131
8132 2011-05-22  Bruno Haible  <bruno@clisp.org>
8133
8134         timegm: Move AC_LIBOBJ invocations to module description.
8135         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
8136         invocations from here...
8137         * modules/timegm (configure.ac): ... to here.
8138
8139 2011-05-22  Bruno Haible  <bruno@clisp.org>
8140
8141         tcgetsid: Move AC_LIBOBJ invocations to module description.
8142         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
8143         and gl_PREREQ_TCGETSID invocations from here...
8144         * modules/tcgetsid (configure.ac): ... to here.
8145         (Depends-on): Update conditions.
8146
8147 2011-05-22  Bruno Haible  <bruno@clisp.org>
8148
8149         symlinkat: Move AC_LIBOBJ invocations to module description.
8150         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
8151         here...
8152         * modules/symlinkat (configure.ac): ... to here.
8153
8154 2011-05-22  Bruno Haible  <bruno@clisp.org>
8155
8156         symlink: Move AC_LIBOBJ invocations to module description.
8157         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
8158         here...
8159         * modules/symlink (configure.ac): ... to here.
8160
8161 2011-05-22  Bruno Haible  <bruno@clisp.org>
8162
8163         strverscmp: Move AC_LIBOBJ invocations to module description.
8164         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
8165         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
8166         from here...
8167         * modules/strverscmp (configure.ac): ... to here.
8168
8169 2011-05-22  Bruno Haible  <bruno@clisp.org>
8170
8171         strtok_r: Move AC_LIBOBJ invocations to module description.
8172         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
8173         and gl_PREREQ_STRTOK_R invocations from here...
8174         * modules/strtok_r (configure.ac): ... to here.
8175         (Depends-on): Update conditions.
8176
8177 2011-05-22  Bruno Haible  <bruno@clisp.org>
8178
8179         strtoumax: Move AC_LIBOBJ invocations to module description.
8180         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
8181         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
8182         from here...
8183         * modules/strtoumax (configure.ac): ... to here.
8184
8185 2011-05-22  Bruno Haible  <bruno@clisp.org>
8186
8187         strtoimax: Move AC_LIBOBJ invocations to module description.
8188         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
8189         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
8190         from here...
8191         * modules/strtoimax (configure.ac): ... to here.
8192
8193 2011-05-22  Bruno Haible  <bruno@clisp.org>
8194
8195         strtoull: Move AC_LIBOBJ invocations to module description.
8196         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
8197         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
8198         from here...
8199         * modules/strtoull (configure.ac): ... to here.
8200
8201 2011-05-22  Bruno Haible  <bruno@clisp.org>
8202
8203         strtoll: Move AC_LIBOBJ invocations to module description.
8204         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
8205         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
8206         here...
8207         * modules/strtoll (configure.ac): ... to here.
8208
8209 2011-05-22  Bruno Haible  <bruno@clisp.org>
8210
8211         strtoul: Move AC_LIBOBJ invocations to module description.
8212         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
8213         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
8214         * modules/strtoul (configure.ac): ... to here.
8215
8216 2011-05-22  Bruno Haible  <bruno@clisp.org>
8217
8218         strtol: Move AC_LIBOBJ invocations to module description.
8219         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
8220         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
8221         * modules/strtol (configure.ac): ... to here.
8222
8223 2011-05-22  Bruno Haible  <bruno@clisp.org>
8224
8225         strtod: Move AC_LIBOBJ invocations to module description.
8226         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
8227         invocations from here...
8228         * modules/strtod (configure.ac): ... to here.
8229
8230 2011-05-22  Bruno Haible  <bruno@clisp.org>
8231
8232         strstr*: Move AC_LIBOBJ invocations to module description.
8233         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
8234         invocations from here...
8235         * modules/strstr-simple (configure.ac): ... to here.
8236         * modules/strstr (configure.ac): ... and here.
8237
8238 2011-05-22  Bruno Haible  <bruno@clisp.org>
8239
8240         strsignal: Move AC_LIBOBJ invocations to module description.
8241         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
8242         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
8243         * modules/strsignal (configure.ac): ... to here.
8244         (Depends-on): Update conditions.
8245
8246 2011-05-22  Bruno Haible  <bruno@clisp.org>
8247
8248         strsep: Move AC_LIBOBJ invocations to module description.
8249         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
8250         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
8251         here...
8252         * modules/strsep (configure.ac): ... to here.
8253
8254 2011-05-22  Bruno Haible  <bruno@clisp.org>
8255
8256         strptime: Move AC_LIBOBJ invocations to module description.
8257         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
8258         gl_PREREQ_STRPTIME invocations from here...
8259         * modules/strptime (configure.ac): ... to here.
8260
8261 2011-05-22  Bruno Haible  <bruno@clisp.org>
8262
8263         strpbrk: Move AC_LIBOBJ invocations to module description.
8264         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
8265         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
8266         here...
8267         * modules/strpbrk (configure.ac): ... to here.
8268
8269 2011-05-22  Bruno Haible  <bruno@clisp.org>
8270
8271         strnlen: Move AC_LIBOBJ invocations to module description.
8272         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
8273         invocations from here...
8274         * modules/strnlen (configure.ac): ... to here.
8275
8276 2011-05-22  Bruno Haible  <bruno@clisp.org>
8277
8278         strndup: Move AC_LIBOBJ invocations to module description.
8279         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
8280         invocations from here...
8281         * modules/strndup (configure.ac): ... to here.
8282         (Depends-on): Update conditions.
8283
8284 2011-05-22  Bruno Haible  <bruno@clisp.org>
8285
8286         strncat: Move AC_LIBOBJ invocations to module description.
8287         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
8288         invocations from here...
8289         * modules/strncat (configure.ac): ... to here.
8290
8291 2011-05-22  Bruno Haible  <bruno@clisp.org>
8292
8293         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
8294         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
8295         invocations from here...
8296         * modules/strdup (configure.ac): ... to here.
8297         * modules/strdup-posix (configure.ac): ... and here.
8298
8299 2011-05-22  Bruno Haible  <bruno@clisp.org>
8300
8301         strcspn: Move AC_LIBOBJ invocations to module description.
8302         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
8303         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
8304         here...
8305         * modules/strcspn (configure.ac): ... to here.
8306
8307 2011-05-22  Bruno Haible  <bruno@clisp.org>
8308
8309         strchrnul: Move AC_LIBOBJ invocations to module description.
8310         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
8311         gl_PREREQ_STRCHRNUL invocations from here...
8312         * modules/strchrnul (configure.ac): ... to here.
8313
8314 2011-05-22  Bruno Haible  <bruno@clisp.org>
8315
8316         strcasestr*: Move AC_LIBOBJ invocations to module description.
8317         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
8318         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
8319         * modules/strcasestr-simple (configure.ac): ... to here.
8320         * modules/strcasestr (configure.ac): ... and here.
8321
8322 2011-05-22  Bruno Haible  <bruno@clisp.org>
8323
8324         strcase: Move AC_LIBOBJ invocations to module description.
8325         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
8326         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
8327         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
8328         gl_PREREQ_STRNCASECMP invocations from here...
8329         * modules/strcase (configure.ac): ... to here.
8330
8331 2011-05-22  Bruno Haible  <bruno@clisp.org>
8332
8333         stpncpy: Move AC_LIBOBJ invocations to module description.
8334         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
8335         here...
8336         * modules/stpncpy (configure.ac): ... to here.
8337
8338 2011-05-22  Bruno Haible  <bruno@clisp.org>
8339
8340         stpcpy: Move AC_LIBOBJ invocations to module description.
8341         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
8342         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
8343         here...
8344         * modules/stpcpy (configure.ac): ... to here.
8345
8346 2011-05-21  Bruno Haible  <bruno@clisp.org>
8347
8348         stat: Move AC_LIBOBJ invocations to module description.
8349         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
8350         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
8351         here...
8352         * modules/stat (configure.ac): ... to here.
8353
8354 2011-05-21  Bruno Haible  <bruno@clisp.org>
8355
8356         sleep: Move AC_LIBOBJ invocations to module description.
8357         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
8358         * modules/sleep (configure.ac): ... to here.
8359
8360 2011-05-21  Bruno Haible  <bruno@clisp.org>
8361
8362         signbit: Move AC_LIBOBJ invocations to module description.
8363         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
8364         * modules/signbit (configure.ac): ... to here.
8365
8366 2011-05-21  Bruno Haible  <bruno@clisp.org>
8367
8368         sigprocmask: Move AC_LIBOBJ invocations to module description.
8369         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
8370         gl_PREREQ_SIGPROMASK invocations from here...
8371         * modules/sigprocmask (configure.ac): ... to here.
8372
8373 2011-05-21  Bruno Haible  <bruno@clisp.org>
8374
8375         sigaction: Move AC_LIBOBJ invocations to module description.
8376         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
8377         gl_PREREQ_SIGACTION invocations from here...
8378         * modules/sigaction (configure.ac): ... to here.
8379
8380 2011-05-21  Bruno Haible  <bruno@clisp.org>
8381
8382         sig2str: Move AC_LIBOBJ invocations to module description.
8383         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
8384         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
8385         here...
8386         * modules/sig2str (configure.ac): ... to here.
8387
8388 2011-05-21  Bruno Haible  <bruno@clisp.org>
8389
8390         setlocale: Move AC_LIBOBJ invocations to module description.
8391         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
8392         gl_PREREQ_SETLOCALE invocations from here...
8393         * modules/setlocale (configure.ac): ... to here.
8394
8395 2011-05-21  Bruno Haible  <bruno@clisp.org>
8396
8397         unsetenv: Move AC_LIBOBJ invocations to module description.
8398         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
8399         and gl_PREREQ_UNSETENV invocations from here...
8400         * modules/unsetenv (configure.ac): ... to here.
8401         (Depends-on): Update.
8402
8403 2011-05-21  Bruno Haible  <bruno@clisp.org>
8404
8405         setenv: Move AC_LIBOBJ invocations to module description.
8406         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
8407         here...
8408         * modules/setenv (configure.ac): ... to here.
8409
8410 2011-05-21  Bruno Haible  <bruno@clisp.org>
8411
8412         selinux-h: Move AC_LIBOBJ invocations to module description.
8413         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
8414         AC_LIBOBJ invocation from here...
8415         * modules/selinux-h (configure.ac): ... to here.
8416
8417 2011-05-21  Bruno Haible  <bruno@clisp.org>
8418
8419         select: Respect rules for use of AC_LIBOBJ.
8420         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
8421         here...
8422         * modules/select (configure.ac): ... to here.
8423
8424 2011-05-21  Bruno Haible  <bruno@clisp.org>
8425
8426         scandir: Move AC_LIBOBJ invocations to module description.
8427         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
8428         invocations from here...
8429         * modules/scandir (configure.ac): ... to here.
8430
8431 2011-05-21  Bruno Haible  <bruno@clisp.org>
8432
8433         rpmatch: Move AC_LIBOBJ invocations to module description.
8434         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
8435         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
8436         here...
8437         * modules/rpmatch (configure.ac): ... to here.
8438
8439 2011-05-21  Bruno Haible  <bruno@clisp.org>
8440
8441         rmdir: Respect rules for use of AC_LIBOBJ.
8442         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
8443         * modules/rmdir (configure.ac): ... to here.
8444
8445 2011-05-21  Bruno Haible  <bruno@clisp.org>
8446
8447         renameat: Move AC_LIBOBJ invocations to module description.
8448         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
8449         here...
8450         * modules/renameat (configure.ac): ... to here.
8451
8452 2011-05-21  Bruno Haible  <bruno@clisp.org>
8453
8454         rename: Respect rules for use of AC_LIBOBJ.
8455         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
8456         here...
8457         * modules/rename (configure.ac): ... to here.
8458
8459 2011-05-21  Bruno Haible  <bruno@clisp.org>
8460
8461         remove: Move AC_LIBOBJ invocations to module description.
8462         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
8463         here...
8464         * modules/remove (configure.ac): ... to here.
8465
8466 2011-05-21  Bruno Haible  <bruno@clisp.org>
8467
8468         relocatable-lib: Move AC_LIBOBJ invocations to module description.
8469         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
8470         macro.
8471         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
8472         * modules/relocatable-lib (configure.ac): ... to here.
8473         * modules/relocatable-prog-wrapper (configure.ac): Invoke
8474         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
8475
8476 2011-05-21  Bruno Haible  <bruno@clisp.org>
8477
8478         relocatable-prog: Move AC_LIBOBJ invocations to module description.
8479         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
8480         here...
8481         * modules/relocatable-prog (configure.ac): ... to here.
8482
8483 2011-05-21  Bruno Haible  <bruno@clisp.org>
8484
8485         regex: Move AC_LIBOBJ invocations to module description.
8486         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
8487         invocations from here...
8488         * modules/regex (configure.ac): ... to here.
8489
8490 2011-05-21  Bruno Haible  <bruno@clisp.org>
8491
8492         realloc-*: Move AC_LIBOBJ invocations to module description.
8493         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
8494         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
8495         AC_LIBOBJ invocations from here...
8496         * modules/realloc-gnu (configure.ac): ... to here.
8497         * modules/realloc-posix (configure.ac): ... and here.
8498
8499 2011-05-21  Bruno Haible  <bruno@clisp.org>
8500
8501         readutmp: Move AC_LIBOBJ invocations to module description.
8502         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
8503         * modules/readutmp (configure.ac): ... to here.
8504
8505 2011-05-21  Bruno Haible  <bruno@clisp.org>
8506
8507         readlinkat: Move AC_LIBOBJ invocations to module description.
8508         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
8509         here...
8510         * modules/readlinkat (configure.ac): ... to here.
8511
8512 2011-05-21  Bruno Haible  <bruno@clisp.org>
8513
8514         readlink: Move AC_LIBOBJ invocations to module description.
8515         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
8516         gl_PREREQ_READLINK invocations from here...
8517         * modules/readlink (configure.ac): ... to here.
8518
8519 2011-05-21  Bruno Haible  <bruno@clisp.org>
8520
8521         readline: Move AC_LIBOBJ invocations to module description.
8522         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
8523         gl_PREREQ_READLINE invocations from here...
8524         * modules/readline (configure.ac): ... to here.
8525
8526 2011-05-21  Bruno Haible  <bruno@clisp.org>
8527
8528         read: Move AC_LIBOBJ invocations to module description.
8529         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
8530         * modules/read (configure.ac): ... to here.
8531
8532 2011-05-21  Bruno Haible  <bruno@clisp.org>
8533
8534         rawmemchr: Move AC_LIBOBJ invocations to module description.
8535         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
8536         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
8537         from here...
8538         * modules/rawmemchr (configure.ac): ... to here.
8539
8540 2011-05-21  Bruno Haible  <bruno@clisp.org>
8541
8542         random_r: Move AC_LIBOBJ invocations to module description.
8543         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
8544         gl_PREREQ_RANDOM_R invocations from here...
8545         * modules/random_r (configure.ac): ... to here.
8546
8547 2011-05-21  Bruno Haible  <bruno@clisp.org>
8548
8549         pwrite: Move AC_LIBOBJ invocations to module description.
8550         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
8551         * modules/pwrite (configure.ac): ... to here.
8552
8553 2011-05-21  Bruno Haible  <bruno@clisp.org>
8554
8555         putenv: Move AC_LIBOBJ invocations to module description.
8556         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
8557         * modules/putenv (configure.ac): ... to here.
8558
8559 2011-05-21  Bruno Haible  <bruno@clisp.org>
8560
8561         login_tty: Move AC_LIBOBJ invocations to module description.
8562         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
8563         * modules/login_tty (configure.ac): ... to here.
8564
8565 2011-05-21  Bruno Haible  <bruno@clisp.org>
8566
8567         openpty: Move AC_LIBOBJ invocations to module description.
8568         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
8569         * modules/openpty (configure.ac): ... to here.
8570
8571 2011-05-21  Bruno Haible  <bruno@clisp.org>
8572
8573         forkpty: Move AC_LIBOBJ invocations to module description.
8574         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
8575         * modules/forkpty (configure.ac): ... to here.
8576
8577 2011-05-21  Bruno Haible  <bruno@clisp.org>
8578
8579         ptsname: Move AC_LIBOBJ invocations to module description.
8580         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
8581         invocations from here...
8582         * modules/ptsname (configure.ac): ... to here.
8583
8584 2011-05-21  Bruno Haible  <bruno@clisp.org>
8585
8586         pread: Move AC_LIBOBJ invocations to module description.
8587         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
8588         * modules/pread (configure.ac): ... to here.
8589
8590 2011-05-21  Bruno Haible  <bruno@clisp.org>
8591
8592         posix_spawn*: Move AC_LIBOBJ invocations to module description.
8593         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
8594         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
8595         * modules/posix_spawn (configure.ac): ... to here.
8596         * modules/posix_spawnp (configure.ac): ... and here.
8597
8598 2011-05-21  Bruno Haible  <bruno@clisp.org>
8599
8600         popen: Move AC_LIBOBJ invocations to module description.
8601         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
8602         invocations from here...
8603         * modules/popen (configure.ac): ... to here.
8604
8605 2011-05-21  Bruno Haible  <bruno@clisp.org>
8606
8607         poll: Move AC_LIBOBJ invocations to module description.
8608         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
8609         invocations from here...
8610         * modules/poll (configure.ac): ... to here.
8611
8612 2011-05-21  Bruno Haible  <bruno@clisp.org>
8613
8614         pipe-posix: Move AC_LIBOBJ invocations to module description.
8615         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
8616         * modules/pipe-posix (configure.ac): ... to here.
8617
8618 2011-05-21  Bruno Haible  <bruno@clisp.org>
8619
8620         openat: Respect rules for use of AC_LIBOBJ.
8621         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
8622         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8623         * modules/openat (configure.ac): ... to here.
8624
8625 2011-05-21  Bruno Haible  <bruno@clisp.org>
8626
8627         obstack-printf*: Move AC_LIBOBJ invocations to module description.
8628         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
8629         invocation from here...
8630         * modules/obstack-printf (configure.ac): ... to here.
8631         * modules/obstack-printf-posix (configure.ac): ... and here.
8632
8633 2011-05-21  Bruno Haible  <bruno@clisp.org>
8634
8635         nl_langinfo: Move AC_LIBOBJ invocations to module description.
8636         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
8637         from here...
8638         * modules/nl_langinfo (configure.ac): ... to here.
8639
8640 2011-05-21  Bruno Haible  <bruno@clisp.org>
8641
8642         nanosleep: Move AC_LIBOBJ invocations to module description.
8643         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
8644         gl_PREREQ_NANOSLEEP invocations from here...
8645         * modules/nanosleep (configure.ac): ... to here.
8646
8647 2011-05-21  Bruno Haible  <bruno@clisp.org>
8648
8649         mountlist: Move AC_LIBOBJ invocations to module description.
8650         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
8651         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
8652         * modules/mountlist (configure.ac): ... to here.
8653
8654 2011-05-21  Bruno Haible  <bruno@clisp.org>
8655
8656         mktime: Respect rules for use of AC_LIBOBJ.
8657         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
8658         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
8659         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
8660         (gl_FUNC_MKTIME_INTERNAL): ... and here...
8661         * modules/mktime (configure.ac): ... to here.
8662         * modules/mktime-internal (configure.ac): ... and here.
8663         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
8664
8665 2011-05-21  Bruno Haible  <bruno@clisp.org>
8666
8667         mkstemps: Move AC_LIBOBJ invocations to module description.
8668         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
8669         here...
8670         * modules/mkstemps (configure.ac): ... to here.
8671
8672 2011-05-21  Bruno Haible  <bruno@clisp.org>
8673
8674         mkstemp: Move AC_LIBOBJ invocations to module description.
8675         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
8676         gl_PREREQ_MKSTEMP invocations from here...
8677         * modules/mkstemp (configure.ac): ... to here.
8678
8679 2011-05-21  Bruno Haible  <bruno@clisp.org>
8680
8681         mkostemps: Move AC_LIBOBJ invocations to module description.
8682         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
8683         here...
8684         * modules/mkostemps (configure.ac): ... to here.
8685
8686 2011-05-21  Bruno Haible  <bruno@clisp.org>
8687
8688         mkostemp: Move AC_LIBOBJ invocations to module description.
8689         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
8690         gl_PREREQ_MKOSTEMP invocations from here...
8691         * modules/mkostemp (configure.ac): ... to here.
8692
8693 2011-05-21  Bruno Haible  <bruno@clisp.org>
8694
8695         mknod: Move AC_LIBOBJ invocations to module description.
8696         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
8697         * modules/mknod (configure.ac): ... to here.
8698
8699 2011-05-21  Bruno Haible  <bruno@clisp.org>
8700
8701         mkfifoat: Move AC_LIBOBJ invocations to module description.
8702         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
8703         here...
8704         * modules/mkfifoat (configure.ac): ... to here.
8705
8706 2011-05-21  Bruno Haible  <bruno@clisp.org>
8707
8708         mkfifo: Respect rules for use of AC_LIBOBJ.
8709         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
8710         here...
8711         * modules/mkfifo (configure.ac): ... to here.
8712
8713 2011-05-21  Bruno Haible  <bruno@clisp.org>
8714
8715         mkdtemp: Move AC_LIBOBJ invocations to module description.
8716         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
8717         invocations from here...
8718         * modules/mkdtemp (configure.ac): ... to here.
8719
8720 2011-05-21  Bruno Haible  <bruno@clisp.org>
8721
8722         mkdir: Move AC_LIBOBJ invocations to module description.
8723         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
8724         * modules/mkdir (configure.ac): ... to here.
8725
8726 2011-05-21  Bruno Haible  <bruno@clisp.org>
8727
8728         memset: Move AC_LIBOBJ invocations to module description.
8729         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
8730         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
8731         here...
8732         * modules/memset (configure.ac): ... to here.
8733
8734 2011-05-21  Bruno Haible  <bruno@clisp.org>
8735
8736         memrchr: Move AC_LIBOBJ invocations to module description.
8737         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
8738         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
8739         here...
8740         * modules/memrchr (configure.ac): ... to here.
8741
8742 2011-05-21  Bruno Haible  <bruno@clisp.org>
8743
8744         mempcpy: Move AC_LIBOBJ invocations to module description.
8745         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
8746         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
8747         here...
8748         * modules/mempcpy (configure.ac): ... to here.
8749
8750 2011-05-21  Bruno Haible  <bruno@clisp.org>
8751
8752         memmove: Move AC_LIBOBJ invocations to module description.
8753         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
8754         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
8755         here...
8756         * modules/memmove (configure.ac): ... to here.
8757
8758 2011-05-21  Bruno Haible  <bruno@clisp.org>
8759
8760         memmem*: Move AC_LIBOBJ invocations to module description.
8761         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
8762         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
8763         here...
8764         (gl_FUNC_MEMMEM): ... and here...
8765         * modules/memmem-simple (configure.ac): ... to here.
8766         * modules/memmem (configure.ac): ... and here.
8767
8768 2011-05-21  Bruno Haible  <bruno@clisp.org>
8769
8770         memcpy: Move AC_LIBOBJ invocations to module description.
8771         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
8772         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
8773         here...
8774         * modules/memcpy (configure.ac): ... to here.
8775
8776 2011-05-21  Bruno Haible  <bruno@clisp.org>
8777
8778         memcmp: Simplify autoconf macro.
8779         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
8780         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
8781         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
8782
8783 2011-05-21  Bruno Haible  <bruno@clisp.org>
8784
8785         memcmp: Move AC_LIBOBJ invocations to module description.
8786         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
8787         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
8788         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
8789         * modules/memcmp (configure.ac): ... to here.
8790         (Depends-on): Update conditions.
8791
8792 2011-05-21  Bruno Haible  <bruno@clisp.org>
8793
8794         memchr: Respect rules for use of AC_LIBOBJ.
8795         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
8796         invocations from here...
8797         * modules/memchr (configure.ac): ... to here.
8798
8799 2011-05-21  Bruno Haible  <bruno@clisp.org>
8800
8801         mbtowc: Move AC_LIBOBJ invocations to module description.
8802         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
8803         invocations from here...
8804         * modules/mbtowc (configure.ac): ... to here.
8805
8806 2011-05-21  Bruno Haible  <bruno@clisp.org>
8807
8808         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
8809         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
8810         gl_PREREQ_MBSRTOWCS invocations from here...
8811         * modules/mbsrtowcs (configure.ac): ... to here.
8812
8813 2011-05-21  Bruno Haible  <bruno@clisp.org>
8814
8815         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
8816         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
8817         gl_PREREQ_MBSNRTOWCS invocations from here...
8818         * modules/mbsnrtowcs (configure.ac): ... to here.
8819
8820 2011-05-21  Bruno Haible  <bruno@clisp.org>
8821
8822         mbsinit: Move AC_LIBOBJ invocations to module description.
8823         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
8824         invocations from here...
8825         * modules/mbsinit (configure.ac): ... to here.
8826
8827 2011-05-21  Bruno Haible  <bruno@clisp.org>
8828
8829         mbrlen: Move AC_LIBOBJ invocations to module description.
8830         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
8831         invocations from here...
8832         * modules/mbrlen (configure.ac): ... to here.
8833
8834 2011-05-21  Bruno Haible  <bruno@clisp.org>
8835
8836         mbrtowc: Respect rules for use of AC_LIBOBJ.
8837         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
8838         invocations from here...
8839         * modules/mbrtowc (configure.ac): ... to here.
8840
8841 2011-05-21  Bruno Haible  <bruno@clisp.org>
8842
8843         malloc-*: Move AC_LIBOBJ invocations to module description.
8844         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
8845         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
8846         AC_LIBOBJ invocations from here...
8847         * modules/malloc-gnu (configure.ac): ... to here.
8848         * modules/malloc-posix (configure.ac): ... and here.
8849
8850 2011-05-21  Bruno Haible  <bruno@clisp.org>
8851
8852         lstat, openat: Respect rules for use of AC_LIBOBJ.
8853         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
8854         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
8855         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
8856         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
8857         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
8858         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
8859         here.
8860         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
8861
8862 2011-05-21  Bruno Haible  <bruno@clisp.org>
8863
8864         lseek: Move AC_LIBOBJ invocations to module description.
8865         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
8866         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
8867         * modules/lseek (configure.ac): ... to here.
8868
8869 2011-05-21  Bruno Haible  <bruno@clisp.org>
8870
8871         linkat: Move AC_LIBOBJ invocations to module description.
8872         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
8873         here...
8874         * modules/linkat (configure.ac): ... to here.
8875
8876 2011-05-21  Bruno Haible  <bruno@clisp.org>
8877
8878         link: Respect rules for use of AC_LIBOBJ.
8879         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
8880         * modules/link (configure.ac): ... to here.
8881
8882 2011-05-21  Bruno Haible  <bruno@clisp.org>
8883
8884         lchown: Move AC_LIBOBJ invocations to module description.
8885         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
8886         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
8887         * modules/lchown (configure.ac): ... to here.
8888
8889 2011-05-21  Bruno Haible  <bruno@clisp.org>
8890
8891         iswctype: Move AC_LIBOBJ invocations to module description.
8892         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
8893         here...
8894         * modules/iswctype (configure.ac): ... to here.
8895
8896 2011-05-21  Bruno Haible  <bruno@clisp.org>
8897
8898         iswblank: Move AC_LIBOBJ invocations to module description.
8899         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
8900         here...
8901         * modules/iswblank (configure.ac): ... to here.
8902
8903 2011-05-21  Bruno Haible  <bruno@clisp.org>
8904
8905         atanl: Move AC_LIBOBJ invocations to module description.
8906         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
8907         * modules/atanl (configure.ac): ... to here.
8908
8909 2011-05-21  Bruno Haible  <bruno@clisp.org>
8910
8911         acosl: Move AC_LIBOBJ invocations to module description.
8912         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
8913         * modules/acosl (configure.ac): ... to here.
8914
8915 2011-05-21  Bruno Haible  <bruno@clisp.org>
8916
8917         asinl: Respect rules for use of AC_LIBOBJ.
8918         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
8919         * modules/asinl (configure.ac): ... to here.
8920
8921 2011-05-21  Bruno Haible  <bruno@clisp.org>
8922
8923         tanl: Move AC_LIBOBJ invocations to module description.
8924         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
8925         * modules/tanl (configure.ac): ... to here.
8926
8927 2011-05-21  Bruno Haible  <bruno@clisp.org>
8928
8929         cosl: Move AC_LIBOBJ invocations to module description.
8930         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
8931         * modules/cosl (configure.ac): ... to here.
8932
8933 2011-05-21  Bruno Haible  <bruno@clisp.org>
8934
8935         sinl: Move AC_LIBOBJ invocations to module description.
8936         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
8937         * modules/sinl (configure.ac): ... to here.
8938
8939 2011-05-21  Bruno Haible  <bruno@clisp.org>
8940
8941         logl: Move AC_LIBOBJ invocations to module description.
8942         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
8943         * modules/logl (configure.ac): ... to here.
8944
8945 2011-05-21  Bruno Haible  <bruno@clisp.org>
8946
8947         expl: Move AC_LIBOBJ invocations to module description.
8948         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
8949         * modules/expl (configure.ac): ... to here.
8950
8951 2011-05-21  Bruno Haible  <bruno@clisp.org>
8952
8953         roundl: Move AC_LIBOBJ invocations to module description.
8954         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
8955         * modules/roundl (configure.ac): ... to here.
8956
8957 2011-05-21  Bruno Haible  <bruno@clisp.org>
8958
8959         round: Move AC_LIBOBJ invocations to module description.
8960         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
8961         * modules/round (configure.ac): ... to here.
8962
8963 2011-05-21  Bruno Haible  <bruno@clisp.org>
8964
8965         roundf: Move AC_LIBOBJ invocations to module description.
8966         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
8967         * modules/roundf (configure.ac): ... to here.
8968
8969 2011-05-21  Bruno Haible  <bruno@clisp.org>
8970
8971         truncl: Move AC_LIBOBJ invocations to module description.
8972         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
8973         * modules/truncl (configure.ac): ... to here.
8974
8975 2011-05-21  Bruno Haible  <bruno@clisp.org>
8976
8977         trunc: Move AC_LIBOBJ invocations to module description.
8978         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
8979         * modules/trunc (configure.ac): ... to here.
8980
8981 2011-05-21  Bruno Haible  <bruno@clisp.org>
8982
8983         truncf: Move AC_LIBOBJ invocations to module description.
8984         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
8985         * modules/truncf (configure.ac): ... to here.
8986
8987 2011-05-21  Bruno Haible  <bruno@clisp.org>
8988
8989         ceill: Move AC_LIBOBJ invocations to module description.
8990         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
8991         * modules/ceill (configure.ac): ... to here.
8992
8993 2011-05-21  Bruno Haible  <bruno@clisp.org>
8994
8995         ceil: Move AC_LIBOBJ invocations to module description.
8996         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
8997         * modules/ceil (configure.ac): ... to here.
8998
8999 2011-05-21  Bruno Haible  <bruno@clisp.org>
9000
9001         ceilf: Move AC_LIBOBJ invocations to module description.
9002         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
9003         * modules/ceilf (configure.ac): ... to here.
9004
9005 2011-05-21  Bruno Haible  <bruno@clisp.org>
9006
9007         floorl: Respect rules for use of AC_LIBOBJ.
9008         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
9009         * modules/floorl (configure.ac): ... to here.
9010
9011 2011-05-21  Bruno Haible  <bruno@clisp.org>
9012
9013         floor: Respect rules for use of AC_LIBOBJ.
9014         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
9015         * modules/floor (configure.ac): ... to here.
9016
9017 2011-05-21  Bruno Haible  <bruno@clisp.org>
9018
9019         floorf: Move AC_LIBOBJ invocations to module description.
9020         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
9021         * modules/floorf (configure.ac): ... to here.
9022
9023 2011-05-20  Bruno Haible  <bruno@clisp.org>
9024
9025         sqrtl: Respect rules for use of AC_LIBOBJ.
9026         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
9027         * modules/sqrtl (configure.ac): ... to here.
9028
9029 2011-05-20  Bruno Haible  <bruno@clisp.org>
9030
9031         ldexpl: Respect rules for use of AC_LIBOBJ.
9032         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
9033         * modules/ldexpl (configure.ac): ... to here.
9034
9035 2011-05-20  Bruno Haible  <bruno@clisp.org>
9036
9037         frexpl*: Respect rules for use of AC_LIBOBJ.
9038         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
9039         invocation from here...
9040         * modules/frexpl (configure.ac): ... to here.
9041         * modules/frexpl-nolibm (configure.ac): ... and here.
9042
9043 2011-05-20  Bruno Haible  <bruno@clisp.org>
9044
9045         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
9046         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
9047         invocation from here...
9048         * modules/frexp (configure.ac): ... to here.
9049         * modules/frexp-nolibm (configure.ac): ... and here.
9050
9051 2011-05-20  Bruno Haible  <bruno@clisp.org>
9052
9053         isnan: Respect rules for use of AC_LIBOBJ.
9054         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
9055         invocations here.
9056         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
9057         REPLACE_ISNAN.
9058         * modules/isnand (configure.ac): Likewise.
9059         * modules/isnanl (configure.ac): Likewise.
9060
9061 2011-05-20  Bruno Haible  <bruno@clisp.org>
9062
9063         isnanl*: Respect rules for use of AC_LIBOBJ.
9064         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
9065         invocation from here...
9066         * modules/isnanl (configure.ac): ... to here.
9067         * modules/isnanl-nolibm (configure.ac): ... and here.
9068
9069 2011-05-20  Bruno Haible  <bruno@clisp.org>
9070
9071         isnand*: Move AC_LIBOBJ invocations to module description.
9072         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
9073         invocation from here...
9074         * modules/isnand (configure.ac): ... to here.
9075         * modules/isnand-nolibm (configure.ac): ... and here.
9076
9077 2011-05-20  Bruno Haible  <bruno@clisp.org>
9078
9079         isnanf*: Move AC_LIBOBJ invocations to module description.
9080         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
9081         invocation from here...
9082         * modules/isnanf (configure.ac): ... to here.
9083         * modules/isnanf-nolibm (configure.ac): ... and here.
9084
9085 2011-05-20  Bruno Haible  <bruno@clisp.org>
9086
9087         isnan*: Separate the AC_LIBOBJ invocations.
9088         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
9089         AC_LIBOBJ invocation.
9090         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
9091         here.
9092         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
9093         AC_LIBOBJ invocation.
9094         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
9095         here.
9096         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
9097         AC_LIBOBJ invocation.
9098         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
9099         here.
9100         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
9101
9102 2011-05-08  Bruno Haible  <bruno@clisp.org>
9103
9104         isinf: Move AC_LIBOBJ invocations to module description.
9105         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
9106         * modules/isinf (configure.ac): ... to here.
9107
9108 2011-05-08  Bruno Haible  <bruno@clisp.org>
9109
9110         isfinite: Move AC_LIBOBJ invocations to module description.
9111         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
9112         * modules/isfinite (configure.ac): ... to here.
9113
9114 2011-05-08  Bruno Haible  <bruno@clisp.org>
9115
9116         isblank: Move AC_LIBOBJ invocations to module description.
9117         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
9118         here...
9119         * modules/isblank (configure.ac): ... to here.
9120
9121 2011-05-08  Bruno Haible  <bruno@clisp.org>
9122
9123         isapipe: Move AC_LIBOBJ invocations to module description.
9124         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
9125         gl_PREREQ_ISAPIPE invocations from here...
9126         * modules/isapipe (configure.ac): ... to here.
9127         (Depends-on): Update condition.
9128
9129 2011-05-08  Bruno Haible  <bruno@clisp.org>
9130
9131         ioctl: Move AC_LIBOBJ invocations to module description.
9132         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
9133         invocations from here...
9134         * modules/ioctl (configure.ac): ... to here.
9135         (Depends-on): Update condition.
9136
9137 2011-05-08  Bruno Haible  <bruno@clisp.org>
9138
9139         imaxdiv: Move AC_LIBOBJ invocations to module description.
9140         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
9141         invocations from here...
9142         * modules/imaxdiv (configure.ac): ... to here.
9143
9144 2011-05-08  Bruno Haible  <bruno@clisp.org>
9145
9146         imaxabs: Move AC_LIBOBJ invocations to module description.
9147         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
9148         invocations from here...
9149         * modules/imaxabs (configure.ac): ... to here.
9150
9151 2011-05-08  Bruno Haible  <bruno@clisp.org>
9152
9153         getaddrinfo: Move AC_LIBOBJ invocations to module description.
9154         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
9155         AC_LIBOBJ invocations from here...
9156         * modules/getaddrinfo (configure.ac): ... to here.
9157         (Depends-on): Add conditions.
9158
9159 2011-05-08  Bruno Haible  <bruno@clisp.org>
9160
9161         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
9162         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
9163         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
9164         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
9165         (gl_PREREQ_INET_PTON): ... from here.
9166         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
9167         gl_PREREQ_INET_PTON here.
9168         (Depends-on): Update condition.
9169
9170 2011-05-08  Bruno Haible  <bruno@clisp.org>
9171
9172         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
9173         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
9174         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
9175         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
9176         (gl_PREREQ_INET_NTOP): ... from here.
9177         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
9178         gl_PREREQ_INET_NTOP here.
9179         (Depends-on): Update condition.
9180
9181 2011-05-08  Bruno Haible  <bruno@clisp.org>
9182
9183         iconv_open: Move AC_LIBOBJ invocations to module description.
9184         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
9185         AC_LIBOBJ invocations from here...
9186         * modules/iconv_open (configure.ac): ... to here.
9187
9188 2011-05-08  Bruno Haible  <bruno@clisp.org>
9189
9190         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
9191         If module 'iconv_open' is among the main modules and module
9192         'iconv_open-utf' is among the tests dependencies, then
9193         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
9194         return the special iconv_t values. Therefore iconv() and iconv_close()
9195         must support these special iconv_t values, already in lib, not only in
9196         tests.
9197         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
9198         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
9199         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
9200         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
9201         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
9202         (Depends-on): Add the dependencies of iconv_open-utf.
9203         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
9204         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
9205         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
9206
9207 2011-05-08  Bruno Haible  <bruno@clisp.org>
9208
9209         group-member: Move AC_LIBOBJ invocations to module description.
9210         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
9211         gl_PREREQ_GROUP_MEMBER invocations from here...
9212         * modules/group-member (configure.ac): ... to here.
9213
9214 2011-05-08  Bruno Haible  <bruno@clisp.org>
9215
9216         grantpt: Move AC_LIBOBJ invocations to module description.
9217         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
9218         invocations from here...
9219         * modules/grantpt (configure.ac): ... to here.
9220
9221 2011-05-08  Bruno Haible  <bruno@clisp.org>
9222
9223         glob: Move AC_LIBOBJ invocations to module description.
9224         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
9225         from here...
9226         * modules/glob (configure.ac): ... to here.
9227
9228 2011-05-08  Bruno Haible  <bruno@clisp.org>
9229
9230         getusershell: Move AC_LIBOBJ invocations to module description.
9231         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
9232         Move AC_LIBOBJ invocation from here...
9233         * modules/getusershell (configure.ac): ... to here.
9234         (Depends-on): Update condition.
9235
9236 2011-05-08  Bruno Haible  <bruno@clisp.org>
9237
9238         gettimeofday: Move AC_LIBOBJ invocations to module description.
9239         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
9240         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
9241         gl_PREREQ_GETTIMEOFDAY invocations from here...
9242         * modules/gettimeofday (configure.ac): ... to here.
9243
9244 2011-05-08  Bruno Haible  <bruno@clisp.org>
9245
9246         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
9247         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
9248         just gl_FUNC_TZSET.
9249         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
9250         (gl_FUNC_TZSET_CLOBBER): Remove actions.
9251         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
9252         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
9253
9254 2011-05-08  Bruno Haible  <bruno@clisp.org>
9255
9256         getsubopt: Move AC_LIBOBJ invocations to module description.
9257         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
9258         gl_PREREQ_GETSUBOPT invocations from here...
9259         * modules/getsubopt (configure.ac): ... to here.
9260
9261 2011-05-08  Bruno Haible  <bruno@clisp.org>
9262
9263         getpass-gnu: Move AC_LIBOBJ invocations to module description.
9264         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
9265         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
9266         * modules/getpass-gnu (configure.ac): ... to here.
9267
9268 2011-05-08  Bruno Haible  <bruno@clisp.org>
9269
9270         getpass: Move AC_LIBOBJ invocations to module description.
9271         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
9272         gl_PREREQ_GETPASS invocations from here...
9273         * modules/getpass (configure.ac): ... to here.
9274
9275 2011-05-08  Bruno Haible  <bruno@clisp.org>
9276
9277         getpagesize: Move AC_LIBOBJ invocations to module description.
9278         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
9279         from here...
9280         * modules/getpagesize (configure.ac): ... to here.
9281
9282 2011-05-08  Bruno Haible  <bruno@clisp.org>
9283
9284         getopt: Move AC_LIBOBJ invocations to module description.
9285         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
9286         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
9287         invocations from here...
9288         * modules/getopt-gnu (configure.ac): ... to here.
9289         * modules/getopt-posix (configure.ac): ... and here.
9290         (Depends-on): Update condition.
9291
9292 2011-05-08  Bruno Haible  <bruno@clisp.org>
9293
9294         getopt, argp: Respect rules for use of AC_LIBOBJ.
9295         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
9296         (gl_REPLACE_GETOPT_ALWAYS): New macro.
9297         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
9298         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
9299
9300 2011-05-08  Bruno Haible  <bruno@clisp.org>
9301
9302         getlogin_r: Move AC_LIBOBJ invocations to module description.
9303         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
9304         gl_PREREQ_GETLOGIN_R invocations from here...
9305         * modules/getlogin_r (configure.ac): ... to here.
9306
9307 2011-05-08  Bruno Haible  <bruno@clisp.org>
9308
9309         getlogin: Move AC_LIBOBJ invocations to module description.
9310         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
9311         here...
9312         * modules/getlogin (configure.ac): ... to here.
9313
9314 2011-05-08  Bruno Haible  <bruno@clisp.org>
9315
9316         getloadavg: Move AC_LIBOBJ invocations to module description.
9317         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
9318         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
9319         * modules/getloadavg (configure.ac): ... to here.
9320
9321 2011-05-08  Bruno Haible  <bruno@clisp.org>
9322
9323         gethrxtime: Move AC_LIBOBJ invocations to module description.
9324         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
9325         LIB_GETHRXTIME from here...
9326         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
9327         invocations from here...
9328         * modules/gethrxtime (configure.ac): ... to here.
9329
9330 2011-05-08  Bruno Haible  <bruno@clisp.org>
9331
9332         gethostname: Move AC_LIBOBJ invocations to module description.
9333         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
9334         gl_PREREQ_GETHOSTNAME invocations from here...
9335         * modules/gethostname (configure.ac): ... to here.
9336
9337 2011-05-08  Bruno Haible  <bruno@clisp.org>
9338
9339         getgroups: Move AC_LIBOBJ invocations to module description.
9340         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
9341         here...
9342         * modules/getgroups (configure.ac): ... to here.
9343
9344 2011-05-08  Bruno Haible  <bruno@clisp.org>
9345
9346         getdtablesize: Move AC_LIBOBJ invocations to module description.
9347         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
9348         invocation from here...
9349         * modules/getdtablesize (configure.ac): ... to here.
9350
9351 2011-05-08  Bruno Haible  <bruno@clisp.org>
9352
9353         getdomainname: Move AC_LIBOBJ invocations to module description.
9354         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
9355         gl_PREREQ_GETDOMAINNAME invocations from here...
9356         * modules/getdomainname (configure.ac): ... to here.
9357
9358 2011-05-08  Bruno Haible  <bruno@clisp.org>
9359
9360         getline: Move AC_LIBOBJ invocations to module description.
9361         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
9362         invocations from here...
9363         * modules/getline (configure.ac): ... to here.
9364
9365 2011-05-08  Bruno Haible  <bruno@clisp.org>
9366
9367         getline: Simplify.
9368         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
9369         It's already handled through the module dependency.
9370
9371 2011-05-08  Bruno Haible  <bruno@clisp.org>
9372
9373         getdelim: Move AC_LIBOBJ invocations to module description.
9374         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
9375         and gl_PREREQ_GETDELIM invocations from here...
9376         * modules/getdelim (configure.ac): ... to here.
9377         (Depends-on): Fix condition.
9378
9379 2011-05-08  Bruno Haible  <bruno@clisp.org>
9380
9381         getcwd: Move AC_LIBOBJ invocations to module description.
9382         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
9383         invocations from here...
9384         * modules/getcwd (configure.ac): ... to here.
9385
9386 2011-05-08  Bruno Haible  <bruno@clisp.org>
9387
9388         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
9389         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
9390         here...
9391         * modules/getcwd-lgpl (configure.ac): ... to here.
9392
9393 2011-05-07  Bruno Haible  <bruno@clisp.org>
9394
9395         crypto/gc: Move AC_LIBOBJ invocations to module description.
9396         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
9397         * modules/crypto/gc (configure.ac): ... to here.
9398
9399 2011-05-07  Bruno Haible  <bruno@clisp.org>
9400
9401         fwriting: Move AC_LIBOBJ invocations to module description.
9402         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
9403         here...
9404         * modules/fwriting (configure.ac): ... to here.
9405
9406 2011-05-07  Bruno Haible  <bruno@clisp.org>
9407
9408         fwritable: Move AC_LIBOBJ invocations to module description.
9409         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
9410         here...
9411         * modules/fwritable (configure.ac): ... to here.
9412
9413 2011-05-07  Bruno Haible  <bruno@clisp.org>
9414
9415         futimens: Move AC_LIBOBJ invocations to module description.
9416         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
9417         here...
9418         * modules/futimens (configure.ac): ... to here.
9419
9420 2011-05-07  Bruno Haible  <bruno@clisp.org>
9421
9422         ftruncate: Move AC_LIBOBJ invocations to module description.
9423         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
9424         gl_PREREQ_FTRUNCATE invocations from here...
9425         * modules/ftruncate (configure.ac): ... to here.
9426
9427 2011-05-07  Bruno Haible  <bruno@clisp.org>
9428
9429         fsync: Move AC_LIBOBJ invocations to module description.
9430         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
9431         invocations from here...
9432         * modules/fsync (configure.ac): ... to here.
9433
9434 2011-05-07  Bruno Haible  <bruno@clisp.org>
9435
9436         fsusage: Move AC_LIBOBJ invocations to module description.
9437         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
9438         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
9439         * modules/fsusage (configure.ac): ... to here.
9440
9441 2011-05-07  Bruno Haible  <bruno@clisp.org>
9442
9443         freopen: Move AC_LIBOBJ invocations to module description.
9444         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
9445         invocations from here...
9446         * modules/freopen (configure.ac): ... to here.
9447
9448 2011-05-07  Bruno Haible  <bruno@clisp.org>
9449
9450         free: Move AC_LIBOBJ invocations to module description.
9451         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
9452         invocations from here...
9453         * modules/free (configure.ac): ... to here.
9454
9455 2011-05-07  Bruno Haible  <bruno@clisp.org>
9456
9457         freadable: Move AC_LIBOBJ invocations to module description.
9458         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
9459         here...
9460         * modules/freadable (configure.ac): ... to here.
9461
9462 2011-05-07  Bruno Haible  <bruno@clisp.org>
9463
9464         fpurge: Move AC_LIBOBJ invocations to module description.
9465         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
9466         invocations from here...
9467         * modules/fpurge (configure.ac): ... to here.
9468
9469 2011-05-07  Bruno Haible  <bruno@clisp.org>
9470
9471         fpending: Move AC_LIBOBJ invocations to module description.
9472         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
9473         gl_FUNC_FPENDING.
9474         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
9475         invocations from here...
9476         * modules/fpending (configure.ac): ... to here.
9477
9478 2011-05-07  Bruno Haible  <bruno@clisp.org>
9479
9480         fopen: Move AC_LIBOBJ invocations to module description.
9481         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
9482         invocations from here...
9483         * modules/fopen (configure.ac): ... to here.
9484
9485 2011-05-07  Bruno Haible  <bruno@clisp.org>
9486
9487         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
9488         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
9489         gl_FUNC_FNMATCH_POSIX.
9490         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
9491         invocations from here...
9492         * modules/fnmatch (configure.ac): ... to here.
9493         * modules/fnmatch-gnu (configure.ac): ... and here.
9494
9495 2011-05-07  Bruno Haible  <bruno@clisp.org>
9496
9497         flock: Move AC_LIBOBJ invocations to module description.
9498         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
9499         invocations from here...
9500         * modules/flock (configure.ac): ... to here.
9501
9502 2011-05-07  Bruno Haible  <bruno@clisp.org>
9503
9504         fileblocks: Move AC_LIBOBJ invocations to module description.
9505         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
9506         gl_PREREQ_FILEBLOCKS invocations from here...
9507         * modules/fileblocks (configure.ac): ... to here.
9508
9509 2011-05-06  Bruno Haible  <bruno@clisp.org>
9510
9511         fflush: Move AC_LIBOBJ invocations to module description.
9512         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
9513         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
9514         invocations from here...
9515         * modules/fflush (configure.ac): ... to here.
9516
9517 2011-05-06  Bruno Haible  <bruno@clisp.org>
9518
9519         fdopendir: Move AC_LIBOBJ invocations to module description.
9520         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
9521         here...
9522         * modules/fdopendir (configure.ac): ... to here.
9523         (Depends-on): Improve conditions.
9524
9525 2011-05-06  Bruno Haible  <bruno@clisp.org>
9526
9527         _Exit: Move AC_LIBOBJ invocations to module description.
9528         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
9529         invocations from here...
9530         * modules/_Exit (configure.ac): ... to here.
9531
9532 2011-05-21  Bruno Haible  <bruno@clisp.org>
9533
9534         euidaccess: Respect rules for use of AC_LIBOBJ.
9535         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9536         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
9537         from here...
9538         * modules/euidaccess (configure.ac): ... to here.
9539
9540 2011-05-06  Bruno Haible  <bruno@clisp.org>
9541
9542         error: Move AC_LIBOBJ invocations to module description.
9543         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
9544         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
9545         invocations from here...
9546         * modules/error (configure.ac): ... to here.
9547
9548 2011-05-06  Bruno Haible  <bruno@clisp.org>
9549
9550         duplocale: Move AC_LIBOBJ invocations to module description.
9551         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
9552         gl_PREREQ_DUPLOCALE invocations from here...
9553         * modules/duplocale (configure.ac): ... to here.
9554
9555 2011-05-05  Bruno Haible  <bruno@clisp.org>
9556
9557         dirfd: Move AC_LIBOBJ invocations to module description.
9558         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
9559         gl_FUNC_DIRFD.
9560         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
9561         here...
9562         * modules/dirfd (configure.ac): ... to here.
9563         (Depends-on): Fix condition.
9564
9565 2011-05-05  Bruno Haible  <bruno@clisp.org>
9566
9567         chown: Respect rules for use of AC_LIBOBJ.
9568         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
9569         * modules/chown (configure.ac): ... to here.
9570
9571 2011-05-05  Bruno Haible  <bruno@clisp.org>
9572
9573         chdir-long: Move AC_LIBOBJ invocations to module description.
9574         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
9575         gl_PREREQ_CHDIR_LONG invocations from here...
9576         * modules/chdir-long (configure.ac): ... to here.
9577
9578 2011-05-05  Bruno Haible  <bruno@clisp.org>
9579
9580         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
9581         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
9582         from here...
9583         * modules/canonicalize-lgpl (configure.ac): ... to here.
9584
9585 2011-05-05  Bruno Haible  <bruno@clisp.org>
9586
9587         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
9588         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
9589         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
9590         REPLACE_CALLOC.
9591         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
9592         * modules/calloc-gnu (configure.ac): Likewise.
9593
9594 2011-05-05  Bruno Haible  <bruno@clisp.org>
9595
9596         btowc: Move AC_LIBOBJ invocations to module description.
9597         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
9598         invocations from here...
9599         * modules/btowc (configure.ac): ... to here.
9600
9601 2011-05-21  Bruno Haible  <bruno@clisp.org>
9602
9603         atexit: Move AC_LIBOBJ invocations to module description.
9604         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
9605         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
9606         here...
9607         * modules/atexit (configure.ac): ... to here.
9608
9609 2011-05-05  Bruno Haible  <bruno@clisp.org>
9610
9611         atoll: Move AC_LIBOBJ invocations to module description.
9612         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
9613         invocations from here...
9614         * modules/atoll (configure.ac): ... to here.
9615
9616 2011-05-05  Bruno Haible  <bruno@clisp.org>
9617
9618         argz: Move AC_LIBOBJ invocations to module description.
9619         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
9620         * modules/argz (configure.ac): ... to here.
9621
9622 2011-05-05  Bruno Haible  <bruno@clisp.org>
9623
9624         alphasort: Move AC_LIBOBJ invocations to module description.
9625         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
9626         gl_PREREQ_ALPHASORT invocations from here...
9627         * modules/alphasort (configure.ac): ... to here.
9628
9629 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
9630
9631         verify: new macro verify_expr; verify_true deprecated
9632         * NEWS: Mention this.
9633         * doc/verify.texi (Compile-time Assertions): Document this.
9634         * lib/verify.h (verify_true): Deprecate.
9635         (verify_expr): New macro.
9636         * tests/test-verify.c (function): Test verify_expr.
9637
9638 2011-06-14  Jim Meyering  <meyering@redhat.com>
9639
9640         init.sh: give more portable redirection-related advice in a comment
9641         * tests/init.sh (stderr_fileno_): Update the advice in comments.
9642         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
9643         for lots of discussion.  Stefano Lattarini suggested the solution
9644         of putting "9>&2" after the command.  Reported by Bruno Haible.
9645
9646 2011-06-13  Bruno Haible  <bruno@clisp.org>
9647
9648         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
9649         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
9650         'none'.
9651
9652 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
9653
9654         ftoastr: use strtof only if HAVE_STRTOF
9655         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
9656         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
9657         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
9658         * modules/ftoastr (configure.ac): Check for strtof.
9659
9660 2011-06-13  Bruno Haible  <bruno@clisp.org>
9661
9662         gnulib-tool: Addendum to 2011-06-08 commit.
9663         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
9664         and --witness-c-macro have been given, augment AM_CPPFLAGS.
9665
9666 2011-06-13  Bruno Haible  <bruno@clisp.org>
9667
9668         fseeko: Provide a non-inline replacement of fseek().
9669         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
9670         * modules/fseeko (Depends-on): Add fseek.
9671         * modules/fseek (License): Change to LGPLv2+.
9672
9673 2011-06-13  Bruno Haible  <bruno@clisp.org>
9674
9675         ftello: Provide a non-inline replacement of ftell().
9676         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
9677         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
9678         not have ftello() (such as on mingw).
9679         * modules/ftello (Depends-on): Add ftell.
9680         * modules/ftell (License): Change to LGPLv2+.
9681
9682 2011-05-07  Bruno Haible  <bruno@clisp.org>
9683
9684         ftell: Move AC_LIBOBJ invocations to module description.
9685         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
9686         * modules/ftell (configure.ac): ... to here.
9687
9688 2011-05-07  Bruno Haible  <bruno@clisp.org>
9689
9690         ftello: Respect rules for use of AC_LIBOBJ.
9691         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
9692         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
9693         here...
9694         * modules/ftello (configure.ac): ... to here.
9695
9696 2011-05-07  Bruno Haible  <bruno@clisp.org>
9697
9698         fseeko: Simplify.
9699         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
9700         (gl_FUNC_FSEEKO): Inline it here.
9701
9702 2011-05-07  Bruno Haible  <bruno@clisp.org>
9703
9704         fseek: Move AC_LIBOBJ invocations to module description.
9705         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
9706         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9707         * modules/fseek (configure.ac): ... to here.
9708
9709 2011-05-07  Bruno Haible  <bruno@clisp.org>
9710
9711         fseek: Respect rules for use of AC_LIBOBJ.
9712         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
9713         here...
9714         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
9715
9716 2011-05-07  Bruno Haible  <bruno@clisp.org>
9717
9718         fseeko: Respect rules for use of AC_LIBOBJ.
9719         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
9720         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
9721         here...
9722         * modules/fseeko (configure.ac): ... to here.
9723
9724 2011-06-13  Bruno Haible  <bruno@clisp.org>
9725
9726         gnulib-tool: Allow comments in the 'Depends-on' section.
9727         * doc/gnulib.texi (Module description): Mention comment syntax in the
9728         Depends-on section.
9729         * gnulib-tool (func_get_dependencies): Filter out comment lines.
9730
9731 2011-06-13  Bruno Haible  <bruno@clisp.org>
9732
9733         file-set.h: guard __attibute__ use, now that it's not always defined
9734         * lib/file-set.h (record_file): Use __attribute__ only with compiler
9735         versions that support it.  This fixes a coreutils build failure with
9736         the vendor cc on HP-UX 11.31.
9737
9738 2011-06-12  Bruno Haible  <bruno@clisp.org>
9739
9740         acl: Add support for HP-UX >= 11.11 JFS ACLs.
9741         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
9742         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
9743         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
9744         (acl, aclsort): New declarations.
9745         (aclv_nontrivial): New declaration.
9746         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
9747         (file_has_acl): Read also the second kind of HP-UX ACLs.
9748         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
9749         kind of HP-UX ACLs if the first kind fails.
9750         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
9751         second kind of HP-UX ACLs.
9752         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
9753         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
9754         agree.
9755         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9756         hpuxjfs.
9757         Handle hpuxjfs.
9758         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
9759         hpuxjfs.
9760         Handle hpuxjfs.
9761         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9762         (func_test_same_acls): Use both lsacl and getacl.
9763         Handle hpuxjfs.
9764         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
9765         (func_test_same_acls): Use both lsacl and getacl.
9766         Handle hpuxjfs.
9767
9768 2011-06-12  Bruno Haible  <bruno@clisp.org>
9769
9770         acl: Complete the 2010-08-10 fix.
9771         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
9772         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
9773         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
9774         explicitly.
9775         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
9776         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
9777
9778 2011-06-12  Bruno Haible  <bruno@clisp.org>
9779
9780         spawn-pipe tests: Comments.
9781         * tests/test-spawn-pipe-child.c (main): Update comment.
9782         Reported by James Youngman <jay@gnu.org>.
9783
9784 2011-06-11  James Youngman  <jay@gnu.org>
9785
9786         New module 'stat-size'.
9787         * modules/stat-size: New module.  Provides macros for accessing
9788         file size information in instances of struct stat.  Depends on the
9789         fileblocks module because it calls st_blocks.
9790         * lib/stat-size.h: New file, adapted from coreutils' system.h.
9791         * doc/gnulib.texi: Include stat-size.texi.
9792         * doc/stat-size.texi: Documentation for this module.
9793         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
9794         * m4/fileblocks.m4: Mention that stat-size depends on the call to
9795         AC_STRUCT_ST_BLOCKS.
9796
9797 2011-06-09  Bruno Haible  <bruno@clisp.org>
9798
9799         thread: Support pthreads-win32.
9800         * lib/glthread/thread.h (gl_thread_self): Define differently on
9801         pthreads-win32.
9802         (gl_null_thread): New declaration.
9803         (gl_thread_self_pointer): New macro.
9804         * lib/glthread/thread.c (gl_null_thread): New constant.
9805         * tests/test-lock.c: Use gl_thread_self_pointer instead of
9806         gl_thread_self.
9807         * tests/test-tls.c: Likewise.
9808         Suggested by Paul Eggert. Reported by Eric Blake.
9809
9810 2011-06-09  Bruno Haible  <bruno@clisp.org>
9811
9812         thread: Fix confusion between NULL and 0.
9813         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
9814         Reported by Paul Eggert.
9815
9816 2011-06-09  Bruno Haible  <bruno@clisp.org>
9817
9818         spawn-pipe tests: Avoid test failure on HP-UX 11.
9819         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
9820         is closed.
9821
9822 2011-06-09  Bruno Haible  <bruno@clisp.org>
9823
9824         acl tests: Fix compilation error on HP-UX 11.
9825         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
9826
9827 2011-06-09  Bruno Haible  <bruno@clisp.org>
9828
9829         rmdir: Avoid test failure on HP-UX 10.20.
9830         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
9831         EEXIST.
9832
9833 2011-06-08  Eric Blake  <eblake@redhat.com>
9834
9835         perror: fix test on mingw
9836         * modules/perror-tests (Depends-on): Add dup2.
9837
9838         strerror_r-posix: fix on MacOS
9839         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
9840         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
9841         logic bug.
9842         * lib/strerror_r.c (strerror_r): Fix the bug.
9843         * lib/strerror.c (strerror): Likewise.
9844         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
9845         problem.
9846         * doc/posix-functions/strerror.texi (strerror): Likewise.
9847         * doc/posix-functions/perror.texi (perror): Likewise.
9848         * tests/test-strerror.c (main): Enhance test.
9849         * tests/test-strerror_r.c (main): Likewise.
9850
9851 2011-06-08  Bruno Haible  <bruno@clisp.org>
9852
9853         gnulib-tool: Better isolation between different gnulib-tool invocations.
9854         * gnulib-tool: New option --witness-c-macro.
9855         (witness_c_macro): New variable.
9856         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
9857         AM_CPPFLAGS define it as a C macro.
9858         (func_emit_tests_Makefile_am): Likewise.
9859         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
9860         read it from there.
9861         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
9862         m4_define, not AC_DEFUN.
9863         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
9864         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
9865         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
9866         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
9867         s|...|...|, to substitute the values of the GNULIB_* module indicator
9868         variables.
9869         * modules/dirent (Makefile.am): Likewise.
9870         * modules/fcntl-h (Makefile.am): Likewise.
9871         * modules/iconv-h (Makefile.am): Likewise.
9872         * modules/langinfo (Makefile.am): Likewise.
9873         * modules/locale (Makefile.am): Likewise.
9874         * modules/math (Makefile.am): Likewise.
9875         * modules/netdb (Makefile.am): Likewise.
9876         * modules/poll-h (Makefile.am): Likewise.
9877         * modules/pty (Makefile.am): Likewise.
9878         * modules/search (Makefile.am): Likewise.
9879         * modules/signal (Makefile.am): Likewise.
9880         * modules/spawn (Makefile.am): Likewise.
9881         * modules/stdio (Makefile.am): Likewise.
9882         * modules/stdlib (Makefile.am): Likewise.
9883         * modules/string (Makefile.am): Likewise.
9884         * modules/sys_ioctl (Makefile.am): Likewise.
9885         * modules/sys_select (Makefile.am): Likewise.
9886         * modules/sys_socket (Makefile.am): Likewise.
9887         * modules/sys_stat (Makefile.am): Likewise.
9888         * modules/sys_times (Makefile.am): Likewise.
9889         * modules/sys_utsname (Makefile.am): Likewise.
9890         * modules/sys_wait (Makefile.am): Likewise.
9891         * modules/termios (Makefile.am): Likewise.
9892         * modules/time (Makefile.am): Likewise.
9893         * modules/unistd (Makefile.am): Likewise.
9894         * modules/wchar (Makefile.am): Likewise.
9895
9896 2011-06-08  Eric Blake  <eblake@redhat.com>
9897
9898         strerror: simplify replacement
9899         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
9900         * modules/strerror (configure.ac): No prereqs needed here...
9901         * modules/strerror-override (configure.ac): ...but this needs it.
9902         (Files): Add file for needed prereq macro.
9903
9904 2011-06-08  Bruno Haible  <bruno@clisp.org>
9905
9906         strerror_r-posix: Tweaks.
9907         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
9908         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
9909         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
9910         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
9911         (gl_FUNC_STRERROR_R): ... to here.
9912         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
9913
9914 2011-06-07  Eric Blake  <eblake@redhat.com>
9915
9916         perror: document fixed bugs
9917         * doc/posix-functions/perror.texi (perror): Document recent
9918         patches.
9919
9920 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
9921
9922         stat-time: get_stat_birthtime failure is better-defined
9923         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
9924         return a timestamp whose tv_sec and tv_nsec values are both -1.
9925         Previously, the spec said only that the tv_nsec value was negative.
9926         This upward-compatible change simplifies GNU tar a bit.
9927
9928 2011-06-07  Eric Blake  <eblake@redhat.com>
9929
9930         strerror_r-posix: work around cygwin 1.7.9
9931         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
9932         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
9933         bug without replacing strerror_r.
9934         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
9935         strerror_r is buggy, but without requiring strerror_r compilation.
9936         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
9937
9938         test-perror: relax test to ignore cygwin bug
9939         * tests/test-perror2.c (main): Relax test on requiring detection
9940         of stream errors, and use unbuffered stream.
9941         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
9942         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
9943         * doc/posix-functions/fputc.texi (fputc): Likewise.
9944         * doc/posix-functions/fputs.texi (fputs): Likewise.
9945         * doc/posix-functions/fputws.texi (fputws): Likewise.
9946         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
9947         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
9948         * doc/posix-functions/getopt.texi (getopt): Likewise.
9949         * doc/posix-functions/perror.texi (perror): Likewise.
9950         * doc/posix-functions/printf.texi (printf): Likewise.
9951         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
9952         * doc/posix-functions/psignal.texi (psignal): Likewise.
9953         * doc/posix-functions/putc.texi (putc): Likewise.
9954         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
9955         Likewise.
9956         * doc/posix-functions/putchar.texi (putchar): Likewise.
9957         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
9958         Likewise.
9959         * doc/posix-functions/puts.texi (puts): Likewise.
9960         * doc/posix-functions/putwc.texi (putwc): Likewise.
9961         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
9962         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
9963         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
9964         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
9965         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
9966         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
9967         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
9968         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
9969
9970 2011-05-22  Bruno Haible  <bruno@clisp.org>
9971
9972         strerror: Move AC_LIBOBJ invocations to module description.
9973         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
9974         gl_PREREQ_STRERROR invocations from here...
9975         * modules/strerror (configure.ac): ... to here.
9976
9977 2011-05-21  Bruno Haible  <bruno@clisp.org>
9978
9979         perror: Use common idiom.
9980         * modules/perror (configure.ac): Reorder statements.
9981
9982 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9983
9984         tests: fix usage message in 'mktempd_'
9985         * tests/init.sh (mktempd_): In the usage message, use literal
9986         'mktempd_', not '$ME' (which is even undefined), as the name of
9987         the subroutine.
9988
9989 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
9990
9991         tests init: new function 'fatal_', for hard errors
9992         Before this patch, the only way offered by tests/init.sh to
9993         properly signal a hard error was the `framework_failure_'
9994         function.  But the error message issued by that function,
9995         as its name would suggest, refers to a set-up failure in the
9996         testsuite, while hard errors can obviously also be due to
9997         other reasons.  The best way to fix this inconsistency is to
9998         introduce a new function with a more general error message.
9999         * tests/init.sh (fatal_): New function.
10000
10001 2011-06-06  Eric Blake  <eblake@redhat.com>
10002
10003         canonicalize-lgpl: use common idiom
10004         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
10005         over newer POSIX -Rf.
10006         Reported by Bruno Haible.
10007
10008         canonicalize-lgpl: work around AIX realpath bug
10009         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
10010         * doc/posix-functions/realpath.texi (realpath): Document it.
10011         Reported by Bruno Haible.
10012
10013         strerror: work around FreeBSD bug
10014         * lib/strerror.c (strerror): Special case 0.
10015         Reported by Bruno Haible.
10016
10017         strerror-override: avoid bloating errno module
10018         * modules/errno (Files, configure.ac): Move replacement strings...
10019         * modules/strerror-override: ...to new module.
10020         * modules/strerror (Depends-on): Add strerror-override.
10021         * modules/strerror_r-posix (Depends-on): Likewise.
10022         * MODULES.html.sh: Document new module.
10023         Reported by Bruno Haible.
10024
10025 2011-06-06  Bruno Haible  <bruno@clisp.org>
10026
10027         spawn-pipe tests: Rename program.
10028         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
10029         * tests/test-spawn-pipe-child.c: Update comment.
10030         * tests/test-spawn-pipe.sh: Update.
10031         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
10032
10033         spawn-pipe tests: Link the child program only against libc.
10034         * tests/test-spawn-pipe-child.c: New file, extracted from
10035         tests/test-spawn-pipe.c.
10036         (main): Expect only one argument.
10037         (is_open): New function, copied from tests/test-pipe.c.
10038         * tests/test-spawn-pipe.c: Don't include <errno.h>.
10039         (child_main): Remove function.
10040         (test_pipe): Pass only one argument to the child program.
10041         (main): Remove child process code. Expect the child program's name as
10042         first argument.
10043         * tests/test-spawn-pipe.sh: Pass the child program's name as first
10044         argument.
10045         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
10046         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
10047         test-spawn-pipe-child against no libraries.
10048
10049 2011-06-06  Bruno Haible  <bruno@clisp.org>
10050
10051         careadlinkat: Avoid mismatch between ssize_t and int.
10052         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
10053         * lib/careadlinkat.c (careadlinkatcwd): Define always.
10054
10055 2011-06-06  Jim Meyering  <meyering@redhat.com>
10056
10057         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
10058         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
10059         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
10060
10061 2011-06-05  Bruno Haible  <bruno@clisp.org>
10062
10063         ansi-c++-opt: Interoperability with libtool.
10064         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
10065         set the variable to "no", not to ":".
10066         * NEWS: Mention the change.
10067
10068 2011-06-05  Bruno Haible  <bruno@clisp.org>
10069
10070         acl: Fix test failure on AIX 7.
10071         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
10072         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
10073
10074 2011-06-05  Bruno Haible  <bruno@clisp.org>
10075
10076         pipe-filter-ii: Fix test failure on AIX and IRIX.
10077         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
10078         with EAGAIN, retry with a smaller buffer size.
10079
10080 2011-06-05  Bruno Haible  <bruno@clisp.org>
10081
10082         localename: Fix link dependencies.
10083         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
10084         * modules/localename-tests (Makefile.am): Link test-localename with
10085         $(LIBTHREAD).
10086
10087 2011-06-05  Bruno Haible  <bruno@clisp.org>
10088
10089         error: Avoid gcc warning.
10090         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
10091
10092 2011-06-05  Bruno Haible  <bruno@clisp.org>
10093
10094         unsetenv: Avoid gcc warning.
10095         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
10096
10097 2011-06-05  Bruno Haible  <bruno@clisp.org>
10098
10099         setenv: Avoid gcc warning.
10100         * lib/setenv.c (setenv): Provide declaration if system lacks it.
10101
10102 2011-06-05  Bruno Haible  <bruno@clisp.org>
10103
10104         sys_select: Ensure memset is declared also on AIX 7.
10105         * lib/sys_select.in.h: Include <string.h> also on AIX.
10106         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
10107         self-contained also on AIX 7.1.
10108
10109 2011-06-04  Jim Meyering  <meyering@redhat.com>
10110
10111         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
10112         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
10113         function name, "error".
10114         (_gl_translatable_diag_func_re): New configurable variable.
10115
10116 2011-06-04  Bruno Haible  <bruno@clisp.org>
10117
10118         getopt: Avoid gcc warning.
10119         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
10120
10121 2011-06-04  Bruno Haible  <bruno@clisp.org>
10122
10123         strerror_r: Fix comments.
10124         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
10125         commit.
10126
10127 2011-06-04  Bruno Haible  <bruno@clisp.org>
10128
10129         perror: Fix compilation error.
10130         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
10131         Undefine fprintf, not sprintf.
10132         * modules/perror (Depends-on): Remove intprops, verify.
10133
10134 2011-06-04  Bruno Haible  <bruno@clisp.org>
10135
10136         setlocale: Enable replacement on Cygwin 1.5.
10137         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
10138         Cygwin 1.5.x.
10139         * doc/posix-functions/setlocale.texi: Mention that the problem with the
10140         LC_CTYPE category also exists on Cygwin 1.5.x.
10141
10142 2011-06-04  Bruno Haible  <bruno@clisp.org>
10143
10144         strerror-override: Don't disable symbol renamings.
10145         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
10146         * lib/strerror-override.c: Include config.h.
10147         (strerror_override): Don't undefine.
10148
10149 2011-06-03  Bruno Haible  <bruno@clisp.org>
10150
10151         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
10152         * lib/localename.h: Update copyright header.
10153         * lib/localename.c: Likewise.
10154         * lib/relocatable.h: Likewise.
10155         * lib/relocatable.c: Likewise.
10156
10157 2011-06-02  Bruno Haible  <bruno@clisp.org>
10158
10159         doc: Fix a module name.
10160         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
10161
10162 2011-06-02  Bruno Haible  <bruno@clisp.org>
10163
10164         pipe2: Remove dependency on 'nonblocking' module.
10165         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
10166         O_NONBLOCK is defined by gnulib.
10167         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
10168         is zero.
10169         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
10170         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
10171         defined by gnulib.
10172         (get_nonblocking_flag): New function.
10173         (main): Test O_NONBLOCK flag only if it is nonzero.
10174         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
10175
10176 2011-06-03  Jim Meyering  <meyering@redhat.com>
10177
10178         maint: three new prohibit-header-without-use rules
10179         Prohibit use of cloexec.h, posixver.h, same.h without use.
10180         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
10181         (sc_prohibit_posixver_without_use): Likewise.
10182         (sc_prohibit_same_without_use): Likewise.
10183
10184 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
10185
10186         allocator: 'die' routine is now given requested size
10187         * lib/allocator.h (struct allocator.die): New size arg.
10188         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
10189         If the actual problem is an ssize_t limitation, not a size_t or
10190         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
10191
10192 2011-06-01  Eric Blake  <eblake@redhat.com>
10193
10194         strerror: drop strerror_r dependency
10195         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
10196         * lib/strerror-override.c (strerror_override): ...to new file.
10197         * lib/strerror-override.h: Add prototype.
10198         * lib/strerror-impl.h: Delete.
10199         * lib/strerror.c (strerror): New implementation.
10200         * modules/errno (Files): Add new files.
10201         (configure.ac): Compile new file as appropriate.
10202         * modules/strerror (Files): Drop unused file.
10203         (Depends-on): Drop strerror_r-posix.
10204         * MODULES.html.sh: Document strerror_r-posix.
10205         Requested by Sam Steingold.
10206
10207         perror: call strerror_r directly
10208         * modules/perror (Files): Drop strerror-impl.h.
10209         * lib/perror.c (perror): Use our own stack buffer, rather than
10210         calling a wrapper that uses static storage.
10211         * doc/posix-functions/perror.texi (perror): Document a limitation
10212         of our replacement.
10213
10214         strerror_r: fix includes for FreeBSD
10215         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
10216         since we use abort on some platforms.
10217         Reported by Matthias Bolte.
10218
10219 2011-05-31  Bruno Haible  <bruno@clisp.org>
10220
10221         Fix link errors in tests: openat-die uses gettext-h.
10222         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
10223         against $(LIBINTL).
10224         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
10225         against $(LIBINTL).
10226         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
10227         $(LIBINTL).
10228         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
10229         against $(LIBINTL).
10230         * modules/linkat-tests (Makefile.am): Link test-linkat against
10231         $(LIBINTL).
10232         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
10233         $(LIBINTL).
10234         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
10235         against $(LIBINTL).
10236         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
10237         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
10238         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
10239         $(LIBINTL).
10240         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
10241         $(LIBINTL).
10242         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
10243         $(LIBINTL).
10244         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10245
10246 2011-05-31  Bruno Haible  <bruno@clisp.org>
10247
10248         Fix link errors in tests: wait-process uses gettext-h.
10249         * modules/nonblocking-pipe-tests (Makefile.am): Set
10250         test_nonblocking_pipe_main_LDADD.
10251         * modules/nonblocking-socket-tests (Makefile.am): Link
10252         test-nonblocking-socket-main against $(LIBINTL).
10253         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10254
10255 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
10256
10257         assert-h: work around 'verify' incompatibility
10258         * lib/verify.h: Use @...@ directives, not ifdef.
10259         * modules/assert-h (assert.h): Implement the directives.
10260         (assert.h): Substitute the symbol-prefix more consistently.
10261
10262 2011-05-29  Jim Meyering  <meyering@redhat.com>
10263
10264         trim: remove three superfluous assignments
10265         * lib/trim.c (trim2): Remove three superfluous assignments
10266         and correct brace positioning.
10267
10268 2011-05-29  Bruno Haible  <bruno@clisp.org>
10269
10270         wctype-h: Avoid namespace pollution on Solaris 2.6.
10271         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
10272         identifiers.
10273         * doc/posix-headers/wctype.texi: Mention the problem.
10274         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10275
10276 2011-05-28  Jim Meyering  <meyering@redhat.com>
10277
10278         parse-datetime.y: accommodate -Wstrict-overflow
10279         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
10280         placate -Wstrict-overflow.
10281
10282         trim: avoid a warning from -O2 -Wstrict-overflow
10283         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
10284
10285 2011-05-29  Bruno Haible  <bruno@clisp.org>
10286
10287         gnulib-tool: Fix bug in yesterday's commit.
10288         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
10289         twice.
10290
10291 2011-05-29  Bruno Haible  <bruno@clisp.org>
10292
10293         Allow multiple gnulib generated include files to be combined.
10294         * gnulib-tool (func_compute_include_guard_prefix): New function.
10295         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
10296         ${gl_include_guard_prefix} references.
10297         (func_import, func_create_testdir): Invoke
10298         func_compute_include_guard_prefix.
10299         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
10300         * lib/ctype.in.h: Likewise.
10301         * lib/dirent.in.h: Likewise.
10302         * lib/errno.in.h: Likewise.
10303         * lib/fcntl.in.h: Likewise.
10304         * lib/float.in.h: Likewise.
10305         * lib/getopt.in.h: Likewise.
10306         * lib/iconv.in.h: Likewise.
10307         * lib/langinfo.in.h: Likewise.
10308         * lib/locale.in.h: Likewise.
10309         * lib/math.in.h: Likewise.
10310         * lib/netdb.in.h: Likewise.
10311         * lib/netinet_in.in.h: Likewise.
10312         * lib/poll.in.h: Likewise.
10313         * lib/pthread.in.h: Likewise.
10314         * lib/pty.in.h: Likewise.
10315         * lib/sched.in.h: Likewise.
10316         * lib/se-selinux.in.h: Likewise.
10317         * lib/search.in.h: Likewise.
10318         * lib/signal.in.h: Likewise.
10319         * lib/spawn.in.h: Likewise.
10320         * lib/stdarg.in.h: Likewise.
10321         * lib/stddef.in.h: Likewise.
10322         * lib/stdint.in.h: Likewise.
10323         * lib/stdio.in.h: Likewise.
10324         * lib/stdlib.in.h: Likewise.
10325         * lib/string.in.h: Likewise.
10326         * lib/strings.in.h: Likewise.
10327         * lib/sys_file.in.h: Likewise.
10328         * lib/sys_ioctl.in.h: Likewise.
10329         * lib/sys_select.in.h: Likewise.
10330         * lib/sys_socket.in.h: Likewise.
10331         * lib/sys_stat.in.h: Likewise.
10332         * lib/sys_time.in.h: Likewise.
10333         * lib/sys_times.in.h: Likewise.
10334         * lib/sys_uio.in.h: Likewise.
10335         * lib/sys_utsname.in.h: Likewise.
10336         * lib/sys_wait.in.h: Likewise.
10337         * lib/sysexits.in.h: Likewise.
10338         * lib/termios.in.h: Likewise.
10339         * lib/time.in.h: Likewise.
10340         * lib/unistd.in.h: Likewise.
10341         * lib/wchar.in.h: Likewise.
10342         * lib/wctype.in.h: Likewise.
10343         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
10344         * modules/ctype (Makefile.am): Likewise.
10345         * modules/dirent (Makefile.am): Likewise.
10346         * modules/errno (Makefile.am): Likewise.
10347         * modules/fcntl-h (Makefile.am): Likewise.
10348         * modules/float (Makefile.am): Likewise.
10349         * modules/getopt-posix (Makefile.am): Likewise.
10350         * modules/iconv-h (Makefile.am): Likewise.
10351         * modules/langinfo (Makefile.am): Likewise.
10352         * modules/locale (Makefile.am): Likewise.
10353         * modules/math (Makefile.am): Likewise.
10354         * modules/netdb (Makefile.am): Likewise.
10355         * modules/netinet_in (Makefile.am): Likewise.
10356         * modules/poll-h (Makefile.am): Likewise.
10357         * modules/pthread (Makefile.am): Likewise.
10358         * modules/pty (Makefile.am): Likewise.
10359         * modules/sched (Makefile.am): Likewise.
10360         * modules/search (Makefile.am): Likewise.
10361         * modules/selinux-h (Makefile.am): Likewise.
10362         * modules/signal (Makefile.am): Likewise.
10363         * modules/spawn (Makefile.am): Likewise.
10364         * modules/stdarg (Makefile.am): Likewise.
10365         * modules/stddef (Makefile.am): Likewise.
10366         * modules/stdint (Makefile.am): Likewise.
10367         * modules/stdio (Makefile.am): Likewise.
10368         * modules/stdlib (Makefile.am): Likewise.
10369         * modules/string (Makefile.am): Likewise.
10370         * modules/strings (Makefile.am): Likewise.
10371         * modules/sys_file (Makefile.am): Likewise.
10372         * modules/sys_ioctl (Makefile.am): Likewise.
10373         * modules/sys_select (Makefile.am): Likewise.
10374         * modules/sys_socket (Makefile.am): Likewise.
10375         * modules/sys_stat (Makefile.am): Likewise.
10376         * modules/sys_time (Makefile.am): Likewise.
10377         * modules/sys_times (Makefile.am): Likewise.
10378         * modules/sys_uio (Makefile.am): Likewise.
10379         * modules/sys_utsname (Makefile.am): Likewise.
10380         * modules/sys_wait (Makefile.am): Likewise.
10381         * modules/sysexits (Makefile.am): Likewise.
10382         * modules/termios (Makefile.am): Likewise.
10383         * modules/time (Makefile.am): Likewise.
10384         * modules/unistd (Makefile.am): Likewise.
10385         * modules/wchar (Makefile.am): Likewise.
10386         * modules/wctype-h (Makefile.am): Likewise.
10387         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
10388
10389 2011-05-29  Bruno Haible  <bruno@clisp.org>
10390
10391         assert-h: Allow multiple gnulib generated replacements to coexist.
10392         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
10393
10394 2011-05-29  Bruno Haible  <bruno@clisp.org>
10395
10396         argp: Allow coexistence with strerror_r-posix module.
10397         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
10398         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
10399         by gnulib's <string.h> replacement), assume it has the POSIX signature,
10400         not the glibc signature.
10401
10402 2011-05-28  Bruno Haible  <bruno@clisp.org>
10403
10404         gnulib-tool: Alternative structure of testdirs, similar to --import.
10405         * gnulib-tool: New option --single-configure.
10406         (func_usage): Document it.
10407         (single_configure): New variable.
10408         (func_modules_transitive_closure_separately,
10409         func_modules_transitive_closure_separately,
10410         func_determine_use_libtests, func_modules_add_dummy_separately,
10411         func_modules_to_filelist_separately): New functions, extracted from
10412         func_import.
10413         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
10414         (func_import): Use the new functions.
10415         (func_create_testdir): Set final_modules. Handle $single_configure =
10416         true case.
10417
10418 2011-05-28  Bruno Haible  <bruno@clisp.org>
10419
10420         getloadavg: Remove an unreliable safety check.
10421         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
10422         getloadavg.c is in place.
10423         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
10424         Reported by Sam Steingold <sds@gnu.org>.
10425
10426 2011-05-28  Bruno Haible  <bruno@clisp.org>
10427
10428         doc: Cleanup yet another file produced by texinfo.tex.
10429         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
10430
10431 2011-05-28  Bruno Haible  <bruno@clisp.org>
10432
10433         Finish the conditional dependencies mechanism.
10434         * gnulib-tool: New option --no-conditional-dependencies.
10435         (func_usage): Document it. Don't mark --conditional-dependencies as
10436         experimental.
10437         (cond_dependencies): The possible values can now be true, false, empty.
10438         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
10439         (func_import): Store setting in gnulib-cache.m4 and read it from there.
10440         * doc/gnulib-tool.texi (Conditional dependencies): New section.
10441
10442 2011-05-28  Bruno Haible  <bruno@clisp.org>
10443
10444         doc: Use a recent texinfo.tex.
10445         * doc/Makefile (tex_opts): New variable.
10446         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
10447
10448 2011-05-28  Jim Meyering  <meyering@redhat.com>
10449
10450         intprops.h: adjust comment to match code change
10451         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
10452         only once, it *may* have side effects.  Also fix an unrelated typo.
10453         (_GL_INT_SIGNED): Likewise.
10454
10455 2011-05-26  Simon Josefsson  <simon@josefsson.org>
10456
10457         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
10458
10459 2011-05-26  Bruno Haible  <bruno@clisp.org>
10460
10461         mbsrchr: Avoid collision with system function on Interix.
10462         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
10463         Reported by Markus Duft <mduft@gentoo.org>.
10464
10465 2011-05-15  James Youngman  <jay@gnu.org>
10466
10467         getopt: for ambiguous options, enumerate the possibilities.
10468         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
10469         the ambiguous options when an ambiguous prefix is given. This was
10470         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
10471         glibc change was
10472         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
10473
10474 2011-05-25  Eric Blake  <eblake@redhat.com>
10475
10476         getcwd: work around mingw bug
10477         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
10478         * doc/posix-functions/getcwd.texi (getcwd): Document it.
10479         Reported by Matthias Bolte.
10480
10481 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
10482
10483         test-intprops: disable -Wtype-limits diagnostics
10484         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
10485         diagnostics.  Otherwise, the integer overflow macros generate many
10486         diagnostics.  Reported by Jim Meyering in
10487         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10488
10489         intprops: shorten, to pacify gcc -Woverlength-strings
10490         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
10491         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
10492         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
10493         likely to run afoul of C compiler limits for string constant lengths.
10494         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
10495
10496 2011-05-24  Eric Blake  <eblake@redhat.com>
10497
10498         docs: document recently fixed glibc printf bug
10499         * doc/posix-functions/fprintf.texi (fprintf): Document it.
10500         * doc/posix-functions/printf.texi (printf): Likewise.
10501         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10502         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10503
10504         closein-tests: convert to init.sh
10505         * modules/closein-tests (Files): Add init.sh
10506         * tests/test-closein.sh Use it.
10507
10508         yesno-tests: convert to init.sh
10509         * modules/yesno-tests (Files): Add init.sh.
10510         * tests/test-yesno.sh: Use it.
10511
10512         atexit-tests: ensure reliable exit status
10513         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
10514         Reported by Bruno Haible.
10515
10516 2011-05-24  Bruno Haible  <bruno@clisp.org>
10517
10518         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
10519         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
10520         gl_PREREQ_STRERROR_R invocations from here...
10521         * modules/strerror_r-posix (configure.ac): ... to here.
10522
10523 2011-05-24  Eric Blake  <eblake@redhat.com>
10524
10525         strerror_r: fix missing header
10526         * lib/strerror_r.c: Avoid compiler warning about snprintf.
10527
10528         strerror_r: fix AIX test failures
10529         * lib/strerror_r.c (strerror_r): Convert silent truncation to
10530         ERANGE failure.
10531
10532         strerror_r: fix Solaris test failures
10533         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
10534         failures.
10535         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10536
10537         strerror_r: enforce POSIX recommendations
10538         * lib/strerror_r.c (safe_copy): New helper method.
10539         (strerror_r): Guarantee a non-empty string.
10540         * tests/test-strerror_r.c (main): Enhance tests to incorporate
10541         recent POSIX rulings and to match our strerror guarantees.
10542         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
10543
10544 2011-05-24  Jim Meyering  <meyering@redhat.com>
10545
10546         test-perror2.c: avoid warning about unused variable
10547         * tests/test-perror2.c (main): Remove declaration of unused "fp".
10548
10549 2011-05-24  Eric Blake  <eblake@redhat.com>
10550
10551         perror: avoid spurious test failure on HP-UX
10552         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
10553
10554         tests: fix logic bug in init.sh
10555         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
10556         shell.
10557
10558 2011-05-24  Jim Meyering  <meyering@redhat.com>
10559
10560         utimensat: do not reference an out-of-scope buffer
10561         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
10562         declared in an inner scope, yet "times" would be dereferenced outside
10563         the scope in which "ts" was valid.
10564         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
10565         of ts[2] "out/up", so that the use of aliased "times" (via
10566         "times = ts;") does not end up referencing an out-of-scope "ts"
10567
10568         opendir-safer.c: don't clobber errno; don't close negative FD
10569         * lib/opendir-safer.c (opendir_safer):
10570         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
10571         file descriptor, and more importantly, don't clobber the
10572         offending errno value with EINVAL.  Before, upon failure
10573         of dup_safer, we would pass the negative file descriptor to
10574         fdopendir, which would clobber errno.
10575
10576 2011-05-23  Bruno Haible  <bruno@clisp.org>
10577
10578         idcache: Fix module description.
10579         * modules/idcache (Include): Set to "idcache.h".
10580
10581 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
10582
10583         gnulib-tool: fix portability problem with MacOS sed
10584         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
10585         before the "}".  Problem reported by Leo in
10586         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
10587         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
10588         sed_extract_condition1, sed_extract_condition2.
10589
10590 2011-05-23  Bruno Haible  <bruno@clisp.org>
10591
10592         hash: Simplify autoconf macro.
10593         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
10594
10595 2011-05-23  Bruno Haible  <bruno@clisp.org>
10596
10597         getugroups: Fix module description.
10598         * modules/getugroups (Include): Set to "getugroups.h".
10599
10600 2011-05-23  Bruno Haible  <bruno@clisp.org>
10601
10602         linkat: Simplify autoconf macro.
10603         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
10604
10605 2011-05-23  Bruno Haible  <bruno@clisp.org>
10606             Eric Blake  <eblake@redhat.com>
10607
10608         linkat, renameat: Update dependencies.
10609         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
10610         * modules/linkat (Depends-on): Likewise. Remove also readlink,
10611         symlinkat.
10612
10613 2011-05-23  Jim Meyering  <meyering@redhat.com>
10614
10615         maint.mk: more tight_scope improvements
10616         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
10617         (_gl_TS_headers): Define only in if-0'd block.
10618         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
10619         sometimes we must *not* use it.  Adjust uses accordingly.
10620         (sc_tight_scope): Use much simpler grep-based test to determine
10621         whether we skip this rule.
10622
10623         maint.mk: generalize/improve the tight-scope rule
10624         * top/maint.mk: Emit a warning when the test is skipped.
10625         (_gl_TS_dir): Add $(srcdir)/ prefix.
10626         (_gl_TS_function_match): Simplify, rather than trying
10627         to enumerate common types.  Otherwise, it would fail to match an
10628         "extern unsigned char const *" declaration in idutils.
10629         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
10630         a way to support use of that type of macro.
10631         (_gl_TS_var_match): Simplify regexp.
10632         (_gl_TS_obj_files): New configurable variable.
10633         (_gl_TS_headers): Likewise.
10634
10635 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
10636
10637         verify: fix bug when gnulib <assert.h> is also included
10638         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
10639         is defined, not if _GL_STATIC_ASSERT_H is not defined.
10640         Perhaps there's a better way, but this fixes the immediate problem.
10641         Problem reported by Bruno Haible in
10642         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
10643
10644 2011-05-22  Bruno Haible  <bruno@clisp.org>
10645
10646         xgetcwd: Simplify autoconf macro.
10647         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
10648
10649 2011-05-22  Bruno Haible  <bruno@clisp.org>
10650
10651         New module 'mktime-internal'.
10652         * modules/mktime-internal: New file.
10653         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
10654         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
10655         mktime_internal as a C macro if libc has __mktime_internal.
10656         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
10657         conditions.
10658         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
10659
10660 2011-05-22  Bruno Haible  <bruno@clisp.org>
10661
10662         timegm: Correct mktime replacement statements.
10663         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
10664         defining mktime as a C macro. This completes a 2009-07-28 commit.
10665
10666 2011-05-22  Bruno Haible  <bruno@clisp.org>
10667
10668         timegm: Simplify autoconf macro.
10669         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
10670
10671 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
10672
10673         clock-time: change to LGPLv2+.
10674         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
10675         BSD-like but we have no mark for that; this is good enough for now.
10676
10677 2011-05-21  Bruno Haible  <bruno@clisp.org>
10678
10679         strerror_r: Fix comments.
10680         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
10681
10682 2011-05-21  Bruno Haible  <bruno@clisp.org>
10683
10684         relocatable-prog-wrapper: Fix possible link error.
10685         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
10686         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
10687         (gl_FUNC_SETENV): ... to here.
10688         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
10689         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
10690
10691 2011-05-21  Bruno Haible  <bruno@clisp.org>
10692
10693         relocatable-prog-wrapper: Assume strerror() exists.
10694         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
10695         m4/strerror.m4.
10696         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
10697         * lib/relocwrapper.c: Remove mention of strerror module.
10698         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
10699         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
10700         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
10701         C macro.
10702
10703 2011-05-21  Bruno Haible  <bruno@clisp.org>
10704
10705         select: Simplify replacement idiom.
10706         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
10707         Win32 platforms.
10708         * lib/sys_select.in.h (select): Simplify accordingly.
10709         * modules/select (Depends-on): Likewise.
10710
10711 2011-05-21  Bruno Haible  <bruno@clisp.org>
10712
10713         mkdir-p: Simplify autoconf macro.
10714         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
10715         gl_FUNC_LCHOWN.
10716
10717 2011-05-21  Eric Blake  <eblake@redhat.com>
10718
10719         strerror_r: avoid clobbering strerror on cygwin
10720         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
10721         fall back instead to sys_errlist.
10722         * modules/strerror (configure.ac): Add witness.
10723         * tests/test-strerror_r.c (main): Enhance test.
10724         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10725         * tests/test-perror2.c (main): Free memory before exit.
10726
10727 2011-05-21  Bruno Haible  <bruno@clisp.org>
10728
10729         mkdtemp: Use gnulib naming conventions.
10730         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
10731         * modules/mkdtemp (configure.ac): Update.
10732
10733 2011-05-20  Eric Blake  <eblake@redhat.com>
10734
10735         strerror_r: avoid corrupting errno on Solaris
10736         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
10737         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10738
10739         strerror_r: avoid compiler warning
10740         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
10741
10742         strerror_r: simplify AIX code
10743         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
10744
10745         test-perror: avoid spurious failure on FreeBSD
10746         * modules/perror-tests (Depends-on): Add strerror, now that
10747         strerror_r no longer pulls it in.
10748
10749 2011-05-20  Bruno Haible  <bruno@clisp.org>
10750
10751         strerror_r-posix: Remove unused dependencies.
10752         * modules/strerror_r-posix (Depends-on): Remove strerror.
10753         Reported by Eric Blake.
10754
10755 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
10756
10757         intprops: remove assumption about A|B representation
10758         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
10759         is a valid integer if both A and B are.  Although this is true for
10760         all known practical hosts, the C standard doesn't guarantee it,
10761         and the code need not assume it.  Also, this change may work around
10762         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
10763         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
10764
10765 2011-05-20  Eric Blake  <eblake@redhat.com>
10766
10767         perror: work around FreeBSD bug
10768         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
10769         is broken.  Move AC_LIBOBJ...
10770         * modules/perror (configure.ac): Here.
10771         * doc/posix-functions/perror.texi (perror): Document this.
10772         * tests/test-perror2.c (main): Enhance test.
10773
10774         test-perror: check for strerror interactions
10775         * tests/macros.h (STREQ): Add macro.
10776         * modules/perror-tests (Files): Add second test.
10777         * tests/test-perror2.c (main): New file.
10778         * doc/posix-functions/perror.texi (perror): Document glibc bug.
10779
10780         test-perror: rewrite to use init script
10781         * modules/perror-tests (Files): Add init.sh.
10782         * tests/test-perror.sh: Use temporary directory.
10783
10784 2011-05-20  Jim Meyering  <meyering@redhat.com>
10785
10786         maint: replace misused "a" with "an"
10787         * doc/intprops.texi: "a integer"
10788         * doc/regex.texi: "a explanation"
10789         * lib/alignof.h: "a object"
10790         * lib/argmatch.h: "a explanation"
10791         * lib/argp-help.c: "a option" and "a OPTION_DOC"
10792         * lib/stdint.in.h: "a integer"
10793         * lib/userspec.c: "a owner"
10794         * doc/gnulib.texi: Fix "a idea", and reword.
10795
10796 2011-05-19  Jim Meyering  <meyering@redhat.com>
10797
10798         maint: correct misuse of "a" and "an"
10799         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
10800         * lib/argp-help.c: "an docum...": s/an/a/
10801         * lib/argp-parse.c: "An vector": s/An/A/
10802         * lib/execute.c: "an native": s/an/a/
10803         * lib/spawn-pipe.c: Likewise.
10804         * lib/gc.h: "an Gc_rc": s/an/a/
10805         * lib/unigbrk.in.h: "an grapheme": s/an/a/
10806         * lib/fts.c: "an stat.st_dev": s/an/a/
10807
10808 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10809
10810         intprops-tests: work around HP-UX 11.23 cc bug with constants
10811         * tests/test-intprops.c (VERIFY): New macro.
10812         (main): Use it, instead of verify, to work around the compiler bug; see
10813         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10814
10815         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
10816         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
10817         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
10818         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
10819         (_GL_REMAINDER_OVERFLOW): Use it.
10820
10821         intprops-tests: revert unsigned part of previous change
10822         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
10823         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
10824         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
10825         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
10826
10827 2011-05-19  Bruno Haible  <bruno@clisp.org>
10828
10829         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
10830         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
10831         strerror_r() returned without filling the buffer.
10832         Reported by Eric Blake.
10833
10834 2011-05-19  Eric Blake  <eblake@redhat.com>
10835
10836         strerror_r: guarantee unchanged errno
10837         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
10838         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
10839         failure.
10840         * tests/test-strerror_r.c (main): Enhance test.
10841
10842 2011-05-19  Bruno Haible  <bruno@clisp.org>
10843
10844         strerror_r: Reorder #if blocks.
10845         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
10846         for consistency with the previous commit.
10847
10848 2011-05-19  Bruno Haible  <bruno@clisp.org>
10849
10850         perror: Avoid clobbering the strerror buffer when possible.
10851         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
10852         * lib/strerror.c: Include it.
10853         * modules/strerror (Files): Add lib/strerror-impl.h.
10854         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
10855         (my_strerror): New function, defined through lib/strerror-impl.h.
10856         (perror): Use it instead of strerror.
10857         * modules/perror (Files): Add lib/strerror-impl.h.
10858         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
10859
10860 2011-05-19  Eric Blake  <eblake@redhat.com>
10861
10862         strerror_r: fix on newer cygwin
10863         * lib/strerror_r.c (strerror_r): Cygwin now has
10864         __xpg_strerror_r, use it.
10865
10866 2011-05-19  Bruno Haible  <bruno@clisp.org>
10867
10868         strerror_r: Avoid clobbering the strerror buffer when possible.
10869         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
10870         (sys_nerr, sys_errlist): New declarations.
10871         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
10872         HP-UX, native Win32, IRIX, and 32-bit Solaris.
10873         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
10874
10875 2011-05-19  Bruno Haible  <bruno@clisp.org>
10876
10877         strerror_r: Fix test failure on mingw.
10878         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
10879         EXTEND_STRERROR_R.
10880         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
10881         macros from errno.in.h instead.
10882
10883 2011-05-19  Eric Blake  <eblake@redhat.com>
10884
10885         strerror: relax test for Solaris
10886         * tests/test-strerror.c (main): Permit Solaris behavior.
10887         * tests/test-strerror_r.c (main): Likewise.
10888
10889         strerror: enforce POSIX ruling on strerror(0)
10890         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
10891         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
10892         * lib/strerror_r.c (rpl_strerror_r): Work around it.
10893         * doc/posix-functions/strerror.texi (strerror): Document it.
10894         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
10895         * tests/test-strerror.c (main): Strengthen test.
10896         * tests/test-strerror_r.c (main): Likewise.
10897
10898 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
10899
10900         intprop-tests: port to older and more-pedantic compilers
10901         * modules/intprops-tests (Files): Add tests/macros.h.
10902         * tests/test-intprops.c: Include macros.h.
10903         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
10904         it's no longer documented to expand to an integer constant expression.
10905         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
10906         argument is floating point, as it's no longer documented to expand
10907         to an integer constant expression in that case.
10908         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
10909         compiler bugs reported by Bruno Haible.  See
10910         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10911         (U0, U1): New constants, to work around the same bugs.  Also,
10912         in tests, use e.g., "(unsigned int) 39" rather than "39u".
10913
10914         intprops: work around C compiler bugs
10915         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
10916         bug in Sun C 5.11 2010/08/13 and other compilers; see
10917         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
10918
10919         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
10920         * doc/intprops.texi (Integer Type Determination): Fix
10921         documentation for TYPE_IS_INTEGER: it returns an constant
10922         expression, not an integer constant expression.  Fix doc for
10923         TYPE_SIGNED: it returns an integer constant expression only if its
10924         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
10925         hardly worth documented that way....)
10926
10927 2011-05-18  Bruno Haible  <bruno@clisp.org>
10928
10929         strerror_r: Avoid clobbering the strerror buffer when possible.
10930         * lib/strerror_r.c (strerror_r): Merge the three implementations.
10931         Handle gnulib defined errno values here. When strerror() returns NULL
10932         or an empty string, return EINVAL.
10933         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
10934         gnulib defined errno values here.
10935         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
10936
10937 2011-05-18  Eric Blake  <eblake@redhat.com>
10938
10939         fnmatch: avoid compiler warning
10940         * lib/fnmatch_loop.c (FCT): Use correct type.
10941         Reported by Matthias Bolte.
10942
10943 2011-05-13  Jim Meyering  <meyering@redhat.com>
10944
10945         maint.mk: three new prohibit_<HDR>_without_use rules
10946         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
10947         (sc_prohibit_stdio-safer_without_use): Likewise.
10948         (sc_prohibit_xfreopen_without_use): Likewise.
10949
10950 2011-05-17  Jim Meyering  <meyering@redhat.com>
10951
10952         announce-gen: fail if the NEWS delta is empty
10953         If there's nothing noteworthy in NEWS, then either you forgot
10954         or you shouldn't be releasing.
10955         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
10956
10957 2011-05-17  Pádraig Brady <P@draigBrady.com>
10958
10959         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
10960         reserved symbols starting with double underscore from the check.
10961
10962 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
10963
10964         intprops: add doc
10965         * doc/intprops.texi: New file, documenting intprops.
10966         * doc/gnulib.texi (Particular Modules): Include it.
10967
10968         verify: add doc to gnulib manual and fix example
10969         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
10970         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
10971         (Compile-time Assertions): Fix example so it can't overflow.
10972
10973 2011-05-17  Jim Meyering  <meyering@redhat.com>
10974
10975         warnings.m4: don't usurp save_CPPFLAGS variable name
10976         * m4/warnings.m4: Prefix local temporary variable name with gl_.
10977
10978         doc: fix typo
10979         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
10980
10981 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
10982             Bruno Haible  <bruno@clisp.org>
10983
10984         doc: Tweak recent change.
10985         * README (Portability guidelines): Tweak new text.
10986         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
10987         Interix 6.1.
10988
10989 2011-05-16  Eric Blake  <eblake@redhat.com>
10990
10991         inttypes: avoid autoconf warning
10992         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
10993         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10994
10995 2011-05-16  Sam Steingold <sds@gnu.org>
10996         and Eric Blake  <eblake@redhat.com>
10997
10998         vc-list-files: accept multiple directory operands
10999         * build-aux/vc-list-files: Iterate over all remaining operands.
11000
11001 2011-05-16  Bruno Haible  <bruno@clisp.org>
11002
11003         Fix confusion regarding deprecated modules.
11004         * modules/calloc (Status, Notice): Mark module as deprecated, not
11005         obsolete.
11006         * modules/fnmatch-posix (Status, Notice): Likewise.
11007         * modules/getdate (Status, Notice): Likewise.
11008         * modules/getopt (Status, Notice): Likewise.
11009         * modules/malloc (Status, Notice): Likewise.
11010         * modules/pipe (Status, Notice): Likewise.
11011         * modules/realloc (Status, Notice): Likewise.
11012         * modules/rename-dest-slash (Status, Notice): Likewise.
11013         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
11014         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
11015         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
11016         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
11017         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
11018
11019 2011-05-16  Bruno Haible  <bruno@clisp.org>
11020
11021         doc: List the target platforms.
11022         * doc/gnulib-intro.texi (Target Platforms): New section.
11023         * doc/gnulib.texi (Introduction): Update menu.
11024         * README (Portability guidelines): Refer to the new section. Update
11025         statement about oldest supported environment. Remove rationale why
11026         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
11027         unportable C89 function.
11028         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
11029         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
11030
11031 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11032
11033         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
11034
11035 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
11036
11037         intprops-tests: new module
11038         * modules/intprops-tests, tests/test-intprops.c: New files.
11039
11040         intprops: add safe, portable integer overflow checking
11041         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
11042         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
11043         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
11044         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
11045         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
11046         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
11047         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
11048         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
11049         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
11050         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
11051         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
11052
11053 2011-05-12  James Youngman  <jay@gnu.org>
11054
11055         Add a test for glibc's Bugzilla bug #12378.
11056         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
11057         doesn't allow the literal matching of a lone "[" (which is
11058         required by POSIX).
11059         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
11060
11061 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
11062
11063         Sync glibc change fixing Bugzilla bug #12378.
11064         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
11065         beginning and fall back to matching as normal character if the
11066         string ends before the matching ']' is found.  This is what POSIX
11067         requires.
11068
11069 2011-05-13  Eric Blake  <eblake@redhat.com>
11070
11071         getcwd-lgpl: relax test for FreeBSD
11072         * doc/posix-functions/getcwd.texi (getcwd): Document portability
11073         issue.
11074         * tests/test-getcwd-lgpl.c (main): Relax test.
11075         Reported by Matthias Bolte.
11076
11077 2011-05-11  Eric Blake  <eblake@redhat.com>
11078
11079         test-fflush: silence compiler warning
11080         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
11081
11082 2011-05-11  Bruno Haible  <bruno@clisp.org>
11083
11084         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
11085         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
11086         * modules/canonicalize (Depends-on): Add 'nocrash'.
11087         * modules/canonicalize-lgpl (Depends-on): Likewise.
11088         * doc/posix-functions/realpath.texi: Update platforms list.
11089         Reported by Ryan Schmidt <ryandesign@macports.org>.
11090
11091 2011-05-11  Bruno Haible  <bruno@clisp.org>
11092
11093         group-member: Declare function in <unistd.h>.
11094         * lib/unistd.in.h (group_member): New declaration.
11095         * lib/group-member.h: Remove file.
11096         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
11097         * tests/test-unistd-c++.cc: Check signature of group_member.
11098         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
11099         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
11100         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
11101         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
11102         HAVE_GROUP_MEMBER.
11103         * modules/group-member (Files): Remove lib/group-member.h.
11104         (Depends-on): Add unistd. Specify conditions.
11105         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11106         (Include): Change to <unistd.h>.
11107         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
11108         HAVE_GROUP_MEMBER.
11109         * NEWS: Mention the change.
11110         * lib/euidaccess.c: Don't include group-member.h.
11111
11112 2011-05-11  Bruno Haible  <bruno@clisp.org>
11113
11114         group-member: Document module.
11115         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
11116         module.
11117
11118 2011-05-11  Bruno Haible  <bruno@clisp.org>
11119
11120         fclose: Fix mistake earlier today.
11121         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
11122
11123 2011-05-11  Eric Blake  <eblake@redhat.com>
11124
11125         fclose: preserve fflush errors
11126         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
11127         Reported by Jim Meyering.
11128
11129         bootstrap: support a prereq of 'rpcgen -' on RHEL5
11130         * build-aux/bootstrap (check_versions): When no specific version
11131         is required, merely check that the app produces an exit status
11132         that indicates its existence.
11133
11134         maint.mk: drop redundant check
11135         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
11136         the same but better.
11137
11138 2011-05-11  Bruno Haible  <bruno@clisp.org>
11139
11140         fclose: Fix possible link error.
11141         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
11142         unregister_shadow_fd. Improve comments.
11143         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
11144         Eric Blake.
11145
11146 2011-05-11  Jim Meyering  <meyering@redhat.com>
11147
11148         maint.mk: improve "can not" detection and generalize rule name
11149         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
11150         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
11151         Use the same technique as in sc_prohibit_doubled_word, so that
11152         we recognize "can not" also when the words are separated by a newline.
11153         Suggested by Eric Blake.
11154         (perl_filename_lineno_text_): Define.  Factored out of...
11155         (prohibit_doubled_word_): ...here.  Use the new definition.
11156         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
11157         (prohibit_undesirable_word_seq_RE_): New overridable variable.
11158         (ignore_undesirable_word_sequence_RE_): New overridable variable.
11159
11160 2011-05-10  Eric Blake  <eblake@redhat.com>
11161
11162         fclose: avoid double close race when possible
11163         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
11164         all but WINDOWS_SOCKETS.
11165
11166 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
11167
11168         openat: correct new comment
11169         * lib/openat-proc.c (openat_proc_name): Correct the comment.
11170
11171 2011-05-10  Jim Meyering  <meyering@redhat.com>
11172
11173         openat: add comments
11174         * lib/openat-proc.c (openat_proc_name): Add comments,
11175         mostly from Eric Blake.
11176
11177 2011-05-09  Eric Blake  <eblake@redhat.com>
11178
11179         openat: reduce syscalls in first probe of /proc
11180         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
11181         be a directory.  Simplify the probe for .. bugs.
11182         * modules/openat (Depends-on): Drop same-inode.
11183         Reported by Bastien ROUCARIES.
11184
11185 2011-05-09  Jim Meyering  <meyering@redhat.com>
11186
11187         maint.mk: change semantics/name of tight_scope variables
11188         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
11189         Rename variables to align with semantics that make them more useful.
11190
11191         maint.mk: tweak new rule's name not to impinge
11192         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
11193         (sc_tight_scope): Use new rule name rather than $@-0.
11194
11195         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
11196         * top/maint.mk (sc_tight_scope): New rule.
11197         (sc_tight_scope-0): New rule, ifdef'd out.
11198         (_gl_TS_dir): Default.
11199         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
11200         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
11201
11202 2011-05-09  Simon Josefsson  <simon@josefsson.org>
11203
11204         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
11205         Haible <bruno@clisp.org>.
11206
11207 2011-05-08  Bruno Haible  <bruno@clisp.org>
11208
11209         Comments.
11210         * m4/isnanf.m4: Add comment.
11211         * m4/isnanl.m4: Likewise.
11212
11213 2011-05-08  Bruno Haible  <bruno@clisp.org>
11214
11215         glob: Remove obsolete macro.
11216         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
11217
11218 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
11219
11220         intprops: Sun C 5.11 supports __typeof__
11221         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
11222         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
11223         which is new.
11224         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
11225
11226         intprops: switch to usual gnulib indenting and naming
11227         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
11228         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
11229
11230         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
11231
11232 2011-05-08  Jim Meyering  <meyering@redhat.com>
11233
11234         maint.mk: suppress "Entering/Leaving directory" diag in announcement
11235         * top/maint.mk (release-prep): Use make's --no-print-directory
11236         option when generating the announcement.  This eliminates the
11237         pesky "make[2]: Entering/Leaving directory" diagnostics in the
11238         generated announcement template.
11239
11240 2011-05-08  Bruno Haible  <bruno@clisp.org>
11241
11242         tzset: Fix gettimeofday wrapper on Solaris 2.6.
11243         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
11244         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
11245
11246 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
11247
11248         ignore-value, verify: Omit include files from lib_SOURCES.
11249         * modules/ignore-value, modules/verify (Makefile.am):
11250         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
11251         that leads Automake to duplicate use of am__objects_... variables
11252         in Makefile.in.  See
11253         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
11254
11255 2011-05-07  Bruno Haible  <bruno@clisp.org>
11256
11257         fclose: Simplify autoconf macro.
11258         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
11259         defined.
11260
11261 2011-05-07  Bruno Haible  <bruno@clisp.org>
11262
11263         canonicalize-lgpl: Fix autoconf macro ordering bug.
11264         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
11265         gl_STDLIB_H_DEFAULTS.
11266
11267 2011-05-06  Eric Blake  <eblake@redhat.com>
11268
11269         maintainer-makefile: make sc_po_check easier to tune
11270         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
11271         to probe for strings, such as an alternate location for gnulib.
11272
11273         fclose: guarantee behavior on seekable stdin
11274         * modules/fclose (Depends-on): Add fflush.
11275         * doc/posix-functions/fclose.texi (fclose): Document this.
11276         * tests/test-fclose.c (main): Make test for this unconditional.
11277
11278 2011-05-06  Bruno Haible  <bruno@clisp.org>
11279
11280         fflush, fpurge: Relicense under LGPLv2+.
11281         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
11282         * modules/fpurge (License): Likewise.
11283         With permission from Eric Blake and Jim Meyering.
11284         Suggested by Eric Blake.
11285
11286 2011-05-06  Karl Berry  <karl@gnu.org>
11287
11288         * MODULES.html.sh (func_all_modules): remove exit.
11289
11290 2011-05-06  Jim Meyering  <meyering@redhat.com>
11291
11292         maint.mk: use info-gnu@ as the default only for a stable release
11293         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
11294         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
11295         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
11296         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
11297
11298 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
11299
11300         assert-h: new module, which supports C1X-style static_assert
11301         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
11302         * lib/verify.h: Revamp so that this can be copied into assert.h,
11303         while retaining the ability to use it standalone as before.
11304         Rename private identifiers so as not to encroach on the
11305         standard C namespace, since this is now used by assert.h.
11306         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
11307         the old verify_true.
11308         (_GL_VERIFY_TRUE): New macro, with much of the contents of
11309         the old verify_true.  Use _GL_VERIFY_TYPE.
11310         (_GL_VERIFY): New macro, with much of the contents of the old verify.
11311         (static_assert): New macro, if _GL_STATIC_ASSERT_H
11312         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
11313         defined when this file is copied into the replacement assert.h.
11314         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
11315         and _Static_assert is not built in.
11316         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
11317         defined, and use the new macros mentioned above.
11318         * doc/posix-headers/assert.texi: Document this.
11319
11320 2011-05-05  Bruno Haible  <bruno@clisp.org>
11321
11322         fclose, fflush: Respect rules for use of AC_LIBOBJ.
11323         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
11324         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
11325         gl_REPLACE_FCLOSE here.
11326         * modules/fflush (Depends-on): Remove fclose.
11327         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
11328         combination with module 'fclose'.
11329
11330 2011-05-05  Bruno Haible  <bruno@clisp.org>
11331
11332         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
11333         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
11334         gl_FUNC_FFLUSH.
11335         (gl_FUNC_FFLUSH): Use it.
11336         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
11337         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
11338         gl_REPLACE_FSEEKO here.
11339
11340 2011-05-05  Bruno Haible  <bruno@clisp.org>
11341
11342         tzset: Relicense under LGPL.
11343         * modules/tzset (License): Change to LGPL.
11344         No agreement needed; it's a no-op.
11345
11346         strtoimax, strtoumax: Relicense under LGPL.
11347         * modules/strtoimax (License): Change to LGPL.
11348         * modules/strtoumax (License): Likewise.
11349         With permission from Jim Meyering, Paul Eggert:
11350         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
11351         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
11352
11353         getgroups: Relicense under LGPL.
11354         * modules/getgroups (License): Change to LGPL.
11355         With permission from Jim Meyering, Paul Eggert, Eric Blake:
11356         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11357         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11358         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11359
11360         nanosleep: Relicense under LGPL.
11361         * modules/nanosleep (License): Change to LGPL.
11362         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
11363         Haible:
11364         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
11365         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
11366         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11367         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11368
11369         futimens: Relicense under LGPL.
11370         * modules/futimens (License): Change to LGPL.
11371         With permission from Eric Blake:
11372         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11373
11374         fflush: Relicense under LGPL.
11375         * modules/fflush (License): Change to LGPL.
11376         With permission from Eric Blake, Bruno Haible, Jim Meyering:
11377         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
11378         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
11379         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
11380
11381         tmpfile: Relicense under LGPL.
11382         * modules/tmpfile (License): Change to LGPL.
11383         With permission from Ben Pfaff:
11384         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11385
11386         isfinite: Relicense under LGPL.
11387         * modules/isfinite (License): Change to LGPL.
11388         With permission from Ben Pfaff, Bruno Haible:
11389         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
11390         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
11391
11392         acosl..tanl: Relicense under LGPL.
11393         * modules/acosl (License): Change to LGPL.
11394         * modules/asinl (License): Likewise.
11395         * modules/atanl (License): Likewise.
11396         * modules/cosl (License): Likewise.
11397         * modules/expl (License): Likewise.
11398         * modules/logl (License): Likewise.
11399         * modules/sinl (License): Likewise.
11400         * modules/sqrtl (License): Likewise.
11401         * modules/tanl (License): Likewise.
11402         Source code originally from glibc and Paolo Bonzini. Agreements:
11403         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
11404         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
11405
11406 2011-05-05  Bruno Haible  <bruno@clisp.org>
11407
11408         signal: Define sighandler_t.
11409         * lib/signal.in.h (sighandler_t): New type.
11410         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
11411         whether sighandler_t is defined.
11412         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
11413         * modules/signal (Depends-on): Add extensions.
11414         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
11415         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
11416         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
11417
11418 2011-05-05  Eric Blake  <eblake@redhat.com>
11419
11420         maint: remove useless REPLACE_*_H macros
11421         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
11422         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
11423         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
11424         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
11425         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
11426         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
11427         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
11428         * m4/btowc.m4: Update callers.
11429         * m4/dirfd.m4: Likewise.
11430         * m4/duplocale.m4: Likewise.
11431         * m4/fchdir.m4: Likewise.
11432         * m4/fdopendir.m4: Likewise.
11433         * m4/inet_ntop.m4: Likewise.
11434         * m4/inet_pton.m4: Likewise.
11435         * m4/ioctl.m4: Likewise.
11436         * m4/mbrlen.m4: Likewise.
11437         * m4/mbrtowc.m4: Likewise.
11438         * m4/mbsinit.m4: Likewise.
11439         * m4/mbsnrtowcs.m4: Likewise.
11440         * m4/mbsrtowcs.m4: Likewise.
11441         * m4/poll.m4: Likewise.
11442         * m4/setlocale.m4: Likewise.
11443         * m4/wcrtomb.m4: Likewise.
11444         * m4/wcsnrtombs.m4: Likewise.
11445         * m4/wcsrtombs.m4: Likewise.
11446         * m4/wctob.m4: Likewise.
11447         * m4/wcwidth.m4: Likewise.
11448         * modules/posix_spawn: Likewise.
11449         * modules/posix_spawn_file_actions_addclose: Likewise.
11450         * modules/posix_spawn_file_actions_adddup2: Likewise.
11451         * modules/posix_spawn_file_actions_addopen: Likewise.
11452         * modules/posix_spawn_file_actions_destroy: Likewise.
11453         * modules/posix_spawn_file_actions_init: Likewise.
11454         * modules/posix_spawnattr_destroy: Likewise.
11455         * modules/posix_spawnattr_getflags: Likewise.
11456         * modules/posix_spawnattr_getpgroup: Likewise.
11457         * modules/posix_spawnattr_getschedparam: Likewise.
11458         * modules/posix_spawnattr_getschedpolicy: Likewise.
11459         * modules/posix_spawnattr_getsigdefault: Likewise.
11460         * modules/posix_spawnattr_getsigmask: Likewise.
11461         * modules/posix_spawnattr_init: Likewise.
11462         * modules/posix_spawnattr_setflags: Likewise.
11463         * modules/posix_spawnattr_setpgroup: Likewise.
11464         * modules/posix_spawnattr_setschedparam: Likewise.
11465         * modules/posix_spawnattr_setschedpolicy: Likewise.
11466         * modules/posix_spawnattr_setsigdefault: Likewise.
11467         * modules/posix_spawnattr_setsigmask: Likewise.
11468         * modules/posix_spawnp: Likewise.
11469
11470 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
11471
11472         Add option to do-release-commit-and-tag to specify branch.
11473         * build-aux/do-release-commit-and-tag: Add --branch.
11474
11475 2011-05-03  Bruno Haible  <bruno@clisp.org>
11476
11477         Avoid unnecessary compilation units, through conditional dependencies.
11478         * modules/accept (Depends-on): Add conditions to the dependencies.
11479         * modules/acosl (Depends-on): Likewise.
11480         * modules/argz (Depends-on): Likewise.
11481         * modules/asinl (Depends-on): Likewise.
11482         * modules/atanl (Depends-on): Likewise.
11483         * modules/atoll (Depends-on): Likewise.
11484         * modules/bind (Depends-on): Likewise.
11485         * modules/btowc (Depends-on): Likewise.
11486         * modules/canonicalize-lgpl (Depends-on): Likewise.
11487         * modules/ceil (Depends-on): Likewise.
11488         * modules/ceilf (Depends-on): Likewise.
11489         * modules/ceill (Depends-on): Likewise.
11490         * modules/chdir-long (Depends-on): Likewise.
11491         * modules/chown (Depends-on): Likewise.
11492         * modules/close (Depends-on): Likewise.
11493         * modules/connect (Depends-on): Likewise.
11494         * modules/cosl (Depends-on): Likewise.
11495         * modules/dirfd (Depends-on): Likewise.
11496         * modules/dprintf (Depends-on): Likewise.
11497         * modules/dprintf-posix (Depends-on): Likewise.
11498         * modules/error (Depends-on): Likewise.
11499         * modules/euidaccess (Depends-on): Likewise.
11500         * modules/expl (Depends-on): Likewise.
11501         * modules/faccessat (Depends-on): Likewise.
11502         * modules/fchdir (Depends-on): Likewise.
11503         * modules/fclose (Depends-on): Likewise.
11504         * modules/fcntl (Depends-on): Likewise.
11505         * modules/fdopendir (Depends-on): Likewise.
11506         * modules/fflush (Depends-on): Likewise.
11507         * modules/floor (Depends-on): Likewise.
11508         * modules/floorf (Depends-on): Likewise.
11509         * modules/floorl (Depends-on): Likewise.
11510         * modules/fnmatch (Depends-on): Likewise.
11511         * modules/fopen (Depends-on): Likewise.
11512         * modules/fprintf-posix (Depends-on): Likewise.
11513         * modules/frexp (Depends-on): Likewise.
11514         * modules/frexp-nolibm (Depends-on): Likewise.
11515         * modules/frexpl (Depends-on): Likewise.
11516         * modules/frexpl-nolibm (Depends-on): Likewise.
11517         * modules/fseek (Depends-on): Likewise.
11518         * modules/fsusage (Depends-on): Likewise.
11519         * modules/ftell (Depends-on): Likewise.
11520         * modules/ftello (Depends-on): Likewise.
11521         * modules/futimens (Depends-on): Likewise.
11522         * modules/getcwd (Depends-on): Likewise.
11523         * modules/getcwd-lgpl (Depends-on): Likewise.
11524         * modules/getdelim (Depends-on): Likewise.
11525         * modules/getdomainname (Depends-on): Likewise.
11526         * modules/getgroups (Depends-on): Likewise.
11527         * modules/gethostname (Depends-on): Likewise.
11528         * modules/getline (Depends-on): Likewise.
11529         * modules/getlogin_r (Depends-on): Likewise.
11530         * modules/getopt-posix (Depends-on): Likewise.
11531         * modules/getpeername (Depends-on): Likewise.
11532         * modules/getsockname (Depends-on): Likewise.
11533         * modules/getsockopt (Depends-on): Likewise.
11534         * modules/getsubopt (Depends-on): Likewise.
11535         * modules/getusershell (Depends-on): Likewise.
11536         * modules/glob (Depends-on): Likewise.
11537         * modules/grantpt (Depends-on): Likewise.
11538         * modules/iconv_open (Depends-on): Likewise.
11539         * modules/iconv_open-utf (Depends-on): Likewise.
11540         * modules/inet_ntop (Depends-on): Likewise.
11541         * modules/inet_pton (Depends-on): Likewise.
11542         * modules/ioctl (Depends-on): Likewise.
11543         * modules/isapipe (Depends-on): Likewise.
11544         * modules/isfinite (Depends-on): Likewise.
11545         * modules/isinf (Depends-on): Likewise.
11546         * modules/lchown (Depends-on): Likewise.
11547         * modules/ldexpl (Depends-on): Likewise.
11548         * modules/link (Depends-on): Likewise.
11549         * modules/linkat (Depends-on): Likewise.
11550         * modules/listen (Depends-on): Likewise.
11551         * modules/logl (Depends-on): Likewise.
11552         * modules/lstat (Depends-on): Likewise.
11553         * modules/mbrlen (Depends-on): Likewise.
11554         * modules/mbrtowc (Depends-on): Likewise.
11555         * modules/mbsinit (Depends-on): Likewise.
11556         * modules/mbsnrtowcs (Depends-on): Likewise.
11557         * modules/mbsrtowcs (Depends-on): Likewise.
11558         * modules/mbtowc (Depends-on): Likewise.
11559         * modules/memcmp (Depends-on): Likewise.
11560         * modules/mkdir (Depends-on): Likewise.
11561         * modules/mkdtemp (Depends-on): Likewise.
11562         * modules/mkfifo (Depends-on): Likewise.
11563         * modules/mkfifoat (Depends-on): Likewise.
11564         * modules/mknod (Depends-on): Likewise.
11565         * modules/mkostemp (Depends-on): Likewise.
11566         * modules/mkostemps (Depends-on): Likewise.
11567         * modules/mkstemp (Depends-on): Likewise.
11568         * modules/mkstemps (Depends-on): Likewise.
11569         * modules/mktime (Depends-on): Likewise.
11570         * modules/nanosleep (Depends-on): Likewise.
11571         * modules/open (Depends-on): Likewise.
11572         * modules/openat (Depends-on): Likewise.
11573         * modules/perror (Depends-on): Likewise.
11574         * modules/poll (Depends-on): Likewise.
11575         * modules/popen (Depends-on): Likewise.
11576         * modules/posix_spawn (Depends-on): Likewise.
11577         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
11578         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
11579         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
11580         * modules/posix_spawnp (Depends-on): Likewise.
11581         * modules/pread (Depends-on): Likewise.
11582         * modules/printf-posix (Depends-on): Likewise.
11583         * modules/ptsname (Depends-on): Likewise.
11584         * modules/putenv (Depends-on): Likewise.
11585         * modules/pwrite (Depends-on): Likewise.
11586         * modules/readline (Depends-on): Likewise.
11587         * modules/readlink (Depends-on): Likewise.
11588         * modules/readlinkat (Depends-on): Likewise.
11589         * modules/recv (Depends-on): Likewise.
11590         * modules/recvfrom (Depends-on): Likewise.
11591         * modules/regex (Depends-on): Likewise.
11592         * modules/remove (Depends-on): Likewise.
11593         * modules/rename (Depends-on): Likewise.
11594         * modules/renameat (Depends-on): Likewise.
11595         * modules/rmdir (Depends-on): Likewise.
11596         * modules/round (Depends-on): Likewise.
11597         * modules/roundf (Depends-on): Likewise.
11598         * modules/roundl (Depends-on): Likewise.
11599         * modules/rpmatch (Depends-on): Likewise.
11600         * modules/select (Depends-on): Likewise.
11601         * modules/send (Depends-on): Likewise.
11602         * modules/sendto (Depends-on): Likewise.
11603         * modules/setenv (Depends-on): Likewise.
11604         * modules/setlocale (Depends-on): Likewise.
11605         * modules/setsockopt (Depends-on): Likewise.
11606         * modules/shutdown (Depends-on): Likewise.
11607         * modules/sigaction (Depends-on): Likewise.
11608         * modules/signbit (Depends-on): Likewise.
11609         * modules/sigprocmask (Depends-on): Likewise.
11610         * modules/sinl (Depends-on): Likewise.
11611         * modules/sleep (Depends-on): Likewise.
11612         * modules/snprintf (Depends-on): Likewise.
11613         * modules/snprintf-posix (Depends-on): Likewise.
11614         * modules/socket (Depends-on): Likewise.
11615         * modules/sprintf-posix (Depends-on): Likewise.
11616         * modules/sqrtl (Depends-on): Likewise.
11617         * modules/stat (Depends-on): Likewise.
11618         * modules/strchrnul (Depends-on): Likewise.
11619         * modules/strdup-posix (Depends-on): Likewise.
11620         * modules/strerror (Depends-on): Likewise.
11621         * modules/strerror_r-posix (Depends-on): Likewise.
11622         * modules/strndup (Depends-on): Likewise.
11623         * modules/strnlen (Depends-on): Likewise.
11624         * modules/strptime (Depends-on): Likewise.
11625         * modules/strsep (Depends-on): Likewise.
11626         * modules/strsignal (Depends-on): Likewise.
11627         * modules/strstr-simple (Depends-on): Likewise.
11628         * modules/strtod (Depends-on): Likewise.
11629         * modules/strtoimax (Depends-on): Likewise.
11630         * modules/strtok_r (Depends-on): Likewise.
11631         * modules/strtoumax (Depends-on): Likewise.
11632         * modules/symlink (Depends-on): Likewise.
11633         * modules/symlinkat (Depends-on): Likewise.
11634         * modules/tanl (Depends-on): Likewise.
11635         * modules/tcgetsid (Depends-on): Likewise.
11636         * modules/tmpfile (Depends-on): Likewise.
11637         * modules/trunc (Depends-on): Likewise.
11638         * modules/truncf (Depends-on): Likewise.
11639         * modules/truncl (Depends-on): Likewise.
11640         * modules/uname (Depends-on): Likewise.
11641         * modules/unlink (Depends-on): Likewise.
11642         * modules/unlockpt (Depends-on): Likewise.
11643         * modules/unsetenv (Depends-on): Likewise.
11644         * modules/usleep (Depends-on): Likewise.
11645         * modules/utimensat (Depends-on): Likewise.
11646         * modules/vasprintf (Depends-on): Likewise.
11647         * modules/vdprintf (Depends-on): Likewise.
11648         * modules/vdprintf-posix (Depends-on): Likewise.
11649         * modules/vfprintf-posix (Depends-on): Likewise.
11650         * modules/vprintf-posix (Depends-on): Likewise.
11651         * modules/vsnprintf (Depends-on): Likewise.
11652         * modules/vsnprintf-posix (Depends-on): Likewise.
11653         * modules/vsprintf-posix (Depends-on): Likewise.
11654         * modules/wcrtomb (Depends-on): Likewise.
11655         * modules/wcscasecmp (Depends-on): Likewise.
11656         * modules/wcscspn (Depends-on): Likewise.
11657         * modules/wcsdup (Depends-on): Likewise.
11658         * modules/wcsncasecmp (Depends-on): Likewise.
11659         * modules/wcsnrtombs (Depends-on): Likewise.
11660         * modules/wcspbrk (Depends-on): Likewise.
11661         * modules/wcsrtombs (Depends-on): Likewise.
11662         * modules/wcsspn (Depends-on): Likewise.
11663         * modules/wcsstr (Depends-on): Likewise.
11664         * modules/wcstok (Depends-on): Likewise.
11665         * modules/wcswidth (Depends-on): Likewise.
11666         * modules/wctob (Depends-on): Likewise.
11667         * modules/wctomb (Depends-on): Likewise.
11668         * modules/wctype (Depends-on): Likewise.
11669         * modules/wcwidth (Depends-on): Likewise.
11670         * modules/write (Depends-on): Likewise.
11671
11672 2011-05-03  Bruno Haible  <bruno@clisp.org>
11673
11674         Support for conditional dependencies.
11675         * doc/gnulib.texi (Module description): Document the syntax of
11676         conditional dependencies.
11677         * gnulib-tool: New option --conditional-dependencies.
11678         (func_usage): Document it.
11679         (cond_dependencies): New variable.
11680         (func_get_automake_snippet_conditional,
11681         func_get_automake_snippet_unconditional): New functions, extracted from
11682         func_get_automake_snippet.
11683         (func_get_automake_snippet): Use them.
11684         (sed_first_32_chars): New variable.
11685         (func_module_shellfunc_name): New function.
11686         (func_module_shellvar_name): New function.
11687         (func_module_conditional_name): New function.
11688         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
11689         func_cond_module_condition): New functions.
11690         (func_modules_transitive_closure): Add support for conditional
11691         dependencies.
11692         (func_emit_lib_Makefile_am): For a conditional module, enclose the
11693         conditional automake snippet in an automake conditional.
11694         (func_emit_autoconf_snippets): Emit shell functions that contain the
11695         code for conditional modules.
11696         (func_import, func_create_testdir): Update specification.
11697
11698 2011-05-03  Eric Blake  <eblake@redhat.com>
11699
11700         test-getaddrinfo: report error information
11701         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
11702
11703 2011-05-03  Jim Meyering  <meyering@redhat.com>
11704
11705         bootstrap: avoid build failure when $GZIP is set
11706         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
11707         program name.  If defined at all, it is supposed to list gzip options.
11708         Reported by Alan Curry in http://debbugs.gnu.org/8609
11709
11710 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
11711
11712         readme-release: new module with release instructions
11713         * modules/readme-release: New module.
11714         * top/README-release: New file, from coreutils, grep, diffutils.
11715         * MODULES.html.sh (Support for maintaining and releasing): Add it.
11716
11717 2011-05-02  Eric Blake  <eblake@redhat.com>
11718
11719         fflush: also replace fclose when fixing fflush
11720         * modules/fflush (Depends-on): Add fclose.
11721         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
11722         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
11723         memstreams with no backing fd.
11724         * doc/posix-functions/fclose.texi (fclose): Document the use of
11725         fflush module to fix the bug.
11726         * tests/test-fclose.c (main): Relax test when fclose is used in
11727         isolation.
11728
11729         fclose: add some tests
11730         * modules/fclose-tests: New test module.
11731         * tests/test-fclose.c: New file.
11732         * doc/posix-functions/fclose.texi (fclose): Document the bug.
11733
11734         fclose: reduced dependencies
11735         * modules/fclose (Depends-on): Switch from fflush/fseeko to
11736         simpler lseek.
11737         * lib/fclose.c (rpl_fclose): Likewise.
11738         Reported by Simon Josefsson.
11739
11740         exit: drop remaining clients
11741         * modules/argmatch (Depends-on): Replace exit with stdlib.
11742         * modules/copy-file (Depends-on): Likewise.
11743         * modules/execute (Depends-on): Likewise.
11744         * modules/exitfail (Depends-on): Likewise.
11745         * modules/obstack (Depends-on): Likewise.
11746         * modules/pagealign_alloc (Depends-on): Likewise.
11747         * modules/pipe-filter-gi (Depends-on): Likewise.
11748         * modules/pipe-filter-ii (Depends-on): Likewise.
11749         * modules/savewd (Depends-on): Likewise.
11750         * modules/spawn-pipe (Depends-on): Likewise.
11751         * modules/wait-process (Depends-on): Likewise.
11752         * modules/xsetenv (Depends-on): Likewise.
11753         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
11754         * modules/git-merge-changelog (Depends-on): Likewise.
11755         * modules/long-options (Depends-on): Likewise.
11756         * modules/pt_chown (Depends-on): Likewise.
11757         * modules/sysexits (Depends-on): Likewise.
11758
11759         freading: relax license from LGPLv3+ to LGPLv2+
11760         * modules/freading (License): Relax LGPL version.
11761
11762 2011-05-02  Bruno Haible  <bruno@clisp.org>
11763
11764         fchdir: Remove unused dependencies.
11765         * modules/fchdir (Depends-on): Remove include_next.
11766
11767 2011-05-02  Bruno Haible  <bruno@clisp.org>
11768
11769         gnulib-tool: Refactor.
11770         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
11771         from func_emit_autoconf_snippets.
11772         (func_emit_autoconf_snippets): Use it.
11773
11774 2011-05-02  Simon Josefsson  <simon@josefsson.org>
11775
11776         * NEWS: Document removal of 'exit'.
11777         * modules/exit: Remove file.
11778
11779 2011-05-01  Bruno Haible  <bruno@clisp.org>
11780
11781         Update DEPENDENCIES.
11782         * DEPENDENCIES (gettext): Recommend the newest release.
11783         Reported by Simon Josefsson.
11784
11785 2011-05-01  Bruno Haible  <bruno@clisp.org>
11786
11787         gnulib-tool: Reduce code duplication.
11788         * gnulib-tool (func_emit_autoconf_snippets): New function.
11789         (func_import, func_create_testdir): Use it.
11790
11791 2011-04-30  Eric Blake  <eblake@redhat.com>
11792
11793         fclose: don't fail on non-seekable input stream
11794         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
11795         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
11796         since fflush is allowed to fail in that case.
11797
11798 2011-04-30  Bruno Haible  <bruno@clisp.org>
11799
11800         dup3: cleanup
11801         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
11802
11803 2011-04-30  Bruno Haible  <bruno@clisp.org>
11804
11805         netdb: Make it work in C++ mode.
11806         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
11807         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
11808         module.
11809         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
11810         gl_MODULE_INDICATOR_FOR_TESTS.
11811         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
11812         * modules/netdb-c++-tests: New file.
11813         * tests/test-netdb-c++.cc: New file.
11814
11815 2011-04-30  Bruno Haible  <bruno@clisp.org>
11816
11817         New modules 'vfscanf', 'vscanf'.
11818         * modules/vfscanf: New file.
11819         * modules/vscanf: New file.
11820         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
11821         here.
11822         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
11823         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
11824
11825 2011-04-30  Bruno Haible  <bruno@clisp.org>
11826
11827         passfd: Add comments.
11828         * lib/passfd.c: Add comments about platforms.
11829
11830 2011-04-30  Bruno Haible  <bruno@clisp.org>
11831
11832         sys_uio: Make <sys/uio.h> self-contained.
11833         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
11834         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
11835
11836 2011-04-30  Bruno Haible  <bruno@clisp.org>
11837
11838         sys_socket: Ensure 'struct iovec' definition.
11839         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
11840         <sys/socket.h>.
11841         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
11842
11843 2011-04-30  Bruno Haible  <bruno@clisp.org>
11844
11845         sys_uio: Protect definition of 'struct iovec'.
11846         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
11847         it as a C struct.
11848
11849 2011-04-30  Bruno Haible  <bruno@clisp.org>
11850
11851         manywarnings: fix indentation
11852         * m4/manywarnings.m4: Indent by 2 spaces consistently.
11853
11854 2011-04-30  Pádraig Brady <P@draigBrady.com>
11855
11856         manywarnings: add -Wno-missing-field-initializers if needed.
11857         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
11858         option if it's needed to allow initialization with { 0, }
11859
11860 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
11861
11862         announce-gen: cosmetic improvement
11863         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
11864
11865 2011-04-29  Jim Meyering  <meyering@redhat.com>
11866
11867         vc-list-files: indent with spaces, not TABs
11868         * build-aux/vc-list-files: Convert leading TABs to spaces,
11869         to match the style of most other files in gnulib.
11870
11871         announce-gen: indent with spaces, not TABs
11872         * build-aux/announce-gen: Convert all TABs to spaces, to match
11873         the style of most other files in gnulib.
11874
11875 2011-04-29  Eric Blake  <eblake@redhat.com>
11876
11877         quotearg: avoid uninitialized variable use
11878         * lib/quotearg.c (quoting_options_from_style): Initialize
11879         remaining fields, and ensure that custom styles are only used via
11880         quoting_options rather than quoting_style.
11881
11882 2011-04-29  Jim Meyering  <meyering@redhat.com>
11883
11884         maint.mk: remove unused VC-tag variable
11885         * top/maint.mk (VC-tag): Remove unused variable.
11886
11887 2011-04-29  Bruno Haible  <bruno@clisp.org>
11888
11889         netdb: fix gai_strerror replacements
11890         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
11891         * modules/netdb: Substitute it.
11892
11893 2011-04-29  Jim Meyering  <meyering@redhat.com>
11894
11895         test-getcwd.c: avoid new set-but-not-used warning
11896         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
11897         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
11898         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
11899         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
11900
11901         test-hash.c: avoid a new shadowing warning
11902         * tests/test-hash.c (main): Don't shadow "dup".
11903
11904 2011-04-28  Eric Blake  <eblake@redhat.com>
11905
11906         getaddrinfo: fix gai_strerror signature
11907         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
11908         and work around mingw with UNICODE defined.
11909         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
11910         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
11911         * modules/netdb (Makefile.am): Substitute it.
11912         * lib/netdb.in.h (gai_strerror): Declare replacement.
11913         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
11914         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
11915         the fix.
11916
11917         getsockopt: avoid compiler warning
11918         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
11919         Reported by Matthias Bolte.
11920
11921         tests: drop unused link dependency
11922         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
11923         * modules/dirent-safer-tests (Makefile.am): Likewise.
11924         * modules/fdopendir-tests (Makefile.am): Likewise.
11925         * modules/mkfifoat-tests (Makefile.am): Likewise.
11926         * modules/openat-safer-tests (Makefile.am): Likewise.
11927         * modules/openat-tests (Makefile.am): Likewise.
11928         * modules/readlinkat-tests (Makefile.am): Likewise.
11929         * modules/symlinkat-tests (Makefile.am): Likewise.
11930         * modules/linkat-tests (Makefile.am): Likewise.
11931         (Depends-on): Switch to filenamecat-lgpl.
11932         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
11933         LIBINTL.
11934         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
11935         * tests/test-linkat.c (main): Don't require xalloc.
11936
11937         hash, mgetgroups: drop xalloc dependency
11938         * lib/hash.c (includes): Adjust includes.
11939         * lib/mgetgroups.c (includes): Likewise.
11940         (xgetgroups): Move...
11941         * lib/xgetgroups.c: ...to new file.
11942         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
11943         * modules/xgetgroups: New file, split from...
11944         * modules/mgetgroups: ...here.
11945         (Depends-on): Add xalloc-oversized.
11946         * modules/hash (Depends-on): Likewise.
11947         * modules/hash-tests (Depends-on): Drop xalloc.
11948         (test_hash_LDADD): Drop unused library.
11949         * tests/test-hash.c (main): Break xalloc dependency.
11950         (includes): Drop unused include.
11951
11952         xalloc-oversized: new module
11953         * modules/xalloc-oversized: New module.
11954         * modules/xalloc (Depends-on): Add it.
11955         * lib/xalloc.h (xalloc_oversized): Move...
11956         * lib/xalloc-oversized.h: ...into new file.
11957
11958         utimecmp: drop dependency on xmalloc
11959         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
11960         due to memory pressure.
11961         * modules/utimecmp (Depends-on): Drop xalloc.
11962
11963 2011-04-27  Eric Blake  <eblake@redhat.com>
11964
11965         getcwd: fix mingw bugs
11966         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
11967         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
11968         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
11969
11970 2011-04-27  Bruno Haible  <bruno@clisp.org>
11971
11972         mkstemps: Ensure declaration on MacOS X 10.5.
11973         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
11974         * doc/glibc-functions/mkstemps.texi: Document header file problem on
11975         MacOS X.
11976
11977 2011-04-27  Bruno Haible  <bruno@clisp.org>
11978
11979         mkstemp: More documentation.
11980         * doc/posix-functions/mkstemp.texi: Document header file problem on
11981         MacOS X.
11982
11983 2011-04-27  Bruno Haible  <bruno@clisp.org>
11984
11985         mkstemp: Tweak configure message when cross-compiling.
11986         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
11987         result as a guess.
11988
11989 2011-04-27  Bruno Haible  <bruno@clisp.org>
11990
11991         clean-temp: Clarify what it does.
11992         * lib/clean-temp.h: Add more comments.
11993         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
11994         module.
11995         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
11996         * doc/glibc-functions/mkstemps.texi: Likewise.
11997         * doc/glibc-functions/mkostemps.texi: Likewise.
11998
11999 2011-04-27  Eric Blake  <eblake@redhat.com>
12000
12001         fchdir: avoid extra chdir and fix test
12002         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
12003         getcwd-lgpl.
12004         * lib/fchdir.c (get_name): Any absolute name will do; it does not
12005         have to be canonical.
12006         (canonicalize_file_name): Drop unused macro.
12007         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
12008
12009         filenamecat-lgpl: fix licence
12010         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
12011         when it was first created.
12012
12013         linkat, renameat: add missing dependency
12014         * modules/linkat (Depends-on): Require getcwd-lgpl.
12015         * modules/renameat (Depends-on): Likewise.
12016
12017         tests: reduce dependencies
12018         * tests/test-linkat.c (main): Use lighter-weight getcwd.
12019         * tests/test-renameat.c (main): Likewise.
12020         * modules/linkat-tests (Depends-on): Relax dependency.
12021         * modules/renameat-tests (Depends-on): Likewise.
12022         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
12023         dependency explicit.
12024
12025         save-cwd: reduce default dependency
12026         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
12027         * lib/save-cwd.c: Update comments.
12028         * NEWS: Document the semantic change.
12029
12030         getcwd: enhance tests
12031         * tests/test-getcwd-lgpl.c: New file, taken from...
12032         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
12033         repeat long path stress tests from m4 probe.
12034         * modules/getcwd-lgpl-tests: New module.
12035         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
12036         * m4/getcwd-abort-bug.m4: Update comment.
12037         * m4/getcwd-path-max.m4: Likewise.
12038
12039         getcwd-lgpl: new module
12040         * modules/getcwd-lgpl: New module.
12041         * lib/getcwd-lgpl.c: New file.
12042         * doc/posix-functions/getcwd.texi (getcwd): Document it.
12043         * MODULES.html.sh (lacking POSIX:2008): Likewise.
12044         * modules/getcwd (configure.ac): Set C witness.
12045         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
12046
12047         getcwd: tweak comments
12048         * m4/getcwd-abort-bug.m4: Fix comments.
12049         * m4/getcwd-path-max.m4: Likewise.
12050         * m4/getcwd.m4: Likewise.
12051
12052 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
12053         and Eric Blake  <eblake@redhat.com>
12054
12055         mkstemp: replace if system version uses wrong permissions
12056         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
12057         read/write mode bits set in file created by mkstemp.
12058         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
12059
12060 2011-04-27  Eric Blake  <eblake@redhat.com>
12061
12062         passfd: avoid compiler warning
12063         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
12064         Reported by Laine Stump.
12065
12066 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
12067
12068         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
12069         required by the NetBSD (and perhaps other 4.4BSD derived) join.
12070
12071 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
12072         and Eric Blake  <eblake@redhat.com>
12073
12074         mkstemp: mention clean-temp module
12075         * lib/mkstemp.c: Add comment.
12076         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
12077
12078 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
12079
12080         inttypes: also provide default values for 32-bit tests
12081         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
12082         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
12083
12084 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
12085
12086         strtoumax: remove dependency on strtoimax
12087         This is like the strtoull change of yesterday.
12088         * modules/strtoumax (Files): Add lib/strtoimax.c.
12089         (Depends-on): Remove strtoimax and add verify.
12090
12091         inttypes-incomplete: new module
12092         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
12093         all but the PRI* and SCN* parts of gl_INTTYPES_H.
12094         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
12095         of gl_INTTYPES_H.
12096         (gl_INTTYPES_H): Rewrite in terms of these new macros.
12097         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
12098         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
12099         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
12100         * modules/strtoumax, modules/xstrtol (Depends-on):
12101         Depend on inttypes-incomplete, not inttypes.
12102         * modules/inttypes-incomplete: New module, containing the contents
12103         of the old modules/inttypes module, except that the Files: section
12104         omits m4/inttypes-pri.m4, and the configure.ac section invokes
12105         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
12106         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
12107         (Depends-on): Depend only on inttypes-incomplete.
12108         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
12109
12110         inttypes: omit now-redundant strtoimax and strtoumax work
12111         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
12112         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
12113
12114         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
12115         This supports apps that need pointers to strtoimax and strtoumax,
12116         and ports to HP-UX 11.00 64.bit, which has macros that expand to
12117         nonexistent functions.  See
12118         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
12119         et seq.
12120         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
12121         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
12122         a macro.
12123         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
12124
12125 2011-04-25  Simon Josefsson  <simon@josefsson.org>
12126
12127         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
12128
12129 2011-04-25  Bruno Haible  <bruno@clisp.org>
12130
12131         strtol, strtoul: Mark modules as obsolete.
12132         * modules/strtol (Status, Notice): New sections.
12133         * modules/strtoul (Status, Notice): New sections.
12134
12135 2011-04-25  Bruno Haible  <bruno@clisp.org>
12136
12137         strtod: Remove check for strtod, unless supporting old platforms.
12138         * modules/strtod-obsolete: New file.
12139         * m4/strtod-obsolete.m4: New file.
12140         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
12141         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
12142         * modules/strtod (Depends-on): Add strtod-obsolete.
12143         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
12144
12145 2011-04-25  Bruno Haible  <bruno@clisp.org>
12146
12147         strcase: Make module obsolete.
12148         * modules/strcase (Status, Notice): New sections.
12149
12150 2011-04-25  Bruno Haible  <bruno@clisp.org>
12151
12152         dup2: Remove check for dup2, unless supporting old obsolete platforms.
12153         * modules/dup2-obsolete: New file.
12154         * m4/dup2-obsolete.m4: New file.
12155         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
12156         gl_FUNC_DUP2_OBSOLETE is not also defined.
12157         * modules/dup2 (Depends-on): Add dup2-obsolete.
12158         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
12159
12160 2011-04-25  Bruno Haible  <bruno@clisp.org>
12161
12162         strnlen: Avoid memchr related link error on old obsolete platforms.
12163         * modules/memchr-obsolete: New file.
12164         * m4/memchr-obsolete.m4: New file.
12165         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
12166         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
12167         * modules/memchr (Depends-on): Add memchr-obsolete.
12168         * modules/strnlen (Depends-on): Likewise.
12169         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
12170
12171 2011-04-25  Jim Meyering  <meyering@redhat.com>
12172
12173         maint.mk: makefile_at_at_check extend and clean up
12174         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
12175         in addition to */Makefile.am.
12176         Exempt legitimate uses of @VAR@ notation, e.g.,
12177         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
12178         Remove obsolete coreutils-specific comment.
12179         Prompted by discussion here:
12180         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
12181
12182 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
12183
12184         strtoul: remove dependency on strtol
12185         This is so that 'configure' need not check for strtol merely because
12186         the application needs strtoul.
12187         * modules/strtoul (Files): Add lib/strtol.c.
12188         (Depends-on): Remove strtol.
12189
12190         strtoull: remove dependency on strtoul
12191         This is like the strtoll change.
12192         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
12193         (Depends-on): Remove strtoul.
12194
12195         strtoll: remove dependency on strtol
12196         This is so that 'configure' need not check for strtol merely because
12197         the application needs strtoll.
12198         * modules/strtoll (Files): Add lib/strtol.c.
12199         (Depends-on): Remove strtol.
12200
12201 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12202
12203         inttypes: Move some configure check to module 'imaxdiv'.
12204         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
12205         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
12206         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
12207
12208 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12209
12210         inttypes: Move some configure check to module 'imaxabs'.
12211         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
12212         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
12213         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
12214
12215 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12216
12217         inttypes: Remove configure tests that are not needed since 2009-12-31.
12218         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
12219         gl_cv_header_working_inttypes_h.
12220
12221 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
12222
12223         * modules/strnlen (Depends-on): Remove memchr.
12224         The strnlen implementation doesn't need the memchr module's fixes; see
12225         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
12226
12227         strtol: remove dependency on wchar
12228         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
12229         * modules/strtol (Depends-on): Remove wchar.
12230
12231 2011-04-21  Eric Blake  <eblake@redhat.com>
12232
12233         passfd: fix test regression on Linux
12234         * modules/passfd-tests (configure.ac): Correct socketpair check.
12235
12236         passfd: speed up configure and drop unused code
12237         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
12238         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
12239         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
12240         Instead of probing at configure for unix_scm_rights_bsd44_way,
12241         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
12242         check to a struct member probe.
12243         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
12244         (sendfd, recvfd): Update preprocessor checks.
12245         * modules/passfd (Files): Reflect rename, and drop unused file.
12246         (Depends-on): Drop unused dependency.
12247
12248         passfd: allow compilation on mingw
12249         * modules/sys_socket (Depends-on): Add sys_uio.
12250         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
12251         iovec and a minimal struct msghdr.
12252         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
12253         * tests/test-sys_socket.c (main): Enhance test.
12254         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
12255         guaranteed to provide what we need.
12256         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
12257         * modules/passfd-tests (Depends-on): Add sys_wait.
12258         * tests/test-passfd.c (main): Skip test on mingw, for now.
12259         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
12260         partial 'struct msghdr' implementation.
12261
12262         sys_uio: new module
12263         * modules/sys_uio: New module.
12264         * modules/sys_uio-tests: Likewise.
12265         * lib/sys_uio.in.h: New file.
12266         * m4/sys_uio_h.m4: Likewise.
12267         * tests/test-sys_uio.c: Likewise.
12268         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
12269         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
12270
12271 2011-04-20  Jim Meyering  <meyering@redhat.com>
12272
12273         useless-if-before-free: avoid false-positive
12274         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
12275         disjunct so that it too requires a terminating ";".  Without that,
12276         this script would identify as useless one statement from gcc that
12277         was not:
12278           if (aligned_ptr)
12279             free (((void **) aligned_ptr) [-1]);
12280
12281 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
12282
12283         doc: update users.txt.
12284         * users.txt: Add barcode.
12285
12286 2011-04-19  Bruno Haible  <bruno@clisp.org>
12287
12288         ioctl: Remove link dependency on native Windows.
12289         * lib/fd-hook.h: Renamed from lib/close-hook.h.
12290         (gl_close_fn, gl_ioctl_fn): New types.
12291         (struct fd_hook): Renamed from struct close_hook. Change type of
12292         private_close_fn field. Add private_ioctl_fn field.
12293         (close_hook_fn): Add parameter for primary close method.
12294         (execute_close_hooks, execute_all_close_hooks): Likewise.
12295         (ioctl_hook_fn): New type.
12296         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
12297         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
12298         argument.
12299         (unregister_fd_hook): Renamed from unregister_close_hook.
12300         * lib/fd-hook.c: Renamed from lib/close-hook.c.
12301         Don't include <unistd.h>.
12302         (close): Remove undef.
12303         (anchor): Update.
12304         (execute_close_hooks): Add argument for primary close method.
12305         (execute_all_close_hooks): Likewise.
12306         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
12307         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
12308         argument. Allow each argument to be NULL.
12309         (unregister_fd_hook): Renamed from unregister_close_hook.
12310         * lib/close.c (rpl_close): Pass 'close' function pointer to
12311         execute_all_close_hooks.
12312         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
12313         (primary_ioctl): New function.
12314         (ioctl): Don't call ioctlsocket here. Instead, call
12315         execute_all_ioctl_hooks.
12316         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
12317         close method.
12318         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
12319         (fd_sockets_hook): Renamed from close_sockets_hook.
12320         (gl_sockets_startup, gl_sockets_cleanup): Update.
12321         * modules/fd-hook: Renamed from modules/close-hook. Update.
12322         * modules/close (Depends-on): Add fd-hook, remove close-hook.
12323         * modules/sockets (Depends-on): Likewise.
12324         * modules/ioctl (Depends-on): Add fd-hook.
12325         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
12326         GNULIB_SOCKET.
12327
12328 2011-04-19  Bruno Haible  <bruno@clisp.org>
12329
12330         Move the support of O_NONBLOCK in open() to the 'open' module.
12331         * modules/nonblocking (Depends-on): Remove 'open'.
12332         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
12333         gl_cv_have_open_O_NONBLOCK.
12334         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
12335         O_NONBLOCK support.
12336         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
12337
12338 2011-04-17  Bruno Haible  <bruno@clisp.org>
12339
12340         pipe2: Simplify code.
12341         * lib/pipe2.c (pipe2): Reduce code duplication.
12342
12343 2011-04-17  Bruno Haible  <bruno@clisp.org>
12344
12345         nonblocking: Add comment.
12346         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
12347
12348 2011-04-17  Bruno Haible  <bruno@clisp.org>
12349
12350         nonblocking: Add tests for sockets.
12351         * tests/test-nonblocking-socket.sh: New file.
12352         * tests/test-nonblocking-socket-main.c: New file.
12353         * tests/test-nonblocking-socket-child.c: New file.
12354         * tests/test-nonblocking-socket.h: New file.
12355         * tests/socket-server.h: New file.
12356         * tests/socket-client.h: New file.
12357         * modules/nonblocking-socket-tests: New file.
12358         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
12359
12360 2011-04-17  Bruno Haible  <bruno@clisp.org>
12361
12362         nonblocking: Add tests for pipes.
12363         * tests/test-nonblocking-pipe.sh: New file.
12364         * tests/test-nonblocking-pipe-main.c: New file.
12365         * tests/test-nonblocking-pipe-child.c: New file.
12366         * tests/test-nonblocking-pipe.h: New file.
12367         * tests/test-nonblocking-writer.h: New file.
12368         * tests/test-nonblocking-reader.h: New file.
12369         * tests/test-nonblocking-misc.h: New file.
12370         * modules/nonblocking-pipe-tests: New file.
12371         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
12372
12373 2011-04-16  Bruno Haible  <bruno@clisp.org>
12374
12375         gettext: Clarify the needed programmer actions.
12376         * modules/gettext (Notice): New field.
12377         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
12378
12379 2011-04-16  Bruno Haible  <bruno@clisp.org>
12380
12381         strchrnul: Tweak last commit.
12382         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
12383         bug.
12384         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
12385         as in _GL_FUNCDECL_SYS.
12386         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
12387         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
12388
12389 2011-04-15  Eric Blake  <eblake@redhat.com>
12390
12391         strchrnul: work around cygwin bug
12392         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
12393         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
12394         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
12395         * modules/string (Makefile.am): Substitute it.
12396         * lib/string.in.h (strchrnul): Use it.
12397
12398 2011-04-15  Bruno Haible  <bruno@clisp.org>
12399
12400         Don't require lib/stdio-write.c when only module 'stdio' is used.
12401         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
12402         invocation.
12403         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
12404
12405 2011-04-14  Bruno Haible  <bruno@clisp.org>
12406
12407         Support non-blocking pipe I/O in read() on native Windows.
12408         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
12409         (read): New declaration.
12410         * lib/read.c: New file.
12411         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
12412         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
12413         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
12414         vscanf): New declarations.
12415         * lib/stdio-read.c: New file.
12416         * m4/read.m4: New file.
12417         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
12418         REPLACE_READ.
12419         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
12420         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12421         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
12422         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
12423         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
12424         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12425         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12426         * modules/read: New file.
12427         * modules/nonblocking (Files): Add lib/stdio-read.c.
12428         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
12429         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
12430         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
12431         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
12432         * modules/pread (Depends-on): Add read.
12433         * modules/safe-read (Depends-on): Likewise.
12434         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
12435         gets, scanf, vfscanf, vscanf): Verify signatures.
12436         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
12437         problem with non-blocking pipes.
12438         * doc/posix-functions/fgetc.texi: Likewise.
12439         * doc/posix-functions/fgets.texi: Likewise.
12440         * doc/posix-functions/fread.texi: Likewise.
12441         * doc/posix-functions/fscanf.texi: Likewise.
12442         * doc/posix-functions/getc.texi: Likewise.
12443         * doc/posix-functions/getchar.texi: Likewise.
12444         * doc/posix-functions/gets.texi: Likewise.
12445         * doc/posix-functions/scanf.texi: Likewise.
12446         * doc/posix-functions/vfscanf.texi: Likewise.
12447         * doc/posix-functions/vscanf.texi: Likewise.
12448
12449 2011-04-14  Bruno Haible  <bruno@clisp.org>
12450
12451         Support non-blocking pipe I/O in write() on native Windows.
12452         * lib/write.c (rpl_write): Split a write request that failed merely
12453         because the byte count was larger than the pipe buffer's size.
12454         * doc/posix-functions/write.texi: Mention the problem with large byte
12455         counts.
12456
12457 2011-04-14  Bruno Haible  <bruno@clisp.org>
12458
12459         wchar: Ensure that wchar_t gets defined on uClibc.
12460         * lib/wchar.in.h: On uClibc, include <stddef.h>.
12461         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
12462
12463 2011-04-13  Bruno Haible  <bruno@clisp.org>
12464
12465         safe-write, full-read: Avoid unnecessary compilation units.
12466         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
12467         (Depends-on): Remove safe-read. Add ssize_t.
12468         * modules/full-read (Files): Add lib/full-write.c.
12469         (Depends-on): Add full-write.
12470
12471 2011-04-13  Bruno Haible  <bruno@clisp.org>
12472
12473         Support non-blocking pipe I/O and SIGPIPE in pwrite().
12474         * modules/pwrite (Depends-on): Add 'write'.
12475
12476 2011-04-13  Bruno Haible  <bruno@clisp.org>
12477
12478         Support non-blocking pipe I/O in write() on native Windows.
12479         * lib/unistd.in.h (write): Enable replacement also if
12480         GNULIB_UNISTD_H_NONBLOCKING is 1.
12481         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
12482         (rpl_write): When failing to write on a non-blocking pipe, change
12483         errno from ENOSPC to EAGAIN.
12484         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
12485         putchar, puts, vfprintf, vprintf): Enable replacement also if
12486         GNULIB_STDIO_H_NONBLOCKING is 1.
12487         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
12488         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
12489         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
12490         CALL_WITH_SIGPIPE_EMULATION.
12491         (CALL_WITH_SIGPIPE_EMULATION): Use them.
12492         * m4/nonblocking.m4: New file.
12493         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
12494         for non-blocking I/O support.
12495         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12496         GNULIB_UNISTD_H_NONBLOCKING.
12497         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
12498         required for non-blocking I/O support.
12499         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
12500         * modules/nonblocking (Files): Add m4/nonblocking.m4,
12501         lib/stdio-write.c, m4/asm-underscore.m4.
12502         (Depends-on): Add stdio, unistd.
12503         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
12504         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
12505         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
12506         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
12507         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
12508         problem with non-blocking pipes.
12509         * doc/posix-functions/fputc.texi: Likewise.
12510         * doc/posix-functions/fputs.texi: Likewise.
12511         * doc/posix-functions/fwrite.texi: Likewise.
12512         * doc/posix-functions/printf.texi: Likewise.
12513         * doc/posix-functions/putc.texi: Likewise.
12514         * doc/posix-functions/putchar.texi: Likewise.
12515         * doc/posix-functions/puts.texi: Likewise.
12516         * doc/posix-functions/vfprintf.texi: Likewise.
12517         * doc/posix-functions/vprintf.texi: Likewise.
12518         * doc/posix-functions/write.texi: Likewise.
12519
12520 2011-04-10  Jim Meyering  <meyering@redhat.com>
12521
12522         maint.mk: prohibit doubled words
12523         Detect them also when they're separated by a newline.
12524         There are 3 ways to customize it:
12525           - disable the test on a per file basis, as usual with rules using
12526             $(VC_LIST_EXCEPT)
12527           - replace the default doubled-word-selecting regexp (affects all files)
12528           - ignore a particular file-vs-doubled-word match
12529         I nearly used that last one to ignore the "is is" match in
12530         coreutils' NEWS file, since the text was "ls -is is ..."
12531         To do that, I would have added this line to cfg.mk:
12532           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
12533         but it would have ignored any "is is" match in NEWS.
12534         Low probability, but still...
12535         Instead, I changed the text, slightly:
12536           -  ls -is is now consistent with ls -lis in ignoring values returned
12537           +  "ls -is" is now consistent with ls -lis in ignoring values returned
12538         * top/maint.mk (prohibit_double_word_RE_): Provide default.
12539         (prohibit_doubled_word_): Define.
12540         (sc_prohibit_doubled_word): New rule.
12541         (sc_prohibit_the_the): Remove.  Subsumed by the above.
12542
12543 2011-04-10  Jim Meyering  <meyering@redhat.com>
12544
12545         maint: fix doubled-word typo in comment
12546         * m4/gethostname.m4: s/is is/it is/
12547         * m4/getdomainname.m4: Likewise.
12548
12549 2011-04-10  Jim Meyering  <meyering@redhat.com>
12550
12551         maint: remove doubled word: s/it it/it/
12552         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
12553
12554 2011-04-10  Jim Meyering  <meyering@redhat.com>
12555
12556         maint.mk: remove useless semicolon and backslash
12557         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
12558         semicolon and backslash.
12559
12560 2011-04-10  Bruno Haible  <bruno@clisp.org>
12561
12562         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
12563         * modules/stdint-tests (Depends-on): Add wchar.
12564
12565 2011-04-10  Jim Meyering  <meyering@redhat.com>
12566
12567         maint: remove doubled words in comments, e.g., s/a a/a/
12568         * lib/strptime.c (day_of_the_week): s/the the/the/
12569         * tests/test-chown.h (test_chown): s/a a/a/
12570
12571         test-chown.h: correct a cast
12572         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
12573         when the destination is a stat.st_gid.
12574
12575 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
12576
12577         getaddrinfo: Fix test for sa_len member.
12578         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
12579         include <sys/types.h> before <sys/socket.h>.
12580
12581 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
12582
12583         maint: change "can not" to "cannot"
12584         * doc/posix-functions/iconv.texi (iconv): This one crossed line
12585         boundaries.
12586
12587 2011-04-09  Jim Meyering  <meyering@redhat.com>
12588
12589         maint: change "a a" to "a"
12590         * tests/test-lchown.h (test_lchown): s/a a/a/
12591
12592         maint.mk: prohibit \<the the\>
12593         * top/maint.mk (sc_prohibit_the_the): New rule.
12594
12595         maint: fix "the the" in comment
12596         * lib/count-one-bits.h: s/the the/the/
12597
12598         maint: change "can not" to "cannot"
12599         But do not change the occurrences in maintain.texi or in
12600         build-aux/po/Makefile.in.in, which I presume comes from gettext.
12601         * doc/gnulib-tool.texi: s/can not/cannot/
12602         * doc/posix-functions/accept.texi (accept): Likewise.
12603         * doc/posix-functions/socket.texi (socket): Likewise.
12604         * lib/mbrtowc.c: Likewise.
12605
12606         maint.mk: prohibit use of "can not"
12607         * top/maint.mk (sc_prohibit_can_not): New rule.
12608         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
12609
12610 2011-04-09  Bruno Haible  <bruno@clisp.org>
12611
12612         careadlinkat: Guard against misuse of careadlinkatcwd.
12613         * lib/careadlinkat.c: Include <stdlib.h>.
12614         (careadlinkatcwd): Check that the fd argument is as expected.
12615
12616 2011-04-09  Bruno Haible  <bruno@clisp.org>
12617
12618         careadlinkat: Use common coding style.
12619         * lib/careadlinkat.c: Move gnulib includes after system includes.
12620
12621 2011-04-09  Bruno Haible  <bruno@clisp.org>
12622
12623         careadlinkat: Clarify specification.
12624         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
12625         (careadlinkatcwd): Add comment.
12626         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
12627
12628 2011-04-09  Bruno Haible  <bruno@clisp.org>
12629
12630         areadlinkat: Avoid link error on many platforms.
12631         * modules/areadlinkat (Depends-on): Add areadlink.
12632
12633 2011-04-09  Bruno Haible  <bruno@clisp.org>
12634
12635         allocator, careadlinkat: Fix double-inclusion guard.
12636         * lib/allocator.h: Fix double-inclusion guard.
12637         * lib/careadlinkat.h: Likewise.
12638
12639 2011-04-09  Bruno Haible  <bruno@clisp.org>
12640
12641         relocatable-prog-wrapper: Update after module 'areadlink' changed.
12642         * lib/relocwrapper.c: Update dependencies hierarchy.
12643         * build-aux/install-reloc: Update list of files to be compiled.
12644         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
12645         lib/allocator.[hc].
12646
12647 2011-04-08  Eric Blake  <eblake@redhat.com>
12648
12649         strftime: silence gnulib-tool warning
12650         * modules/strftime-tests (Depends-on): Drop automatic dependency.
12651
12652 2011-04-08  Bruno Haible  <bruno@clisp.org>
12653
12654         verify: Fix syntax error with GCC 4.6 in C++ mode.
12655         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
12656         (HAVE_STATIC_ASSERT): New macro.
12657         (verify_true, verify): Use 'static_assert' if it is supported and
12658         '_Static_assert' is not supported.
12659
12660 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
12661
12662         allocator: New module.
12663         * modules/allocator, lib/allocator.c: New files.
12664         * lib/allocator.h (stdlib_allocator): New decl.
12665         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
12666         Remove.  Do not include <stdlib.h>.
12667         (careadlinkat): Use stdlib_allocator instead of rolling our own.
12668         * modules/careadlinkat (Files): Remove lib/allocator.h.
12669         (Depends-on): Add allocator.
12670
12671         stdlib: let modules use system malloc, realloc
12672         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
12673         if !_GL_USE_STDLIB_ALLOC.
12674         (malloc, realloc): Limit this change to a smaller scope.
12675
12676         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
12677         (malloc, realloc): Don't #undef; no longer needed.
12678         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12679         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12680         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12681         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12682         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12683         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12684         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
12685         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
12686
12687         careadlinkat: rename members to avoid problem
12688         * lib/allocator.h (struct allocator): Rename members from
12689         malloc/realloc to allocate/reallocate, to avoid problems if malloc
12690         and realloc are #define'd.  Reported by Eric Blake in
12691         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
12692         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
12693
12694 2011-04-08  Eric Blake  <eblake@redhat.com>
12695
12696         nonblocking: reduce dependency
12697         * tests/test-nonblocking.c: Only test sockets when in use.
12698         * modules/nonblocking-tests (Depends-on): Drop socket.
12699         (Makefile.am): Link even if sockets are not present.
12700         * modules/pipe2-tests (Makefile.am): Likewise.
12701         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
12702
12703         pipe2: fix O_NONBLOCK support on mingw
12704         * modules/pipe2 (Depends-on): Add nonblocking.
12705         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
12706         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
12707         * tests/test-nonblocking.c (main): Likewise.
12708         * modules/pipe2-tests (Makefile.am): Avoid link failure.
12709
12710         fcntl-h: fix O_ACCMODE on cygwin
12711         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
12712         * lib/fcntl.in.h (O_ACCMODE): Fix it.
12713
12714         pipe-filter: drop O_NONBLOCK workarounds
12715         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
12716         * modules/pipe-filter-ii (Depends-on): Likewise.
12717         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
12718
12719         nonblocking: provide O_NONBLOCK for mingw
12720         * modules/nonblocking (Depends-on): Add open.
12721         (configure.ac): Set new witness macro.
12722         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
12723         * modules/fcntl-h (Makefile.am): Substitute it.
12724         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
12725         nonblocking module is in use.
12726         * lib/nonblocking.c: Adjust portability test.
12727         * lib/open.c (open): Don't let native open see gnulib flag.
12728         * tests/test-fcntl-h.c (main): Enhance test.
12729         * tests/test-open.h (test_open): Likewise.
12730         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
12731
12732         careadlinkat: fix compilation error on mingw
12733         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
12734         within struct allocator.
12735
12736 2011-04-06  Eric Blake  <eblake@redhat.com>
12737
12738         binary-io: relicense under LGPLv2+
12739         * modules/binary-io (License): Relax to LGPLv2+.
12740         Requested for libvirt, and required by pipe2.
12741
12742 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
12743
12744         verify: use _Static_assert if available
12745         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
12746         (verify_true, verify): Use it if available.  This generates better
12747         diagnostics with GCC 4.6.0 and later.
12748
12749 2011-04-05  Bruno Haible  <bruno@clisp.org>
12750
12751         Remove leftover generated .h files after config.status changed.
12752
12753         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
12754         GL_GENERATE_ALLOCA_H.
12755         * modules/alloca-opt (Makefile.am): Remove alloca.h if
12756         GL_GENERATE_ALLOCA_H evaluates to false.
12757
12758         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
12759         GL_GENERATE_ARGZ_H.
12760         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
12761         evaluates to false.
12762
12763         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
12764         GL_GENERATE_BYTESWAP_H.
12765         * modules/byteswap (Makefile.am): Remove byteswap.h if
12766         GL_GENERATE_BYTESWAP_H evaluates to false.
12767
12768         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
12769         GL_GENERATE_ERRNO_H.
12770         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
12771         evaluates to false.
12772
12773         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
12774         GL_GENERATE_FLOAT_H.
12775         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
12776         evaluates to false.
12777
12778         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
12779         GL_GENERATE_FNMATCH_H.
12780         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
12781         GL_GENERATE_FNMATCH_H evaluates to false.
12782
12783         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
12784         GL_GENERATE_GLOB_H.
12785         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
12786         evaluates to false.
12787
12788         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
12789         automake conditional GL_GENERATE_ICONV_H.
12790         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
12791         evaluates to false.
12792
12793         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
12794         GL_GENERATE_NETINET_IN_H.
12795         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
12796         GL_GENERATE_NETINET_IN_H evaluates to false.
12797
12798         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
12799         conditional GL_GENERATE_PTHREAD_H.
12800         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
12801         * modules/pthread (Makefile.am): Remove pthread.h if
12802         GL_GENERATE_PTHREAD_H evaluates to false.
12803
12804         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
12805         GL_GENERATE_SCHED_H.
12806         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
12807         evaluates to false.
12808
12809         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
12810         conditional GL_GENERATE_SELINUX_CONTEXT_H.
12811         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
12812         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
12813
12814         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
12815         GL_GENERATE_STDARG_H.
12816         * modules/stdarg (Makefile.am): Remove stdarg.h if
12817         GL_GENERATE_STDARG_H evaluates to false.
12818
12819         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
12820         GL_GENERATE_STDBOOL_H.
12821         * modules/stdbool (Makefile.am): Remove stdbool.h if
12822         GL_GENERATE_STDBOOL_H evaluates to false.
12823
12824         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
12825         conditional GL_GENERATE_STDDEF_H.
12826         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
12827         * modules/stddef (Makefile.am): Remove stddef.h if
12828         GL_GENERATE_STDDEF_H evaluates to false.
12829
12830         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
12831         GL_GENERATE_STDINT_H.
12832         * modules/stdint (Makefile.am): Remove stdint.h if
12833         GL_GENERATE_STDINT_H evaluates to false.
12834
12835         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
12836         GL_GENERATE_SYSEXITS_H.
12837         * modules/sysexits (Makefile.am): Remove sysexits.h if
12838         GL_GENERATE_SYSEXITS_H evaluates to false.
12839
12840         Reported by Karl Berry and Ralf Wildenhues.
12841
12842 2011-04-05  Bruno Haible  <bruno@clisp.org>
12843
12844         Ensure to rebuild generated .h files when config.status has changed.
12845         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
12846         config.status.
12847         * modules/ctype (Makefile.am): Likewise.
12848         * modules/dirent (Makefile.am): Likewise.
12849         * modules/errno (Makefile.am): Likewise.
12850         * modules/fcntl-h (Makefile.am): Likewise.
12851         * modules/float (Makefile.am): Likewise.
12852         * modules/getopt-posix (Makefile.am): Likewise.
12853         * modules/glob (Makefile.am): Likewise.
12854         * modules/iconv-h (Makefile.am): Likewise.
12855         * modules/inttypes (Makefile.am): Likewise.
12856         * modules/langinfo (Makefile.am): Likewise.
12857         * modules/locale (Makefile.am): Likewise.
12858         * modules/math (Makefile.am): Likewise.
12859         * modules/netdb (Makefile.am): Likewise.
12860         * modules/netinet_in (Makefile.am): Likewise.
12861         * modules/poll-h (Makefile.am): Likewise.
12862         * modules/pthread (Makefile.am): Likewise.
12863         * modules/pty (Makefile.am): Likewise.
12864         * modules/sched (Makefile.am): Likewise.
12865         * modules/search (Makefile.am): Likewise.
12866         * modules/selinux-h (Makefile.am): Likewise.
12867         * modules/signal (Makefile.am): Likewise.
12868         * modules/spawn (Makefile.am): Likewise.
12869         * modules/stdarg (Makefile.am): Likewise.
12870         * modules/stdbool (Makefile.am): Likewise.
12871         * modules/stddef (Makefile.am): Likewise.
12872         * modules/stdint (Makefile.am): Likewise.
12873         * modules/stdio (Makefile.am): Likewise.
12874         * modules/stdlib (Makefile.am): Likewise.
12875         * modules/string (Makefile.am): Likewise.
12876         * modules/strings (Makefile.am): Likewise.
12877         * modules/sys_file (Makefile.am): Likewise.
12878         * modules/sys_ioctl (Makefile.am): Likewise.
12879         * modules/sys_select (Makefile.am): Likewise.
12880         * modules/sys_socket (Makefile.am): Likewise.
12881         * modules/sys_stat (Makefile.am): Likewise.
12882         * modules/sys_time (Makefile.am): Likewise.
12883         * modules/sys_times (Makefile.am): Likewise.
12884         * modules/sys_utsname (Makefile.am): Likewise.
12885         * modules/sys_wait (Makefile.am): Likewise.
12886         * modules/sysexits (Makefile.am): Likewise.
12887         * modules/termios (Makefile.am): Likewise.
12888         * modules/time (Makefile.am): Likewise.
12889         * modules/unistd (Makefile.am): Likewise.
12890         * modules/wchar (Makefile.am): Likewise.
12891         * modules/wctype-h (Makefile.am): Likewise.
12892         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
12893
12894 2011-04-05  Bruno Haible  <bruno@clisp.org>
12895
12896         pipe2: Relicense under LGPLv2+.
12897         * modules/pipe2 (License): Change to LGPLv2+.
12898         Requested by Eric Blake, for libvirt.
12899
12900 2011-04-05  Bruce Korb  <bkorb@gnu.org>
12901
12902         bootstrap: compute gnulib_extra_files after updating build_aux
12903         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
12904         change build_aux or also supply gnulib_extra_files.  Handle correctly.
12905
12906 2011-04-05  Eric Blake  <eblake@redhat.com>
12907
12908         bootstrap: preserve git whitelist item sorting
12909         * build-aux/bootstrap (sort_patterns): New function.
12910         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
12911
12912 2011-04-05  Simon Josefsson  <simon@josefsson.org>
12913
12914         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
12915         sc_space_tab check.
12916
12917 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
12918
12919         areadlink, areadlinkat: rewrite in terms of careadlinkat
12920         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
12921         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
12922         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
12923         (malloc, realloc): Remove #undefs.
12924         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
12925         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
12926         readlink, ssize_t, stdint, unistd.
12927         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
12928         areadlink, stdint.
12929
12930         careadlinkat: new module
12931         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
12932         * modules/careadlinkat: New files, written by me with
12933         a review and feedback from Ben Pfaff in
12934         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
12935
12936 2011-04-01  Bruno Haible  <bruno@clisp.org>
12937
12938         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
12939         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
12940         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
12941         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
12942         Reported by Bruce Korb <bruce.korb@gmail.com>.
12943
12944 2011-04-01  Bruno Haible  <bruno@clisp.org>
12945
12946         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
12947         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
12948         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
12949         * modules/wcpcpy (Depends-on): Add extensions.
12950         * modules/wcpncpy (Depends-on): Likewise.
12951         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
12952         systems.
12953         * doc/posix-functions/wcpncpy.texi: Likewise.
12954         * doc/posix-functions/wcwidth.texi: Likewise.
12955
12956 2011-03-31  Eric Blake  <eblake@redhat.com>
12957
12958         nonblocking: fix mingw test failures
12959         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
12960         non-blocking flag on regular file.
12961         (get_nonblocking_flag): Set errno on invalid fd.
12962         * tests/test-nonblocking.c (main): Avoid test failure on
12963         directories if fchdir is not active.
12964         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
12965
12966 2011-03-31  Bruno Haible  <bruno@clisp.org>
12967
12968         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
12969         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
12970         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
12971         Reported by Simon Josefsson <simon@josefsson.org>.
12972
12973 2011-03-31  Bruno Haible  <bruno@clisp.org>
12974         and Eric Blake  <eblake@redhat.com>
12975
12976         nonblocking: new module
12977         * modules/nonblocking: New module.
12978         * modules/nonblocking-tests: Likewise.
12979         * lib/nonblocking.h: New file.
12980         * lib/nonblocking.c: Likewise.
12981         * tests/test-nonblocking.c: New test.
12982         * lib/ioctl.c (ioctl) [mingw]: Update comment.
12983
12984 2011-03-30  Bruno Haible  <bruno@clisp.org>
12985
12986         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
12987         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
12988         instead of 'printf' format for GCC >= 4.4.
12989         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
12990         (fprintf, printf, vfprintf, vprintf): Declare with
12991         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
12992         the system's vfprintf() function.
12993         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
12994
12995 2011-03-30  Eric Blake  <eblake@redhat.com>
12996
12997         passfd: fix scoping bug
12998         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
12999         before sendmsg/recvmsg.
13000
13001         passfd: standardize coding conventions
13002         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
13003         can be learned at compile time.
13004         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
13005         ifdefs.
13006         (sendfd, recvfd): Follow gnulib code conventions.
13007
13008         passfd: fix incorrect sendmsg arguments
13009         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
13010         incorrect msg_controllen value.
13011         * modules/passfd-tests (Depends-on): Check for alarm.
13012         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
13013         Reported by Bastien ROUCARIES.
13014
13015 2011-03-30  Bruno Haible  <bruno@clisp.org>
13016
13017         c-strcasestr: Relicense under LGPLv2+.
13018         * modules/c-strcasestr (License): Change to LGPLv2+.
13019         Requested by Eric Blake, for libvirt.
13020
13021 2011-03-30  Simon Josefsson  <simon@josefsson.org>
13022
13023         * users.txt: Add libidn2.  Fix libtasn1 link.
13024
13025 2011-03-30  Jim Meyering  <meyering@redhat.com>
13026
13027         tests: readlink* ("",... fails with EINVAL on newer kernels
13028         readlink and readlinkat have typically failed with ENOENT for
13029         the invalid, empty file name,  "".  However, with the advent
13030         of linux-2.6.39, they fail with EINVAL.
13031         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
13032         when operating on the empty file name.
13033         * tests/test-readlink.h (test_readlink): Likewise.
13034
13035 2011-03-29  Bruno Haible  <bruno@clisp.org>
13036
13037         Relicense some modules under LGPLv2+, for libidn2.
13038         * modules/array-mergesort (License): Change to LGPLv2+.
13039         * modules/c-strcaseeq (License): Likewise.
13040         * modules/striconveh (License): Likewise.
13041         * modules/striconveha (License): Likewise.
13042         * modules/uniconv/base (License): Likewise.
13043         * modules/uniconv/u8-conv-from-enc (License): Likewise.
13044         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
13045         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
13046         * modules/unictype/base (License): Likewise.
13047         * modules/unictype/bidiclass-of (License): Likewise.
13048         * modules/unictype/category-M (License): Likewise.
13049         * modules/unictype/category-none (License): Likewise.
13050         * modules/unictype/category-of (License): Likewise.
13051         * modules/unictype/category-test (License): Likewise.
13052         * modules/unictype/category-test-withtable (License): Likewise.
13053         * modules/unictype/combining-class (License): Likewise.
13054         * modules/unictype/joiningtype-of (License): Likewise.
13055         * modules/unictype/scripts (License): Likewise.
13056         * modules/uninorm/base (License): Likewise.
13057         * modules/uninorm/canonical-decomposition (License): Likewise.
13058         * modules/uninorm/composition (License): Likewise.
13059         * modules/uninorm/decompose-internal (License): Likewise.
13060         * modules/uninorm/decomposition-table (License): Likewise.
13061         * modules/uninorm/nfc (License): Likewise.
13062         * modules/uninorm/nfd (License): Likewise.
13063         * modules/uninorm/u32-normalize (License): Likewise.
13064         * modules/unistr/base (License): Likewise.
13065         * modules/unistr/u32-cpy (License): Likewise.
13066         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
13067         * modules/unistr/u32-to-u8 (License): Likewise.
13068         * modules/unistr/u32-uctomb (License): Likewise.
13069         * modules/unistr/u8-check (License): Likewise.
13070         * modules/unistr/u8-mblen (License): Likewise.
13071         * modules/unistr/u8-mbtouc (License): Likewise.
13072         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
13073         * modules/unistr/u8-mbtoucr (License): Likewise.
13074         * modules/unistr/u8-prev (License): Likewise.
13075         * modules/unistr/u8-strlen (License): Likewise.
13076         * modules/unistr/u8-to-u32 (License): Likewise.
13077         * modules/unistr/u8-uctomb (License): Likewise.
13078         * modules/unitypes (License): Likewise.
13079         Requested by Simon Josefsson.
13080
13081 2011-03-29  Simon Josefsson  <simon@josefsson.org>
13082
13083         lib-symbol-visibility: Add a notice.
13084         * modules/lib-symbol-visibility (Notice): New field.
13085
13086 2011-03-29  Bruno Haible  <bruno@clisp.org>
13087
13088         getaddrinfo: Doc fix.
13089         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
13090         section "fixed in Gnulib".
13091
13092 2011-03-28  Simon Josefsson  <simon@josefsson.org>
13093
13094         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
13095         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
13096
13097 2011-03-26  Bruno Haible  <bruno@clisp.org>
13098
13099         unictype/property-byname: Reduce the number of load-time relocations.
13100         * lib/unictype/pr_byname.c: Include <stdlib.h>.
13101         (UC_PROPERTY_INDEX_*): New enumeration values.
13102         (uc_property_byname): Convert an index from the lookup table to an
13103         uc_property_t.
13104         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
13105         values.
13106
13107 2011-03-26  Bruno Haible  <bruno@clisp.org>
13108
13109         unictype/property-byname: Allow omitted word separators and aliases.
13110         * lib/unictype/pr_byname.gperf: Add property names without word
13111         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
13112         for 'space'.
13113
13114 2011-03-26  Bruno Haible  <bruno@clisp.org>
13115
13116         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
13117         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
13118         also hyphens to space.
13119         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
13120         without spaces.
13121         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
13122
13123 2011-03-26  Bruno Haible  <bruno@clisp.org>
13124
13125         unictype/joiningtype-byname: Recognize long names as well.
13126         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
13127         a long name.
13128         * lib/unictype/joiningtype_byname.c: Include <string.h>,
13129         unictype/joiningtype_byname.h.
13130         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
13131         * lib/unictype/joiningtype_byname.gperf: New file.
13132         * modules/unictype/joiningtype-byname (Files): Add
13133         lib/unictype/joiningtype_byname.gperf.
13134         (Depends-on): Add gperf.
13135         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
13136         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
13137         long names.
13138
13139         Tests for module 'unictype/joiningtype-longname'.
13140         * modules/unictype/joiningtype-longname-tests: New file.
13141         * tests/unictype/test-joiningtype_longname.c: New file.
13142
13143         New module 'unictype/joiningtype-longname'.
13144         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
13145         * lib/unictype/joiningtype_longname.c: New file.
13146         * modules/unictype/joiningtype-longname: New file.
13147         * modules/unictype/joiningtype-all (Depends-on): Add
13148         unictype/joiningtype-longname.
13149
13150 2011-03-26  Bruno Haible  <bruno@clisp.org>
13151
13152         unictype/bidiclass-byname: Recognize long names as well.
13153         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
13154         name.
13155         * lib/unictype/bidi_byname.c: Include <string.h>,
13156         unictype/bidi_byname.h.
13157         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
13158         * lib/unictype/bidi_byname.gperf: New file.
13159         * modules/unictype/bidiclass-byname (Files): Add
13160         lib/unictype/bidi_byname.gperf.
13161         (Depends-on): Add gperf.
13162         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
13163         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
13164         long names.
13165
13166         Tests for module 'unictype/bidiclass-longname'.
13167         * modules/unictype/bidiclass-longname-tests: New file.
13168         * tests/unictype/test-bidi_longname.c: New file.
13169
13170         New module 'unictype/bidiclass-longname'.
13171         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
13172         * lib/unictype/bidi_longname.c: New file.
13173         * modules/unictype/bidiclass-longname: New file.
13174         * modules/unictype/bidiclass-all (Depends-on): Add
13175         unictype/bidiclass-longname.
13176
13177 2011-03-26  Bruno Haible  <bruno@clisp.org>
13178
13179         unictype/bidi*: Rename modules.
13180         * modules/unictype/bidiclass-all: Renamed from
13181         modules/unictype/bidicategory-all.
13182         * modules/unictype/bidiclass-name: Renamed from
13183         modules/unictype/bidiclass-name.
13184         (Description): Update.
13185         * modules/unictype/bidiclass-name-tests: Renamed from
13186         modules/unictype/bidicategory-name-tests.
13187         * modules/unictype/bidiclass-byname: Renamed from
13188         modules/unictype/bidicategory-byname.
13189         (Description): Update.
13190         * modules/unictype/bidiclass-byname-tests: Renamed from
13191         modules/unictype/bidicategory-byname-tests.
13192         * modules/unictype/bidiclass-of: Renamed from
13193         modules/unictype/bidicategory-of.
13194         (Description): Update.
13195         * modules/unictype/bidiclass-of-tests: Renamed from
13196         modules/unictype/bidicategory-of-tests.
13197         * modules/unictype/bidiclass-test: Renamed from
13198         modules/unictype/bidicategory-test.
13199         (Description): Update.
13200         * modules/unictype/bidiclass-test-tests: Renamed from
13201         modules/unictype/bidicategory-test-tests.
13202         * modules/unictype/bidicategory-all: New file, a simple redirection.
13203         * modules/unictype/bidicategory-name: Likewise.
13204         * modules/unictype/bidicategory-byname: Likewise.
13205         * modules/unictype/bidicategory-of: Likewise.
13206         * modules/unictype/bidicategory-test: Likewise.
13207         * modules/unictype/property-bidi-* (Dependencies): Update.
13208         * lib/unictype/bidi_*.c: Update comment.
13209
13210 2011-03-26  Bruno Haible  <bruno@clisp.org>
13211
13212         unictype/bidi*: Rename functions, part 2.
13213         * modules/unictype/bidicategory-name (configure.ac): Update required
13214         libunistring version.
13215         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
13216
13217 2011-03-25  Bruno Haible  <bruno@clisp.org>
13218
13219         New module 'unictype/combining-class-all'.
13220         * modules/unictype/combining-class-all: New file.
13221
13222         Tests for module 'unictype/combining-class-byname'.
13223         * modules/unictype/combining-class-byname-tests: New file.
13224         * tests/unictype/test-combiningclass_byname.c: New file.
13225
13226         New module 'unictype/combining-class-byname'.
13227         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
13228         * lib/unictype/combiningclass_byname.c: New file.
13229         * lib/unictype/combiningclass_byname.gperf: New file.
13230         * modules/unictype/combining-class-byname: New file.
13231
13232         Tests for module 'unictype/combining-class-longname'.
13233         * modules/unictype/combining-class-longname-tests: New file.
13234         * tests/unictype/test-combiningclass_longname.c: New file.
13235
13236         New module 'unictype/combining-class-longname'.
13237         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
13238         * lib/unictype/combiningclass_longname.c: New file.
13239         * modules/unictype/combining-class-longname: New file.
13240
13241         Tests for module 'unictype/combining-class-name'.
13242         * modules/unictype/combining-class-name-tests: New file.
13243         * tests/unictype/test-combiningclass_name.c: New file.
13244
13245         New module 'unictype/combining-class-name'.
13246         * lib/unictype.in.h (uc_combining_class_name): New declaration.
13247         * lib/unictype/combiningclass_name.c: New file.
13248         * modules/unictype/combining-class-name: New file.
13249
13250 2011-03-25  Bruno Haible  <bruno@clisp.org>
13251
13252         unictype/combining-class: Rename source files.
13253         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
13254         of unictype/combining.h.
13255         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
13256         Update.
13257         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
13258         * modules/unictype/combining-class (Description): Fix.
13259         (Files, Makefile.am): Update.
13260         * tests/unictype/test-combiningclass.c: Renamed from
13261         tests/unictype/test-combining.c.
13262         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
13263
13264 2011-03-25  Bruno Haible  <bruno@clisp.org>
13265
13266         unictype: Update list of canonical combining classes.
13267         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
13268
13269 2011-03-25  Bruno Haible  <bruno@clisp.org>
13270
13271         unictype/category-byname: Recognize long names as well.
13272         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
13273         a long name.
13274         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
13275         unictype/categ_byname.h.
13276         (UC_CATEGORY_INDEX_*): New enumeration values.
13277         (uc_general_category_byname): Use uc_general_category_lookup and
13278         convert from index to value.
13279         * lib/unictype/categ_byname.gperf: New file.
13280         * modules/unictype/category-byname (Files): Add
13281         lib/unictype/categ_byname.gperf.
13282         (Depends-on): Add gperf.
13283         (Makefile.am): Add rule for generating unictype/categ_byname.h.
13284         * tests/unictype/test-categ_byname.c (main): Test the recognition of
13285         long names.
13286
13287         Tests for module 'unictype/category-longname'.
13288         * modules/unictype/category-longname-tests: New file.
13289         * tests/unictype/test-categ_longname.c: New file.
13290
13291         New module 'unictype/category-longname'.
13292         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
13293         * lib/unictype/categ_longname.c: New file.
13294         * modules/unictype/category-longname: New file.
13295         * modules/unictype/category-all (Depends-on): Add it.
13296
13297 2011-03-25  Bruno Haible  <bruno@clisp.org>
13298
13299         Tests for module 'unictype/category-LC'.
13300         * modules/unictype/category-LC-tests: New file.
13301         * tests/unictype/test-categ_LC.c: New file, automatically generated.
13302
13303         New module 'unictype/category-LC'.
13304         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
13305         (UC_CATEGORY_LC): New declaration.
13306         (UC_CASED_LETTER): New macro.
13307         * lib/gen-uni-tables.c (is_category_LC): New function.
13308         (output_categories): Also handle category LC.
13309         (UC_CATEGORY_MASK_LC): New enumeration value.
13310         (general_category_byname): Also handle category LC.
13311         * lib/unictype/categ_LC.c: New file.
13312         * lib/unictype/categ_LC.h: New file, automatically generated.
13313         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
13314         category LC.
13315         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
13316         * modules/unictype/category-LC: New file.
13317         * modules/unictype/category-byname (Depends-on): Add
13318         unictype/category-LC.
13319         * modules/unictype/category-all (Depends-on): Likewise.
13320
13321 2011-03-25  Eric Blake  <eblake@redhat.com>
13322
13323         xmalloc: revert yesterday's regression
13324         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
13325         realloc's underlying behavior (allowing allocation of zero-size
13326         objects, especially if malloc-gnu is also in use).
13327
13328 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
13329
13330         maint.mk: add missing version to VC-tag
13331         * top/maint.mk: git tag was missing actual tag name; add it.
13332
13333         valgrind: do leak checking, and exit with code 1 on error (not 0)
13334         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
13335         to VALGRIND.
13336
13337 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
13338
13339         posix-modules: say what it does.
13340         * posix-modules: Add a line to the --help output saying what it does.
13341
13342 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
13343
13344         xmalloc: Do not leak if underlying realloc is C99 compatible.
13345         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
13346         This avoids a leak on C99-based systems.  See
13347         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
13348
13349 2011-03-24  Eric Blake  <eblake@redhat.com>
13350
13351         realloc: document portability problem
13352         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
13353         passing 0 size to realloc.
13354
13355 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
13356
13357         doc: update users.txt
13358         * users.txt: Add cvsps, tmpwatch
13359
13360 2011-03-23  Matt Rice  <ratmice@gmail.com>
13361
13362         doc: update users.txt
13363         * users.txt: Add gdb.
13364
13365 2011-03-23  Jim Meyering  <meyering@redhat.com>
13366
13367         doc: update users.txt
13368         Looking through matches up to the following URL (there are still
13369         several more pages), I found several projects that use gnulib:
13370         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
13371         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
13372         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
13373
13374 2011-03-22  Bruno Haible  <bruno@clisp.org>
13375
13376         unictype/bidi*: Rename functions.
13377         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
13378         uc_bidi_class, uc_is_bidi_class): New declarations.
13379         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
13380         uc_bidi_category_byname.
13381         (uc_bidi_category_byname): New function.
13382         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
13383         u_bidi_category_name.
13384         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
13385         (uc_bidi_category_name): New function.
13386         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
13387         uc_bidi_category.
13388         (uc_bidi_category): New function.
13389         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
13390         uc_is_bidi_category. Invoke uc_bidi_class.
13391         (uc_is_bidi_category): New function.
13392         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
13393         instead of uc_bidi_category_byname.
13394         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
13395         instead of uc_bidi_category_name.
13396         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
13397         uc_bidi_category.
13398         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
13399         instead of uc_is_bidi_category.
13400
13401 2011-03-21  Bruno Haible  <bruno@clisp.org>
13402
13403         New module 'unictype/joininggroup-all'.
13404         * modules/unictype/joininggroup-all: New file.
13405
13406         Tests for module 'unictype/joininggroup-of'.
13407         * modules/unictype/joininggroup-of-tests: New file.
13408         * tests/unictype/test-joininggroup_of.c: New file.
13409         * tests/unictype/test-joininggroup_of.h: New file, automatically
13410         generated by gen-uni-tables.
13411
13412         New module 'unictype/joininggroup-of'.
13413         * modules/unictype/joininggroup-of: New file.
13414         * lib/unictype/joininggroup_of.c: New file.
13415         * lib/unictype/joininggroup_of.h: New file, automatically generated by
13416         gen-uni-tables.
13417
13418         Tests for module 'unictype/joininggroup-byname'.
13419         * modules/unictype/joininggroup-byname-tests: New file.
13420         * tests/unictype/test-joininggroup_byname.c: New file.
13421
13422         New module 'unictype/joininggroup-byname'.
13423         * modules/unictype/joininggroup-byname: New file.
13424         * lib/unictype/joininggroup_byname.c: New file.
13425         * lib/unictype/joininggroup_byname.gperf: New file.
13426
13427         Tests for module 'unictype/joininggroup-name'.
13428         * modules/unictype/joininggroup-name-tests: New file.
13429         * tests/unictype/test-joininggroup_name.c: New file.
13430
13431         New module 'unictype/joininggroup-name'.
13432         * modules/unictype/joininggroup-name: New file.
13433         * lib/unictype/joininggroup_name.c: New file.
13434         * lib/unictype/joininggroup_name.h: New file.
13435
13436         New module 'unictype/joiningtype-all'.
13437         * modules/unictype/joiningtype-all: New file.
13438
13439         Tests for module 'unictype/joiningtype-of'.
13440         * modules/unictype/joiningtype-of-tests: New file.
13441         * tests/unictype/test-joiningtype_of.c: New file.
13442         * tests/unictype/test-joiningtype_of.h: New file, automatically
13443         generated by gen-uni-tables.
13444
13445         New module 'unictype/joiningtype-of'.
13446         * modules/unictype/joiningtype-of: New file.
13447         * lib/unictype/joiningtype_of.c: New file.
13448         * lib/unictype/joiningtype_of.h: New file, automatically generated by
13449         gen-uni-tables.
13450
13451         Tests for module 'unictype/joiningtype-byname'.
13452         * modules/unictype/joiningtype-byname-tests: New file.
13453         * tests/unictype/test-joiningtype_byname.c: New file.
13454
13455         New module 'unictype/joiningtype-byname'.
13456         * modules/unictype/joiningtype-byname: New file.
13457         * lib/unictype/joiningtype_byname.c: New file.
13458
13459         Tests for module 'unictype/joiningtype-name'.
13460         * modules/unictype/joiningtype-name-tests: New file.
13461         * tests/unictype/test-joiningtype_name.c: New file.
13462
13463         New module 'unictype/joiningtype-name'.
13464         * modules/unictype/joiningtype-name: New file.
13465         * lib/unictype/joiningtype_name.c: New file.
13466
13467         unictype: Add support for Arabic shaping properties.
13468         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
13469         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
13470         declarations.
13471         (UC_JOINING_GROUP_*): New enumeration values.
13472         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
13473         declarations.
13474         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
13475         (unicode_joining_type): New variable.
13476         (UC_JOINING_GROUP_*): New enumeration values.
13477         (unicode_joining_group): New variable.
13478         (fill_arabicshaping, joining_type_as_c_identifier,
13479         output_joining_type_test, output_joining_type,
13480         joining_group_as_c_identifier, output_joining_group_test,
13481         output_joining_group): New functions.
13482         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
13483         fill_arabicshaping and output_joining_type_test, output_joining_type,
13484         output_joining_group_test, output_joining_group.
13485         Reported by Simon Josefsson.
13486
13487 2011-03-21  Jim Meyering  <meyering@redhat.com>
13488
13489         strftime: fix a bug in yesterday's change
13490         * lib/strftime.c (add): Accommodate width's initial value of -1.
13491         Otherwise, nstrftime would copy uninitialized data into
13492         the result buffer.
13493
13494 2011-03-21  Jim Meyering  <meyering@redhat.com>
13495
13496         tests: add strftime-tests module
13497         * tests/test-strftime.c: New file.
13498         * modules/strftime-tests: New module.
13499
13500 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13501
13502         strftime: don't assume a byte count fits in 'int'
13503         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
13504         found this problem by static analysis, using gcc -Wstrict-overflow
13505         (GCC 4.5.2, x86-64).  This reported an optimization that depended
13506         on an integer overflow having undefined behavior, but it turns out
13507         that the argument is a size, which might not fit in 'int' anyway,
13508
13509 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13510
13511         stdio: don't require ignore_value around fwrite
13512
13513         This patch works around libc bug 11959
13514         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
13515         Without this patch, applications must often write
13516         ignore_value (fwrite (...)) even though the ignore_value is
13517         not helpful here.  It's common to write many objects, using
13518         fwrite/printf/etc., and then use ferror to detect output error.
13519
13520         I considered making this patch optional, but decided against it,
13521         because libc is obviously being inconsistent here: there is no
13522         reason libc should insist that user code must inspect fwrite
13523         return's value without also insisting that it inspect printf's,
13524         putchar's, etc.  If user code wants to have a strict style where
13525         all these functions' values are checked (so that ferror need not
13526         be checked), we could add support for that style in a new gnulib
13527         module, but in the meantime it's better to be consistent and to
13528         support common usage.
13529
13530         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
13531         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
13532         that we are compiling in checking mode, and if not C++, and
13533         if not already wrapping fwrite for some other reason.
13534         (fwrite): #define to rpl_fwrite if the latter is defined.
13535
13536 2011-03-20  Bruno Haible  <bruno@clisp.org>
13537
13538         verror: Fix compilation error introduced on 2011-02-13.
13539         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
13540         instead of __attribute__.
13541         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13542
13543 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
13544             Bruno Haible  <bruno@clisp.org>
13545
13546         socklen: do not depend on sys_socket
13547         While trying to modify Emacs to use gnulib's socklen module,
13548         I discovered a circular dependency: socklen depends on sys_socket
13549         and vice versa.  Emacs can use socklen, but it does not need
13550         sys_socket because it has its own substitute for sys/socket.h.
13551         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
13552         gl_TYPE_SOCKLEN_T.
13553         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
13554         gl_PREREQ_SYS_H_SOCKET.
13555         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
13556         gl_PREREQ_SYS_H_SOCKET.
13557         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
13558         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
13559         * modules/socklen (Depends-on): Do not depend on sys_socket.
13560         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
13561
13562 2011-03-20  Jim Meyering  <meyering@redhat.com>
13563
13564         maint.mk: sort file names *after* new transformation
13565         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
13566         prefix would have led to an unwarranted failure in GNU parted.
13567         Sort after that transformation.
13568
13569 2011-03-19  Jim Meyering  <meyering@redhat.com>
13570
13571         maint.mk: fix po-file syntax-check rule
13572         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
13573         Patch by Bruno Haible.
13574
13575 2011-03-19  Bruno Haible  <bruno@clisp.org>
13576
13577         socklen: Update comment.
13578         * m4/socklen.m4: Update comment about platforms.
13579
13580 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13581             Bruno Haible  <bruno@clisp.org>
13582
13583         inet_ntop, inet_pton: Simplify.
13584         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
13585         documented to provide socklen_t and we already depend on sys_socket.
13586         * modules/inet_pton (Depends-on): Likewise.
13587         * lib/arpa_inet.in.h: Adjust comment.
13588
13589 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
13590             Bruno Haible  <bruno@clisp.org>
13591
13592         netdb: Simplify.
13593         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
13594         documented to provide socklen_t and we already depend on sys_socket.
13595         * lib/netdb.in.h: Adjust comment.
13596
13597 2011-03-19  Bruno Haible  <bruno@clisp.org>
13598
13599         sys_socket, netdb: Document problem with socklen_t.
13600         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
13601         platforms.
13602         * doc/posix-headers/netdb.texi: Likewise.
13603
13604 2011-03-18  Eric Blake  <eblake@redhat.com>
13605
13606         maint.mk: let po check work in VPATH build
13607         * top/maint.mk (po_file): Allow cfg.mk override.
13608         (sc_po_check): Allow VPATH use.
13609         Reported by Jiri Denemark.
13610
13611 2011-03-16  Jim Meyering  <meyering@redhat.com>
13612
13613         maint.mk: allow fine-grained syntax-check exclusion via Make variables
13614         Before, you would have had to create one .x-sc_ file per rule in order
13615         to exempt offending files.  Now, you may instead use a Make variable --
13616         usually defined in cfg.mk -- whose name identifies the affected rule.
13617         * top/maint.mk (_sc_excl): Define.
13618         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
13619         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
13620
13621 2011-03-13  Bruno Haible  <bruno@clisp.org>
13622
13623         ignore-value tests: Avoid warnings.
13624         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
13625         empty for gcc < 3.4.
13626
13627 2011-03-13  Bruno Haible  <bruno@clisp.org>
13628
13629         passfd: Fix link error on Solaris.
13630         * modules/passfd (Description): Correct.
13631         (Depends-on): Add socketlib.
13632         (Link): New section.
13633         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
13634
13635 2011-03-13  Bruno Haible  <bruno@clisp.org>
13636
13637         passfd: Fix link error on AIX 5.2.
13638         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
13639
13640 2011-03-13  Bruno Haible  <bruno@clisp.org>
13641
13642         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
13643         * lib/sys_socket.in.h: Include <stddef.h>.
13644         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
13645         CMSG_FIRSTHDR. Remove unused variable.
13646
13647 2011-03-13  Bruno Haible  <bruno@clisp.org>
13648
13649         passfd: Fix compilation error on OpenBSD.
13650         * lib/passfd.c: Include <sys/uio.h>.
13651
13652 2011-03-13  Bruno Haible  <bruno@clisp.org>
13653
13654         passfd test: Fix warnings.
13655         * tests/test-passfd.c: Include <sys/wait.h>.
13656         (main): Fix typo.
13657
13658 2011-03-13  Bruno Haible  <bruno@clisp.org>
13659
13660         passfd module, part 4, tweaks.
13661         * tests/test-passfd.c: Reorder includes.
13662         (main): Fix perror and printf calls.
13663
13664 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13665
13666         passfd module, part 4.
13667         * modules/passfd-tests: New file.
13668         * tests/test-passfd.c: New file.
13669
13670 2011-03-13  Jim Meyering  <meyering@redhat.com>
13671
13672         Makefile: rely on GNU make; derive syntax-check rule names
13673         Rather than requiring that each sc_ rule be listed as a dependent
13674         of "check", use features of GNU make to derive the list.
13675         * Makefile (syntax-check-rules): Define.
13676         (check): Depend on the new variable, not the hard-coded list.
13677
13678 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
13679             Bruno Haible  <bruno@clisp.org>
13680
13681         passfd module, part 3.
13682         * lib/passfd.h (recvfd): Add a flags argument.
13683         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
13684         (recvfd): Add a flags argument.
13685         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
13686         exists.
13687         * modules/passfd (Depends-on): Add cloexec.
13688         Suggested by Eric Blake.
13689
13690 2011-03-13  Bruno Haible  <bruno@clisp.org>
13691
13692         passfd module, part 2, tweaks.
13693         * modules/passfd (Files): Reorder.
13694         (Depends-on): Remove errno.
13695         (Include): Remove <sys/socket.h>, <sys/un.h>.
13696         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
13697         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
13698         specification header. Include <sys/socket.h> always. Don't include
13699         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
13700         (sendfd): Clarify that it sets errno when it fails.
13701         (recvfd): Fix specification.
13702
13703 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13704
13705         passfd module, part 2.
13706         * modules/passfd: New file.
13707         * lib/passfd.h: New file.
13708         * lib/passfd.c: New file.
13709
13710 2011-03-12  Bruno Haible  <bruno@clisp.org>
13711
13712         wcswidth, mbswidth: Avoid integer overflow.
13713         * lib/wcswidth.c: Include <limits.h>.
13714         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
13715         * lib/mbswidth.c: Include <limits.h>.
13716         (mbsnwidth): Avoid 'int' overflow.
13717         Reported by Jim Meyering.
13718
13719 2011-03-12  Bruno Haible  <bruno@clisp.org>
13720
13721         futimens, utimensat: Avoid endless recursion on Solaris 10.
13722         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
13723         Solaris.
13724         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
13725         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
13726
13727 2011-03-11  Jim Meyering  <meyering@redhat.com>
13728
13729         maint.mk: relax a regexp to accommodate other formatting styles
13730         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
13731         between "ngettext" and the following "(".
13732
13733 2011-03-11  Pádraig Brady <P@draigBrady.com>
13734
13735         maint.mk: suppress a false positive warning
13736         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
13737         diagnostics are marked with ngettext.
13738
13739 2011-03-10  Eric Blake  <eblake@redhat.com>
13740
13741         wchar: add explicit dependencies, for Tru64
13742         * modules/mbmemcasecoll (Depends-on): Add wchar.
13743         * modules/mbtowc (Depends-on): Likewise.
13744         * modules/vasnprintf (Depends-on): Likewise.
13745         * modules/unistdio/u-printf-args (Depends-on): Likewise.
13746         * modules/wctomb (Depends-on): Likewise.
13747         Reported by Peter O'Gorman.
13748
13749 2011-03-08  Bruno Haible  <bruno@clisp.org>
13750
13751         passfd module, part 1, tweaks.
13752         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
13753         Improve indentation. Improve AC_MSG_CHECKING messages.
13754         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
13755         gl_SOCKET_FAMILIES.
13756
13757 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
13758
13759         passfd module, part 1.
13760         * m4/afunix.m4: New file.
13761         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
13762         sockets.
13763
13764 2011-03-08  Bruno Haible  <bruno@clisp.org>
13765
13766         regex-quote: New API.
13767         * lib/regex-quote.h: Include <stdbool.h>.
13768         (struct regex_quote_spec): New type.
13769         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13770         New declarations.
13771         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13772         'const struct regex_quote_spec *' argument.
13773         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
13774         (pcre_special): New constant.
13775         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
13776         New functions.
13777         (regex_quote_length, regex_quote_copy, regex_quote): Take a
13778         'const struct regex_quote_spec *' argument.
13779         * modules/regex-quote (Depends-on): Add stdbool.
13780         * tests/test-regex-quote.c (check): Update for new API. Add test for
13781         anchored results.
13782         * NEWS: Mention the API change.
13783         Reported by Reuben Thomas and Eric Blake.
13784
13785 2011-03-06  Bruno Haible  <bruno@clisp.org>
13786
13787         regex-quote: Fix creation of POSIX extended regular expressions.
13788         * lib/regex-quote.c (ere_special): Add grouping and alternation
13789         operators.
13790
13791 2011-03-05  Bruno Haible  <bruno@clisp.org>
13792
13793         doc: Improve doc regarding autopoint vs. gnulib.
13794         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
13795         disable autopoint while running autoreconf.
13796         Suggested by Ralf Wildenhues.
13797
13798 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13799
13800         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
13801         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
13802
13803 2011-03-03  Bruce Korb  <bkorb@gnu.org>
13804
13805         parse-duration: remove xalloc.h dependency
13806         * lib/parse-duration.c (parse_period): handle NULL return from
13807         strdup instead of calling xstrdup().
13808         * modules/parse-duration: remove "xalloc" dependency
13809
13810 2011-03-03  Matthew Booth  <mbooth@redhat.com>
13811
13812         bootstrap: honor m4_base when running aclocal
13813         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
13814
13815 2011-03-02  Jim Meyering  <meyering@redhat.com>
13816
13817         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
13818         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
13819         on request from Matt Booth.
13820
13821 2011-03-01  Eric Blake  <eblake@redhat.com>
13822
13823         test-link: work on Hurd
13824         * tests/test-link.h (test_link): Hurd rejects linking directories
13825         with EISDIR instead of the POSIX-mandated EPERM.
13826
13827 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
13828
13829         stdio: simplify by moving files to printf-posix, sigpipe
13830         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
13831         since this symbol is needed only if printf is replaced.
13832         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
13833         Require gl_ASM_SYMBOL_PREFIX.
13834         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
13835         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
13836         (Depends-on): Add 'raise'.
13837         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
13838         * modules/stdio (Files): Remove lib/stdio-write.c,
13839         m4/asm-underscore.m4.
13840         (Depends-on): Remove 'raise'.
13841
13842         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
13843         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
13844         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
13845         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
13846
13847 2011-02-28  Bruno Haible  <bruno@clisp.org>
13848
13849         localcharset: Assume ANSI C behaviour of free().
13850         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
13851         calling free().
13852         Suggested by Simon Josefsson <simon@josefsson.org>.
13853
13854 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
13855             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
13856             Bruno Haible  <bruno@clisp.org>  (tiny change)
13857
13858         On Cygwin, use /proc file system instead of win32 API.
13859         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
13860         Win32 file names.
13861         (DllMain): Simplify by removing Cygwin specific code.
13862         (find_shared_library_fullname): Use Linux specific implementation also
13863         for Cygwin.
13864         (get_shared_library_fullname): Update accordingly.
13865         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
13866         Win32 file names.
13867         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
13868         Cygwin specific code.
13869
13870 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
13871             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
13872
13873         Fix OpenMP flag detection for various Fortran compilers.
13874         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
13875         OpenMP-conditional compilation construct, to force compile
13876         failure with missing OpenMP flag.
13877         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
13878
13879 2011-02-25  Eric Blake  <eblake@redhat.com>
13880
13881         strstr: expand test coverage
13882         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
13883         compilation.
13884         * tests/test-memmem.c (main): Duplicate tests.
13885         * tests/test-strcasestr.c (main): Likewise.
13886         * tests/test-c-strcasestr.c (main): Likewise.
13887
13888 2011-02-25  Jim Meyering  <meyering@redhat.com>
13889
13890         maint.mk: detect missing-NL-at-EOF, too
13891         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
13892         it also detects when a file lacks a newline at EOF.
13893         (require_exactly_one_NL_at_EOF_): Renamed from
13894         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
13895         since people may well have .x-sc_... file names tied to the
13896         existing name.  Suggested by Eric Blake.
13897
13898 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
13899
13900         dirname: move m4/dos.m4 functionality into lib/dosname.h
13901
13902         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
13903         extracts symbols from it, puts them into config.h; but it's much
13904         easier to use the symbols directly.  filename.h already does this,
13905         but it disagrees with dos.m4 in some respects.  This patch
13906         introduces a different include file dosname.h that packages up
13907         dos.m4, and then later we can work on merging filename.h and
13908         dosname.h.  Applications that need only the easy-to-configure
13909         symbols should consider including dosname.h rather than dirname.h.
13910         * NEWS: Mention incompatible changes.
13911         * m4/dos.m4: Remove.
13912         * lib/dosname.h, modules/dosname: New files.
13913         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
13914         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
13915         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
13916         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
13917         Include dosname.h, not dirname.h.
13918         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
13919         Include dosname.h, for definitions of symbols like ISSLASH
13920         that used to be in config.h.
13921         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
13922         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
13923         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13924         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13925         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
13926         * modules/rmdir (Files): Likewise.
13927         * modules/stat (Files): Likewise.
13928         * modules/unlink (Files): Likewise.
13929         * modules/dirname-lgpl (Depends-on): Add dosname.
13930         * modules/lstat (Depends-on): Likewise.
13931         * modules/openat (Depends-on): Likewise.
13932         * modules/rmdir (Depends-on): Likewise.
13933         * modules/savewd (Depends-on): Likewise.
13934         * modules/stat (Depends-on): Likewise.
13935         * modules/unlink (Depends-on): Likewise.
13936         * modules/openat (Depends-on): Remove dirname-lgpl.
13937         * modules/savewd (Depends-on): Likewise.
13938         * tests/test-dirname.c: Do not use removed symbols like
13939         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
13940         the remaining symbols, e.g., ISSLASH ('\\').
13941
13942 2011-02-25  Eric Blake  <eblake@redhat.com>
13943
13944         strstr: revert patches that introduced bug and pessimization
13945         * lib/str-two-way.h: Add another reference.
13946         (two_way_short_needle, two_way_long_needle): Revert changes from
13947         2011-02-24; they pessimize search speed.
13948         (critical_factorization): Partially revert changes from
13949         2010-06-22; they violate the requirement that the left half of the
13950         needle be smaller than the period of the needle.
13951
13952 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
13953
13954         filenamecat: remove unnecessary dependency on dirname-lgpl
13955         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
13956         is no direct dependency, just an indirect one via filenamecat-lgpl.
13957
13958         remove: remove unnecessary use of m4/dos.m4
13959         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
13960         * modules/remove (FILES): Remove m4/dos.m4.
13961
13962         * lib/openat-proc.c: Don't include dirname.h; not needed.
13963
13964         backupfile: remove unnecessary use of m4/dos.m4
13965         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
13966         of its symbols are used by the backupfile code.  backupfile.c does
13967         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
13968         for the rare case of programs that want all their backup file
13969         names to live within 8+3 limits, and dos.m4 doesn't address that.
13970         * modules/backupfile (Files): Remove m4/dos.m4.
13971
13972 2011-02-24  Jim Meyering  <meyering@redhat.com>
13973
13974         strstr: fix a bug whereby strstr would mistakenly return NULL
13975         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
13976         in period calculation.
13977         (two_way_long_needle): Likewise.
13978         The original problem was reported by Mike Stump in
13979         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
13980         Ralf Wildenhues provided the short needle and haystack.
13981         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
13982         Add a more involved test to trigger the bug in two_way_long_needle.
13983
13984 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
13985
13986         gnulib-tool: remove use of bold display in help screen
13987         * gnulib-tool (func_usage): Do not use bold display anymore in the
13988         help screen.  That was just meant to be a temporary emphasis for a
13989         backward-incompatible change.
13990
13991 2011-02-23  Bruno Haible  <bruno@clisp.org>
13992
13993         Fix misindentation of preprocessor directives.
13994         * lib/argp-namefrob.h: Reindent preprocessor directives.
13995         * lib/getopt_int.h (struct _getopt_data): Likewise.
13996         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
13997         * lib/vasnprintf.c (decode_long_double): Likewise.
13998         * tests/test-argmatch.c: Insert blank lines, for clarity.
13999         * tests/test-exclude.c: Likewise.
14000
14001 2011-02-22  Bruno Haible  <bruno@clisp.org>
14002
14003         ioctl: Fix for MacOS X in 64-bit mode.
14004         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
14005         value.
14006         Suggested by Eric Blake.
14007         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
14008
14009 2011-02-22  Jim Meyering  <meyering@redhat.com>
14010
14011         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
14012         * Makefile (sc_cpp_indent_check): Don't limit the check to files
14013         in lib/.
14014
14015 2011-02-22  Eric Blake  <eblake@redhat.com>
14016
14017         maint: avoid any CDPATH issue
14018         * Makefile (sc_cpp_indent_check): Anchor cd argument.
14019
14020         maint: adjust cpp indentation for my modules, as well
14021         * Makefile (sc_cpp_indent_check): Add my name.
14022         * lib/fbufmode.c: Filter through cppi.
14023         * lib/fpurge.c: Likewise.
14024         * lib/freadable.c: Likewise.
14025         * lib/freading.c: Likewise.
14026         * lib/fwritable.c: Likewise.
14027         * lib/fwriting.c: Likewise.
14028         * lib/sigaction.c: Likewise.
14029
14030 2011-02-22  Jim Meyering  <meyering@redhat.com>
14031
14032         maint: adjust cpp indentation to reflect nesting depth
14033         I.e., in a block of code that begins with an unnested "#if",
14034         put one space between the "#" in column 1 and following token.
14035         For example,
14036         -#include <sys/vfs.h>
14037         +# include <sys/vfs.h>
14038         Do this only in .c files that are part of a module I maintain.
14039         * lib/linkat.c: Filter through cppi.
14040         * lib/nanosleep.c: Likewise.
14041         * lib/openat.c: Likewise.
14042         * lib/openat-die.c: Likewise.
14043         * lib/dup3.c: Likewise.
14044         * lib/fchownat.c: Likewise.
14045         * lib/flock.c: Likewise.
14046         * lib/fsync.c: Likewise.
14047         * lib/fts.c: Likewise.
14048         * lib/getpass.c: Likewise.
14049         * lib/gettimeofday.c: Likewise.
14050         * lib/userspec.c: Likewise.
14051         * Makefile (sc_cpp_indent_check): New rule, to check this.
14052
14053 2011-02-22  Bruno Haible  <bruno@clisp.org>
14054
14055         New module 'wctomb'.
14056         * lib/stdlib.in.h (wctomb): New declaration.
14057         * lib/wctomb.c: New file.
14058         * lib/wctomb-impl.h: New file.
14059         * m4/wctomb.m4: New file.
14060         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
14061         REPLACE_WCTOMB.
14062         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
14063         REPLACE_WCTOMB.
14064         * modules/wctomb: New file.
14065         * tests/test-stdlib-c++.cc: Test signature of wctomb.
14066         * doc/posix-functions/wctomb.texi: Mention the new module.
14067         * modules/wctob (Depends-on): Add wctomb.
14068
14069 2011-02-22  Bruno Haible  <bruno@clisp.org>
14070
14071         New module 'mbtowc'.
14072         * lib/stdlib.in.h (mbtowc): New declaration.
14073         * lib/mbtowc.c: New file.
14074         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
14075         * m4/mbtowc.m4: New file.
14076         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
14077         REPLACE_MBTOWC.
14078         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
14079         REPLACE_MBTOWC.
14080         * modules/mbtowc: New file.
14081         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
14082         * doc/posix-functions/mbtowc.texi: Mention the new module.
14083         * modules/btowc (Depends-on): Add mbtowc.
14084
14085 2011-02-22  Bruno Haible  <bruno@clisp.org>
14086
14087         wcrtomb: Add more tests for native Windows platforms.
14088         * tests/test-wcrtomb-w32-1.sh: New file.
14089         * tests/test-wcrtomb-w32-2.sh: New file.
14090         * tests/test-wcrtomb-w32-3.sh: New file.
14091         * tests/test-wcrtomb-w32-4.sh: New file.
14092         * tests/test-wcrtomb-w32-5.sh: New file.
14093         * tests/test-wcrtomb-w32.c: New file.
14094         * modules/wcrtomb-tests (Files): Add them.
14095         (Makefile.am): Arrange to run these tests.
14096         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
14097         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
14098
14099 2011-02-20  Bruno Haible  <bruno@clisp.org>
14100
14101         wcrtomb: Enhance test.
14102         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
14103
14104 2011-02-20  Bruno Haible  <bruno@clisp.org>
14105
14106         mbrtowc: Tiny optimization.
14107         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
14108
14109 2011-02-20  Jim Meyering  <meyering@redhat.com>
14110
14111         test-exclude.c: remove unmatched #endif
14112         * tests/test-exclude.c: Remove stray #endif, left over from
14113         the change of a week ago.
14114
14115 2011-02-19  Jim Meyering  <meyering@redhat.com>
14116
14117         git-version-gen: skip "-dirty" check when appropriate
14118         * build-aux/git-version-gen: Don't run any git commands when the
14119         version string comes from .tarball-version.  Prior to this, we
14120         would run git update-index --refresh even from a just-unpacked
14121         tarball directory, and that could affect a .git/ directory in a
14122         parent of the build directory.  Reported by Mike Frysinger.
14123
14124 2011-02-19  Bruno Haible  <bruno@clisp.org>
14125
14126         unictype/property-byname: Reduce the size of the 'data' segment.
14127         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
14128
14129 2011-02-19  Bruno Haible  <bruno@clisp.org>
14130
14131         unictype/scripts: Reduce the size of the 'data' segment.
14132         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
14133         '%pic'.
14134         * lib/unictype/scripts_byname.gperf: Regenerated.
14135
14136 2011-02-19  Bruno Haible  <bruno@clisp.org>
14137
14138         stdint: Update documentation.
14139         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
14140
14141 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
14142
14143         stdint: omit redundant check for wchar.h
14144         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
14145         always tests whether wchar.h exists, so remove the now-redundant test.
14146
14147 2011-02-18  Bruno Haible  <bruno@clisp.org>
14148
14149         stdint: Cut dependency to module 'wchar'.
14150         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
14151         include the necessary prerequisites.
14152         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
14153         * modules/stdint (Depends-on): Remove wchar.
14154         (Makefile.am): Substitute HAVE_WCHAR_H.
14155         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
14156
14157 2011-02-18  Eric Blake  <eblake@redhat.com>
14158
14159         longlong: skip, rather than fail, on cross-compilation
14160         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
14161         when cross-compiling; regression from 2011-02-16.
14162
14163 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14164
14165         * NEWS: Mention 2011-02-08 change to stdlib.
14166
14167 2011-02-17  Bruno Haible  <bruno@clisp.org>
14168
14169         getloadavg: Add comments about platforms.
14170         * m4/getloadavg.m4: Add comment.
14171         * lib/getloadavg.c: Likewise.
14172
14173 2011-02-17  Bruno Haible  <bruno@clisp.org>
14174
14175         getloadavg: Fix link error on Solaris 2.6.
14176         * modules/getloadavg (Link): New section.
14177         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
14178         linking test-getloadavg.
14179         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
14180         getloadavg.
14181
14182 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
14183
14184         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
14185         It was 'int', but this doesn't match the IRIX 6.5 manual.
14186         Suggested by Bruno Haible in
14187         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
14188
14189 2011-02-17  Bruno Haible  <bruno@clisp.org>
14190
14191         havelib: Fix comments.
14192         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
14193         change.
14194
14195 2011-02-17  Bruno Haible  <bruno@clisp.org>
14196
14197         havelib: Update config.rpath.
14198         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
14199
14200 2011-02-17  Bruno Haible  <bruno@clisp.org>
14201
14202         getloadavg test: Add some plausibility checks.
14203         * tests/test-getloadavg.c (check_avg): Print a warning when the value
14204         is improbable.
14205
14206 2011-02-16  Eric Blake  <eblake@redhat.com>
14207
14208         maintainer-makefile: make syntax-check a no-op from tarballs
14209         * top/maint.mk (no-vc-detected): New rule.
14210         (local-checks-available): Use it to avoid hanging if someone tries
14211         'make syntax-check' from a tarball.  Also append to any non-syntax
14212         checks already defined in cfg.mk.
14213
14214 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
14215
14216         longlong: tune, particularly for common case of c99
14217
14218         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
14219         or running anything if c99, or if unsigned long long int does not
14220         work.  In either case, we know the answer without further tests.
14221         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
14222         it at most once, and use its results for both long long int and
14223         unsigned long long int.  This is more likely to be efficient in
14224         the common case where the program wants to check for both long
14225         long int and unsigned long long int.
14226         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
14227         since the answer is already known.
14228
14229 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
14230
14231         getloadavg: set errno
14232         * lib/getloadavg.c: Set errno when returning -1.  If no other
14233         error number looks appropriate, set it to ENOSYS if the getloadavg
14234         looks like it can't possibly ever work, ENOTSUP otherwise.
14235         Suggested by Bruno Haible in
14236         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
14237
14238         getloadavg: trim unused parts and speed up 'configure'
14239         * NEWS: Document this.
14240         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
14241         always compiled if getloadavg is absent.
14242         Move test code to ...
14243         * tests/test-getloadavg.c: New file, containing previous
14244         contents of test from lib/getloadavg.c.  It also contains
14245         suggestions by Bruno Haible in
14246         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
14247         * modules/getloadavg-tests: New file.
14248         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
14249         Do tests in the same order as they're needed for getloadavg.c.
14250         Omit setgid-related tests that generate symbols KMEM_GROUP,
14251         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
14252         Do only the tests that are needed to see whether the system has
14253         getloadavg, moving the other tests into ...
14254         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
14255         NLIST_NAME_UNION; nobody should be using it.  Do not define
14256         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
14257         relevant, as the user of this module shouldn't care how getloadavg
14258         is implemented.
14259
14260         getloadavg: omit unused var
14261         * lib/getloadavg.c (getloadavg): Omit unused local variable.
14262
14263 2011-02-15  Jim Meyering  <meyering@redhat.com>
14264
14265         doc: update users.txt
14266         * users.txt: Update iwhd's URL.
14267
14268 2011-02-13  Bruno Haible  <bruno@clisp.org>
14269
14270         Consistent macro naming for macros that use GCC __attribute__.
14271         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
14272         _ATTRIBUTE_NONNULL_.
14273         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
14274         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
14275         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
14276         ATTRIBUTE_DEPRECATED.
14277         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
14278         ATTRIBUTE_NORETURN.
14279         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14280         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14281         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14282         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
14283         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
14284         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
14285         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
14286         ATTRIBUTE_SENTINEL.
14287         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
14288         ATTRIBUTE_RETURN_CHECK.
14289         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
14290         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
14291         ATTRIBUTE_NORETURN.
14292         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
14293         Reported by Paul Eggert.
14294
14295 2011-02-13  Bruno Haible  <bruno@clisp.org>
14296
14297         Don't interfere with a program's definition of __attribute__.
14298         * lib/argp.h (__attribute__): Remove definition.
14299         (_GL_ATTRIBUTE_FORMAT): New macro.
14300         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
14301         * lib/argp-fmtstream.h (__attribute__): Remove definition.
14302         (_GL_ATTRIBUTE_FORMAT): New macro.
14303         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
14304         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
14305         GCC 3 or newer.
14306         * lib/error.h (__attribute__): Remove definition.
14307         (_GL_ATTRIBUTE_FORMAT): New macro.
14308         (error, error_at_line): Use it.
14309         * lib/hash.h (__attribute__): Remove definition.
14310         (ATTRIBUTE_WUR): Update definition. Define always.
14311         * lib/openat.h (__attribute__): Remove definition.
14312         (ATTRIBUTE_NORETURN): Update definition. Define always.
14313         * lib/sigpipe-die.h (__attribute__): Remove definition.
14314         (ATTRIBUTE_NORETURN): Update definition. Define always.
14315         * lib/vasnprintf.h (__attribute__): Remove definition.
14316         (_GL_ATTRIBUTE_FORMAT): New macro.
14317         (asnprintf, vasnprintf): Use it.
14318         * lib/xalloc.h (__attribute__): Remove definition.
14319         (ATTRIBUTE_NORETURN): Update definition. Define always.
14320         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
14321         * lib/xmemdup0.h (__attribute__): Remove definition.
14322         (ATTRIBUTE_NORETURN): Update definition. Define always.
14323         * lib/xprintf.h (__attribute__): Remove definition.
14324         (_GL_ATTRIBUTE_FORMAT): New macro.
14325         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
14326         * lib/xstrtol.h (__attribute__): Remove definition.
14327         (ATTRIBUTE_NORETURN): Update definition. Define always.
14328         * lib/xvasprintf.h (__attribute__): Remove definition.
14329         (_GL_ATTRIBUTE_FORMAT): New macro.
14330         (xasprintf, xvasprintf): Use it.
14331         * tests/test-argmatch.c (__attribute__): Remove definition.
14332         (ATTRIBUTE_NORETURN): Update definition. Define always.
14333         * tests/test-exclude.c (__attribute__): Remove definition.
14334         (ATTRIBUTE_NORETURN): Update definition. Define always.
14335         Reported by Paul Eggert.
14336
14337 2011-02-13  Bruno Haible  <bruno@clisp.org>
14338
14339         mbrtowc: Add more tests for native Windows platforms.
14340         * tests/test-mbrtowc-w32-1.sh: New file.
14341         * tests/test-mbrtowc-w32-2.sh: New file.
14342         * tests/test-mbrtowc-w32-3.sh: New file.
14343         * tests/test-mbrtowc-w32-4.sh: New file.
14344         * tests/test-mbrtowc-w32-5.sh: New file.
14345         * tests/test-mbrtowc-w32.c: New file.
14346         * modules/mbrtowc-tests (Files): Add them.
14347         (Makefile.am): Arrange to run these tests.
14348         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
14349         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
14350
14351 2011-02-13  Bruno Haible  <bruno@clisp.org>
14352
14353         mbrtowc: Work around native Windows bug.
14354         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
14355         guess when no suitable locale for testing was found.
14356         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
14357
14358 2011-02-13  Bruno Haible  <bruno@clisp.org>
14359
14360         mbsinit: Work around mingw bug.
14361         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
14362         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
14363         Windows.
14364         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
14365
14366 2011-02-13  Bruno Haible  <bruno@clisp.org>
14367
14368         mbsinit: Don't crash for a NULL argument.
14369         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
14370         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
14371
14372 2011-02-13  Bruno Haible  <bruno@clisp.org>
14373
14374         Don't interfere with a program's definition of __attribute__.
14375         * lib/stdio.in.h (__attribute__): Remove definition.
14376         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
14377         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
14378         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
14379         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
14380         * lib/string.in.h (__attribute__): Remove definition.
14381         Reported by Paul Eggert.
14382
14383 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14384
14385         stdlib: don't get in the way of non-GCC __attribute__
14386         See thread starting at
14387         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
14388         Revert previous stdlib change, installing the following instead:
14389         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
14390         to get in the way of a non-GCC compiler that supports __attribute__.
14391         (_GL_ATTRIBUTE_RETURN): New macro.
14392         (_Exit): Use it instead of __attribute__.
14393
14394 2011-02-12  Bruno Haible  <bruno@clisp.org>
14395
14396         quotearg test: Avoid test failure on mingw.
14397         * tests/test-quotearg.sh: Convert the locale identifier from native
14398         Windows syntax to Unix syntax.
14399
14400 2011-02-12  Bruno Haible  <bruno@clisp.org>
14401
14402         setlocale: Prefer gnulib's override over libintl's override.
14403         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
14404         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
14405         GNULIB_defined_setlocale is set.
14406
14407 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
14408
14409         stdlib: support non-GCC __attribute__
14410
14411         Fix a serious and tricky problem encountered when attempting to
14412         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
14413         5.5, but it crashed due to memory corruption on Solaris 10 with
14414         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
14415         bits that are otherwise zero.  This tagging is optional inside
14416         Emacs but is preferred and is used when __attribute__ ((__aligned
14417         (8))) works, as it does with both recent-enough GCC and with Sun C
14418         5.11.  However, Sun C 5.11 is not GCC and does not #define
14419         __GNUC__ and __GNUC_MINOR__.
14420
14421         When I added the getloadavg module to Emacs, it brought in
14422         stdlib.in.h, which contained this fragment:
14423
14424            #ifndef __attribute__
14425            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
14426            #  define __attribute__(Spec)   /* empty */
14427            # endif
14428            #endif
14429
14430         When files that include <stdlib.h> were compiled with Sun C 5.11,
14431         the above code disabled __attribute__ ((__aligned (8))), which
14432         caused variables to not be properly aligned, which eventually led
14433         to the pointer corruption mentioned above.  (This was a bit hard
14434         to diagnose, unfortunately.)
14435
14436         Several "#define __attribute__(X) /* empty */" code snippets need
14437         to be eradicated from Gnulib to work with non-GCC compilers that
14438         support __attribute__.  The Autoconf way to do this is to test for
14439         each kind of attribute that we want support for, and selectively
14440         enable that in source code.
14441
14442         Fix this problem just for stdlib.h, by adding a test for the
14443         __noreturn__ attribute, and change stdlib.in.h to use that test
14444         when needed.  This technique can be easily generalized to the
14445         other *.in.h files and attributes, and a similar technique can be
14446         used for *.h and *.c files.  This patch is enough to solve the
14447         problem for Emacs + getloadavg, and I thought I'd publish it for
14448         feedback before undertaking further, similar fixes in other
14449         modules.
14450
14451         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
14452         because it's not needed for stdlib.h.  It merely substitutes the
14453         value directly into stdlib.h.  We may well need to #define it, or
14454         similar symbols, for other modules, but it's nice to also have an
14455         option to not #define it for applications like Emacs that do not
14456         need it.
14457
14458         * lib/stdlib.in.h (__attribute__): Do not #define.
14459         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
14460         be defined only if the _Exit module is also used.
14461         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
14462         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
14463         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
14464         platforms.
14465         * modules/_Exit (Files): Add m4/attribute.m4.
14466         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
14467         * m4/attribute.m4: New file.
14468
14469 2011-02-12  Bruno Haible  <bruno@clisp.org>
14470
14471         wcsrtombs: Work around bug on native Windows.
14472         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
14473         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
14474         instead of len.
14475         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
14476
14477 2011-02-12  Bruno Haible  <bruno@clisp.org>
14478
14479         mbsrtowcs: Work around bug on native Windows.
14480         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
14481         against mingw bug.
14482         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
14483
14484 2011-02-12  Bruno Haible  <bruno@clisp.org>
14485
14486         Avoid setlocale bugs in tests.
14487         * modules/btowc (Dependencies): Add setlocale.
14488         * modules/c-strcase (Dependencies): Likewise.
14489         * modules/mbmemcasecmp (Dependencies): Likewise.
14490         * modules/mbmemcasecoll (Dependencies): Likewise.
14491         * modules/mbrtowc (Dependencies): Likewise.
14492         * modules/mbscasecmp (Dependencies): Likewise.
14493         * modules/mbscasestr (Dependencies): Likewise.
14494         * modules/mbschr (Dependencies): Likewise.
14495         * modules/mbscspn (Dependencies): Likewise.
14496         * modules/mbsinit (Dependencies): Likewise.
14497         * modules/mbsncasecmp (Dependencies): Likewise.
14498         * modules/mbsnrtowcs (Dependencies): Likewise.
14499         * modules/mbspbrk (Dependencies): Likewise.
14500         * modules/mbspcasecmp (Dependencies): Likewise.
14501         * modules/mbsrchr (Dependencies): Likewise.
14502         * modules/mbsrtowcs (Dependencies): Likewise.
14503         * modules/mbsspn (Dependencies): Likewise.
14504         * modules/mbsstr (Dependencies): Likewise.
14505         * modules/nl_langinfo (Dependencies): Likewise.
14506         * modules/quotearg (Dependencies): Likewise.
14507         * modules/unicase/locale-language (Dependencies): Likewise.
14508         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
14509         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
14510         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
14511         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
14512         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
14513         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
14514         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
14515         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
14516         * modules/vasnprintf-posix (Dependencies): Likewise.
14517         * modules/wcrtomb (Dependencies): Likewise.
14518         * modules/wcsnrtombs (Dependencies): Likewise.
14519         * modules/wcsrtombs (Dependencies): Likewise.
14520
14521 2011-02-12  Bruno Haible  <bruno@clisp.org>
14522
14523         setlocale: Workaround native Windows bug.
14524         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
14525         succeeds but sets LC_CTYPE to "C", report a failure.
14526         * tests/test-setlocale2.sh: New file.
14527         * tests/test-setlocale2.c: New file.
14528         * modules/setlocale-tests (Files): Add the new files.
14529         (Makefile.am): Enable test-setlocale2.sh test.
14530         * doc/posix-functions/setlocale.texi: Mention workaround.
14531
14532 2011-02-11  Bruno Haible  <bruno@clisp.org>
14533
14534         Tests for module 'setlocale'.
14535         * modules/setlocale-tests: New file.
14536         * tests/test-setlocale1.sh: New file.
14537         * tests/test-setlocale1.c: New file.
14538
14539         New module 'setlocale'.
14540         * lib/locale.in.h (setlocale): New declaration.
14541         * lib/setlocale.c: New file, based on
14542         gettext/gettext-runtime/intl/setlocale.c.
14543         * m4/setlocale.m4: New file.
14544         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
14545         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
14546         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
14547         REPLACE_SETLOCALE.
14548         * modules/setlocale: New file.
14549         * tests/test-locale-c++.cc: Test the declaration of setlocale.
14550         * doc/posix-functions/setlocale.texi: Mention the new module.
14551
14552 2011-02-11  Bruno Haible  <bruno@clisp.org>
14553
14554         Prepare for locale dependent tests on mingw.
14555         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
14556         because it has the wrong locale encoding.
14557         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
14558         French_France.1252 instead of "fr".
14559         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
14560         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
14561         because it has the wrong locale encoding.
14562         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
14563         native Windows, try Turkish_Turkey.65001.
14564         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
14565         Chinese_China.54936.
14566
14567         Prepare for locale dependent tests on mingw.
14568         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
14569         differently.
14570         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
14571         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
14572         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
14573         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14574
14575 2011-02-11  Eric Blake  <eblake@redhat.com>
14576
14577         strptime: avoid compiler warnings
14578         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
14579         compiler warnings about dead code.
14580         Reported by Daniel P. Berrange.
14581
14582 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
14583
14584         doc: update users.txt
14585         * users.txt: Add rcs.
14586
14587 2011-02-10  John W. Eaton  <jwe@gnu.org>
14588
14589         doc: update users.txt
14590         * users.txt: Add octave.
14591
14592 2011-02-10  Jim Meyering  <meyering@redhat.com>
14593
14594         doc: update users.txt
14595         * users.txt: Add iwhd.
14596
14597 2011-02-09  Bruno Haible  <bruno@clisp.org>
14598
14599         gnulib-tool: Make copyright notice adjustment more robust.
14600         * gnulib-tool (func_import): In sed_transform_main_lib_file,
14601         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
14602         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
14603         License".
14604         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
14605
14606 2011-02-06  Bruno Haible  <bruno@clisp.org>
14607
14608         New module 'towctrans'.
14609         * modules/towctrans: New file.
14610         * lib/wctype.in.h (towctrans): New declaration.
14611         * lib/towctrans.c: New file.
14612         * lib/towctrans-impl.h: New file.
14613         * m4/towctrans.m4: New file.
14614         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
14615         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
14616         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
14617         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
14618         * doc/posix-functions/towctrans.texi: Mention the new module.
14619
14620 2011-02-06  Bruno Haible  <bruno@clisp.org>
14621
14622         New module 'wctrans'.
14623         * modules/wctrans: New file.
14624         * lib/wctype.in.h (wctrans): New declaration.
14625         * lib/wctrans.c: New file.
14626         * lib/wctrans-impl.h: New file.
14627         * m4/wctrans.m4: New file.
14628         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
14629         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
14630         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
14631         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
14632         * doc/posix-functions/wctrans.texi: Mention the new module.
14633
14634 2011-02-06  Bruno Haible  <bruno@clisp.org>
14635
14636         New module 'iswctype'.
14637         * modules/iswctype: New file.
14638         * lib/wctype.in.h (iswctype): New declaration.
14639         * lib/iswctype.c: New file.
14640         * lib/iswctype-impl.h: New file.
14641         * m4/iswctype.m4: New file.
14642         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
14643         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
14644         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
14645         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
14646         * doc/posix-functions/iswctype.texi: Mention the new module and the
14647         HP-UX 11.00 problem.
14648
14649 2011-02-06  Bruno Haible  <bruno@clisp.org>
14650
14651         New module 'wctype'.
14652         * modules/wctype: Change to represent the wctype() substitute.
14653         * lib/wctype.in.h (wctype): New declaration.
14654         * lib/wctype.c: New file.
14655         * lib/wctype-impl.h: New file.
14656         * m4/wctype.m4: New file.
14657         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
14658         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
14659         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
14660         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
14661         * doc/posix-functions/wctype.texi: Mention the new module and the
14662         HP-UX 11.00 problem.
14663
14664 2011-02-06  Bruno Haible  <bruno@clisp.org>
14665
14666         wctype-h: Ensure wctype_t and wctrans_t are defined.
14667         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
14668         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14669         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
14670         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
14671         HAVE_WCTRANS_T.
14672         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
14673
14674 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
14675
14676         flock: fix license typo
14677
14678         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
14679         omitted.
14680
14681 2011-02-08  Bruno Haible  <bruno@clisp.org>
14682
14683         Split large sed scripts, for HP-UX sed.
14684         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
14685         to avoid HP-UX limit of 99 commands, in the near future.
14686         * modules/stdlib (Makefile.am): Likewise.
14687         * modules/unistd (Makefile.am): Likewise.
14688         * modules/wchar (Makefile.am): Likewise.
14689         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14690         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
14691         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
14692
14693 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14694             Bruno Haible  <bruno@clisp.org>
14695
14696         stdlib: improve random_r modularization
14697         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
14698         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
14699         you also need the random_r module to get this material right.
14700         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
14701         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
14702         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
14703
14704 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
14705
14706         stdlib: don't depend on stdint
14707         * lib/stdlib.in.h: Don't include <stdint.h> merely because
14708         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
14709         be independent of whether stdint.h is needed.
14710         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
14711         here, instead of ...
14712         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
14713         struct random_data should be using the random_r module, not just
14714         the stdlib module (which wouldn't make sense: what package needs
14715         just struct random_data without also needing random_r?).
14716         * modules/stdlib (Depends-on): Remove stdint.
14717
14718         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
14719         See the thread rooted at
14720         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
14721         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
14722         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
14723         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
14724         __VMS)); previously it was always included (via fcntl--.h).
14725         (getloadavg): Do not use c_strtod.  Instead, approximate it by
14726         hand; this is good enough for load averages.  Also, do not use
14727         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
14728         flags directly if available and don't bother otherwise.  (Packages
14729         that need the extra reliability should use the modules that define
14730         these flags on older platforms that lack them.)
14731         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
14732         fcntl-safer.
14733
14734 2011-02-08  Jim Meyering  <meyering@redhat.com>
14735
14736         di-set.h, ino-map.h: add multiple-inclusion guard
14737         Technically, the guard is required only for ino-map.h, due to its
14738         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
14739         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
14740         * lib/ino-map.h: Likewise.
14741
14742 2011-02-06  Bruno Haible  <bruno@clisp.org>
14743
14744         iswblank: Ensure declaration on glibc systems.
14745         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
14746         * modules/iswblank (Dependencies): Add 'extensions'.
14747         * doc/posix-functions/iswblank.texi: Document the glibc problem.
14748
14749 2011-02-06  Bruno Haible  <bruno@clisp.org>
14750
14751         New module 'iswblank'.
14752         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
14753         * modules/iswblank: New file.
14754         * modules/wctype-h (Files): Remove lib/iswblank.c.
14755         (Makefile.am): Substitute GNULIB_ISWBLANK.
14756         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
14757         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
14758         (gl_WCTYPE_H_DEFAULTS): New macro.
14759         (gl_WCTYPE_H): Require it. Remove iswblank related code.
14760         * modules/iswblank-tests: New file.
14761         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
14762         * tests/test-wctype-h.c (main): Remove iswblank tests.
14763         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
14764         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
14765         of 'wctype-h'.
14766         * NEWS: Mention the change.
14767         * modules/mbchar (Depends-on): Add iswblank.
14768
14769 2011-02-08  Bruno Haible  <bruno@clisp.org>
14770
14771         di-set tests: Refactor.
14772         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
14773         unnecessary includes.
14774         (ASSERT): Remove macro.
14775         (main): Make C90 compliant by avoiding variable declaration after
14776         statement.
14777         * modules/di-set-tests (Files): Add tests/macros.h.
14778
14779 2011-02-08  Bruno Haible  <bruno@clisp.org>
14780
14781         ino-map tests: Refactor.
14782         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
14783         unnecessary includes.
14784         (ASSERT): Remove macro.
14785         (main): Make C90 compliant by avoiding variable declaration after
14786         statement.
14787         * modules/ino-map-tests (Files): Add tests/macros.h.
14788
14789 2011-02-08  Jim Meyering  <meyering@redhat.com>
14790
14791         di-set: add "const" to a cast
14792         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
14793         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
14794
14795 2011-02-06  Bruno Haible  <bruno@clisp.org>
14796
14797         Rename module 'wctype' to 'wctype-h'.
14798         * modules/wctype-h: Renamed from modules/wctype.
14799         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
14800         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
14801         (Files, Depends-on, Makefile.am): Update.
14802         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
14803         (Files, Makefile.am): Update.
14804         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
14805         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
14806         * doc/posix-headers/wctype.texi: Update.
14807         * doc/posix-functions/iswalnum.texi: Update.
14808         * doc/posix-functions/iswalpha.texi: Update.
14809         * doc/posix-functions/iswblank.texi: Update.
14810         * doc/posix-functions/iswcntrl.texi: Update.
14811         * doc/posix-functions/iswdigit.texi: Update.
14812         * doc/posix-functions/iswgraph.texi: Update.
14813         * doc/posix-functions/iswlower.texi: Update.
14814         * doc/posix-functions/iswprint.texi: Update.
14815         * doc/posix-functions/iswpunct.texi: Update.
14816         * doc/posix-functions/iswspace.texi: Update.
14817         * doc/posix-functions/iswupper.texi: Update.
14818         * doc/posix-functions/iswxdigit.texi: Update.
14819         * doc/posix-functions/towlower.texi: Update.
14820         * doc/posix-functions/towupper.texi: Update.
14821         * NEWS: Mention the change.
14822         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
14823         * modules/mbchar (Dependencies): Likewise.
14824         * modules/mbswidth (Dependencies): Likewise.
14825         * modules/quotearg (Dependencies): Likewise.
14826         * modules/regex (Dependencies): Likewise.
14827         * modules/wcscasecmp (Dependencies): Likewise.
14828         * modules/wcsncasecmp (Dependencies): Likewise.
14829         * modules/wcwidth (Dependencies): Likewise.
14830
14831 2011-02-06  Bruno Haible  <bruno@clisp.org>
14832
14833         New module 'wcswidth'.
14834         * modules/wcswidth: New file.
14835         * lib/wchar.in.h (wcswidth): New declaration.
14836         * lib/wcswidth.c: New file.
14837         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
14838         * m4/wcswidth.m4: New file.
14839         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
14840         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
14841         REPLACE_WCSWIDTH.
14842         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
14843         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
14844         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
14845         * doc/posix-functions/wcswidth.texi: Mention the new module.
14846
14847 2011-02-06  Bruno Haible  <bruno@clisp.org>
14848
14849         New module 'wcstok'.
14850         * modules/wcstok: New file.
14851         * lib/wchar.in.h (wcstok): New declaration.
14852         * lib/wcstok.c: New file.
14853         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
14854         * m4/wcstok.m4: New file.
14855         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
14856         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
14857         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
14858         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
14859         * doc/posix-functions/wcstok.texi: Mention the new module.
14860
14861 2011-02-06  Bruno Haible  <bruno@clisp.org>
14862
14863         New module 'wcsstr'.
14864         * modules/wcsstr: New file.
14865         * lib/wchar.in.h (wcsstr): New declaration.
14866         * lib/wcsstr.c: New file.
14867         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
14868         * m4/wcsstr.m4: New file.
14869         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
14870         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
14871         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
14872         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
14873         * doc/posix-functions/wcsstr.texi: Mention the new module.
14874
14875 2011-02-06  Bruno Haible  <bruno@clisp.org>
14876
14877         New module 'wcspbrk'.
14878         * modules/wcspbrk: New file.
14879         * lib/wchar.in.h (wcspbrk): New declaration.
14880         * lib/wcspbrk.c: New file.
14881         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
14882         * m4/wcspbrk.m4: New file.
14883         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
14884         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
14885         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
14886         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
14887         * doc/posix-functions/wcspbrk.texi: Mention the new module.
14888
14889 2011-02-06  Bruno Haible  <bruno@clisp.org>
14890
14891         New module 'wcsspn'.
14892         * modules/wcsspn: New file.
14893         * lib/wchar.in.h (wcsspn): New declaration.
14894         * lib/wcsspn.c: New file.
14895         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
14896         * m4/wcsspn.m4: New file.
14897         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
14898         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
14899         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
14900         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
14901         * doc/posix-functions/wcsspn.texi: Mention the new module.
14902
14903 2011-02-06  Bruno Haible  <bruno@clisp.org>
14904
14905         New module 'wcscspn'.
14906         * modules/wcscspn: New file.
14907         * lib/wchar.in.h (wcscspn): New declaration.
14908         * lib/wcscspn.c: New file.
14909         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
14910         * m4/wcscspn.m4: New file.
14911         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
14912         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
14913         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
14914         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
14915         * doc/posix-functions/wcscspn.texi: Mention the new module.
14916
14917 2011-02-06  Bruno Haible  <bruno@clisp.org>
14918
14919         New module 'wcsrchr'.
14920         * modules/wcsrchr: New file.
14921         * lib/wchar.in.h (wcsrchr): New declaration.
14922         * lib/wcsrchr.c: New file.
14923         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
14924         * m4/wcsrchr.m4: New file.
14925         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
14926         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
14927         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
14928         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
14929         * doc/posix-functions/wcsrchr.texi: Mention the new module.
14930
14931 2011-02-06  Bruno Haible  <bruno@clisp.org>
14932
14933         New module 'wcschr'.
14934         * modules/wcschr: New file.
14935         * lib/wchar.in.h (wcschr): New declaration.
14936         * lib/wcschr.c: New file.
14937         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
14938         * m4/wcschr.m4: New file.
14939         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
14940         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
14941         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
14942         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
14943         * doc/posix-functions/wcschr.texi: Mention the new module.
14944
14945 2011-02-06  Bruno Haible  <bruno@clisp.org>
14946
14947         New module 'wcsdup'.
14948         * modules/wcsdup: New file.
14949         * lib/wchar.in.h (wcsdup): New declaration.
14950         * lib/wcsdup.c: New file.
14951         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
14952         * m4/wcsdup.m4: New file.
14953         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
14954         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
14955         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
14956         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
14957         * doc/posix-functions/wcsdup.texi: Mention the new module.
14958
14959 2011-02-06  Bruno Haible  <bruno@clisp.org>
14960
14961         New module 'wcsxfrm'.
14962         * modules/wcsxfrm: New file.
14963         * lib/wchar.in.h (wcsxfrm): New declaration.
14964         * lib/wcsxfrm.c: New file.
14965         * lib/wcsxfrm-impl.h: New file.
14966         * m4/wcsxfrm.m4: New file.
14967         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
14968         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
14969         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
14970         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
14971         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
14972
14973 2011-02-06  Bruno Haible  <bruno@clisp.org>
14974
14975         New module 'wcscoll'.
14976         * modules/wcscoll: New file.
14977         * lib/wchar.in.h (wcscoll): New declaration.
14978         * lib/wcscoll.c: New file.
14979         * lib/wcscoll-impl.h: New file.
14980         * m4/wcscoll.m4: New file.
14981         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
14982         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
14983         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
14984         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
14985         * doc/posix-functions/wcscoll.texi: Mention the new module.
14986
14987 2011-02-06  Bruno Haible  <bruno@clisp.org>
14988
14989         New module 'wcsncasecmp'.
14990         * modules/wcsncasecmp: New file.
14991         * lib/wchar.in.h (wcsncasecmp): New declaration.
14992         * lib/wcsncasecmp.c: New file.
14993         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
14994         * m4/wcsncasecmp.m4: New file.
14995         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
14996         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
14997         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
14998         HAVE_WCSNCASECMP.
14999         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
15000         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
15001
15002 2011-02-06  Bruno Haible  <bruno@clisp.org>
15003
15004         New module 'wcscasecmp'.
15005         * modules/wcscasecmp: New file.
15006         * lib/wchar.in.h (wcscasecmp): New declaration.
15007         * lib/wcscasecmp.c: New file.
15008         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
15009         * m4/wcscasecmp.m4: New file.
15010         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
15011         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
15012         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
15013         HAVE_WCSCASECMP.
15014         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
15015         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
15016
15017 2011-02-05  Bruno Haible  <bruno@clisp.org>
15018
15019         New module 'wcsncmp'.
15020         * modules/wcsncmp: New file.
15021         * lib/wchar.in.h (wcsncmp): New declaration.
15022         * lib/wcsncmp.c: New file.
15023         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
15024         * m4/wcsncmp.m4: New file.
15025         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
15026         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
15027         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
15028         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
15029         * doc/posix-functions/wcsncmp.texi: Mention the new module.
15030
15031 2011-02-05  Bruno Haible  <bruno@clisp.org>
15032
15033         New module 'wcscmp'.
15034         * modules/wcscmp: New file.
15035         * lib/wchar.in.h (wcscmp): New declaration.
15036         * lib/wcscmp.c: New file.
15037         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
15038         * m4/wcscmp.m4: New file.
15039         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
15040         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
15041         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
15042         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
15043         * doc/posix-functions/wcscmp.texi: Mention the new module.
15044
15045 2011-02-05  Bruno Haible  <bruno@clisp.org>
15046
15047         New module 'wcsncat'.
15048         * modules/wcsncat: New file.
15049         * lib/wchar.in.h (wcsncat): New declaration.
15050         * lib/wcsncat.c: New file.
15051         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
15052         * m4/wcsncat.m4: New file.
15053         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
15054         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
15055         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
15056         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
15057         * doc/posix-functions/wcsncat.texi: Mention the new module.
15058
15059 2011-02-05  Bruno Haible  <bruno@clisp.org>
15060
15061         New module 'wcscat'.
15062         * modules/wcscat: New file.
15063         * lib/wchar.in.h (wcscat): New declaration.
15064         * lib/wcscat.c: New file.
15065         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
15066         * m4/wcscat.m4: New file.
15067         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
15068         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
15069         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
15070         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
15071         * doc/posix-functions/wcscat.texi: Mention the new module.
15072
15073 2011-02-05  Bruno Haible  <bruno@clisp.org>
15074
15075         New module 'wcpncpy'.
15076         * modules/wcpncpy: New file.
15077         * lib/wchar.in.h (wcpncpy): New declaration.
15078         * lib/wcpncpy.c: New file.
15079         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
15080         * m4/wcpncpy.m4: New file.
15081         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
15082         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
15083         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
15084         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
15085         * doc/posix-functions/wcpncpy.texi: Mention the new module.
15086
15087 2011-02-05  Bruno Haible  <bruno@clisp.org>
15088
15089         New module 'wcsncpy'.
15090         * modules/wcsncpy: New file.
15091         * lib/wchar.in.h (wcsncpy): New declaration.
15092         * lib/wcsncpy.c: New file.
15093         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
15094         * m4/wcsncpy.m4: New file.
15095         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
15096         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
15097         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
15098         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
15099         * doc/posix-functions/wcsncpy.texi: Mention the new module.
15100
15101 2011-02-05  Bruno Haible  <bruno@clisp.org>
15102
15103         New module 'wcpcpy'.
15104         * modules/wcpcpy: New file.
15105         * lib/wchar.in.h (wcpcpy): New declaration.
15106         * lib/wcpcpy.c: New file.
15107         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
15108         * m4/wcpcpy.m4: New file.
15109         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
15110         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
15111         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
15112         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
15113         * doc/posix-functions/wcpcpy.texi: Mention the new module.
15114
15115 2011-02-05  Bruno Haible  <bruno@clisp.org>
15116
15117         New module 'wcscpy'.
15118         * modules/wcscpy: New file.
15119         * lib/wchar.in.h (wcscpy): New declaration.
15120         * lib/wcscpy.c: New file.
15121         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
15122         * m4/wcscpy.m4: New file.
15123         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
15124         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
15125         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
15126         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
15127         * doc/posix-functions/wcscpy.texi: Mention the new module.
15128
15129 2011-02-05  Bruno Haible  <bruno@clisp.org>
15130
15131         New module 'wcsnlen'.
15132         * modules/wcsnlen: New file.
15133         * lib/wchar.in.h (wcsnlen): New declaration.
15134         * lib/wcsnlen.c: New file.
15135         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
15136         * m4/wcsnlen.m4: New file.
15137         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
15138         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
15139         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
15140         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
15141         * doc/posix-functions/wcsnlen.texi: Mention the new module.
15142
15143 2011-02-05  Bruno Haible  <bruno@clisp.org>
15144
15145         New module 'wcslen'.
15146         * modules/wcslen: New file.
15147         * lib/wchar.in.h (wcslen): New declaration.
15148         * lib/wcslen.c: New file.
15149         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
15150         * m4/wcslen.m4: New file.
15151         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
15152         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
15153         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
15154         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
15155         * doc/posix-functions/wcslen.texi: Mention the new module.
15156
15157 2011-02-05  Bruno Haible  <bruno@clisp.org>
15158
15159         New module 'wmemset'.
15160         * modules/wmemset: New file.
15161         * lib/wchar.in.h (wmemset): New declaration.
15162         * lib/wmemset.c: New file.
15163         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
15164         * m4/wmemset.m4: New file.
15165         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
15166         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
15167         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
15168         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
15169         * doc/posix-functions/wmemset.texi: Mention the new module.
15170
15171 2011-02-05  Bruno Haible  <bruno@clisp.org>
15172
15173         New module 'wmemmove'.
15174         * modules/wmemmove: New file.
15175         * lib/wchar.in.h (wmemmove): New declaration.
15176         * lib/wmemmove.c: New file.
15177         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
15178         * m4/wmemmove.m4: New file.
15179         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
15180         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
15181         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
15182         HAVE_WMEMMOVE.
15183         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
15184         * doc/posix-functions/wmemmove.texi: Mention the new module.
15185
15186 2011-02-05  Bruno Haible  <bruno@clisp.org>
15187
15188         New module 'wmemcpy'.
15189         * modules/wmemcpy: New file.
15190         * lib/wchar.in.h (wmemcpy): New declaration.
15191         * lib/wmemcpy.c: New file.
15192         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
15193         * m4/wmemcpy.m4: New file.
15194         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
15195         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
15196         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
15197         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
15198         * doc/posix-functions/wmemcpy.texi: Mention the new module.
15199
15200 2011-02-05  Bruno Haible  <bruno@clisp.org>
15201
15202         New module 'wmemcmp'.
15203         * modules/wmemcmp: New file.
15204         * lib/wchar.in.h (wmemcmp): New declaration.
15205         * lib/wmemcmp.c: New file.
15206         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
15207         * m4/wmemcmp.m4: New file.
15208         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
15209         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
15210         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
15211         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
15212         * doc/posix-functions/wmemcmp.texi: Mention the new module.
15213
15214 2011-02-07  Jim Meyering  <meyering@redhat.com>
15215
15216         di-set, ino-map: new modules, from coreutils
15217         * lib/di-set.c: New file.
15218         * lib/di-set.h: Likewise.
15219         * lib/ino-map.c: Likewise.
15220         * lib/ino-map.h: Likewise.
15221         * modules/di-set: Likewise.
15222         * modules/di-set-tests: Likewise.
15223         * modules/ino-map: Likewise.
15224         * modules/ino-map-tests: Likewise.
15225         * tests/test-di-set.c: Likewise.
15226         * tests/test-ino-map.c: Likewise.
15227
15228 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
15229
15230         getloadavg: merge minor changes from Emacs
15231
15232         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
15233         (getloadavg): Use memset, not bzero.
15234
15235         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
15236         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
15237         clash (bug#86).
15238
15239 2010-11-14  Bruno Haible  <bruno@clisp.org>
15240
15241         Allow multiple gnulib generated replacements to coexist.
15242         * lib/getopt.in.h (struct option): Avoid identical redefinition.
15243         * lib/inttypes.in.h (imaxdiv_t): Likewise.
15244         * lib/langinfo.in.h (nl_item): Likewise.
15245         * lib/math.in.h (_NaN, NAN): Likewise.
15246         * lib/netdb.in.h (struct addrinfo): Likewise.
15247         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
15248         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
15249         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
15250         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
15251         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
15252         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
15253         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
15254         pthread_mutexattr_init, pthread_mutexattr_settype,
15255         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
15256         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
15257         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
15258         pthread_spin_trylock, pthread_spin_unlock): Likewise.
15259         * lib/sched.in.h (struct sched_param): Likewise.
15260         * lib/se-selinux.in.h (security_class_t, security_context_t,
15261         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
15262         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
15263         lsetfilecon, fsetfilecon, security_check_context,
15264         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
15265         Likewise.
15266         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
15267         Likewise.
15268         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
15269         _gl_function_taking_int_returning_void_t, union sigval,
15270         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
15271         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
15272         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15273         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
15274         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
15275         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
15276         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
15277         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
15278         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
15279         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
15280         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
15281         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
15282         socklen_t, rpl_fd_isset): Likewise.
15283         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
15284         * lib/sys_time.in.h (struct timeval): Likewise.
15285         * lib/sys_times.in.h (struct tms): Likewise.
15286         * lib/sys_utsname.in.h (struct utsname):
15287         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
15288         * lib/unistd.in.h (getpagesize): Likewise.
15289         * lib/wchar.in.h (mbstate_t): Likewise.
15290         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
15291         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
15292         towlower, towupper): Likewise.
15293         Reported by Sam Steingold <sds@gnu.org>.
15294
15295 2011-02-05  Eric Blake  <eblake@redhat.com>
15296
15297         unsetenv: work around Haiku issues
15298         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
15299         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
15300
15301 2010-12-30  Bruce Korb  <bkorb@gnu.org>
15302
15303         libposix: avoid calling error() within libposix
15304         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
15305         is defined.
15306
15307 2011-02-05  Eric Blake  <eblake@redhat.com>
15308
15309         strerror_r-posix: port to cygwin
15310         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
15311         implementation.
15312         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
15313         * tests/test-strerror_r.c (main): Fix test.
15314         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15315         issue.
15316
15317 2011-02-05  Bruno Haible  <bruno@clisp.org>
15318
15319         New module 'wmemchr'.
15320         * modules/wmemchr: New file.
15321         * lib/wchar.in.h (wmemchr): New declaration.
15322         * lib/wmemchr.c: New file.
15323         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
15324         * m4/wmemchr.m4: New file.
15325         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
15326         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
15327         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
15328         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
15329         * doc/posix-functions/wmemchr.texi: Mention the new module.
15330
15331 2011-02-04  Eric Blake  <eblake@redhat.com>
15332
15333         fdopendir: detect FreeBSD bug
15334         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
15335         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
15336
15337 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
15338
15339         stdbool: do not define HAVE_STDBOOL_H
15340         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
15341         AC_HEADER_STDBOOL.  All uses changed.  Do not define
15342         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
15343         imported from the latest Autoconf git.  It was motivated by Emacs,
15344         which uses gnulib but does not need HAVE_STDBOOL_H.
15345
15346 2011-02-04  Bruno Haible  <bruno@clisp.org>
15347
15348         wcsnrtombs: Prepare for new module wwcsnrtombs.
15349         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
15350         * lib/wcsnrtombs.c: Include it.
15351         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
15352
15353         wcsrtombs: Prepare for new module wwcsrtombs.
15354         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
15355         * lib/wcsrtombs.c: Include it.
15356         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
15357
15358         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
15359         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
15360         * lib/mbsnrtowcs.c: Include it.
15361         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
15362
15363         mbsrtowcs: Prepare for new module mbsrtowwcs.
15364         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
15365         * lib/mbsrtowcs.c: Include it.
15366         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
15367
15368 2011-02-04  Bruno Haible  <bruno@clisp.org>
15369
15370         vasnprintf: Reduce use of malloc for small format strings.
15371         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
15372         (arguments): Add room for the first 7 arguments.
15373         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
15374         (char_directives, u8_directives, u16_directives, u32_directives): Add
15375         room for the first 7 directives.
15376         * lib/printf-parse.c: Include <string.h>.
15377         (PRINTF_PARSE): Change memory handling code so that it uses the first
15378         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
15379         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
15380         Reported by Pádraig Brady <P@draigbrady.com>.
15381
15382 2011-01-31  Eric Blake  <eblake@redhat.com>
15383
15384         dup2: work around Haiku bug
15385         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
15386         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
15387         * doc/posix-functions/dup2.texi (dup2): Document the bug.
15388         * tests/test-dup2.c (main): Enhance test.
15389
15390 2011-01-31  Simon Josefsson  <simon@josefsson.org>
15391
15392         doc: off_t is not available in eglibc 2.11.2 stdio.h.
15393         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
15394         declared by eglibc 2.11.2.
15395         * lib/stdio.in.h: Likewise.
15396
15397 2011-01-31  Eric Blake  <eblake@redhat.com>
15398
15399         ignore-value: add missing test dependency
15400         * tests/test-ignore-value.c: Revert previous change; stdio.h
15401         provides off_t.
15402         * modules/ignore-value-tests (Depends-on): Add missing dependency.
15403
15404 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
15405
15406         mktime: clarify long_int width checking
15407         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
15408         the top level, to make it clearer that the assumption about
15409         long_int width is being checked.  See
15410         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
15411
15412 2011-01-30  Simon Josefsson  <simon@josefsson.org>
15413
15414         ignore-value: Fix self-test.
15415         * tests/test-ignore-value.c: Include sys/types.h for off_t.
15416
15417 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
15418
15419         TYPE_MAXIMUM: avoid theoretically undefined behavior
15420         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
15421         negative number, which the C Standard says has undefined behavior.
15422         In practice this is not a problem, but might as well do it by the book.
15423         Reported by Rich Felker and Eric Blake; see
15424         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
15425         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
15426         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
15427         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
15428         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
15429         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15430         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
15431
15432         mktime: #undef mktime before #defining it
15433         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
15434
15435         mktime: systematically normalize tm_isdst comparisons
15436         * lib/mktime.c (isdst_differ): New function.
15437         (__mktime_internal): Use it systematically for all isdst comparisons.
15438         This completes the fix for libc BZ #6723, and removes the need for
15439         normalizing tm_isdst.  See
15440         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
15441         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
15442
15443         mktime: fix some integer overflow issues and sidestep the rest
15444
15445         This was prompted by a bug report by Benjamin Lindner for MinGW
15446         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
15447         His bug is due to signed integer overflow (0 - INT_MIN), and I
15448         I scanned through mktime.c looking for other integer overflow
15449         problems, fixing all the bugs I found.
15450
15451         Although the C Standard says the resulting code is still not safe
15452         in the presence of integer overflow, in practice it should be good
15453         enough for all real-world two's-complement implementations, except
15454         for debugging environments that deliberately trap on integer
15455         overflow (e.g., gcc -ftrapv).
15456
15457         * lib/mktime.c (WRAPV): New macro.
15458         (SHR): Also check that long_int and time_t shift right in the
15459         usual way, before using the fast-but-unportable method.
15460         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
15461         used.  The code already assumed two's complement, so there's
15462         no need to test for alternatives.  All uses removed.
15463         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
15464         the C standard.  Problem reported by Rich Felker in
15465         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
15466         (twos_complement_arithmetic): Also check long_int and time_t.
15467         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
15468         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
15469         (__mktime_internal): Avoid integer overflow with unary subtraction
15470         in two instances where -1 - X is an adequate replacement for -X,
15471         since the calculations are approximate.
15472
15473 2011-01-29  Eric Blake  <eblake@redhat.com>
15474
15475         mktime: avoid infinite loop
15476         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
15477         type; behavior is still undefined but portable to all known targets.
15478         Reported by Rich Felker.
15479
15480 2011-01-29  Simon Josefsson  <simon@josefsson.org>
15481
15482         rename, unlink, same-inode: Relicense.
15483         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
15484         * modules/unlink (License): Likewise.
15485         * modules/same-inode (License): Likewise.
15486
15487 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
15488
15489         mktime: avoid problems on NetBSD 5 / i386
15490         * lib/mktime.c (long_int): New type.  This works around a problem
15491         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
15492         but time_t is 64 bits, and where I expect the existing code is
15493         wrong in some cases.
15494         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
15495         (ydhms_diff): Bring back the compile-time check for wide-enough
15496         year and yday.
15497
15498         mktime: fix misspelling in comment
15499         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
15500         This merges all recent glibc changes of importance.
15501
15502 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15503
15504         move-if-change: cope with concurrent mv of identical file.
15505         * build-aux/move-if-change (CMPPROG): Accept environment
15506         variable as an override for `cmp'.
15507         (usage): Document CMPPROG.
15508         Adjust comparison to drop stdout.  Cope with failure of mv if
15509         the target file exists and is identical to the source, for
15510         parallel builds.
15511         Report from H.J. Lu against binutils in PR binutils/12283.
15512
15513 2011-01-28  Bruce Korb  <bkorb@gnu.org>
15514
15515         * users.txt: Mention sharutils.
15516
15517 2011-01-28  Simon Josefsson  <simon@josefsson.org>
15518
15519         * users.txt: Mention OATH Toolkit.
15520
15521 2011-01-27  Bruno Haible  <bruno@clisp.org>
15522
15523         Prepare for supporting FreeBSD 10.
15524         * build-aux/config.libpath: Remove handling of freebsd1*.
15525
15526 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
15527
15528         Prepare for supporting FreeBSD 10.
15529         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
15530         match FreeBSD 10.0.
15531
15532 2011-01-27  Bruno Haible  <bruno@clisp.org>
15533
15534         vma-iter, get-rusage-as: Add OpenBSD support.
15535         * modules/vma-iter (configure.ac): Test for mquery.
15536         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
15537         * lib/vma-iter.c: Include <sys/mman.h>.
15538         (vma_iterate): Add an implementation based on mquery().
15539         * lib/resource-ext.h (get_rusage_as): Update comments.
15540         * lib/get-rusage-as.c: Likewise.
15541         * lib/get-rusage-data.c: Likewise.
15542
15543 2011-01-26  Karl Berry  <karl@gnu.org>
15544
15545         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
15546         variables to make it easier to override the makeinfo program used.
15547
15548 2011-01-26  Eric Blake  <eblake@redhat.com>
15549
15550         fcntl: work around Haiku F_DUPFD bugs
15551         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
15552         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
15553         cloexec bit on duplication.
15554         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
15555
15556 2011-01-26  Bruno Haible  <bruno@clisp.org>
15557
15558         Enable memory leak tests on AIX.
15559         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
15560         * tests/test-fprintf-posix3.c (main): Likewise.
15561
15562 2011-01-26  Bruno Haible  <bruno@clisp.org>
15563
15564         Tests for module 'get-rusage-data'.
15565         * modules/get-rusage-data-tests: New file.
15566         * tests/test-get-rusage-data.c: New file.
15567
15568         New module 'get-rusage-data'.
15569         * lib/resource-ext.h (get_rusage_data): New declaration.
15570         * lib/get-rusage-data.c: New file.
15571         * modules/get-rusage-data: New file.
15572
15573 2011-01-25  Bruno Haible  <bruno@clisp.org>
15574
15575         get-rusage-as: Allow for easier testing.
15576         * lib/resource-ext.h (get_rusage_as): Add comment.
15577         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
15578         (main): New function for interactive testing.
15579
15580 2011-01-25  Bruno Haible  <bruno@clisp.org>
15581
15582         vma-iter: Treat Haiku like BeOS.
15583         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
15584         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
15585
15586 2011-01-25  Eric Blake  <eblake@redhat.com>
15587
15588         c-stack: fix regression on cygwin when libsigsegv is present
15589         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
15590
15591 2011-01-24  Bruno Haible  <bruno@clisp.org>
15592
15593         vma-iter: Avoid empty intervals.
15594         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
15595         on an empty interval.
15596
15597 2011-01-24  Jim Meyering  <meyering@redhat.com>
15598
15599         u64: remove unnecessary #include
15600         * lib/u64.h: Don't include <stddef.h>.  It was not used.
15601
15602 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
15603
15604         Allow the user to avoid the HAVE_RAW_DECL_* macros.
15605         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
15606
15607 2011-01-23  Bruno Haible  <bruno@clisp.org>
15608
15609         New module 'vma-iter'.
15610         * lib/vma-iter.h: New file.
15611         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
15612         * modules/vma-iter: New file.
15613         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
15614         for get_rusage_as_via_iterator.
15615         (vma_iterate_callback): New function.
15616         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
15617         * modules/get-rusage-as (Depends-on): Add vma-iter.
15618
15619 2011-01-23  Bruno Haible  <bruno@clisp.org>
15620
15621         uninorm: Tweak includes.
15622         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
15623         Reported by Jim Meyering.
15624
15625 2011-01-23  Bruno Haible  <bruno@clisp.org>
15626
15627         get-rusage-as: Improve on NetBSD.
15628         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
15629         /proc, like on FreeBSD.
15630
15631 2011-01-23  Jim Meyering  <meyering@redhat.com>
15632
15633         xreadlink.h: remove unnecessary #include
15634         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
15635
15636         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
15637         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
15638
15639 2011-01-23  Bruno Haible  <bruno@clisp.org>
15640
15641         get-rusage-as: Fix bug.
15642         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
15643         original limit when aborting the first loop.
15644
15645 2011-01-23  Bruno Haible  <bruno@clisp.org>
15646
15647         wctype: Ensure valid C syntax.
15648         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
15649         unconditionally, instead of gl_NEXT_HEADERS conditionally.
15650
15651 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
15652
15653         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
15654         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
15655         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
15656         as they are needed only for configure's test case.
15657         This removes two unnecessary symbols from config.h.
15658
15659         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
15660         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
15661         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
15662         AC_CHECK_HEADERS_ONCE on a header that we also invoke
15663         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
15664         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
15665         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
15666         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
15667         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
15668         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15669         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
15670         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15671         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15672         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
15673         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
15674         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15675         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
15676         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
15677
15678 2011-01-21  Eric Blake  <eblake@redhat.com>
15679
15680         maintainer-makefile: work with older git for submodule check
15681         * top/maint.mk (public-submodule-commit): Rewrite to avoid
15682         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
15683         Reported by Matthias Bolte.
15684
15685         bootstrap: minor portability fixes
15686         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
15687         (usage): Omit leading capital and trailing . on help phrases, per
15688         GNU Coding Standards.
15689         (check_versions, top level): Prefix messages with script name.
15690
15691 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
15692
15693         bootstrap: support --no-git option
15694         * build-aux/bootstrap: Add --no-git option, to be used when
15695         --gnulib-srcdir points to the exact desired checkout.
15696
15697 2011-01-21  Eric Blake  <eblake@redhat.com>
15698
15699         strerror_r-posix: work with glibc 2.13
15700         * lib/strerror_r.c (strerror_r): Fix return type.
15701
15702 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15703             Bruno Haible  <bruno@clisp.org>
15704
15705         uN_strstr: New unit tests.
15706         * modules/unistr/u8-strstr-tests: New file.
15707         * modules/unistr/u16-strstr-tests: New file.
15708         * modules/unistr/u32-strstr-tests: New file.
15709         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
15710         * tests/unistr/test-u8-strstr.c: New file.
15711         * tests/unistr/test-u16-strstr.c: New file.
15712         * tests/unistr/test-u32-strstr.c: New file.
15713
15714 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15715             Bruno Haible  <bruno@clisp.org>
15716
15717         Make uN_strstr functions O(n) worst-case.
15718         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
15719         16-bit and 32-bit unit cases, use the unibyte algorithm from
15720         lib/mbsstr.c.
15721         * lib/unistr/u8-strstr.c: Include <string.h>.
15722         (UNIT_IS_UINT8_T): New macro.
15723         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
15724         (U_STRLEN, U_STRNLEN): New macros.
15725         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
15726         (U_STRLEN, U_STRNLEN): New macros.
15727         * modules/unistr/u8-strstr (Depends-on): Add strstr.
15728         (configure.ac): Update required libunistring version.
15729         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
15730         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
15731         malloca.
15732         (configure.ac): Update required libunistring version.
15733         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
15734         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
15735         malloca.
15736         (configure.ac): Update required libunistring version.
15737
15738 2011-01-21  Pádraig Brady  <P@draigBrady.com>
15739             Bruno Haible  <bruno@clisp.org>
15740
15741         Prepare for faster uN_strstr functions.
15742         * lib/str-kmp.h: Support definable UNITs.
15743         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
15744         needle_len argument.
15745         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
15746         * lib/mbscasestr.c (mbscasestr): Likewise.
15747
15748 2011-01-21  Pádraig Brady <P@draigBrady.com>
15749
15750         malloca-tests: make faster by unsetting MALLOC_PERTURB_
15751         * tests/test-malloca.c (main): Unset the environment variable
15752         to greatly speed up the test.
15753         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
15754         * modules/malloca-tests: Depend on unsetenv.
15755
15756 2011-01-21  Pádraig Brady <P@draigBrady.com>
15757
15758         ignore-value: remove stdint dependency
15759         * lib/ignore-value.h: Remove <stdint.h>
15760         * modules/ignore-value: Remove stdint dependency.
15761
15762 2011-01-21  Jim Meyering  <meyering@redhat.com>
15763
15764         maint.mk: adjust variable name to be consistent with other gl_ vars
15765         * top/maint.mk (gl_public_submodule_commit): Rename the variable
15766         to be lower case.
15767
15768 2011-01-20  Jim Meyering  <meyering@redhat.com>
15769
15770         maint.mk: make "check" depend on public-submodule-commit by default
15771         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
15772
15773 2011-01-20  Bruno Haible  <bruno@clisp.org>
15774
15775         mbfile, mbiter: Complete change from 2008-12-21.
15776         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
15777         * m4/mbiter.m4 (gl_MBITER): Likewise.
15778
15779 2011-01-20  Jim Meyering  <meyering@redhat.com>
15780
15781         init.sh: insert space between each function name and "()"
15782         * tests/init.sh: Make it a little easier to see that a function's
15783         name is "warn_", and not "warn" when looking at the first part of
15784         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
15785
15786 2011-01-20  Jim Meyering  <meyering@redhat.com>
15787
15788         mountlist: clean up code formatting
15789         * lib/mountlist.c (read_file_system_list): Split a long line,
15790         correct bracing style, use NULL in place of "(struct statfs *)0",
15791         don't parenthesize return value, add spaces around "=" and after
15792         ";-in-for-stmt".
15793
15794 2011-01-14  Markus Duft <mduft@gentoo.org>
15795
15796         mountlist: add support for Interix
15797         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
15798         Apply statvfs to all entries of /dev/fs.
15799         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
15800         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
15801
15802 2011-01-20  Jim Meyering  <meyering@redhat.com>
15803
15804         maint.mk: improve the public-submodule-commit rule
15805         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
15806         to suppress printing of its commands... unless V=1.
15807         Add git submodule's --quiet option to suppress printing of e.g.,
15808         "Entering gnulib" output.
15809         "cd" into $(srcdir) before running git submodule.
15810
15811 2011-01-20  Bruno Haible  <bruno@clisp.org>
15812
15813         include_next: Fix bug introduced on 2011-01-18.
15814         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
15815         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
15816         ac_cv_header_... variable if the second argument is not 'check'.
15817         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
15818         gl_NEXT_HEADERS_INTERNAL.
15819
15820 2011-01-20  Bruno Haible  <bruno@clisp.org>
15821
15822         Allow the user to avoid the GNULIB_TEST_* macros.
15823         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
15824         Suggested by Paul Eggert.
15825
15826 2011-01-14  Jim Meyering  <meyering@redhat.com>
15827
15828         bootstrap: avoid failure when there is no .gitmodules file
15829         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
15830         has been assigned to, even when its value is the empty string.
15831         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
15832         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
15833         Reported by John W. Eaton <jwe@gnu.org>.
15834
15835 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
15836
15837         assume <ctype.h>, ..., <time.h> exist
15838         For years gnulib has been assuming the existence of the headers
15839         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
15840         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
15841         them, since they don't appear to be needed.
15842         * README (Portability guidelines): Document this.
15843         * lib/flock.c: Assume <fcntl.h> exists.
15844         * lib/regex_internal.h: Assume <locale.h> exists.
15845         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
15846         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
15847         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
15848         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
15849         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
15850         * m4/regex.m4 (gl_REGEX): Likewise.
15851         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
15852         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
15853         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
15854         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
15855         * tests/test-argp.c: Likewise.
15856         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
15857
15858         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
15859         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
15860         AA_APPLE_UNIVERSAL_BUILD.  See
15861         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
15862         * NEWS: Document this.
15863
15864 2011-01-19  Eric Blake  <eblake@redhat.com>
15865
15866         c-stack: assume stack overflow if SA_SIGINFO unsupported
15867         * lib/c-stack.c (SIGACTION_WORKS): Rename...
15868         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
15869         sigaction will work.
15870         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
15871         behavior match Linux.
15872         * tests/test-c-stack.c (main): Prefer NULL for pointers.
15873
15874         stdbool-tests: accomodate Haiku
15875         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
15876
15877         binary-io: fix O_TEXT on Haiku
15878         * modules/binary-io (Depends-on): Add fcntl-h.
15879         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
15880         than blindly undefining O_TEXT.
15881         Reported by Scott McCreary.
15882
15883 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15884
15885         include_next: do not check for standard headers like stddef.h
15886
15887         I found this problem when modifying Emacs to use gnulib.
15888         I noticed that it added HAVE_STDDEF_H to config.h, even though
15889         gnulib always assumes <stddef.h> exists as per README and this
15890         symbol is unnecessary.
15891         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
15892         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
15893         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
15894         faster for headers like stddef.h that are known to exist.
15895         (gl_CHECK_NEXT_HEADERS): Use it.
15896         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
15897         rather than gl_CHECK_NEXT_HEADERS.
15898         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
15899         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
15900
15901 2011-01-18  Eric Blake  <eblake@redhat.com>
15902
15903         ansi-c++-opt: skip C++ dependency style if C++ is unused
15904         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
15905         tests when we know C++ compilation is not desired.
15906         Reported by Scott McCreary.
15907
15908 2011-01-18  Bruno Haible  <bruno@clisp.org>
15909
15910         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
15911         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
15912         (main): Perform test also when getrlimit and setrlimit don't exist or
15913         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
15914         limiting the address space size using setrlimit, compare the address
15915         space size before and after the the test.
15916         * tests/test-dprintf-posix2.c: Likewise.
15917         * tests/test-fprintf-posix3.sh: Update skip messages.
15918         * tests/test-dprintf-posix2.sh: Likewise.
15919         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
15920         * modules/dprintf-posix-tests (Depends-on): Likewise.
15921         Reported by Bruce Korb <bkorb@gnu.org> and
15922         Gary V. Vaughan <gary@gnu.org>.
15923
15924 2011-01-18  Bruno Haible  <bruno@clisp.org>
15925
15926         get-rusage-as: Improvement for Cygwin.
15927         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
15928         areas that are merely reserved.
15929
15930 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
15931
15932         strftime: remove dependencies on multibyte modules
15933
15934         strftime depended on mbrlen, mbsinit, and wchar, but these modules
15935         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
15936         only if __osf__ is defined, and I suspect OSF doesn't need these
15937         other modules.  If my guess is wrong, we'll need to come up with a
15938         variant of strftime that doesn't need the multibyte modules.
15939
15940         I discovered this problem when attempting modify Emacs to use the
15941         strftime module.  With the previous gnulib, this caused Emacs to
15942         need 31 new files, ranging from lib/config.charset to
15943         m4/wint_t.m4.  This was overkill and I expect would be offputting
15944         to the Emacs maintainers.  After this change, only 6 new files are
15945         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
15946         stdbool.m4, and tm_gmtoff.m4.
15947
15948         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
15949         Suggested by Bruno Haible in
15950         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
15951         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
15952         and do not check for wchar.h.
15953         * modules/strftime (Files): Remove m4/mbstate_t.m4.
15954         (Depends-on): Remove mbrlen, mbsinit, wchar.
15955
15956 2011-01-18  Bruno Haible  <bruno@clisp.org>
15957
15958         Tests for module 'get-rusage-as'.
15959         * modules/get-rusage-as-tests: New file.
15960         * tests/test-get-rusage-as.c: New file.
15961
15962         New module 'get-rusage-as'.
15963         * modules/get-rusage-as: New file.
15964         * lib/resource-ext.h: New file.
15965         * lib/get-rusage-as.c: New file.
15966
15967 2011-01-17  Eric Blake  <eblake@redhat.com>
15968
15969         sigaction: relax license from LGPLv3+ to LGPLv2+
15970         * modules/sigaction (License): Relax to LGPLv2+.
15971
15972 2011-01-14  Bruno Haible  <bruno@clisp.org>
15973
15974         filemode: Make function declarations usable in C++ mode.
15975         * lib/filemode.h: Enclose function declarations in extern "C" block.
15976         Reported by John W. Eaton <jwe@gnu.org>.
15977
15978 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
15979
15980         save-cwd: no longer include "xgetcwd.h"
15981         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
15982         This avoids a compilation failure in projects that use save-cwd
15983         without also using the xgetcwd module.
15984
15985 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
15986
15987         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
15988         This is so that a program like Emacs, which needs only dtoastr,
15989         does not have to bother with distributing and compiling ftoastr
15990         and ldtoastr.
15991         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
15992         * modules/dtoastr, modules/ldtoastr: New files.
15993         * modules/ftoastr: Now works just for 'float'.
15994         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
15995         (Makefile.am): Remove ftoastr.h (not needed and no effect),
15996         dtoastr.c, ldtoastr.c.
15997
15998 2011-01-11  Jim Meyering  <meyering@redhat.com>
15999
16000         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
16001         There is no need to work around the lack of the fchdir function,
16002         since gnulib can now provide a replacement when required.
16003         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
16004         * modules/save-cwd (Depends-on): Add fchdir.
16005
16006 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
16007
16008         openat, save-cwd: avoid xmalloc
16009
16010         This removes a direct (but undocumented) dependency of openat on
16011         xalloc, along with an indirect dependency via save-cwd.  It also
16012         removes a dependency of save-cwd on xgetcwd, and thereby
16013         indirectly on xalloc.  This change causes the openat substitute
16014         to fall back on save_cwd when memory is tight, and for save_cwd to
16015         fail instead of dying when memory is tight, but that's good enough.
16016         Problem and initial idea for fix reported by Bastien Roucaries in
16017         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
16018
16019         * lib/openat-proc.c: Include stdlib.h (for malloc), not
16020         xalloc.h (for xmalloc).
16021         (openat_proc_name): Use malloc, not xmalloc.
16022         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
16023         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
16024
16025         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
16026         This avoids heap allocation for file names whose lengths are in
16027         the range 512..1023, with the upper bound increasing to at most
16028         4031 depending on the platform's PATH_MAX.  (We do not want
16029         pathmax.h here as it might supply a non-constant PATH_MAX.)
16030         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
16031         Perhaps they should be moved to malloca.h?
16032         (OPENAT_BUFFER_SIZE): Use them.
16033
16034 2011-01-10  Bruno Haible  <bruno@clisp.org>
16035
16036         doc: Update users.txt.
16037         * users.txt: Add recutils.
16038
16039 2011-01-09  Karl Berry  <karl@gnu.org>
16040
16041         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
16042
16043         * doc/configmake.texi: New file.
16044         * doc/gnulib.texi: Include it.
16045         * modules/configmake: Move documentation from here.
16046
16047 2011-01-09  Bruno Haible  <bruno@clisp.org>
16048
16049         Update to Unicode 6.0.0.
16050         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
16051         (get_lbp): Update for Unicode 6.0.0.
16052         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
16053         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
16054         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
16055         U+11001, U+11038..U+11046. Remove U+06DE.
16056         (uc_width): Fix bounds of planes.
16057         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16058         lib/uniwidth/width.c.
16059         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
16060         trailing whitespace removed.
16061         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
16062         without comments, but with the original copyright notice.
16063         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
16064         * lib/unicase/ignorable.h: Likewise.
16065         * lib/unicase/tocasefold.h: Likewise.
16066         * lib/unicase/tolower.h: Likewise.
16067         * lib/unicase/totitle.h: Likewise.
16068         * lib/unicase/toupper.h: Likewise.
16069         * lib/unictype/bidi_of.h: Likewise.
16070         * lib/unictype/blocks.h: Likewise.
16071         * lib/unictype/categ_C.h: Likewise.
16072         * lib/unictype/categ_Cn.h: Likewise.
16073         * lib/unictype/categ_L.h: Likewise.
16074         * lib/unictype/categ_Ll.h: Likewise.
16075         * lib/unictype/categ_Lm.h: Likewise.
16076         * lib/unictype/categ_Lo.h: Likewise.
16077         * lib/unictype/categ_Lu.h: Likewise.
16078         * lib/unictype/categ_M.h: Likewise.
16079         * lib/unictype/categ_Mc.h: Likewise.
16080         * lib/unictype/categ_Me.h: Likewise.
16081         * lib/unictype/categ_Mn.h: Likewise.
16082         * lib/unictype/categ_N.h: Likewise.
16083         * lib/unictype/categ_Nd.h: Likewise.
16084         * lib/unictype/categ_No.h: Likewise.
16085         * lib/unictype/categ_P.h: Likewise.
16086         * lib/unictype/categ_Po.h: Likewise.
16087         * lib/unictype/categ_S.h: Likewise.
16088         * lib/unictype/categ_Sc.h: Likewise.
16089         * lib/unictype/categ_Sk.h: Likewise.
16090         * lib/unictype/categ_Sm.h: Likewise.
16091         * lib/unictype/categ_So.h: Likewise.
16092         * lib/unictype/categ_of.h: Likewise.
16093         * lib/unictype/combining.h: Likewise.
16094         * lib/unictype/ctype_alnum.h: Likewise.
16095         * lib/unictype/ctype_alpha.h: Likewise.
16096         * lib/unictype/ctype_graph.h: Likewise.
16097         * lib/unictype/ctype_lower.h: Likewise.
16098         * lib/unictype/ctype_print.h: Likewise.
16099         * lib/unictype/ctype_punct.h: Likewise.
16100         * lib/unictype/ctype_upper.h: Likewise.
16101         * lib/unictype/decdigit.h: Likewise.
16102         * lib/unictype/digit.h: Likewise.
16103         * lib/unictype/numeric.h: Likewise.
16104         * lib/unictype/pr_alphabetic.h: Likewise.
16105         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16106         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16107         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16108         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16109         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16110         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16111         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16112         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16113         * lib/unictype/pr_case_ignorable.h: Likewise.
16114         * lib/unictype/pr_cased.h: Likewise.
16115         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
16116         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
16117         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
16118         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
16119         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
16120         * lib/unictype/pr_combining.h: Likewise.
16121         * lib/unictype/pr_composite.h: Likewise.
16122         * lib/unictype/pr_currency_symbol.h: Likewise.
16123         * lib/unictype/pr_decimal_digit.h: Likewise.
16124         * lib/unictype/pr_deprecated.h: Likewise.
16125         * lib/unictype/pr_format_control.h: Likewise.
16126         * lib/unictype/pr_grapheme_base.h: Likewise.
16127         * lib/unictype/pr_grapheme_extend.h: Likewise.
16128         * lib/unictype/pr_grapheme_link.h: Likewise.
16129         * lib/unictype/pr_id_continue.h: Likewise.
16130         * lib/unictype/pr_id_start.h: Likewise.
16131         * lib/unictype/pr_ideographic.h: Likewise.
16132         * lib/unictype/pr_lowercase.h: Likewise.
16133         * lib/unictype/pr_math.h: Likewise.
16134         * lib/unictype/pr_numeric.h: Likewise.
16135         * lib/unictype/pr_other_alphabetic.h: Likewise.
16136         * lib/unictype/pr_other_id_continue.h: Likewise.
16137         * lib/unictype/pr_other_math.h: Likewise.
16138         * lib/unictype/pr_punctuation.h: Likewise.
16139         * lib/unictype/pr_sentence_terminal.h: Likewise.
16140         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16141         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16142         * lib/unictype/pr_unified_ideograph.h: Likewise.
16143         * lib/unictype/pr_uppercase.h: Likewise.
16144         * lib/unictype/pr_xid_continue.h: Likewise.
16145         * lib/unictype/pr_xid_start.h: Likewise.
16146         * lib/unictype/scripts.h: Likewise.
16147         * lib/unictype/scripts_byname.gperf: Likewise.
16148         * lib/unictype/sy_java_ident.h: Likewise.
16149         * lib/unigbrk/gbrkprop.h: Likewise.
16150         * lib/unilbrk/lbrkprop1.h: Likewise.
16151         * lib/unilbrk/lbrkprop2.h: Likewise.
16152         * lib/uninorm/decomposition-table2.h: Likewise.
16153         * lib/uniwbrk/wbrkprop.h: Likewise.
16154         * tests/unicase/test-cased.c: Likewise.
16155         * tests/unicase/test-ignorable.c: Likewise.
16156         * tests/unicase/test-uc_tolower.c: Likewise.
16157         * tests/unicase/test-uc_totitle.c: Likewise.
16158         * tests/unicase/test-uc_toupper.c: Likewise.
16159         * tests/unictype/test-categ_C.c: Likewise.
16160         * tests/unictype/test-categ_Cn.c: Likewise.
16161         * tests/unictype/test-categ_L.c: Likewise.
16162         * tests/unictype/test-categ_Ll.c: Likewise.
16163         * tests/unictype/test-categ_Lm.c: Likewise.
16164         * tests/unictype/test-categ_Lo.c: Likewise.
16165         * tests/unictype/test-categ_Lu.c: Likewise.
16166         * tests/unictype/test-categ_M.c: Likewise.
16167         * tests/unictype/test-categ_Mc.c: Likewise.
16168         * tests/unictype/test-categ_Me.c: Likewise.
16169         * tests/unictype/test-categ_Mn.c: Likewise.
16170         * tests/unictype/test-categ_N.c: Likewise.
16171         * tests/unictype/test-categ_Nd.c: Likewise.
16172         * tests/unictype/test-categ_No.c: Likewise.
16173         * tests/unictype/test-categ_P.c: Likewise.
16174         * tests/unictype/test-categ_Po.c: Likewise.
16175         * tests/unictype/test-categ_S.c: Likewise.
16176         * tests/unictype/test-categ_Sc.c: Likewise.
16177         * tests/unictype/test-categ_Sk.c: Likewise.
16178         * tests/unictype/test-categ_Sm.c: Likewise.
16179         * tests/unictype/test-categ_So.c: Likewise.
16180         * tests/unictype/test-ctype_alnum.c: Likewise.
16181         * tests/unictype/test-ctype_alpha.c: Likewise.
16182         * tests/unictype/test-ctype_graph.c: Likewise.
16183         * tests/unictype/test-ctype_lower.c: Likewise.
16184         * tests/unictype/test-ctype_print.c: Likewise.
16185         * tests/unictype/test-ctype_punct.c: Likewise.
16186         * tests/unictype/test-ctype_upper.c: Likewise.
16187         * tests/unictype/test-decdigit.h: Likewise.
16188         * tests/unictype/test-digit.h: Likewise.
16189         * tests/unictype/test-numeric.h: Likewise.
16190         * tests/unictype/test-pr_alphabetic.c: Likewise.
16191         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16192         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
16193         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
16194         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16195         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16196         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16197         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16198         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16199         * tests/unictype/test-pr_case_ignorable.c: Likewise.
16200         * tests/unictype/test-pr_cased.c: Likewise.
16201         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
16202         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
16203         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
16204         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
16205         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
16206         * tests/unictype/test-pr_combining.c: Likewise.
16207         * tests/unictype/test-pr_composite.c: Likewise.
16208         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16209         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16210         * tests/unictype/test-pr_deprecated.c: Likewise.
16211         * tests/unictype/test-pr_format_control.c: Likewise.
16212         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16213         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16214         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16215         * tests/unictype/test-pr_id_continue.c: Likewise.
16216         * tests/unictype/test-pr_id_start.c: Likewise.
16217         * tests/unictype/test-pr_ideographic.c: Likewise.
16218         * tests/unictype/test-pr_lowercase.c: Likewise.
16219         * tests/unictype/test-pr_math.c: Likewise.
16220         * tests/unictype/test-pr_numeric.c: Likewise.
16221         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16222         * tests/unictype/test-pr_other_id_continue.c: Likewise.
16223         * tests/unictype/test-pr_other_math.c: Likewise.
16224         * tests/unictype/test-pr_punctuation.c: Likewise.
16225         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16226         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16227         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16228         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16229         * tests/unictype/test-pr_uppercase.c: Likewise.
16230         * tests/unictype/test-pr_xid_continue.c: Likewise.
16231         * tests/unictype/test-pr_xid_start.c: Likewise.
16232         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16233         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16234         changes.
16235         * lib/unictype/categ_Cc.h: Likewise.
16236         * lib/unictype/categ_Cf.h: Likewise.
16237         * lib/unictype/categ_Co.h: Likewise.
16238         * lib/unictype/categ_Cs.h: Likewise.
16239         * lib/unictype/categ_Lt.h: Likewise.
16240         * lib/unictype/categ_Nl.h: Likewise.
16241         * lib/unictype/categ_Pc.h: Likewise.
16242         * lib/unictype/categ_Pd.h: Likewise.
16243         * lib/unictype/categ_Pe.h: Likewise.
16244         * lib/unictype/categ_Pf.h: Likewise.
16245         * lib/unictype/categ_Pi.h: Likewise.
16246         * lib/unictype/categ_Ps.h: Likewise.
16247         * lib/unictype/categ_Z.h: Likewise.
16248         * lib/unictype/categ_Zl.h: Likewise.
16249         * lib/unictype/categ_Zp.h: Likewise.
16250         * lib/unictype/categ_Zs.h: Likewise.
16251         * lib/unictype/ctype_blank.h: Likewise.
16252         * lib/unictype/ctype_cntrl.h: Likewise.
16253         * lib/unictype/ctype_digit.h: Likewise.
16254         * lib/unictype/ctype_space.h: Likewise.
16255         * lib/unictype/ctype_xdigit.h: Likewise.
16256         * lib/unictype/mirror.h: Likewise.
16257         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16258         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16259         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16260         * lib/unictype/pr_bidi_control.h: Likewise.
16261         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16262         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16263         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16264         * lib/unictype/pr_bidi_pdf.h: Likewise.
16265         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16266         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16267         * lib/unictype/pr_dash.h: Likewise.
16268         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16269         * lib/unictype/pr_diacritic.h: Likewise.
16270         * lib/unictype/pr_extender.h: Likewise.
16271         * lib/unictype/pr_hex_digit.h: Likewise.
16272         * lib/unictype/pr_hyphen.h: Likewise.
16273         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16274         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16275         * lib/unictype/pr_ignorable_control.h: Likewise.
16276         * lib/unictype/pr_iso_control.h: Likewise.
16277         * lib/unictype/pr_join_control.h: Likewise.
16278         * lib/unictype/pr_left_of_pair.h: Likewise.
16279         * lib/unictype/pr_line_separator.h: Likewise.
16280         * lib/unictype/pr_logical_order_exception.h: Likewise.
16281         * lib/unictype/pr_non_break.h: Likewise.
16282         * lib/unictype/pr_not_a_character.h: Likewise.
16283         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16284         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16285         * lib/unictype/pr_other_id_start.h: Likewise.
16286         * lib/unictype/pr_other_lowercase.h: Likewise.
16287         * lib/unictype/pr_other_uppercase.h: Likewise.
16288         * lib/unictype/pr_paired_punctuation.h: Likewise.
16289         * lib/unictype/pr_paragraph_separator.h: Likewise.
16290         * lib/unictype/pr_pattern_syntax.h: Likewise.
16291         * lib/unictype/pr_pattern_white_space.h: Likewise.
16292         * lib/unictype/pr_private_use.h: Likewise.
16293         * lib/unictype/pr_quotation_mark.h: Likewise.
16294         * lib/unictype/pr_radical.h: Likewise.
16295         * lib/unictype/pr_soft_dotted.h: Likewise.
16296         * lib/unictype/pr_space.h: Likewise.
16297         * lib/unictype/pr_titlecase.h: Likewise.
16298         * lib/unictype/pr_variation_selector.h: Likewise.
16299         * lib/unictype/pr_white_space.h: Likewise.
16300         * lib/unictype/pr_zero_width.h: Likewise.
16301         * lib/unictype/sy_c_ident.h: Likewise.
16302         * lib/unictype/sy_c_whitespace.h: Likewise.
16303         * lib/unictype/sy_java_whitespace.h: Likewise.
16304         * lib/uninorm/composition-table.gperf: Likewise.
16305         * lib/uninorm/decomposition-table1.h: Likewise.
16306         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
16307         LB8.
16308         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16309         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16310         * modules/unictype/*: Bump version number of expected libunistring
16311         version.
16312
16313 2011-01-09  Bruno Haible  <bruno@clisp.org>
16314
16315         Update to Unicode 5.2.0.
16316         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
16317         trailing whitespace removed.
16318
16319 2011-01-09  Bruno Haible  <bruno@clisp.org>
16320
16321         New Unicode character properties, from Unicode 5.2.0.
16322         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
16323         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
16324         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
16325         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
16326         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
16327         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
16328         uc_is_property_cased, uc_is_property_case_ignorable,
16329         uc_is_property_changes_when_lowercased,
16330         uc_is_property_changes_when_uppercased,
16331         uc_is_property_changes_when_titlecased,
16332         uc_is_property_changes_when_casefolded,
16333         uc_is_property_changes_when_casemapped): New declarations.
16334         * lib/unictype/pr_byname.gperf: Add the new properties.
16335         * modules/unictype/property-byname (Depends-on): Depend on the new
16336         properties modules.
16337         * modules/unictype/property-all (Depends-on): Likewise.
16338         * MODULES.html.sh (Unicode string functions): Add
16339         unictype/property-case-ignorable, unictype/property-cased,
16340         unictype/property-changes-when-casefolded,
16341         unictype/property-changes-when-casemapped,
16342         unictype/property-changes-when-lowercased,
16343         unictype/property-changes-when-titlecased,
16344         unictype/property-changes-when-uppercased.
16345
16346         New module 'unictype/property-changes-when-casemapped'.
16347         * modules/unictype/property-changes-when-casemapped: New file.
16348         * lib/unictype/pr_changes_when_casemapped.c: New file.
16349         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
16350         generated by gen-uni-tables.
16351         * modules/unictype/property-changes-when-casemapped-tests: New file.
16352         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
16353         automatically generated by gen-uni-tables.
16354
16355         New module 'unictype/property-changes-when-casefolded'.
16356         * modules/unictype/property-changes-when-casefolded: New file.
16357         * lib/unictype/pr_changes_when_casefolded.c: New file.
16358         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
16359         generated by gen-uni-tables.
16360         * modules/unictype/property-changes-when-casefolded-tests: New file.
16361         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
16362         automatically generated by gen-uni-tables.
16363
16364         New module 'unictype/property-changes-when-titlecased'.
16365         * modules/unictype/property-changes-when-titlecased: New file.
16366         * lib/unictype/pr_changes_when_titlecased.c: New file.
16367         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
16368         generated by gen-uni-tables.
16369         * modules/unictype/property-changes-when-titlecased-tests: New file.
16370         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
16371         automatically generated by gen-uni-tables.
16372
16373         New module 'unictype/property-changes-when-uppercased'.
16374         * modules/unictype/property-changes-when-uppercased: New file.
16375         * lib/unictype/pr_changes_when_uppercased.c: New file.
16376         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
16377         generated by gen-uni-tables.
16378         * modules/unictype/property-changes-when-uppercased-tests: New file.
16379         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
16380         automatically generated by gen-uni-tables.
16381
16382         New module 'unictype/property-changes-when-lowercased'.
16383         * modules/unictype/property-changes-when-lowercased: New file.
16384         * lib/unictype/pr_changes_when_lowercased.c: New file.
16385         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
16386         generated by gen-uni-tables.
16387         * modules/unictype/property-changes-when-lowercased-tests: New file.
16388         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
16389         automatically generated by gen-uni-tables.
16390
16391         New module 'unictype/property-case-ignorable'.
16392         * modules/unictype/property-case-ignorable: New file.
16393         * lib/unictype/pr_case_ignorable.c: New file.
16394         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
16395         by gen-uni-tables.
16396         * modules/unictype/property-case-ignorable-tests: New file.
16397         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
16398         generated by gen-uni-tables.
16399
16400         New module 'unictype/property-cased'.
16401         * modules/unictype/property-cased: New file.
16402         * lib/unictype/pr_cased.c: New file.
16403         * lib/unictype/pr_cased.h: New file, automatically generated by
16404         gen-uni-tables.
16405         * modules/unictype/property-cased-tests: New file.
16406         * tests/unictype/test-pr_cased.c: New file, automatically generated by
16407         gen-uni-tables.
16408
16409 2011-01-09  Bruno Haible  <bruno@clisp.org>
16410
16411         Update to Unicode 5.2.0.
16412         * lib/gen-uni-tables.c (output_predicate, output_category,
16413         output_combclass, output_bidi_category, output_decimal_digit_test,
16414         output_decimal_digit, output_digit_test, output_digit,
16415         output_numeric_test, output_numeric, output_mirror, output_scripts,
16416         output_scripts_byname, output_blocks, output_ident_category): Fix
16417         comment header.
16418         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
16419         get_wbp.
16420         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
16421         items.
16422         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
16423         Changes_When_Lowercased, Changes_When_Uppercased,
16424         Changes_When_Titlecased, Changes_When_Casefolded,
16425         Changes_When_Casemapped.
16426         (is_property_alphabetic, is_property_default_ignorable_code_point):
16427         Update for Unicode 5.2.0.
16428         (is_property_cased, is_property_case_ignorable,
16429         is_property_changes_when_lowercased,
16430         is_property_changes_when_uppercased,
16431         is_property_changes_when_titlecased,
16432         is_property_changes_when_casefolded,
16433         is_property_changes_when_casemapped): New functions.
16434         (output_properties): Output also the properties cased, case_ignorable,
16435         changes_when_lowercased, changes_when_uppercased,
16436         changes_when_titlecased, changes_when_casefolded,
16437         changes_when_casemapped.
16438         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
16439         Unicode TR#11 revision 17 -> 19.
16440         (LBP_CP): New enumeration value.
16441         (LBP_*): Adjust values accordingly.
16442         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16443         TR#14 revision 22 -> 24.
16444         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
16445         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
16446         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
16447         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
16448         is_WBP_MIDLETTER.
16449         (output_composition_tables): Allow for 24 bits instead of 16 bits in
16450         the code1 and code2 of each composition rule.
16451         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
16452         * lib/unicase/ignorable.h: Likewise.
16453         * lib/unicase/tocasefold.h: Likewise.
16454         * lib/unicase/tolower.h: Likewise.
16455         * lib/unicase/totitle.h: Likewise.
16456         * lib/unicase/toupper.h: Likewise.
16457         * lib/unictype/bidi_of.h: Likewise.
16458         * lib/unictype/blocks.h: Likewise.
16459         * lib/unictype/categ_C.h: Likewise.
16460         * lib/unictype/categ_Cf.h: Likewise.
16461         * lib/unictype/categ_Cn.h: Likewise.
16462         * lib/unictype/categ_L.h: Likewise.
16463         * lib/unictype/categ_Ll.h: Likewise.
16464         * lib/unictype/categ_Lm.h: Likewise.
16465         * lib/unictype/categ_Lo.h: Likewise.
16466         * lib/unictype/categ_Lu.h: Likewise.
16467         * lib/unictype/categ_M.h: Likewise.
16468         * lib/unictype/categ_Mc.h: Likewise.
16469         * lib/unictype/categ_Mn.h: Likewise.
16470         * lib/unictype/categ_N.h: Likewise.
16471         * lib/unictype/categ_Nd.h: Likewise.
16472         * lib/unictype/categ_Nl.h: Likewise.
16473         * lib/unictype/categ_No.h: Likewise.
16474         * lib/unictype/categ_P.h: Likewise.
16475         * lib/unictype/categ_Pd.h: Likewise.
16476         * lib/unictype/categ_Po.h: Likewise.
16477         * lib/unictype/categ_S.h: Likewise.
16478         * lib/unictype/categ_Sc.h: Likewise.
16479         * lib/unictype/categ_So.h: Likewise.
16480         * lib/unictype/categ_of.h: Likewise.
16481         * lib/unictype/combining.h: Likewise.
16482         * lib/unictype/ctype_alnum.h: Likewise.
16483         * lib/unictype/ctype_alpha.h: Likewise.
16484         * lib/unictype/ctype_graph.h: Likewise.
16485         * lib/unictype/ctype_lower.h: Likewise.
16486         * lib/unictype/ctype_print.h: Likewise.
16487         * lib/unictype/ctype_punct.h: Likewise.
16488         * lib/unictype/ctype_upper.h: Likewise.
16489         * lib/unictype/decdigit.h: Likewise.
16490         * lib/unictype/digit.h: Likewise.
16491         * lib/unictype/numeric.h: Likewise.
16492         * lib/unictype/pr_alphabetic.h: Likewise.
16493         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16494         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16495         * lib/unictype/pr_bidi_european_digit.h: Likewise.
16496         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16497         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16498         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16499         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
16500         * lib/unictype/pr_combining.h: Likewise.
16501         * lib/unictype/pr_composite.h: Likewise.
16502         * lib/unictype/pr_currency_symbol.h: Likewise.
16503         * lib/unictype/pr_dash.h: Likewise.
16504         * lib/unictype/pr_decimal_digit.h: Likewise.
16505         * lib/unictype/pr_deprecated.h: Likewise.
16506         * lib/unictype/pr_diacritic.h: Likewise.
16507         * lib/unictype/pr_extender.h: Likewise.
16508         * lib/unictype/pr_grapheme_base.h: Likewise.
16509         * lib/unictype/pr_grapheme_extend.h: Likewise.
16510         * lib/unictype/pr_grapheme_link.h: Likewise.
16511         * lib/unictype/pr_id_continue.h: Likewise.
16512         * lib/unictype/pr_id_start.h: Likewise.
16513         * lib/unictype/pr_ideographic.h: Likewise.
16514         * lib/unictype/pr_ignorable_control.h: Likewise.
16515         * lib/unictype/pr_logical_order_exception.h: Likewise.
16516         * lib/unictype/pr_lowercase.h: Likewise.
16517         * lib/unictype/pr_numeric.h: Likewise.
16518         * lib/unictype/pr_other_alphabetic.h: Likewise.
16519         * lib/unictype/pr_punctuation.h: Likewise.
16520         * lib/unictype/pr_sentence_terminal.h: Likewise.
16521         * lib/unictype/pr_terminal_punctuation.h: Likewise.
16522         * lib/unictype/pr_unassigned_code_value.h: Likewise.
16523         * lib/unictype/pr_unified_ideograph.h: Likewise.
16524         * lib/unictype/pr_uppercase.h: Likewise.
16525         * lib/unictype/pr_xid_continue.h: Likewise.
16526         * lib/unictype/pr_xid_start.h: Likewise.
16527         * lib/unictype/pr_zero_width.h: Likewise.
16528         * lib/unictype/scripts.h: Likewise.
16529         * lib/unictype/scripts_byname.gperf: Likewise.
16530         * lib/unictype/sy_java_ident.h: Likewise.
16531         * lib/unigbrk/gbrkprop.h: Likewise.
16532         * lib/unilbrk/lbrkprop1.h: Likewise.
16533         * lib/unilbrk/lbrkprop2.h: Likewise.
16534         * lib/unilbrk/lbrktables.h: Likewise.
16535         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
16536         LBP_CP. Implement rule LB30.
16537         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
16538         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
16539         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
16540         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
16541         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
16542         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
16543         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
16544         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
16545         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
16546         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
16547         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
16548         bits instead of 16 bits in the code1 and code2 of each composition
16549         rule.
16550         (uc_composition): Update for Unicode 5.2.0.
16551         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
16552         * lib/uninorm/decomposition-table2.h: Likewise.
16553         * lib/uniwbrk/wbrkprop.h: Likewise.
16554         * tests/unicase/test-cased.c: Likewise.
16555         * tests/unicase/test-ignorable.c: Likewise.
16556         * tests/unicase/test-uc_tolower.c: Likewise.
16557         * tests/unicase/test-uc_totitle.c: Likewise.
16558         * tests/unicase/test-uc_toupper.c: Likewise.
16559         * tests/unictype/test-categ_C.c: Likewise.
16560         * tests/unictype/test-categ_Cf.c: Likewise.
16561         * tests/unictype/test-categ_Cn.c: Likewise.
16562         * tests/unictype/test-categ_L.c: Likewise.
16563         * tests/unictype/test-categ_Ll.c: Likewise.
16564         * tests/unictype/test-categ_Lm.c: Likewise.
16565         * tests/unictype/test-categ_Lo.c: Likewise.
16566         * tests/unictype/test-categ_Lu.c: Likewise.
16567         * tests/unictype/test-categ_M.c: Likewise.
16568         * tests/unictype/test-categ_Mc.c: Likewise.
16569         * tests/unictype/test-categ_Mn.c: Likewise.
16570         * tests/unictype/test-categ_N.c: Likewise.
16571         * tests/unictype/test-categ_Nd.c: Likewise.
16572         * tests/unictype/test-categ_Nl.c: Likewise.
16573         * tests/unictype/test-categ_No.c: Likewise.
16574         * tests/unictype/test-categ_P.c: Likewise.
16575         * tests/unictype/test-categ_Pd.c: Likewise.
16576         * tests/unictype/test-categ_Po.c: Likewise.
16577         * tests/unictype/test-categ_S.c: Likewise.
16578         * tests/unictype/test-categ_Sc.c: Likewise.
16579         * tests/unictype/test-categ_So.c: Likewise.
16580         * tests/unictype/test-ctype_alnum.c: Likewise.
16581         * tests/unictype/test-ctype_alpha.c: Likewise.
16582         * tests/unictype/test-ctype_graph.c: Likewise.
16583         * tests/unictype/test-ctype_lower.c: Likewise.
16584         * tests/unictype/test-ctype_print.c: Likewise.
16585         * tests/unictype/test-ctype_punct.c: Likewise.
16586         * tests/unictype/test-ctype_upper.c: Likewise.
16587         * tests/unictype/test-decdigit.h: Likewise.
16588         * tests/unictype/test-digit.h: Likewise.
16589         * tests/unictype/test-numeric.h: Likewise.
16590         * tests/unictype/test-pr_alphabetic.c: Likewise.
16591         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
16592         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
16593         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
16594         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
16595         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
16596         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
16597         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
16598         * tests/unictype/test-pr_combining.c: Likewise.
16599         * tests/unictype/test-pr_composite.c: Likewise.
16600         * tests/unictype/test-pr_currency_symbol.c: Likewise.
16601         * tests/unictype/test-pr_dash.c: Likewise.
16602         * tests/unictype/test-pr_decimal_digit.c: Likewise.
16603         * tests/unictype/test-pr_deprecated.c: Likewise.
16604         * tests/unictype/test-pr_diacritic.c: Likewise.
16605         * tests/unictype/test-pr_extender.c: Likewise.
16606         * tests/unictype/test-pr_grapheme_base.c: Likewise.
16607         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
16608         * tests/unictype/test-pr_grapheme_link.c: Likewise.
16609         * tests/unictype/test-pr_id_continue.c: Likewise.
16610         * tests/unictype/test-pr_id_start.c: Likewise.
16611         * tests/unictype/test-pr_ideographic.c: Likewise.
16612         * tests/unictype/test-pr_ignorable_control.c: Likewise.
16613         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
16614         * tests/unictype/test-pr_lowercase.c: Likewise.
16615         * tests/unictype/test-pr_numeric.c: Likewise.
16616         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
16617         * tests/unictype/test-pr_punctuation.c: Likewise.
16618         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
16619         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
16620         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
16621         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
16622         * tests/unictype/test-pr_uppercase.c: Likewise.
16623         * tests/unictype/test-pr_xid_continue.c: Likewise.
16624         * tests/unictype/test-pr_xid_start.c: Likewise.
16625         * tests/unictype/test-pr_zero_width.c: Likewise.
16626         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
16627         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
16628         changed behaviour: line breaking is now disallowed between a letter
16629         or '=' and '('.
16630         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
16631         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
16632         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
16633         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
16634         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16635         lib/uniwidth/width.c.
16636         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
16637         without comments, but with the original copyright notice.
16638         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
16639         changes.
16640         * lib/unictype/categ_Cc.h: Likewise.
16641         * lib/unictype/categ_Co.h: Likewise.
16642         * lib/unictype/categ_Cs.h: Likewise.
16643         * lib/unictype/categ_Lt.h: Likewise.
16644         * lib/unictype/categ_Me.h: Likewise.
16645         * lib/unictype/categ_Pc.h: Likewise.
16646         * lib/unictype/categ_Pe.h: Likewise.
16647         * lib/unictype/categ_Pf.h: Likewise.
16648         * lib/unictype/categ_Pi.h: Likewise.
16649         * lib/unictype/categ_Ps.h: Likewise.
16650         * lib/unictype/categ_Sk.h: Likewise.
16651         * lib/unictype/categ_Sm.h: Likewise.
16652         * lib/unictype/categ_Z.h: Likewise.
16653         * lib/unictype/categ_Zl.h: Likewise.
16654         * lib/unictype/categ_Zp.h: Likewise.
16655         * lib/unictype/categ_Zs.h: Likewise.
16656         * lib/unictype/ctype_blank.h: Likewise.
16657         * lib/unictype/ctype_cntrl.h: Likewise.
16658         * lib/unictype/ctype_digit.h: Likewise.
16659         * lib/unictype/ctype_space.h: Likewise.
16660         * lib/unictype/ctype_xdigit.h: Likewise.
16661         * lib/unictype/mirror.h: Likewise.
16662         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
16663         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16664         * lib/unictype/pr_bidi_block_separator.h: Likewise.
16665         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16666         * lib/unictype/pr_bidi_common_separator.h: Likewise.
16667         * lib/unictype/pr_bidi_control.h: Likewise.
16668         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
16669         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
16670         * lib/unictype/pr_bidi_pdf.h: Likewise.
16671         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
16672         * lib/unictype/pr_bidi_whitespace.h: Likewise.
16673         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
16674         * lib/unictype/pr_format_control.h: Likewise.
16675         * lib/unictype/pr_hex_digit.h: Likewise.
16676         * lib/unictype/pr_hyphen.h: Likewise.
16677         * lib/unictype/pr_ids_binary_operator.h: Likewise.
16678         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
16679         * lib/unictype/pr_iso_control.h: Likewise.
16680         * lib/unictype/pr_join_control.h: Likewise.
16681         * lib/unictype/pr_left_of_pair.h: Likewise.
16682         * lib/unictype/pr_line_separator.h: Likewise.
16683         * lib/unictype/pr_math.h: Likewise.
16684         * lib/unictype/pr_non_break.h: Likewise.
16685         * lib/unictype/pr_not_a_character.h: Likewise.
16686         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
16687         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
16688         * lib/unictype/pr_other_id_continue.h: Likewise.
16689         * lib/unictype/pr_other_id_start.h: Likewise.
16690         * lib/unictype/pr_other_lowercase.h: Likewise.
16691         * lib/unictype/pr_other_math.h: Likewise.
16692         * lib/unictype/pr_other_uppercase.h: Likewise.
16693         * lib/unictype/pr_paired_punctuation.h: Likewise.
16694         * lib/unictype/pr_paragraph_separator.h: Likewise.
16695         * lib/unictype/pr_pattern_syntax.h: Likewise.
16696         * lib/unictype/pr_pattern_white_space.h: Likewise.
16697         * lib/unictype/pr_private_use.h: Likewise.
16698         * lib/unictype/pr_quotation_mark.h: Likewise.
16699         * lib/unictype/pr_radical.h: Likewise.
16700         * lib/unictype/pr_soft_dotted.h: Likewise.
16701         * lib/unictype/pr_space.h: Likewise.
16702         * lib/unictype/pr_titlecase.h: Likewise.
16703         * lib/unictype/pr_variation_selector.h: Likewise.
16704         * lib/unictype/pr_white_space.h: Likewise.
16705         * lib/unictype/sy_c_ident.h: Likewise.
16706         * lib/unictype/sy_c_whitespace.h: Likewise.
16707         * lib/unictype/sy_java_whitespace.h: Likewise.
16708         * modules/uni*/*: Bump version number of expected libunistring version.
16709         Reported by Simon Josefsson.
16710
16711 2011-01-09  Karl Heuer  <kwzh@gnu.org>
16712
16713         useless-if-before-free: fix typo in --help and make the internal,
16714         automatic version date update process work once again.
16715         --help output contained a NUL character instead of the
16716         backslash-zero that was intended.  Also, the "must lie within
16717         the first 8 lines" line is on line 9, and hence not getting
16718         automatically updated.
16719         * build-aux/useless-if-before-free: Fix the former by adding a
16720         backslash, and the latter by condensing the three lines of what-it-does
16721         to a single line, leaving one line of slack for the future.
16722
16723 2011-01-09  Bruno Haible  <bruno@clisp.org>
16724
16725         uniwidth/width: Fix width of U+1D173..U+1D17A.
16726         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
16727         symbolic_width, output_width_property_test): New functions.
16728         (main): Invoke output_nonspacing_property, output_width_property_test.
16729         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
16730         U+1D173..U+1D17A.
16731         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
16732         1.
16733         * modules/uniwidth/*: Bump version number of expected libunistring
16734         version.
16735         * modules/unilbrk/*: Likewise.
16736
16737 2011-01-08  Bruno Haible  <bruno@clisp.org>
16738
16739         uninorm tests: Preserve copyright of Unicode data file.
16740         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
16741         Mention modifications.
16742
16743 2011-01-08  Bruno Haible  <bruno@clisp.org>
16744
16745         gen-uni-tables: Prepare for Unicode 5.2.0.
16746         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
16747         (debug_output_lbp, output_lbp): Update.
16748
16749 2011-01-08  Bruno Haible  <bruno@clisp.org>
16750
16751         unilbrk: Clarify gen-uni-tables.c code.
16752         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
16753         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
16754         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
16755
16756 2011-01-07  Bruno Haible  <bruno@clisp.org>
16757
16758         strtod: Restore errno when successfully parsing Infinity or NaN.
16759         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
16760         restore the original errno.
16761
16762 2011-01-07  Bruno Haible  <bruno@clisp.org>
16763
16764         remove test: Avoid failure on HP-UX 11.
16765         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
16766
16767 2011-01-07  Bruno Haible  <bruno@clisp.org>
16768
16769         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
16770         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
16771         error code.
16772
16773 2011-01-07  Pádraig Brady <P@draigBrady.com>
16774
16775         ignore-value: fixup comments, and add Eric Blake
16776         as an author since he rewrote the macros.
16777         * lib/ignore-value.h (ignore_value):  State that
16778         we now support aggregates.  Also specify exactly
16779         when the GCC warn_unused_result feature was added.
16780
16781 2011-01-06  Eric Blake  <eblake@redhat.com>
16782
16783         ignore-value: support aggregate types
16784         * lib/ignore-value.h (ignore_value): Provide separate gcc
16785         definition.
16786         * modules/ignore-value-tests: New test module.
16787         * tests/test-ignore-value.c: New test.
16788
16789         maint.mk: improve sc_prohibit_strcmp regex
16790         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
16791         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
16792         definition of STRNEQ.
16793
16794         signal: work around Haiku issue with SIGBUS
16795         * lib/siglist.h: Add comment.
16796         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
16797         strsignal's favoring of SIGSEGV.
16798         * tests/test-signal.c (main): Avoid test failure.
16799         * doc/posix-headers/signal.texi (signal.h): Document the issue.
16800         Reported by Scott McCreary.
16801
16802         maint.mk: add pre-release check to ensure submodule commits are public
16803         * top/maint.mk (public-submodule-commit): New rule.
16804         (submodule-checks): New variable.
16805         (alpha beta stable): Depend on the variable.
16806
16807 2011-01-05  Pádraig Brady <P@draigBrady.com>
16808         and Jim Meyering  <meyering@redhat.com>
16809
16810         ignore-value: make ignore_value more generic; deprecate ignore_ptr
16811         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
16812         (ATTRIBUTE_DEPRECATED): Define.
16813         (_ignore_case): New function.
16814         (ignore_value): New macro, to replace the old function.
16815         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
16816         * modules/ignore-value (Depends-on): Add stdint.
16817
16818 2011-01-04  Eric Blake  <eblake@redhat.com>
16819
16820         doc: regenerate INSTALL
16821         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
16822         @firstparagraphindent support, now that autoconf dropped it.
16823         (INSTALL_PRELUDE): Reinstate old macro.
16824         * doc/install.texi: Resync from autoconf.
16825         * doc/INSTALL: Reflect recent autoconf update.
16826         * doc/INSTALL.ISO: Likewise.
16827         * doc/INSTALL.UTF-8: Likewise.
16828         Reported by Karl Berry.
16829
16830 2011-01-04  Bruce Korb  <address@hidden>
16831
16832         git-version-gen: avoid a sub-shell
16833         * build-aux/git-version-gen: Redirect stderr in `...` via
16834         "exec 2>...", rather than via an added sub-shell.
16835
16836 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
16837
16838         git-version-gen: use (...) rather than sh -c '...'
16839         * build-aux/git-version-gen: Rather than hard-coding a shell's name
16840         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
16841
16842 2011-01-03  Jim Meyering  <meyering@redhat.com>
16843
16844         git-version-gen: convert leading TABs to spaces
16845         * build-aux/git-version-gen: Expand leading TABs.
16846
16847         git-version-gen: handle failed "git rev-list"
16848         * build-aux/git-version-gen: Rather than leaking a "fatal" error
16849         from git and proceeding as if it had succeeded but printed no SHA1
16850         checksums, suppress the diagnostic and handle the failure.
16851         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
16852
16853         git-version-gen: include command name in one more diagnostic
16854         * build-aux/git-version-gen: When the required .tarball-version file
16855         was missing or unreadable, you might see the diagnostic from "cat",
16856         but no trace of the name of the invoking script.  Now, you still see
16857         the diagnostic from cat, but also get one from "git-version-gen: ".
16858         Inspired by a patch from Bruce Korb.
16859
16860         update-copyright: adjust test to match changed code
16861         * tests/test-update-copyright.sh: Change test's expected output
16862         to match new actual output.
16863
16864 2011-01-02  Bruno Haible  <bruno@clisp.org>
16865
16866         getlogin_r: Avoid test failure on HP-UX 11.
16867         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
16868         ERANGE when the second argument is zero.
16869         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
16870         portability problem.
16871
16872 2011-01-02  Bruce Korb  <bkorb@gnu.org>
16873
16874         * build-aux/update-copyright: doc Simon's changes
16875
16876 2011-01-02  Simon Josefsson  <simon@josefsson.org>
16877
16878         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
16879         environment variable.
16880
16881 2011-01-02  Bruno Haible  <bruno@clisp.org>
16882
16883         unigbrk: Avoid gcc warnings.
16884         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
16885         unused variable.
16886         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
16887         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
16888         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
16889         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
16890         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
16891         Change type of first argument to 'const char *'.
16892         (main): Remove unused variable.
16893         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
16894         type of first argument to 'const char *'.
16895         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
16896         Likewise.
16897         (main): Change type of variable 's'.
16898         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
16899         to 'int'.
16900
16901 2011-01-02  Bruno Haible  <bruno@clisp.org>
16902
16903         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
16904         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
16905         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
16906         bug.
16907         * lib/pwrite.c: Undo 2010-12-31 patch.
16908         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
16909
16910 2011-01-02  Bruno Haible  <bruno@clisp.org>
16911
16912         pread: Fix test whether it works.
16913         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
16914
16915 2011-01-02  Bruno Haible  <bruno@clisp.org>
16916
16917         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
16918         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
16919         ends in "6". Don't require a specific month name. Try also the locale
16920         names found on HP-UX 11 and Solaris 7.
16921
16922 2011-01-02  Bruno Haible  <bruno@clisp.org>
16923
16924         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
16925         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
16926         C linkage.
16927         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
16928
16929 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16930
16931         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
16932         for consistency, since the "cluster" term is not used elsewhere.
16933         * lib/unigbrk.in.h: Update name.
16934         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
16935         * lib/unigbrk/u16-grapheme-next.c: Update name.
16936         * lib/unigbrk/u16-grapheme-prev.c: Update name.
16937         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
16938         * lib/unigbrk/u32-grapheme-next.c: Update name.
16939         * lib/unigbrk/u32-grapheme-prev.c: Update name.
16940         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
16941         * lib/unigbrk/u8-grapheme-next.c: Update name.
16942         * lib/unigbrk/u8-grapheme-prev.c: Update name.
16943         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
16944         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
16945         Suggested by Bruno Haible.
16946
16947 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16948
16949         Remove module 'u8-grapheme-len' as too redundant with
16950         'u8-grapheme-next'.
16951         * modules/unigbrk/u8-grapheme-len: Delete file.
16952         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
16953         * lib/unigbrk.in.h: Remove prototype for deleted function.
16954         * lib/unigbrk/u8-grapheme-len.c: Delete file.
16955         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
16956
16957         Remove module 'u16-grapheme-len' as too redundant with
16958         'u16-grapheme-next'.
16959         * modules/unigbrk/u16-grapheme-len: Delete file.
16960         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
16961         * lib/unigbrk.in.h: Remove prototype for deleted function.
16962         * lib/unigbrk/u16-grapheme-len.c: Delete file.
16963         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
16964
16965         Remove module 'u32-grapheme-len' as too redundant with
16966         'u32-grapheme-next'.
16967         * modules/unigbrk/u32-grapheme-len: Delete file.
16968         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
16969         * lib/unigbrk.in.h: Remove prototype for deleted function.
16970         * lib/unigbrk/u32-grapheme-len.c: Delete file.
16971         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
16972
16973         Suggested by Bruno Haible.
16974
16975 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
16976
16977         * unigbrk.in.h: Fix typo: "ben" => "been".
16978         Reported by Bruno Haible.
16979
16980 2011-01-01  Jim Meyering  <meyering@redhat.com>
16981
16982         maint: update almost all copyright ranges to include 2011
16983         Run the new "make update-copyright" rule.
16984
16985 2011-01-01  Jim Meyering  <meyering@redhat.com>
16986
16987         maint: update-copyright: exempt doc/INSTALL*
16988         * Makefile (update-copyright): Also exclude doc/INSTALL*,
16989         since they are generated.  Suggested by Bruno Haible.
16990
16991 2011-01-01  Jim Meyering  <meyering@redhat.com>
16992
16993         maint: refine the update-copyright rule
16994         * Makefile (update-copyright): Also exclude any file that includes
16995         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
16996         code that merely generates the comment.
16997
16998 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
16999
17000         New module 'u8-grapheme-len'.
17001         * modules/unigbrk/u8-grapheme-len: New file.
17002         * modules/unigbrk/u8-grapheme-len-tests: New file.
17003         * lib/unigbrk.in.h: Add prototype for new function.
17004         * lib/unigbrk/u8-grapheme-len.c: New file.
17005         * tests/unigbrk/test-u8-grapheme-len.c: New file.
17006
17007         New module 'u16-grapheme-len'.
17008         * modules/unigbrk/u16-grapheme-len: New file.
17009         * modules/unigbrk/u16-grapheme-len-tests: New file.
17010         * lib/unigbrk.in.h: Add prototype for new function.
17011         * lib/unigbrk/u16-grapheme-len.c: New file.
17012         * tests/unigbrk/test-u16-grapheme-len.c: New file.
17013
17014         New module 'u32-grapheme-len'.
17015         * modules/unigbrk/u32-grapheme-len: New file.
17016         * modules/unigbrk/u32-grapheme-len-tests: New file.
17017         * lib/unigbrk.in.h: Add prototype for new function.
17018         * lib/unigbrk/u32-grapheme-len.c: New file.
17019         * tests/unigbrk/test-u32-grapheme-len.c: New file.
17020
17021         New module 'u8-grapheme-next'.
17022         * modules/unigbrk/u8-grapheme-next: New file.
17023         * modules/unigbrk/u8-grapheme-next-tests: New file.
17024         * lib/unigbrk.in.h: Add prototype for new function.
17025         * lib/unigbrk/u8-grapheme-next.c: New file.
17026         * tests/unigbrk/test-u8-grapheme-next.c: New file.
17027
17028         New module 'u16-grapheme-next'.
17029         * modules/unigbrk/u16-grapheme-next: New file.
17030         * modules/unigbrk/u16-grapheme-next-tests: New file.
17031         * lib/unigbrk.in.h: Add prototype for new function.
17032         * lib/unigbrk/u16-grapheme-next.c: New file.
17033         * tests/unigbrk/test-u16-grapheme-next.c: New file.
17034
17035         New module 'u32-grapheme-next'.
17036         * modules/unigbrk/u32-grapheme-next: New file.
17037         * modules/unigbrk/u32-grapheme-next-tests: New file.
17038         * lib/unigbrk.in.h: Add prototype for new function.
17039         * lib/unigbrk/u32-grapheme-next.c: New file.
17040         * tests/unigbrk/test-u32-grapheme-next.c: New file.
17041
17042         New module 'u8-grapheme-prev'.
17043         * modules/unigbrk/u8-grapheme-prev: New file.
17044         * modules/unigbrk/u8-grapheme-prev-tests: New file.
17045         * lib/unigbrk.in.h: Add prototype for new function.
17046         * lib/unigbrk/u8-grapheme-prev.c: New file.
17047         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
17048
17049         New module 'u16-grapheme-prev'.
17050         * modules/unigbrk/u16-grapheme-prev: New file.
17051         * modules/unigbrk/u16-grapheme-prev-tests: New file.
17052         * lib/unigbrk.in.h: Add prototype for new function.
17053         * lib/unigbrk/u16-grapheme-prev.c: New file.
17054         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
17055
17056         New module 'u32-grapheme-prev'.
17057         * modules/unigbrk/u32-grapheme-prev: New file.
17058         * modules/unigbrk/u32-grapheme-prev-tests: New file.
17059         * lib/unigbrk.in.h: Add prototype for new function.
17060         * lib/unigbrk/u32-grapheme-prev.c: New file.
17061         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
17062
17063         New module 'u8-grapheme-breaks'.
17064         * modules/unigbrk/u8-grapheme-breaks: New file.
17065         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
17066         * lib/unigbrk.in.h: Add prototype for new function.
17067         * lib/unigbrk/u8-grapheme-breaks.c: New file.
17068         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
17069
17070         New module 'u16-grapheme-breaks'.
17071         * modules/unigbrk/u16-grapheme-breaks: New file.
17072         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
17073         * lib/unigbrk.in.h: Add prototype for new function.
17074         * lib/unigbrk/u16-grapheme-breaks.c: New file.
17075         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
17076
17077         New module 'u32-grapheme-breaks'.
17078         * modules/unigbrk/u32-grapheme-breaks: New file.
17079         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
17080         * lib/unigbrk.in.h: Add prototype for new function.
17081         * lib/unigbrk/u32-grapheme-breaks.c: New file.
17082         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
17083
17084         New module 'ulc-grapheme-breaks'.
17085         * modules/unigbrk/ulc-grapheme-breaks: New file.
17086         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
17087         * m4/locale-ar.m4: New file.
17088         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
17089         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
17090         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
17091
17092 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
17093
17094         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
17095         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
17096         modified how this file was generated before I initially submitted
17097         the module, but failed to regenerate it.  This meant that several
17098         of the level2 entries were wrong.
17099         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
17100         Remove the division-by-2 that is folded into the table now that
17101         gbrkprop.h has been regenerated properly.  Now -1 entries are
17102         handled correctly.
17103
17104         New module 'unigbrk/uc-gbrk-prop-tests'.
17105         * modules/unigbrk/uc-gbrk-prop-tests: New file.
17106         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
17107         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
17108         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
17109
17110 2011-01-01  Bruno Haible  <bruno@clisp.org>
17111
17112         Avoid use of hexadecimal escapes.
17113         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
17114         instead of hexadecimal escapes.
17115
17116 2011-01-01  Jim Meyering  <meyering@redhat.com>
17117
17118         maint: new rule to update copyright year ranges
17119         * Makefile (update-copyright): New rule.
17120
17121         maint: indent with TABs in Makefile
17122         * Makefile: Expand leading sequences of spaces to TABs
17123
17124         version-etc: update the copyright year it reports
17125         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
17126
17127 2010-12-31  Bruno Haible  <bruno@clisp.org>
17128
17129         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
17130         * lib/isfinite.c (zerof, zerod, zerol): New variables.
17131         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
17132         zero.
17133
17134 2010-12-31  Bruno Haible  <bruno@clisp.org>
17135
17136         pwrite: Work around HP-UX 11.11 bug.
17137         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
17138         works and set REPLACE_PWRITE if not.
17139         * lib/pwrite.c (pwrite): Add an implementation that uses the system
17140         function.
17141         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
17142
17143 2010-12-31  Bruno Haible  <bruno@clisp.org>
17144
17145         pread: Work around HP-UX 11 bugs.
17146         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
17147         and set REPLACE_PREAD if not.
17148         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
17149
17150 2010-12-31  Eric Blake  <eblake@redhat.com>
17151
17152         nl_langinfo: fix YESEXPR on Irix 6.5
17153         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
17154         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
17155         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
17156         it.
17157
17158 2010-12-31  Bruno Haible  <bruno@clisp.org>
17159
17160         iconv: Document HP-UX 11 bug.
17161         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
17162
17163 2010-12-31  Bruno Haible  <bruno@clisp.org>
17164
17165         ldexpl: Fix link error on HP-UX 11.
17166         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
17167         LDEXPL_LIBM, using $ISNANL_LIBM.
17168
17169 2010-12-31  Eric Blake  <eblake@redhat.com>
17170
17171         ftello: avoid compilation failure with SunStudio c89
17172         * lib/ftello.c (ftello): Use lseek, not llseek.
17173
17174         tests: avoid failing coreutils tests on cygwin
17175         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
17176         (create_exe_shims_): Return 0 when skipping.
17177
17178 2010-12-31  Bruno Haible  <bruno@clisp.org>
17179
17180         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
17181         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
17182
17183 2010-12-31  Bruno Haible  <bruno@clisp.org>
17184
17185         waitpid: Fix link error in C++ mode.
17186         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
17187
17188 2010-12-31  Bruno Haible  <bruno@clisp.org>
17189
17190         isnan: Use GCC built-ins when possible.
17191         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
17192         __builtin_isnan.
17193         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
17194         (isnan): Define using GCC built-ins for GCC >= 4.0.
17195
17196 2010-12-31  Bruno Haible  <bruno@clisp.org>
17197
17198         isnand: Fix mistake.
17199         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
17200         __builtin_isnand.
17201
17202 2010-12-31  Bruno Haible  <bruno@clisp.org>
17203
17204         open: Avoid C++ error on HP-UX 11.
17205         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
17206
17207 2010-12-31  Bruno Haible  <bruno@clisp.org>
17208
17209         time_r: Add missing declarations on HP-UX 11.
17210         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
17211         instead of HAVE_LOCALTIME_R.
17212         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
17213         HAVE_LOCALTIME_R always.
17214         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
17215         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
17216         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
17217         HAVE_LOCALTIME_R.
17218         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
17219         * doc/posix-functions/localtime_r.texi: Likewise.
17220
17221 2010-12-29  Eric Blake  <eblake@redhat.com>
17222
17223         mountlist: tweak previous commit
17224         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
17225         Reported by Paul Eggert.
17226
17227         mountlist: fix local drive detection on cygwin
17228         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
17229         that works for cygwin.
17230
17231 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
17232
17233         ftoastr, snprintf: ftoastr + snprintf module
17234         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
17235         since the snprintf module now should be good enough here.
17236         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
17237         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
17238         and gl_MODULE_INDICATOR([snprintf]), but the former enables
17239         GNULIB_SNPRINTF only for the test directory, and the latter
17240         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
17241         seems to suffice by itself.
17242
17243 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
17244
17245         alloca: one step towards thread-safety
17246         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
17247         need for a static variable.  All callers changed.  This does not
17248         make the alloca replacement thread-safe, but it's one step.
17249
17250         tests: minor indenting change
17251         * tests/init.sh: Sync from coreutils housekeeping patch
17252         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
17253         to keep lines within 80 columns.
17254
17255 2010-12-28  Jim Meyering  <meyering@redhat.com>
17256
17257         regex: don't infloop on persistent failing calloc
17258         * lib/regexec.c (build_trtable): Return failure indication upon
17259         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
17260         In glibc, this was fixed for version 2.13:
17261         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
17262
17263 2010-12-28  Bruno Haible  <bruno@clisp.org>
17264             Paul Eggert <eggert@cs.ucla.edu>
17265
17266         linkat: Make implementation robust against system behaviour variations.
17267         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
17268         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
17269         way, and to -2 if it needs a generic runtime test.
17270         * lib/linkat.c (solaris_optimized_link_immediate,
17271         solaris_optimized_link_follow): New functions.
17272         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
17273         (check_same_link): Use it.
17274
17275 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
17276
17277         New module 'unigbrk/base'.
17278         * modules/unigbrk/base: New file.
17279         * lib/unigbrk.in.h: New file.
17280
17281         New module 'unigbrk/uc-gbrk-prop'.
17282         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
17283         * modules/unigbrk/uc-gbrk-prop: New file.
17284         * lib/unigbrk/gbrkprop.h: New file.
17285         * lib/unigbrk/uc-gbrk-prop.c: New file.
17286
17287         New module 'unigbrk/uc-is-grapheme-break'.
17288         * modules/unigbrk/uc-is-grapheme-break: New file.
17289         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
17290         * lib/unigbrk/uc-is-grapheme-break.c: New file.
17291         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
17292         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
17293         * tests/unigbrk/GraphemeBreakTest.txt: New file.
17294
17295         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
17296
17297 2010-12-27  Bruno Haible  <bruno@clisp.org>
17298
17299         linkat test: Avoid failure on Solaris 11 2010-11.
17300         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
17301
17302 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17303
17304         utimens: work around glibc rounding bug on more platforms
17305         * lib/utimens.c (fdutimens): Work around rounding bug even if
17306         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
17307         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
17308
17309 2010-12-27  Bruno Haible  <bruno@clisp.org>
17310
17311         select tests: Improve comments.
17312         * tests/test-select.c (do_select): Add comments.
17313
17314 2010-12-27  Bruno Haible  <bruno@clisp.org>
17315
17316         select tests: Safer way of handling timeout.
17317         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
17318         at every invocation.
17319
17320 2010-12-27  Bruno Haible  <bruno@clisp.org>
17321
17322         select tests: Use 'bool' where appropriate.
17323         * tests/test-select.c (connect_to_socket): Change argument type to
17324         'bool'.
17325
17326 2010-12-27  Bruno Haible  <bruno@clisp.org>
17327
17328         select tests: Use existing modules.
17329         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
17330         (configure.ac): Don't test for unistd.h.
17331         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
17332         declared in <unistd.h>.
17333
17334 2010-12-27  Bruno Haible  <bruno@clisp.org>
17335
17336         mbrtowc: Work around a Solaris 7 bug.
17337         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
17338         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
17339         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
17340         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
17341         MBRTOWC_NULL_ARG1_BUG.
17342         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
17343         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
17344         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
17345         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
17346
17347 2010-12-27  Jim Meyering  <meyering@redhat.com>
17348
17349         read-file.c: tweak syntax
17350         * lib/read-file.c (fread_file): Remove space after "*" in function
17351         definitions.
17352
17353 2010-12-27  Bruno Haible  <bruno@clisp.org>
17354
17355         times test: Avoid gcc warnings on OSF/1.
17356         * tests/test-times.c (main): Cast printf arguments from clock_t to
17357         'long int'.
17358
17359 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
17360
17361         utimens: work around glibc rounding bug on older Linux kernels
17362         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
17363         on Linux with a glibc whose utimes might not work, then work
17364         around a longstanding glibc bug involving rounding rather than
17365         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
17366         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17367
17368 2010-12-26  Bruno Haible  <bruno@clisp.org>
17369
17370         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
17371         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
17372         _GL_CXXALIAS_SYS.
17373         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17374
17375 2010-12-26  Bruno Haible  <bruno@clisp.org>
17376
17377         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
17378         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
17379         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
17380         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
17381         looking for the declaration.
17382         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
17383         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
17384         problem.
17385         * doc/posix-functions/inet_pton.texi: Likewise.
17386
17387 2010-12-26  Bruno Haible  <bruno@clisp.org>
17388
17389         arpa_inet: Use the common idioms with C++ support.
17390         * lib/arpa_inet.in.h: Include c++defs.h.
17391         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
17392         support.
17393         * modules/arpa_inet (Depends-on): Add c++defs.
17394         (Makefile.am): Substitute the contents of c++defs.h.
17395         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
17396         * modules/arpa_inet-c++-tests: New file.
17397         * tests/test-arpa_inet-c++.cc: New file.
17398
17399 2010-12-25  Bruno Haible  <bruno@clisp.org>
17400
17401         Fix more C++ link errors on Solaris 8.
17402         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
17403         $(LIB_EACCESS).
17404         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
17405         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
17406         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
17407         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
17408         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
17409
17410 2010-12-25  Bruno Haible  <bruno@clisp.org>
17411
17412         printf-posix: Fix link error when a non-GCC compiler is used.
17413         * lib/stdio.in.h (printf): When not using GCC, override printf
17414         correctly.
17415         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17416
17417 2010-12-25  Bruno Haible  <bruno@clisp.org>
17418
17419         strerror_r-posix: Update doc.
17420         * doc/posix-functions/strerror_r.texi: Update doc about the return
17421         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
17422
17423 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
17424
17425         utimens: simplify the logic of the previous change
17426         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
17427         This should not affect whether the test succeeds or fails.
17428
17429         utimens: configure better on hosts with NFS clock skew
17430         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
17431         uses the clock of the local host.  It might use the clock of the
17432         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
17433         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
17434
17435 2010-12-25  Bruno Haible  <bruno@clisp.org>
17436
17437         ptsname test: Avoid failure on Solaris.
17438         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
17439         open a pseudo-terminal; don't use BSD-style ptys.
17440         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
17441
17442 2010-12-25  Bruno Haible  <bruno@clisp.org>
17443
17444         ptsname: Avoid ERANGE failure on some systems.
17445         * lib/ptsname.c (buffer): Increase size.
17446
17447 2010-12-25  Bruno Haible  <bruno@clisp.org>
17448
17449         rename, renameat: Avoid test failures at NFS mounted locations.
17450         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
17451         so that subsequent mkdir calls succeed.
17452
17453 2010-12-25  Bruno Haible  <bruno@clisp.org>
17454
17455         iswblank: Fix C++ link error on Solaris 8.
17456         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
17457         _GL_FUNCDECL_SYS.
17458
17459 2010-12-25  Bruno Haible  <bruno@clisp.org>
17460
17461         unistd: Fix C++ link error on Solaris 8.
17462         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
17463
17464 2010-12-25  Bruno Haible  <bruno@clisp.org>
17465
17466         readlink doc: Mention an old glibc bug.
17467         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
17468
17469 2010-12-25  Bruno Haible  <bruno@clisp.org>
17470
17471         fcntl-h: Fix for use of C++ on glibc systems.
17472         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
17473         also on glibc systems in C++ mode.
17474         Reported by Gary V. Vaughan <gary@gnu.org>.
17475
17476 2010-12-25  Bruno Haible  <bruno@clisp.org>
17477
17478         roundl-ieee: Make it work on OSF/1 5.1 with cc.
17479         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
17480
17481 2010-12-25  Bruno Haible  <bruno@clisp.org>
17482
17483         truncl-ieee: Make it work on OSF/1 5.1 with cc.
17484         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
17485         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
17486         test whether truncl works according to ISO C 99 with IEC 60559.
17487         * m4/truncl-ieee.m4: New file.
17488         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
17489         m4/signbit.m4.
17490         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
17491
17492 2010-12-25  Bruno Haible  <bruno@clisp.org>
17493
17494         ceill-ieee: Make it work on OSF/1 5.1 with cc.
17495         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
17496         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
17497         test whether ceill works according to ISO C 99 with IEC 60559.
17498         * m4/ceill-ieee.m4: New file.
17499         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
17500         m4/signbit.m4.
17501         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
17502
17503 2010-12-25  Bruno Haible  <bruno@clisp.org>
17504
17505         Ensure all prerequisites of <wchar.h> are included.
17506         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
17507         before <wchar.h>.
17508         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
17509         gl_MBRLEN_NUL_RETVAL): Likewise.
17510         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17511         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
17512         AC_FUNC_MBRTOWC): Likewise.
17513         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17514         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
17515         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17516         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
17517         Likewise.
17518         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17519         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
17520         (gl_WCHAR_H): Improve comments.
17521         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
17522
17523 2010-12-25  Bruno Haible  <bruno@clisp.org>
17524
17525         strtok_r: Fix C syntax error in autoconf macro.
17526         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
17527         characters in test program.
17528
17529 2010-12-24  Bruno Haible  <bruno@clisp.org>
17530
17531         ceil, trunc, round: Fix gcc warnings.
17532         * lib/ceil.c (MIN): Undefine before redefining.
17533         * lib/trunc.c (MIN): Likewise.
17534         * lib/round.c (MIN): Likewise.
17535         Include <math.h> first.
17536
17537 2010-12-24  Bruno Haible  <bruno@clisp.org>
17538
17539         select tests: Avoid failures on OSF/1 5.1.
17540         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
17541         failure of closing the last socket; it may fail with ECONNRESET.
17542
17543 2010-12-24  Eric Blake  <eblake@redhat.com>
17544
17545         stdint: avoid HP-UX 10.20 preprocessor bug
17546         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
17547         than #if.
17548         * tests/test-floor2.c (main): Likewise.
17549         Reported by Peter O'Gorman.
17550
17551         pipe: make obsoletion transition easier
17552         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
17553         * modules/pipe (Files): Include revived file.
17554         (Include): Drop reference, to mirror getdate's behavior.
17555
17556 2010-12-24  Bruno Haible  <bruno@clisp.org>
17557
17558         sys_socket: Hide mismatch of declarations on NonStop Kernel.
17559         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
17560         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
17561         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17562
17563 2010-12-24  Bruno Haible  <bruno@clisp.org>
17564
17565         gethostname: Ensure declaration on NonStop Kernel.
17566         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
17567         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17568
17569 2010-12-24  Bruno Haible  <bruno@clisp.org>
17570
17571         sys_select: Ensure all necessary types on NonStop Kernel.
17572         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
17573         include <sys/time.h>.
17574         * doc/posix-headers/sys_select.texi: Mention that it's missing on
17575         NonStop Kernel.
17576         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17577
17578 2010-12-24  Bruno Haible  <bruno@clisp.org>
17579
17580         sys_select: Remove unneeded include.
17581         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
17582         have <sys/select.h>.
17583
17584 2010-12-24  Bruno Haible  <bruno@clisp.org>
17585
17586         gethostname: Provide a fallback for HOST_NAME_MAX.
17587         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
17588         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
17589         instead.
17590         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17591
17592 2010-12-24  Bruno Haible  <bruno@clisp.org>
17593
17594         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
17595         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
17596         (SA_RESTART): Likewise.
17597         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17598
17599 2010-12-24  Bruno Haible  <bruno@clisp.org>
17600
17601         signal: Define NSIG.
17602         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
17603         * tests/test-signal.c (nsig): New variable.
17604         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17605
17606 2010-12-24  Bruno Haible  <bruno@clisp.org>
17607
17608         rename, renameat: Avoid test failures on OSF/1 5.1.
17609         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
17610         alternative error codes.
17611         * tests/test-renameat.c (main): Likewise.
17612
17613 2010-12-24  Bruno Haible  <bruno@clisp.org>
17614
17615         *printf: Detect large precisions bug on Solaris 10/SPARC.
17616         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
17617         by Paul Eggert.
17618         * tests/test-snprintf-posix.h (test_function): Add this test code here
17619         too.
17620         * tests/test-sprintf-posix.h (test_function): Likewise.
17621         * tests/test-vasnprintf-posix.c (test_function): Likewise.
17622         * tests/test-vasprintf-posix.c (test_function): Likewise.
17623         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
17624         around by gnulib.
17625         * doc/posix-functions/printf.texi: Likewise.
17626         * doc/posix-functions/snprintf.texi: Likewise.
17627         * doc/posix-functions/sprintf.texi: Likewise.
17628         * doc/posix-functions/vfprintf.texi: Likewise.
17629         * doc/posix-functions/vprintf.texi: Likewise.
17630         * doc/posix-functions/vsnprintf.texi: Likewise.
17631         * doc/posix-functions/vsprintf.texi: Likewise.
17632         * doc/posix-functions/dprintf.texi: Undo last commit.
17633         * doc/posix-functions/vdprintf.texi: Likewise.
17634
17635 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
17636
17637         tests: port test-fdutimensat.c to Solaris 8
17638         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
17639         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
17640         On Solaris 8, it fails with errno == ENOSYS, because there is no
17641         futimens (so it can't use the fd), and there is no lutimens (so it
17642         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
17643
17644         vsnprintf: make more consistent with snprintf; doc fixes
17645
17646         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
17647         the byte count return problem was promoted from the snprintf-posix
17648         to the snprintf module.
17649         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17650         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
17651         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
17652         * tests/test-snprintf.c (main): Check the byte count returned.
17653         * tests/test-vsnprintf.c (main): Likewise.
17654
17655 2010-12-23  Eric Blake  <eblake@redhat.com>
17656
17657         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
17658         * modules/sigpipe (License): Relax license.
17659
17660 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17661
17662         doc: document Solaris printf bug with large float precisions
17663         * doc/posix-functions/dprintf.texi (dprintf):
17664         * doc/posix-functions/fprintf.texi (fprintf):
17665         * doc/posix-functions/printf.texi (printf):
17666         * doc/posix-functions/snprintf.texi (snprintf):
17667         * doc/posix-functions/sprintf.texi (sprintf):
17668         * doc/posix-functions/vdprintf.texi (vdprintf):
17669         * doc/posix-functions/vfprintf.texi (vfprintf):
17670         * doc/posix-functions/vprintf.texi (vprintf):
17671         * doc/posix-functions/vsnprintf.texi (vsnprintf):
17672         * doc/posix-functions/vsprintf.texi (vsprintf):
17673         Mention that these functions mishandle large floating point
17674         precisions on Solaris 10.  The same bug is also present in Solaris
17675         8, and I assume earlier.  This causes "cd gnulib-tests; make
17676         check" to fail on Solaris 8 (and I assume, later) when building
17677         the latest coreutils, in test-vasprintf-posix's call to
17678         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
17679         the wide flavors (e.g., wprintf) so this patch just updates the
17680         documentation for the narrow ones.
17681
17682         test-posixtm.c: add two tests
17683         * tests/test-posixtm.c: Add two tests, to highlight the
17684         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
17685         around this bug; this is merely to document it.
17686
17687 2010-12-22  Bruno Haible  <bruno@clisp.org>
17688
17689         getlogin_r: Work around portability problem on OSF/1.
17690         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
17691         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
17692         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
17693         test for a truncated result.
17694         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
17695         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
17696         * modules/getlogin_r (Depends-on): Add memchr.
17697         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
17698
17699 2010-12-22  Bruno Haible  <bruno@clisp.org>
17700
17701         ptsname: Avoid test failure on OSF/1 5.1.
17702         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
17703         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
17704         (same_slave): New function.
17705         (main): Use it to compare ptsname's result with the expected file name.
17706
17707 2010-12-22  Bruno Haible  <bruno@clisp.org>
17708
17709         Port extended stdio modules to HP NonStop Kernel.
17710         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
17711         macros.
17712         * lib/fbufmode.c: Update comments.
17713         * lib/fflush.c: Likewise.
17714         * lib/fpurge.c: Likewise.
17715         * lib/freadable.c: Likewise.
17716         * lib/freadahead.c: Likewise.
17717         * lib/freading.c: Likewise.
17718         * lib/freadptr.c: Likewise.
17719         * lib/freadseek.c: Likewise.
17720         * lib/fseeko.c: Likewise.
17721         * lib/fseterr.c: Likewise.
17722         * lib/fwritable.c: Likewise.
17723         * lib/fwriting.c: Likewise.
17724         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
17725
17726 2010-12-22  Bruno Haible  <bruno@clisp.org>
17727
17728         ttyname_r: Work around bug on OSF/1 5.1.
17729         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
17730         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
17731         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
17732         present.
17733         * lib/ttyname_r.c (ttyname_r): Update comments.
17734
17735 2010-12-22  Bruno Haible  <bruno@clisp.org>
17736
17737         round: Implement result sign according to IEEE 754.
17738         * lib/round.c (MIN, MINUS_ZERO): New macros.
17739         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
17740         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
17741         * tests/test-round-ieee.c (main): Likewise.
17742         * tests/test-roundl-ieee.c (main): Likewise.
17743
17744         trunc: Implement result sign according to IEEE 754.
17745         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
17746         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
17747         * tests/test-trunc2.c: Include minus-zero.h.
17748         (MINUS_ZERO): New macro.
17749         (trunc_reference): Keep in sync with lib/trunc.c.
17750         * tests/test-truncf2.c: Include minus-zero.h.
17751         (MINUS_ZERO): New macro.
17752         (truncf_reference): Keep in sync with lib/trunc.c.
17753         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
17754         * tests/test-trunc-ieee.c (main): Likewise.
17755         * tests/test-truncl-ieee.c (main): Likewise.
17756
17757         ceil: Implement result sign according to IEEE 754.
17758         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
17759         (FUNC): Return -0.0 for -1 < x < 0.
17760         * tests/test-ceil2.c: Include minus-zero.h.
17761         (MINUS_ZERO): New macro.
17762         (ceil_reference): Keep in sync with lib/ceil.c.
17763         * tests/test-ceilf2.c: Include minus-zero.h.
17764         (MINUS_ZERO): New macro.
17765         (ceilf_reference): Keep in sync with lib/ceil.c.
17766         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
17767         * tests/test-ceil-ieee.c (main): Likewise.
17768         * tests/test-ceill-ieee.c (main): Likewise.
17769
17770         floor: Implement result sign according to IEEE 754.
17771         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
17772         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
17773         * tests/test-floorf2.c (floorf_reference): Likewise.
17774         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
17775         * tests/test-floor-ieee.c (main): Likewise.
17776         * tests/test-floorl-ieee.c (main): Likewise.
17777
17778 2010-12-22  Bruno Haible  <bruno@clisp.org>
17779
17780         getaddrinfo: Update doc.
17781         * doc/posix-functions/gai_strerror.texi: Return type is also different
17782         on AIX and HP-UX.
17783
17784 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
17785
17786         getaddrinfo, inet_ntop: Update doc for Solaris.
17787         * doc/posix-functions/gai_strerror.texi: Return type is also an
17788         issue on Solaris 9 and earlier.
17789         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
17790         on Solaris 10 and earlier.
17791
17792 2010-12-21  Bruno Haible  <bruno@clisp.org>
17793
17794         New module 'roundl-ieee'.
17795         * modules/roundl-ieee: New file.
17796         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
17797         test whether roundl works according to ISO C 99 with IEC 60559.
17798         * m4/roundl-ieee.m4: New file.
17799         * modules/roundl-ieee-tests: New file.
17800         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
17801         * tests/test-roundl.c (main): Remove signbit tests.
17802         * modules/roundl-tests (Depends-on): Remove signbit.
17803         * doc/posix-functions/roundl.texi: Mention the new module.
17804
17805 2010-12-21  Bruno Haible  <bruno@clisp.org>
17806
17807         New module 'truncl-ieee'.
17808         * modules/truncl-ieee: New file.
17809         * modules/truncl-ieee-tests: New file.
17810         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
17811         * tests/test-truncl.c (main): Remove signbit tests.
17812         * modules/truncl-tests (Depends-on): Remove signbit.
17813         * doc/posix-functions/truncl.texi: Mention the new module.
17814
17815 2010-12-21  Bruno Haible  <bruno@clisp.org>
17816
17817         New module 'ceill-ieee'.
17818         * modules/ceill-ieee: New file.
17819         * modules/ceill-ieee-tests: New file.
17820         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
17821         * tests/test-ceill.c (main): Remove signbit tests.
17822         * modules/ceill-tests (Depends-on): Remove signbit.
17823         * doc/posix-functions/ceill.texi: Mention the new module.
17824
17825 2010-12-21  Bruno Haible  <bruno@clisp.org>
17826
17827         New module 'floorl-ieee'.
17828         * modules/floorl-ieee: New file.
17829         * modules/floorl-ieee-tests: New file.
17830         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
17831         * tests/test-floorl.c (main): Remove signbit tests.
17832         * modules/floorl-tests (Depends-on): Remove signbit.
17833         * doc/posix-functions/floorl.texi: Mention the new module.
17834
17835 2010-12-21  Bruno Haible  <bruno@clisp.org>
17836
17837         New module 'round-ieee'.
17838         * modules/round-ieee: New file.
17839         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
17840         whether round works according to ISO C 99 with IEC 60559.
17841         * m4/round-ieee.m4: New file.
17842         * modules/round-ieee-tests: New file.
17843         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
17844         * tests/test-round1.c (main): Remove signbit tests.
17845         * modules/round-tests (Depends-on): Remove 'signbit'.
17846         * doc/posix-functions/round.texi: Mention the new module.
17847
17848 2010-12-21  Bruno Haible  <bruno@clisp.org>
17849
17850         New module 'trunc-ieee'.
17851         * modules/trunc-ieee: New file.
17852         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
17853         whether trunc works according to ISO C 99 with IEC 60559.
17854         * m4/trunc-ieee.m4: New file.
17855         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
17856         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
17857         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
17858         * modules/trunc-ieee-tests: New file.
17859         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
17860         * tests/test-trunc1.c (main): Remove signbit tests.
17861         * modules/trunc-tests (Depends-on): Remove 'signbit'.
17862         * doc/posix-functions/trunc.texi: Mention the new module.
17863
17864 2010-12-21  Bruno Haible  <bruno@clisp.org>
17865
17866         New module 'ceil-ieee'.
17867         * modules/ceil-ieee: New file.
17868         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
17869         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
17870         ISO C 99 with IEC 60559.
17871         * m4/ceil-ieee.m4: New file.
17872         * modules/ceil (Files): Add lib/ceil.c.
17873         (Depends-on): Add 'float'.
17874         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17875         * lib/math.in.h (ceil): New declaration.
17876         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
17877         REPLACE_CEIL.
17878         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
17879         * modules/ceil-ieee-tests: New file.
17880         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
17881         * tests/test-math-c++.cc: Check the signature of 'ceil'.
17882         * doc/posix-functions/ceil.texi: Mention the new module.
17883
17884 2010-12-21  Bruno Haible  <bruno@clisp.org>
17885
17886         New module 'floor-ieee'.
17887         * modules/floor-ieee: New file.
17888         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
17889         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
17890         ISO C 99 with IEC 60559.
17891         * m4/floor-ieee.m4: New file.
17892         * modules/floor (Files): Add lib/floor.c.
17893         (Depends-on): Add 'float'.
17894         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
17895         * lib/math.in.h (floor): New declaration.
17896         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
17897         REPLACE_FLOOR.
17898         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
17899         * modules/floor-ieee-tests: New file.
17900         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
17901         * tests/test-math-c++.cc: Check the signature of 'floor'.
17902         * doc/posix-functions/floor.texi: Mention the new module.
17903
17904 2010-12-21  Bruno Haible  <bruno@clisp.org>
17905
17906         New module 'roundf-ieee'.
17907         * modules/roundf-ieee: New file.
17908         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
17909         test whether roundf works according to ISO C 99 with IEC 60559.
17910         * m4/roundf-ieee.m4: New file.
17911         * modules/roundf-ieee-tests: New file.
17912         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
17913         * tests/test-roundf1.c (main): Remove signbit tests.
17914         * modules/roundf-tests (Depends-on): Remove 'signbit'.
17915         * doc/posix-functions/roundf.texi: Mention the new module.
17916
17917 2010-12-21  Bruno Haible  <bruno@clisp.org>
17918
17919         New module 'truncf-ieee'.
17920         * modules/truncf-ieee: New file.
17921         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
17922         test whether truncf works according to ISO C 99 with IEC 60559.
17923         * m4/truncf-ieee.m4: New file.
17924         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
17925         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
17926         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
17927         * modules/truncf-ieee-tests: New file.
17928         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
17929         * tests/test-truncf1.c (main): Remove signbit tests.
17930         * modules/truncf-tests (Depends-on): Remove 'signbit'.
17931         * doc/posix-functions/truncf.texi: Mention the new module.
17932
17933 2010-12-21  Bruno Haible  <bruno@clisp.org>
17934
17935         New module 'ceilf-ieee'.
17936         * modules/ceilf-ieee: New file.
17937         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
17938         test whether ceilf works according to ISO C 99 with IEC 60559.
17939         * m4/ceilf-ieee.m4: New file.
17940         * modules/ceilf-ieee-tests: New file.
17941         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
17942         * tests/test-ceilf1.c (main): Remove signbit tests.
17943         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
17944         * doc/posix-functions/ceilf.texi: Mention the new module.
17945
17946 2010-12-21  Bruno Haible  <bruno@clisp.org>
17947
17948         New module 'floorf-ieee'.
17949         * modules/floorf-ieee: New file.
17950         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
17951         test whether floorf works according to ISO C 99 with IEC 60559.
17952         * m4/floorf-ieee.m4: New file.
17953         * modules/floorf-ieee-tests: New file.
17954         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
17955         * tests/test-floorf1.c (main): Remove signbit tests.
17956         * modules/floorf-tests (Depends-on): Remove 'signbit'.
17957         * doc/posix-functions/floorf.texi: Mention the new module.
17958
17959 2010-12-21  Bruno Haible  <bruno@clisp.org>
17960
17961         Support for minus zero in autoconf macros.
17962         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
17963         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
17964         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
17965         * tests/minus-zero.h: Update comments.
17966
17967 2010-12-21  Bruno Haible  <bruno@clisp.org>
17968
17969         Tests for module 'ceil'.
17970         * modules/ceil-tests: New file.
17971         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
17972         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
17973
17974 2010-12-21  Bruno Haible  <bruno@clisp.org>
17975
17976         Tests for module 'floor'.
17977         * modules/floor-tests: New file.
17978         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
17979         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
17980
17981 2010-12-21  Bruno Haible  <bruno@clisp.org>
17982
17983         math: Fix indentation.
17984         * lib/math.in.h (floorf): Fix indentation.
17985
17986 2010-12-21  Bruno Haible  <bruno@clisp.org>
17987
17988         Fix cross-compilation guesses on Solaris.
17989         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
17990         not match "solaris2.10".
17991         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17992         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
17993         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
17994
17995 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
17996
17997         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
17998         This fixes a problem observed with the latest coreutils snapshot
17999         that caused a test to fail on Solaris 8.  src/csplit.c's call
18000         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
18001         earlier, instead of returning the number of bytes that would have
18002         been generated; this causes csplit to incorrectly report memory
18003         exhaustion.
18004         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
18005         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
18006         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
18007         comments to match.
18008         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
18009         Fix typo in matching older versions of Solaris: "solaris2.10"
18010         is matched by the shell pattern "solaris2.[0-9]*".  This matters
18011         only for guessing while cross-compiling.
18012         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
18013
18014 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
18015
18016         ftoastr: fix comment again
18017         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
18018         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
18019         Also, simplify example a bit by using flags = 0.
18020
18021 2010-12-20  Bruno Haible  <bruno@clisp.org>
18022
18023         round*, trunc*: Update documentation regarding glibc.
18024         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
18025         * doc/posix-functions/round.texi: Likewise.
18026         * doc/posix-functions/roundl.texi: Likewise.
18027         * doc/posix-functions/truncf.texi: Likewise.
18028         * doc/posix-functions/trunc.texi: Likewise.
18029         * doc/posix-functions/truncl.texi: Likewise.
18030
18031 2010-12-20  Bruno Haible  <bruno@clisp.org>
18032
18033         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
18034         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
18035         * doc/posix-functions/round.texi: Likewise.
18036         * doc/posix-functions/roundl.texi: Likewise.
18037
18038 2010-12-20  Bruno Haible  <bruno@clisp.org>
18039
18040         ttyname_r: Add missing declaration on HP-UX 11.
18041         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
18042         HAVE_TTYNAME_R.
18043         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
18044         declared. Set HAVE_TTYNAME_R always.
18045         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18046         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
18047         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
18048         HAVE_TTYNAME_R.
18049         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
18050
18051 2010-12-20  Bruno Haible  <bruno@clisp.org>
18052
18053         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
18054         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
18055         * doc/posix-functions/getlogin_r.texi: Likewise.
18056         * tests/test-getlogin.c: Include <errno.h>.
18057         (main): Avoid test failure on HP-UX 11.11.
18058         * tests/test-getlogin_r.c (main): Likewise.
18059
18060 2010-12-20  Bruno Haible  <bruno@clisp.org>
18061
18062         getlogin_r: Add missing declaration on HP-UX 11.
18063         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
18064         declared also when it exists as a function.
18065         * doc/posix-functions/getlogin_r.texi: Document this workaround.
18066
18067 2010-12-20  Bruno Haible  <bruno@clisp.org>
18068
18069         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
18070         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
18071         through wcrtomb.
18072
18073 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
18074
18075         ftoastr: fix comment
18076         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
18077         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
18078
18079 2010-12-19  Bruno Haible  <bruno@clisp.org>
18080
18081         isnan: Ensure it is a macro.
18082         * lib/math.in.h (isnan): Define as a macro if not already a macro.
18083         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
18084         Solaris.
18085
18086 2010-12-19  Bruno Haible  <bruno@clisp.org>
18087
18088         ldexpl test: Fix link error on OSF/1 5.1.
18089         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
18090
18091 2010-12-19  Bruno Haible  <bruno@clisp.org>
18092
18093         wctype: Make it work in C++ mode on OSF/1 5.1.
18094         * lib/wctype.in.h (iswblank): Declare but not define here.
18095         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
18096         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
18097         * modules/wctype (Files): Add lib/iswblank.c.
18098
18099 2010-12-19  Bruno Haible  <bruno@clisp.org>
18100
18101         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
18102         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
18103         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
18104
18105 2010-12-19  Bruno Haible  <bruno@clisp.org>
18106
18107         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
18108         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
18109         _POSIX_PII_SOCKET.
18110         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
18111         * doc/posix-functions/recvfrom.texi: Likewise.
18112         * doc/posix-functions/send.texi: Likewise.
18113         * doc/posix-functions/sendto.texi: Likewise.
18114
18115 2010-12-19  Bruno Haible  <bruno@clisp.org>
18116
18117         tcgetsid: Add missing declaration on OSF/1 5.1.
18118         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
18119         HAVE_TCGETSID.
18120         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
18121         Don't set HAVE_TCGETSID.
18122         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
18123         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
18124         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
18125         HAVE_TCGETSID.
18126         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
18127
18128 2010-12-19  Bruno Haible  <bruno@clisp.org>
18129
18130         stdio: Fix problem with popen() declaration on OSF/1 5.1.
18131         * lib/stdio.in.h: During the include_next statement, let recursive
18132         includes of this file include only the system header file.
18133
18134 2010-12-19  Bruno Haible  <bruno@clisp.org>
18135
18136         iconv_open: Fix regression from 2010-12-04.
18137         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
18138         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
18139
18140 2010-12-19  Bruno Haible  <bruno@clisp.org>
18141
18142         stdbool test: Avoid a gcc warning.
18143         * tests/test-stdbool.c (main): Fail if e1 is false.
18144         Reported by Jim Meyering.
18145
18146 2010-12-19  Jim Meyering  <meyering@redhat.com>
18147
18148         setenv: restore to working order
18149         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
18150         mistakenly removed.
18151         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
18152         HAVE_SETENV.
18153         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
18154         HAVE_SETENV.
18155
18156 2010-12-19  Bruno Haible  <bruno@clisp.org>
18157
18158         Document some different function declarations on OSF/1 5.1.
18159         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
18160         * doc/posix-functions/inet_ntop.texi: Likewise.
18161         * doc/posix-functions/gethostname.texi: Likewise.
18162         * lib/unistd.in.h (gethostname): Update comment.
18163
18164 2010-12-19  Bruno Haible  <bruno@clisp.org>
18165
18166         doc: Mention vasprintf-posix module.
18167         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
18168         the 'vasprintf-posix' module.
18169         * doc/glibc-functions/vasprintf.texi: Likewise.
18170
18171 2010-12-19  Bruno Haible  <bruno@clisp.org>
18172
18173         unsetenv: Add missing declaration on OSF/1 5.1.
18174         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
18175         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
18176         Don't set HAVE_UNSETENV. In the test program, set _BSD.
18177         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
18178         not HAVE_UNSETENV.
18179         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
18180         HAVE_UNSETENV.
18181         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
18182
18183 2010-12-19  Bruno Haible  <bruno@clisp.org>
18184
18185         setenv: Add missing declaration on OSF/1 5.1.
18186         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
18187         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
18188         declared. Don't set HAVE_SETENV.
18189         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
18190         not HAVE_SETENV.
18191         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
18192         HAVE_SETENV.
18193         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
18194
18195 2010-12-19  Bruno Haible  <bruno@clisp.org>
18196
18197         nl_langinfo tests: Avoid gcc warning.
18198         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
18199
18200 2010-12-19  Bruno Haible  <bruno@clisp.org>
18201
18202         mknod: Avoid error in C++ mode on OSF/1 with GCC.
18203         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
18204         _GL_CXXALIAS_SYS.
18205
18206 2010-12-19  Bruno Haible  <bruno@clisp.org>
18207
18208         stdbool: Relax test.
18209         * tests/test-stdbool.c (e): Don't require that casts from a variable's
18210         address to 'bool' work in static initializer, for compilers other than
18211         GCC.
18212
18213 2010-12-19  Bruno Haible  <bruno@clisp.org>
18214
18215         ftello: Add missing declaration on OSF/1 5.1.
18216         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
18217         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
18218         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
18219         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
18220         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
18221
18222 2010-12-19  Bruno Haible  <bruno@clisp.org>
18223
18224         fseeko: Add missing declaration on OSF/1 5.1.
18225         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
18226         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
18227         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
18228         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
18229         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
18230
18231 2010-12-19  Bruno Haible  <bruno@clisp.org>
18232
18233         fchdir: Add missing declaration on OSF/1 5.1.
18234         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
18235         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
18236         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
18237         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
18238         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
18239
18240 2010-12-19  Bruno Haible  <bruno@clisp.org>
18241
18242         relocatable-prog-wrapper: Separate from relocatable-prog.
18243         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
18244         uninstall-relocwrapper rule here.
18245         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
18246         Reported by Ian Beckwith <ianb@erislabs.net>.
18247
18248 2010-12-19  Bruno Haible  <bruno@clisp.org>
18249
18250         unistr/u8-mbsnlen: Add missing dependency.
18251         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
18252         Reported by Ian Beckwith <ianb@erislabs.net>.
18253
18254 2010-12-19  Bruno Haible  <bruno@clisp.org>
18255
18256         iconv: Make it possible again to use this module without 'iconv-h'.
18257         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
18258         if it is not defined.
18259         Reported by Ian Beckwith <ianb@erislabs.net>.
18260
18261 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
18262
18263         acl: port to Solaris 8 when copying from tmpfs to ufs
18264         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
18265         error number.  Problem observed on Solaris 8 with latest
18266         coreutils, with "mv A B", where A is on a tmpfs file system and B
18267         is on a ufs file system.  This caused coreutils' mv/part-symlink
18268         test to fail.
18269
18270         tests: set fail=0 at start
18271         * tests/init.sh (setup_): Move fail=0 initialization here ...
18272         (mktempd_): ... from here, so that tests can rely on fail being
18273         set to 0 initially.  This fixes a problem in coreutils; see:
18274         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
18275
18276 2010-12-18  Bruno Haible  <bruno@clisp.org>
18277
18278         memmem-simple: Stylistic changes.
18279         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
18280         Fix preprocessor directive indentation.
18281
18282 2010-12-15  Pádraig Brady <P@draigBrady.com>
18283
18284         memmem, memmem-simple: reorganize and expand empty needle check
18285         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
18286         functional checks to memmem-simple so that one has a fully functional
18287         memmem by using just this module.
18288         Restrict the performance only check to the memmem module.
18289         Also expand the empty needle check to ensure the correct
18290         pointer is returned, not just a non NULL pointer.
18291         * doc/glibc-functions/memmem.texi: Rearrange the portability
18292         documentation to correlate with the rearranged checks.
18293         Clarify exactly how the memmem and memmem-simple modules
18294         relate to each other.
18295
18296 2010-12-15  Pádraig Brady <P@draigBrady.com>
18297             Bruno Haible  <bruno@clisp.org>
18298
18299         Improve cross-compilation guesses for uClibc.
18300         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
18301         that uClibc does not have the glibc bug.
18302         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
18303         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
18304
18305 2010-12-14  Eric Blake  <eblake@redhat.com>
18306
18307         configmake: provide fallbacks for oldest supported autotools
18308         * m4/configmake.m4: New file.
18309         * modules/configmake (Files): Ship it.
18310         (configure.ac): Use it to guarantee fallbacks.
18311
18312 2010-12-13  Pádraig Brady <P@draigBrady.com>
18313
18314         read-file: Improve handling of large files
18315         * lib/read-file.c (fread_file): Minimize realloc()s
18316         for regular files, and better manage sizes around SIZE_MAX.
18317
18318 2010-12-13  Eric Blake  <eblake@redhat.com>
18319
18320         cloexec, fcntl: relax license
18321         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
18322         consent from all contributors.
18323         * modules/fcntl (License): Likewise.
18324
18325 2010-12-10  Bruno Haible  <bruno@clisp.org>
18326
18327         Tests for module 'pipe-posix'.
18328         * modules/pipe-posix-tests: New file.
18329         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
18330
18331 2010-12-10  Bruno Haible  <bruno@clisp.org>
18332
18333         pipe-posix: Make it work in C++ mode.
18334         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
18335         (pipe): Use common idiom, not a macro definition.
18336         * lib/pipe.c: New file.
18337         * m4/pipe.m4: New file.
18338         * modules/pipe-posix (Description): Enhance.
18339         (Files): Add lib/pipe.c, m4/pipe.m4.
18340         (configure.ac): Invoke gl_FUNC_PIPE.
18341         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
18342         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
18343         * tests/test-unistd-c++.cc: Check the signature of pipe.
18344
18345 2010-12-10  Bruno Haible  <bruno@clisp.org>
18346
18347         Rename module 'pipe' to 'spawn-pipe'.
18348         * modules/spawn-pipe: New file, renamed from modules/pipe.
18349         (Files, configure.ac, Makefile.am): Update.
18350         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
18351         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
18352         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
18353         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
18354         "spawn-pipe.h" instead of "pipe.h".
18355         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
18356         to gl_SPAWN_PIPE.
18357         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
18358         (Files, Makefile.am): Update.
18359         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
18360         Update.
18361         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
18362         Include "spawn-pipe.h" instead of "pipe.h".
18363         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
18364         * lib/javacomp.c: Likewise.
18365         * lib/javaversion.c: Likewise.
18366         * lib/pipe-filter-gi.c: Likewise.
18367         * lib/pipe-filter-ii.c: Likewise.
18368         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
18369         * modules/javacomp (Depends-on): Likewise.
18370         * modules/javaversion (Depends-on): Likewise.
18371         * modules/pipe-filter-gi (Depends-on): Likewise.
18372         * modules/pipe-filter-ii (Depends-on): Likewise.
18373         * MODULES.html.sh (Executing programs): Update.
18374         * NEWS: Mention the change.
18375
18376 2010-12-10  Eric Blake  <eblake@redhat.com>
18377
18378         pipe-posix: new module
18379         * modules/pipe-posix: New file.
18380         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
18381         (gl_UNISTD_H): Check for declaration.
18382         * modules/unistd (Makefile.am): Substitute it.
18383         * lib/unistd.in.h (pipe): Provide it for mingw.
18384         * doc/posix-functions/pipe.texi (pipe): Update documentation.
18385         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
18386
18387 2010-12-07  Bruno Haible  <bruno@clisp.org>
18388
18389         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
18390         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
18391         u8_strcmp_gnu.
18392         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
18393
18394 2010-12-06  Bruno Haible  <bruno@clisp.org>
18395
18396         Update internal documentation.
18397         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
18398
18399 2010-12-04  Bruno Haible  <bruno@clisp.org>
18400
18401         Put more information about failed tests into the test return codes.
18402         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
18403         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
18404         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
18405         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
18406         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
18407         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18408         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18409         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
18410         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
18411         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
18412         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
18413         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
18414         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
18415         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18416         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
18417         returns a bit mask.
18418         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
18419         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
18420         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
18421         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
18422         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
18423         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
18424         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
18425         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
18426         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
18427         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
18428         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
18429         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
18430         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
18431         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
18432         * m4/link.m4 (gl_FUNC_LINK): Likewise.
18433         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
18434         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
18435         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
18436         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18437         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
18438         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
18439         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
18440         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
18441         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
18442         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18443         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
18444         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
18445         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
18446         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
18447         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
18448         gl_PRINTF_PRECISION): Likewise.
18449         * m4/regex.m4 (gl_REGEX): Likewise.
18450         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18451         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18452         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
18453         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18454         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
18455         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18456         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
18457         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
18458         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18459         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18460         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
18461         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
18462         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
18463         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18464         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18465         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
18466         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
18467         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18468         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
18469         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
18470         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
18471         enumerated value.
18472         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
18473
18474 2010-12-04  Bruno Haible  <bruno@clisp.org>
18475
18476         Update for Solaris 11 2010-11.
18477         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
18478         Express, released in November 2010.
18479
18480 2010-12-04  Bruno Haible  <bruno@clisp.org>
18481
18482         nproc: Relax license.
18483         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
18484         and Paul Eggert.
18485         Requested by Ludovic Courtès <ludo@gnu.org>.
18486
18487 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
18488
18489         utimecmp: fine-grained src to nearby coarse-grained dest
18490
18491         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
18492         and the source is on a file system with higher-resolution time
18493         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
18494         not work, and the time stamps are close together, the algorithm to
18495         determine the exact resolution from the read-back mtime was buggy:
18496         it had a "!=" where it should have had an "==".  This bug has been
18497         in the code ever since it was introduced to gnulib.
18498         Problem reported by Dan Jacobson in
18499         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
18500
18501 2010-11-30  Bruno Haible  <bruno@clisp.org>
18502
18503         strerror_r-posix: Fix autoconf test.
18504         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
18505
18506 2010-11-28  Bruno Haible  <bruno@clisp.org>
18507             Paul Eggert  <eggert@cs.ucla.edu>
18508
18509         Tests for module 'getdomainname'.
18510         * modules/getdomainname-tests: New file.
18511         * tests/test-getdomainname.c: New file, based on
18512         tests/test-gethostname.c.
18513
18514 2010-11-28  Bruno Haible  <bruno@clisp.org>
18515             Paul Eggert  <eggert@cs.ucla.edu>
18516
18517         getdomainname: Use the system function when possible.
18518         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
18519         (getdomainname): Replace if needed. Provide the declaration if it is
18520         missing. Don't use _GL_CXXALIAS_SYS_CAST.
18521         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
18522         (getdomainname): When the system has getdomainname, call the system
18523         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
18524         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
18525         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
18526         found in libnsl. Look for the declaration also in <netdb.h>. Replace
18527         the function if its second argument is of type 'int' or if it is found
18528         in libnsl.
18529         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
18530         <sys/systeminfo.h> and sysinfo().
18531         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
18532         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18533         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
18534         HAVE_GETDOMAINNAME.
18535         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
18536         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
18537         * doc/glibc-functions/getdomainname.texi: Document the problems with
18538         the getdomainname declaration.
18539
18540 2010-11-28  Bruno Haible  <bruno@clisp.org>
18541
18542         sys_socket: Ensure ss_family field on AIX.
18543         * lib/sys_socket.in.h (ss_family): New macro definition.
18544         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
18545         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
18546         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
18547         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18548         * modules/sys_socket (Makefile.am): Substitute
18549         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
18550         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
18551
18552 2010-11-27  Bruno Haible  <bruno@clisp.org>
18553
18554         readline: Improve configure output.
18555         * m4/readline.m4 (gl_FUNC_READLINE): Make the
18556         "checking for readline..." result understandable.
18557
18558 2010-11-27  Bruno Haible  <bruno@clisp.org>
18559
18560         *printf-posix: Detect a bug on Solaris 10/x86.
18561         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
18562         for floating-point output.
18563         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
18564         directive.
18565         * tests/test-snprintf-posix.h (test_function): Likewise.
18566         * tests/test-sprintf-posix.h (test_function): Likewise.
18567         * tests/test-vasprintf-posix.c (test_function): Likewise.
18568         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
18569         * doc/posix-functions/printf.texi: Likewise.
18570         * doc/posix-functions/snprintf.texi: Likewise.
18571         * doc/posix-functions/sprintf.texi: Likewise.
18572         * doc/posix-functions/vfprintf.texi: Likewise.
18573         * doc/posix-functions/vprintf.texi: Likewise.
18574         * doc/posix-functions/vsnprintf.texi: Likewise.
18575         * doc/posix-functions/vsprintf.texi: Likewise.
18576         * doc/glibc-functions/obstack_printf.texi: Likewise.
18577         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
18578
18579 2010-11-27  Bruno Haible  <bruno@clisp.org>
18580
18581         Fix link error when module libunistring-optional is in use.
18582         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
18583         * modules/striconveha-tests (Makefile.am): Likewise.
18584
18585 2010-11-27  Bruno Haible  <bruno@clisp.org>
18586
18587         regex: Mention link dependencies.
18588         * modules/regex (Link): New section.
18589         * modules/rpmatch (Link): Likewise.
18590         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
18591
18592 2010-11-27  Bruno Haible  <bruno@clisp.org>
18593
18594         ftoastr: Fix compilation error on Solaris.
18595         * lib/ftoastr.c: Include <config.h>.
18596
18597 2010-11-27  Bruno Haible  <bruno@clisp.org>
18598
18599         getloadavg: Update documentation.
18600         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
18601
18602 2010-11-27  Bruno Haible  <bruno@clisp.org>
18603
18604         sys_socket: Fix test whether the functions are declared.
18605         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
18606         not <sys/select.h>.
18607
18608 2010-11-27  Bruno Haible  <bruno@clisp.org>
18609
18610         getpass: Make sure to get system declaration on some platforms.
18611         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
18612         gl_USE_SYSTEM_EXTENSIONS.
18613         * modules/getpass (Depends-on): Add extensions.
18614
18615 2010-11-26  Bruno Haible  <bruno@clisp.org>
18616
18617         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
18618         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
18619         'iconv' module is present.
18620         (ICONV_CONST): New macro.
18621         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
18622         ICONV_CONST.
18623         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
18624         set ICONV_CONST.
18625         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
18626         here.
18627         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
18628         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
18629         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
18630         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
18631         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
18632         present.
18633
18634 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
18635
18636         ftoastr: comment fix
18637         * lib/ftoastr.c: "little" -> "little or no" in comment
18638
18639 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
18640
18641         stdint: port to GCC 4.3 + OSX + Octave
18642         On this platform, stdint.h is buggy and defines int64_t to long
18643         long int.  The replacement defined it to long int, causing
18644         problems with C++ style name mangling.  Instead, trust the system
18645         definition if INT64_MAX is defined, and likewise for the unsigned
18646         variant.   Problem reported by Jarno Rajahalme in
18647         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
18648         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
18649         and don't mess with int64_t and INT64_MAX in this case.
18650         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
18651
18652 2010-11-24  Bruno Haible  <bruno@clisp.org>
18653
18654         doc: Corrections regarding MacOS X 10.4 and 10.5.
18655         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
18656         MacOS X.
18657         Reported by Simon Josefsson.
18658
18659 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
18660
18661         Uninstall ".bin" files installed by relocwrapper.
18662         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
18663         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
18664         unless it is already there.
18665
18666 2010-11-21  Bruno Haible  <bruno@clisp.org>
18667
18668         Update for NetBSD 5.0.
18669         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18670         NetBSD; the test fails on NetBSD 5.0.
18671         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18672         about NetBSD.
18673
18674 2010-11-21  Bruno Haible  <bruno@clisp.org>
18675
18676         Update for HP-UX 11.23 and HP-UX 11.31.
18677         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
18678         HP-UX.
18679
18680 2010-11-21  Bruno Haible  <bruno@clisp.org>
18681
18682         Update for MacOS X 10.5.
18683         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
18684         MacOS X; the test fails on MacOS X 10.5.8.
18685         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
18686         about MacOS X.
18687
18688 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
18689
18690         bootstrap: add bootstrap_sync option.
18691         See discussion at
18692         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
18693         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
18694         * build-aux/bootstrap: Accept --bootstrap-sync to update
18695         bootstrap if it is not identical to the local gnulib's
18696         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
18697         enable this by default.  Accept --no-bootstrap-sync to disable
18698         it.
18699
18700 2010-11-20  Bruno Haible  <bruno@clisp.org>
18701
18702         Ensure that <features.h> is included before __GLIBC__ is tested.
18703         * lib/printf-parse.h: Include <features.h>.
18704         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
18705         Reported by Mike Frysinger <vapier@gentoo.org>.
18706
18707         Ensure that <features.h> is included before __GLIBC__ is tested.
18708         * lib/wchar.in.h: Include <features.h>.
18709         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
18710         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
18711         Reported by Mike Frysinger <vapier@gentoo.org>.
18712
18713         Ensure that <features.h> is included before __GLIBC__ is tested.
18714         * lib/arpa_inet.in.h: Include <features.h>.
18715         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
18716         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
18717         Reported by Mike Frysinger <vapier@gentoo.org>.
18718
18719         Ensure that <features.h> is included before __GLIBC__ is tested.
18720         * build-aux/link-warning.h: Include <features.h>.
18721         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
18722         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
18723         Reported by Mike Frysinger <vapier@gentoo.org>.
18724
18725         Ensure that <features.h> is included before __GLIBC__ is tested.
18726         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
18727         Reported by Mike Frysinger <vapier@gentoo.org>.
18728
18729 2010-11-20  Bruno Haible  <bruno@clisp.org>
18730
18731         memmem: Fix autoconf test.
18732         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
18733
18734 2010-11-20  Bruno Haible  <bruno@clisp.org>
18735
18736         Port to uClibc.
18737         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
18738         * lib/fcntl.in.h: Likewise.
18739         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
18740         * lib/mbrtowc.c (mbrtowc): Likewise.
18741         * lib/relocatable.c (find_shared_library_fullname): Likewise.
18742         * lib/strerror_r.c: Likewise.
18743         * lib/unistr/u8-strnlen.c: Likewise.
18744         * lib/vasnprintf.c (decimal_point_char): Likewise.
18745         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18746         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
18747         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
18748         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
18749         * tests/test-sigaction.c (handler, main): Likewise.
18750         * lib/freading.h: Treat uClibc like a non-glibc platform.
18751         * lib/freading.c: Likewise.
18752         * lib/gettext.h: Likewise.
18753         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
18754         Likewise.
18755         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
18756         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
18757         * lib/propername.c (proper_name_utf8): Likewise.
18758         * lib/spawn.in.h: Likewise.
18759         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
18760         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
18761         mem_cd_iconveh_internal): Likewise.
18762         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
18763         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
18764         strstr, strcasestr): Likewise.
18765         * lib/unicodeio.c (unicode_to_mb): Likewise.
18766         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
18767         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
18768         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
18769         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
18770         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
18771         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
18772         * lib/unistr/u8-stpncpy.c: Likewise.
18773         * lib/vasnprintf.c (VASNPRINTF): Likewise.
18774         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
18775         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18776         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18777         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
18778         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
18779         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
18780         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
18781         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
18782         Likewise.
18783         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
18784         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
18785         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18786         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18787         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18788         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18789         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18790         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
18791         * tests/test-getopt.h (OPTIND_MIN): Likewise.
18792         * tests/test-striconveha.c (main): Likewise.
18793         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18794         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
18795         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
18796         * doc/posix-functions/getline.texi: Likewise.
18797         Reported by Mike Frysinger <vapier@gentoo.org>.
18798
18799 2010-11-20  Bruno Haible  <bruno@clisp.org>
18800
18801         nproc: Fix condition.
18802         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
18803         HAVE_PTHREAD_AFFINITY_NP.
18804
18805 2010-11-20  Bruno Haible  <bruno@clisp.org>
18806
18807         Fix a comment.
18808         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
18809
18810 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
18811
18812         ftoastr: don't assume snprintf
18813         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
18814         Implement a subset of snprintf here, by using sprintf safely.
18815         * modules/ftoastr (Depends-on): Remove snprintf.
18816
18817 2010-11-19  Jim Meyering  <meyering@redhat.com>
18818
18819         test-rename.h: fix compilation failure
18820         * tests/test-rename.h (test_rename): Add omitted "}".
18821
18822 2010-11-17  Jim Meyering  <meyering@redhat.com>
18823
18824         maint.mk: add a URL discussing the no-@acronym policy
18825         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
18826
18827 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
18828
18829         ftoastr: depend on snprintf, improve comments
18830         * lib/ftoastr.c: Also mention Loitsch's draft.
18831         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
18832         needed in the current implementation, but it might simplify
18833         speeding up the code later.
18834         * modules/ftoastr: Depend on snprintf; this improves portability.
18835         Suggested by Bruno Haible in the same email.
18836
18837         ftoastr: port to hosts lacking strtof and strtold
18838         Problem reported by Bruno Haible in
18839         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
18840         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
18841         environment and strtold (and presumably strtof) are not available.
18842         * modules/ftoastr (Files): Add m4/c-strtod.m4.
18843         (configure.ac): Require gl_C99_STRTOLD.
18844
18845 2010-11-18  Bruno Haible  <bruno@clisp.org>
18846
18847         c-strtold: Avoid link error on AIX 7.
18848         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
18849         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
18850         (gl_C_STRTOLD): Test whether strtold_l exists.
18851         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18852
18853 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
18854
18855         intprops: new macro INT_BITS_STRLEN_BOUND
18856         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
18857         ftoastr.h.  This exposes an internal of intprops.h that was formerly
18858         not exposed.  Also, it uses a slightly tighter bound than before;
18859         though this makes no practical difference, we might as well be as
18860         tight as we easily can.
18861
18862         ftoastr: new module, for lossless conversion of floats to short strings
18863         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
18864         * modules/ftoastr: New files.
18865
18866 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
18867
18868         bootstrap: port to Solaris sed
18869         * build-aux/bootstrap (get_version): Port to Solaris sed.
18870         See Ralf Wildenhues's note in
18871         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
18872
18873 2010-11-14  Jim Meyering  <meyering@redhat.com>
18874
18875         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
18876         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
18877         and move definition closer to sole use.
18878
18879 2010-11-13  Jim Meyering  <meyering@redhat.com>
18880
18881         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
18882         Now we require at least autoconf-2.59, which means the work-around
18883         is no longer needed.
18884         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
18885         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18886         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
18887         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
18888         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
18889
18890 2010-11-13  Bruno Haible  <bruno@clisp.org>
18891
18892         rename, renameat: Avoid test failures at NFS mounted locations.
18893         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
18894         functions.
18895         (test_rename): Use assert_nonexistent.
18896         * tests/test-rename.c: Include <dirent.h>.
18897         * tests/test-renameat.c: Likewise.
18898         Reported by Gary V. Vaughan <gary@gnu.org>.
18899
18900         rename, renameat: Document Linux bug with NFS
18901         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
18902         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
18903         * doc/posix-functions/renameat.texi: Likewise.
18904         Suggested by Eric Blake.
18905
18906 2010-11-13  Bruno Haible  <bruno@clisp.org>
18907
18908         rename test: Add comments.
18909         * tests/test-rename.h (test_rename): Add structure and comments.
18910
18911 2010-11-13  Eric Blake  <eblake@redhat.com>
18912
18913         maintainer-makefile: cover a few more files
18914         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
18915         scripts generated within C files, for libvirt.
18916
18917 2010-11-13  Bruno Haible  <bruno@clisp.org>
18918
18919         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
18920         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
18921         character, return the number of bytes that belong together, not always
18922         1.
18923         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
18924         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
18925         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
18926         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
18927         number of bytes of an invalid character.
18928         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
18929         (main): Invoke it.
18930         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
18931         results.
18932         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
18933         malformed byte sequences.
18934         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
18935         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
18936         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
18937         Reported by Ben Pfaff and Paolo Bonzini.
18938
18939 2010-11-13  Bruno Haible  <bruno@clisp.org>
18940
18941         openat: Work around glibc bug with fchownat() and empty file names.
18942         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
18943         (gl_FUNC_FCHOWNAT): Invoke it.
18944         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
18945         * doc/posix-functions/fchownat.texi: Document the glibc bug.
18946         Reported by Gary V. Vaughan <gary@gnu.org>.
18947
18948 2010-11-13  Bruno Haible  <bruno@clisp.org>
18949
18950         openat: Ensure autoconf macro ordering.
18951         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
18952         gl_USE_SYSTEM_EXTENSIONS.
18953         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
18954
18955 2010-11-13  Bruno Haible  <bruno@clisp.org>
18956
18957         Update comments.
18958         * lib/unistr/u8-check.c: Update file name in comments.
18959         * lib/unistr/u8-mblen.c: Likewise.
18960         * lib/unistr/u8-prev.c: Likewise.
18961         * lib/unistr/u8-strmblen.c: Likewise.
18962         * lib/unistr/u8-strmbtouc.c: Likewise.
18963
18964 2010-11-13  Jim Meyering  <meyering@redhat.com>
18965
18966         tests: avoid test failure on Solaris 10 due to lack of PATH export
18967         * tests/test-update-copyright.sh: Don't forget to export PATH.
18968
18969         init.sh: ensure that IFS is defined, just in case...
18970         * tests/init.sh (setup_): Ensure that IFS is defined,
18971         so that saving and restoring it works as expected.  This
18972         appears to be useful at least for an old version of dash
18973         from a long time ago (RH 6).  See here for details:
18974         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
18975
18976         maint.mk: tighten "test a == b" check
18977         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
18978         test to files that contain something like #!/bin/sh.
18979         Without this, coreutils would get two false positives in
18980         the comments of C source files.
18981
18982 2010-11-12  Eric Blake  <eblake@redhat.com>
18983
18984         bootstrap: fix typo in previous attempt
18985         * build-aux/bootstrap (buildreq): Correct the grouping.
18986         Reported by Paul Eggert.
18987
18988         maintainer-makefile: prohibit test x == x
18989         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
18990         Based on a report by Matthias Bolte.
18991
18992         bootstrap: allow FreeBSD gzip
18993         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
18994         which has no '.' and goes to stderr.
18995         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
18996         Reported by Matthias Bolte.
18997
18998         maintainer-makefile: check for i18n setup
18999         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
19000         will likely work.
19001
19002 2010-11-12  Bruno Haible  <bruno@clisp.org>
19003
19004         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
19005         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
19006         * lib/nanosleep.c (nanosleep): Likewise.
19007
19008 2010-11-11  Bruno Haible  <bruno@clisp.org>
19009
19010         fcntl-h: Fix for use of C++ on glibc systems.
19011         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
19012         also on glibc systems in C++ mode.
19013         Reported by Gary V. Vaughan <gary@gnu.org>.
19014
19015 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19016
19017         mknod: avoid false failure with dash
19018         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
19019
19020 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
19021
19022         unlink: Fix "is it should" typo in diagnostic.
19023         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
19024         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
19025
19026 2010-11-11  Bruno Haible  <bruno@clisp.org>
19027
19028         Tests for module 'strerror_r-posix'.
19029         * modules/strerror_r-posix-tests: New file.
19030         * tests/test-strerror_r.c: New file.
19031         * tests/test-string-c++.cc: Check the signature of strerror_r.
19032
19033         New module 'strerror_r-posix'.
19034         * lib/string.in.h (strerror_r): New declaration.
19035         * lib/strerror_r.c: New file.
19036         * m4/strerror_r.m4: New file.
19037         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
19038         of strerror_r.
19039         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
19040         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
19041         * modules/strerror_r-posix: New file.
19042         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
19043         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
19044         * doc/posix-functions/strerror_r.texi: Mention the new module and the
19045         portability problems.
19046
19047 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
19048
19049         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
19050         line is also considered for output. Quoted function name in shell
19051         command, so temporary files for functions like MyClass::operator()
19052         are removed correctly without errors.
19053
19054 2010-11-09  Bruno Haible  <bruno@clisp.org>
19055
19056         * doc/posix-functions/strerror.texi: List more failing platforms.
19057
19058         * doc/posix-functions/strerror.texi: Add a comment.
19059
19060 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
19061
19062         fdopendir: fix bug on MacOS X when low on file descriptors
19063
19064         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
19065         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
19066         All callers changed.
19067         (fdopendir): Invoke save_cwd at the top level, not after using
19068         multiple dup() calls to use up file descriptors.  Then retry
19069         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
19070         less than the maximum number of open file descriptors, because
19071         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
19072         on Mac OS X 10.6.4 for tar 1.24
19073         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
19074         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
19075         and for tar 1.25
19076         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
19077
19078 2010-11-07  Bruno Haible  <bruno@clisp.org>
19079
19080         vasnprintf: Support I flag on glibc systems.
19081         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
19082         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
19083         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
19084         snprintf function.
19085         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
19086         glibc systems.
19087         * tests/test-vasnprintf-posix3.c: New file.
19088         * modules/vasnprintf-posix-tests (Files): Add it.
19089         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
19090
19091 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
19092
19093         [html] Fix copy/paste bug: Use unique name for compiler warnings.
19094         * MODULES.html.sh: For compiler warnings, use name
19095         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
19096
19097 2010-11-05  Eric Blake  <eblake@redhat.com>
19098
19099         ceil, floor: avoid spurious failure with icc
19100         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
19101         [denormals-as-zero] when optimizing without -mieee-fp option.
19102         * tests/test-floorf2.c (floorf_reference): Likewise.
19103         * tests/test-ceilf1.c (dummy): New function.
19104         (main): Use it to outsmart icc's optimization.
19105         * tests/test-floorf1.c (dummy, main): Likewise.
19106
19107         tests: require working signbit
19108         * modules/ceilf-tests (Depends-on): Add signbit.
19109         * modules/ceill-tests (Depends-on): Likewise.
19110         * modules/floorf-tests (Depends-on): Likewise.
19111         * modules/floorl-tests (Depends-on): Likewise.
19112         * modules/round-tests (Depends-on): Likewise.
19113         * modules/roundf-tests (Depends-on): Likewise.
19114         * modules/roundl-tests (Depends-on): Likewise.
19115         * modules/trunc-tests (Depends-on): Likewise.
19116         * modules/truncf-tests (Depends-on): Likewise.
19117         * modules/truncl-tests (Depends-on): Likewise.
19118
19119         strtod: work around icc bug
19120         * lib/strtod.c (minus_zero): Define to working value.
19121         (strtod): Use it to avoid icc bug.
19122
19123         copysign: enhance tests
19124         * modules/copysign-tests (Files): Add minus-zero.h.
19125         * tests/test-copysign.c (main): Also test zeros.
19126
19127 2010-11-04  Eric Blake  <eblake@redhat.com>
19128
19129         ceil, floor, round, trunc: enhance tests of -0
19130         * tests/test-ceilf1.c (main): Ensure correct sign of result.
19131         * tests/test-ceill.c (main): Likewise.
19132         * tests/test-floorf1.c (main): Likewise.
19133         * tests/test-floorl.c (main): Likewise.
19134         * tests/test-round1.c (main): Likewise.
19135         * tests/test-roundf1.c (main): Likewise.
19136         * tests/test-roundl.c (main): Likewise.
19137         * tests/test-trunc1.c (main): Likewise.
19138         * tests/test-truncf1.c (main): Likewise.
19139         * tests/test-truncl.c (main): Likewise.
19140
19141 2010-11-04  Eric Blake  <eblake@redhat.com>
19142
19143         frexp, tests: work around ICC bug with -zero
19144         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
19145         works with more compilers.
19146         * tests/minus-zero.h: New file.
19147         * modules/ceilf-tests (Files): Include it.
19148         * modules/ceill-tests (Files): Likewise.
19149         * modules/floorf-tests (Files): Likewise.
19150         * modules/floorl-tests (Files): Likewise.
19151         * modules/frexp-nolibm-tests (Files): Likewise.
19152         * modules/frexp-tests (Files): Likewise.
19153         * modules/frexpl-nolibm-tests (Files): Likewise.
19154         * modules/frexpl-tests (Files): Likewise.
19155         * modules/isnan-tests (Files): Likewise.
19156         * modules/isnand-nolibm-tests (Files): Likewise.
19157         * modules/isnand-tests (Files): Likewise.
19158         * modules/isnanf-nolibm-tests (Files): Likewise.
19159         * modules/isnanf-tests (Files): Likewise.
19160         * modules/isnanl-nolibm-tests (Files): Likewise.
19161         * modules/isnanl-tests (Files): Likewise.
19162         * modules/round-tests (Files): Likewise.
19163         * modules/roundf-tests (Files): Likewise.
19164         * modules/roundl-tests (Files): Likewise.
19165         * modules/ldexpl-tests (Files): Likewise.
19166         * modules/signbit-tests (Files): Likewise.
19167         * modules/snprintf-posix-tests (Files): Likewise.
19168         * modules/sprintf-posix-tests (Files): Likewise.
19169         * modules/strtod-tests (Files): Likewise.
19170         * modules/trunc-tests (Files): Likewise.
19171         * modules/truncf-tests (Files): Likewise.
19172         * modules/truncl-tests (Files): Likewise.
19173         * modules/vsnprintf-posix-tests (Files): Likewise.
19174         * modules/vsprintf-posix-tests (Files): Likewise.
19175         * modules/vasnprintf-posix-tests (Files): Likewise.
19176         * modules/vasprintf-posix-tests (Files): Likewise.
19177         * tests/test-ceilf1.c (main): Use it.
19178         * tests/test-ceill.c (main): Likewise.
19179         * tests/test-floorf1.c (main): Likewise.
19180         * tests/test-floorl.c (main): Likewise.
19181         * tests/test-frexp.c (main): Likewise.
19182         * tests/test-frexpl.c (main): Likewise.
19183         * tests/test-isnan.c (main): Likewise.
19184         * tests/test-isnand.h (main): Likewise.
19185         * tests/test-isnanf.h (main): Likewise.
19186         * tests/test-isnanl.h (main): Likewise.
19187         * tests/test-ldexpl.c (main): Likewise.
19188         * tests/test-round.c (main): Likewise.
19189         * tests/test-roundf.c (main): Likewise.
19190         * tests/test-roundl.c (main): Likewise.
19191         * tests/test-signbit.c (test_signbitf, test_signbitd)
19192         (test_signbitl): Likewise.
19193         * tests/test-snprintf-posix.h (test_function): Likewise.
19194         * tests/test-sprintf-posix.h (test_function): Likewise.
19195         * tests/test-strtod.c (main): Likewise.
19196         * tests/test-trunc1.c (main): Likewise.
19197         * tests/test-truncf1.c (main): Likewise.
19198         * tests/test-truncl.c (main): Likewise.
19199
19200         isnanl: work around icc bug
19201         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
19202
19203 2010-11-03  Eric Blake  <eblake@redhat.com>
19204
19205         tests: fix compiler warnings
19206         * tests/test-getopt.h (test_getopt): Fix condition.
19207         * tests/test-getopt_long.h (test_getopt_long): Likewise.
19208         * tests/test-pipe2.c (main): Likewise.
19209         * tests/test-quotearg-simple.c (main): Avoid icc warning.
19210
19211         utimens: fix broken m4 test
19212         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
19213
19214 2010-10-28  Bruno Haible  <bruno@clisp.org>
19215
19216         posix_spawn*, getdtablesize: Relax license.
19217         * modules/posix_spawn (License): Change to LGPLv2+.
19218         * modules/posix_spawnp (License): Likewise.
19219         * modules/posix_spawn-internal (License): Likewise.
19220         * modules/posix_spawnattr_init (License): Likewise.
19221         * modules/posix_spawnattr_getflags (License): Likewise.
19222         * modules/posix_spawnattr_setflags (License): Likewise.
19223         * modules/posix_spawnattr_getpgroup (License): Likewise.
19224         * modules/posix_spawnattr_setpgroup (License): Likewise.
19225         * modules/posix_spawnattr_getschedparam (License): Likewise.
19226         * modules/posix_spawnattr_setschedparam (License): Likewise.
19227         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
19228         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
19229         * modules/posix_spawnattr_getsigdefault (License): Likewise.
19230         * modules/posix_spawnattr_setsigdefault (License): Likewise.
19231         * modules/posix_spawnattr_getsigmask (License): Likewise.
19232         * modules/posix_spawnattr_setsigmask (License): Likewise.
19233         * modules/posix_spawnattr_destroy (License): Likewise.
19234         * modules/posix_spawn_file_actions_init (License): Likewise.
19235         * modules/posix_spawn_file_actions_addclose (License): Likewise.
19236         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
19237         * modules/posix_spawn_file_actions_addopen (License): Likewise.
19238         * modules/posix_spawn_file_actions_destroy (License): Likewise.
19239         * modules/getdtablesize (License): Likewise.
19240         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
19241
19242 2010-10-26  Bruno Haible  <bruno@clisp.org>
19243
19244         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
19245         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
19246         Cygwin and mingw.
19247         Suggested by Eric Blake.
19248
19249 2010-10-26  Bruno Haible  <bruno@clisp.org>
19250
19251         stdio: Work around compilation error due to renameat() on Solaris 10.
19252         * lib/stdio.in.h: Include <unistd.h> on Solaris.
19253         * lib/renameat.c: Don't include <unistd.h> here.
19254         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
19255         Reported by Paul Eggert and Eric Blake.
19256
19257 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
19258
19259         renameat: port to Solaris 10, which declares renameat in unistd.h
19260
19261         * lib/renameat.c: Include unistd.h before stdio.h, because
19262         Solaris 10 declares renameat in unistd.h.  Problem encountered
19263         when building GNU tar 1.24 on Solaris 10.
19264
19265 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19266
19267         fdopendir: fix C89 compilation
19268         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
19269         compilers.
19270
19271 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
19272
19273         inttostr: simplify by removing unnecessary redundancy
19274         * lib/anytostr.c: Don't include verify.h.
19275         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
19276         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
19277         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
19278         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
19279         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
19280         Likewise.
19281         * modules/inttostr (Depends-on): Remove 'verify'.
19282
19283 2010-10-23  Bruno Haible  <bruno@clisp.org>
19284
19285         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
19286         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
19287         Reported by Eric Blake.
19288
19289 2010-10-23  Bruno Haible  <bruno@clisp.org>
19290
19291         Tests: Fix LOCALE_JA on MirBSD 10.
19292         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
19293         to an UTF-8 locale.
19294         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
19295         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19296         Reported by Eric Blake.
19297
19298 2010-10-21  Bruno Haible  <bruno@clisp.org>
19299
19300         nl_langinfo test: Avoid test failure on NetBSD 5.
19301         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
19302         Reported by Eric Blake.
19303
19304 2010-10-21  Eric Blake  <eblake@redhat.com>
19305
19306         c-stack: work around libsigsegv 2.8 bug
19307         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
19308         overflow on at least PowerPC64.
19309
19310 2010-10-17  Bruno Haible  <bruno@clisp.org>
19311
19312         userspec: Drop redundant file.
19313         * modules/userspec (Files): Remove lib/inttostr.h.
19314
19315 2010-10-17  Bruno Haible  <bruno@clisp.org>
19316
19317         nl_langinfo tests: Silence some warnings.
19318         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
19319         Reported by Jim Meyering.
19320
19321 2010-10-17  Bruno Haible  <bruno@clisp.org>
19322
19323         Make use of GCC's attribute __alloc_size__.
19324         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
19325         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
19326         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
19327         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
19328         __alloc_size__.
19329         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
19330         Suggested by Jim Meyering.
19331
19332 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
19333
19334         bootstrap: anchor .gitignore entries.
19335         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
19336         with...
19337         (insert_vc_ignore): ... this new function, which prepends `/' to
19338         all .gitignore entries before passing them to
19339         insert_sorted_if_absent.
19340
19341 2010-10-16  Bruno Haible  <bruno@clisp.org>
19342
19343         nextafter: Fix configure check.
19344         * modules/nextafter (configure.ac): Correct expected prototype.
19345
19346 2010-10-16  Bruno Haible  <bruno@clisp.org>
19347
19348         termios: Update documentation.
19349         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
19350
19351 2010-10-16  Bruno Haible  <bruno@clisp.org>
19352
19353         tests: Make them compile with TinyCC.
19354         * tests/test-strstr.c (main): Remove parentheses around array
19355         initializer.
19356
19357 2010-10-15  Eric Blake  <eblake@redhat.com>
19358
19359         ignore-value: make header idempotent
19360         * lib/ignore-value.h: Add double-inclusion guards.
19361         Reported by Stefan Berger.
19362
19363 2010-10-15  Jim Meyering  <meyering@redhat.com>
19364
19365         GNUmakefile: handle "stable" target, not "major"
19366         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
19367         lists in maint.mk and announce-gen.  Without this, "make stable"
19368         would fail to ensure that $(VERSION) is up to date.
19369
19370 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
19371
19372         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
19373         & co.
19374
19375 2010-10-14  Bruno Haible  <bruno@clisp.org>
19376
19377         vasnprintf: Don't set errno to 0.
19378         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
19379         block that sets it to 0.
19380         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
19381
19382 2010-10-14  Bruno Haible  <bruno@clisp.org>
19383
19384         socketlib: Fix.
19385         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
19386         gl_PREREQ_SYS_H_WINSOCK2.
19387         Reported by Ian Beckwith <ianb@erislabs.net>.
19388
19389 2010-10-13  Jim Meyering  <meyering@redhat.com>
19390
19391         test-select-stdin.c: avoid warn_unused_result warnings
19392         * tests/test-select-stdin.c: Include "macros.h".
19393         ASSERT that read and fflush succeed.
19394
19395 2010-10-13  Jim Meyering  <meyering@redhat.com>
19396
19397         git-version-gen: do require git-VC'd files in cwd
19398         * build-aux/git-version-gen: Reject a git version string
19399         if there are no commits associated with the current directory.
19400         This avoids an unlikely false-positive (unrelated dir whose parent
19401         repository also contains a tag matching v*), as pointed out
19402         by Giuseppe Scrivano in
19403         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
19404
19405 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
19406
19407         argv-iter: omit nonconforming declaration
19408         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
19409         enum arg_iter_err declaration, which doesn't conform to C99.
19410         Solaris 10 cc warns about this.
19411
19412 2010-10-13  Eric Blake  <eblake@redhat.com>
19413
19414         termios: fix compilation on mingw
19415         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
19416         (gl_TERMIOS_H): Adjust it on mingw.
19417         * modules/termios (Makefile.am): Substitute new key.
19418         * lib/termios.in.h (includes): Make include_next conditional.
19419         * doc/posix-headers/termios.texi (termios.h): Update
19420         documentation.
19421         Reported by Daniel P. Berrange.
19422
19423 2010-10-13  Jim Meyering  <meyering@redhat.com>
19424
19425         git-version-gen: don't require that .git/ be in the current dir
19426         * build-aux/git-version-gen: Adjust this script so that it works
19427         when run from any working directory beneath the top-level .git/-
19428         containing directory.  Inspired by a patch from Giuseppe Scrivano,
19429         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
19430
19431         test-select: avoid warn_unused_result warnings
19432         * tests/test-select.c: Include "macros.h".
19433         ASSERT that each call to read, write, and pipe succeeds.
19434         While not technically required, also check each "close".
19435         * modules/select-tests (Files): Add tests/macros.h.
19436
19437         test-symlinkat: remove declaration of unused local
19438         * tests/test-symlinkat.c (main): Remove unused local, "buf".
19439
19440         test-inttostr: avoid shadowing warnings
19441         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
19442         and use malloc rather than the stack for the same reason as
19443         mentioned in the comment justifying the other allocation.
19444
19445 2010-10-11  Bruno Haible  <bruno@clisp.org>
19446
19447         stdlib: Allow multiple gnulib generated replacements to coexist.
19448         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
19449         Reported by Sam Steingold <sds@gnu.org>.
19450
19451 2010-10-11  Jim Meyering  <meyering@redhat.com>
19452
19453         fix a documentation typo
19454         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
19455
19456 2010-10-11  Eric Blake  <eblake@redhat.com>
19457
19458         futimens: work around Solaris 11 bug
19459         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
19460         * tests/test-futimens.h (test_futimens): Enhance, rather than
19461         weaken test.
19462         * doc/posix-functions/futimens.texi (futimens): Document the bug.
19463
19464 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
19465
19466         Indentation.
19467         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
19468         higher-level operators more to the left.
19469
19470 2010-10-11  Jim Meyering  <meyering@redhat.com>
19471
19472         test-futimens: avoid unwarranted test failure on Solaris 5.11
19473         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
19474         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
19475         because it tries to dereference the NULL name argument.
19476
19477 2010-10-11  Bruno Haible  <bruno@clisp.org>
19478
19479         Indentation.
19480         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
19481         indentation.
19482
19483 2010-10-11  Jim Meyering  <meyering@redhat.com>
19484
19485         spawn.in.h: make indentation consistent with parentheses
19486         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
19487         Make indentation consistent with parentheses.
19488
19489 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
19490
19491         Fix mismatched parens in previous commit
19492         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
19493         parens.
19494
19495 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
19496
19497         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
19498
19499         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
19500         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
19501         * lib/malloca.c: Include "verify.h".
19502         (verify1): Remove, replacing with a verify call.
19503         * lib/relocwrapper.c (verify1): Likewise.
19504         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
19505         Likewise.
19506         * modules/malloca (Depends-on): Add 'verify'.
19507         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
19508         * modules/vasnprintf (Depends-on): Add 'verify'.
19509         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
19510         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
19511         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
19512         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
19513         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
19514         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
19515         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
19516
19517         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
19518
19519         Formerly the style was sometimes 2*X - 1, because the C standard
19520         was wrongly thought to disallow ?: in integral constant expressions.
19521         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
19522         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
19523         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
19524         * lib/stdint.in.h (_verify_intmax_size): Likewise.
19525         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
19526         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
19527         verify that time_t cannot be floating.
19528
19529 2010-10-08  Eric Blake  <eblake@redhat.com>
19530
19531         time: enforce recent POSIX ruling that time_t is integral
19532         * lib/time.in.h (__time_t_must_be_integral): Detect any
19533         problematic systems, allowing the rest of gnulib to assume POSIX.
19534
19535 2010-10-08  Jim Meyering  <meyering@redhat.com>
19536
19537         fdopendir: fix a bug on systems lacking openat and /proc support
19538         OpenBSD 4.7 is one such system.  The most noticeable effect was
19539         failure of any application making nontrivial use of fts: rm, du,
19540         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
19541           ./rm: traversal failed: `a': Bad file descriptor
19542         Debugging that, you see that even though FD 6 was closed just
19543         prior to the opendir call in fd_clone_opendir, its resulting
19544         dir->dd_fd was 8, rather than the expected value of 6:
19545
19546         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
19547         93                close (fd);
19548         (gdb) n
19549         94                dir = fd_clone_opendir (dupfd);
19550         (gdb) n
19551         95                saved_errno = errno;
19552         (gdb) p dir->dd_fd
19553         $11 = 8
19554
19555         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
19556         The problem is that on OpenBSD, fd_clone_opendir has to resort
19557         to using the old-style save/restore CWD mechanism, due to its
19558         lack of openat/proc support, and *that* would steal the FD (6)
19559         that opendir was supposed to use.
19560
19561         The fix is to squirrel away the desired FD so that save_cwd uses a
19562         different one, and then free the dest FD right before calling opendir.
19563         That guarantees opendir will use the required file descriptor.
19564
19565         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
19566
19567 2010-10-08  Bruno Haible  <bruno@clisp.org>
19568
19569         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
19570         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
19571
19572 2010-10-08  Bruno Haible  <bruno@clisp.org>
19573
19574         nanosleep: Make replacement POSIX compliant.
19575         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
19576         is out of range.
19577         Reported by Jim Meyering.
19578
19579 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
19580
19581         bootstrap: add hook for altering gnulib.mk, for Bison
19582         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
19583         the Bison bootstrapping process can rewrite file names and variables
19584         in this file before later parts of 'bootstrap' use the file.
19585         Bison wants to include lib/gnulib.mk from the top-level makefile,
19586         so it needs the file names in this file to be relative to the top
19587         level, not relative to lib; plus it needs variable names to be
19588         rewritten.
19589         (slurp): Use the new function.
19590
19591         bootstrap: reformat for readability
19592         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
19593
19594 2010-10-08  Eric Blake  <eblake@redhat.com>
19595
19596         docs: update cygwin progress
19597         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
19598         1.7.7.
19599         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
19600         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
19601         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
19602         * doc/posix-functions/carg.texi (carg): Likewise.
19603         * doc/posix-functions/cargf.texi (cargf): Likewise.
19604         * doc/posix-functions/casin.texi (casin): Likewise.
19605         * doc/posix-functions/casinf.texi (casinf): Likewise.
19606         * doc/posix-functions/casinh.texi (casinh): Likewise.
19607         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
19608         * doc/posix-functions/catan.texi (catan): Likewise.
19609         * doc/posix-functions/catanf.texi (catanf): Likewise.
19610         * doc/posix-functions/catanh.texi (catanh): Likewise.
19611         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
19612         * doc/posix-functions/ccos.texi (ccos): Likewise.
19613         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
19614         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
19615         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
19616         * doc/posix-functions/cexp.texi (cexp): Likewise.
19617         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
19618         * doc/posix-functions/cimag.texi (cimag): Likewise.
19619         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
19620         * doc/posix-functions/clog.texi (clog): Likewise.
19621         * doc/posix-functions/clogf.texi (clogf): Likewise.
19622         * doc/posix-functions/conj.texi (conj): Likewise.
19623         * doc/posix-functions/conjf.texi (conjf): Likewise.
19624         * doc/posix-functions/cpow.texi (cpow): Likewise.
19625         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
19626         * doc/posix-functions/cproj.texi (cproj): Likewise.
19627         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
19628         * doc/posix-functions/creal.texi (creal): Likewise.
19629         * doc/posix-functions/crealf.texi (crealf): Likewise.
19630         * doc/posix-functions/csin.texi (csin): Likewise.
19631         * doc/posix-functions/csinf.texi (csinf): Likewise.
19632         * doc/posix-functions/csinh.texi (csinh): Likewise.
19633         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
19634         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
19635         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
19636         * doc/posix-functions/ctan.texi (ctan): Likewise.
19637         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
19638         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
19639         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
19640         * doc/posix-headers/complex.texi (complex.h): Likewise.
19641
19642 2010-10-07  Jim Meyering  <meyering@redhat.com>
19643
19644         parse-datetime: avoid compilation failure on OpenBSD 4.7
19645         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
19646         This works around a compilation failure on OpenBSD 4.7:
19647         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
19648
19649 2010-10-07  Eric Blake  <eblake@redhat.com>
19650
19651         docs: update cygwin progress
19652         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
19653         1.7.6.
19654         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
19655         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
19656         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
19657         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
19658         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
19659         Likewise.
19660         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
19661         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
19662         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
19663         Likewise.
19664         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
19665         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
19666         Likewise.
19667         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
19668         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
19669         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
19670         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
19671         Likewise.
19672         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
19673         Likewise.
19674         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
19675
19676         docs: update parse-datetime history
19677         * doc/parse-datetime.texi (Authors of parse_datetime): Better
19678         documentation of this function's history and alternatives.
19679
19680         cygwin: use more robust version check
19681         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
19682         exclude an eventual cygwin 1.9.1.
19683         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19684         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19685         (gl_FUNC_STRCASESTR): Likewise.
19686         Reported by Bruno Haible.
19687
19688 2010-10-06  Bruno Haible  <bruno@clisp.org>
19689
19690         string, sys_select: Avoid #including large headers unless necessary.
19691         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
19692         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
19693         OSF/1, BeOS, Haiku.
19694         Reported by Jim Meyering.
19695
19696 2010-10-05  Eric Blake  <eblake@redhat.com>
19697
19698         memmem, strstr, strcasestr: fix bug with long periodic needle
19699         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
19700         periodic needle having false positive.
19701         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
19702         and cygwin 1.7.7.
19703         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
19704         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
19705         (gl_FUNC_STRCASESTR): Likewise.
19706         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19707         * tests/test-memmem.c (main): Expose the bug.
19708         * tests/test-strcasestr.c (main): Likewise.
19709         * tests/test-strstr.c (main): Likewise.
19710         * tests/test-c-strcasestr.c (main): Likewise.
19711         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
19712         * doc/posix-functions/strstr.texi (strstr): Likewise.
19713         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
19714         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
19715
19716 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19717
19718         parse-datetime: do some more renaming
19719         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
19720         parse_datetime, not get_date.  Mention the renaming.
19721         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
19722         in comments.
19723         * m4/bison.m4: Likewise.
19724
19725 2010-10-05  Eric Blake  <eblake@redhat.com>
19726
19727         parse-datetime: better name than get_date
19728         * NEWS: Reword the deprecation notice.
19729         * modules/get_date: Rename to modules/parse-datetime.
19730         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
19731         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
19732         * lib/get_date.y: Rename to lib/parse-datetime.y.
19733         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
19734         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
19735         * doc/getdate.texi: Provide fallback wrapper.
19736         * lib/getdate.h: Move guts, and wrap...
19737         * lib/parse-datetime.h: ...new file.
19738         * lib/parse-datetime.y (get_date): Rename...
19739         (parse_datetime): ...to this.
19740         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
19741         (gl_PARSE_DATETIME): ...to this.
19742         * doc/posix-functions/getdate.texi (get_date): Provide fallback
19743         documentation.
19744         * modules/getdate (Files): Provide fallback docs and header.
19745         (Notice, Depends-on): Update references.
19746         * tests/test-parse-datetime.c: Likewise.
19747         * DEPENDENCIES: Likewise.
19748         * MODULES.html.sh (Date and time <time.h>): Likewise.
19749         * doc/parse-datetime.texi (Date input formats)
19750         (Authors of parse_datetime): Likewise.
19751         * modules/parse-datetime (Files, configure.ac, Makefile.am)
19752         (Include): Likewise.
19753         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
19754         * gnulib-tool: Likewise.
19755         * m4/bison.m4 (gl_BISON): Likewise.
19756         Suggested by Bruno Haible.
19757
19758 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
19759
19760         more ports to Solaris tr, which needs [] around ranges
19761         * gnulib-tool: Solaris tr needs [] around ranges.
19762         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19763         * tests/test-pipe-filter-gi1.c (main): Likewise.
19764         * tests/test-pipe-filter-ii1.c (main): Likewise.
19765
19766 2010-10-05  Eric Blake  <eblake@redhat.com>
19767
19768         bootstrap: fix Solaris regression
19769         * build-aux/bootstrap (check_versions): Solaris tr still needs []
19770         around ranges.
19771         Reported by Pádraig Brady.
19772
19773         bootstrap: work with pkg-config
19774         * build-aux/bootstrap (check_versions): Also transliterate - in
19775         prerequisite name.
19776         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
19777         prerequisites that were already found, to avoid confusion.
19778         Reported by Justin Clift.
19779
19780         faccessat: remove unused wrappers
19781         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
19782         presence of these wrappers dragged in -lgen on Solaris.
19783         Reported by Clemens Brogi; fix suggested by Paul Eggert.
19784
19785 2010-10-05  Jim Meyering  <meyering@redhat.com>
19786
19787         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
19788         * Makefile (sc_pragma_columns): New syntax-check rule.
19789
19790 2010-10-04  Bruno Haible  <bruno@clisp.org>
19791
19792         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
19793         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
19794         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
19795         Reported by Bruce Korb and Eric Blake.
19796
19797 2010-10-04  Bruno Haible  <bruno@clisp.org>
19798
19799         threadlib: Make option --with-libpth-prefix work.
19800         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
19801         use $LIBPTH, not just -lpth.
19802
19803 2010-10-04  Bruno Haible  <bruno@clisp.org>
19804
19805         Avoid line length limitation from HP NonStop system header files.
19806         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
19807         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
19808         * lib/ctype.in.h: Likewise.
19809         * lib/dirent.in.h: Likewise.
19810         * lib/errno.in.h: Likewise.
19811         * lib/fcntl.in.h: Likewise.
19812         * lib/float.in.h: Likewise.
19813         * lib/getopt.in.h: Likewise.
19814         * lib/iconv.in.h: Likewise.
19815         * lib/inttypes.in.h: Likewise.
19816         * lib/langinfo.in.h: Likewise.
19817         * lib/locale.in.h: Likewise.
19818         * lib/math.in.h: Likewise.
19819         * lib/netdb.in.h: Likewise.
19820         * lib/netinet_in.in.h: Likewise.
19821         * lib/poll.in.h: Likewise.
19822         * lib/pthread.in.h: Likewise.
19823         * lib/pty.in.h: Likewise.
19824         * lib/sched.in.h: Likewise.
19825         * lib/se-selinux.in.h: Likewise.
19826         * lib/search.in.h: Likewise.
19827         * lib/signal.in.h: Likewise.
19828         * lib/spawn.in.h: Likewise.
19829         * lib/stdarg.in.h: Likewise.
19830         * lib/stddef.in.h: Likewise.
19831         * lib/stdint.in.h: Likewise.
19832         * lib/stdio.in.h: Likewise.
19833         * lib/stdlib.in.h: Likewise.
19834         * lib/string.in.h: Likewise.
19835         * lib/strings.in.h: Likewise.
19836         * lib/sys_file.in.h: Likewise.
19837         * lib/sys_ioctl.in.h: Likewise.
19838         * lib/sys_select.in.h: Likewise.
19839         * lib/sys_socket.in.h: Likewise.
19840         * lib/sys_stat.in.h: Likewise.
19841         * lib/sys_time.in.h: Likewise.
19842         * lib/sys_times.in.h: Likewise.
19843         * lib/sys_utsname.in.h: Likewise.
19844         * lib/sys_wait.in.h: Likewise.
19845         * lib/sysexits.in.h: Likewise.
19846         * lib/termios.in.h: Likewise.
19847         * lib/time.in.h: Likewise.
19848         * lib/unistd.in.h: Likewise.
19849         * lib/wchar.in.h: Likewise.
19850         * lib/wctype.in.h: Likewise.
19851         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
19852         * modules/ctype (Makefile.am): Likewise.
19853         * modules/dirent (Makefile.am): Likewise.
19854         * modules/errno (Makefile.am): Likewise.
19855         * modules/fcntl-h (Makefile.am): Likewise.
19856         * modules/float (Makefile.am): Likewise.
19857         * modules/getopt-posix (Makefile.am): Likewise.
19858         * modules/iconv-h (Makefile.am): Likewise.
19859         * modules/inttypes (Makefile.am): Likewise.
19860         * modules/langinfo (Makefile.am): Likewise.
19861         * modules/locale (Makefile.am): Likewise.
19862         * modules/math (Makefile.am): Likewise.
19863         * modules/netdb (Makefile.am): Likewise.
19864         * modules/netinet_in (Makefile.am): Likewise.
19865         * modules/poll-h (Makefile.am): Likewise.
19866         * modules/pthread (Makefile.am): Likewise.
19867         * modules/pty (Makefile.am): Likewise.
19868         * modules/sched (Makefile.am): Likewise.
19869         * modules/search (Makefile.am): Likewise.
19870         * modules/selinux-h (Makefile.am): Likewise.
19871         * modules/signal (Makefile.am): Likewise.
19872         * modules/spawn (Makefile.am): Likewise.
19873         * modules/stdarg (Makefile.am): Likewise.
19874         * modules/stddef (Makefile.am): Likewise.
19875         * modules/stdint (Makefile.am): Likewise.
19876         * modules/stdio (Makefile.am): Likewise.
19877         * modules/stdlib (Makefile.am): Likewise.
19878         * modules/string (Makefile.am): Likewise.
19879         * modules/strings (Makefile.am): Likewise.
19880         * modules/sys_file (Makefile.am): Likewise.
19881         * modules/sys_ioctl (Makefile.am): Likewise.
19882         * modules/sys_select (Makefile.am): Likewise.
19883         * modules/sys_socket (Makefile.am): Likewise.
19884         * modules/sys_stat (Makefile.am): Likewise.
19885         * modules/sys_time (Makefile.am): Likewise.
19886         * modules/sys_times (Makefile.am): Likewise.
19887         * modules/sys_utsname (Makefile.am): Likewise.
19888         * modules/sys_wait (Makefile.am): Likewise.
19889         * modules/sysexits (Makefile.am): Likewise.
19890         * modules/termios (Makefile.am): Likewise.
19891         * modules/time (Makefile.am): Likewise.
19892         * modules/unistd (Makefile.am): Likewise.
19893         * modules/wchar (Makefile.am): Likewise.
19894         * modules/wctype (Makefile.am): Likewise.
19895
19896 2010-10-04  Bruno Haible  <bruno@clisp.org>
19897
19898         read-file tests: Avoid a test failure on NonStop Kernel.
19899         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
19900         a regular file.
19901         Reported by Joachim Schmitz <schmitz@hp.com>.
19902
19903 2010-10-03  Bruno Haible  <bruno@clisp.org>
19904
19905         gnulib-tool: Fixes for --create-testdir with --libtool.
19906         * gnulib-tool (func_get_automake_snippet): Don't augment
19907         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
19908         an executable.
19909         (func_create_testdir): Handle module 'alloca' like func_import.
19910         Reported by Bruce Korb <bruce.korb@gmail.com>.
19911
19912 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
19913
19914         Avoid some lines longer than 80 characters.
19915         * lib/stdint.in.h: Break long comment lines.
19916         * lib/math.in.h: Likewise.
19917         (_GL_NUM_UINT_WORDS): New macro, for readability.
19918         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
19919         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
19920         * lib/stdlib.in.h: Likewise.
19921         * lib/spawn.in.h: Likewise.
19922         * lib/sys_socket.in.h: Update an URL.
19923         * lib/sys_stat.in.h: Break long line.
19924
19925 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
19926
19927         Improve pmccabe2html.
19928         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
19929         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
19930         when the sources change. Remove the line in the HTML about "Used
19931         ranges" (which implied that there might be other unused ranges),
19932         rename "Resume" to "Summary" (easier to understand for more users).
19933         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
19934         styles, and some unnecessary blank lines.
19935
19936 2010-10-03  Bruno Haible  <bruno@clisp.org>
19937             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
19938
19939         acl: Add support for ACLs on NonStop Kernel.
19940         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
19941         Check whether the function aclsort() exists.
19942         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
19943         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
19944         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19945         (acl_nontrivial [HAVE_ACLSORT]: New function.
19946         (file_has_acl): Implement for NonStop Kernel.
19947         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19948         (qset_acl): Implement for NonStop Kernel.
19949         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
19950         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
19951         (main): Implement for NonStop Kernel.
19952         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
19953         Kernel. Handle this flavor.
19954         * tests/test-set-mode-acl.sh: Likewise.
19955         * tests/test-copy-acl.sh: Likewise.
19956         * tests/test-copy-file.sh: Likewise.
19957
19958 2010-10-03  Bruno Haible  <bruno@clisp.org>
19959
19960         Info about ACLs on NonStop Kernel.
19961         * doc/acl-resources.txt: Add info about NonStop Kernel.
19962         References by Joachim Schmitz <schmitz@hp.com>.
19963
19964 2010-10-02  Bruno Haible  <bruno@clisp.org>
19965
19966         Define missing EDQUOT on NonStop Kernel.
19967         * lib/errno.in.h (EDQUOT): Assign a value if missing.
19968         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
19969         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
19970         missing.
19971         * doc/posix-headers/errno.texi: Mention the NSK bug.
19972         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
19973         Reported by Joachim Schmitz <schmitz@hp.com>.
19974
19975 2010-10-02  Bruno Haible  <bruno@clisp.org>
19976
19977         Update doc for POSIX:2008.
19978         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
19979         Update URL of POSIX specification.
19980
19981 2010-10-02  Bruno Haible  <bruno@clisp.org>
19982
19983         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
19984         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
19985         from gnulib, not from Automake.
19986
19987 2010-10-02  Bruno Haible  <bruno@clisp.org>
19988
19989         New module 'system-posix'.
19990         * modules/system-posix: New file.
19991         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
19992         module is present.
19993         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
19994         GNULIB_SYSTEM_POSIX.
19995         * modules/stdlib (Depends-on): Remove sys_wait.
19996         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
19997         * doc/posix-functions/system.texi: Mention the new module.
19998         * doc/posix-headers/stdlib.texi: Likewise.
19999         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
20000         define test_sys_wait_macros to a no-op.
20001         Reported by Sam Steingold <sds@gnu.org>.
20002
20003 2010-09-30  Bruno Haible  <bruno@clisp.org>
20004
20005         More renaming from 'getdate' to 'get_date'.
20006         * doc/get_date.texi: Renamed from doc/getdate.texi.
20007         * modules/get_date (Files): Update.
20008         * MODULES.html.sh (Date and time <time.h>): Update.
20009         * DEPENDENCIES: Update.
20010         * gnulib-tool: Update comment.
20011         * m4/bison.m4 (gl_BISON): Likewise.
20012         * m4/get_date.m4 (gl_GET_DATE): Likewise.
20013
20014 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
20015
20016         bootstrap: support ACLOCAL_FLAGS during aclocal
20017         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
20018         can add additional -I dir for third-party .m4 files.
20019
20020 2010-09-30  Eric Blake  <eblake@redhat.com>
20021
20022         bootstrap: use glibtoolize on MacOS
20023         * build-aux/bootstrap (check_versions): Convert libtool into
20024         libtoolize.
20025         (tool search): Move libtool check earlier, and look for
20026         glibtoolize for MacOS.
20027         (gnulib_tool_options): Auto-add --libtool when appropriate.
20028         Reported by Justin Clift.
20029
20030         poll: fix typo that broke test on MacOS
20031         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
20032         Reported by Justin Clift.
20033
20034         getdate: rename to get_date
20035         Note: getdate.h is not renamed, to minimize client impact.
20036         * modules/getdate: Mark obsolete.  Move old contents...
20037         * modules/get_date: ...to new module name.
20038         * modules/getdate-tests: Move...
20039         * modules/get_date-tests: ...here.
20040         * m4/getdate.m4: Move...
20041         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
20042         * lib/getdate.y: Move...
20043         * lib/get_date.y: ...here.
20044         * tests/test-getdate.c: Move...
20045         * tests/test-get_date.c: ...here.
20046         * doc/posix-functions/getdate.texi (getdate): Update name.
20047         * NEWS: Mention the change.
20048
20049 2010-09-29  Bruno Haible  <bruno@clisp.org>
20050
20051         Separate the module 'waitpid' from the module 'sys_wait'.
20052         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
20053         present.
20054         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
20055         gl_MODULE_INDICATOR_FOR_TESTS.
20056         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
20057         * modules/sys_wait (Depends-on): Remove waitpid.
20058         (Makefile.am): Substitute GNULIB_WAITPID.
20059         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
20060         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
20061         signature only if the 'waitpid' module is present.
20062         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
20063         * NEWS: Mention the change.
20064         * modules/grantpt (Depends-on): Add waitpid.
20065         * modules/wait-process (Depends-on): Likewise.
20066
20067 2010-09-29  Bruno Haible  <bruno@clisp.org>
20068
20069         More tests for module 'sys_wait'.
20070         * modules/sys_wait-c++-tests: New file.
20071         * tests/test-sys_wait-c++.cc: New file.
20072         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
20073         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
20074
20075 2010-09-29  Bruno Haible  <bruno@clisp.org>
20076
20077         New module 'waitpid'.
20078         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
20079         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
20080         Don't include <process.h>.
20081         (waitpid): Declare only, using modern idiom.
20082         * m4/waitpid.m4: New file.
20083         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
20084         * modules/waitpid: New file.
20085         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
20086         (Makefile.am): Update.
20087         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
20088
20089 2010-09-28  Bruno Haible  <bruno@clisp.org>
20090
20091         poll: Assume ANSI C.
20092         * lib/poll.c (poll): Use an ANSI C declaration.
20093
20094 2010-09-28  Bruno Haible  <bruno@clisp.org>
20095
20096         poll-h: Create poll.h on all platforms.
20097         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
20098         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
20099         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
20100         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
20101         (gl_REPLACE_POLL_H): Don't set POLL_H.
20102         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
20103         * modules/poll-h (Depends-on): Add include_next.
20104         (Makefile.am): Create poll.h unconditionally. Substitute also
20105         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
20106
20107 2010-09-28  Bruno Haible  <bruno@clisp.org>
20108
20109         Tests for module 'poll-h'.
20110         * modules/poll-h-c++-tests: New file.
20111         * tests/test-poll-h-c++.cc: New file.
20112
20113         Tests for module 'poll-h'.
20114         * modules/poll-h-tests: New file.
20115         * tests/test-poll-h.c: New file.
20116
20117 2010-09-28  Bruno Haible  <bruno@clisp.org>
20118
20119         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
20120         * modules/poll-h (Depends-on): Add 'extensions'.
20121
20122 2010-09-28  Bruno Haible  <bruno@clisp.org>
20123
20124         New module 'poll-h'.
20125         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
20126         (poll): Use modern idiom.
20127         * modules/poll-h: New file.
20128         * modules/poll (Files): Remove lib/poll.in.h.
20129         (Depends-on): Add poll-h.
20130         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
20131         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
20132         * m4/poll_h.m4: New file.
20133         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
20134         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
20135         and invoke gl_REPLACE_POLL_H.
20136         * lib/poll.c: Use common idiom.
20137         * tests/test-poll.c: Likewise.
20138         * doc/posix-headers/poll.texi: Mention the poll-h module.
20139         Suggested by Eric Blake.
20140
20141 2010-09-26  Bruno Haible  <bruno@clisp.org>
20142
20143         sys_wait: Implement WSTOPSIG.
20144         * lib/sys_wait.in.h (WSTOPSIG): New macro.
20145         Reported by Simon Josefsson.
20146
20147 2010-09-26  Simon Josefsson  <simon@josefsson.org>
20148
20149         stdlib, sys_wait: Avoid compilation error on mingw.
20150         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
20151
20152 2010-09-26  Bruno Haible  <bruno@clisp.org>
20153
20154         stdlib tests: Avoid code duplication.
20155         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
20156         * modules/sys_wait-tests (Files): Likewise.
20157         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
20158         * tests/test-stdlib.c: Include test-sys_wait.h.
20159         (main): Invoke test_sys_wait_macros.
20160         * tests/test-sys_wait.c: Include test-sys_wait.h.
20161         (main): Invoke test_sys_wait_macros.
20162
20163 2010-09-25  Simon Josefsson  <simon@josefsson.org>
20164
20165         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
20166         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
20167         sure Windows sockets are working before calling getaddrinfo.
20168         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
20169         * doc/gnulib.texi (Windows sockets): Fix typo.
20170
20171 2010-09-25  Bruno Haible  <bruno@clisp.org>
20172
20173         Tests for module 'regex-quote'.
20174         * modules/regex-quote-tests: New file.
20175         * tests/test-regex-quote.c: New file.
20176
20177         New module 'regex-quote'.
20178         * lib/regex-quote.h: New file.
20179         * lib/regex-quote.c: New file.
20180         * modules/regex-quote: New file.
20181         Suggested by Reuben Thomas <rrt@sc3d.org>.
20182
20183 2010-09-24  Bruno Haible  <bruno@clisp.org>
20184
20185         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
20186         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
20187
20188 2010-09-23  Bruno Haible  <bruno@clisp.org>
20189
20190         setenv: Relax license.
20191         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
20192         Blake.
20193         Requested by Eric Blake.
20194
20195 2010-09-22  Bruno Haible  <bruno@clisp.org>
20196
20197         termios: Relax license.
20198         * modules/termios (License): Change to LGPLv2+.
20199         Requested by Eric Blake.
20200
20201 2010-09-22  Bruno Haible  <bruno@clisp.org>
20202
20203         threadlib: Allow the package to change the default to 'no'.
20204         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
20205         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
20206         Reported by Paul Eggert.
20207
20208 2010-09-22  Pádraig Brady  <P@draigbrady.com>
20209             Bruno Haible  <bruno@clisp.org>
20210
20211         Fix endless loop in mbmemcasecoll.
20212         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
20213         byte.
20214         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
20215
20216 2010-09-22  Bruno Haible  <bruno@clisp.org>
20217
20218         Tests for module 'memcoll'.
20219         * modules/memcoll-tests: New file.
20220         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
20221
20222         memcoll, xmemcoll: Clarify size vs. length.
20223         * modules/memcoll.c (memcoll0): Clarify specification.
20224         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
20225         passed to collate_error.
20226
20227 2010-09-22  Bruno Haible  <bruno@clisp.org>
20228
20229         Tests for module 'memcasecmp'.
20230         * modules/memcasecmp-tests: New file.
20231         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
20232
20233 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
20234
20235         * lib/pthread.in.h: Add split double-inclusion guard, and include
20236         system <pthread.h> if there is one.  Use @@-style as in other
20237         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
20238         pthread.h doesn't.
20239         (pthread_mutexattr_destroy, pthread_mutexattr_init):
20240         (pthread_mutexattr_settype, pthread_mutex_trylock):
20241         New static inline functions, if there's no system <pthread.h>.
20242         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
20243         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
20244         Approximate with mutexes if the system lacks spinlocks, as in
20245         MacOS.
20246         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
20247         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
20248         @@-style.  Check for spinlocks separately.
20249         (gl_PTHREAD_DEFAULTS): New macro.
20250         * modules/pthread: Redo to use a more typical style for in.h files.
20251
20252 2010-09-21  Eric Blake  <eblake@redhat.com>
20253
20254         net_if: enhance tests
20255         * tests/test-net_if.c (main): Move signature checks earlier.
20256         Print failures to stderr.
20257         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
20258         Document the bug that we do not yet fix.
20259
20260 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20261
20262         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
20263         about gnulib, not GSS.
20264
20265 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
20266
20267         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
20268         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
20269         for Emacs.
20270         * build-aux/pmccabe2html: Make Makefile.am example code more
20271         cut-and-paste friendly.
20272
20273 2010-09-21  Simon Josefsson  <simon@josefsson.org>
20274
20275         * tests/test-net_if.c: New file.
20276         * modules/net_if-tests: New file.
20277
20278 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
20279
20280         pthread: add pthread_spin_destroy
20281         * lib/pthread.in.h (pthread_spin_destroy): New function.
20282
20283 2010-09-19  Bruno Haible  <bruno@clisp.org>
20284
20285         gnulib-tool: Fix --help output.
20286         * gnulib-tool (func_usage): Fix help message.
20287         Reported by Reuben Thomas <rrt@sc3d.org>.
20288
20289 2010-09-18  Jim Meyering  <meyering@redhat.com>
20290
20291         maint.mk: avoid unexpanded \n in two diagnostics
20292         * top/maint.mk (sc_prohibit_always_true_header_tests):
20293         Don't use a literal \n in a halt=... assignment.  It would not be
20294         expanded, and the two \n bytes would appear in the diagnostic output
20295         rather than the desired newline.  Use halt=$$(printf ... instead.
20296         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
20297
20298 2010-09-18  Bruno Haible  <bruno@clisp.org>
20299
20300         netinet_in: Doc tweak.
20301         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
20302         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20303
20304 2010-09-18  Jim Meyering  <meyering@redhat.com>
20305
20306         init.sh: correct an outdated comment
20307         * tests/init.sh (create_exe_shims_):  s/function/alias/
20308
20309         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
20310         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
20311         a file named "*.exe" is removed between the glob expansion and the
20312         processing of that oddly named file.
20313
20314 2010-09-17  Eric Blake  <eblake@redhat.com>
20315
20316         mirbsd: add some more support
20317         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
20318         in BSD family.
20319         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
20320         devices as OpenBSD.
20321         * m4/host-os.m4 (mirbsd): Add MirBSD.
20322
20323         tests: fix unportable assumption on sys/wait.h
20324         * tests/test-sys_wait.c (main): Relax test.
20325         * tests/test-stdlib.c (main): Likewise.
20326
20327         init.sh: accomodate directory with no .exes
20328         * tests/init.sh: Accomodate directory containing only scripts.
20329
20330         tests: avoid compiler warning
20331         * tests/test-stdlib.c (main): Use the variable.
20332
20333         fdutimens, fdutimensat: update signature, again
20334         * lib/utimens.h (gl_futimens): Delete, and move signature...
20335         (fdutimens): ...here.
20336         (fdutimensat): Rearrange signature.
20337         (lutimensat): Rename variable for clarity.
20338         * lib/fdutimensat.c (fdutimensat): Update signature.
20339         * lib/utimens.c (fdutimens): Likewise.
20340         (gl_futimens): Delete.
20341         (utimens, lutimens): Update callers.
20342         * lib/futimens.c (futimens): Likewise.
20343         * tests/test-fdutimensat.c: Likewise.
20344         * tests/test-utimens.c: Likewise.
20345         * tests/test-futimens.h: Update comment.
20346         * NEWS: Mention this.
20347         Suggested by Paul Eggert.
20348
20349 2010-09-17  Bruno Haible  <bruno@clisp.org>
20350
20351         Take over the maintenance of some older macros from Autoconf.
20352         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
20353         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
20354         GNU Autoconf.
20355         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
20356         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
20357
20358 2010-09-17  Eric Blake  <eblake@redhat.com>
20359
20360         fdutimensat: drop atflag validation
20361         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
20362         with valid fd, to close a race scenario where futimens is
20363         unsupported and FILE was replaced by a symlink.
20364         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
20365         accordingly.
20366         Suggested by Paul Eggert.
20367
20368 2010-09-16  Bruno Haible  <bruno@clisp.org>
20369
20370         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
20371         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
20372
20373 2010-09-16  Bruno Haible  <bruno@clisp.org>
20374
20375         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
20376         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
20377         login_tty exists.
20378         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20379
20380 2010-09-16  Bruno Haible  <bruno@clisp.org>
20381
20382         login_tty: Make the replacement code work on BSD systems.
20383         * lib/login_tty.c: Include <sys/ioctl.h>.
20384         (login_tty): Use ioctl TIOCSCTTY when available.
20385         * modules/login_tty (Depends-on): Add sys_ioctl.
20386         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20387
20388 2010-09-16  Bruno Haible  <bruno@clisp.org>
20389
20390         login_tty: Stricter unit test.
20391         * modules/login_tty-tests (Depends-on): Add tcgetsid.
20392         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
20393         and tcgetsid() after login_tty.
20394         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20395
20396 2010-09-16  Bruno Haible  <bruno@clisp.org>
20397
20398         New module 'tcgetsid'.
20399         * lib/tcgetsid.c: New file.
20400         * m4/tcgetsid.m4: New file.
20401         * modules/tcgetsid: New file.
20402         * modules/termios (Depends-on): Add c++defs, warn-on-use.
20403         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
20404         GNULIB_TCGETSID, HAVE_TCGETSID.
20405         * lib/termios.in.h: Include <sys/types.h>.
20406         (tcgetsid): New declaration.
20407         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
20408         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
20409         * doc/posix-functions/tcgetsid.texi: Mention the new module.
20410         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
20411
20412 2010-09-16  Bruno Haible  <bruno@clisp.org>
20413
20414         Tests for module 'termios'.
20415         * modules/termios-c++-tests: New file.
20416         * modules/termios-tests: New file.
20417         * tests/test-termios-c++.cc: New file.
20418         * tests/test-termios.c: New file.
20419
20420         New module 'termios'.
20421         * modules/termios: New file.
20422         * lib/termios.in.h: New file.
20423         * m4/termios_h.m4: New file.
20424         * doc/posix-headers/termios.texi: Mention the new module.
20425
20426 2010-09-16  Eric Blake  <eblake@redhat.com>
20427
20428         fdutimensat: add an atflag parameter
20429         * lib/fdutimensat.c (fdutimensat): Add new parameter.
20430         * lib/utimens.h (fdutimensat): Update prototype.
20431         * tests/test-fdutimensat.c: Adjust test to match.
20432         * NEWS: Document the change.
20433         Suggested by Paul Eggert.
20434
20435 2010-09-16  Bruno Haible  <bruno@clisp.org>
20436
20437         Fix typos in comments.
20438         * lib/striconveh.h: Fix typo in comment.
20439         * lib/login_tty.c (login_tty): Likewise.
20440
20441 2010-09-15  Bruno Haible  <bruno@clisp.org>
20442
20443         stdlib: clarify MirBSD WEXITSTATUS bug
20444         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
20445         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20446
20447 2010-09-15  Eric Blake  <eblake@redhat.com>
20448
20449         stdlib: work around MirBSD WEXITSTATUS bug
20450         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
20451         * modules/stdlib (Depends-on): Add sys_wait.
20452         * tests/test-sys_wait.c (main): Enhance test.
20453         * tests/test-stdlib.c (main): Likewise.
20454         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
20455
20456         docs: mention MacOS issue with WEXITSTATUS(constant)
20457         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
20458         issue.
20459         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
20460
20461         strnlen: add tests
20462         * modules/strnlen-tests: New file.
20463         * tests/test-strnlen.c: Likewise.
20464
20465 2010-09-14  Bruno Haible  <bruno@clisp.org>
20466
20467         unistr/base: Avoid link errors when module 'libunistring' is also used.
20468         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
20469         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
20470         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
20471         Declare also when HAVE_LIBUNISTRING is set.
20472         Reported by Pádraig Brady <P@draigbrady.com>.
20473
20474 2010-09-14  Eric Blake  <eblake@redhat.com>
20475
20476         test-rawmemchr: make more robust
20477         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
20478         (Depends-on, configure.ac): Add needed prerequisites to use it.
20479         * modules/memchr-tests (Files, Depends-on, configure.ac):
20480         Likewise, to avoid implicit reliance on memchr module prereqs.
20481         * tests/test-memchr.c (main): Ensure proper masking.
20482         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
20483         reads.
20484
20485         memchr: detect glibc Alpha bug
20486         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
20487         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
20488         Alpha.
20489         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
20490         * tests/test-memchr.c (main): Enhance test.
20491         Reported by Nelson H. F. Beebe.
20492
20493 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20494
20495         fts, getcwd, glob: audit for dirfd returning -1
20496         * lib/fts.c (opendir): Remove #define; no longer used.
20497         (opendirat): New arg PDIR_FD.  All callers changed.
20498         (fts_build, _opendir2): Use new opendirat to avoid the need for
20499         dirfd, or for checking whether dirfd returns a negative value.
20500         Don't use opendir; always use openat followed by fdopendir.
20501         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
20502         it.
20503         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
20504         returns -1 here.
20505         * modules/fts (Depends-on): Remove dirfd.
20506         * modules/getcwd (Depends-on): Likewise.
20507
20508 2010-09-13  Eric Blake  <eblake@redhat.com>
20509
20510         float: fix broken MirBSD header
20511         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
20512         * doc/posix-headers/float.texi (float.h): Document it.
20513
20514 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
20515
20516         fts: use O_NOFOLLOW to avoid race condition when opening a directory
20517         * lib/fts.c (opendirat): New arg extra_flags.
20518         (__opendir2): Use it to avoid following symlinks when opening
20519         a directory, if symlinks are not supposed to be followed.  See
20520         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
20521
20522         fdopendir: preserve argument fd before returning
20523         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
20524         (fdopendir_with_dup, fd_clone_opendir): New static functions.
20525         (fdopendir): Use them, arranging for FD to be open to the same
20526         directory that it was when it started.  (It might be temporarily
20527         closed while fdopendir is running, so this not thread- or
20528         signal-safe.)  Be careful to do the right thing even when file
20529         descriptors are scarce and dup fails with errno == EMFILE.  See
20530         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
20531
20532 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
20533
20534         regex: Pass the system regex if its only problem is 32-bit regoff_t.
20535         * NEWS: Document change.
20536         * m4/regex.m4: Disable test for regoff_t size.
20537
20538 2010-09-13  Jim Meyering  <meyering@redhat.com>
20539
20540         fts: don't operate on an invalid file descriptor after failed dup
20541         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
20542         negative file descriptor.
20543
20544 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
20545
20546         savedir: add streamsavedir, deprecate fdsavedir
20547         * NEWS: Mention deprecation of fdsavedir.
20548         * lib/savedir.c (streamsavedir): New extern function, whose name
20549         ends in "savedir" to be consistent with the others.  This differs
20550         from savedirstream in that it doesn't close its argument.  The
20551         next version of GNU tar will use this instead of fdsavedir, to
20552         avoid some race conditions and conserve file descriptors.
20553         (savedirstream): Reimplement as a wrapper around streamsavedir.
20554         (fdsavedir): Add a comment deprecating this function.  As far as
20555         I know, only GNU tar used it, and GNU tar doesn't need it any more.
20556         * lib/savedir.h (streamsavedir): New decl.
20557         (fdsavedir): Add a comment deprecating this.
20558
20559 2010-09-10  Bruno Haible  <bruno@clisp.org>
20560
20561         langinfo: Fix last commit.
20562         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
20563         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
20564         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20565
20566 2010-09-10  Bruno Haible  <bruno@clisp.org>
20567
20568         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
20569         * lib/progreloc.c (O_EXEC): Define fallback.
20570
20571 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
20572
20573         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
20574         * NEWS: Document recent changes to fcntl-h.
20575         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
20576         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
20577         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
20578         Similarly for O_SEARCH; this last was already true, but not documented.
20579         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
20580         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
20581         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
20582         Likewise.
20583         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
20584         is zero, not whether it is defined.
20585         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
20586         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
20587         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
20588
20589 2010-09-10  Bruno Haible  <bruno@clisp.org>
20590
20591         langinfo, nl_langinfo: Fix for IRIX 5.3.
20592         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
20593         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
20594         HAVE_LANGINFO_YESEXPR.
20595         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
20596         HAVE_LANGINFO_YESEXPR.
20597         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
20598         HAVE_LANGINFO_T_FMT_AMPM is 0.
20599         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
20600         HAVE_LANGINFO_YESEXPR is 0.
20601         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
20602         NOEXPR.
20603         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
20604         * doc/posix-functions/nl_langinfo.texi: Likewise.
20605         Reported by Eric Blake.
20606
20607 2010-09-10  Bruno Haible  <bruno@clisp.org>
20608
20609         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
20610         * doc/glibc-functions/login_tty.texi: Mention the include file problem
20611         on FreeBSD 8.0 and OpenBSD 4.6.
20612         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
20613         * m4/pty_h.m4 (gl_PTY_H): Likewise.
20614         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
20615         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
20616         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
20617         ac_includes_default.
20618         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
20619
20620 2010-09-09  Eric Blake  <eblake@redhat.com>
20621
20622         strsignal: work around NetBSD bug
20623         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
20624         * lib/string.in.h (includes): Likewise.
20625         * doc/posix-functions/strsignal.texi (strsignal): Document the
20626         bug.
20627         Reported by Nelson H. F. Beebe.
20628
20629         gnulib-tool: work with NetBSD /bin/sh
20630         * gnulib-tool (func_cache_var, func_cache_lookup_module)
20631         (func_get_description, func_get_comment, func_get_status)
20632         (func_get_notice, func_get_applicability, func_get_filelist)
20633         (func_get_dependencies, func_get_autoconf_early_snippet)
20634         (func_get_autoconf_snippet, func_get_automake_snippet)
20635         (func_get_include_directive, func_get_link_directive)
20636         (func_get_license, func_get_maintainer, func_import): Avoid
20637         shell syntax errors from parsing syntax extensions.
20638
20639 2010-09-09  Bruno Haible  <bruno@clisp.org>
20640
20641         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20642         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
20643         a reliable way to determine whether the 'alias' command works.
20644
20645 2010-09-08  Jim Meyering  <meyering@redhat.com>
20646
20647         init.sh: penalize a set-x-impaired shell; don't disqualify it
20648         * tests/init.sh: Too many shells corrupt application stderr when
20649         you set -x, so we can't afford to disqualify them, since at least
20650         on Irix-6.5, that would disqualify all bourne shells.
20651         Instead, use a two-pass approach.
20652         On the first pass, try to find a shell that meets the stricter
20653         condition that set -x does not corrupt stderr.
20654         If no shell meets the stricter condition, retest each candidate
20655         shell, but without that extra condition.  Finally, when
20656         VERBOSE=yes is requested and set -x might cause trouble, simply
20657         issue a warning and refrain from enabling debug output.
20658
20659 2010-09-08  Eric Blake  <eblake@redhat.com>
20660
20661         unsetenv: fix OpenBSD bug
20662         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
20663         * doc/posix-functions/unsetenv.texi (unsetenv): Update
20664         documentation.
20665         Reported by Jim Meyering.
20666
20667         strtod: work around IRIX 6.5 bug
20668         * lib/strtod.c (strtod): Reparse number on shorter string if
20669         exponent parse was invalid.
20670         * tests/test-strtod.c (main): Add check for "0x1p 2".
20671         Reported by Tom G. Christensen.
20672
20673         getopt: optimize previous patch
20674         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
20675         empty variable.  Speed up awk script.
20676         Reported by Paolo Bonzini.
20677
20678 2010-09-08  Jim Meyering  <meyering@redhat.com>
20679
20680         test.sh: disqualify shells for which set -x corrupts stderr
20681         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
20682         and OpenBSD 4.7.  They make it so with "set -x", environment settings
20683         appear in stderr output.  For example, this command:
20684             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
20685         prints "P=1" on those two systems:
20686
20687 2010-09-08  Bruno Haible  <bruno@clisp.org>
20688
20689         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
20690         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
20691         commands, because some shells ignore redirections when there is an
20692         error in the command lookup.
20693         Reported by Eric Blake.
20694
20695 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
20696
20697         * lib/regex.h: Fix a mention of `regex_compile' (should be
20698         `re_compile_pattern').
20699         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
20700         (re_set_registers): Correct name of parameter in comment.
20701
20702         * doc/regex.texi: Add documentation for missing syntax flags.
20703         Remove commented-out documentation of defunct syntax option
20704         RE_NO_EMPTY_ALTS.
20705         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
20706         Add documentation of re_set_registers.
20707         Document trick to re-use a pattern buffer by setting fastmap manually.
20708         Update documentation of struct re_pattern_buffer per public members.
20709         Uncomment documentation of equivalence class operators and
20710         collating symbol operators, since they are now implemented,
20711         Explain leftmost-longest matching in relation to alternatives.
20712         Tidy documentation of substring matching.
20713         Remove POSIX documentation, which is done better in
20714         glibc, and refer the reader there. Keep BSD API documentation, as
20715         that is not readily available elsewhere.
20716
20717 2010-09-07  Eric Blake  <eblake@redhat.com>
20718
20719         getopt: handle POSIXLY_CORRECT set but not exported
20720         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
20721         export state of POSIXLY_CORRECT, due to bash set -o posix.
20722         Reported by Dustin J. Mitchell.
20723
20724 2010-09-05  Bruno Haible  <bruno@clisp.org>
20725
20726         gnulib-tool: Highlight the changed options.
20727         * gnulib-tool (func_usage): Display the --import, --add-import,
20728         --remove-import explanations in bold font.
20729
20730 2010-09-06  Karl Berry  <karl@gnu.org>
20731
20732         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
20733
20734 2010-09-05  Bruno Haible  <bruno@clisp.org>
20735
20736         uniwidth/width: Update comment.
20737         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
20738         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
20739
20740 2010-09-05  Bruno Haible  <bruno@clisp.org>
20741
20742         isinf, isnan: Relax license.
20743         * modules/isinf (License): Change from GPL to LGPL, with consent from
20744         Ben Pfaff.
20745         * modules/isnan (License): Likewise.
20746         Requested by Ludovic Courtès.
20747
20748 2010-09-04  Bruno Haible  <bruno@clisp.org>
20749
20750         gnulib-tool: Help migration from --import to --add-import or --update.
20751         * gnulib-tool: Emit a verbose error message when --import is used
20752         without any module name.
20753
20754 2010-09-04  Bruno Haible  <bruno@clisp.org>
20755
20756         Update doc about gnulib-tool.
20757         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
20758         'gnulib-tool --update' in more detail.
20759         Reported by Eric Blake.
20760
20761 2010-09-04  Bruno Haible  <bruno@clisp.org>
20762
20763         gnulib-tool: Change --import. New options --add/remove-import.
20764         * gnulib-tool: New options --add-import, --remove-import.
20765         (func_usage): Document them.
20766         (have_associative): Define always.
20767         (func_import): In import mode, don't merge the specified settings with
20768         the cached settings. Implement remove-import mode.
20769         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
20770         Explain when to use them versus --import.
20771         (Simple update): Use --add-import instead of --import.
20772         * NEWS: Mention the change.
20773
20774 2010-09-04  Bruno Haible  <bruno@clisp.org>
20775
20776         * doc/gnulib-tool.texi (Initial import): Update paragraph about
20777         separate gnulib.mk.
20778
20779 2010-09-04  Bruno Haible  <bruno@clisp.org>
20780
20781         gnulib-tool: Don't talk about CVS any more.
20782         * gnulib-tool (func_usage, func_import): Write "version control"
20783         instead of CVS.
20784
20785 2010-09-04  Jim Meyering  <meyering@redhat.com>
20786
20787         maint.mk: avoid obscure sc_copyright_check failure in coreutils
20788         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
20789         false positives (whose names may be ill-chosen) when searching
20790         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
20791         would cause a false-positive.
20792
20793         avoid coreutils "make distcheck" failure
20794         Coreutils tests with an absolute build directory name that contains
20795         a space.  Not quoting this directory name caused a failure.
20796         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
20797         * tests/test-vc-list-files-cvs.sh: Likewise.
20798
20799 2010-09-04  Bruno Haible  <bruno@clisp.org>
20800
20801         gnulib-tool: Avoid error when run in a package without Makefile.am.
20802         * gnulib-tool: When collecting the m4dirs in a package that does not
20803         have a Makefile.am, eliminate those directories that contain no
20804         gnulib-cache.m4. Fix expression that counts these directories.
20805
20806 2010-09-04  Bruno Haible  <bruno@clisp.org>
20807
20808         update-copyright test: Improve output when perl is missing or too old.
20809         * tests/test-update-copyright.sh: Move test of Perl version down after
20810         the test whether Perl exists. Provide an explanation relating Perl's
20811         error message to Automake's SKIP: message.
20812
20813 2010-09-04  Bruno Haible  <bruno@clisp.org>
20814
20815         Don't augment PATH in TESTS_ENVIRONMENT.
20816         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
20817         set abs_aux_dir instead of augmenting PATH.
20818         * modules/vc-list-files-tests (Makefile.am): Likewise.
20819         * tests/test-update-copyright.sh: Augment PATH here.
20820         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
20821         path_prepend_.
20822         * tests/test-vc-list-files-git.sh: Likewise.
20823
20824 2010-09-04  Jim Meyering  <meyering@redhat.com>
20825
20826         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
20827         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
20828
20829 2010-09-04  Bruno Haible  <bruno@clisp.org>
20830
20831         strdup: Fix compilation error in C++ mode.
20832         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
20833         the macro.
20834
20835 2010-09-04  Bruno Haible  <bruno@clisp.org>
20836
20837         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
20838         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
20839         macro into a function.
20840         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20841
20842 2010-09-04  Bruno Haible  <bruno@clisp.org>
20843
20844         Set PATH_SEPARATOR the same way autoconf does.
20845         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
20846         the value of PATH_SEPARATOR the same way autoconf-generated configure
20847         scripts do.
20848         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
20849         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
20850
20851 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20852
20853         Set PATH_SEPARATOR the same way autoconf does.
20854         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
20855         the same way autoconf-generated configure scripts do.
20856         * posix-modules: Likewise.
20857
20858 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
20859
20860         hash: fix safe_hasher const typo
20861         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
20862         const; otherwise, there is a type error later.
20863
20864 2010-09-02  Jim Meyering  <meyering@redhat.com>
20865
20866         test-update-copyright.sh: require perl 5.8.0
20867         * tests/test-update-copyright.sh: Require 5.8.0,
20868         which Tom G. Christensen has confirmed is adequate,
20869         while 5.6.1 is not.
20870
20871 2010-09-02  Eric Blake  <eblake@redhat.com>
20872
20873         tests: init.sh improvements for re-exec'ing with zsh
20874         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
20875         -vx through shell re-exec.
20876         Reported by Tom G. Christensen.
20877
20878         wctype: fix typo in previous commit
20879         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
20880         Reported by Ludovic Courtès.
20881
20882 2010-09-02  Jim Meyering  <meyering@redhat.com>
20883
20884         test-update-copyright.sh: skip test if Perl is too old
20885         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
20886         Reported by Tom G. Christensen.
20887
20888 2010-09-02  Bruno Haible  <bruno@clisp.org>
20889
20890         wctype: Avoid compilation error on IRIX 6.5.30.
20891         * lib/wctype.in.h (iswblank): Declare with a replacement if
20892         REPLACE_ISWBLANK is set.
20893         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
20894         declared. Set REPLACE_ISWBLANK.
20895         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
20896         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
20897         * doc/posix-headers/wctype.texi: Likewise.
20898         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20899
20900 2010-09-01  Bruno Haible  <bruno@clisp.org>
20901
20902         New module 'socketlib'.
20903         * modules/socketlib: New file.
20904         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
20905         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
20906         * modules/sockets (Depends-on): Add socketlib.
20907         Suggested by Sam Steingold <sds@gnu.org>.
20908
20909 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
20910
20911         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
20912
20913         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
20914         when one needs search access to a directory but not read access.
20915         On systems where it is available, it works in some cases where
20916         O_RDONLY does not, namely on directories that are searchable but
20917         not readable, and which need only to be searchable.  If O_SEARCH
20918         is not available, fall back to the traditional method of using
20919         O_RDONLY.
20920
20921         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
20922         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
20923         when opening a directory that needs only to be searchable.
20924         * lib/chdir-safer.c (chdir_no_follow): Likewise.
20925         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
20926         * lib/openat-proc.c (openat_proc_name): Likewise.
20927         * lib/openat.c (openat_needs_fchdir): Likewise.
20928         * lib/save-cwd.c (save_cwd): Likewise.
20929         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
20930
20931 2010-08-28  Bruno Haible  <bruno@clisp.org>
20932
20933         New module 'host-cpu-c-abi'.
20934         * modules/host-cpu-c-abi: New file.
20935         * m4/host-cpu-c-abi.m4: New file, based on part of
20936         clisp/src/m4/general.m4.
20937         Requested by Sam Steingold <sds@gnu.org>.
20938
20939 2010-08-31  Eric Blake  <eblake@redhat.com>
20940         and Jim Meyering  <meyering@redhat.com>
20941
20942         hash: factor, and guard against misbehaving hasher function
20943         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
20944         of table->hasher's return value.  Also protect against a hash value
20945         so large that adding it to table->bucket results in a NULL pointer.
20946         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
20947         Use it in place of open-coded check-and-abort.
20948
20949 2010-08-30  Bruno Haible  <bruno@clisp.org>
20950
20951         hash: silence spurious clang warning
20952         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
20953         Reported by Eric Blake.
20954
20955 2010-08-30  Eric Blake  <eblake@redhat.com>
20956
20957         strstr, memmem, strcasestr: avoid leaked shell message
20958         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
20959         FreeBSD.
20960         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20961         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20962
20963         tests: silence clang warning
20964         * tests/test-malloca.c (do_allocation): Avoid dead store.
20965
20966 2010-08-29  Bruno Haible  <bruno@clisp.org>
20967
20968         gettext: Fix recent mistake.
20969         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
20970
20971 2010-08-29  Bruno Haible  <bruno@clisp.org>
20972
20973         selinux-h: Offer a --without-selinux option.
20974         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
20975         --without-selinux was specified, skip all tests and define
20976         HAVE_SELINUX_SELINUX_H to 0.
20977         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
20978         set LIB_SELINUX to empty.
20979         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
20980         gl_LIBSELINUX. If --without-selinux was specified, replace
20981         selinux/context.h.
20982         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
20983
20984 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20985             Bruno Haible  <bruno@clisp.org>
20986
20987         Make the module 'realloc-gnu' work again on AIX and OSF/1.
20988         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
20989         of HAVE_REALLOC.
20990         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
20991         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
20992         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
20993         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
20994
20995 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20996             Bruno Haible  <bruno@clisp.org>
20997
20998         Make the module 'calloc-gnu' work again on AIX and OSF/1.
20999         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
21000         HAVE_CALLOC.
21001         * lib/xmalloc.c: Update accordingly.
21002         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
21003         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
21004         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
21005
21006 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21007             Bruno Haible  <bruno@clisp.org>
21008
21009         Make the module 'malloc-gnu' work again on AIX and OSF/1.
21010         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
21011         HAVE_MALLOC.
21012         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
21013         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
21014         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
21015
21016 2010-08-29  Bruno Haible  <bruno@clisp.org>
21017
21018         Update modules list.
21019         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
21020         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
21021         (String handling <string.h>): Add astrxfrm.
21022         (File system functions): Add readlinkat.
21023
21024 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21025
21026         Tests for module 'realloc-gnu'.
21027         * modules/realloc-gnu-tests: New file.
21028         * tests/test-realloc-gnu.c: New file.
21029
21030         Tests for module 'calloc-gnu'.
21031         * modules/calloc-gnu-tests: New file.
21032         * tests/test-calloc-gnu.c: New file.
21033
21034         Tests for module 'malloc-gnu'.
21035         * modules/malloc-gnu-tests: New file.
21036         * tests/test-malloc-gnu.c: New file.
21037
21038 2010-08-28  Bruno Haible  <bruno@clisp.org>
21039
21040         Rename module 'realloc' -> 'realloc-gnu'.
21041         * modules/realloc-gnu: New file, copied from modules/realloc.
21042         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
21043         obsolete.
21044         * modules/mgetgroups (Depends-on): Update.
21045         * doc/posix-functions/realloc.texi: Update.
21046         * NEWS: Mention the change.
21047
21048         Rename module 'calloc' -> 'calloc-gnu'.
21049         * modules/calloc-gnu: New file, copied from modules/calloc.
21050         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
21051         obsolete.
21052         * doc/posix-functions/calloc.texi: Update.
21053         * NEWS: Mention the change.
21054
21055         Rename module 'malloc' -> 'malloc-gnu'.
21056         * modules/malloc-gnu: New file, copied from modules/malloc.
21057         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
21058         obsolete.
21059         * modules/argp (Depends-on): Update.
21060         * modules/regex (Depends-on): Update.
21061         * doc/posix-functions/malloc.texi: Update.
21062         * NEWS: Mention the change.
21063
21064 2010-08-28  Eric Blake  <eblake@redhat.com>
21065
21066         pread, pwrite: add missing dependency
21067         * modules/pread (Depends-on): Add extensions.
21068         * modules/pwrite (Depends-on): Likewise.
21069
21070 2010-08-28  Bruno Haible  <bruno@clisp.org>
21071
21072         unistr/u*-strchr: Fix tests dependencies.
21073         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
21074         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
21075         Reported by Ian Beckwith <ianb@erislabs.net>.
21076
21077 2010-08-28  Bruno Haible  <bruno@clisp.org>
21078
21079         read-file: Don't occupy too much unused memory.
21080         * lib/read-file.c (fread_file): Shrink the buffer at the end.
21081
21082 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
21083             Eric Blake  <eblake@redhat.com>
21084             Bruno Haible  <bruno@clisp.org>
21085
21086         read-file: Avoid memory reallocations with regular files.
21087         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
21088         (fread_file): With regular files, use the remaining length as the
21089         initial buffer size.  Check against overflow.
21090         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
21091         sys_stat.
21092
21093 2010-08-28  Bruno Haible  <bruno@clisp.org>
21094
21095         ftello: Relax license.
21096         * modules/ftello (License): Relax to LGPLv2+.
21097         Reported by Eric Blake.
21098
21099 2010-08-28  Bruno Haible  <bruno@clisp.org>
21100
21101         Avoid relocwrapper link errors due to gnulib replacement functions.
21102         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
21103         function.
21104         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21105
21106 2010-08-28  Bruno Haible  <bruno@clisp.org>
21107
21108         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
21109         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
21110         defined.
21111         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
21112         Suggested by Eric Blake.
21113
21114 2010-08-28  Bruno Haible  <bruno@clisp.org>
21115
21116         sys_socket, netdb: Ensure socklen_t gets defined.
21117         * modules/sys_socket (Depends-on): Add socklen.
21118         * modules/netdb (Depends-on): Likewise.
21119         * modules/getaddrinfo (Depends-on): Remove socklen.
21120         * modules/getsockopt (Depends-on): Likewise.
21121         * modules/setsockopt (Depends-on): Likewise.
21122         * tests/test-sys_socket.c: Check that socklen_t is defined.
21123         * tests/test-netdb.c: Likewise.
21124         * m4/socklen.m4: Update comments.
21125         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21126
21127 2010-08-27  Eric Blake  <eblake@redhat.com>
21128
21129         login_tty: add missing dependency
21130         * modules/login_tty (Depends-on): Add pty.
21131
21132 2010-08-26  Eric Blake  <eblake@redhat.com>
21133
21134         lib-symbol-versions: fix m4 quoting
21135         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
21136         format for AC_LINK_IFELSE.
21137
21138         glob: fix compile test
21139         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
21140
21141         btowc: fix missing file
21142         * modules/btowc (Files): Also ship locale-fr.m4.
21143
21144         lseek: fix link test
21145         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
21146         AC_LINK_IFELSE.
21147
21148         include_next: silence autoconf 2.68 warning
21149         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
21150         AC_COMPILE_IFELSE as special.
21151         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
21152         autoconf < 2.68.
21153
21154         acl: fix compilation test
21155         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
21156         AC_COMPILE_IFELSE.
21157
21158 2010-08-26  Bruno Haible  <bruno@clisp.org>
21159
21160         Modernize AC_TRY_RUN invocations.
21161         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
21162         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
21163         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
21164         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
21165         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
21166         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21167         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
21168         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
21169         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21170         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21171         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
21172         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
21173         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
21174         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
21175         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
21176         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
21177         gl_MBRLEN_NUL_RETVAL): Likewise.
21178         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
21179         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
21180         Likewise.
21181         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
21182         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
21183         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
21184         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
21185         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
21186         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
21187         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
21188         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
21189         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
21190         Likewise.
21191         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
21192         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
21193         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
21194         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21195         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21196         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
21197         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
21198         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
21199         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
21200         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
21201
21202 2010-08-26  Bruno Haible  <bruno@clisp.org>
21203
21204         Modernize AC_TRY_LINK invocations.
21205         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
21206         AC_TRY_LINK.
21207         * m4/argp.m4 (gl_ARGP): Likewise.
21208         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
21209         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
21210         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
21211         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
21212         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
21213         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
21214         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
21215         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
21216         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
21217         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
21218         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
21219         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
21220         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
21221         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
21222         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
21223         * m4/hostent.m4 (gl_HOSTENT): Likewise.
21224         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
21225         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
21226         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
21227         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
21228         Likewise.
21229         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
21230         Likewise.
21231         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
21232         Likewise.
21233         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
21234         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
21235         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
21236         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
21237         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
21238         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
21239         * m4/servent.m4 (gl_SERVENT): Likewise.
21240         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
21241         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
21242         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
21243         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
21244         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
21245         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
21246         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
21247         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21248         * modules/tsearch-tests (configure.ac): Likewise.
21249
21250 2010-08-26  Bruno Haible  <bruno@clisp.org>
21251
21252         Modernize AC_TRY_COMPILE invocations.
21253         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
21254         AC_TRY_COMPILE.
21255         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
21256         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
21257         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
21258         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
21259         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
21260         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
21261         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
21262         * m4/lock.m4 (gl_LOCK): Likewise.
21263         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
21264         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
21265         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
21266         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
21267         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
21268         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
21269         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
21270         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
21271         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
21272         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
21273         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
21274         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
21275         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
21276         extraneous semicolon.
21277
21278 2010-08-26  Jim Meyering  <meyering@redhat.com>
21279
21280         stat-time: relax license LGPL
21281         * modules/stat-time (License): Change from GPL to LGPL,
21282         with consent from all contributors, for use in libguile.
21283         Requested by Ludovic Courtès.
21284
21285 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
21286
21287         poll: return immediately on POLLHUP.
21288         * lib/poll.c (poll): Always set timeout before wait_timeout is
21289         computed.
21290
21291 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21292
21293         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
21294         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
21295         rmdir ("dir/.//"), unlinkat.
21296
21297 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21298
21299         stdbool: avoid spurious failure with modern xlc
21300         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
21301
21302 2010-08-24  Bruno Haible  <bruno@clisp.org>
21303
21304         getloadavg: simplify code
21305         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
21306         gl_have_func. Update comments.
21307
21308 2010-08-24  Eric Blake  <eblake@redhat.com>
21309
21310         getloadavg: don't define SVR4 on cygwin
21311         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
21312         only define SVR4 when -lkvm is required.
21313         Reported by Yaakov Selkowitz.
21314
21315 2010-08-24  Bruno Haible  <bruno@clisp.org>
21316
21317         priv-set: fix comment
21318         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
21319
21320 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
21321
21322         priv-set: fix comments
21323         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
21324         to match code, as suggested by David Bartley in:
21325         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
21326
21327 2010-08-23  Eric Blake  <eblake@redhat.com>
21328
21329         stdbool: avoid rejecting clang
21330         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
21331         * tests/test-stdbool.c: Enable more tests if using the system
21332         <stdbool.h> instead of the gnulib replacement.
21333         (main): Move xlc bug test to a runtime test for all compilers.
21334         Reported by Anders Kaseorg.
21335
21336         argz: fix shell quoting issue
21337         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
21338         Reported by Charles Wilson.
21339
21340 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
21341             Erik Faye-Lund <kusmabite@gmail.com>
21342
21343         poll, select: handle ERROR_BROKEN_PIPE.
21344         * lib/poll.c (win32_compute_revents): Return POLLHUP when
21345         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21346         * lib/select.c (win32_compute_revents): Do not mark a pipe
21347         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
21348
21349 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
21350
21351         fts: allow compilation with C++
21352         * lib/fts_.h: Specify extern "C" linkage with C++.
21353
21354 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21355
21356         Fix gnulib-tool sed script de-commentation for AIX sed.
21357         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
21358         sed.
21359
21360 2010-08-17  Eric Blake  <eblake@redhat.com>
21361
21362         test-stddef: test for (some) offsetof bugs
21363         * tests/test-stddef.c: Enhance test to ensure correct type of
21364         offsetof.
21365         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
21366         that we are not fixing at this time.
21367
21368 2010-08-15  Bruno Haible  <bruno@clisp.org>
21369
21370         stpncpy: Allow stpncpy to be defined as a macro.
21371         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
21372         if it's already correctly declared.
21373         * lib/string.in.h (stpncpy): Undefine before redefining.
21374         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
21375
21376 2010-08-14  Bruno Haible  <bruno@clisp.org>
21377
21378         Rename module 'memxfrm' to 'amemxfrm'.
21379         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
21380         (amemxfrm): Renamed from memxfrm.
21381         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
21382         (amemxfrm): Renamed from memxfrm.
21383         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
21384         * NEWS: Mention the change.
21385         * MODULES.html.sh (String handling <string.h>): Update.
21386         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
21387         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
21388         * lib/unicase/u16-casexfrm.c: Likewise.
21389         * lib/unicase/u32-casexfrm.c: Likewise.
21390         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
21391         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
21392         * lib/uninorm/u16-normxfrm.c: Likewise.
21393         * lib/uninorm/u32-normxfrm.c: Likewise.
21394         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
21395         memxfrm.
21396         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
21397         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
21398         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
21399         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
21400         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
21401         Suggested by Paul Eggert.
21402
21403 2010-08-14  Bruno Haible  <bruno@clisp.org>
21404
21405         Tests for module 'astrxfrm'.
21406         * modules/astrxfrm-tests: New file.
21407         * tests/test-astrxfrm.c: New file.
21408
21409         New module 'astrxfrm'.
21410         * lib/astrxfrm.h: New file.
21411         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
21412         * modules/astrxfrm: New file.
21413
21414 2010-08-14  Reuben Thomas <rrt@sc3d.org>
21415
21416         regex: Tweak doc.
21417         * doc/regex.texi (Overview): Don't mention regex.c.
21418         (GNU Regular Expression Compiling): Likewise.
21419         (Match-end-of-line Operator): Mention 'not_eol'.
21420
21421 2010-08-14  Brian Gough  <bjg@gnu.org>
21422             Bruno Haible  <bruno@clisp.org>
21423
21424         git-merge-changelog: add doc relating to use with bzr and hg.
21425         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
21426
21427 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
21428
21429         pthread: fix pthread.h creation for srcdir != builddir
21430         * modules/pthread (Makefile.am): Fix the rule to work also in a
21431         non-srcdir build.
21432
21433 2010-08-13  Karl Berry  <karl@gnu.org>
21434
21435         * doc/regex.texi (Predefined Syntaxes): @smallexample.
21436         * doc/posix-*/*: force line break before @url of POSIX
21437         specifications.
21438         Suggested by Werner Lemberg.
21439
21440 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
21441
21442         strtod: fix const diagnostic
21443         * lib/strtod.c (strtod): Don't assign const char * to char *,
21444         as this elicits a warning from GCC when warnings are enabled.
21445
21446 2010-08-10  Pádraig Brady <P@draigbrady.com>
21447         and Eric Blake  <eblake@redhat.com>
21448
21449         copy-acl: ignore ENOTSUP on HP-UX
21450         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
21451         so that it is available for HP-UX.
21452         * lib/copy-acl.c (qcopy_acl): Use it.
21453         Reported by Patrick M. Callahan.
21454
21455 2010-08-10  Eric Blake  <eblake@redhat.com>
21456
21457         open, chown: relax license
21458         * modules/open (License): Change to LGPLv2+, with consent by all
21459         authors, for use in augeas.
21460         * modules/chown (License): Likewise.
21461         * modules/lchown (Likewise): Likewise.
21462         Requested by Adam Stokes.
21463
21464 2010-08-09  Karl Berry  <karl@gnu.org>
21465
21466         * build-aux/ar-lib: new file, import from Automake.
21467         * config/srclist.txt: autocheck for updates.
21468
21469 2010-08-09  Eric Blake  <eblake@redhat.com>
21470
21471         readlinkat: adjust client modules
21472         * modules/areadlinkat (Depends-on): Use readlinkat, not
21473         symlinkat.
21474         * modules/areadlinkat-with-size (Depends-on): Likewise.
21475
21476         mknod: be more vocal about danger of running tests as root
21477         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
21478         root, since that is just asking for problems.
21479         Suggested by Bruno Haible, based on a report by Rainer Tammer.
21480
21481         readlinkat: split into its own module
21482         * modules/symlinkat: Split readlinkat...
21483         * modules/readlinkat: ...into separate module.
21484         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
21485         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
21486         * lib/symlinkat.c (readlinkat): Move...
21487         * lib/readlinkat.c: ...into new file.
21488         * modules/symlinkat-tests: Split readlinkat test...
21489         * modules/readlinkat-tests: ...into separate module.
21490         * tests/test-symlinkat.c: Split...
21491         * tests/test-readlinkat.c: ...into new file.
21492         * NEWS: Document the split.
21493         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
21494         * lib/unistd.in.h (readlinkat): Likewise.
21495         Suggested by Bruno Haible.
21496
21497 2010-08-08  Bruno Haible  <bruno@clisp.org>
21498
21499         memxfrm: Speed up.
21500         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
21501         that usually only one call to strxfrm is necessary for each string
21502         part.
21503         Reported by Paul Eggert <eggert@cs.ucla.edu>.
21504
21505 2010-08-07  Karl Berry  <karl@gnu.org>
21506
21507         * doc/posix-headers/limits.texi,
21508         * doc/posix-functions/malloc.texi,
21509         * doc/posix-functions/strsignal.texi: missing @item.
21510         * doc/ld-version-script.texi: spurious leading i.
21511         * doc/regex.texi (Interval Operators): no commas inside @var.
21512
21513 2010-08-01  Bruno Haible  <bruno@clisp.org>
21514
21515         Integrate the regex documentation.
21516         * doc/gnulib.texi: Define 'cn' index.
21517         (Regular expressions): New a chapter that includes regex.texi and
21518         regexprops-generic.texi.
21519         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
21520         syntax.
21521
21522         Whitespace cleanup.
21523         * doc/regex.texi: Remove trailing spaces.
21524
21525         Add regex documentation.
21526         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
21527         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
21528         Written by Kathy A. Hargreaves and Karl Berry.
21529
21530 2010-08-01  Bruno Haible  <bruno@clisp.org>
21531
21532         link: Update documentation.
21533         * doc/posix-functions/link.texi: Update regarding Solaris.
21534
21535 2010-07-31  Bruno Haible  <bruno@clisp.org>
21536
21537         Update modules list.
21538         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
21539         (String handling <string.h>): Add memcmp2, memxfrm.
21540         (Container data structures): Add xlist, xsublist, xoset.
21541         (Core language properties): Add alignof, unused-parameter.
21542         (Process control, Numeric conversion functions <stdlib.h>): Renamed
21543         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
21544         (Unibyte characters <ctype.h>): New section.
21545         (String handling <string.h>): New section.
21546         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
21547         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
21548         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
21549         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
21550         tan, tanh, tanl, y0, y1, yn.
21551         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
21552         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
21553         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
21554         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
21555         unlockpt, vdprintf, vdprintf-posix.
21556         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
21557         (File system functions): Add concat-filename, sys_file, sys_ioctl,
21558         xconcat-filename.
21559         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
21560         getdtablesize, pipe2, pipe2-safer.
21561         (Security): New section.
21562         (Networking functions): Add accept4.
21563         (Signal handling): Add sigpipe.
21564         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
21565         mbmemcasecoll.
21566         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
21567         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
21568         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
21569         pipe-filter-ii.
21570         (Misc): Add argp-version-etc, login_tty, parse-duration.
21571
21572 2010-07-31  Bruno Haible  <bruno@clisp.org>
21573
21574         Improve doc in MODULES.html.
21575         * modules/linkat (Description): Add the word "function".
21576         * modules/mkfifo (Description): Likewise.
21577         * modules/mknod (Description): Likewise.
21578         * modules/remove (Description): Likewise.
21579         * modules/renameat (Description): Likewise.
21580         * modules/stat (Description): Likewise.
21581         * modules/symlink (Description): Likewise.
21582         * modules/unlink (Description): Likewise.
21583
21584 2010-07-31  Bruno Haible  <bruno@clisp.org>
21585
21586         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
21587         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
21588         option --enable/disable-c++ instead of --enable/disable-cxx.
21589         * NEWS: Mention the change.
21590
21591 2010-07-31  Bruno Haible  <bruno@clisp.org>
21592
21593         readlink, areadlink: Relax test a bit.
21594         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
21595         alternative to ENOTDIR.
21596         * tests/test-areadlink.h (test_areadlink): Likewise.
21597         Reported by Rainer Tammer.
21598
21599 2010-07-31  Bruno Haible  <bruno@clisp.org>
21600
21601         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
21602         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
21603         character, perform the search using U_STRCHR.
21604         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
21605         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
21606         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
21607         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
21608         Suggested by Paolo Bonzini.
21609
21610 2010-07-31  Bruno Haible  <bruno@clisp.org>
21611
21612         unistr/u*-strstr: Fix dependencies.
21613         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
21614         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
21615         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
21616
21617 2010-07-31  Bruno Haible  <bruno@clisp.org>
21618
21619         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
21620         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
21621         the beginning of the loop.
21622         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
21623         cases in 'switch' statement.
21624
21625         unistr/u8-strchr: Fix several bugs.
21626         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
21627         the string. When not found, return NULL, not a pointer near the end.
21628
21629         More tests for unistr/u8-strchr.
21630         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
21631         that the function does not read past the first occurrence of the byte
21632         being searched.
21633         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
21634         * tests/unistr/test-u16-strchr.c (main): New function.
21635         * tests/unistr/test-u32-strchr.c (main): New function.
21636
21637 2010-07-31  Bruno Haible  <bruno@clisp.org>
21638
21639         posix-modules: Ignore backup files of documentation files.
21640         * posix-modules: grep only through files named *.texi.
21641
21642 2010-07-31  Bruno Haible  <bruno@clisp.org>
21643
21644         symlinkat: Fix documentation.
21645         * doc/posix-functions/readlinkat.texi: Fix module name.
21646
21647 2010-07-31  Bruno Haible  <bruno@clisp.org>
21648
21649         fchownat: Replace also when chown has the trailing slash bug.
21650         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
21651         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
21652         introduced on 2010-04-10.
21653         Reported by Rainer Tammer.
21654
21655 2010-07-31  Bruno Haible  <bruno@clisp.org>
21656
21657         linkat: Work around AIX 7.1 bug.
21658         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
21659         whether linkat handles trailing slash correctly. If not, replace linkat
21660         and define LINKAT_TRAILING_SLASH_BUG.
21661         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
21662         check whether (fd1,file1) points to a directory if file1 or file2 ends
21663         in a slash. Code taken from lib/link.c.
21664         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
21665         Reported by Rainer Tammer.
21666
21667 2010-07-31  Bruno Haible  <bruno@clisp.org>
21668
21669         Correctly determine whether pow is available in libc on AIX 7 with xlc.
21670         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
21671         This disables an xlc optimization that was causing wrong test results.
21672         Reported by Rainer Tammer.
21673
21674 2010-07-31  Bruno Haible  <bruno@clisp.org>
21675
21676         iconv: Work around AIX 6.1..7.1 bug.
21677         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
21678         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
21679         cross-compiling, guess no on all versions of AIX.
21680         Reported by Rainer Tammer.
21681
21682 2010-07-31  Bruno Haible  <bruno@clisp.org>
21683
21684         readlink: Relax test a bit.
21685         * tests/test-readlink.h (test_readlink): Allow different errno value
21686         when readlink is called with a file name that ends in / and refers to
21687         a file.
21688         Suggested by Eric Blake.
21689         Reported by Rainer Tammer.
21690
21691 2010-07-31  Bruno Haible  <bruno@clisp.org>
21692
21693         copysign: Does not require -lm on glibc systems.
21694         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
21695         gl_COMMON_DOUBLE_MATHFUNC.
21696         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
21697
21698 2010-07-31  Bruno Haible  <bruno@clisp.org>
21699
21700         duplocale: Work around AIX 7.1 bug.
21701         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
21702         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
21703         * lib/duplocale.c (rpl_duplocale): Update comment.
21704         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
21705         Reported by Rainer Tammer.
21706
21707 2010-07-30  Bruno Haible  <bruno@clisp.org>
21708
21709         dirfd: Avoid link error on AIX 7.1.
21710         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
21711         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
21712         exist, set REPLACE_DIRFD.
21713         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
21714         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
21715         * doc/posix-functions/dirfd.texi: Update.
21716         Reported by Rainer Tammer.
21717
21718 2010-07-30  Eric Blake  <eblake@redhat.com>
21719
21720         strtod: next round of AIX fixes
21721         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
21722         exponent.
21723         * tests/test-strtod.c (main): Enhance tests.
21724         * doc/posix-functions/strtod.texi (strtod): Document next bug.
21725         Reported by Rainer Tammer.
21726
21727         futimens: fix configure check
21728         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
21729         Reported by Bruno Haible.
21730
21731 2010-07-30  Bruno Haible  <bruno@clisp.org>
21732
21733         getline: Update regarding AIX.
21734         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
21735         Reported by Rainer Tammer.
21736
21737 2010-07-30  Bruno Haible  <bruno@clisp.org>
21738
21739         wcwidth: Drop replacement on AIX 7.
21740         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
21741         AIX 7.
21742         Reported by Rainer Tammer.
21743
21744 2010-07-30  Bruno Haible  <bruno@clisp.org>
21745
21746         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
21747         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
21748         a 'char *'.
21749         Reported by Rainer Tammer.
21750
21751 2010-07-30  Bruno Haible  <bruno@clisp.org>
21752
21753         unlink: Update regarding AIX.
21754         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
21755         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
21756         Reported by Rainer Tammer.
21757
21758 2010-07-30  Bruno Haible  <bruno@clisp.org>
21759
21760         symlink: Update regarding AIX.
21761         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
21762         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
21763         Reported by Rainer Tammer.
21764
21765 2010-07-30  Bruno Haible  <bruno@clisp.org>
21766
21767         strndup: Update regarding AIX.
21768         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
21769         AIX 7.
21770         Reported by Rainer Tammer.
21771
21772 2010-07-30  Bruno Haible  <bruno@clisp.org>
21773
21774         stat: Update regarding AIX.
21775         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
21776         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
21777         Reported by Rainer Tammer.
21778
21779 2010-07-30  Bruno Haible  <bruno@clisp.org>
21780
21781         truncl: Fix autoconf test.
21782         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
21783         whether truncl works.
21784         Reported by Rainer Tammer.
21785
21786 2010-07-30  Bruno Haible  <bruno@clisp.org>
21787
21788         round: Update regarding AIX.
21789         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
21790         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
21791         Reported by Rainer Tammer.
21792
21793 2010-07-30  Bruno Haible  <bruno@clisp.org>
21794
21795         rename: Update regarding AIX.
21796         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
21797         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
21798         Reported by Rainer Tammer.
21799
21800 2010-07-30  Bruno Haible  <bruno@clisp.org>
21801
21802         printf.m4: Update regarding AIX.
21803         * m4/printf.m4: Update comments regarding AIX.
21804         Reported by Rainer Tammer.
21805
21806 2010-07-30  Bruno Haible  <bruno@clisp.org>
21807
21808         iconv: Update regarding AIX.
21809         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
21810         AIX 7.
21811         Reported by Rainer Tammer.
21812
21813 2010-07-30  Bruno Haible  <bruno@clisp.org>
21814
21815         getopt: Update regarding AIX.
21816         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
21817         no on AIX.
21818         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
21819         Reported by Rainer Tammer.
21820
21821 2010-07-30  Bruno Haible  <bruno@clisp.org>
21822
21823         ldexpl; Update regarding AIX.
21824         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
21825         on AIX 7.
21826         Reported by Rainer Tammer.
21827
21828 2010-07-30  Bruno Haible  <bruno@clisp.org>
21829
21830         frexpl: Update regarding AIX.
21831         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
21832         on AIX 7.
21833         Reported by Rainer Tammer.
21834
21835 2010-07-30  Bruno Haible  <bruno@clisp.org>
21836
21837         open, fopen: Update regarding AIX.
21838         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
21839         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
21840         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
21841         * doc/posix-functions/fopen.texi: Likewise.
21842         Reported by Rainer Tammer.
21843
21844 2010-07-30  Bruno Haible  <bruno@clisp.org>
21845
21846         chown: Update doc regarding AIX.
21847         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
21848         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
21849         Reported by Rainer Tammer.
21850
21851 2010-07-30  Eric Blake  <eblake@redhat.com>
21852
21853         strtod: fix bug in replacement function on AIX
21854         * lib/strtod.c (strtod): Special case broken "0x" parse in
21855         underlying strtod.
21856         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
21857         * doc/posix-functions/strtod.texi (strtod): Likewise.
21858         Reported by Rainer Tammer.
21859
21860 2010-07-30  Bruno Haible  <bruno@clisp.org>
21861
21862         mbrlen: Fix cross-compilation guess for AIX.
21863         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
21864         guess. Leftover from 2008-12-22.
21865
21866 2010-07-30  Bruno Haible  <bruno@clisp.org>
21867
21868         mbrtowc: Fix cross-compilation guess for AIX.
21869         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
21870         guess. Leftover from 2008-12-21.
21871
21872 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
21873
21874         init.sh: work around trap limitation of some shells
21875         * tests/init.sh (setup_): Move exit trap outside of shell function.
21876
21877 2010-07-29  Eric Blake  <eblake@redhat.com>
21878
21879         strtod: aid debugging
21880         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
21881         understanding why strtod is rejected.
21882
21883 2010-07-28  Bruno Haible  <bruno@clisp.org>
21884
21885         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
21886         * lib/unistr/u8-chr.c: Include <string.h>.
21887         * tests/unistr/test-u8-chr.c: Likewise.
21888         * tests/unistr/test-u16-chr.c: Likewise.
21889         * tests/unistr/test-u32-chr.c: Likewise.
21890         * tests/unistr/test-u8-strchr.c: Likewise.
21891         * tests/unistr/test-u16-strchr.c: Likewise.
21892         * tests/unistr/test-u32-strchr.c: Likewise.
21893         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
21894         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
21895         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
21896         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
21897
21898 2010-07-28  Bruno Haible  <bruno@clisp.org>
21899
21900         Use spaces for indentation, not tabs.
21901         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
21902
21903 2010-07-27  Bruno Haible  <bruno@clisp.org>
21904
21905         mbspcasecmp: Fix function specification.
21906         * lib/string.in.h (mbspcasecmp): Fix specification comment.
21907         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
21908         Reported by Eric Blake <eblake@redhat.com>.
21909
21910 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
21911
21912         timespec: use cast and not conditional, as truncation isn't possible
21913         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
21914         instead of a conditional.  Comment about the situation in more detail.
21915         This undoes most of the 2009-10-29 patch.
21916
21917 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
21918
21919         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
21920         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
21921         * lib/unistr/u8-strchr.c: Likewise.
21922         * modules/unistr/u8-chr: Depend on memchr.
21923
21924         unistr/u*-strchr: add tests
21925         * modules/unistr/u8-strchr-tests: New file.
21926         * modules/unistr/u16-strchr-tests: New file.
21927         * modules/unistr/u32-strchr-tests: New file.
21928         * tests/unistr/test-strchr.h: New file.
21929         * tests/unistr/test-u8-strchr.c: New file.
21930         * tests/unistr/test-u16-strchr.c: New file.
21931         * tests/unistr/test-u32-strchr.c: New file.
21932
21933         unistr/u*-chr: test multibyte sequences more
21934         * tests/unistr/test-chr.h: Do complete testing of the characters in the
21935         test vector.
21936         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
21937         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
21938         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
21939
21940         unistr/u*-chr: test multibyte sequences
21941         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
21942
21943         unistr/u*-chr: prepare for multibyte tests
21944         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
21945         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
21946         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
21947         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
21948         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
21949         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
21950
21951 2010-07-18  Bruno Haible  <bruno@clisp.org>
21952
21953         unistr/u8-strchr: Optimize non-ASCII argument case.
21954         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
21955         because the first byte often matches anyway.
21956         Reported by Pádraig Brady <P@draigbrady.com>.
21957
21958 2010-07-15  Karl Berry  <karl@gnu.org>
21959
21960         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
21961
21962 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
21963
21964         getcwd: on Solaris, work better if ancestors are inaccessible
21965         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
21966         buffer and size, try again with a large buffer.  This works better
21967         on Solaris, since its getcwd succeeds even if the path to the root
21968         is inaccessible, and this is helpful in common cases such as .zfs
21969         hidden directories.  Problem reported by J Chapman Flack in
21970         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
21971         Use system getcwd if it's declared, not merely if it's partly
21972         working; use the partly-working test only to avoid needless effort
21973         if the system getcwd fails.
21974         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
21975         comment that was already obsolete and is now even more obsolete.
21976         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
21977         now might call strdup.
21978
21979 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
21980
21981         pthread: Add enough so that coreutils/src/sort.c compiles.
21982         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
21983         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
21984         gnulib. Include <sched.h> and <time.h>, as per POSIX.
21985         Include <sys/types.h>, in case it defines pthread_t.
21986         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
21987         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
21988         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
21989         (pthread_rwlockattr_t, pthread_spinlock_t):
21990         New typedefs, if HAVE_PTHREAD_T is not defined.
21991         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
21992         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
21993         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
21994         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
21995         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
21996         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
21997         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
21998         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
21999         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
22000         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
22001         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
22002         New macros.
22003         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
22004         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
22005         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
22006         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
22007         (pthread_spin_unlock): New dummy functions.
22008         (pthread_create): Return EAGAIN; don't set errno.
22009         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
22010         require AC_C_INLINE.
22011         * modules/pthread (Depends-on): Add sched, time.
22012         (pthread.h): Use AM_V_GEN.
22013
22014 2010-07-13  Bruno Haible  <bruno@clisp.org>
22015
22016         striconveh: Don't malloc memory if the result buffer is sufficient.
22017         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
22018         buffer if its size is sufficient.
22019         Reported by Ludovic Courtès <ludo@gnu.org>.
22020
22021 2010-07-13  Bruno Haible  <bruno@clisp.org>
22022
22023         strtod: Add safety check.
22024         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
22025
22026 2010-07-12  Bruno Haible  <bruno@clisp.org>
22027
22028         Unify tests that set gl_cv_func_ldexpl_no_libm.
22029         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
22030         gl_FUNC_LDEXPL.
22031         (gl_FUNC_LDEXPL): Invoke it.
22032         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22033
22034 2010-07-12  Bruno Haible  <bruno@clisp.org>
22035
22036         Unify tests that set gl_cv_func_ldexp_no_libm.
22037         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
22038         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
22039         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
22040         (configure.ac): Simply invoke gl_FUNC_LDEXP.
22041         * modules/strtod (Files): Add m4/ldexp.m4.
22042
22043 2010-07-12  Bruno Haible  <bruno@clisp.org>
22044
22045         Unify tests that set gl_cv_func_frexpl_no_libm.
22046         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
22047         gl_FUNC_FREXPL_NO_LIBM.
22048         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
22049         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22050
22051 2010-07-12  Bruno Haible  <bruno@clisp.org>
22052
22053         Unify tests that set gl_cv_func_frexp_no_libm.
22054         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
22055         gl_FUNC_FREXP_NO_LIBM.
22056         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
22057         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
22058
22059 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
22060
22061         memcoll: clarify sizes versus lengths, document better, and tweak perf
22062         * lib/memcoll.c (strcoll_loop, memcoll0):
22063         Improve quality of descriptive comments.  Name variables
22064         consistently as to whether they are lengths (which do not include
22065         terminating null) versus sizes (which do).
22066         * lib/xmemcoll.c (xmemcoll0): Likewise.
22067         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
22068         returned when s1size == 0; this is easier to compile and saves
22069         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
22070
22071 2010-07-12  Bruno Haible  <bruno@clisp.org>
22072
22073         Tests for module '_Exit'.
22074         * modules/_Exit-tests: New file.
22075         * tests/test-_Exit.sh: New file.
22076         * tests/test-_Exit.c: New file.
22077
22078         New module '_Exit'.
22079         * lib/stdlib.in.h (__attribute__): New macro.
22080         (_Exit): New declaration.
22081         * lib/_Exit.c: New file.
22082         * m4/_Exit.m4: New file.
22083         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
22084         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
22085         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
22086         * modules/_Exit: New file.
22087         * tests/test-stdlib-c++.cc (_Exit): Check signature.
22088         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
22089
22090 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
22091
22092         strtod: make it more-accurate typically, and don't require libm
22093         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
22094         Include limits.h.  Don't include string.h.
22095         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
22096         (locale_isspace): New function, so that no casts are needed to
22097         check whether *s is a space.
22098         (ldexp): Provide an unused dummy if not available.
22099         (scale_radix_exp, parse_number, underlying_strtod): New functions.
22100         (strtod): Use them.  This implementation prefers to use the
22101         underlying strtod if available, falling back on our own code
22102         only to fix known bugs.  This is more likely to produce an
22103         accurate result.  Also, it avoids the use of libm functions.
22104         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
22105         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
22106         was absent, but it caused a test failure with coreutils.
22107         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
22108         with libm.
22109         * modules/strtod (Makefile.am, Link): libm is no longer needed.
22110         * modules/strtod-tests (Makefile.am): Likewise.
22111
22112 2010-07-11  Pádraig Brady  <P@draigBrady.com>
22113             Bruno Haible  <bruno@clisp.org>
22114
22115         unistr/u8-strchr: Optimize ASCII argument case.
22116         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
22117
22118 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
22119
22120         (x)memcoll: minor tweaks
22121         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
22122         is after the type that it qualifies.
22123         (memcoll0): Likewise.
22124         * lib/memcoll.h (memcoll0): Likewise.
22125         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
22126         * lib/xmemcoll.h (xmemcoll0): Likewise.
22127         * lib/memcoll.c (memcoll0): Correct the comment.  This function
22128         differs from memcoll in that the NUL byte is part of the argument.
22129         Omit the abort-checks, as performance is a real issue here.  Plus,
22130         the checks were wrong anyway (an off-by-one error).  Omit local
22131         variable 'diff', as it's a bit clearer that way.
22132         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
22133         no longer needed.
22134
22135 2010-07-08  Chen Guo <chenguo4@yahoo.com>
22136
22137         (x)memcoll: speedup when input is known to be NUL delimited
22138         * lib/memcoll.c: Include stdlib.
22139         (memcoll0): New function.
22140         (strcoll_loop): New function, refactored for use in both memcoll
22141         and memcoll0.
22142         * lib/memcoll.h (memcoll0): Add prototype.
22143         * lib/xmemcoll.c (xmemcoll0): New function.
22144         (collate_error): New function, refactored for use in both xmemcoll
22145         and xmemcoll0.
22146         * lib/xmemcoll.h (xmemcoll0): Add prototype.
22147         * m4/memcoll.m4: add inline invocation.
22148
22149 2010-07-06  Pádraig Brady  <P@draigBrady.com>
22150
22151         * build-aux/bootstrap: Remove any local translations
22152         from the translation project synchronization directory,
22153         so that local only translations are not distributed.
22154
22155 2010-07-04  Bruno Haible  <bruno@clisp.org>
22156
22157         fsusage: Clarify which code applies to which platforms.
22158         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
22159         platform.
22160         * lib/fsusage.c (get_fs_usage): Likewise.
22161
22162 2010-07-04  Bruno Haible  <bruno@clisp.org>
22163
22164         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
22165         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
22166         Reported by Martin Lambers <marlam@marlam.de>.
22167
22168 2010-07-04  Jim Meyering  <meyering@redhat.com>
22169
22170         hash: once again explicitly disallow insertion of NULL
22171         * lib/hash.c (hash_insert0): Reinstate just-removed test:
22172         inserting a NULL pointer cannot work with these functions.
22173         Add a comment with details.
22174         This reverts part of the 2010-07-01 commit, 5bef1a35
22175         "hash: extend module to deal with non-pointer keys".
22176
22177 2010-07-01  Bruno Haible  <bruno@clisp.org>
22178
22179         stdbool: Update doc.
22180         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
22181         Info from Christian Weisgerber <naddy@mips.inka.de>.
22182
22183 2010-07-01  Jim Meyering  <meyering@redhat.com>
22184
22185         hash: extend module to deal with non-pointer keys
22186         * lib/hash.c (hash_insert0): New interface, much like hash_insert
22187         but that allows insertion of non-pointer entries.
22188         Do not disallow an ENTRY value of NULL.
22189         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
22190         * lib/hash.h (hash_insert0): Declare.
22191
22192 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
22193
22194         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
22195         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
22196         not present (i.e. with autoconf 2.59 and when using gettextize, not
22197         gnulib), require AC_GNU_SOURCE instead.
22198
22199 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
22200
22201         idpriv-drop: Fix tests.
22202         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
22203         not to the test-idpriv-droptemp program.
22204
22205 2010-06-29  Bruno Haible  <bruno@clisp.org>
22206
22207         string: Fix syntax error with g++ 2.96.
22208         * lib/string.in.h (__pure__): Remove definition.
22209         (_GL_ATTRIBUTE_PURE): New macro.
22210         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
22211         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
22212         Reported by Christian Weisgerber <naddy@mips.inka.de>.
22213
22214 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
22215
22216         unitypes: Fix bug introduced on 2010-05-18.
22217         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
22218
22219 2010-06-22  Eric Blake  <eblake@redhat.com>
22220
22221         memmem: slight optimization
22222         * lib/str-two-way.h (critical_factorization): Update comments.
22223         Reduce work during factorization phase.
22224         Reported by Carlos Bueno <carlos@bueno.org>.
22225
22226 2010-06-21  Bruno Haible  <bruno@clisp.org>
22227
22228         Fix HAVE_CALLOC_POSIX misnomer.
22229         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
22230         !HAVE_CALLOC_POSIX.
22231         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
22232         HAVE_CALLOC_POSIX.
22233         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
22234         instead of HAVE_CALLOC_POSIX.
22235         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
22236         HAVE_CALLOC_POSIX.
22237
22238         Use modern idiom for calloc() replacement.
22239         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
22240         AC_FUNC_CALLOC.
22241         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
22242         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
22243         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22244         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
22245         (gl_REPLACE_CALLOC): New macro.
22246
22247 2010-06-21  Bruno Haible  <bruno@clisp.org>
22248
22249         Fix HAVE_REALLOC_POSIX misnomer.
22250         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
22251         !HAVE_REALLOC_POSIX.
22252         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
22253         HAVE_REALLOC_POSIX.
22254         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
22255         instead of HAVE_REALLOC_POSIX.
22256         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
22257         HAVE_REALLOC_POSIX.
22258
22259         Use modern idiom for realloc() replacement.
22260         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
22261         AC_FUNC_REALLOC.
22262         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
22263         Autoconf's AC_FUNC_REALLOC.
22264         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22265         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
22266         (gl_REPLACE_REALLOC): New macro.
22267         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22268
22269 2010-06-21  Bruno Haible  <bruno@clisp.org>
22270
22271         Fix HAVE_MALLOC_POSIX misnomer.
22272         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
22273         !HAVE_MALLOC_POSIX.
22274         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
22275         HAVE_MALLOC_POSIX.
22276         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
22277         instead of HAVE_MALLOC_POSIX.
22278         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
22279         HAVE_MALLOC_POSIX.
22280
22281         Use modern idiom for malloc() replacement.
22282         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
22283         AC_FUNC_MALLOC.
22284         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
22285         Autoconf's AC_FUNC_MALLOC.
22286         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
22287         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
22288         (gl_REPLACE_MALLOC): New macro.
22289         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
22290
22291 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
22292
22293         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
22294         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
22295         This macro takes 3 arguments, not 4.
22296
22297 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
22298
22299         ipv6: fix detection under mingw
22300         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
22301         in6_addr.
22302
22303 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
22304
22305         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
22306         that strtod() works when cross-compiling to a glibc version known
22307         to work.
22308
22309 2010-06-15  Bruno Haible  <bruno@clisp.org>
22310
22311         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
22312
22313 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
22314
22315         select: Correct timeout.
22316         * lib/select.c (rpl_select): Compute wait_timeout correctly.
22317
22318 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
22319
22320         git-version-gen: init shell var to avoid env var influence
22321         * build-aux/git-version-gen (v): Init shell var to empty.
22322
22323 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
22324
22325         priv-set: Don't assume that priv.h exists merely because getppriv does.
22326         See Jan Andersen's bug report about AIX 5L in
22327         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
22328         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
22329         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
22330         * lib/priv-set.h: Likewise.
22331         * tests/test-priv-set.c: Likewise.
22332
22333 2010-06-13  Bruno Haible  <bruno@clisp.org>
22334
22335         relocatable: Make it easier to test whether to install wrappers.
22336         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
22337         RELOCATABLE_VIA_WRAPPER.
22338
22339 2010-06-13  Bruno Haible  <bruno@clisp.org>
22340
22341         gnulib-tool: Display specified modules and dependencies differently.
22342         * gnulib-tool (func_show_module_list): New function.
22343         (func_import, func_create_testdir): Invoke it.
22344         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
22345
22346 2010-06-13  Bruno Haible  <bruno@clisp.org>
22347
22348         gnulib-tool: Align code of func_import and func_create_testdir.
22349         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
22350         specified_modules.
22351
22352 2010-06-12  Jim Meyering  <meyering@redhat.com>
22353
22354         test-inttostr: avoid spurious failure on Solaris 9
22355         * tests/test-inttostr.c (main): Skip the test when snprintf fails
22356         to accept "%ju".  Reported by Bruno Haible.
22357
22358 2010-06-11  Jim Meyering  <meyering@redhat.com>
22359
22360         test-sys_socket: mark variables as used more readably
22361         * tests/test-sys_socket.c (main): Mark otherwise unused variables
22362         as "used" explicitly via (void) statement casts.  This is more
22363         readable than using them in an artificial return expression.
22364         Suggestion from Bruno Haible.
22365
22366 2010-06-11  Bruno Haible  <bruno@clisp.org>
22367
22368         Avoid some more warnings from "gcc -Wwrite-strings".
22369         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
22370         to 'const char *'.
22371         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
22372         * tests/test-c-strcasestr.c (main): Likewise.
22373         * tests/test-mbscasestr1.c (main): Likewise.
22374         * tests/test-mbscasestr2.c (main): Likewise.
22375         * tests/test-memmem.c (main): Likewise.
22376         * tests/test-strstr.c (main): Likewise.
22377         * tests/test-strcasestr.c (main): Likewise.
22378
22379 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22380
22381         init.sh: change framework_failure_ to fail with status 99, not 1
22382         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
22383         automake's parallel-tests rule that this is an unexpected failure,
22384         even if the test is listed in XFAIL_TESTS.
22385
22386 2010-06-11  Jim Meyering  <meyering@redhat.com>
22387
22388         test-inttostr: avoid warnings about 4-6KB literal strings
22389         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
22390         Include "macros.h", for its definition of ASSERT.
22391         (CK): s/assert/ASSERT/
22392         * modules/inttostr-tests (Files): Add macros.h.
22393
22394         init.sh: don't use $ME_ or skip_ before they are defined
22395         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
22396         their first uses.  Also hoist their companions: warn_, fail_,
22397         framework_failure_, $stderr_fileno.  Prompted by a patch from
22398         Stefano Lattarini.
22399
22400         test-sys_socket: avoid set-but-not-used warnings from gcc
22401         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
22402         avoid warning about set-but-not-used variables.
22403
22404         test-xvasprintf: avoid 'const' discard warnings
22405         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
22406         "const" when assigning from literal strings.
22407         (test_xasprintf): Add "void" in function argument list to placate
22408         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
22409
22410         tests: avoid compilation warnings in argmatch and exclude tests...
22411         in packages that define ARGMATCH_DIE_DECL, like coreutils.
22412         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
22413         Since it always exits, declare with the "noreturn" attribute.
22414         * tests/test-argmatch.c: Likewise.
22415
22416         tests: avoid 'const' discard warnings in mbsstr tests
22417         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
22418         * tests/test-mbsstr2.c (main): Likewise.
22419
22420         test-verify: avoid warning from gcc's -Wmissing-declarations
22421         * tests/test-verify.c (function): Declare to be static.
22422
22423         test-inttostr.c: include <string.h> for use of strcmp
22424         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
22425
22426         test-linkat: avoid failed assertion on "other" architectures
22427         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
22428         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
22429         sparc: https://bugs.launchpad.net/bugs/591968
22430
22431 2010-06-11  Jim Meyering  <meyering@redhat.com>
22432
22433         printf.m4: avoid autoconf's "Expanded Before Required" warning
22434         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
22435         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
22436         autoconf warning.
22437
22438 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
22439
22440         Replacement header templates are now named with ".in", not "_".
22441         * doc/gnulib-intro.texi: Correct.
22442
22443 2010-06-10  Jim Meyering  <meyering@redhat.com>
22444
22445         inttostr-tests: depend on snprintf, not snprintf-posix
22446         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
22447         snprintf-posix, to avoid this aclocal failure:
22448           missing file gnulib-tests/vasnprintf.c
22449           configure.ac:45: error: expected source file, required through \
22450           AC_LIBSOURCES, not found
22451
22452 2010-06-10  Jim Meyering  <meyering@redhat.com>
22453
22454         inttostr: add a new function, inttostr, and tests
22455         The namesake function was not available.  The existence of the
22456         template file, inttostr.c makes its addition nontrivial.
22457         * lib/anytostr.c: Rename from inttostr.c.
22458         (anytostr): Rename from inttostr.
22459         * lib/inttostr.c: New file.
22460         * modules/inttostr (Files): Add anytostr.c.
22461         (Makefile.am): Set lib_SOURCES instead of ...
22462         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
22463         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
22464         * lib/offtostr.c: Likewise.
22465         * lib/uinttostr.c: Likewise.
22466         * lib/umaxtostr.c: Likewise.
22467         * modules/inttostr-tests: New file.
22468         * tests/test-inttostr.c: New file.  Test these functions.
22469
22470 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
22471             Bruno Haible  <bruno@clisp.org>
22472
22473         Add "Extending Gnulib" chapter to manual.
22474         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
22475         chapter.
22476         (Extending Gnulib): New chapter.
22477         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
22478         chapter.
22479
22480 2010-06-09  Bruno Haible  <bruno@clisp.org>
22481
22482         Avoid relocwrapper link errors due to gnulib replacement functions.
22483         * lib/areadlink.c: Use the system's malloc, realloc functions.
22484         (areadlink): Set errno to ENOMEM explicitly.
22485         * modules/areadlink (Depends-on): Remove malloc-posix.
22486         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22487
22488 2010-06-09  Bruno Haible  <bruno@clisp.org>
22489
22490         Avoid relocwrapper link errors due to gnulib replacement functions.
22491         * lib/canonicalize-lgpl.c: Use the system's malloc function.
22492         * lib/malloca.c: Likewise.
22493         * lib/relocatable.c: Likewise.
22494         * lib/progreloc.c: Use the system's malloc, sprintf functions.
22495         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
22496         * lib/setenv.c: Use the system's malloc, realloc functions.
22497         * lib/strerror.c: Use the system's sprintf function.
22498         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22499
22500 2010-06-04  Bruno Haible  <bruno@clisp.org>
22501
22502         Prefer documented low-level autoconf macro names.
22503         * m4/lib-link.m4: Use m4_translit instead of translit.
22504         * m4/environ.m4: Likewise.
22505         * m4/mathfunc.m4: Likewise.
22506         * m4/onceonly.m4: Likewise.
22507         * m4/stdint.m4: Likewise.
22508         Suggested by Eric Blake.
22509
22510 2010-06-04  Martin Lambers  <marlam@marlam.de>
22511             Bruno Haible  <bruno@clisp.org>
22512
22513         havelib: Allow library names with '+' characters.
22514         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
22515         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
22516
22517 2010-06-09  Bruno Haible  <bruno@clisp.org>
22518
22519         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
22520         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
22521         realloc failed.
22522
22523 2010-06-08  Peter Simons  <simons@cryp.to>
22524
22525         maint.mk: make the news-check rule more configurable
22526         * top/maint.mk (news-check-lines-spec): New variable.
22527         (news-check): Use "sed -n 1,10p" in place of "head".
22528
22529 2010-06-07  Jim Meyering  <meyering@redhat.com>
22530
22531         do-release-commit-and-tag: fix typo in --help
22532         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
22533
22534         regex: avoid new dead-code warning with gcc-4.6.0
22535         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
22536         if-block containing a while-loop.  It's been unused for at least
22537         5 years.
22538
22539 2010-06-05  Bruno Haible  <bruno@clisp.org>
22540
22541         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
22542         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
22543
22544 2010-06-04  Bruno Haible  <bruno@clisp.org>
22545
22546         Update to GNU gettext 0.18.1.
22547         * modules/gettext (configure.ac): Require gettext infrastructure from
22548         version 0.18.1.
22549
22550 2010-06-03  Bruno Haible  <bruno@clisp.org>
22551
22552         Don't use AC_LIBOBJ with file names in subdirectories.
22553         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
22554         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
22555         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
22556         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
22557         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
22558         gl_LIBUNISTRING_LIBSOURCE.
22559         (Makefile.am): Augment lib_SOURCES here, conditionally.
22560         * NEWS: Drop requirement for Automake option 'subdir-objects'.
22561
22562 2010-06-03  Bruno Haible  <bruno@clisp.org>
22563
22564         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
22565         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
22566         expansion does not end with a newline.
22567         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
22568         unnecessary newline.
22569
22570 2010-06-03  Bruno Haible  <bruno@clisp.org>
22571
22572         Reduce dependencies.
22573         * tests/test-quotearg.h: New file, extracted from
22574         tests/test-quotearg.c.
22575         * tests/test-quotearg-simple.c: New file, extracted from
22576         tests/test-quotearg.c.
22577         * tests/test-quotearg.c: Don't include <ctype.h>.
22578         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
22579         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
22580         use_quote_double_quotes, use_quotearg_colon): Moved to
22581         tests/test-quotearg.h.
22582         (results_g, flag_results, custom_quotes, custom_results): Moved
22583         to tests/test-quotearg-simple.c.
22584         (main): Moved the part that does not depend on gettext to
22585         tests/test-quotearg-simple.c. Return 77 if the test cannot be
22586         performed.
22587         * modules/quotearg-simple: New file.
22588         * modules/quotearg-simple-tests: New file.
22589         * modules/quotearg (Depends-on): Add quotearg-simple.
22590         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
22591         (Files): Add tests/test-quotearg.h.
22592         Reported by Paolo Bonzini.
22593
22594 2010-06-03  Bruno Haible  <bruno@clisp.org>
22595
22596         Reduce dependencies.
22597         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
22598
22599 2010-06-03  Bruno Haible  <bruno@clisp.org>
22600
22601         time: Undefine more broken macros.
22602         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
22603         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
22604         Reported by Eric Blake.
22605
22606 2010-06-03  Bruno Haible  <bruno@clisp.org>
22607
22608         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
22609         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
22610         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
22611         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
22612         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
22613         Reported by Ludovic Courtès <ludo@gnu.org>.
22614
22615 2010-06-02  Eric Blake  <eblake@redhat.com>
22616
22617         time: work with mingw + pthreads-win32 library
22618         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
22619         if timespec is defined only in pthread.h.
22620         * modules/time (Makefile.am): Substitute it.
22621         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
22622         <pthread.h>, when needed.
22623         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
22624         from the library.
22625
22626 2010-05-31  Bruno Haible  <bruno@clisp.org>
22627
22628         Avoid expanding two macros in the wrong order.
22629         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
22630         gl_LIBUNISTRING if it is defined.
22631         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
22632         autoconf >= 2.64.
22633         Reported by Ludovic Courtès <ludo@gnu.org>.
22634
22635 2010-05-27  Jim Meyering  <meyering@redhat.com>
22636
22637         maint.mk: also prohibit "#undef" of always-defined symbols
22638         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
22639         Allow more than one space before the symbol name.
22640         (sc_prohibit_always-defined_macros): Use grep's -E, now that
22641         the regexp uses alternation.
22642
22643 2010-05-26  Eric Blake  <eblake@redhat.com>
22644
22645         maint.mk: avoid echo -e
22646         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
22647         Convert all uses of echo -* to printf.
22648         Reported by Matthias Bolte.
22649
22650 2010-05-25  Bruno Haible  <bruno@clisp.org>
22651
22652         Update to GNU gettext 0.18, part 2.
22653         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
22654         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
22655
22656 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22657
22658         Add missing include in test-pwrite.c.
22659         * tests/test-pwrite.c: Include string.h, for strcmp.
22660
22661 2010-05-24  Bruno Haible  <bruno@clisp.org>
22662
22663         * NEWS: Mention requirement for Automake option 'subdir-objects'.
22664
22665 2010-05-24  Bruno Haible  <bruno@clisp.org>
22666
22667         Don't use conversion with transliteration in u{8,16,32}_strcoll.
22668         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
22669         iconveh_error argument.
22670         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
22671         U_STRCONV_TO_LOCALE.
22672         * lib/unistr/u16-strcoll.c: Likewise.
22673         * lib/unistr/u32-strcoll.c: Likewise.
22674         * modules/unistr/u8-strcoll (Depends-on): Add
22675         uniconv/u8-strconv-to-enc, localcharset. Remove
22676         uniconv/u8-strconv-to-locale.
22677         (configure.ac): Bump version number.
22678         * modules/unistr/u16-strcoll (Depends-on): Add
22679         uniconv/u16-strconv-to-enc, localcharset. Remove
22680         uniconv/u16-strconv-to-locale.
22681         (configure.ac): Bump version number.
22682         * modules/unistr/u32-strcoll (Depends-on): Add
22683         uniconv/u32-strconv-to-enc, localcharset. Remove
22684         uniconv/u32-strconv-to-locale.
22685         (configure.ac): Bump version number.
22686
22687 2010-05-24  Bruno Haible  <bruno@clisp.org>
22688
22689         Avoid a test failure on NetBSD 5.0.
22690         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
22691         an iconv() bug.
22692
22693 2010-05-24  Bruno Haible  <bruno@clisp.org>
22694
22695         Adjust #include directive style.
22696         * modules/regex (Includes): Recommend to write <regex.h>.
22697
22698 2010-05-24  Bruno Haible  <bruno@clisp.org>
22699
22700         regex: Don't require alloca.
22701         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
22702         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
22703         only inside if (0).
22704
22705 2010-05-23  Jim Meyering  <meyering@redhat.com>
22706
22707         test-renameat.c: include <sys/stat.h>
22708         * tests/test-renameat.c: Include <sys/stat.h>; required for
22709         definition of S_IS* macros.
22710
22711 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
22712
22713         Update maintainer documentation for 'relocatable-prog' module.
22714         * doc/relocatable-maint.texi: Update.
22715         Comments by Bruno Haible.
22716
22717 2010-05-23  Bruno Haible  <bruno@clisp.org>
22718
22719         git-merge-changelog: Enable --split-merged-entry by default.
22720         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
22721         (usage): Don't mention this option any more.
22722         Reported by Ralf Wildenhues.
22723
22724 2010-05-23  Jim Meyering  <meyering@redhat.com>
22725
22726         test-pwrite: do not leave behind a test file named "out"
22727         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
22728         The trivial-looking use of init.sh is really necessary.
22729         It ensures that the temporary file, "out", is created in
22730         a temporary directory, and removed upon termination.
22731         * tests/test-pwrite.sh: Re-add file.
22732         * modules/pwrite-tests: Reference it.
22733
22734 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22735
22736         Fix output redirection buglet in init.sh.
22737         * tests/init.sh: Fix redirection of stderr.
22738
22739 2010-05-20  Simon Josefsson  <simon@josefsson.org>
22740
22741         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
22742
22743 2010-05-17  Simon Josefsson  <simon@josefsson.org>
22744
22745         * modules/valgrind-tests: New file.
22746         * m4/valgrind-tests.m4: New file.
22747         * doc/valgrind-tests.texi: New file.
22748         * doc/gnulib.texi (Running self-tests under valgrind): New
22749         section.
22750
22751 2010-05-19  Bruno Haible  <bruno@clisp.org>
22752
22753         Clean up dead code in recent commit.
22754         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
22755         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
22756         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
22757         Suggested by Paolo Bonzini.
22758
22759 2010-05-19  Bruno Haible  <bruno@clisp.org>
22760
22761         Avoid valgrind error reports from libunistring.
22762         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
22763         * modules/libunistring (Files): Add it.
22764         * modules/libunistring-optional (Files): Likewise.
22765
22766 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
22767             Bruno Haible  <bruno@clisp.org>
22768
22769         New module 'libunistring-optional'.
22770         * modules/libunistring-optional: New file.
22771         * m4/libunistring-base.m4: New file.
22772         * m4/libunistring-optional.m4: New file.
22773         * lib/unicase.in.h: Renamed from lib/unicase.h.
22774         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
22775         * lib/unictype.in.h: Renamed from lib/unictype.h.
22776         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
22777         * lib/uniname.in.h: Renamed from lib/uniname.h.
22778         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
22779         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
22780         * lib/unistr.in.h: Renamed from lib/unistr.h.
22781         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
22782         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
22783         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
22784         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
22785         gl_LIBUNISTRING. If the library was found, determine the installed
22786         version and set LIBUNISTRING_VERSION.
22787         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
22788         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
22789         handle a configuration option --with-included-libunistring.
22790         * modules/libunistring (Files): Add m4/absolute-header.m4.
22791         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
22792         Add m4/libunistring-base.m4.
22793         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22794         (Makefile.am): Build unicase.h from unicase.in.h.
22795         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
22796         Add m4/libunistring-base.m4.
22797         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22798         (Makefile.am): Build uniconv.h from uniconv.in.h.
22799         * modules/unictype/base (Files): Use unictype.in.h instead of
22800         unictype.h. Add m4/libunistring-base.m4.
22801         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22802         (Makefile.am): Build unictype.h from unictype.in.h.
22803         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
22804         Add m4/libunistring-base.m4.
22805         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22806         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
22807         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
22808         Add m4/libunistring-base.m4.
22809         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22810         (Makefile.am): Build uniname.h from uniname.in.h.
22811         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
22812         Add m4/libunistring-base.m4.
22813         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22814         (Makefile.am): Build uninorm.h from uninorm.in.h.
22815         * modules/unistdio/base (Files): Use unistdio.in.h instead of
22816         unistdio.h. Add m4/libunistring-base.m4.
22817         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22818         (Makefile.am): Build unistdio.h from unistdio.in.h.
22819         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
22820         Add m4/libunistring-base.m4.
22821         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22822         (Makefile.am): Build unistr.h from unistr.in.h.
22823         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
22824         Add m4/libunistring-base.m4.
22825         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22826         (Makefile.am): Build unitypes.h from unitypes.in.h.
22827         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
22828         Add m4/libunistring-base.m4.
22829         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22830         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
22831         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
22832         uniwidth.h. Add m4/libunistring-base.m4.
22833         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
22834         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
22835         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
22836         instead of augmenting lib_SOURCES.
22837         * modules/unicase/empty-suffix-context: Likewise.
22838         * modules/unicase/locale-language: Likewise.
22839         * modules/unicase/tolower: Likewise.
22840         * modules/unicase/totitle: Likewise.
22841         * modules/unicase/toupper: Likewise.
22842         * modules/unicase/u8-casecmp: Likewise.
22843         * modules/unicase/u8-casecoll: Likewise.
22844         * modules/unicase/u8-casefold: Likewise.
22845         * modules/unicase/u8-casexfrm: Likewise.
22846         * modules/unicase/u8-ct-casefold: Likewise.
22847         * modules/unicase/u8-ct-tolower: Likewise.
22848         * modules/unicase/u8-ct-totitle: Likewise.
22849         * modules/unicase/u8-ct-toupper: Likewise.
22850         * modules/unicase/u8-is-cased: Likewise.
22851         * modules/unicase/u8-is-casefolded: Likewise.
22852         * modules/unicase/u8-is-lowercase: Likewise.
22853         * modules/unicase/u8-is-titlecase: Likewise.
22854         * modules/unicase/u8-is-uppercase: Likewise.
22855         * modules/unicase/u8-prefix-context: Likewise.
22856         * modules/unicase/u8-suffix-context: Likewise.
22857         * modules/unicase/u8-tolower: Likewise.
22858         * modules/unicase/u8-totitle: Likewise.
22859         * modules/unicase/u8-toupper: Likewise.
22860         * modules/unicase/u16-casecmp: Likewise.
22861         * modules/unicase/u16-casecoll: Likewise.
22862         * modules/unicase/u16-casefold: Likewise.
22863         * modules/unicase/u16-casexfrm: Likewise.
22864         * modules/unicase/u16-ct-casefold: Likewise.
22865         * modules/unicase/u16-ct-tolower: Likewise.
22866         * modules/unicase/u16-ct-totitle: Likewise.
22867         * modules/unicase/u16-ct-toupper: Likewise.
22868         * modules/unicase/u16-is-cased: Likewise.
22869         * modules/unicase/u16-is-casefolded: Likewise.
22870         * modules/unicase/u16-is-lowercase: Likewise.
22871         * modules/unicase/u16-is-titlecase: Likewise.
22872         * modules/unicase/u16-is-uppercase: Likewise.
22873         * modules/unicase/u16-prefix-context: Likewise.
22874         * modules/unicase/u16-suffix-context: Likewise.
22875         * modules/unicase/u16-tolower: Likewise.
22876         * modules/unicase/u16-totitle: Likewise.
22877         * modules/unicase/u16-toupper: Likewise.
22878         * modules/unicase/u32-casecmp: Likewise.
22879         * modules/unicase/u32-casecoll: Likewise.
22880         * modules/unicase/u32-casefold: Likewise.
22881         * modules/unicase/u32-casexfrm: Likewise.
22882         * modules/unicase/u32-ct-casefold: Likewise.
22883         * modules/unicase/u32-ct-tolower: Likewise.
22884         * modules/unicase/u32-ct-totitle: Likewise.
22885         * modules/unicase/u32-ct-toupper: Likewise.
22886         * modules/unicase/u32-is-cased: Likewise.
22887         * modules/unicase/u32-is-casefolded: Likewise.
22888         * modules/unicase/u32-is-lowercase: Likewise.
22889         * modules/unicase/u32-is-titlecase: Likewise.
22890         * modules/unicase/u32-is-uppercase: Likewise.
22891         * modules/unicase/u32-prefix-context: Likewise.
22892         * modules/unicase/u32-suffix-context: Likewise.
22893         * modules/unicase/u32-tolower: Likewise.
22894         * modules/unicase/u32-totitle: Likewise.
22895         * modules/unicase/u32-toupper: Likewise.
22896         * modules/unicase/ulc-casecmp: Likewise.
22897         * modules/unicase/ulc-casecoll: Likewise.
22898         * modules/unicase/ulc-casexfrm: Likewise.
22899         * modules/uniconv/u8-conv-from-enc: Likewise.
22900         * modules/uniconv/u8-conv-to-enc: Likewise.
22901         * modules/uniconv/u8-strconv-from-enc: Likewise.
22902         * modules/uniconv/u8-strconv-from-locale: Likewise.
22903         * modules/uniconv/u8-strconv-to-enc: Likewise.
22904         * modules/uniconv/u8-strconv-to-locale: Likewise.
22905         * modules/uniconv/u16-conv-from-enc: Likewise.
22906         * modules/uniconv/u16-conv-to-enc: Likewise.
22907         * modules/uniconv/u16-strconv-from-enc: Likewise.
22908         * modules/uniconv/u16-strconv-from-locale: Likewise.
22909         * modules/uniconv/u16-strconv-to-enc: Likewise.
22910         * modules/uniconv/u16-strconv-to-locale: Likewise.
22911         * modules/uniconv/u32-conv-from-enc: Likewise.
22912         * modules/uniconv/u32-conv-to-enc: Likewise.
22913         * modules/uniconv/u32-strconv-from-enc: Likewise.
22914         * modules/uniconv/u32-strconv-from-locale: Likewise.
22915         * modules/uniconv/u32-strconv-to-enc: Likewise.
22916         * modules/uniconv/u32-strconv-to-locale: Likewise.
22917         * modules/unictype/bidicategory-byname: Likewise.
22918         * modules/unictype/bidicategory-name: Likewise.
22919         * modules/unictype/bidicategory-of: Likewise.
22920         * modules/unictype/bidicategory-test: Likewise.
22921         * modules/unictype/block-list: Likewise.
22922         * modules/unictype/block-test: Likewise.
22923         * modules/unictype/category-C: Likewise.
22924         * modules/unictype/category-Cc: Likewise.
22925         * modules/unictype/category-Cf: Likewise.
22926         * modules/unictype/category-Cn: Likewise.
22927         * modules/unictype/category-Co: Likewise.
22928         * modules/unictype/category-Cs: Likewise.
22929         * modules/unictype/category-L: Likewise.
22930         * modules/unictype/category-Ll: Likewise.
22931         * modules/unictype/category-Lm: Likewise.
22932         * modules/unictype/category-Lo: Likewise.
22933         * modules/unictype/category-Lt: Likewise.
22934         * modules/unictype/category-Lu: Likewise.
22935         * modules/unictype/category-M: Likewise.
22936         * modules/unictype/category-Mc: Likewise.
22937         * modules/unictype/category-Me: Likewise.
22938         * modules/unictype/category-Mn: Likewise.
22939         * modules/unictype/category-N: Likewise.
22940         * modules/unictype/category-Nd: Likewise.
22941         * modules/unictype/category-Nl: Likewise.
22942         * modules/unictype/category-No: Likewise.
22943         * modules/unictype/category-P: Likewise.
22944         * modules/unictype/category-Pc: Likewise.
22945         * modules/unictype/category-Pd: Likewise.
22946         * modules/unictype/category-Pe: Likewise.
22947         * modules/unictype/category-Pf: Likewise.
22948         * modules/unictype/category-Pi: Likewise.
22949         * modules/unictype/category-Po: Likewise.
22950         * modules/unictype/category-Ps: Likewise.
22951         * modules/unictype/category-S: Likewise.
22952         * modules/unictype/category-Sc: Likewise.
22953         * modules/unictype/category-Sk: Likewise.
22954         * modules/unictype/category-Sm: Likewise.
22955         * modules/unictype/category-So: Likewise.
22956         * modules/unictype/category-Z: Likewise.
22957         * modules/unictype/category-Zl: Likewise.
22958         * modules/unictype/category-Zp: Likewise.
22959         * modules/unictype/category-Zs: Likewise.
22960         * modules/unictype/category-and: Likewise.
22961         * modules/unictype/category-and-not: Likewise.
22962         * modules/unictype/category-byname: Likewise.
22963         * modules/unictype/category-name: Likewise.
22964         * modules/unictype/category-none: Likewise.
22965         * modules/unictype/category-of: Likewise.
22966         * modules/unictype/category-or: Likewise.
22967         * modules/unictype/category-test: Likewise.
22968         * modules/unictype/combining-class: Likewise.
22969         * modules/unictype/ctype-alnum: Likewise.
22970         * modules/unictype/ctype-alpha: Likewise.
22971         * modules/unictype/ctype-blank: Likewise.
22972         * modules/unictype/ctype-cntrl: Likewise.
22973         * modules/unictype/ctype-digit: Likewise.
22974         * modules/unictype/ctype-graph: Likewise.
22975         * modules/unictype/ctype-lower: Likewise.
22976         * modules/unictype/ctype-print: Likewise.
22977         * modules/unictype/ctype-punct: Likewise.
22978         * modules/unictype/ctype-space: Likewise.
22979         * modules/unictype/ctype-upper: Likewise.
22980         * modules/unictype/ctype-xdigit: Likewise.
22981         * modules/unictype/decimal-digit: Likewise.
22982         * modules/unictype/digit: Likewise.
22983         * modules/unictype/mirror: Likewise.
22984         * modules/unictype/numeric: Likewise.
22985         * modules/unictype/property-alphabetic: Likewise.
22986         * modules/unictype/property-ascii-hex-digit: Likewise.
22987         * modules/unictype/property-bidi-arabic-digit: Likewise.
22988         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
22989         * modules/unictype/property-bidi-block-separator: Likewise.
22990         * modules/unictype/property-bidi-boundary-neutral: Likewise.
22991         * modules/unictype/property-bidi-common-separator: Likewise.
22992         * modules/unictype/property-bidi-control: Likewise.
22993         * modules/unictype/property-bidi-embedding-or-override: Likewise.
22994         * modules/unictype/property-bidi-eur-num-separator: Likewise.
22995         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
22996         * modules/unictype/property-bidi-european-digit: Likewise.
22997         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
22998         * modules/unictype/property-bidi-left-to-right: Likewise.
22999         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
23000         * modules/unictype/property-bidi-other-neutral: Likewise.
23001         * modules/unictype/property-bidi-pdf: Likewise.
23002         * modules/unictype/property-bidi-segment-separator: Likewise.
23003         * modules/unictype/property-bidi-whitespace: Likewise.
23004         * modules/unictype/property-byname: Likewise.
23005         * modules/unictype/property-combining: Likewise.
23006         * modules/unictype/property-composite: Likewise.
23007         * modules/unictype/property-currency-symbol: Likewise.
23008         * modules/unictype/property-dash: Likewise.
23009         * modules/unictype/property-decimal-digit: Likewise.
23010         * modules/unictype/property-default-ignorable-code-point: Likewise.
23011         * modules/unictype/property-deprecated: Likewise.
23012         * modules/unictype/property-diacritic: Likewise.
23013         * modules/unictype/property-extender: Likewise.
23014         * modules/unictype/property-format-control: Likewise.
23015         * modules/unictype/property-grapheme-base: Likewise.
23016         * modules/unictype/property-grapheme-extend: Likewise.
23017         * modules/unictype/property-grapheme-link: Likewise.
23018         * modules/unictype/property-hex-digit: Likewise.
23019         * modules/unictype/property-hyphen: Likewise.
23020         * modules/unictype/property-id-continue: Likewise.
23021         * modules/unictype/property-id-start: Likewise.
23022         * modules/unictype/property-ideographic: Likewise.
23023         * modules/unictype/property-ids-binary-operator: Likewise.
23024         * modules/unictype/property-ids-trinary-operator: Likewise.
23025         * modules/unictype/property-ignorable-control: Likewise.
23026         * modules/unictype/property-iso-control: Likewise.
23027         * modules/unictype/property-join-control: Likewise.
23028         * modules/unictype/property-left-of-pair: Likewise.
23029         * modules/unictype/property-line-separator: Likewise.
23030         * modules/unictype/property-logical-order-exception: Likewise.
23031         * modules/unictype/property-lowercase: Likewise.
23032         * modules/unictype/property-math: Likewise.
23033         * modules/unictype/property-non-break: Likewise.
23034         * modules/unictype/property-not-a-character: Likewise.
23035         * modules/unictype/property-numeric: Likewise.
23036         * modules/unictype/property-other-alphabetic: Likewise.
23037         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
23038         * modules/unictype/property-other-grapheme-extend: Likewise.
23039         * modules/unictype/property-other-id-continue: Likewise.
23040         * modules/unictype/property-other-id-start: Likewise.
23041         * modules/unictype/property-other-lowercase: Likewise.
23042         * modules/unictype/property-other-math: Likewise.
23043         * modules/unictype/property-other-uppercase: Likewise.
23044         * modules/unictype/property-paired-punctuation: Likewise.
23045         * modules/unictype/property-paragraph-separator: Likewise.
23046         * modules/unictype/property-pattern-syntax: Likewise.
23047         * modules/unictype/property-pattern-white-space: Likewise.
23048         * modules/unictype/property-private-use: Likewise.
23049         * modules/unictype/property-punctuation: Likewise.
23050         * modules/unictype/property-quotation-mark: Likewise.
23051         * modules/unictype/property-radical: Likewise.
23052         * modules/unictype/property-sentence-terminal: Likewise.
23053         * modules/unictype/property-soft-dotted: Likewise.
23054         * modules/unictype/property-space: Likewise.
23055         * modules/unictype/property-terminal-punctuation: Likewise.
23056         * modules/unictype/property-test: Likewise.
23057         * modules/unictype/property-titlecase: Likewise.
23058         * modules/unictype/property-unassigned-code-value: Likewise.
23059         * modules/unictype/property-unified-ideograph: Likewise.
23060         * modules/unictype/property-uppercase: Likewise.
23061         * modules/unictype/property-variation-selector: Likewise.
23062         * modules/unictype/property-white-space: Likewise.
23063         * modules/unictype/property-xid-continue: Likewise.
23064         * modules/unictype/property-xid-start: Likewise.
23065         * modules/unictype/property-zero-width: Likewise.
23066         * modules/unictype/scripts: Likewise.
23067         * modules/unictype/syntax-c-ident: Likewise.
23068         * modules/unictype/syntax-c-whitespace: Likewise.
23069         * modules/unictype/syntax-java-ident: Likewise.
23070         * modules/unictype/syntax-java-whitespace: Likewise.
23071         * modules/unilbrk/u8-possible-linebreaks: Likewise.
23072         * modules/unilbrk/u8-width-linebreaks: Likewise.
23073         * modules/unilbrk/u16-possible-linebreaks: Likewise.
23074         * modules/unilbrk/u16-width-linebreaks: Likewise.
23075         * modules/unilbrk/u32-possible-linebreaks: Likewise.
23076         * modules/unilbrk/u32-width-linebreaks: Likewise.
23077         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
23078         * modules/unilbrk/ulc-width-linebreaks: Likewise.
23079         * modules/uniname/uniname: Likewise.
23080         * modules/uninorm/canonical-decomposition: Likewise.
23081         * modules/uninorm/composition: Likewise.
23082         * modules/uninorm/decomposing-form: Likewise.
23083         * modules/uninorm/decomposition: Likewise.
23084         * modules/uninorm/filter: Likewise.
23085         * modules/uninorm/nfc: Likewise.
23086         * modules/uninorm/nfd: Likewise.
23087         * modules/uninorm/nfkc: Likewise.
23088         * modules/uninorm/nfkd: Likewise.
23089         * modules/uninorm/u8-normalize: Likewise.
23090         * modules/uninorm/u8-normcmp: Likewise.
23091         * modules/uninorm/u8-normcoll: Likewise.
23092         * modules/uninorm/u8-normxfrm: Likewise.
23093         * modules/uninorm/u16-normalize: Likewise.
23094         * modules/uninorm/u16-normcmp: Likewise.
23095         * modules/uninorm/u16-normcoll: Likewise.
23096         * modules/uninorm/u16-normxfrm: Likewise.
23097         * modules/uninorm/u32-normalize: Likewise.
23098         * modules/uninorm/u32-normcmp: Likewise.
23099         * modules/uninorm/u32-normcoll: Likewise.
23100         * modules/uninorm/u32-normxfrm: Likewise.
23101         * modules/unistdio/u8-asnprintf: Likewise.
23102         * modules/unistdio/u8-asprintf: Likewise.
23103         * modules/unistdio/u8-snprintf: Likewise.
23104         * modules/unistdio/u8-sprintf: Likewise.
23105         * modules/unistdio/u8-u8-asnprintf: Likewise.
23106         * modules/unistdio/u8-u8-asprintf: Likewise.
23107         * modules/unistdio/u8-u8-snprintf: Likewise.
23108         * modules/unistdio/u8-u8-sprintf: Likewise.
23109         * modules/unistdio/u8-u8-vasnprintf: Likewise.
23110         * modules/unistdio/u8-u8-vasprintf: Likewise.
23111         * modules/unistdio/u8-u8-vsnprintf: Likewise.
23112         * modules/unistdio/u8-u8-vsprintf: Likewise.
23113         * modules/unistdio/u8-vasnprintf: Likewise.
23114         * modules/unistdio/u8-vasprintf: Likewise.
23115         * modules/unistdio/u8-vsnprintf: Likewise.
23116         * modules/unistdio/u8-vsprintf: Likewise.
23117         * modules/unistdio/u16-asnprintf: Likewise.
23118         * modules/unistdio/u16-asprintf: Likewise.
23119         * modules/unistdio/u16-snprintf: Likewise.
23120         * modules/unistdio/u16-sprintf: Likewise.
23121         * modules/unistdio/u16-u16-asnprintf: Likewise.
23122         * modules/unistdio/u16-u16-asprintf: Likewise.
23123         * modules/unistdio/u16-u16-snprintf: Likewise.
23124         * modules/unistdio/u16-u16-sprintf: Likewise.
23125         * modules/unistdio/u16-u16-vasnprintf: Likewise.
23126         * modules/unistdio/u16-u16-vasprintf: Likewise.
23127         * modules/unistdio/u16-u16-vsnprintf: Likewise.
23128         * modules/unistdio/u16-u16-vsprintf: Likewise.
23129         * modules/unistdio/u16-vasnprintf: Likewise.
23130         * modules/unistdio/u16-vasprintf: Likewise.
23131         * modules/unistdio/u16-vsnprintf: Likewise.
23132         * modules/unistdio/u16-vsprintf: Likewise.
23133         * modules/unistdio/u32-asnprintf: Likewise.
23134         * modules/unistdio/u32-asprintf: Likewise.
23135         * modules/unistdio/u32-snprintf: Likewise.
23136         * modules/unistdio/u32-sprintf: Likewise.
23137         * modules/unistdio/u32-u32-asnprintf: Likewise.
23138         * modules/unistdio/u32-u32-asprintf: Likewise.
23139         * modules/unistdio/u32-u32-snprintf: Likewise.
23140         * modules/unistdio/u32-u32-sprintf: Likewise.
23141         * modules/unistdio/u32-u32-vasnprintf: Likewise.
23142         * modules/unistdio/u32-u32-vasprintf: Likewise.
23143         * modules/unistdio/u32-u32-vsnprintf: Likewise.
23144         * modules/unistdio/u32-u32-vsprintf: Likewise.
23145         * modules/unistdio/u32-vasnprintf: Likewise.
23146         * modules/unistdio/u32-vasprintf: Likewise.
23147         * modules/unistdio/u32-vsnprintf: Likewise.
23148         * modules/unistdio/u32-vsprintf: Likewise.
23149         * modules/unistdio/ulc-asnprintf: Likewise.
23150         * modules/unistdio/ulc-asprintf: Likewise.
23151         * modules/unistdio/ulc-fprintf: Likewise.
23152         * modules/unistdio/ulc-snprintf: Likewise.
23153         * modules/unistdio/ulc-sprintf: Likewise.
23154         * modules/unistdio/ulc-vasnprintf: Likewise.
23155         * modules/unistdio/ulc-vasprintf: Likewise.
23156         * modules/unistdio/ulc-vfprintf: Likewise.
23157         * modules/unistdio/ulc-vsnprintf: Likewise.
23158         * modules/unistdio/ulc-vsprintf: Likewise.
23159         * modules/unistr/u8-check: Likewise.
23160         * modules/unistr/u8-chr: Likewise.
23161         * modules/unistr/u8-cmp: Likewise.
23162         * modules/unistr/u8-cmp2: Likewise.
23163         * modules/unistr/u8-cpy: Likewise.
23164         * modules/unistr/u8-cpy-alloc: Likewise.
23165         * modules/unistr/u8-endswith: Likewise.
23166         * modules/unistr/u8-mblen: Likewise.
23167         * modules/unistr/u8-mbsnlen: Likewise.
23168         * modules/unistr/u8-mbtouc: Likewise.
23169         * modules/unistr/u8-mbtouc-unsafe: Likewise.
23170         * modules/unistr/u8-mbtoucr: Likewise.
23171         * modules/unistr/u8-move: Likewise.
23172         * modules/unistr/u8-next: Likewise.
23173         * modules/unistr/u8-prev: Likewise.
23174         * modules/unistr/u8-set: Likewise.
23175         * modules/unistr/u8-startswith: Likewise.
23176         * modules/unistr/u8-stpcpy: Likewise.
23177         * modules/unistr/u8-stpncpy: Likewise.
23178         * modules/unistr/u8-strcat: Likewise.
23179         * modules/unistr/u8-strchr: Likewise.
23180         * modules/unistr/u8-strcmp: Likewise.
23181         * modules/unistr/u8-strcoll: Likewise.
23182         * modules/unistr/u8-strcpy: Likewise.
23183         * modules/unistr/u8-strcspn: Likewise.
23184         * modules/unistr/u8-strdup: Likewise.
23185         * modules/unistr/u8-strlen: Likewise.
23186         * modules/unistr/u8-strmblen: Likewise.
23187         * modules/unistr/u8-strmbtouc: Likewise.
23188         * modules/unistr/u8-strncat: Likewise.
23189         * modules/unistr/u8-strncmp: Likewise.
23190         * modules/unistr/u8-strncpy: Likewise.
23191         * modules/unistr/u8-strnlen: Likewise.
23192         * modules/unistr/u8-strpbrk: Likewise.
23193         * modules/unistr/u8-strrchr: Likewise.
23194         * modules/unistr/u8-strspn: Likewise.
23195         * modules/unistr/u8-strstr: Likewise.
23196         * modules/unistr/u8-strtok: Likewise.
23197         * modules/unistr/u8-to-u16: Likewise.
23198         * modules/unistr/u8-to-u32: Likewise.
23199         * modules/unistr/u8-uctomb: Likewise.
23200         * modules/unistr/u16-check: Likewise.
23201         * modules/unistr/u16-chr: Likewise.
23202         * modules/unistr/u16-cmp: Likewise.
23203         * modules/unistr/u16-cmp2: Likewise.
23204         * modules/unistr/u16-cpy: Likewise.
23205         * modules/unistr/u16-cpy-alloc: Likewise.
23206         * modules/unistr/u16-endswith: Likewise.
23207         * modules/unistr/u16-mblen: Likewise.
23208         * modules/unistr/u16-mbsnlen: Likewise.
23209         * modules/unistr/u16-mbtouc: Likewise.
23210         * modules/unistr/u16-mbtouc-unsafe: Likewise.
23211         * modules/unistr/u16-mbtoucr: Likewise.
23212         * modules/unistr/u16-move: Likewise.
23213         * modules/unistr/u16-next: Likewise.
23214         * modules/unistr/u16-prev: Likewise.
23215         * modules/unistr/u16-set: Likewise.
23216         * modules/unistr/u16-startswith: Likewise.
23217         * modules/unistr/u16-stpcpy: Likewise.
23218         * modules/unistr/u16-stpncpy: Likewise.
23219         * modules/unistr/u16-strcat: Likewise.
23220         * modules/unistr/u16-strchr: Likewise.
23221         * modules/unistr/u16-strcmp: Likewise.
23222         * modules/unistr/u16-strcoll: Likewise.
23223         * modules/unistr/u16-strcpy: Likewise.
23224         * modules/unistr/u16-strcspn: Likewise.
23225         * modules/unistr/u16-strdup: Likewise.
23226         * modules/unistr/u16-strlen: Likewise.
23227         * modules/unistr/u16-strmblen: Likewise.
23228         * modules/unistr/u16-strmbtouc: Likewise.
23229         * modules/unistr/u16-strncat: Likewise.
23230         * modules/unistr/u16-strncmp: Likewise.
23231         * modules/unistr/u16-strncpy: Likewise.
23232         * modules/unistr/u16-strnlen: Likewise.
23233         * modules/unistr/u16-strpbrk: Likewise.
23234         * modules/unistr/u16-strrchr: Likewise.
23235         * modules/unistr/u16-strspn: Likewise.
23236         * modules/unistr/u16-strstr: Likewise.
23237         * modules/unistr/u16-strtok: Likewise.
23238         * modules/unistr/u16-to-u32: Likewise.
23239         * modules/unistr/u16-to-u8: Likewise.
23240         * modules/unistr/u16-uctomb: Likewise.
23241         * modules/unistr/u32-check: Likewise.
23242         * modules/unistr/u32-chr: Likewise.
23243         * modules/unistr/u32-cmp: Likewise.
23244         * modules/unistr/u32-cmp2: Likewise.
23245         * modules/unistr/u32-cpy: Likewise.
23246         * modules/unistr/u32-cpy-alloc: Likewise.
23247         * modules/unistr/u32-endswith: Likewise.
23248         * modules/unistr/u32-mblen: Likewise.
23249         * modules/unistr/u32-mbsnlen: Likewise.
23250         * modules/unistr/u32-mbtouc: Likewise.
23251         * modules/unistr/u32-mbtouc-unsafe: Likewise.
23252         * modules/unistr/u32-mbtoucr: Likewise.
23253         * modules/unistr/u32-move: Likewise.
23254         * modules/unistr/u32-next: Likewise.
23255         * modules/unistr/u32-prev: Likewise.
23256         * modules/unistr/u32-set: Likewise.
23257         * modules/unistr/u32-startswith: Likewise.
23258         * modules/unistr/u32-stpcpy: Likewise.
23259         * modules/unistr/u32-stpncpy: Likewise.
23260         * modules/unistr/u32-strcat: Likewise.
23261         * modules/unistr/u32-strchr: Likewise.
23262         * modules/unistr/u32-strcmp: Likewise.
23263         * modules/unistr/u32-strcoll: Likewise.
23264         * modules/unistr/u32-strcpy: Likewise.
23265         * modules/unistr/u32-strcspn: Likewise.
23266         * modules/unistr/u32-strdup: Likewise.
23267         * modules/unistr/u32-strlen: Likewise.
23268         * modules/unistr/u32-strmblen: Likewise.
23269         * modules/unistr/u32-strmbtouc: Likewise.
23270         * modules/unistr/u32-strncat: Likewise.
23271         * modules/unistr/u32-strncmp: Likewise.
23272         * modules/unistr/u32-strncpy: Likewise.
23273         * modules/unistr/u32-strnlen: Likewise.
23274         * modules/unistr/u32-strpbrk: Likewise.
23275         * modules/unistr/u32-strrchr: Likewise.
23276         * modules/unistr/u32-strspn: Likewise.
23277         * modules/unistr/u32-strstr: Likewise.
23278         * modules/unistr/u32-strtok: Likewise.
23279         * modules/unistr/u32-to-u16: Likewise.
23280         * modules/unistr/u32-to-u8: Likewise.
23281         * modules/unistr/u32-uctomb: Likewise.
23282         * modules/uniwbrk/u8-wordbreaks: Likewise.
23283         * modules/uniwbrk/u16-wordbreaks: Likewise.
23284         * modules/uniwbrk/u32-wordbreaks: Likewise.
23285         * modules/uniwbrk/ulc-wordbreaks: Likewise.
23286         * modules/uniwbrk/wordbreak-property: Likewise.
23287         * modules/uniwidth/u8-strwidth: Likewise.
23288         * modules/uniwidth/u8-width: Likewise.
23289         * modules/uniwidth/u16-strwidth: Likewise.
23290         * modules/uniwidth/u16-width: Likewise.
23291         * modules/uniwidth/u32-strwidth: Likewise.
23292         * modules/uniwidth/u32-width: Likewise.
23293         * modules/uniwidth/width: Likewise.
23294         * modules/unicase/cased-tests (Makefile.am): Link all test programs
23295         with $(LIBUNISTRING).
23296         * modules/unicase/ignorable-tests: Likewise.
23297         * modules/unicase/locale-language-tests: Likewise.
23298         * modules/unicase/tolower-tests: Likewise.
23299         * modules/unicase/totitle-tests: Likewise.
23300         * modules/unicase/toupper-tests: Likewise.
23301         * modules/unicase/u8-casecmp-tests: Likewise.
23302         * modules/unicase/u8-casecoll-tests: Likewise.
23303         * modules/unicase/u8-casefold-tests: Likewise.
23304         * modules/unicase/u8-is-cased-tests: Likewise.
23305         * modules/unicase/u8-is-casefolded-tests: Likewise.
23306         * modules/unicase/u8-is-lowercase-tests: Likewise.
23307         * modules/unicase/u8-is-titlecase-tests: Likewise.
23308         * modules/unicase/u8-is-uppercase-tests: Likewise.
23309         * modules/unicase/u8-tolower-tests: Likewise.
23310         * modules/unicase/u8-totitle-tests: Likewise.
23311         * modules/unicase/u8-toupper-tests: Likewise.
23312         * modules/unicase/u16-casecmp-tests: Likewise.
23313         * modules/unicase/u16-casecoll-tests: Likewise.
23314         * modules/unicase/u16-casefold-tests: Likewise.
23315         * modules/unicase/u16-is-cased-tests: Likewise.
23316         * modules/unicase/u16-is-casefolded-tests: Likewise.
23317         * modules/unicase/u16-is-lowercase-tests: Likewise.
23318         * modules/unicase/u16-is-titlecase-tests: Likewise.
23319         * modules/unicase/u16-is-uppercase-tests: Likewise.
23320         * modules/unicase/u16-tolower-tests: Likewise.
23321         * modules/unicase/u16-totitle-tests: Likewise.
23322         * modules/unicase/u16-toupper-tests: Likewise.
23323         * modules/unicase/u32-casecmp-tests: Likewise.
23324         * modules/unicase/u32-casecoll-tests: Likewise.
23325         * modules/unicase/u32-casefold-tests: Likewise.
23326         * modules/unicase/u32-is-cased-tests: Likewise.
23327         * modules/unicase/u32-is-casefolded-tests: Likewise.
23328         * modules/unicase/u32-is-lowercase-tests: Likewise.
23329         * modules/unicase/u32-is-titlecase-tests: Likewise.
23330         * modules/unicase/u32-is-uppercase-tests: Likewise.
23331         * modules/unicase/u32-tolower-tests: Likewise.
23332         * modules/unicase/u32-totitle-tests: Likewise.
23333         * modules/unicase/u32-toupper-tests: Likewise.
23334         * modules/unicase/ulc-casecmp-tests: Likewise.
23335         * modules/unicase/ulc-casecoll-tests: Likewise.
23336         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
23337         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
23338         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
23339         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
23340         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
23341         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
23342         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
23343         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
23344         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
23345         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
23346         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
23347         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
23348         * modules/unictype/bidicategory-byname-tests: Likewise.
23349         * modules/unictype/bidicategory-name-tests: Likewise.
23350         * modules/unictype/bidicategory-of-tests: Likewise.
23351         * modules/unictype/bidicategory-test-tests: Likewise.
23352         * modules/unictype/block-list-tests: Likewise.
23353         * modules/unictype/block-of-tests: Likewise.
23354         * modules/unictype/block-test-tests: Likewise.
23355         * modules/unictype/category-C-tests: Likewise.
23356         * modules/unictype/category-Cc-tests: Likewise.
23357         * modules/unictype/category-Cf-tests: Likewise.
23358         * modules/unictype/category-Cn-tests: Likewise.
23359         * modules/unictype/category-Co-tests: Likewise.
23360         * modules/unictype/category-Cs-tests: Likewise.
23361         * modules/unictype/category-L-tests: Likewise.
23362         * modules/unictype/category-Ll-tests: Likewise.
23363         * modules/unictype/category-Lm-tests: Likewise.
23364         * modules/unictype/category-Lo-tests: Likewise.
23365         * modules/unictype/category-Lt-tests: Likewise.
23366         * modules/unictype/category-Lu-tests: Likewise.
23367         * modules/unictype/category-M-tests: Likewise.
23368         * modules/unictype/category-Mc-tests: Likewise.
23369         * modules/unictype/category-Me-tests: Likewise.
23370         * modules/unictype/category-Mn-tests: Likewise.
23371         * modules/unictype/category-N-tests: Likewise.
23372         * modules/unictype/category-Nd-tests: Likewise.
23373         * modules/unictype/category-Nl-tests: Likewise.
23374         * modules/unictype/category-No-tests: Likewise.
23375         * modules/unictype/category-P-tests: Likewise.
23376         * modules/unictype/category-Pc-tests: Likewise.
23377         * modules/unictype/category-Pd-tests: Likewise.
23378         * modules/unictype/category-Pe-tests: Likewise.
23379         * modules/unictype/category-Pf-tests: Likewise.
23380         * modules/unictype/category-Pi-tests: Likewise.
23381         * modules/unictype/category-Po-tests: Likewise.
23382         * modules/unictype/category-Ps-tests: Likewise.
23383         * modules/unictype/category-S-tests: Likewise.
23384         * modules/unictype/category-Sc-tests: Likewise.
23385         * modules/unictype/category-Sk-tests: Likewise.
23386         * modules/unictype/category-Sm-tests: Likewise.
23387         * modules/unictype/category-So-tests: Likewise.
23388         * modules/unictype/category-Z-tests: Likewise.
23389         * modules/unictype/category-Zl-tests: Likewise.
23390         * modules/unictype/category-Zp-tests: Likewise.
23391         * modules/unictype/category-Zs-tests: Likewise.
23392         * modules/unictype/category-and-not-tests: Likewise.
23393         * modules/unictype/category-and-tests: Likewise.
23394         * modules/unictype/category-byname-tests: Likewise.
23395         * modules/unictype/category-name-tests: Likewise.
23396         * modules/unictype/category-none-tests: Likewise.
23397         * modules/unictype/category-of-tests: Likewise.
23398         * modules/unictype/category-or-tests: Likewise.
23399         * modules/unictype/category-test-withtable-tests: Likewise.
23400         * modules/unictype/combining-class-tests: Likewise.
23401         * modules/unictype/ctype-alnum-tests: Likewise.
23402         * modules/unictype/ctype-alpha-tests: Likewise.
23403         * modules/unictype/ctype-blank-tests: Likewise.
23404         * modules/unictype/ctype-cntrl-tests: Likewise.
23405         * modules/unictype/ctype-digit-tests: Likewise.
23406         * modules/unictype/ctype-graph-tests: Likewise.
23407         * modules/unictype/ctype-lower-tests: Likewise.
23408         * modules/unictype/ctype-print-tests: Likewise.
23409         * modules/unictype/ctype-punct-tests: Likewise.
23410         * modules/unictype/ctype-space-tests: Likewise.
23411         * modules/unictype/ctype-upper-tests: Likewise.
23412         * modules/unictype/ctype-xdigit-tests: Likewise.
23413         * modules/unictype/decimal-digit-tests: Likewise.
23414         * modules/unictype/digit-tests: Likewise.
23415         * modules/unictype/mirror-tests: Likewise.
23416         * modules/unictype/numeric-tests: Likewise.
23417         * modules/unictype/property-alphabetic-tests: Likewise.
23418         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
23419         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
23420         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
23421         * modules/unictype/property-bidi-block-separator-tests: Likewise.
23422         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
23423         * modules/unictype/property-bidi-common-separator-tests: Likewise.
23424         * modules/unictype/property-bidi-control-tests: Likewise.
23425         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
23426         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
23427         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
23428         * modules/unictype/property-bidi-european-digit-tests: Likewise.
23429         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
23430         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
23431         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
23432         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
23433         * modules/unictype/property-bidi-pdf-tests: Likewise.
23434         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
23435         * modules/unictype/property-bidi-whitespace-tests: Likewise.
23436         * modules/unictype/property-byname-tests: Likewise.
23437         * modules/unictype/property-combining-tests: Likewise.
23438         * modules/unictype/property-composite-tests: Likewise.
23439         * modules/unictype/property-currency-symbol-tests: Likewise.
23440         * modules/unictype/property-dash-tests: Likewise.
23441         * modules/unictype/property-decimal-digit-tests: Likewise.
23442         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
23443         * modules/unictype/property-deprecated-tests: Likewise.
23444         * modules/unictype/property-diacritic-tests: Likewise.
23445         * modules/unictype/property-extender-tests: Likewise.
23446         * modules/unictype/property-format-control-tests: Likewise.
23447         * modules/unictype/property-grapheme-base-tests: Likewise.
23448         * modules/unictype/property-grapheme-extend-tests: Likewise.
23449         * modules/unictype/property-grapheme-link-tests: Likewise.
23450         * modules/unictype/property-hex-digit-tests: Likewise.
23451         * modules/unictype/property-hyphen-tests: Likewise.
23452         * modules/unictype/property-id-continue-tests: Likewise.
23453         * modules/unictype/property-id-start-tests: Likewise.
23454         * modules/unictype/property-ideographic-tests: Likewise.
23455         * modules/unictype/property-ids-binary-operator-tests: Likewise.
23456         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
23457         * modules/unictype/property-ignorable-control-tests: Likewise.
23458         * modules/unictype/property-iso-control-tests: Likewise.
23459         * modules/unictype/property-join-control-tests: Likewise.
23460         * modules/unictype/property-left-of-pair-tests: Likewise.
23461         * modules/unictype/property-line-separator-tests: Likewise.
23462         * modules/unictype/property-logical-order-exception-tests: Likewise.
23463         * modules/unictype/property-lowercase-tests: Likewise.
23464         * modules/unictype/property-math-tests: Likewise.
23465         * modules/unictype/property-non-break-tests: Likewise.
23466         * modules/unictype/property-not-a-character-tests: Likewise.
23467         * modules/unictype/property-numeric-tests: Likewise.
23468         * modules/unictype/property-other-alphabetic-tests: Likewise.
23469         * modules/unictype/property-other-default-ignorable-code-point-tests:
23470         Likewise.
23471         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
23472         * modules/unictype/property-other-id-continue-tests: Likewise.
23473         * modules/unictype/property-other-id-start-tests: Likewise.
23474         * modules/unictype/property-other-lowercase-tests: Likewise.
23475         * modules/unictype/property-other-math-tests: Likewise.
23476         * modules/unictype/property-other-uppercase-tests: Likewise.
23477         * modules/unictype/property-paired-punctuation-tests: Likewise.
23478         * modules/unictype/property-paragraph-separator-tests: Likewise.
23479         * modules/unictype/property-pattern-syntax-tests: Likewise.
23480         * modules/unictype/property-pattern-white-space-tests: Likewise.
23481         * modules/unictype/property-private-use-tests: Likewise.
23482         * modules/unictype/property-punctuation-tests: Likewise.
23483         * modules/unictype/property-quotation-mark-tests: Likewise.
23484         * modules/unictype/property-radical-tests: Likewise.
23485         * modules/unictype/property-sentence-terminal-tests: Likewise.
23486         * modules/unictype/property-soft-dotted-tests: Likewise.
23487         * modules/unictype/property-space-tests: Likewise.
23488         * modules/unictype/property-terminal-punctuation-tests: Likewise.
23489         * modules/unictype/property-test-tests: Likewise.
23490         * modules/unictype/property-titlecase-tests: Likewise.
23491         * modules/unictype/property-unassigned-code-value-tests: Likewise.
23492         * modules/unictype/property-unified-ideograph-tests: Likewise.
23493         * modules/unictype/property-uppercase-tests: Likewise.
23494         * modules/unictype/property-variation-selector-tests: Likewise.
23495         * modules/unictype/property-white-space-tests: Likewise.
23496         * modules/unictype/property-xid-continue-tests: Likewise.
23497         * modules/unictype/property-xid-start-tests: Likewise.
23498         * modules/unictype/property-zero-width-tests: Likewise.
23499         * modules/unictype/scripts-tests: Likewise.
23500         * modules/unictype/syntax-c-ident-tests: Likewise.
23501         * modules/unictype/syntax-c-whitespace-tests: Likewise.
23502         * modules/unictype/syntax-java-ident-tests: Likewise.
23503         * modules/unictype/syntax-java-whitespace-tests: Likewise.
23504         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
23505         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
23506         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
23507         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
23508         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
23509         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
23510         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
23511         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
23512         * modules/uniname/uniname-tests: Likewise.
23513         * modules/uninorm/canonical-decomposition-tests: Likewise.
23514         * modules/uninorm/compat-decomposition-tests: Likewise.
23515         * modules/uninorm/composition-tests: Likewise.
23516         * modules/uninorm/decomposing-form-tests: Likewise.
23517         * modules/uninorm/decomposition-tests: Likewise.
23518         * modules/uninorm/filter-tests: Likewise.
23519         * modules/uninorm/nfc-tests: Likewise.
23520         * modules/uninorm/nfd-tests: Likewise.
23521         * modules/uninorm/nfkc-tests: Likewise.
23522         * modules/uninorm/nfkd-tests: Likewise.
23523         * modules/uninorm/u8-normcmp-tests: Likewise.
23524         * modules/uninorm/u8-normcoll-tests: Likewise.
23525         * modules/uninorm/u16-normcmp-tests: Likewise.
23526         * modules/uninorm/u16-normcoll-tests: Likewise.
23527         * modules/uninorm/u32-normcmp-tests: Likewise.
23528         * modules/uninorm/u32-normcoll-tests: Likewise.
23529         * modules/unistdio/u8-asnprintf-tests: Likewise.
23530         * modules/unistdio/u8-vasnprintf-tests: Likewise.
23531         * modules/unistdio/u8-vasprintf-tests: Likewise.
23532         * modules/unistdio/u8-vsnprintf-tests: Likewise.
23533         * modules/unistdio/u8-vsprintf-tests: Likewise.
23534         * modules/unistdio/u16-asnprintf-tests: Likewise.
23535         * modules/unistdio/u16-vasnprintf-tests: Likewise.
23536         * modules/unistdio/u16-vasprintf-tests: Likewise.
23537         * modules/unistdio/u16-vsnprintf-tests: Likewise.
23538         * modules/unistdio/u16-vsprintf-tests: Likewise.
23539         * modules/unistdio/u32-asnprintf-tests: Likewise.
23540         * modules/unistdio/u32-vasnprintf-tests: Likewise.
23541         * modules/unistdio/u32-vasprintf-tests: Likewise.
23542         * modules/unistdio/u32-vsnprintf-tests: Likewise.
23543         * modules/unistdio/u32-vsprintf-tests: Likewise.
23544         * modules/unistdio/ulc-asnprintf-tests: Likewise.
23545         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
23546         * modules/unistdio/ulc-vasprintf-tests: Likewise.
23547         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
23548         * modules/unistdio/ulc-vsprintf-tests: Likewise.
23549         * modules/unistr/u8-check-tests: Likewise.
23550         * modules/unistr/u8-chr-tests: Likewise.
23551         * modules/unistr/u8-cmp-tests: Likewise.
23552         * modules/unistr/u8-cmp2-tests: Likewise.
23553         * modules/unistr/u8-cpy-alloc-tests: Likewise.
23554         * modules/unistr/u8-cpy-tests: Likewise.
23555         * modules/unistr/u8-mblen-tests: Likewise.
23556         * modules/unistr/u8-mbsnlen-tests: Likewise.
23557         * modules/unistr/u8-mbtouc-tests: Likewise.
23558         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
23559         * modules/unistr/u8-mbtoucr-tests: Likewise.
23560         * modules/unistr/u8-move-tests: Likewise.
23561         * modules/unistr/u8-next-tests: Likewise.
23562         * modules/unistr/u8-prev-tests: Likewise.
23563         * modules/unistr/u8-set-tests: Likewise.
23564         * modules/unistr/u8-stpcpy-tests: Likewise.
23565         * modules/unistr/u8-stpncpy-tests: Likewise.
23566         * modules/unistr/u8-strcat-tests: Likewise.
23567         * modules/unistr/u8-strcmp-tests: Likewise.
23568         * modules/unistr/u8-strcoll-tests: Likewise.
23569         * modules/unistr/u8-strcpy-tests: Likewise.
23570         * modules/unistr/u8-strdup-tests: Likewise.
23571         * modules/unistr/u8-strlen-tests: Likewise.
23572         * modules/unistr/u8-strmblen-tests: Likewise.
23573         * modules/unistr/u8-strmbtouc-tests: Likewise.
23574         * modules/unistr/u8-strncat-tests: Likewise.
23575         * modules/unistr/u8-strncmp-tests: Likewise.
23576         * modules/unistr/u8-strncpy-tests: Likewise.
23577         * modules/unistr/u8-strnlen-tests: Likewise.
23578         * modules/unistr/u8-to-u16-tests: Likewise.
23579         * modules/unistr/u8-to-u32-tests: Likewise.
23580         * modules/unistr/u8-uctomb-tests: Likewise.
23581         * modules/unistr/u16-check-tests: Likewise.
23582         * modules/unistr/u16-chr-tests: Likewise.
23583         * modules/unistr/u16-cmp-tests: Likewise.
23584         * modules/unistr/u16-cmp2-tests: Likewise.
23585         * modules/unistr/u16-cpy-alloc-tests: Likewise.
23586         * modules/unistr/u16-cpy-tests: Likewise.
23587         * modules/unistr/u16-mblen-tests: Likewise.
23588         * modules/unistr/u16-mbsnlen-tests: Likewise.
23589         * modules/unistr/u16-mbtouc-tests: Likewise.
23590         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
23591         * modules/unistr/u16-mbtoucr-tests: Likewise.
23592         * modules/unistr/u16-move-tests: Likewise.
23593         * modules/unistr/u16-next-tests: Likewise.
23594         * modules/unistr/u16-prev-tests: Likewise.
23595         * modules/unistr/u16-set-tests: Likewise.
23596         * modules/unistr/u16-stpcpy-tests: Likewise.
23597         * modules/unistr/u16-stpncpy-tests: Likewise.
23598         * modules/unistr/u16-strcat-tests: Likewise.
23599         * modules/unistr/u16-strcmp-tests: Likewise.
23600         * modules/unistr/u16-strcoll-tests: Likewise.
23601         * modules/unistr/u16-strcpy-tests: Likewise.
23602         * modules/unistr/u16-strdup-tests: Likewise.
23603         * modules/unistr/u16-strlen-tests: Likewise.
23604         * modules/unistr/u16-strmblen-tests: Likewise.
23605         * modules/unistr/u16-strmbtouc-tests: Likewise.
23606         * modules/unistr/u16-strncat-tests: Likewise.
23607         * modules/unistr/u16-strncmp-tests: Likewise.
23608         * modules/unistr/u16-strncpy-tests: Likewise.
23609         * modules/unistr/u16-strnlen-tests: Likewise.
23610         * modules/unistr/u16-to-u32-tests: Likewise.
23611         * modules/unistr/u16-to-u8-tests: Likewise.
23612         * modules/unistr/u16-uctomb-tests: Likewise.
23613         * modules/unistr/u32-check-tests: Likewise.
23614         * modules/unistr/u32-chr-tests: Likewise.
23615         * modules/unistr/u32-cmp-tests: Likewise.
23616         * modules/unistr/u32-cmp2-tests: Likewise.
23617         * modules/unistr/u32-cpy-alloc-tests: Likewise.
23618         * modules/unistr/u32-cpy-tests: Likewise.
23619         * modules/unistr/u32-mblen-tests: Likewise.
23620         * modules/unistr/u32-mbsnlen-tests: Likewise.
23621         * modules/unistr/u32-mbtouc-tests: Likewise.
23622         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
23623         * modules/unistr/u32-mbtoucr-tests: Likewise.
23624         * modules/unistr/u32-move-tests: Likewise.
23625         * modules/unistr/u32-next-tests: Likewise.
23626         * modules/unistr/u32-prev-tests: Likewise.
23627         * modules/unistr/u32-set-tests: Likewise.
23628         * modules/unistr/u32-stpcpy-tests: Likewise.
23629         * modules/unistr/u32-stpncpy-tests: Likewise.
23630         * modules/unistr/u32-strcat-tests: Likewise.
23631         * modules/unistr/u32-strcmp-tests: Likewise.
23632         * modules/unistr/u32-strcoll-tests: Likewise.
23633         * modules/unistr/u32-strcpy-tests: Likewise.
23634         * modules/unistr/u32-strdup-tests: Likewise.
23635         * modules/unistr/u32-strlen-tests: Likewise.
23636         * modules/unistr/u32-strmblen-tests: Likewise.
23637         * modules/unistr/u32-strmbtouc-tests: Likewise.
23638         * modules/unistr/u32-strncat-tests: Likewise.
23639         * modules/unistr/u32-strncmp-tests: Likewise.
23640         * modules/unistr/u32-strncpy-tests: Likewise.
23641         * modules/unistr/u32-strnlen-tests: Likewise.
23642         * modules/unistr/u32-to-u16-tests: Likewise.
23643         * modules/unistr/u32-to-u8-tests: Likewise.
23644         * modules/unistr/u32-uctomb-tests: Likewise.
23645         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
23646         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
23647         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
23648         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
23649         * modules/uniwidth/u8-strwidth-tests: Likewise.
23650         * modules/uniwidth/u8-width-tests: Likewise.
23651         * modules/uniwidth/u16-strwidth-tests: Likewise.
23652         * modules/uniwidth/u16-width-tests: Likewise.
23653         * modules/uniwidth/u32-strwidth-tests: Likewise.
23654         * modules/uniwidth/u32-width-tests: Likewise.
23655         * modules/uniwidth/width-tests: Likewise.
23656
23657 2010-05-18  Richard Jones  <rjones@redhat.com>
23658
23659         doc: users.txt: list hivex
23660         * users.txt: Add hivex.
23661
23662 2010-05-18  Richard Jones  <rjones@redhat.com>
23663
23664         doc: users.txt: list febootstrap
23665         * users.txt: Add febootstrap.
23666
23667 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
23668
23669         bootstrap: fix an error when gnulib is not used as a git submodule
23670         * build-aux/bootstrap (gnulib_path): If its length is zero then
23671         assign "gnulib" to it.
23672         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
23673
23674 2010-05-16  Bruno Haible  <bruno@clisp.org>
23675
23676         Avoid autoconf warnings about AM_ICONV.
23677         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
23678         2.64.
23679
23680 2010-05-16  Bruno Haible  <bruno@clisp.org>
23681
23682         absolute-header: Make the macro usable in more situations.
23683         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
23684         from gl_ABSOLUTE_HEADER.
23685         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
23686
23687 2010-05-16  James Youngman  <jay@gnu.org>
23688
23689         doc: update users.txt
23690         * users.txt: Add CSSC.
23691
23692 2010-05-16  Jim Meyering  <meyering@redhat.com>
23693
23694         init.sh: fix an error in the previous change; add more comments
23695         * tests/init.sh: Compare exit code in loop against 9, not 2.
23696         Patch by Bruno Haible.
23697         Make the two tests more similar by adding an empty "then" clause.
23698         Add comments.
23699
23700         init.sh: avoid unnecessary shell re-exec
23701         * tests/init.sh: Improve the re-exec-required check to first test the
23702         current shell.  If it passes the test, do not search for a shell that
23703         does pass, and do not re-exec.  This test is particularly contorted to
23704         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
23705         of $(...) evokes a syntax error and causes immediate shell exit with
23706         status 2.  Bruno Haible reported that the re-exec made it impossible
23707         to single-step through any init.sh-using script.
23708
23709 2010-05-16  Bruno Haible  <bruno@clisp.org>
23710
23711         Fix collision between gnulib's and libintl's printf replacements.
23712         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
23713         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
23714         (printf): When using GNU C, map the __printf__ function to rpl_printf
23715         via __asm__. When not using GNU C, define rpl_printf instead of
23716         __printf__.
23717         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
23718         commit.
23719         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
23720         commit.
23721         * m4/asm-underscore.m4: New file.
23722         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
23723         * modules/stdio (Files): Add m4/asm-underscore.m4.
23724         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
23725         Reported by Ben Pfaff.
23726
23727 2010-05-16  Bruno Haible  <bruno@clisp.org>
23728
23729         verify: Avoid skipping the test on openSUSE 11.0.
23730         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
23731
23732 2010-05-13  Bruno Haible  <bruno@clisp.org>
23733
23734         Avoid useless warnings from G++.
23735         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
23736         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
23737         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
23738
23739 2010-05-11  Jim Meyering  <meyering@redhat.com>
23740
23741         maint.mk: tweak preceding change
23742         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
23743         regexps tighter by anchoring at EOL, and make the new group "shy"
23744         for slightly decreased overhead.
23745
23746 2010-05-11  Eric Blake  <eblake@redhat.com>
23747
23748         maint.mk: gnulib doesn't guarantee NSIG
23749         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
23750
23751 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23752
23753         test-pwrite.c: Remove unused variable declaration.
23754         * tests/test-pwrite.c (main): Remove read_buf declaration.
23755
23756         Remove useless test-pwrite.sh file.
23757         * tests/test-pwrite.sh: Delete file.
23758         * modules/pwrite-tests: Remove references.
23759         Reported by Bruno Haible.
23760
23761 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
23762
23763         init.sh: fix a typo
23764         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
23765
23766 2010-05-10  Jim Meyering  <meyering@redhat.com>
23767
23768         maint.mk: avoid using a temporary file in the always-defined-macros check
23769         * top/maint.mk (.re-defmac): Remove rule.
23770         (gl_trap_): Remove definition.
23771         (sc_prohibit_always-defined_macros): Rewrite not to create and
23772         depend on a temporary file.  Instead, depend on GNU grep's ability
23773         to read a list of regular expressions from stdin when given "-f -".
23774
23775 2010-05-09  Bruno Haible  <bruno@clisp.org>
23776
23777         Update to GNU gettext 0.18, part 1.
23778         * m4/gettext.m4: Update to GNU gettext 0.18.
23779         * m4/intl.m4: Likewise.
23780         * m4/po.m4: Likewise.
23781         * modules/gettext (Files): Add m4/fcntl-o.m4.
23782         (configure.ac): Require gettext infrastructure from version 0.18.
23783
23784 2010-05-09  Jim Meyering  <meyering@redhat.com>
23785
23786         init.sh: enable MALLOC_PERTURB_
23787         * tests/init.sh: Enable glibc's malloc-perturbing option.
23788
23789         maint.mk: improve sc_cross_check_PATH_usage_in_tests
23790         With my recent change in init.sh from the two-line form:
23791             -#   : ${srcdir=.}
23792             -#   . "$srcdir/init.sh"; path_prepend_ .
23793             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
23794         I noticed that using the one-line form would cause this test
23795         to fail with a false-positive, or to stop working altogether,
23796         depending on whether help-version changed or all the tests did.
23797         * top/maint.mk (_hv_regex): Remove this definition.
23798         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
23799         (_hv_regex_strong): Use a stronger regex to check for conformance.
23800         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
23801         Give a separate diagnostic for lack of conforming use.
23802
23803         maint.mk: prohibit definition of symbols defined by gnulib
23804         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
23805         definition of symbols defined by gnulib.
23806
23807 2010-05-09  Bruno Haible  <bruno@clisp.org>
23808
23809         acl: Avoid test failure on Cygwin-hosted mingw.
23810         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
23811
23812 2010-05-09  Bruno Haible  <bruno@clisp.org>
23813
23814         error: Use system's fcntl function.
23815         * lib/error.c (fcntl): Undefine.
23816
23817 2010-05-09  Jim Meyering  <meyering@redhat.com>
23818
23819         verify: adjust formatting to be more consistent
23820         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
23821         argument-list '('s, and after one comma.
23822
23823 2010-05-09  Bruno Haible  <bruno@clisp.org>
23824
23825         error: More reliable output on mingw.
23826         * lib/error.c: Include <windows.h>.
23827         (is_open): New function.
23828         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
23829         defined.
23830
23831 2010-05-09  Bruno Haible  <bruno@clisp.org>
23832
23833         vasnprintf: Fix syntax errors in libintl build on mingw.
23834         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
23835         pad_ourselves and prec_ourselves after use.
23836
23837 2010-05-08  Bruno Haible  <bruno@clisp.org>
23838
23839         * lib/config.charset: Update comments for Cygwin 1.7.
23840         * lib/localcharset.c: Likewise.
23841
23842 2010-05-07  Jim Meyering  <meyering@redhat.com>
23843
23844         init.sh: improve comments
23845         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
23846         . "${srcdir=.}/init.sh"; path_prepend_ .
23847         Add a note about path_prepend_ and the alternative of using
23848         TESTS_ENVIRONMENT.
23849
23850 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
23851
23852         exclude: Unescape hashed patterns in wildcard mode.
23853         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
23854         to the hash list.
23855         * tests/test-exclude8.sh: New test case.
23856         * modules/exclude-tests: Add new test.
23857
23858 2010-05-05  Eric Blake  <eblake@redhat.com>
23859
23860         verify: automate tests
23861         * modules/verify-tests: New module.
23862         * tests/test-verify.sh: New file.
23863         * tests/test-verify.c: Guard each negative test with a unique id.
23864         Also avoid warning about unused left hand of comma expressions.
23865
23866 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
23867
23868         Further improvements to verify.h, suggested by Eric Blake.
23869         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
23870         the GL_* versions, to avoid collision with OpenGL.
23871         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
23872         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
23873         than testing merely whether it's defined.
23874
23875         Modify verify.h to pacify gcc -Wredundant_decls.
23876         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
23877         These use the prefix "GL_" since they're likely to be useful elsewhere.
23878         We may need to break them out into a different .h file.
23879         (__COUNTER__): Define to 0 if the compiler doesn't support it.
23880         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
23881         of verify_function__.
23882
23883 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23884
23885         Tests for module pwrite.
23886         * modules/pwrite-tests: New file.
23887         * tests/test-pwrite.sh: New file.
23888         * tests/test-pwrite.c: New file.
23889
23890         New module pwrite.
23891         * lib/unistd.in.h (pwrite): New declaration.
23892         * lib/pwrite.c: New file, from glibc with modifications.
23893         * m4/pwrite.m4: New file.
23894         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
23895         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
23896         REPLACE_PWRITE.
23897         * modules/pwrite: New file.
23898         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
23899         REPLACE_PWRITE.
23900         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
23901         * doc/posix-functions/pwrite.texi: Mention the new module.
23902
23903 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
23904
23905         pread: Update documentation.
23906         * doc/posix-functions/pread.texi: Mention the 'pread' module.
23907
23908 2010-05-04  Eric Blake  <eblake@redhat.com>
23909
23910         docs: update cygwin progress
23911         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
23912         this bug.
23913         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
23914         Added in cygwin 1.7.2.
23915         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
23916         Likewise.
23917         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
23918         Likewise.
23919         * doc/glibc-functions/dup3.texi (dup3): Likewise.
23920         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
23921         * doc/glibc-functions/accept4.texi (accept4): Likewise.
23922         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
23923         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
23924         Mention nproc module.
23925         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
23926         bug in cygwin 1.7.5 addition.
23927         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
23928         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
23929         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
23930         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
23931         1.7.5.
23932         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
23933         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
23934         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
23935         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
23936         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
23937         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
23938         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
23939         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
23940         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
23941         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
23942         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
23943         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
23944         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
23945         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
23946         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
23947         Likewise.
23948         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
23949         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
23950         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
23951         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
23952         Likewise.
23953         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
23954         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
23955         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
23956         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
23957         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
23958         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
23959         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
23960         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
23961         Likewise.
23962         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
23963         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
23964         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
23965         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
23966         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
23967         Likewise.
23968         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
23969         Likewise.
23970         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
23971         Likewise.
23972         * doc/glibc-functions/xdrrec_endofrecord.texi
23973         (xdrrec_endofrecord): Likewise.
23974         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
23975         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
23976         Likewise.
23977         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
23978         Likewise.
23979
23980 2010-05-04  Jim Meyering  <meyering@redhat.com>
23981
23982         gendocs.sh: make its "-s FILE" option more useful
23983         * build-aux/gendocs.sh: When honoring the -s FILE option, update
23984         $PACKAGE to reflect the probably-different basename of "FILE".
23985
23986 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
23987
23988         bootstrap: don't ignore download_po_files failure
23989         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
23990         failure.
23991
23992 2010-05-03  Jim Meyering  <meyering@redhat.com>
23993
23994         maint.mk: allow to pass options to gendocs.sh
23995         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
23996         (gendocs_options_): New overridable variable.
23997
23998         gnu-web-doc-update: don't ignore configure or build failure
23999         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
24000
24001         announce-gen: backslash-escape '@'s in --help output
24002         * build-aux/announce-gen: Fix syntax errors.
24003
24004         maint.mk, announce-gen: allow project-specific announcement mail headers
24005         * top/maint.mk (translation_project_): Define default.
24006         (announcement_Cc_, announcement_mail_headers_): Likewise.
24007         (announcement): Invoke announce-gen with new --mail-headers option.
24008         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
24009
24010         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
24011         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
24012         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
24013         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
24014         line in the "err2" output file when running "make check" in verbose
24015         mode (i.e., with set -x enabled).
24016
24017 2010-05-03  Bruno Haible  <bruno@clisp.org>
24018
24019         wctob: Fix for weird platforms.
24020         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
24021         argument value.
24022
24023 2010-05-03  Jim Meyering  <meyering@redhat.com>
24024
24025         maint.mk: prohibit unwarranted use of <strings.h>
24026         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
24027         strings.h in a file that does not also use strcasecmp, strncasecmp,
24028         ffs or ffsll.
24029
24030         maint.mk: remove obsolete comments
24031         * top/maint.mk: Remove stale, commented-out rules.
24032
24033 2010-05-02  Bruno Haible  <bruno@clisp.org>
24034
24035         wcwidth: Declare also when it's aliased.
24036         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
24037         macro.
24038
24039 2010-05-02  Bruno Haible  <bruno@clisp.org>
24040
24041         Fix regression from 2010-04-25.
24042         * gnulib-tool (func_modules_transitive_closure): Check the status of
24043         all modules, not only of the tests that are of the form foo-tests where
24044         foo is a module.
24045
24046 2010-05-02  Bruno Haible  <bruno@clisp.org>
24047
24048         wctob: Work around nasty Cygwin 1.7.2 bug.
24049         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
24050         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
24051
24052 2010-05-01  Bruno Haible  <bruno@clisp.org>
24053
24054         fpurge: Sharper test.
24055         * tests/test-fpurge.c (main): Add one more ftell check.
24056         * modules/fpurge-tests (Depends-on): Add ftell.
24057         Suggested by Eric Blake.
24058
24059 2010-05-01  Bruno Haible  <bruno@clisp.org>
24060
24061         ftello: Another test.
24062         * tests/test-ftello3.c: New file.
24063         * modules/ftello-tests (Files): Add it.
24064         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
24065         MOSTLYCLEANFILES.
24066
24067         ftell: Another test.
24068         * tests/test-ftell3.c: New file.
24069         * modules/ftell-tests (Files): Add it.
24070         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
24071         MOSTLYCLEANFILES.
24072
24073 2010-05-01  Bruno Haible  <bruno@clisp.org>
24074
24075         ftell, ftello: Work around Solaris bug.
24076         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
24077         * lib/ftello.c: Include stdio-impl.h.
24078         (ftello): On Solaris, when _IOWRT is set, compute the result without
24079         looking at _IOREAD.
24080         * modules/ftello (Files): Add lib/stdio-impl.h.
24081         * doc/posix-functions/ftell.texi: Mention Solaris bug.
24082         * doc/posix-functions/ftello.texi: Likewise.
24083         Reported by Eric Blake.
24084
24085 2010-05-01  Bruno Haible  <bruno@clisp.org>
24086
24087         freading: Adapt to special meaning of _IOREAD flag on Solaris.
24088         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
24089         the _IOWRT flag is also set.
24090
24091 2010-05-01  Bruno Haible  <bruno@clisp.org>
24092
24093         Fix doc about a HP-UX stdio bug.
24094         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
24095         * doc/posix-functions/ftello.texi: Likewise.
24096
24097 2010-05-01  Bruno Haible  <bruno@clisp.org>
24098
24099         lseek test: Fix failure on Solaris.
24100         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
24101         output.
24102
24103 2010-04-30  Jim Meyering  <meyering@redhat.com>
24104
24105         bootstrap: don't ignore failure to generate po*/Makevars
24106         * build-aux/bootstrap (with_gettext): Don't ignore failure
24107         to create po/Makevars or runtime-po/Makevars.
24108
24109 2010-04-29  Eric Blake  <eblake@redhat.com>
24110
24111         headers: relax license to LGPLv2+
24112         * modules/fcntl-h (License): Relax license.
24113         * modules/getopt-posix (License): Likewise.
24114         * modules/locale (License): Likewise.
24115         * modules/math (License): Likewise.
24116         * modules/pty (License): Likewise.
24117         * modules/sched (License): Likewise.
24118         * modules/search (License): Likewise.
24119         * modules/spawn (License): Likewise.
24120         * modules/stdarg (License): Likewise.
24121         * modules/sysexits (License): Likewise.
24122
24123 2010-04-29  Jim Meyering  <meyering@redhat.com>
24124
24125         inttypes: relax license to LGPLv2+
24126         * modules/inttypes (License): Relax license.
24127
24128 2010-04-29  Simon Josefsson  <simon@josefsson.org>
24129
24130         * top/maint.mk (indent): Run twice to produce idempotent results.
24131
24132 2010-04-28  Bruno Haible  <bruno@clisp.org>
24133
24134         getdate: Generate getdate.c in the source directory.
24135         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
24136         MOSTLYCLEANFILES.
24137         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
24138
24139 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
24140
24141         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
24142         is not declared as a const *; avoid warnings in that case.
24143
24144 2010-04-28  Eric Blake  <eblake@redhat.com>
24145
24146         canonicalize-lgpl: avoid compiler warning
24147         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
24148         declaration' / 'extraneous semicolon' warning with some compilers.
24149         Reported by Andreas Gruenbacher.
24150
24151 2010-04-28  Jim Meyering  <meyering@redhat.com>
24152
24153         init.sh: ensure a more reliable exit status when exiting via trap
24154         * tests/init.sh (setup_): Don't rely on $? in signal handler.
24155         Inspired by patches from Dmitry V. Levin.
24156         Also trap on signal 3 (SIGQUIT).
24157
24158 2010-04-27  Bruno Haible  <bruno@clisp.org>
24159
24160         Update doc about utimes().
24161         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
24162         'utimens' module.
24163         Reported by Andreas Gruenbacher <agruen@suse.de>.
24164
24165 2010-04-27  Eric Blake  <eblake@redhat.com>
24166
24167         full-read, full-write: relax license
24168         * modules/full-read (License): Drop to LGPLv2+.
24169         * modules/full-write (License): Likewise.
24170         * modules/safe-read (License): Likewise.
24171         * modules/safe-write (License): Likewise.
24172
24173         pthread: mention library for linking
24174         * modules/pthread (Link): Mention $(LIB_PTHREAD).
24175
24176 2010-04-27  Jim Meyering  <meyering@redhat.com>
24177
24178         maint.mk: fix a bug introduced in last change
24179         * top/maint.mk (gl_assured_headers_): Now that all names are on
24180         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
24181         is not anchored to end of word, it should be adequate.
24182
24183         maint.mk: avoid side-effect in latest syntax-check
24184         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
24185         to run commands via $(shell...), and hence to incur cost only when
24186         the new rule is actually run.
24187
24188         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
24189         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
24190         and use that to create a regexp used to detect all #if HAVE_..._H uses.
24191         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
24192         (gl_assured_headers_, az_, AZ_): Define.
24193         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
24194
24195 2010-04-26  Jim Meyering  <jim@meyering.net>
24196             Bruno Haible  <bruno@clisp.org>
24197
24198         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
24199         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
24200         Prompted by an exchange with Gilles Espinasse.
24201
24202 2010-04-26  Jim Meyering  <meyering@redhat.com>
24203
24204         git-version-gen: aesthetic tweak
24205         * build-aux/git-version-gen: Use "$nl" rather than a literal,
24206         so that the command remains on a single line.
24207
24208 2010-04-26  Eric Blake  <eblake@redhat.com>
24209
24210         git-version-gen: allow use on EBCDIC hosts
24211         * build-aux/git-version-gen (dirty): Use literal rather than tying
24212         ourselves to ascii.
24213         Reported by Steve Goetze.
24214
24215 2010-04-25  Bruno Haible  <bruno@clisp.org>
24216
24217         netdb: Add support for GNULIB_POSIXCHECK.
24218         * lib/netdb.in.h: Include warn-on-use.h.
24219         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
24220         functions are used when GNULIB_POSIXCHECK is defined and the
24221         getaddrinfo module is not in use.
24222         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
24223         freeaddrinfo, gai_strerror, getnameinfo are declared.
24224         * modules/netdb (Depends-on): Add warn-on-use.
24225         (Makefile.am): Include warn-on-use.h in netdb.h.
24226
24227 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
24228
24229         build: avoid "make check" failure without .git/ directory
24230         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
24231         there is no .git/ directory.
24232
24233 2010-04-25  Bruno Haible  <bruno@clisp.org>
24234
24235         ptsname: Fix misuse of ttyname_r.
24236         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
24237         of errno.
24238
24239 2010-04-25  Bruno Haible  <bruno@clisp.org>
24240
24241         ttyname_r: Make it work on Solaris 10.
24242         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
24243         if the system function has the POSIX declaration. Test whether the
24244         function fails if the buffer is less than 128 bytes large.
24245         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
24246         system's ttyname_r function. Provide a reasonably large buffer.
24247         * modules/ttyname_r (Depends-on): Add extensions.
24248         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
24249
24250 2010-04-25  Bruno Haible  <bruno@clisp.org>
24251
24252         Use the 'extensions' module for some more functions on Solaris.
24253         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
24254         module.
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/getpwnam_r.texi: Likewise.
24259         * doc/posix-functions/getpwuid_r.texi: Likewise.
24260         * doc/posix-functions/readdir_r.texi: Likewise.
24261         * doc/posix-functions/sigwait.texi: Likewise.
24262         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
24263         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
24264
24265 2010-04-25  Bruno Haible  <bruno@clisp.org>
24266
24267         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
24268         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
24269         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
24270         * lib/ttyname_r.c: Include <limits.h>.
24271         (ttyname_r): Define using the system's ttyname_r function, if it exists
24272         and not on Solaris.
24273         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
24274         set.
24275         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
24276         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
24277         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
24278         Reported by Simon Josefsson.
24279
24280 2010-04-25  Bruno Haible  <bruno@clisp.org>
24281
24282         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
24283         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
24284         * doc/posix-functions/ctime_r.texi: Likewise.
24285         * doc/posix-functions/getgrgid_r.texi: Likewise.
24286         * doc/posix-functions/getgrnam_r.texi: Likewise.
24287         * doc/posix-functions/getlogin_r.texi: Likewise.
24288         * doc/posix-functions/getpwnam_r.texi: Likewise.
24289         * doc/posix-functions/getpwuid_r.texi: Likewise.
24290         * doc/posix-functions/readdir_r.texi: Likewise.
24291         * doc/posix-functions/sigwait.texi: Likewise.
24292         * doc/posix-functions/ttyname_r.texi: Likewise.
24293         Reported by Simon Josefsson.
24294
24295 2010-04-25  Bruno Haible  <bruno@clisp.org>
24296
24297         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
24298         * gnulib-tool (func_usage): Document that --with-*-tests options apply
24299         also to --create-testdir.
24300         (func_acceptable): Don't consider the status of *-tests modules here.
24301         (func_modules_transitive_closure): Consider it here, before including a
24302         test module.
24303         (func_import, func_create_testdir): Set inc_all_direct_tests,
24304         inc_all_indirect_tests.
24305         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
24306         --create-testdir and --create-megatestdir.
24307
24308 2010-04-25  Bruno Haible  <bruno@clisp.org>
24309
24310         gnulib-tool: Add --without-*-tests options.
24311         * gnulib-tool (func_usage): Document the --without-*-tests options.
24312         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
24313         excl_unportable_tests): New variables.
24314         Fail if they are specified with --import or --update.
24315         (func_acceptable): Respect the excl_*_tests variables.
24316         (func_import): Set the excl_*_tests variables to empty.
24317
24318 2010-04-25  Simon Josefsson  <simon@josefsson.org>
24319             Bruno Haible  <bruno@clisp.org>
24320
24321         Work around a MacOS X 10.4 bug with openpty.
24322         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
24323         * tests/test-openpty.c (main): Close the master side explicitly.
24324
24325 2010-04-25  Bruno Haible  <bruno@clisp.org>
24326
24327         strnlen: Fix a C++ test error on MacOS X and Solaris.
24328         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
24329         the function is not declared.
24330         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
24331         Simon Josefsson.
24332
24333 2010-04-24  Bruno Haible  <bruno@clisp.org>
24334
24335         Avoid a gcc warning.
24336         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
24337         of correct type for %08lx directive.
24338         Reported by Eric Blake.
24339
24340 2010-04-24  Bruno Haible  <bruno@clisp.org>
24341
24342         vasnprintf: Correct errno value in case of out-of-memory.
24343         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
24344         or sprintf. Use the errno value from SNPRINTF or sprintf.
24345         Reported by Ian Beckwith <ianb@erislabs.net>.
24346
24347 2010-04-24  Bruno Haible  <bruno@clisp.org>
24348
24349         ansi-c++-opt: Find correct compiler when cross-compiling.
24350         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
24351         AC_CHECK_PROGS.
24352         Reported by Simon Josefsson.
24353
24354 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
24355
24356         vc-list-files: Add support for subversion
24357         * build-aux/vc-list-files: Use "svn list" to generate the list of
24358         files controlled by subversion.
24359
24360 2010-04-23  Jim Meyering  <meyering@redhat.com>
24361
24362         vc-list-files tests: convert to use init.sh
24363         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
24364         path_prepend_.
24365         Use Exit, not exit.
24366         Use skip_ rather than open coding it.
24367         Remove trap set-up and compare definitions.
24368         * tests/test-vc-list-files-git.sh: Likewise.
24369         * modules/vc-list-files-tests (Files): Add tests/init.sh.
24370
24371 2010-04-22  Simon Josefsson  <simon@josefsson.org>
24372
24373         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
24374         backup files.
24375
24376 2010-04-21  Simon Josefsson  <simon@josefsson.org>
24377
24378         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
24379
24380 2010-04-20  Eric Blake  <eblake@redhat.com>
24381
24382         tests: be robust to ignored SIGPIPE
24383         * tests/test-select-in.sh: Consume all output.
24384         * tests/test-lseek.sh: Check correct exit status, while avoiding
24385         EPIPE.
24386
24387 2010-04-20  Simon Josefsson  <simon@josefsson.org>
24388             Bruno Haible  <bruno@clisp.org>
24389
24390         visibility: Don't use -fvisibility if it leads to a warning.
24391         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
24392         yes, don't pretend that visibility works if it leads to a warning.
24393         Reported by Mike Gran <spk121@yahoo.com>.
24394
24395 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
24396
24397         * build-aux/bootstrap: Use "git -h" for testing for supported options
24398         instead of "git --help".  The short-form option only shows a summary,
24399         and doesn't layout the full man page.  Grep for the full option name
24400         in the summary, too.
24401
24402 2010-04-19  Bruno Haible  <bruno@clisp.org>
24403
24404         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
24405         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
24406         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
24407         mention of RELOCATABLE_STRIP.
24408         Reported by Sylvain Beucler <beuc@beuc.net>.
24409
24410 2010-04-19  Bruno Haible  <bruno@clisp.org>
24411
24412         * lib/diffseq.h: Fix typo in comment.
24413         Reported by Eric Blake.
24414
24415 2010-04-19  Bruno Haible  <bruno@clisp.org>
24416
24417         ioctl: Move autoconf macro to a .m4 file.
24418         * m4/ioctl.m4: New file, extracted from modules/ioctl.
24419         * modules/ioctl (Files): Add it.
24420         (configure.ac): Simply invoke gl_FUNC_IOCTL.
24421         Reported by Ian Beckwith <ianb@erislabs.net>.
24422
24423 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
24424             Bruno Haible  <bruno@clisp.org>
24425
24426         diffseq: Accommodate use-case with abstract arrays.
24427         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
24428         is not defined.
24429         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
24430         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
24431
24432 2010-04-18  Bruno Haible  <bruno@clisp.org>
24433
24434         * doc/posix-headers/stdbool.texi: More precise wording.
24435
24436 2010-04-17  Jim Meyering  <meyering@redhat.com>
24437
24438         maint.mk: use gnu-style indentation in an embedded perl script
24439         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
24440         Rename variable: s/two/last_two_bytes/
24441
24442 2010-04-16  Eric Blake  <eblake@redhat.com>
24443
24444         test-stdbool: skip test that fails with Solaris CC
24445         * tests/test-stdbool.c (f): Skip test that causes compilation
24446         error under buggy C++ compiler.
24447         * lib/stdbool.in.h: Document the limitation.
24448         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
24449
24450         setenv: allow compilation with C++
24451         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
24452         register keyword.
24453
24454         stdint: allow test to pass with C++
24455         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
24456
24457         getopt: allow compilation with C++
24458         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
24459         struct.
24460         * lib/getopt.c (_getopt_internal_r): Use correct type.
24461         Reported by Dagobert Michelson, via Joel E. Denny.
24462
24463 2010-04-16  Bruno Haible  <bruno@clisp.org>
24464
24465         Override netdb.h always.
24466         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
24467         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
24468         Reported by Ludovic Courtès <ludo@gnu.org>.
24469
24470 2010-04-15  Bruno Haible  <bruno@clisp.org>
24471
24472         openpty: Fix mistake from 2010-03-21.
24473         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
24474         Reported by Simon Josefsson.
24475
24476 2010-04-15  Eric Blake  <eblake@redhat.com>
24477
24478         test-forkpty: fix expected signature
24479         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
24480         Reported by Simon Josefsson.
24481
24482 2010-04-15  Jim Meyering  <meyering@redhat.com>
24483
24484         maint.mk: texinfo_suffix_re_: correct the default regexp
24485         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
24486
24487         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
24488         make it configurable via texinfo_suffix_re_.
24489
24490 2010-04-14  Eric Blake  <eblake@redhat.com>
24491
24492         strtok_r: relax license to LGPLv2+
24493         * modules/strtok_r (License): Relax license.
24494         Reported by Matthias Bolte.
24495
24496 2010-04-14  Simon Josefsson  <simon@josefsson.org>
24497
24498         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
24499         version 1.4.4 by default instead of requiring the libgcrypt
24500         version used during build.  This makes it possible to use the
24501         application with older but still binary compatible libgcrypt
24502         versions.
24503
24504 2010-04-13  Eric Blake  <eblake@redhat.com>
24505
24506         getopt-gnu: match recent glibc fixes and posix ruling
24507         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
24508         '+' handling, when requesting extensions.
24509         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
24510         'W;' handling.
24511         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
24512         * doc/posix-functions/getopt.texi (getopt): Document this.
24513         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24514         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24515         Likewise.
24516
24517         getopt: merge bug fixes from glibc
24518         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
24519         diagnostics.  Honor '+:' correctly.  Reject ';'.
24520
24521         getopt-posix: detect MacOS bug
24522         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
24523         optind when missing a required argument.
24524         * doc/posix-functions/getopt.texi (getopt): Document the bug.
24525         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
24526         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
24527         Likewise.
24528
24529         getopt-posix: avoid spurious failure on Solaris
24530         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
24531         an indicator that setting optind=1 is sufficient for reset.
24532
24533         getopt-posix: avoid spurious failure on FreeBSD
24534         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
24535         in POSIX mode, since the m4 test uses it.
24536
24537         gnulib-tool: silence warning on BSD sh
24538         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
24539
24540 2010-04-13  Jim Meyering  <meyering@redhat.com>
24541
24542         doc: users.txt: GNU patch now uses gnulib
24543         * users.txt: Add patch.
24544
24545 2010-04-12  Jim Meyering  <meyering@redhat.com>
24546
24547         maint.mk: generate more concise timing data for syntax-check rules
24548         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
24549         " done" from each line that reports a syntax-check test duration.
24550
24551 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
24552
24553         git-version-gen: use "git update-index..." rather than "git status"
24554         * build-aux/git-version-gen: Use git update-index --refresh, not
24555         "git status".  With some versions of git, "git status" would fail
24556         to update the index and result in an unwarranted "-dirty" suffix.
24557
24558 2010-04-11  Jim Meyering  <meyering@redhat.com>
24559
24560         openat: correct formatting (no semantic change)
24561         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
24562         Suggested by Bruno Haible.
24563
24564 2010-04-11  Bruno Haible  <bruno@clisp.org>
24565
24566         Stricter declaration checking in testdirs.
24567         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24568         If for_tests is true, augment AM_CPPFLAGS to define
24569         GNULIB_STRICT_CHECKING.
24570         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
24571         GNULIB_STRICT_CHECKING is defined, verify that the function is
24572         declared.
24573
24574 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
24575             Bruno Haible  <bruno@clisp.org>
24576
24577         libunistring: Improve configure output.
24578         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
24579         Don't say "consider installing GNU libunistring" when checking again
24580         with libiconv.
24581
24582 2010-04-11  Bruno Haible  <bruno@clisp.org>
24583
24584         libunistring: Correct value of $LTLIBUNISTRING.
24585         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
24586         correct the value of $LTLIBUNISTRING.
24587
24588 2010-04-11  Bruno Haible  <bruno@clisp.org>
24589
24590         havelib: Add static libraries to LIBS in the right order.
24591         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
24592         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
24593
24594 2010-04-11  Bruno Haible  <bruno@clisp.org>
24595
24596         libunistring: Detect libunistring also when it depends on libiconv.
24597         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
24598         the second AC_LIB_HAVE_LINKFLAGS invocation.
24599
24600 2010-04-11  James Youngman  <jay@gnu.org>
24601
24602         close-stream: declare local scalars to be "const"
24603         * lib/close-stream.c (close_stream): Make boolean variables const
24604         to document the fact that we set but do not change them.
24605
24606 2010-04-11  Bruno Haible  <bruno@clisp.org>
24607
24608         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
24609
24610 2010-04-11  Jim Meyering  <meyering@redhat.com>
24611
24612         maint.mk: don't include dist-check.mk
24613         * top/maint.mk: Remove bogus include directive.
24614
24615         maint.mk: improve empty-line-at-EOF check
24616         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
24617         solution, rather than tail+Perl-based one.  The latter would read
24618         a few kilobytes from the end of each file, and did not handle empty
24619         files properly.
24620
24621         maint.mk: print the elapsed time for each syntax-check rule
24622         * top/maint.mk (sc_m_rules_): Save start time in a file.
24623         (sc_z_rules_): New rules: remove temp file and print elapsed time.
24624         (local-check): Interpose the .z rules
24625
24626 2010-04-11  Jim Meyering  <meyering@redhat.com>
24627
24628         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
24629         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
24630         empty file with one that ends in an empty line.
24631
24632 2010-04-10  Bruno Haible  <bruno@clisp.org>
24633
24634         mkdir: Make it work on mingw64.
24635         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
24636         * lib/mkdir.c: Update comment.
24637         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
24638
24639 2010-04-10  Bruno Haible  <bruno@clisp.org>
24640
24641         Don't override improved macro from newer autoconf.
24642         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
24643         autoconf >= 2.62.
24644         Reported by Joel E. Denny <jdenny@clemson.edu>.
24645
24646 2010-04-10  Jim Meyering  <meyering@redhat.com>
24647
24648         maint.mk: new syntax-check rule: prohibit empty lines at end of file
24649         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
24650
24651         maint.mk: correct a diagnostic
24652         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
24653         in diagnostic; now use $prohibit.
24654
24655 2010-04-10  Bruno Haible  <address@hidden>
24656
24657         fchownat: Fix a C++ test error on Solaris 8.
24658         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
24659         the function does not exist.
24660
24661 2010-04-10  Bruno Haible  <bruno@clisp.org>
24662
24663         vasnprintf: Add more tests.
24664         * tests/test-vasnprintf-posix.c: Include <errno.h>.
24665         (test_function): Test converting an invalid wide string.
24666
24667         vasnprintf: Correct handling of unconvertible wide string arguments.
24668         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
24669         VASNPRINTF.
24670         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
24671         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
24672         smaller than the expected maximum need for the directive. Set errno to
24673         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
24674         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
24675         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
24676         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
24677         * modules/vasnprintf (Files): Add m4/printf.m4.
24678         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24679
24680 2010-04-10  Bruno Haible  <bruno@clisp.org>
24681
24682         vasnprintf: Fix crash in %ls directive.
24683         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
24684         string is passed as argument to %ls, with no precision and no width.
24685         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24686
24687 2010-04-10  Bruno Haible  <bruno@clisp.org>
24688
24689         vasnprintf: Fix multiple test failures on mingw.
24690         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
24691         _snprintf, or snwprintf, not _snwprintf.
24692
24693 2010-04-10  Bruno Haible  <bruno@clisp.org>
24694
24695         write: Fix a C++ test error on mingw.
24696         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
24697
24698 2010-04-10  Bruno Haible  <bruno@clisp.org>
24699
24700         vasnprintf test: Reduce code duplication.
24701         * tests/test-vasnprintf.c (test_function): New function, extracted from
24702         test_vasnprintf.
24703         (test_vasnprintf, test_asnprintf): Invoke it.
24704
24705 2010-04-10  Bruno Haible  <bruno@clisp.org>
24706
24707         strnlen: Fix warning in C++ mode on MacOS X.
24708         * lib/string.in.h (strnlen): Use the modern idiom.
24709         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
24710         defining strnlen as a macro already in <config.h>.
24711         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
24712         REPLACE_STRNLEN.
24713         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
24714         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24715
24716 2010-04-08  James Youngman  <jay@gnu.org>
24717
24718         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
24719         the example.
24720
24721 2010-04-09  Jim Meyering  <meyering@redhat.com>
24722
24723         maint.mk: print better diagnostic when there is no $(_hv_file)
24724         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
24725         announce that when $(_hv_file) (aka help-version) does not exist.
24726
24727         init.sh: run tr in the "C" locale to avoid multibyte interpretation
24728         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
24729         not try to interpret its random input bytes.  Jarno Rajahalme reported
24730         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
24731         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
24732         (mktempd_): Likewise, just in case.
24733
24734         ftruncate: add two years to projected module removal date: 2012
24735         * m4/ftruncate.m4: Adjust comments.
24736
24737         ftruncate: mark module as obsolete; even MinGW provides it, now
24738         * modules/ftruncate (Status): Obsolete.
24739         (Notice): Say that.
24740         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
24741         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
24742
24743 2010-04-08  Bruno Haible  <bruno@clisp.org>
24744
24745         Fix side effects from tests-related modules.
24746         * modules/dprintf-posix (Comment): New section.
24747         * modules/fprintf-posix (Comment): Likewise.
24748         * modules/obstack-printf-posix (Comment): Likewise.
24749         * modules/printf-posix (Comment): Likewise.
24750         * modules/snprintf-posix (Comment): Likewise.
24751         * modules/sprintf-posix (Comment): Likewise.
24752         * modules/vasnprintf-posix (Comment): Likewise.
24753         * modules/vasprintf-posix (Comment): Likewise.
24754         * modules/vdprintf-posix (Comment): Likewise.
24755         * modules/vfprintf-posix (Comment): Likewise.
24756         * modules/vprintf-posix (Comment): Likewise.
24757         * modules/vsnprintf-posix (Comment): Likewise.
24758         * modules/vsprintf-posix (Comment): Likewise.
24759         * modules/xprintf-posix (Comment): Likewise.
24760         * modules/xvasprintf-posix (Comment): Likewise.
24761         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
24762         * modules/floorf-tests (Depends-on): Likewise.
24763         * modules/round-tests (Depends-on): Likewise.
24764         * modules/roundf-tests (Depends-on): Likewise.
24765         * modules/trunc-tests (Depends-on): Likewise.
24766         * modules/truncf-tests (Depends-on): Likewise.
24767         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
24768         'fprintf-posix' module is not present.
24769         * tests/test-floorf2.c (check): Likewise.
24770         * tests/test-trunc2.c (check): Likewise.
24771         * tests/test-truncf2.c (check): Likewise.
24772         * tests/test-round2.c (equal): Likewise.
24773         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24774
24775 2010-04-07  Karl Berry  <karl@gnu.org>
24776
24777         * config/srclist.txt,
24778         * config/srclistvars.sh,
24779         * config/srclist-update: doc fixes.
24780
24781 2010-04-07  Jim Meyering  <meyering@redhat.com>
24782
24783         maint.mk: add a PATH crosschecking syntax-check rule
24784         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
24785         Useful if you use a test like the one in help-version (coreutils,
24786         diffutils, grep, gzip) that ensures $(VERSION) matches what is
24787         printed by prog --version.
24788
24789 2010-04-06  Bruno Haible  <bruno@clisp.org>
24790
24791         Fix link error on mingw.
24792         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
24793         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
24794
24795 2010-04-06  Bruno Haible  <bruno@clisp.org>
24796
24797         Assume rmdir exists.
24798         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
24799
24800 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
24801
24802         doc: update users.txt
24803         * users.txt: Add gcal.
24804
24805 2010-04-06  Jim Meyering  <meyering@redhat.com>
24806
24807         init.sh: simply unset TMPDIR rather than risking env -i
24808         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
24809         although it probably works fine on all Unix-based systems, some
24810         systems (Cygwin?) cannot tolerate a totally cleared environment.
24811         Suggestion from Eric Blake.
24812
24813 2010-04-06  Jim Meyering  <meyering@redhat.com>
24814
24815         init.sh: portability fix: use env's POSIX-specified -i option not -u
24816         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
24817         than unportable env -u.  Solaris 5.11's env lacks support for -u.
24818
24819 2010-04-05  Bruno Haible  <bruno@clisp.org>
24820
24821         btowc: Work around Cygwin 1.7.2 bug.
24822         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
24823         does not map NUL to 0.
24824         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
24825
24826 2010-04-05  Bruno Haible  <bruno@clisp.org>
24827
24828         Make the multithread modules work on Cygwin 1.7.2.
24829         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
24830         imported symbols can be declared weak, so that it returns "no" on
24831         Cygwin 1.7.2.
24832
24833 2010-04-05  Bruno Haible  <bruno@clisp.org>
24834
24835         Use the module 'strncat'.
24836         * modules/unistr/u8-strncat (Depends-on): Add strncat.
24837
24838         Tests for module 'strncat'.
24839         * modules/strncat-tests: New file.
24840         * tests/test-strncat.c: New file.
24841
24842         New module 'strncat'.
24843         * lib/string.in.h (strncat): New declaration.
24844         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
24845         * m4/strncat.m4: New file, based on m4/memchr.m4.
24846         * modules/strncat: New file.
24847         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
24848         is declared.
24849         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
24850         REPLACE_STRNCAT.
24851         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
24852         REPLACE_STRNCAT.
24853         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
24854         module.
24855         * tests/test-string-c++.cc: Check signature of strncat.
24856
24857 2010-04-05  Jim Meyering  <meyering@redhat.com>
24858
24859         xstrtoumax-tests: convert to use init.sh
24860         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
24861         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24862         Use Exit, not exit.
24863         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24864
24865         xstrtoimax-tests: convert to use init.sh
24866         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
24867         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24868         Use Exit, not exit.
24869         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24870
24871 2010-04-05  Bruno Haible  <bruno@clisp.org>
24872
24873         sys_socket: Avoid #define replacements in C++ mode.
24874         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
24875         warning to the function if possible, rather than #defining the symbol
24876         to a dysfunctional alias.
24877
24878 2010-04-05  Bruno Haible  <bruno@clisp.org>
24879
24880         fseeko: Fix C++ test error on mingw.
24881         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
24882         gl_FUNC_FSEEKO.
24883         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
24884         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
24885         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
24886         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
24887
24888 2010-04-05  Bruno Haible  <bruno@clisp.org>
24889
24890         duplocale: Improve test output.
24891         * tests/test-duplocale.c (main): Print reason for skipped test.
24892
24893 2010-04-05  Bruno Haible  <bruno@clisp.org>
24894
24895         Assume rmdir exists.
24896         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
24897         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
24898
24899 2010-04-05  Bruno Haible  <bruno@clisp.org>
24900
24901         Fix link error on Solaris 8 with cc.
24902         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
24903
24904 2010-04-05  Bruno Haible  <bruno@clisp.org>
24905
24906         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
24907         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
24908
24909 2010-04-05  Bruno Haible  <bruno@clisp.org>
24910
24911         vasprintf: Update documentation.
24912         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
24913
24914 2010-04-05  Bruno Haible  <bruno@clisp.org>
24915
24916         ptsname: Improve test.
24917         * tests/test-ptsname.c (main): Also try the various master names of BSD
24918         systems.
24919
24920 2010-04-05  Bruno Haible  <bruno@clisp.org>
24921
24922         memchr: Avoid a possible C++ test error.
24923         * lib/string.in.h (memchr): Provide declaration if function is missing.
24924         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
24925         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
24926         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
24927         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
24928
24929 2010-04-05  Bruno Haible  <bruno@clisp.org>
24930
24931         strtok_r: Improve idiom.
24932         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
24933         AC_LIBOBJ is used.
24934
24935 2010-04-05  Bruno Haible  <bruno@clisp.org>
24936
24937         strdup: Improve idiom.
24938         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
24939         AC_LIBOBJ is used.
24940         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
24941         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
24942         when AC_LIBOBJ is used.
24943
24944 2010-04-05  Bruno Haible  <bruno@clisp.org>
24945
24946         mbsinit, mbrtowc, wcrtomb: Improve idioms.
24947         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
24948         don't set REPLACE_MBSINIT to 1.
24949         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
24950         don't set REPLACE_MBRTOWC to 1.
24951         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
24952         exist, don't set REPLACE_MBSRTOWCS to 1.
24953         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
24954         exist, don't set REPLACE_MBSNRTOWCS to 1.
24955         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
24956         don't set REPLACE_WCRTOMB to 1.
24957         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
24958         exist, don't set REPLACE_WCSRTOMBS to 1.
24959         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
24960         exist, don't set REPLACE_WCSNRTOMBS to 1.
24961
24962 2010-04-05  Bruno Haible  <bruno@clisp.org>
24963
24964         ldexpl: Improve idiom.
24965         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
24966         make sure to set HAVE_DECL_LDEXPL to 0.
24967
24968 2010-04-05  Jim Meyering  <meyering@redhat.com>
24969
24970         xstrtol-tests: convert to use init.sh
24971         * modules/xstrtol-tests (Files): Add tests/init.sh.
24972         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24973         Use Exit, not exit.
24974         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24975
24976         atexit-tests: convert to use init.sh
24977         * modules/atexit-tests (Files): Add tests/init.sh.
24978         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
24979         Use Exit, not exit.
24980         Remove uses of $EXEEXT and "./" to run a program in the current dir.
24981
24982         init.sh: fix typo
24983         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
24984
24985         init.sh: make it easier for a test script to write to the tty, ...
24986         when using automake's parallel-tests mode.
24987         * tests/init.sh (stderr_fileno_): Define overridable variable.
24988         (warn_): New function, to use it.
24989         (fail_, skip_, framework_failure_): Use warn_.
24990
24991 2010-04-04  Bruno Haible  <bruno@clisp.org>
24992
24993         btowc: Avoid warning.
24994         * lib/btowc.c: Include <stdlib.h>.
24995         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
24996
24997 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
24998             Bruno Haible  <bruno@clisp.org>
24999
25000         wchar: Port to NetBSD 1.5.
25001         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
25002         * lib/wctype.in.h (WEOF): Likewise.
25003
25004 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
25005             Bruno Haible  <bruno@clisp.org>
25006
25007         Port extended stdio to NetBSD 1.5.
25008         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
25009         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
25010         older.
25011
25012 2010-04-04  Bruno Haible  <bruno@clisp.org>
25013
25014         string: Remove unused substitution.
25015         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
25016         HAVE_DECL_STRERROR.
25017         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
25018
25019 2010-04-04  Bruno Haible  <bruno@clisp.org>
25020
25021         strtod: Avoid a possible C++ test error.
25022         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
25023         set REPLACE_STRTOD.
25024
25025 2010-04-04  Bruno Haible  <bruno@clisp.org>
25026
25027         strerror: Update documentation.
25028         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
25029
25030 2010-04-04  Bruno Haible  <bruno@clisp.org>
25031
25032         stdio: Fix some C++ test errors on Solaris 8 with GCC.
25033         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
25034         _GL_CXXALIAS_SYS_CAST.
25035
25036 2010-04-04  Bruno Haible  <bruno@clisp.org>
25037
25038         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
25039         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
25040         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
25041         REPLACE_FREXPL to 1.
25042         * doc/posix-functions/frexpl.texi: Update documentation.
25043
25044 2010-04-04  Bruno Haible  <bruno@clisp.org>
25045
25046         math: Fix some C++ test errors on Solaris 8 and Cygwin.
25047         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
25048
25049 2010-04-04  Bruno Haible  <bruno@clisp.org>
25050
25051         Implement nanosleep for native Windows.
25052         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
25053
25054 2010-04-04  Bruno Haible  <bruno@clisp.org>
25055
25056         math: Fix some C++ test errors on Solaris 8.
25057         * lib/math.in.h (truncf, trunc): Use simpler idiom.
25058
25059 2010-04-04  Bruno Haible  <bruno@clisp.org>
25060
25061         math: Fix some C++ test errors on Cygwin.
25062         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
25063         truncl): Provide declaration if the system does not have it.
25064         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
25065         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
25066         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
25067         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
25068         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
25069         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
25070         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
25071         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
25072         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
25073         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
25074         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
25075         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
25076         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
25077         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
25078         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
25079         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
25080         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
25081         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
25082         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
25083         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
25084         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
25085         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
25086
25087 2010-04-04  Bruno Haible  <bruno@clisp.org>
25088
25089         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
25090         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
25091         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
25092         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
25093         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
25094         * m4/isinf.m4 (gl_ISINF): Likewise.
25095         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25096
25097 2010-04-04  Bruno Haible  <bruno@clisp.org>
25098
25099         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
25100         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
25101
25102 2010-04-04  Bruno Haible  <bruno@clisp.org>
25103
25104         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
25105         * modules/tmpfile (configure.ac): Update.
25106
25107         tmpfile: Fix C++ test error on mingw.
25108         * lib/stdio.in.h (tmpfile): New declaration.
25109         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
25110         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
25111         * modules/tmpfile (Depends-on): Add stdio.
25112         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
25113         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
25114         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
25115         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
25116         REPLACE_TMPFILE.
25117         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
25118
25119 2010-04-04  Bruno Haible  <bruno@clisp.org>
25120
25121         ioctl: Fix C++ test error on mingw.
25122         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
25123         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
25124         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
25125
25126 2010-04-03  Bruno Haible  <bruno@clisp.org>
25127
25128         wcwidth: Fix C++ test error on mingw.
25129         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
25130         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
25131         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
25132
25133 2010-04-03  Bruno Haible  <bruno@clisp.org>
25134
25135         nanosleep: Fix C++ test error on mingw.
25136         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
25137         * lib/time.in.h (nanosleep): Use modern idiom.
25138         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
25139         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
25140         REPLACE_NANOSLEEP to 1.
25141         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
25142         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
25143
25144 2010-04-03  Bruno Haible  <bruno@clisp.org>
25145
25146         strptime: Fix C++ test error on mingw.
25147         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
25148         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
25149         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
25150         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
25151         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
25152         not REPLACE_STRPTIME.
25153         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
25154         REPLACE_STRPTIME.
25155
25156 2010-04-03  Bruno Haible  <bruno@clisp.org>
25157
25158         timegm: Fix C++ test error on mingw.
25159         * lib/time.in.h (timegm): Use modern idiom.
25160         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
25161         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
25162         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
25163         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
25164
25165 2010-04-03  Bruno Haible  <bruno@clisp.org>
25166
25167         timegm: Assume declaration if function exists.
25168         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
25169         if it exists. Don't clobber ac_cv_func_timegm.
25170
25171 2010-04-03  Bruno Haible  <bruno@clisp.org>
25172
25173         time_r: Fix C++ test error on mingw.
25174         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
25175         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
25176         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
25177         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
25178         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
25179
25180 2010-04-03  Bruno Haible  <bruno@clisp.org>
25181
25182         time_r: Minor updates.
25183         * modules/time_r (Description): Mention the provided functions.
25184         * lib/time_r.c: Don't include <string.h>.
25185         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
25186         * doc/posix-functions/localtime_r.texi: Likewise.
25187
25188 2010-04-03  Bruno Haible  <bruno@clisp.org>
25189
25190         time: Fix regression introduced on 2010-03-08.
25191         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
25192         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
25193
25194 2010-04-03  Jim Meyering  <meyering@redhat.com>
25195
25196         maint.mk: don't silently disable project-specific syntax-check rules
25197         * top/maint.mk (_prohibit_regexp): Define, to help people realize
25198         that they need to convert their project-specific syntax-check rules
25199         to use the new _sc_search_regexp.
25200
25201 2010-04-03  Bruno Haible  <bruno@clisp.org>
25202
25203         fchdir: Fix regression introduced on 2010-03-08.
25204         * lib/unistd.in.h (fchdir): Fix declaration.
25205         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
25206         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
25207         REPLACE_FCHDIR.
25208         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
25209         REPLACE_FCHDIR.
25210
25211 2010-04-03  Bruno Haible  <bruno@clisp.org>
25212
25213         getpagesize: Fix C++ test error on mingw.
25214         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
25215         system does not declare the function.
25216         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
25217         declared.
25218         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25219         HAVE_DECL_GETPAGESIZE.
25220         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
25221
25222 2010-04-03  Bruno Haible  <bruno@clisp.org>
25223
25224         stdio: Make C++ tests work on mingw.
25225         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
25226         does not declare the function.
25227
25228 2010-04-03  Bruno Haible  <bruno@clisp.org>
25229
25230         ftello: Fix C++ test error on mingw.
25231         * lib/stdio.in.h (ftello): Use modern idiom.
25232         * lib/ftello.c (ftello): Renamed from rpl_ftello.
25233         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
25234         is missing and that it needs to be replaced.
25235         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
25236         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
25237         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
25238
25239 2010-04-03  Bruno Haible  <bruno@clisp.org>
25240
25241         fseeko: Fix C++ test error on mingw.
25242         * lib/stdio.in.h (fseeko): Use modern idiom.
25243         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
25244         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
25245         is missing and that it needs to be replaced.
25246         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
25247         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
25248         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
25249
25250 2010-04-03  Bruno Haible  <bruno@clisp.org>
25251
25252         mkstemp: Fix C++ test error on mingw.
25253         * lib/stdlib.in.h (mkstemp): Use modern idiom.
25254         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
25255         function is missing and that it needs to be replaced.
25256         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
25257         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
25258
25259 2010-04-03  Bruno Haible  <bruno@clisp.org>
25260
25261         stpncpy: Fix C++ test error on mingw.
25262         * lib/string.in.h (stpncpy): Use modern idiom.
25263         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
25264         function is missing and that it needs to be replaced.
25265         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25266         REPLACE_STPNCPY.
25267         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
25268
25269 2010-04-03  Bruno Haible  <bruno@clisp.org>
25270
25271         sys_stat: Fix C++ test error on mingw.
25272         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
25273         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
25274
25275 2010-04-03  Bruno Haible  <bruno@clisp.org>
25276
25277         pty: Update doc.
25278         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
25279
25280 2010-04-03  Bruno Haible  <bruno@clisp.org>
25281
25282         unistd: Fix C++ test error on mingw.
25283         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
25284
25285 2010-04-03  Bruno Haible  <bruno@clisp.org>
25286
25287         Update doc regarding mingw.
25288         * doc/glibc-functions/openpty.texi: Update regarding mingw.
25289         * doc/glibc-functions/login_tty.texi: Likewise.
25290         * doc/glibc-functions/forkpty.texi: Likewise.
25291
25292 2010-04-03  Bruno Haible  <bruno@clisp.org>
25293
25294         stdlib: Avoid compilation failure of c-strtold on mingw.
25295         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
25296
25297 2010-04-03  Bruno Haible  <bruno@clisp.org>
25298
25299         locale: Make C++ tests work on Cygwin and mingw.
25300         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
25301         cannot provide the function.
25302         Reported by Simon Josefsson.
25303
25304 2010-04-03  Bruno Haible  <bruno@clisp.org>
25305
25306         localename: Port to MacOS X 10.6.
25307         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
25308         memory layout of the locales in MacOS X 10.6 as well.
25309         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
25310
25311 2010-04-02  Bruno Haible  <bruno@clisp.org>
25312
25313         gnulib-tool: Ensure that long-running tests are executed last.
25314         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
25315         running tests after the one for the other tests.
25316
25317 2010-04-02  Bruno Haible  <bruno@clisp.org>
25318
25319         gnulib-tool: Ensure the tests in the main directory are executed first.
25320         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
25321         start with the current directory.
25322
25323 2010-04-02  Bruno Haible  <bruno@clisp.org>
25324
25325         Tests for module 'havelib', moved here from GNU gettext.
25326         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
25327         modifications.
25328         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
25329         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
25330         with modifications.
25331         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
25332         modifications.
25333         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
25334         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
25335         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
25336         with modifications.
25337         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
25338         with modifications.
25339         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
25340         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
25341         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
25342         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
25343         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
25344         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
25345         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
25346         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
25347         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
25348         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
25349         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
25350         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
25351         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
25352         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
25353         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
25354         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
25355         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
25356         with modifications.
25357         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
25358         with modifications.
25359         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
25360         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
25361         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
25362         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
25363         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
25364         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
25365         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
25366         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
25367         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
25368         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
25369         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
25370         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
25371         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
25372         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
25373         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
25374         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
25375         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
25376         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
25377         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
25378         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
25379         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
25380         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
25381         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
25382         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
25383         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
25384         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
25385         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
25386         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
25387         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
25388         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
25389         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
25390         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
25391         * tests/havelib/rpathx/rpathx.c: New file, from
25392         gettext/autoconf-lib-link.
25393         * tests/havelib/rpathx/Makefile.am: New file, from
25394         gettext/autoconf-lib-link.
25395         * tests/havelib/rpathx/configure.ac: New file, from
25396         gettext/autoconf-lib-link with modifications.
25397         * tests/havelib/rpathy/rpathy.c: New file, from
25398         gettext/autoconf-lib-link.
25399         * tests/havelib/rpathy/Makefile.am: New file, from
25400         gettext/autoconf-lib-link.
25401         * tests/havelib/rpathy/configure.ac: New file, from
25402         gettext/autoconf-lib-link with modifications.
25403         * tests/havelib/rpathz/rpathz.c: New file, from
25404         gettext/autoconf-lib-link.
25405         * tests/havelib/rpathz/Makefile.am: New file, from
25406         gettext/autoconf-lib-link.
25407         * tests/havelib/rpathz/configure.ac: New file, from
25408         gettext/autoconf-lib-link with modifications.
25409         * tests/havelib/rpathlx/usex.c: New file, from
25410         gettext/autoconf-lib-link.
25411         * tests/havelib/rpathlx/Makefile.am: New file, from
25412         gettext/autoconf-lib-link.
25413         * tests/havelib/rpathlx/configure.ac: New file, from
25414         gettext/autoconf-lib-link with modifications.
25415         * tests/havelib/rpathly/usey.c: New file, from
25416         gettext/autoconf-lib-link.
25417         * tests/havelib/rpathly/Makefile.am: New file, from
25418         gettext/autoconf-lib-link.
25419         * tests/havelib/rpathly/configure.ac: New file, from
25420         gettext/autoconf-lib-link with modifications.
25421         * tests/havelib/rpathlz/usez.c: New file, from
25422         gettext/autoconf-lib-link.
25423         * tests/havelib/rpathlz/Makefile.am: New file, from
25424         gettext/autoconf-lib-link.
25425         * tests/havelib/rpathlz/configure.ac: New file, from
25426         gettext/autoconf-lib-link with modifications.
25427         * tests/havelib/rpathlyx/usey.c: New file, from
25428         gettext/autoconf-lib-link.
25429         * tests/havelib/rpathlyx/Makefile.am: New file, from
25430         gettext/autoconf-lib-link.
25431         * tests/havelib/rpathlyx/configure.ac: New file, from
25432         gettext/autoconf-lib-link with modifications.
25433         * tests/havelib/rpathlzyx/usez.c: New file, from
25434         gettext/autoconf-lib-link.
25435         * tests/havelib/rpathlzyx/Makefile.am: New file, from
25436         gettext/autoconf-lib-link.
25437         * tests/havelib/rpathlzyx/configure.ac: New file, from
25438         gettext/autoconf-lib-link with modifications.
25439         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
25440         with modifications.
25441
25442 2010-04-02  Bruno Haible  <bruno@clisp.org>
25443
25444         gnulib-tool: Create distributed built sources also for the tests.
25445         * gnulib-tool (func_create_testdir): Also generate distributed built
25446         sources in the tests directory.
25447
25448 2010-04-02  Bruno Haible  <bruno@clisp.org>
25449
25450         gnulib-tool: Obey user's environment variables.
25451         * gnulib-tool (func_create_testdir): When creating built sources,
25452         respect the environment variables for autoconf, automake, etc. given by
25453         the user.
25454
25455 2010-04-02  Bruno Haible  <bruno@clisp.org>
25456
25457         gnulib-tool: Provide the value of --m4-base to modules.
25458         * gnulib-tool (func_import, func_create_testdir): Emit a definition
25459         of gl_m4_base.
25460
25461 2010-04-02  Eric Blake  <eblake@redhat.com>
25462
25463         maint.mk: fix some fallout
25464         * NEWS: Document the incompatible change, and its effect on cfg.mk.
25465         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
25466
25467 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25468
25469         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
25470         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
25471         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
25472         (sc_cast_of_x_alloc_return_value): Likewise.
25473         (sc_cast_of_alloca_return_value): Likewise.
25474         (sc_space_tab): Likewise.
25475         (sc_prohibit_atoi_atof): Likewise.
25476         (sc_prohibit_magic_number_exit): Likewise.
25477         (sc_error_exit_success): Likewise.
25478         (sc_file_system): Likewise.
25479         (sc_prohibit_have_config_h): Likewise.
25480         (sc_require_config_h): Likewise.
25481         (sc_prohibit_HAVE_MBRTOWC): Likewise.
25482         (sc_obsolete_symbols): Likewise.
25483         (sc_changelog): Likewise.
25484         (sc_program_name): Likewise.
25485         (sc_the_the): Likewise.
25486         (sc_trailing_blank): Likewise.
25487         (sc_two_space_separator_in_usage): Likewise.
25488         (sc_useless_cpp_parens): Likewise.
25489         (sc_GPL_version): Likewise.
25490         (sc_GFDL_version): Likewise.
25491         (sc_texinfo_acronym): Likewise.
25492         (sc_prohibit_cvs_keyword): Likewise.
25493         (sc_prohibit_stat_st_blocks): Likewise.
25494         (sc_prohibit_S_IS_definition): Likewise.
25495         (sc_redundant_const): Likewise.
25496         (sc_makefile_TAB_only_indentation): Likewise.
25497         (sc_m4_quote_check): Likewise.
25498         (sc_makefile_path_separator_check): Likewise.
25499         (sc_copyright_check): Likewise.
25500         (sc_Wundef_boolean): Likewise.
25501         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25502
25503         maint.mk: match 0 or more whitespace-before-function-call '('
25504         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
25505         that have zero or two-and-more spaces between the function name
25506         and the open parenthesis.
25507         (sc_error_message_warn_fatal): Likewise.
25508         (sc_error_message_uppercase): Likewise.
25509         (sc_error_message_period): Likewise.
25510
25511 2010-03-31  Eric Blake  <eblake@redhat.com>
25512
25513         maint.mk: check for [ as well as test
25514         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
25515         Based on a libvirt report by Matthias Bolte.
25516
25517         gnumakefile: don't squelch _version output
25518         * top/GNUmakefile (_version): Create one-shot dependency rather
25519         than using $(shell) when version must be regenerated.
25520         (_autoreconf): Run verbosely, by default.
25521
25522         sys_time: avoid compiler warnings
25523         * lib/sys_time.in.h (includes): Ensure gcc pragma is
25524         unconditional, fixing regression from 2010-03-29.
25525         Reported by Simon Josefsson.
25526
25527 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
25528
25529         maint.mk: s/_header_without_use/_sc_header_without_use/
25530         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
25531         (sc_prohibit_assert_without_use): Use the new name.
25532         (sc_prohibit_close_stream_without_use): Likewise.
25533         (sc_prohibit_getopt_without_use): Likewise.
25534         (sc_prohibit_quotearg_without_use): Likewise.
25535         (sc_prohibit_quote_without_use): Likewise.
25536         (sc_prohibit_long_options_without_use): Likewise.
25537         (sc_prohibit_inttostr_without_use): Likewise.
25538         (sc_prohibit_ignore_value_without_use): Likewise.
25539         (sc_prohibit_error_without_use): Likewise.
25540         (sc_prohibit_xalloc_without_use): Likewise.
25541         (sc_prohibit_hash_without_use): Likewise.
25542         (sc_prohibit_hash_pjw_without_use): Likewise.
25543         (sc_prohibit_safe_read_without_use): Likewise.
25544         (sc_prohibit_argmatch_without_use): Likewise.
25545         (sc_prohibit_canonicalize_without_use): Likewise.
25546         (sc_prohibit_root_dev_ino_without_use): Likewise.
25547         (sc_prohibit_openat_without_use): Likewise.
25548         (sc_prohibit_c_ctype_without_use): Likewise.
25549         (sc_prohibit_signal_without_use): Likewise.
25550         (sc_prohibit_intprops_without_use): Likewise.
25551
25552 2010-03-30  Eric Blake  <eblake@redhat.com>
25553
25554         maint: improve module indicators
25555         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
25556         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
25557         columns, and avoid extra macro expansion.
25558
25559         fdopendir: work around FreeBSD bug
25560         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
25561         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
25562         * modules/dirent (Makefile.am): Substitute it.
25563         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
25564         declaration.
25565         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
25566         fix.
25567         Reported by Christian Weisgerber <naddy@mips.inka.de>.
25568
25569 2010-03-29  Bruno Haible  <bruno@clisp.org>
25570
25571         Emit #pragma system_header after the inclusion guard, not before.
25572         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
25573         guard that spans the entire file, not before. This enables an
25574         optimization in GCC's preprocessor.
25575         * lib/ctype.in.h: Likewise.
25576         * lib/dirent.in.h: Likewise.
25577         * lib/errno.in.h: Likewise.
25578         * lib/float.in.h: Likewise.
25579         * lib/getopt.in.h: Likewise.
25580         * lib/iconv.in.h: Likewise.
25581         * lib/langinfo.in.h: Likewise.
25582         * lib/locale.in.h: Likewise.
25583         * lib/math.in.h: Likewise.
25584         * lib/netdb.in.h: Likewise.
25585         * lib/netinet_in.in.h: Likewise.
25586         * lib/pty.in.h: Likewise.
25587         * lib/sched.in.h: Likewise.
25588         * lib/se-selinux.in.h: Likewise.
25589         * lib/search.in.h: Likewise.
25590         * lib/spawn.in.h: Likewise.
25591         * lib/stdarg.in.h: Likewise.
25592         * lib/stdint.in.h: Likewise.
25593         * lib/string.in.h: Likewise.
25594         * lib/strings.in.h: Likewise.
25595         * lib/sys_file.in.h: Likewise.
25596         * lib/sys_ioctl.in.h: Likewise.
25597         * lib/sys_time.in.h: Likewise.
25598         * lib/sys_times.in.h: Likewise.
25599         * lib/sys_utsname.in.h: Likewise.
25600         * lib/sys_wait.in.h: Likewise.
25601         * lib/sysexits.in.h: Likewise.
25602         * lib/wctype.in.h: Likewise.
25603
25604 2010-03-28  James Youngman  <jay@gnu.org>
25605
25606         save-cwd: don't leak a file descriptor when the caller execs.
25607         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
25608         saved file descriptor.
25609         * modules/save-cwd (Depends-on): Depend on cloexec.
25610
25611 2010-03-29  Bruno Haible  <bruno@clisp.org>
25612
25613         Remove vestiges of fts-lgpl module.
25614         * lib/fts_.h: Assume GNULIB_FTS is 1.
25615         * lib/fts.c: Likewise.
25616         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25617
25618 2010-03-28  Bruno Haible  <bruno@clisp.org>
25619
25620         Fix definition of tests witness macro.
25621         * gnulib-tool (func_import): Fix definition of witness macro.
25622
25623 2010-03-28  Bruno Haible  <bruno@clisp.org>
25624
25625         Fix ioctl's protoype on glibc systems.
25626         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
25627         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
25628         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
25629         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
25630         signature. If not, arrange to replace the ioctl function.
25631         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
25632         REPLACE_IOCTL.
25633         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
25634         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
25635         Reported by Ludovic Courtès <ludo@gnu.org>.
25636
25637 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
25638
25639         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
25640         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
25641         made it so grep -r --include=GLOB* ... did not work.
25642
25643 2010-03-26  Jim Meyering  <meyering@redhat.com>
25644             Eric Blake  <eblake@redhat.com>
25645
25646         maint.mk: prohibit use of test's -o and -a operators
25647         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
25648
25649 2010-03-28  Bruno Haible  <bruno@clisp.org>
25650
25651         Remove unused GNULIB_XYZ macro definitions.
25652         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
25653         invocation.
25654
25655 2010-03-28  Bruno Haible  <bruno@clisp.org>
25656
25657         Mark privileged tests modules.
25658         * modules/idpriv-drop-tests (Status): New section.
25659         * modules/idpriv-droptemp-tests (Status): New section.
25660
25661 2010-03-28  Bruno Haible  <bruno@clisp.org>
25662
25663         Split C++ tests into separate tests modules.
25664         * modules/dirent-c++-tests: New file, extracted from
25665         modules/dirent-tests.
25666         * modules/dirent-tests: Depend on it.
25667         * modules/fcntl-h-c++-tests: New file, extracted from
25668         modules/fcntl-h-tests.
25669         * modules/fcntl-h-tests: Depend on it.
25670         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
25671         * modules/glob-tests: Depend on it.
25672         * modules/iconv-h-c++-tests: New file, extracted from
25673         modules/iconv-h-tests.
25674         * modules/iconv-h-tests: Depend on it.
25675         * modules/langinfo-c++-tests: New file, extracted from
25676         modules/langinfo-tests.
25677         * modules/langinfo-tests: Depend on it.
25678         * modules/locale-c++-tests: New file, extracted from
25679         modules/locale-tests.
25680         * modules/locale-tests: Depend on it.
25681         * modules/math-c++-tests: New file, extracted from modules/math-tests.
25682         * modules/math-tests: Depend on it.
25683         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
25684         * modules/pty-tests: Depend on it.
25685         * modules/search-c++-tests: New file, extracted from
25686         modules/search-tests.
25687         * modules/search-tests: Depend on it.
25688         * modules/signal-c++-tests: New file, extracted from
25689         modules/signal-tests.
25690         * modules/signal-tests: Depend on it.
25691         * modules/spawn-c++-tests: New file, extracted from
25692         modules/spawn-tests.
25693         * modules/spawn-tests: Depend on it.
25694         * modules/stdio-c++-tests: New file, extracted from
25695         modules/stdio-tests.
25696         * modules/stdio-tests: Depend on it.
25697         * modules/stdlib-c++-tests: New file, extracted from
25698         modules/stdlib-tests.
25699         * modules/stdlib-tests: Depend on it.
25700         * modules/string-c++-tests: New file, extracted from
25701         modules/string-tests.
25702         * modules/string-tests: Depend on it.
25703         * modules/sys_ioctl-c++-tests: New file, extracted from
25704         modules/sys_ioctl-tests.
25705         * modules/sys_ioctl-tests: Depend on it.
25706         * modules/sys_select-c++-tests: New file, extracted from
25707         modules/sys_select-tests.
25708         * modules/sys_select-tests: Depend on it.
25709         * modules/sys_socket-c++-tests: New file, extracted from
25710         modules/sys_socket-tests.
25711         * modules/sys_socket-tests: Depend on it.
25712         * modules/sys_stat-c++-tests: New file, extracted from
25713         modules/sys_stat-tests.
25714         * modules/sys_stat-tests: Depend on it.
25715         * modules/sys_time-c++-tests: New file, extracted from
25716         modules/sys_time-tests.
25717         * modules/sys_time-tests: Depend on it.
25718         * modules/time-c++-tests: New file, extracted from modules/time-tests.
25719         * modules/time-tests: Depend on it.
25720         * modules/unistd-c++-tests: New file, extracted from
25721         modules/unistd-tests.
25722         * modules/unistd-tests: Depend on it.
25723         * modules/wchar-c++-tests: New file, extracted from
25724         modules/wchar-tests.
25725         * modules/wchar-tests: Depend on it.
25726         * modules/wctype-c++-tests: New file, extracted from
25727         modules/wctype-tests.
25728         * modules/wctype-tests: Depend on it.
25729         Reported by Simon Josefsson.
25730
25731 2010-03-28  Bruno Haible  <bruno@clisp.org>
25732
25733         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
25734         * gnulib-tool (func_exists_module): New function, extracted from
25735         func_verify_module.
25736         (func_verify_module): Use it.
25737         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
25738         'foo' only if 'foo' exists.
25739         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
25740         module.
25741
25742 2010-03-28  Bruno Haible  <bruno@clisp.org>
25743
25744         gnulib-tool: Add support for special categories of tests.
25745         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
25746         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
25747         (func_usage): Document them.
25748         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
25749         inc_unportable_tests, inc_all_tests): New variables.
25750         (func_acceptable): Consider these variables.
25751         (func_modules_transitive_closure): Make it work when the 'Status' field
25752         consists of multiple words.
25753         (func_import): Store and restore the values of inc_cxx_tests,
25754         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
25755         inc_all_tests in gnulib-comp.m4.
25756         (func_create_testdir): Set inc_all_tests to true.
25757         * doc/gnulib.texi (Extra tests modules): New section.
25758         Suggested by Jim Meyering.
25759
25760 2010-03-28  Bruno Haible  <bruno@clisp.org>
25761
25762         ansi-c++-opt: Allow turning off the C++ build by default.
25763         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
25764         gl_CXX_CHOICE_DEFAULT_NO is defined.
25765         Requested by Eric Blake.
25766
25767 2010-03-28  Bruno Haible  <bruno@clisp.org>
25768
25769         unistd: Avoid #define replacements in C++ mode.
25770         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
25771         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
25772         setsockopt, shutdown, select): In C++, attach a warning to the function
25773         if possible, rather than #defining the symbol to a dysfunctional alias.
25774         Reported by John W. Eaton <jwe@gnu.org>.
25775
25776 2010-03-28  Bruno Haible  <bruno@clisp.org>
25777
25778         Fix link errors on mingw.
25779         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
25780         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
25781         $(LIBSOCKET).
25782         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
25783         $(LIBSOCKET).
25784
25785 2010-03-28  Bruno Haible  <bruno@clisp.org>
25786             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25787
25788         lib-ignore: Determine different options for different compilers.
25789         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
25790         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
25791         Add comments.
25792         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
25793         * NEWS: Mention the change.
25794
25795 2010-03-27  Bruno Haible  <bruno@clisp.org>
25796
25797         Remove unused GNULIB_XYZ macro definitions.
25798         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
25799         * modules/fseek (configure.ac): Likewise.
25800         * modules/ioctl (configure.ac): Likewise.
25801         * modules/open (configure.ac): Likewise.
25802         * modules/stdlib-safer (configure.ac): Likewise.
25803
25804 2010-03-27  Bruno Haible  <bruno@clisp.org>
25805
25806         Add a remark about certain modules.
25807         * modules/malloc (Comment): New section.
25808         * modules/realloc (Comment): Likewise.
25809         * modules/sigpipe (Comment): Likewise.
25810
25811 2010-03-27  Bruno Haible  <bruno@clisp.org>
25812
25813         Resolve conflict between the two kinds of module indicators.
25814         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
25815         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
25816         * modules/canonicalize (configure.ac): Invoke
25817         gl_MODULE_INDICATOR_FOR_TESTS.
25818         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
25819         GNULIB_XYZ.
25820         * tests/test-dirent-c++.cc: Likewise.
25821         * tests/test-dirent-safer.c: Likewise.
25822         * tests/test-dup2.c: Likewise.
25823         * tests/test-fchdir.c: Likewise.
25824         * tests/test-fcntl-h-c++.cc: Likewise.
25825         * tests/test-getopt.c: Likewise.
25826         * tests/test-getopt.h: Likewise.
25827         * tests/test-langinfo-c++.cc: Likewise.
25828         * tests/test-locale-c++.cc: Likewise.
25829         * tests/test-math-c++.cc: Likewise.
25830         * tests/test-pty-c++.cc: Likewise.
25831         * tests/test-search-c++.cc: Likewise.
25832         * tests/test-signal-c++.cc: Likewise.
25833         * tests/test-spawn-c++.cc: Likewise.
25834         * tests/test-stdio-c++.cc: Likewise.
25835         * tests/test-stdlib-c++.cc: Likewise.
25836         * tests/test-string-c++.cc: Likewise.
25837         * tests/test-sys_ioctl-c++.cc: Likewise.
25838         * tests/test-sys_select-c++.cc: Likewise.
25839         * tests/test-sys_socket-c++.cc: Likewise.
25840         * tests/test-sys_stat-c++.cc: Likewise.
25841         * tests/test-sys_time-c++.cc: Likewise.
25842         * tests/test-time-c++.cc: Likewise.
25843         * tests/test-unistd-c++.cc: Likewise.
25844         * tests/test-wchar-c++.cc: Likewise.
25845         * tests/uninorm/test-u8-nfc.c: Likewise.
25846         * tests/uninorm/test-u8-nfd.c: Likewise.
25847         * tests/uninorm/test-u8-nfkc.c: Likewise.
25848         * tests/uninorm/test-u8-nfkd.c: Likewise.
25849         * tests/uninorm/test-u16-nfc.c: Likewise.
25850         * tests/uninorm/test-u16-nfd.c: Likewise.
25851         * tests/uninorm/test-u16-nfkc.c: Likewise.
25852         * tests/uninorm/test-u16-nfkd.c: Likewise.
25853         * tests/uninorm/test-u32-nfc.c: Likewise.
25854         * tests/uninorm/test-u32-nfc-big.c: Likewise.
25855         * tests/uninorm/test-u32-nfd.c: Likewise.
25856         * tests/uninorm/test-u32-nfd-big.c: Likewise.
25857         * tests/uninorm/test-u32-nfkc.c: Likewise.
25858         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
25859         * tests/uninorm/test-u32-nfkd.c: Likewise.
25860         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
25861         * tests/uninorm/test-u32-normalize-big.c: Likewise.
25862
25863 2010-03-27  Bruno Haible  <bruno@clisp.org>
25864
25865         Distinguish two kinds of module indicators.
25866         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
25867         gl_MODULE_INDICATOR.
25868         (gl_MODULE_INDICATOR): New macro.
25869         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
25870         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
25871         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25872         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25873         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25874         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25875         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25876         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25877         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25878         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25879         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25880         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25881         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25882         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25883         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25884         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25885         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25886         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25887         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25888         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25889         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25890         * modules/cloexec (configure.ac): Likewise.
25891         * modules/getopt-gnu (configure.ac): Likewise.
25892         * modules/uninorm/u8-normalize (configure.ac): Likewise.
25893         * modules/uninorm/u16-normalize (configure.ac): Likewise.
25894         * modules/uninorm/u32-normalize (configure.ac): Likewise.
25895         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
25896
25897 2010-03-27  Bruno Haible  <bruno@clisp.org>
25898
25899         New module description field 'Comment'.
25900         * gnulib-tool: New option --extract-comment.
25901         (func_usage): Document it.
25902         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
25903         (func_get_comment): New function.
25904         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
25905
25906 2010-03-27  Bruno Haible  <bruno@clisp.org>
25907
25908         Addendum to 2010-02-07 commit.
25909         * gnulib-tool (func_usage): Document --extract-applicability option.
25910
25911 2010-03-27  Bruno Haible  <bruno@clisp.org>
25912
25913         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
25914         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
25915         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
25916         rather than link errors.
25917
25918 2010-03-27  Bruno Haible  <bruno@clisp.org>
25919
25920         Avoid side effects from tests-related modules on the compilation of lib.
25921         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
25922         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
25923         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
25924         parameter. Emit into AM_CPPFLAGS a definition of the designated C
25925         macro.
25926         (func_import): Define a witness macro. Assign it a value that depends
25927         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
25928         tests-related modules.
25929         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
25930         Reported by Jim Meyering.
25931
25932 2010-03-27  Bruno Haible  <bruno@clisp.org>
25933
25934         Factorize common .m4 code.
25935         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
25936         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
25937         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
25938         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
25939         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
25940         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
25941         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
25942         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
25943         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
25944         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
25945         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
25946         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
25947         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
25948         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
25949         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
25950         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
25951         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
25952         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
25953         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
25954         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
25955         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
25956         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
25957         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
25958         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
25959         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
25960         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
25961         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
25962         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
25963         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
25964         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
25965         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
25966         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
25967
25968 2010-03-27  Bruno Haible  <bruno@clisp.org>
25969
25970         Fix a compilation error on Cygwin with g++ >= 4.3.
25971         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
25972         if it is undefined or if we alias it to chmod.
25973         (lstat): Don't warn about the use of this function if it is undefined
25974         or if we alias it to stat.
25975         Reported by Simon Josefsson.
25976
25977 2010-03-27  Bruno Haible  <bruno@clisp.org>
25978
25979         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
25980         * modules/getlogin (configure.ac): Update.
25981
25982         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
25983         * modules/getlogin_r (configure.ac): Update.
25984
25985         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
25986         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
25987         * modules/inet_ntop (configure.ac): Update.
25988
25989         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
25990         * modules/inet_pton (configure.ac): Update.
25991
25992         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
25993         * modules/mbslen (configure.ac): Update.
25994
25995         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
25996         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
25997         * modules/forkpty (configure.ac): Update.
25998         * modules/openpty (configure.ac): Update.
25999
26000 2010-03-26  Simon Josefsson  <simon@josefsson.org>
26001
26002         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
26003         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
26004
26005 2010-03-25  Eric Blake  <eblake@redhat.com>
26006
26007         maint: use pragma consistently across replacement headers
26008         * lib/ctype.in.h (system_header): Hoist for consistent placement.
26009         * lib/dirent.in.h (system_header): Likewise.
26010         * lib/errno.in.h (system_header): Likewise.
26011         * lib/float.in.h (system_header): Likewise.
26012         * lib/getopt.in.h (system_header): Likewise.
26013         * lib/iconv.in.h (system_header): Likewise.
26014         * lib/inttypes.in.h (system_header): Likewise.
26015         * lib/langinfo.in.h (system_header): Likewise.
26016         * lib/locale.in.h (system_header): Likewise.
26017         * lib/math.in.h (system_header): Likewise.
26018         * lib/netdb.in.h (system_header): Likewise.
26019         * lib/netinet_in.in.h (system_header): Likewise.
26020         * lib/pty.in.h (system_header): Likewise.
26021         * lib/sched.in.h (system_header): Likewise.
26022         * lib/se-selinux.in.h (system_header): Likewise.
26023         * lib/search.in.h (system_header): Likewise.
26024         * lib/spawn.in.h (system_header): Likewise.
26025         * lib/stdarg.in.h (system_header): Likewise.
26026         * lib/stdint.in.h (system_header): Likewise.
26027         * lib/string.in.h (system_header): Likewise.
26028         * lib/strings.in.h (system_header): Likewise.
26029         * lib/sys_file.in.h (system_header): Likewise.
26030         * lib/sys_ioctl.in.h (system_header): Likewise.
26031         * lib/sys_socket.in.h (system_header): Likewise.
26032         * lib/sys_times.in.h (system_header): Likewise.
26033         * lib/sys_utsname.in.h (system_header): Likewise.
26034         * lib/sys_wait.in.h (system_header): Likewise.
26035         * lib/sysexits.in.h (system_header): Likewise.
26036         * lib/unistd.in.h (system_header): Likewise.
26037         * lib/wctype.in.h (system_header): Likewise.
26038
26039         arpa/inet: fix mingw compilation warning
26040         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
26041         Reported by Matthew Bolte.
26042
26043 2010-03-25  Bruno Haible  <bruno@clisp.org>
26044
26045         Avoid collision between gnulib wrapper and libintl wrapper.
26046         * lib/printf.c (printf): Don't define if a printf wrapper is already
26047         defined in intl/printf.c.
26048         Reported by Michel Boaventura <michel@michelboaventura.com>.
26049
26050 2010-03-25  Bruno Haible  <bruno@clisp.org>
26051
26052         Use ANSI C.
26053         * lib/readutmp.h (getutent): Provide ANSI C prototype.
26054
26055 2010-03-25  Bruno Haible  <bruno@clisp.org>
26056
26057         Minor formatting changes.
26058         * lib/acosl.c: Insert space before function argument list.
26059         * lib/argz.c: Likewise.
26060         * lib/asinl.c: Likewise.
26061         * lib/expl.c: Likewise.
26062         * lib/gen-uni-tables.c: Likewise.
26063         * lib/gettext.h: Likewise.
26064         * lib/glthread/lock.h: Likewise.
26065         * lib/tanl.c: Likewise.
26066         * lib/uniname/uniname.c: Likewise.
26067         * tests/test-idpriv-drop.c: Likewise.
26068         * tests/test-idpriv-droptemp.c: Likewise.
26069         * tests/test-lock.c: Likewise.
26070         * tests/test-tls.c: Likewise.
26071         * lib/argp-help.c: Insert space before function-like macro argument
26072         list.
26073         * lib/memcmp.c: Likewise.
26074         * tests/test-base64.c: Likewise.
26075         * lib/localename.c: Insert space before sizeof's argument list.
26076         * lib/safe-alloc.h: Likewise.
26077         * lib/file-set.h: Insert space before macro argument list.
26078         * tests/test-argp.c: Likewise.
26079         * lib/argp-namefrob.h: Insert space before function parameter list.
26080         * lib/getaddrinfo.c: Likewise.
26081         * lib/netdb.in.h: Likewise.
26082         * lib/parse-duration.h: Likewise.
26083         * lib/parse-duration.c: Likewise.
26084         * lib/poll.c: Likewise.
26085         * lib/select.c: Likewise.
26086         * lib/trim.h: Likewise.
26087         * tests/test-usleep.c: Likewise.
26088         * lib/ldexpl.c: Insert space before function parameter list and before
26089         function argument list.
26090         * lib/logl.c: Likewise.
26091         * lib/sqrtl.c: Likewise.
26092         * lib/trim.c: Likewise.
26093         * lib/cosl.c: Use GNU style indentation. Insert space before function
26094         argument list.
26095         * lib/sinl.c: Likewise.
26096         * lib/tsearch.c: Insert space after 'for'.
26097         Reported by Jim Meyering.
26098
26099 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
26100
26101         * maint.mk (sc_Wundef_boolean): Check for the presence of the
26102         config header before grepping, as it's not present before
26103         autoreconf/configure are run.  Reported by Simon Josefsson.
26104
26105 2010-03-23  Bruno Haible  <bruno@clisp.org>
26106
26107         pt_chown: Make it work with automake < 1.11.
26108         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
26109         Reported by Simon Josefsson.
26110
26111 2010-03-23  Bruno Haible  <bruno@clisp.org>
26112
26113         pt_chown: Don't depend on GPLed modules.
26114         * lib/pt_chown.c: Don't include idpriv.h.
26115         (main): Don't drop privileges.
26116         * modules/pt_chown (Depends-on): Remove idpriv-drop.
26117         Reported by Simon Josefsson.
26118
26119 2010-03-24  Simon Josefsson  <simon@josefsson.org>
26120
26121         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
26122         suggestions from karl@freefriends.org (Karl Berry).
26123
26124 2010-03-22  Eric Blake  <eblake@redhat.com>
26125
26126         gethostname: further tweaks
26127         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
26128         are overriding gethostname.
26129         Suggested by Bruno Haible.
26130
26131 2010-03-21  Bruno Haible  <bruno@clisp.org>
26132
26133         Fix comments.
26134         * lib/forkpty.c (rpl_forkpty): Fix comment.
26135         * lib/openpty.c (rpl_openpty): Likewise.
26136         Reported by Eric Blake.
26137
26138 2010-03-22  Eric Blake  <eblake@redhat.com>
26139
26140         gethostname: fix build on mingw
26141         * lib/unistd.in.h (includes): Work around fact that mingw
26142         <winsock2.h> re-includes <unistd.h>, by avoiding any
26143         redeclarations if we are being included by <winsock2.h>.
26144         Reported by Matthias Bolte.
26145
26146 2010-03-21  Bruno Haible  <bruno@clisp.org>
26147
26148         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
26149         * lib/forkpty.c (forkpty): New replacement function, from glibc with
26150         modifications.
26151         * lib/pty.in.h (forkpty): Update declaration. Add comments.
26152         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
26153         provide the replacement.
26154         * modules/forkpty (Depends-on): Add openpty, login_tty.
26155         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
26156         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
26157         * doc/glibc-functions/forkpty.texi: More supported platforms.
26158         * config/srclist.txt: Add forkpty.c (commented).
26159
26160 2010-03-21  Bruno Haible  <bruno@clisp.org>
26161
26162         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
26163         (Makefile.am): Verify that PTY_LIB is defined.
26164
26165         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
26166
26167 2010-03-21  Bruno Haible  <bruno@clisp.org>
26168
26169         Tests for module 'login_tty'.
26170         * modules/login_tty-tests: New file.
26171         * tests/test-login_tty.c: New file.
26172
26173         New module 'login_tty'.
26174         * lib/login_tty.c: New file.
26175         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
26176         * modules/login_tty: New file.
26177         * doc/glibc-functions/login_tty.texi: Mention the new module.
26178
26179 2010-03-21  Bruno Haible  <bruno@clisp.org>
26180
26181         login_tty: Documentation.
26182         * doc/glibc-functions/login_tty.texi: New file.
26183         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
26184
26185 2010-03-21  Bruno Haible  <bruno@clisp.org>
26186
26187         pty: Consistent macro naming.
26188         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
26189         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
26190         * modules/pty (configure.ac): Update.
26191
26192 2010-03-21  Bruno Haible  <bruno@clisp.org>
26193
26194         Tests for openpty: Make stricter.
26195         * tests/test-openpty.c (main): Add test of canonical processing and
26196         erase.
26197         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
26198
26199         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
26200         * lib/openpty.c (openpty): New replacement function.
26201         * lib/pty.in.h: Include <termios.h>.
26202         (openpty): Update declaration. Add comments.
26203         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
26204         is not declared, arrange to provide the replacement. Check for _getpty
26205         and posix_openpt.
26206         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
26207         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
26208         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
26209         * modules/pty-tests (test_pty_c___LDADD): New variable.
26210         * doc/glibc-functions/openpty.texi: More supported platforms.
26211
26212 2010-03-21  Bruno Haible  <bruno@clisp.org>
26213
26214         setenv: Tweaks.
26215         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
26216         the test program.
26217         * doc/posix-functions/setenv.texi: Update platforms list.
26218
26219 2010-03-21  Bruno Haible  <bruno@clisp.org>
26220
26221         New module 'unlockpt'.
26222         * lib/unlockpt.c: New file, from glibc with modifications.
26223         * m4/unlockpt.m4: New file.
26224         * modules/unlockpt: New file.
26225         * lib/stdlib.in.h (unlockpt): New declaration.
26226         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
26227         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
26228         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
26229         HAVE_UNLOCKPT.
26230         * doc/posix-functions/unlockpt.texi: Mention the new module.
26231         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
26232         * config/srclist.txt: Add unlockpt.c (commented).
26233
26234 2010-03-21  Jim Meyering  <meyering@redhat.com>
26235
26236         maint.mk: prohibit inclusion of "intprops.h" without use
26237         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
26238
26239 2010-03-21  Bruno Haible  <bruno@clisp.org>
26240
26241         New module 'grantpt'.
26242         * lib/grantpt.c: New file, from glibc with modifications.
26243         * m4/grantpt.m4: New file.
26244         * modules/grantpt: New file.
26245         * lib/stdlib.in.h (grantpt): New declaration.
26246         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
26247         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
26248         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
26249         HAVE_GRANTPT.
26250         * doc/posix-functions/grantpt.texi: Mention the new module.
26251         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
26252         * config/srclist.txt: Add grantpt.c (commented).
26253
26254 2010-03-21  Bruno Haible  <bruno@clisp.org>
26255
26256         New module 'pt_chown'.
26257         * lib/pt_chown.c: New file, from glibc with modifications.
26258         * lib/pty-private.h: New file, from glibc with modifications.
26259         * modules/pt_chown: New file.
26260         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
26261
26262 2010-03-21  Bruno Haible  <bruno@clisp.org>
26263
26264         Tests for module 'ptsname'.
26265         * modules/ptsname-tests: New file.
26266         * tests/test-ptsname.c: New file.
26267
26268         New module 'ptsname'.
26269         * lib/ptsname.c: New file, from glibc with modifications.
26270         * m4/ptsname.m4: New file.
26271         * modules/ptsname: New file.
26272         * lib/stdlib.in.h (ptsname): New declaration.
26273         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
26274         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
26275         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
26276         HAVE_PTSNAME.
26277         * doc/posix-functions/ptsname.texi: Mention the new module.
26278         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
26279         * config/srclist.txt: Add ptsname.c (commented).
26280
26281 2010-03-21  Bruno Haible  <bruno@clisp.org>
26282
26283         Tests for module 'ttyname_r'.
26284         * modules/ttyname_r-tests: New file.
26285         * tests/test-ttyname_r.c: New file.
26286
26287         New module 'ttyname_r'.
26288         * lib/ttyname_r.c: New file.
26289         * m4/ttyname_r.m4: New file.
26290         * modules/ttyname_r: New file.
26291         * lib/unistd.in.h (ttyname_r): New declaration.
26292         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
26293         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
26294         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
26295         HAVE_TTYNAME_R.
26296         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
26297         * doc/posix-functions/ttyname_r.texi: Mention the new module.
26298
26299 2010-03-20  Bruno Haible  <bruno@clisp.org>
26300
26301         signal: Undefine macro definitions in C++ mode.
26302         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
26303         sigfillset): Undefine macro definitions from the system header in C++
26304         mode.
26305         Reported by John W. Eaton <jwe@gnu.org>.
26306
26307 2010-03-20  Bruno Haible  <bruno@clisp.org>
26308
26309         Ensure no #include statements inside extern "C" { ... }.
26310         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
26311         contain #include statements.
26312         * lib/time.in.h: Likewise.
26313
26314 2010-03-20  Bruno Haible  <bruno@clisp.org>
26315
26316         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
26317         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
26318         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
26319         Reported by John W. Eaton <jwe@gnu.org>.
26320
26321 2010-03-20  Bruno Haible  <bruno@clisp.org>
26322
26323         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
26324         Reported by Jim Meyering.
26325
26326 2010-03-20  Bruno Haible  <bruno@clisp.org>
26327
26328         pipe: Set errno upon failure.
26329         * lib/pipe.h: Specify that when -1 is returned, errno is set.
26330         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
26331         errno value in error message.
26332
26333 2010-03-20  Bruno Haible  <bruno@clisp.org>
26334             Jim Meyering  <meyering@redhat.com>
26335
26336         lchown: Avoid "unused variable" warning.
26337         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
26338
26339 2010-03-20  Bruno Haible  <bruno@clisp.org>
26340
26341         Work around unlink() bug on MacOS X 10.5.6.
26342         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
26343         attempting to unlink a parent directory.
26344         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
26345         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
26346         activate for the replacement function.
26347         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
26348
26349 2010-03-20  Bruno Haible  <bruno@clisp.org>
26350
26351         Fix link errors on Solaris 8.
26352         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
26353         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
26354
26355 2010-03-19  Jim Meyering  <meyering@redhat.com>
26356
26357         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
26358         The _LIBC implementation of build_range_exp correctly honors the
26359         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
26360         However, the non-_LIBC implementation would ignore that syntax-bit
26361         flag and return REG_ERANGE unconditionally.
26362         This change makes it honor that flag.
26363         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
26364         Make two pointer parameters "const".
26365         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
26366         (parse_bracket_exp): Update caller.
26367
26368         regex.m4: correct the reversed range endpoint ([b-a]) test
26369         * m4/regex.m4: When requiring that [b-a] evoke failure,
26370         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
26371         test pass once again for x86-based systems.
26372
26373 2010-03-19  Bruno Haible  <bruno@clisp.org>
26374
26375         scandir: Fix link error on Solaris 8.
26376         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
26377         macros.
26378
26379 2010-03-19  Bruno Haible  <bruno@clisp.org>
26380
26381         getusershell: Fix documentation.
26382         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
26383         module.
26384         * doc/glibc-functions/setusershell.texi: Likewise.
26385
26386         getusershell: Provide declaration, missing on Solaris 9.
26387         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
26388         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
26389         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
26390         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
26391         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26392         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
26393         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
26394         HAVE_GETUSERSHELL.
26395         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
26396
26397 2010-03-19  Bruno Haible  <bruno@clisp.org>
26398
26399         wctype: Provide iswblank function.
26400         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
26401         exists and is fine.
26402         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
26403         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
26404         * tests/test-wctype.c (main): Re-enable the iswblank tests.
26405         * doc/posix-functions/iswblank.texi: Update.
26406
26407 2010-03-19  Bruno Haible  <bruno@clisp.org>
26408
26409         Tests of module 'pty' in C++ mode.
26410         * modules/pty-tests: New file.
26411         * tests/test-pty-c++.cc: New file.
26412         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26413
26414 2010-03-19  Eric Blake  <eblake@redhat.com>
26415
26416         logb: fix documentation
26417         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
26418         1.5 declaration bug.
26419
26420         forkpty, openpty: prefer glibc's const-safe prototype
26421         * lib/forkpty.c (rpl_forkpty): New file.
26422         * lib/openpty.c (rpl_openpty): Likewise.
26423         * modules/forkpty (Files): Distribute it.
26424         * modules/openpty (Files): Likewise.
26425         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
26426         check...
26427         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
26428         replacement for for non-const BSD signature.
26429         * modules/pty (Makefile.am): Substitute witnesses.
26430         * lib/pty.in.h (forkpty, openpty): Declare replacements.
26431         * tests/test-forkpty.c: Update signature check.
26432         * tests/test-openpty.c: Likewise.
26433         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
26434         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26435
26436         forkpty, openpty: split functions into new modules
26437         * modules/pty (Makefile.am): Substitute new witnesses.
26438         (Libraries): Move library detection...
26439         * modules/forkpty: ...into new module.
26440         * modules/openpty: Another new module.
26441         * modules/pty-tests: Rename and split...
26442         * modules/forkpty-tests: ...to this...
26443         * modules/openpty-tests: ...and this.
26444         * tests/test-pty.c: Rename and split...
26445         * tests/test-forkpty.c: ...to this...
26446         * tests/test-openpty.c: ...and this.
26447         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
26448         (gl_PTY): Split library searching...
26449         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
26450         (gl_FORKPTY, gl_OPENPTY): New macros.
26451         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
26452         * NEWS: Mention the split.
26453         * MODULES.html.sh (Misc): Document the modules.
26454         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
26455         * doc/glibc-functions/openpty.texi (openpty): Likewise.
26456
26457         pty: improve replacement header
26458         * lib/pty.in.h: New file.
26459         * modules/pty (Files): Ship it.
26460         (Makefile.am): Always build replacement.
26461         * m4/pty.m4: Rename...
26462         * m4/pty_h.m4: ...to this.
26463         (gl_PTY): Modernize setting of witness macros; update check of
26464         forkpty to take proper advantage of cache.
26465         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
26466
26467         getopt: avoid compiler warning
26468         * lib/getopt.c (attribute_hidden): Remove unused macro.
26469
26470 2010-03-18  Bruno Haible  <bruno@clisp.org>
26471
26472         Fix link errors on Solaris 8.
26473         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
26474         * modules/search-tests (test_search_c___LDADD): Likewise.
26475         * modules/signal-tests (test_signal_c___LDADD): Likewise.
26476         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
26477         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
26478         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
26479         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
26480         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
26481         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
26482
26483 2010-03-18  Bruno Haible  <bruno@clisp.org>
26484
26485         Fix bug introduced on 2010-03-14.
26486         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
26487         (gl_SPAWN_H): Require it.
26488         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
26489         Reported by Simon Josefsson.
26490
26491 2010-03-18  Bruno Haible  <bruno@clisp.org>
26492
26493         Fix typo introduced on 2009-12-31.
26494         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
26495         posix_spawn_file_actions_adddup2.
26496
26497 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
26498         and Eric Blake  <eblake@redhat.com>
26499
26500         test-vc-list-files-git: make more robust
26501         * tests/test-vc-list-files-git.sh: Unset problematic environment
26502         variables.  Chain commands together.
26503
26504 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
26505
26506         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
26507         `AC_CHECK_DECL' invocation.
26508
26509 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
26510
26511         * lib/inttostr.c (inttostr): Make sure the invocation of verify
26512         appears before executable statements. Suggested by Petr Sumbera
26513         <Petr.Sumbera@Sun.COM>.
26514
26515 2010-03-14  Bruno Haible  <bruno@clisp.org>
26516
26517         * tests/test-flock.c (test_exclusive): Comment out a test that causes
26518         portability problems. Instead use a simpler test.
26519         (main): Check that invalid arguments are rejected only on Linux.
26520
26521 2010-03-14  Bruno Haible  <bruno@clisp.org>
26522
26523         Fix bug introduced on 2009-12-31.
26524         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
26525         gl_PREREQ_SYS_H_WINSOCK2 always.
26526         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
26527         SYS_SOCKET_H variable.
26528         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
26529         Update comments.
26530         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
26531         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26532         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26533         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
26534         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
26535
26536 2010-03-14  Bruno Haible  <bruno@clisp.org>
26537
26538         Fix values returned by sinl, cosl.
26539         * lib/trigl.h: Add specification comments.
26540         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
26541         that combines the values from the precomputed table with the values of
26542         the Chebyshev polynomials.
26543
26544 2010-03-14  Bruno Haible  <bruno@clisp.org>
26545
26546         Fix compilation error when modules 'posix_spawn[p]' are not used.
26547         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
26548         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
26549
26550 2010-03-14  Bruno Haible  <bruno@clisp.org>
26551
26552         Fix compilation error on mingw when module 'time_r' is not used.
26553         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
26554         is 1.
26555         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
26556         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26557         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
26558         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
26559
26560 2010-03-14  Bruno Haible  <bruno@clisp.org>
26561
26562         Fix compilation error with Sun C.
26563         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
26564         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
26565         instead of GCC specific ULONG_LONG_MAX.
26566         * lib/xstrtoll.c: Likewise.
26567         * lib/xstrtoull.c: Likewise.
26568
26569 2010-03-13  Bruno Haible  <bruno@clisp.org>
26570
26571         Allow the user to disable C++ code and tests.
26572         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
26573         (gl_PROG_ANSI_CXX): Require it.
26574
26575 2010-03-13  Bruno Haible  <bruno@clisp.org>
26576
26577         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
26578         cases.
26579
26580 2010-03-13  Bruno Haible  <bruno@clisp.org>
26581
26582         Test that gnulib does not break the standard C++ headers.
26583         * tests/test-locale-c++2.cc: New file.
26584         * modules/locale-tests (Files): Add it.
26585         (Makefile.am): Compile it for test-locale-c++.
26586         * tests/test-math-c++2.cc: New file.
26587         * modules/math-tests (Files): Add it.
26588         (Makefile.am): Compile it for test-math-c++.
26589         * tests/test-signal-c++2.cc: New file.
26590         * modules/signal-tests (Files): Add it.
26591         (Makefile.am): Compile it for test-signal-c++.
26592         * tests/test-stdio-c++2.cc: New file.
26593         * modules/stdio-tests (Files): Add it.
26594         (Makefile.am): Compile it for test-stdio-c++.
26595         * tests/test-stdlib-c++2.cc: New file.
26596         * modules/stdlib-tests (Files): Add it.
26597         (Makefile.am): Compile it for test-stdlib-c++.
26598         * tests/test-string-c++2.cc: New file.
26599         * modules/string-tests (Files): Add it.
26600         (Makefile.am): Compile it for test-string-c++.
26601         * tests/test-time-c++2.cc: New file.
26602         * modules/time-tests (Files): Add it.
26603         (Makefile.am): Compile it for test-time-c++.
26604         Reported by John W. Eaton <jwe@gnu.org>.
26605
26606 2010-03-13  Bruno Haible  <bruno@clisp.org>
26607
26608         * gnulib-tool (func_usage): Clarify which options are available for
26609         --create-testdir and --create-megatestdir.
26610
26611 2010-03-13  Bruno Haible  <bruno@clisp.org>
26612
26613         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
26614         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
26615         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
26616         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
26617         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
26618         when appropriate.
26619         Reported by Jim Meyering.
26620
26621 2010-03-12  Simon Josefsson  <simon@josefsson.org>
26622
26623         * gnulib-tool (func_import): Explain origin of code.
26624
26625 2010-03-12  Bruno Haible  <bruno@clisp.org>
26626
26627         Fix problem with automake's definition of CXXLINK.
26628         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
26629         Reported by Simon Josefsson and Ludovic Courtès.
26630
26631 2010-03-12  Bruno Haible  <bruno@clisp.org>
26632
26633         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
26634         stable releases.
26635
26636 2010-03-11  Bruno Haible  <bruno@clisp.org>
26637
26638         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
26639         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
26640         whether the system provides one variant or multiple variants of the
26641         function.
26642         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
26643         C++ compilers.
26644         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
26645         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
26646         Reported by Jim Meyering.
26647
26648 2010-03-09  Simon Josefsson  <simon@josefsson.org>
26649
26650         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
26651
26652 2010-03-08  Bruno Haible  <bruno@clisp.org>
26653
26654         gnulib-tool: Add support for --libtool in --create-testdir.
26655         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
26656         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
26657
26658 2010-03-08  Eric Blake  <eblake@redhat.com>
26659
26660         gnulib-tool.texi: mention possibility of git submodule
26661         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
26662         submodules.
26663         * doc/.gitignore: Ignore another generated file.
26664
26665 2010-03-08  Karl Berry  <karl@gnu.org>
26666
26667         * doc/gnulib-tool.texi (VCS Issues): Mention third option
26668         of committing gnulib files while skipping others.
26669
26670 2010-03-07  Bruno Haible  <bruno@clisp.org>
26671
26672         Tests of module 'wctype' in C++ mode.
26673         * tests/test-wctype-c++.cc: New file.
26674         * modules/wctype-tests (Files): Add it and tests/signature.h.
26675         (Depends-on): Add ansi-c++-opt.
26676         (Makefile.am): Arrange to compile and run test-wctype-c++.
26677
26678         Tests of module 'wchar' in C++ mode.
26679         * tests/test-wchar-c++.cc: New file.
26680         * modules/wchar-tests (Files): Add it and tests/signature.h.
26681         (Depends-on): Add ansi-c++-opt.
26682         (Makefile.am): Arrange to compile and run test-wchar-c++.
26683         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
26684         gl_MODULE_INDICATOR.
26685
26686         Tests of module 'unistd' in C++ mode.
26687         * tests/test-unistd-c++.cc: New file.
26688         * modules/unistd-tests (Files): Add it and tests/signature.h.
26689         (Depends-on): Add ansi-c++-opt.
26690         (Makefile.am): Arrange to compile and run test-unistd-c++.
26691         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
26692         gl_MODULE_INDICATOR.
26693
26694         Tests of module 'time' in C++ mode.
26695         * tests/test-time-c++.cc: New file.
26696         * modules/time-tests (Files): Add it and tests/signature.h.
26697         (Depends-on): Add ansi-c++-opt.
26698         (Makefile.am): Arrange to compile and run test-time-c++.
26699         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26700
26701         Tests of module 'sys_time' in C++ mode.
26702         * tests/test-sys_time-c++.cc: New file.
26703         * modules/sys_time-tests (Files): Add it and tests/signature.h.
26704         (Depends-on): Add ansi-c++-opt.
26705         (Makefile.am): Arrange to compile and run test-sys_time-c++.
26706         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
26707         gl_MODULE_INDICATOR.
26708
26709         Tests of module 'sys_stat' in C++ mode.
26710         * tests/test-sys_stat-c++.cc: New file.
26711         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
26712         (Depends-on): Add ansi-c++-opt.
26713         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
26714         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
26715         gl_MODULE_INDICATOR.
26716
26717         Tests of module 'sys_socket' in C++ mode.
26718         * tests/test-sys_socket-c++.cc: New file.
26719         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
26720         (Depends-on): Add ansi-c++-opt.
26721         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
26722         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
26723         gl_MODULE_INDICATOR.
26724
26725         Tests of module 'sys_select' in C++ mode.
26726         * tests/test-sys_select-c++.cc: New file.
26727         * modules/sys_select-tests (Files): Add it and tests/signature.h.
26728         (Depends-on): Add ansi-c++-opt.
26729         (Makefile.am): Arrange to compile and run test-sys_select-c++.
26730         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
26731         gl_MODULE_INDICATOR.
26732
26733         Tests of module 'sys_ioctl' in C++ mode.
26734         * tests/test-sys_ioctl-c++.cc: New file.
26735         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
26736         (Depends-on): Add ansi-c++-opt.
26737         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
26738         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
26739         gl_MODULE_INDICATOR.
26740
26741         Tests of module 'string' in C++ mode.
26742         * tests/test-string-c++.cc: New file.
26743         * modules/string-tests (Files): Add it and tests/signature.h.
26744         (Depends-on): Add ansi-c++-opt.
26745         (Makefile.am): Arrange to compile and run test-string-c++.
26746         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
26747         gl_MODULE_INDICATOR.
26748
26749         Tests of module 'stdlib' in C++ mode.
26750         * tests/test-stdlib-c++.cc: New file.
26751         * modules/stdlib-tests (Files): Add it and tests/signature.h.
26752         (Depends-on): Add ansi-c++-opt.
26753         (Makefile.am): Arrange to compile and run test-stdlib-c++.
26754         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
26755         gl_MODULE_INDICATOR.
26756
26757         Tests of module 'stdio' in C++ mode.
26758         * tests/test-stdio-c++.cc: New file.
26759         * modules/stdio-tests (Files): Add it and tests/signature.h.
26760         (Depends-on): Add ansi-c++-opt.
26761         (Makefile.am): Arrange to compile and run test-stdio-c++.
26762         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
26763         gl_MODULE_INDICATOR.
26764
26765         Tests of module 'spawn' in C++ mode.
26766         * tests/test-spawn-c++.cc: New file.
26767         * modules/spawn-tests (Files): Add it and tests/signature.h.
26768         (Depends-on): Add ansi-c++-opt.
26769         (Makefile.am): Arrange to compile and run test-spawn-c++.
26770         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
26771         gl_MODULE_INDICATOR.
26772
26773         Tests of module 'signal' in C++ mode.
26774         * tests/test-signal-c++.cc: New file.
26775         * modules/signal-tests (Files): Add it and tests/signature.h.
26776         (Depends-on): Add ansi-c++-opt.
26777         (Makefile.am): Arrange to compile and run test-signal-c++.
26778         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
26779         gl_MODULE_INDICATOR.
26780
26781         Tests of module 'search' in C++ mode.
26782         * tests/test-search-c++.cc: New file.
26783         * modules/search-tests (Files): Add it and tests/signature.h.
26784         (Depends-on): Add ansi-c++-opt.
26785         (Makefile.am): Arrange to compile and run test-search-c++.
26786         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
26787         gl_MODULE_INDICATOR.
26788
26789         Tests of module 'math' in C++ mode.
26790         * tests/test-math-c++.cc: New file.
26791         * modules/math-tests (Files): Add it and tests/signature.h.
26792         (Depends-on): Add ansi-c++-opt.
26793         (Makefile.am): Arrange to compile and run test-math-c++.
26794         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
26795
26796         Tests of module 'locale' in C++ mode.
26797         * tests/test-locale-c++.cc: New file.
26798         * modules/locale-tests (Files): Add it and tests/signature.h.
26799         (Depends-on): Add ansi-c++-opt.
26800         (Makefile.am): Arrange to compile and run test-locale-c++.
26801         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
26802         gl_MODULE_INDICATOR.
26803
26804         Tests of module 'langinfo' in C++ mode.
26805         * tests/test-langinfo-c++.cc: New file.
26806         * modules/langinfo-tests (Files): Add it and tests/signature.h.
26807         (Depends-on): Add ansi-c++-opt.
26808         (Makefile.am): Arrange to compile and run test-langinfo-c++.
26809         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
26810         gl_MODULE_INDICATOR.
26811
26812         Tests of module 'iconv-h' in C++ mode.
26813         * tests/test-iconv-h-c++.cc: New file.
26814         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
26815         (Depends-on): Add ansi-c++-opt.
26816         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
26817
26818         Tests of module 'glob' in C++ mode.
26819         * tests/test-glob-c++.cc: New file.
26820         * modules/glob-tests (Files): Add it.
26821         (Depends-on): Add ansi-c++-opt.
26822         (Makefile.am): Arrange to compile and run test-glob-c++.
26823
26824         Tests of module 'fcntl-h' in C++ mode.
26825         * tests/test-fcntl-h-c++.cc: New file.
26826         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
26827         (Depends-on): Add ansi-c++-opt.
26828         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
26829         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
26830         gl_MODULE_INDICATOR.
26831
26832         Tests of module 'dirent' in C++ mode.
26833         * tests/test-dirent-c++.cc: New file.
26834         * modules/dirent-tests (Files): Add it and tests/signature.h.
26835         (Depends-on): Add ansi-c++-opt.
26836         (Makefile.am): Arrange to compile and run test-dirent-c++.
26837         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26838         gl_MODULE_INDICATOR.
26839
26840         New module 'ansi-c++-opt'.
26841         * modules/ansi-c++-opt: New file.
26842         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
26843
26844         Document C++ namespace mode.
26845         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
26846
26847         wctype: Avoid #define replacements in C++ mode.
26848         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
26849         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
26850         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
26851         In C++, define a namespaced alias symbol.
26852         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
26853         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
26854         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
26855         rule.
26856
26857         wchar: Avoid #define replacements in C++ mode.
26858         * lib/wchar.in.h: Include c++defs.h.
26859         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
26860         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
26861         symbol.
26862         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
26863         * modules/wchar (Depends-on): Add c++defs.
26864         (Makefile.am): Update wchar.h rule.
26865
26866         unistd: Avoid #define replacements in C++ mode.
26867         * lib/unistd.in.h: Include c++defs.h.
26868         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
26869         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
26870         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
26871         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
26872         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
26873         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
26874         symbol.
26875         (environ): Update.
26876         * modules/unistd (Depends-on): Add c++defs.
26877         (Makefile.am): Update unistd.h rule.
26878
26879         time: Avoid #define replacements in C++ mode.
26880         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
26881         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
26882         define a namespaced alias symbol.
26883         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
26884         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
26885         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
26886         * modules/time (Depends-on): Add c++defs, warn-on-use.
26887         (Makefile.am): Update time.h rule.
26888         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
26889         * modules/nanosleep (configure.ac): Likewise.
26890         * modules/strptime (configure.ac): Likewise.
26891         * modules/timegm (configure.ac): Likewise.
26892
26893         sys_time: Avoid #define replacements in C++ mode.
26894         * lib/sys_time.in.h: Include c++defs.h.
26895         (gettimeofday): In C++, define a namespaced alias symbol.
26896         * modules/sys_time (Depends-on): Add c++defs.
26897         (Makefile.am): Update sys/time.h rule.
26898
26899         sys_stat: Avoid #define replacements in C++ mode.
26900         * lib/sys_stat.in.h: Include c++defs.h.
26901         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
26902         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
26903         namespaced alias symbol.
26904         In C++, define a namespaced alias symbol.
26905         * modules/sys_stat (Depends-on): Add c++defs.
26906         (Makefile.am): Update sys/stat.h rule.
26907
26908         sys_socket: Avoid #define replacements in C++ mode.
26909         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
26910         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
26911         definitions also when the system has a <sys/socket.h>.
26912         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26913         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
26914         In C++, define a namespaced alias symbol.
26915         * modules/sys_socket (Depends-on): Add c++defs.
26916         (Makefile.am): Update sys/socket.h rule.
26917
26918         sys_select: Avoid #define replacements in C++ mode.
26919         * lib/sys_select.in.h: Include c++defs.h. Enable the function
26920         definitions also when the system has a <sys/select.h>.
26921         (select): In C++, define a namespaced alias symbol.
26922         * modules/sys_select (Depends-on): Add c++defs.
26923         (Makefile.am): Update sys/select.h rule.
26924
26925         sys_ioctl: Avoid #define replacements in C++ mode.
26926         * lib/sys_ioctl.in.h: Include c++defs.h.
26927         (ioctl): In C++, define a namespaced alias symbol.
26928         * modules/sys_ioctl (Depends-on): Add c++defs.
26929         (Makefile.am): Update sys/ioctl.h rule.
26930
26931         string: Avoid #define replacements in C++ mode.
26932         * lib/string.in.h: Include c++defs.h.
26933         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
26934         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
26935         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
26936         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
26937         strsignal, strverscmp): In C++, define a namespaced alias symbol.
26938         * modules/string (Depends-on): Add c++defs.
26939         (Makefile.am): Update string.h rule.
26940
26941         stdlib: Avoid #define replacements in C++ mode.
26942         * lib/stdlib.in.h: Include c++defs.h.
26943         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
26944         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
26945         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
26946         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
26947         symbol.
26948         * modules/stdlib (Depends-on): Add c++defs.
26949         (Makefile.am): Update stdlib.h rule.
26950
26951         stdio: Avoid #define replacements in C++ mode.
26952         * lib/stdio.in.h: Include c++defs.h.
26953         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
26954         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
26955         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
26956         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
26957         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
26958         namespaced alias symbol.
26959         * modules/stdio (Depends-on): Add c++defs.
26960         (Makefile.am): Update stdio.h rule.
26961
26962         spawn: Avoid #define replacements in C++ mode.
26963         * lib/spawn.in.h: Include c++defs.h.
26964         (posix_spawn, posix_spawnp, posix_spawnattr_init,
26965         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
26966         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
26967         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
26968         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
26969         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
26970         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
26971         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
26972         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
26973         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
26974         In C++, define a namespaced alias symbol.
26975         * modules/spawn (Depends-on): Add c++defs.
26976         (Makefile.am): Update spawn.h rule.
26977
26978         signal: Avoid #define replacements in C++ mode.
26979         * lib/signal.in.h: Include c++defs.h.
26980         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
26981         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
26982         namespaced alias symbol.
26983         * modules/signal (Depends-on): Add c++defs.
26984         (Makefile.am): Update signal.h rule.
26985
26986         search: Avoid #define replacements in C++ mode.
26987         * lib/search.in.h: Include c++defs.h.
26988         (_gl_search_compar_fn, _gl_search_action_fn): New types.
26989         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
26990         symbol.
26991         * modules/search (Depends-on): Add c++defs.
26992         (Makefile.am): Update search.h rule.
26993
26994         math: Avoid #define replacements in C++ mode.
26995         * lib/math.in.h: Include c++defs.h.
26996         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
26997         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
26998         trunc, truncl): In C++, define a namespaced alias symbol.
26999         * modules/math (Depends-on): Add c++defs.
27000         (Makefile.am): Update math.h rule.
27001
27002         locale: Avoid #define replacements in C++ mode.
27003         * lib/locale.in.h: Include c++defs.h.
27004         (duplocale): In C++, define a namespaced alias symbol.
27005         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
27006         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
27007         * modules/locale (Depends-on): Add c++defs.
27008         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
27009
27010         langinfo: Avoid #define replacements in C++ mode.
27011         * lib/langinfo.in.h: Include c++defs.h.
27012         (nl_langinfo): In C++, define a namespaced alias symbol.
27013         * modules/langinfo (Depends-on): Add c++defs.
27014         (Makefile.am): Update langinfo.h rule.
27015
27016         iconv-h: Avoid #define replacements in C++ mode.
27017         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
27018         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
27019         symbol.
27020         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
27021         whenever iconv is present.
27022         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
27023         (Makefile.am): Update iconv.h rule.
27024
27025         glob: Avoid #define replacements in C++ mode.
27026         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
27027         (_gl_glob_errfunc_fn): New type.
27028         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
27029         symbol.
27030         * modules/glob (Depends-on): Add c++defs, warn-on-use.
27031         (Makefile.am): Update glob.h rule.
27032
27033         fcntl-h: Avoid #define replacements in C++ mode.
27034         * lib/fcntl.in.h: Include c++defs.h.
27035         (fcntl, open, openat): In C++, define a namespaced alias symbol.
27036         * modules/fcntl-h (Depends-on): Add c++defs.
27037         (Makefile.am): Update fcntl.h rule.
27038
27039         dirent: Avoid #define replacements in C++ mode.
27040         * lib/dirent.in.h: Include c++defs.h.
27041         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
27042         namespaced alias symbol.
27043         (dirfd): Update declaration.
27044         * modules/dirent (Depends-on): Add c++defs.
27045         (Makefile.am): Update dirent.h rule.
27046
27047         ctype: Make it usable in C++ code.
27048         * lib/ctype.in.h: Include c++defs.h.
27049         (isblank): Declare as extern "C".
27050         * modules/ctype (Depends-on): Add c++defs.
27051         (Makefile.am): Update ctype.h rule.
27052
27053         New module 'c++defs'.
27054         * modules/c++defs: New file.
27055         * build-aux/c++defs.h: New file.
27056         Reported by John W. Eaton <jwe@gnu.org>.
27057
27058 2010-03-07  Bruno Haible  <bruno@clisp.org>
27059
27060         logb: Provide missing declaration for Cygwin.
27061         * lib/math.in.h (logb): New declaration.
27062         * m4/logb.m4: New file.
27063         * modules/logb (Files): Add m4/logb.m4.
27064         (Depends-on): Add math.
27065         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
27066         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
27067         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
27068         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
27069         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
27070
27071 2010-03-07  Bruno Haible  <bruno@clisp.org>
27072
27073         Fix test-cond link error.
27074         * tests/test-cond.c: Include <stdio.h>.
27075
27076 2010-03-07  Bruno Haible  <bruno@clisp.org>
27077
27078         Fix test-dirent-safer link error.
27079         * modules/dirent-safer-tests (Makefile.am): Define
27080         test_dirent_safer_LDADD.
27081
27082 2010-03-07  Bruno Haible  <bruno@clisp.org>
27083
27084         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
27085         among default module list.
27086
27087 2010-03-07  Bruno Haible  <bruno@clisp.org>
27088
27089         Fix link error on platforms with GNU libiconv.
27090         * modules/unistr/u8-strcoll-tests (Makefile): Define
27091         test_u8_strcoll_LDADD.
27092         * modules/unistr/u16-strcoll-tests (Makefile): Define
27093         test_u16_strcoll_LDADD.
27094         * modules/unistr/u32-strcoll-tests (Makefile): Define
27095         test_u32_strcoll_LDADD.
27096
27097 2010-03-07  Bruno Haible  <bruno@clisp.org>
27098
27099         Use POSIX declarations for socket functions.
27100         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
27101         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
27102         rpl_sendto): Change declaration to match POSIX.
27103         * lib/connect.c (rpl_connect): Likewise.
27104         * lib/accept.c (rpl_accept): Likewise.
27105         * lib/bind.c (rpl_bind): Likewise.
27106         * lib/getpeername.c (rpl_getpeername): Likewise.
27107         * lib/getsockname.c (rpl_getsockname): Likewise.
27108         * lib/recv.c (rpl_recv): Likewise.
27109         * lib/send.c (rpl_send): Likewise.
27110         * lib/recvfrom.c (rpl_recvfrom): Likewise.
27111         * lib/sendto.c (rpl_sendto): Likewise.
27112
27113 2010-03-06  Bruno Haible  <bruno@clisp.org>
27114
27115         Clarify access, euidaccess, faccessat.
27116         * doc/posix-functions/faccessat.texi: Mention security problem under
27117         "Other problems", not "Portability problems".
27118         * doc/posix-functions/access.texi: Likewise. Mention a related security
27119         problem.
27120         * doc/glibc-functions/euidaccess.texi: Mention security problems.
27121         * lib/euidaccess.c: Add comments about platforms.
27122         * lib/unistd.in.h (access, euidaccess): Add warnings.
27123
27124 2010-03-07  Bruno Haible  <bruno@clisp.org>
27125
27126         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
27127         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
27128         (POSIX_SPAWN_SETSCHEDULER): Likewise.
27129         (POSIX_SPAWN_USEVFORK): Define in a way that works when
27130         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
27131         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
27132         declare when POSIX_SPAWN_SETSCHEDULER is zero.
27133         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
27134         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
27135         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
27136         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
27137         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
27138         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
27139         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
27140         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
27141         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
27142         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
27143         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
27144         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
27145         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
27146         Likewise.
27147         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
27148         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
27149         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
27150         Likewise.
27151         * tests/test-spawn.c (main): Make it work when
27152         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
27153
27154 2010-03-07  Bruno Haible  <bruno@clisp.org>
27155
27156         Fix incorrect Makefile.am generation in German locale.
27157         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27158         Execute sed command with character range in C locale.
27159
27160 2010-03-06  Bruno Haible  <bruno@clisp.org>
27161
27162         Tests for module 'iconv-h'.
27163         * modules/iconv-h-tests: New file.
27164         * tests/test-iconv-h.c: New file.
27165
27166         New module 'iconv-h'.
27167         * modules/iconv-h: New file.
27168         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
27169         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
27170         (configure.ac): Remove gl_ICONV_H.
27171         (Makefile.am): Remove rule for iconv.h.
27172
27173 2010-03-06  Bruno Haible  <bruno@clisp.org>
27174
27175         More consistent naming of *.m4 files.
27176         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
27177         * modules/wctype (Files): Update.
27178
27179         More consistent naming of *.m4 files.
27180         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
27181         * modules/wchar (Files): Update.
27182
27183 2010-03-06  Jim Meyering  <meyering@redhat.com>
27184
27185         euidaccess: relax license to LGPLv2+
27186         * modules/euidaccess (License): Relax to LGPLv2+.
27187
27188 2010-03-06  Bruno Haible  <bruno@clisp.org>
27189
27190         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
27191         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
27192         (Makefile.am): Augment lib_SOURCES instead.
27193
27194 2010-03-04  Jim Meyering  <meyering@redhat.com>
27195
27196         utime: remove obsolete module
27197         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
27198         unnecessary for years, and has been marked as obsolete for 10 months.
27199         * modules/utime: Remove file.
27200         * lib/utime.c: Remove file.
27201         * m4/utime.m4: Remove file.
27202         * m4/utimes-null.m4: Remove file.
27203         * doc/posix-functions/utime.texi (utime): Remove reference to
27204         the module.  Move the sole "fixed by gnulib" item into the
27205         "problems not fixed by Gnulib" list.
27206         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
27207
27208 2010-03-05  Simon Josefsson  <simon@josefsson.org>
27209
27210         * modules/exit (License): Relax license to LGPLv2+.
27211         (Status): Mark as obsolete.
27212         * NEWS: Mention deprecated 'exit' module.
27213         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
27214         of now obsolete 'exit'.
27215
27216 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27217
27218         fts-lgpl: remove unused module
27219         * modules/fts-lgpl: Remove.
27220         * MODULES.html.sh (func_all_modules): Adjust.
27221         * check-module (find_included_lib_files): Adjust.
27222         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
27223
27224 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
27225
27226         copy-acl: enhance Solaris ACL error handling
27227         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
27228         * lib/set-mode-acl.c (qset_acl): Likewise.
27229
27230 2010-03-02  Bruno Haible  <bruno@clisp.org>
27231
27232         spawn: Don't override the system defined values on FreeBSD 8.
27233         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
27234         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
27235         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
27236         if HAVE_POSIX_SPAWN is 1.
27237         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
27238
27239 2010-03-01  Bruno Haible  <bruno@clisp.org>
27240
27241         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
27242         regarding Automake.
27243
27244 2010-02-25  Bruno Haible  <bruno@clisp.org>
27245
27246         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
27247         * gnulib-tool: Define 'echo' as a function only before the ksh alias
27248         setting, not afterwards.
27249         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
27250
27251 2010-02-24  Eric Blake  <eblake@redhat.com>
27252
27253         bootstrap, git-version-gen: use timestamp
27254         * build-aux/git-version-gen (scriptversion): Force UTC.
27255         * build-aux/bootstrap (scriptversion): New variable.
27256
27257         bootstrap: allow older git
27258         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
27259         older than 1.6.4.  Requested by the libvirt project.
27260
27261 2010-02-23  Eric Blake  <eblake@redhat.com>
27262
27263         warn-on-use: work with old autoconf
27264         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
27265         AS_VAR semantics of autoconf 2.60.
27266         Reported by Bruno Haible.
27267
27268         bootstrap: improve some comments
27269         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
27270         clarification comments.
27271
27272         gettimeofday: provide correct function
27273         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
27274         when replacement is declared, otherwise provide gettimeofday.
27275         Reported by Michael Goffioul.
27276
27277 2010-02-23  Jim Meyering  <meyering@redhat.com>
27278
27279         lib-ignore: relax license to "unlimited", not LGPLv2+
27280         * modules/lib-ignore (License): Relax to "unlimited".
27281
27282 2010-02-23  Jim Meyering  <meyering@redhat.com>
27283
27284         lib-ignore: relax license to LGPLv2+
27285         * modules/lib-ignore (License): Relax to LGPLv2+.
27286
27287 2010-02-22  Eric Blake  <eblake@redhat.com>
27288
27289         lseek: avoid bash 3.2 broken pipe bug
27290         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
27291         warning from bash 3.2.
27292         Reported by Ben Pfaff, with analysis from Bruno Haible.
27293
27294         bootstrap: support non-FSF copyright holder
27295         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
27296         bootstrap.conf override of COPYRIGHT_HOLDER.
27297         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
27298
27299         bootstrap: interoperate with gettext 0.14.1
27300         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
27301
27302         bootstrap: allow for alternate submodule location
27303         * build-aux/bootstrap (gnulib_path): New variable; use instead of
27304         hardcoding submodule location.
27305         (gnulib_mk): Allow direct use of Makefile.am.
27306
27307         bootstrap: use GNULIB_SRCDIR to reduce disk usage
27308         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
27309         rather than reconfiguring where the submodule points.
27310
27311         gettimeofday: restore support for platforms that lack function
27312         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
27313         replacement if function is missing.
27314         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
27315         * modules/sys_time (Makefile.am): Substitute it.
27316         * lib/sys_time.in.h (gettimeofday): Check it.
27317         Reported by Michael Goffioul.
27318
27319 2010-02-21  Bruno Haible  <bruno@clisp.org>
27320
27321         * lib/stdio.in.h (obstack_printf): Fix typo.
27322
27323 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
27324
27325         vc-list-files: use bzr ls's -R option
27326         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
27327         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
27328
27329 2010-02-21  Jim Meyering  <meyering@redhat.com>
27330
27331         init.sh: fix EXEEXT shims to work also for names like test-prog
27332         * tests/init.sh: Re-exec a better shell, when needed.
27333         If the current shell lacks support for posix $(...), an init.sh-using
27334         test will now try to find a shell that supports that.  If EXEEXT is
27335         nonempty, we also require support for hyphen-in-alias-name and shell
27336         substitutions like ${var#glob}.  Failure to find such a shell results
27337         in a skipped test.
27338
27339 2010-02-21  Bruno Haible  <bruno@clisp.org>
27340
27341         Really work around around "broken pipe" error message from bash 3.2.
27342         * gnulib-tool (func_reset_sigpipe): Remove function.
27343         (echo): In bash 3.2, define to a function that uses printf.
27344         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
27345
27346 2010-02-20  Bruno Haible  <bruno@clisp.org>
27347
27348         Restore support for automake 1.9.6 with autoconf 2.61.
27349         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
27350         Reported by James Youngman <jay@gnu.org>.
27351
27352 2010-02-20  Bruno Haible  <bruno@clisp.org>
27353
27354         Improve *printf warning condition.
27355         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
27356         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
27357         and the function is overridden due to SIGPIPE emulation.
27358
27359 2010-02-20  Bruno Haible  <bruno@clisp.org>
27360
27361         * lib/stdio.in.h: Tweak comments.
27362
27363 2010-02-19  Bruno Haible  <bruno@clisp.org>
27364
27365         Make it easier to find modules. New gnulib-tool option '--find'.
27366         * gnulib-tool: New option --find.
27367         (func_usage): Document it.
27368         (func_sanitize_modulelist): New function, extracted from
27369         func_all_modules.
27370         (func_all_modules): Invoke it.
27371         * doc/gnulib-tool.texi (Which modules?): New node.
27372
27373 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
27374
27375         * lib/sys_select.in.h: Provide select replacement even if
27376         sys/select.h exists on a system, for Interix.
27377
27378 2010-02-18  Jim Meyering  <meyering@redhat.com>
27379
27380         init.sh: don't use $(...) just yet
27381         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
27382         to accommodate e.g., Solaris' /bin/sh.
27383
27384 2010-02-17  Bruno Haible  <bruno@clisp.org>
27385
27386         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
27387         Reported by Ludovic Courtès <ludo@gnu.org>.
27388
27389 2010-02-16  Simon Josefsson  <simon@josefsson.org>
27390
27391         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
27392         linking with -lintl.
27393
27394 2010-02-17  Simon Josefsson  <simon@josefsson.org>
27395
27396         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
27397         if not provided by the system's netdb.h.  Reported by
27398         ludo@gnu.org (Ludovic Courtès).
27399
27400 2010-02-15  Jim Meyering  <meyering@redhat.com>
27401
27402         init.sh: improve portability and efficiency
27403         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
27404         "dummy" in a for loop.
27405         Use '!', not '^' to select the complement of a character set used
27406         in a "case" statement.
27407         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
27408         Suggestions from Eric Blake.
27409
27410         init.sh: automatically accommodate programs with the .exe suffix
27411         Automatically arrange for an invocation of "prog" to execute the
27412         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
27413         may use the simpler "prog", yet still work when built on a system
27414         that requires specifying the added suffix.
27415         Do this by constructing a function named "prog" that invokes
27416         "prog.exe" for each .exe file in selected directories.
27417         * tests/init.sh (find_exe_basenames_): New function.
27418         (create_exe_shim_functions_): New function.
27419         (path_prepend_): Use it.
27420
27421         maint.mk: mark syntax-check sc_*.m rules as .PHONY
27422         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
27423         "make -t syntax-check" doesn't create a ton of sc_*.m files.
27424
27425 2010-02-14  Jim Meyering  <meyering@redhat.com>
27426
27427         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
27428         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
27429         (sc_prohibit_hash_pjw_without_use): New rule.
27430
27431         maint.mk: allow the default upload destination dir to be overridden
27432         * top/maint.mk (upload_dest_dir_): Define with a default that
27433         preserves the status quo.
27434         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
27435         Reported by Peter Simons.
27436
27437         maint.mk: prohibit inclusion of "hash.h" without_use
27438         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
27439
27440 2010-02-10  Jim Meyering  <meyering@redhat.com>
27441
27442         maint.mk: prohibit inclusion of "ignore-value.h" without_use
27443         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
27444
27445 2010-02-09  Eric Blake  <ebb9@byu.net>
27446         and Bruno Haible  <bruno@clisp.org>
27447
27448         obstack-printf-posix: ensure declaration
27449         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
27450         extracted from gl_FUNC_OBSTACK_PRINTF.
27451         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
27452         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
27453         Likewise.
27454         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
27455         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
27456         0.
27457
27458 2010-02-08  Bruno Haible  <bruno@clisp.org>
27459
27460         gnulib-tool: Fix typo in 2010-02-07 commit.
27461         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
27462         Reported by Eric Blake.
27463
27464 2010-02-07  Bruno Haible  <bruno@clisp.org>
27465
27466         gnulib-tool: Fix up caching patches.
27467         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
27468         option --no-cache. Use associative arrays when supported by the shell.
27469         (sed_comments): New variable.
27470         (modcache): Renamed from do_cache.
27471         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
27472         abbreviate unnecessarily.
27473         (have_associative): New variable.
27474         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
27475         way also for ksh and zsh.
27476         (func_init_sed_convert_to_cache_statements): New function, extracted
27477         from func_cache_lookup_module. Add support for associative arrays.
27478         Don't set the c_MODULE_cached variable here. Ignore all lines before
27479         the first field header. Remove only the final newline, not all trailing
27480         newlines. Support empty fields correctly. Limit the use of 'eval' to
27481         assignments.
27482         (func_get_description, func_get_status, func_get_notice,
27483         func_get_applicability, func_get_filelist, func_get_dependencies,
27484         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
27485         func_get_automake_snippet, func_get_include_directive,
27486         func_get_link_directive, func_get_license, func_get_maintainer):
27487         Update documentation. List the unoptimized code first. Add support for
27488         associative arrays. Limit the use of 'eval' to assignments.
27489         (func_get_applicability): Undo stylistic pessimisations.
27490         (func_get_automake_snippet, func_get_include_directive): Reduce code
27491         duplication.
27492         (func_modules_transitive_closure, func_modules_add_dummy,
27493         func_modules_notice, func_modules_to_filelist, func_add_file,
27494         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
27495         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
27496         func_create_testdir, func_create_megatestdir): Update documentation.
27497
27498 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27499
27500         * gnulib-tool (func_cache_lookup_module): Store the module name
27501         belonging to the cache variable; error out if two different
27502         module names map to the same cache variable name.
27503
27504 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27505
27506         gnulib-tool: Make caching optional.
27507         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
27508         Update matching short versions of --no-changelog.
27509         (func_usage): Update.
27510         (sed_extract_cache_prog): Renamed from ...
27511         (sed_extract_prog): ... this; revert to old extraction script.
27512         (func_get_description, func_get_status)
27513         (func_get_notice, func_get_applicability, func_get_filelist)
27514         (func_get_dependencies, func_get_autoconf_early_snippet)
27515         (func_get_autoconf_snippet, func_get_automake_snippet)
27516         (func_get_include_directive, func_get_link_directive)
27517         (func_get_license, func_get_maintainer): If $do_cache is false,
27518         use old, non-caching extraction scripts.
27519         Suggestion by Bruno Haible.
27520
27521 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27522
27523         gnulib-tool: cache module metainformation.
27524         * gnulib-tool (sed_extract_prog): Match newline before each
27525         header, and rewrite header to a shell variable suffix.
27526         (func_cache_var, func_cache_lookup_module): New functions,
27527         to turn a module name into a cache variable prefix, and to
27528         look up and cache module metainformation.
27529         (func_get_description, func_get_status)
27530         (func_get_notice, func_get_applicability, func_get_filelist)
27531         (func_get_dependencies, func_get_autoconf_early_snippet)
27532         (func_get_autoconf_snippet, func_get_automake_snippet)
27533         (func_get_include_directive, func_get_link_directive)
27534         (func_get_license, func_get_maintainer): Use
27535         func_cache_lookup_module.
27536
27537 2010-02-07  Bruno Haible  <bruno@clisp.org>
27538
27539         fnctl: Fix missing dependency.
27540         * modules/fcntl (Depends-on): Add getdtablesize.
27541         Reported by John W. Eaton <jwe@gnu.org>.
27542
27543 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27544
27545         Argp: fix recognition of short alias options.
27546
27547         * lib/argp-parse.c (convert_options): Fix improper use of
27548         `|' between character values.
27549         * tests/test-argp.c (group1_option): New alias option
27550         --read (-r).
27551         (group1_parser): Special handling for 'r'.
27552         (test15): New test case.
27553         (test_fun): Add test15.
27554         * tests/test-argp-2.sh: Update expected --help and --usage
27555         outputs.
27556
27557 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
27558
27559         * tests/test-argp.c: Fix indentation.
27560
27561 2010-02-04  Eric Blake  <ebb9@byu.net>
27562
27563         gettimeofday: expose type of second argument
27564         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
27565         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
27566         * tests/test-gettimeofday.c: Use it to silence warning.
27567         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
27568         the issue.
27569
27570 2010-02-03  Jim Meyering  <meyering@redhat.com>
27571
27572         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
27573         * lib/regcomp.c (TYPE_SIGNED): Define.
27574         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
27575
27576         regcomp.c: avoid a new -Wshadow warning
27577         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
27578
27579 2010-02-01  Jim Meyering  <meyering@redhat.com>
27580
27581         removing useless parentheses in cpp #define directives
27582         For motivation, see commit c0221df4, "define STREQ(a,b)
27583         consistently, removing useless parentheses"
27584         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
27585         * lib/mountlist.c (MNT_IGNORE): Likewise.
27586         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
27587
27588 2010-02-01  Eric Blake  <ebb9@byu.net>
27589
27590         sys_time: use link-warning
27591         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
27592         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
27593         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
27594         * modules/sys_time (Depends-on): Add warn-on-use.
27595         (Makefile.am): Always build replacement.
27596         (configure.ac): Update substitutions.
27597         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
27598         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
27599         bother with SYS_TIME_H.
27600         * modules/gettimeofday (configure.ac): Declare indicator.
27601         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
27602         in use.
27603
27604         closein-tests: silence compiler warning
27605         * tests/test-closein.c (main): Ignore fread result.
27606         * modules/closein-tests (Depends-on): Add ignore-value.
27607
27608         tests: silence warning about system return
27609         * tests/test-areadlink-with-size.c (main): Ignore system result.
27610         * tests/test-areadlink.c (main): Likewise.
27611         * tests/test-areadlinkat-with-size.c (main): Likewise.
27612         * tests/test-areadlinkat.c (main): Likewise.
27613         * tests/test-canonicalize-lgpl.c (main): Likewise.
27614         * tests/test-canonicalize.c (main): Likewise.
27615         * tests/test-chown.c (main): Likewise.
27616         * tests/test-fchownat.c (main): Likewise.
27617         * tests/test-fdutimensat.c (main): Likewise.
27618         * tests/test-fstatat.c (main): Likewise.
27619         * tests/test-futimens.c (main): Likewise.
27620         * tests/test-lchown.c (main): Likewise.
27621         * tests/test-link.c (main): Likewise.
27622         * tests/test-linkat.c (main): Likewise.
27623         * tests/test-lstat.c (main): Likewise.
27624         * tests/test-mkdir.c (main): Likewise.
27625         * tests/test-mkdirat.c (main): Likewise.
27626         * tests/test-mkfifo.c (main): Likewise.
27627         * tests/test-mkfifoat.c (main): Likewise.
27628         * tests/test-mknod.c (main): Likewise.
27629         * tests/test-readlink.c (main): Likewise.
27630         * tests/test-remove.c (main): Likewise.
27631         * tests/test-rename.c (main): Likewise.
27632         * tests/test-renameat.c (main): Likewise.
27633         * tests/test-rmdir.c (main): Likewise.
27634         * tests/test-symlink.c (main): Likewise.
27635         * tests/test-symlinkat.c (main): Likewise.
27636         * tests/test-unlink.c (main): Likewise.
27637         * tests/test-unlinkat.c (main): Likewise.
27638         * tests/test-utimens.c (main): Likewise.
27639         * tests/test-utimensat.c (main): Likewise.
27640         * modules/areadlink-tests (Depends-on): Add ignore-value.
27641         * modules/areadlink-with-size-tests (Depends-on): Likewise.
27642         * modules/areadlinkat-tests (Depends-on): Likewise.
27643         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
27644         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
27645         * modules/canonicalize-tests (Depends-on): Likewise.
27646         * modules/chown-tests (Depends-on): Likewise.
27647         * modules/fdutimensat-tests (Depends-on): Likewise.
27648         * modules/futimens-tests (Depends-on): Likewise.
27649         * modules/lchown-tests (Depends-on): Likewise.
27650         * modules/link-tests (Depends-on): Likewise.
27651         * modules/linkat-tests (Depends-on): Likewise.
27652         * modules/lstat-tests (Depends-on): Likewise.
27653         * modules/mkdir-tests (Depends-on): Likewise.
27654         * modules/mkfifo-tests (Depends-on): Likewise.
27655         * modules/mkfifoat-tests (Depends-on): Likewise.
27656         * modules/mknod-tests (Depends-on): Likewise.
27657         * modules/openat-tests (Depends-on): Likewise.
27658         * modules/readlink-tests (Depends-on): Likewise.
27659         * modules/remove-tests (Depends-on): Likewise.
27660         * modules/rename-tests (Depends-on): Likewise.
27661         * modules/renameat-tests (Depends-on): Likewise.
27662         * modules/rmdir-tests (Depends-on): Likewise.
27663         * modules/symlink-tests (Depends-on): Likewise.
27664         * modules/symlinkat-tests (Depends-on): Likewise.
27665         * modules/unlink-tests (Depends-on): Likewise.
27666         * modules/utimens-tests (Depends-on): Likewise.
27667         * modules/utimensat-tests (Depends-on): Likewise.
27668
27669 2010-01-31  Bruno Haible  <bruno@clisp.org>
27670
27671         Perform the same test for many <math.h> functions.
27672         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
27673         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
27674         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
27675         of gl_MATHFUNC.
27676         * modules/acos (configure.ac): Likewise.
27677         * modules/asin (configure.ac): Likewise.
27678         * modules/atan (configure.ac): Likewise.
27679         * modules/atan2 (configure.ac): Likewise.
27680         * modules/cbrt (configure.ac): Likewise.
27681         * modules/copysign (configure.ac): Likewise.
27682         * modules/cos (configure.ac): Likewise.
27683         * modules/cosh (configure.ac): Likewise.
27684         * modules/erf (configure.ac): Likewise.
27685         * modules/erfc (configure.ac): Likewise.
27686         * modules/exp (configure.ac): Likewise.
27687         * modules/fmod (configure.ac): Likewise.
27688         * modules/hypot (configure.ac): Likewise.
27689         * modules/j0 (configure.ac): Likewise.
27690         * modules/j1 (configure.ac): Likewise.
27691         * modules/jn (configure.ac): Likewise.
27692         * modules/lgamma (configure.ac): Likewise.
27693         * modules/log (configure.ac): Likewise.
27694         * modules/log10 (configure.ac): Likewise.
27695         * modules/log1p (configure.ac): Likewise.
27696         * modules/pow (configure.ac): Likewise.
27697         * modules/remainder (configure.ac): Likewise.
27698         * modules/sin (configure.ac): Likewise.
27699         * modules/sinh (configure.ac): Likewise.
27700         * modules/tan (configure.ac): Likewise.
27701         * modules/tanh (configure.ac): Likewise.
27702         * modules/y0 (configure.ac): Likewise.
27703         * modules/y1 (configure.ac): Likewise.
27704         * modules/yn (configure.ac): Likewise.
27705         Suggested by Paolo Bonzini.
27706
27707 2010-01-31  Bruno Haible  <bruno@clisp.org>
27708
27709         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
27710
27711 2010-01-31  Bruno Haible  <bruno@clisp.org>
27712
27713         Work around getdelim() bug on FreeBSD 8.0.
27714         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
27715         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
27716         not work.
27717         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
27718         is 1.
27719         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
27720         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
27721         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
27722         a non-zero size.
27723         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
27724
27725 2010-01-31  Bruno Haible  <bruno@clisp.org>
27726
27727         Work around getline() bug on FreeBSD 8.0.
27728         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
27729         and a non-zero size.
27730         * tests/test-getline.c (main): Likewise.
27731         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
27732         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
27733
27734 2010-01-28  Eric Blake  <ebb9@byu.net>
27735
27736         regex: fix build failure
27737         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
27738         platforms.
27739
27740 2010-01-28  Jim Meyering  <meyering@redhat.com>
27741
27742         regex: do not ignore memory allocation failure
27743         * lib/regex_internal.c (create_cd_newstate): Detect
27744         re_node_set_init_copy failure.   Extracted from glibc commit
27745         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27746
27747         regex: sync more white-space changes from libc
27748         * lib/regex_internal.c: White-space only changes.
27749         * lib/regexec.c: Likewise.
27750
27751         regex: add many uses of __attribute_warn_unused_result__
27752         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
27753         * lib/regexec.c: Likewise.
27754         Extracted from a messy glibc commit.
27755
27756         regcomp.c: spelling and merge-artifact from glibc
27757         * lib/regcomp.c: Merge remainder of glibc's
27758         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27759
27760         regcomp.c: sync white-space changes from glibc
27761         * lib/regcomp.c: Merge to accommodate white space
27762         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
27763
27764         regcomp.c: do not ignore internal return values
27765         * lib/regcomp.c: Do not ignore internal return values.
27766         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
27767         but without its white-space changes and spelling fixes.
27768
27769         regex_internal.h: define __attribute_warn_unused_result__
27770         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
27771
27772         maint: add a syntax-check rule to check for vulnerable Makefile.in
27773         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
27774
27775 2010-01-27  Jim Meyering  <meyering@redhat.com>
27776
27777         ncftpput-ftp: clean up spaces
27778         * build-aux/ncftpput-ftp: Make Copyright line consistent.
27779         Remove trailing blanks.
27780
27781 2010-01-27  Simon Josefsson  <simon@josefsson.org>
27782
27783         * build-aux/git-version-gen: Fix copyright statement.
27784         * build-aux/gnupload: Likewise.
27785         * tests/test-arcfour.c: Likewise.
27786         * tests/test-arctwo.c: Likewise.
27787         * tests/test-count-one-bits.c: Likewise.
27788         * tests/test-crc.c: Likewise.
27789         * tests/test-des.c: Likewise.
27790         * tests/test-gc-arcfour.c: Likewise.
27791         * tests/test-gc-arctwo.c: Likewise.
27792         * tests/test-gc-des.c: Likewise.
27793         * tests/test-gc-hmac-md5.c: Likewise.
27794         * tests/test-gc-hmac-sha1.c: Likewise.
27795         * tests/test-gc-md2.c: Likewise.
27796         * tests/test-gc-md4.c: Likewise.
27797         * tests/test-gc-md5.c: Likewise.
27798         * tests/test-gc-pbkdf2-sha1.c: Likewise.
27799         * tests/test-gc-rijndael.c: Likewise.
27800         * tests/test-gc-sha1.c: Likewise.
27801         * tests/test-gc.c: Likewise.
27802         * tests/test-gethostname.c: Likewise.
27803         * tests/test-gettimeofday.c: Likewise.
27804         * tests/test-hash.c: Likewise.
27805         * tests/test-hmac-md5.c: Likewise.
27806         * tests/test-hmac-sha1.c: Likewise.
27807         * tests/test-md2.c: Likewise.
27808         * tests/test-md4.c: Likewise.
27809         * tests/test-md5.c: Likewise.
27810         * tests/test-memchr.c: Likewise.
27811         * tests/test-memchr2.c: Likewise.
27812         * tests/test-memcmp.c: Likewise.
27813         * tests/test-memmem.c: Likewise.
27814         * tests/test-memrchr.c: Likewise.
27815         * tests/test-rawmemchr.c: Likewise.
27816         * tests/test-read-file.c: Likewise.
27817         * tests/test-rijndael.c: Likewise.
27818         * tests/test-sockets.c: Likewise.
27819         * tests/test-strchrnul.c: Likewise.
27820         * tests/test-strstr.c: Likewise.
27821         * tests/test-strtod.c: Likewise.
27822         * build-aux/ncftpput-ftp: Likewise.
27823
27824 2010-01-26  Eric Blake  <ebb9@byu.net>
27825
27826         ignore-value: update recommended header name
27827         * modules/ignore-value (Include): Only use <> for headers that
27828         exist in glibc.
27829
27830 2010-01-26  Jim Meyering  <meyering@redhat.com>
27831
27832         test-userspec.c: avoid compiler warnings
27833         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
27834         and "initialization discards qualifiers..." warnings.
27835         Put the first "uid" in its own scope, and make char* members "const".
27836
27837 2010-01-25  Bruno Haible  <bruno@clisp.org>
27838
27839         gnulib-tool: Make warning diagnostics consistent.
27840         * gnulib-tool (func_warning): New function.
27841         Use it everywhere where gnulib-tool produces output to stderr and it is
27842         not a fatal error.
27843
27844 2010-01-25  Bruno Haible  <bruno@clisp.org>
27845
27846         Fix test dependencies.
27847         * modules/xstrtol-tests (Depends-on): Add inttypes.
27848         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
27849
27850 2010-01-25 Pádraig Brady <P@draigBrady.com>
27851
27852         syntax-check: detect incorrect boolean macro values in config.h
27853         * modules/maintainer-makefile (configure.ac): Parameterize the location
27854         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
27855         The logic is from Eric Blake and the location indicated by Jim Meyering.
27856         Note the more natural CONFIG_HEADER name is prohibited by automake
27857         for backwards compatibility reasons.
27858         * top/maint.mk (sc_Wundef_boolean): New rule.
27859
27860 2010-01-25  Jim Meyering  <meyering@redhat.com>
27861
27862         bootstrap: detect MacOS 10.6's shasum, too
27863         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
27864         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
27865
27866 2010-01-23  Jim Meyering  <meyering@redhat.com>
27867
27868         xstrtoll: new module
27869         * modules/xstrtoll: New file.
27870         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
27871         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
27872         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
27873         ./configure fails if you use this module and lack "long long".
27874         * modules/xstrtoll-tests: New module.
27875         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
27876         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
27877         new init.sh-based test framework.
27878
27879 2010-01-24  Bruno Haible  <bruno@clisp.org>
27880
27881         Tests for module 'yn'.
27882         * modules/yn-tests: New file.
27883         * tests/test-yn.c: New file.
27884
27885         Tests for module 'y1'.
27886         * modules/y1-tests: New file.
27887         * tests/test-y1.c: New file.
27888
27889         Tests for module 'y0'.
27890         * modules/y0-tests: New file.
27891         * tests/test-y0.c: New file.
27892
27893         Tests for module 'tanh'.
27894         * modules/tanh-tests: New file.
27895         * tests/test-tanh.c: New file.
27896
27897         Tests for module 'tan'.
27898         * modules/tan-tests: New file.
27899         * tests/test-tan.c: New file.
27900
27901         Tests for module 'sqrt'.
27902         * modules/sqrt-tests: New file.
27903         * tests/test-sqrt.c: New file.
27904
27905         Tests for module 'sinh'.
27906         * modules/sinh-tests: New file.
27907         * tests/test-sinh.c: New file.
27908
27909         Tests for module 'sin'.
27910         * modules/sin-tests: New file.
27911         * tests/test-sin.c: New file.
27912
27913         Tests for module 'rint'.
27914         * modules/rint-tests: New file.
27915         * tests/test-rint.c: New file.
27916
27917         Tests for module 'remainder'.
27918         * modules/remainder-tests: New file.
27919         * tests/test-remainder.c: New file.
27920
27921         Tests for module 'pow'.
27922         * modules/pow-tests: New file.
27923         * tests/test-pow.c: New file.
27924
27925         Tests for module 'nextafter'.
27926         * modules/nextafter-tests: New file.
27927         * tests/test-nextafter.c: New file.
27928
27929         Tests for module 'modf'.
27930         * modules/modf-tests: New file.
27931         * tests/test-modf.c: New file.
27932
27933         Tests for module 'logb'.
27934         * modules/logb-tests: New file.
27935         * tests/test-logb.c: New file.
27936
27937         Tests for module 'log1p'.
27938         * modules/log1p-tests: New file.
27939         * tests/test-log1p.c: New file.
27940
27941         Tests for module 'log10'.
27942         * modules/log10-tests: New file.
27943         * tests/test-log10.c: New file.
27944
27945         Tests for module 'log'.
27946         * modules/log-tests: New file.
27947         * tests/test-log.c: New file.
27948
27949         Tests for module 'lgamma'.
27950         * modules/lgamma-tests: New file.
27951         * tests/test-lgamma.c: New file.
27952
27953         Tests for module 'ldexp'.
27954         * modules/ldexp-tests: New file.
27955         * tests/test-ldexp.c: New file.
27956
27957         Tests for module 'jn'.
27958         * modules/jn-tests: New file.
27959         * tests/test-jn.c: New file.
27960
27961         Tests for module 'j1'.
27962         * modules/j1-tests: New file.
27963         * tests/test-j1.c: New file.
27964
27965         Tests for module 'j0'.
27966         * modules/j0-tests: New file.
27967         * tests/test-j0.c: New file.
27968
27969         Tests for module 'hypot'.
27970         * modules/hypot-tests: New file.
27971         * tests/test-hypot.c: New file.
27972
27973         Tests for module 'fmod'.
27974         * modules/fmod-tests: New file.
27975         * tests/test-fmod.c: New file.
27976
27977         Tests for module 'fabs'.
27978         * modules/fabs-tests: New file.
27979         * tests/test-fabs.c: New file.
27980
27981         Tests for module 'exp'.
27982         * modules/exp-tests: New file.
27983         * tests/test-exp.c: New file.
27984
27985         Tests for module 'erfc'.
27986         * modules/erfc-tests: New file.
27987         * tests/test-erfc.c: New file.
27988
27989         Tests for module 'erf'.
27990         * modules/erf-tests: New file.
27991         * tests/test-erf.c: New file.
27992
27993         Tests for module 'cosh'.
27994         * modules/cosh-tests: New file.
27995         * tests/test-cosh.c: New file.
27996
27997         Tests for module 'cos'.
27998         * modules/cos-tests: New file.
27999         * tests/test-cos.c: New file.
28000
28001         Tests for module 'copysign'.
28002         * modules/copysign-tests: New file.
28003         * tests/test-copysign.c: New file.
28004
28005         Tests for module 'cbrt'.
28006         * modules/cbrt-tests: New file.
28007         * tests/test-cbrt.c: New file.
28008
28009         Tests for module 'atan2'.
28010         * modules/atan2-tests: New file.
28011         * tests/test-atan2.c: New file.
28012
28013         Tests for module 'atan'.
28014         * modules/atan-tests: New file.
28015         * tests/test-atan.c: New file.
28016
28017         Tests for module 'asin'.
28018         * modules/asin-tests: New file.
28019         * tests/test-asin.c: New file.
28020
28021         Tests for module 'acos'.
28022         * modules/acos-tests: New file.
28023         * tests/test-acos.c: New file.
28024
28025 2010-01-24  Bruno Haible  <bruno@clisp.org>
28026
28027         Fix tests for common <math.h> functions.
28028         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
28029         code snippet that references the function pointer, rather than merely
28030         calling the function. Substitute the FUNC_LIBM variable.
28031         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
28032         * modules/acos (configure.ac): Likewise.
28033         * modules/asin (configure.ac): Likewise.
28034         * modules/atan (configure.ac): Likewise.
28035         * modules/atan2 (configure.ac): Likewise.
28036         * modules/cbrt (configure.ac): Likewise.
28037         * modules/copysign (configure.ac): Likewise.
28038         * modules/cos (configure.ac): Likewise.
28039         * modules/cosh (configure.ac): Likewise.
28040         * modules/erf (configure.ac): Likewise.
28041         * modules/erfc (configure.ac): Likewise.
28042         * modules/exp (configure.ac): Likewise.
28043         * modules/fabs (configure.ac): Likewise.
28044         * modules/fmod (configure.ac): Likewise.
28045         * modules/hypot (configure.ac): Likewise.
28046         * modules/j0 (configure.ac): Likewise.
28047         * modules/j1 (configure.ac): Likewise.
28048         * modules/jn (configure.ac): Likewise.
28049         * modules/ldexp (configure.ac): Likewise.
28050         * modules/lgamma (configure.ac): Likewise.
28051         * modules/log (configure.ac): Likewise.
28052         * modules/log10 (configure.ac): Likewise.
28053         * modules/log1p (configure.ac): Likewise.
28054         * modules/logb (configure.ac): Likewise.
28055         * modules/modf (configure.ac): Likewise.
28056         * modules/nextafter (configure.ac): Likewise.
28057         * modules/pow (configure.ac): Likewise.
28058         * modules/remainder (configure.ac): Likewise.
28059         * modules/rint (configure.ac): Likewise.
28060         * modules/sin (configure.ac): Likewise.
28061         * modules/sinh (configure.ac): Likewise.
28062         * modules/tan (configure.ac): Likewise.
28063         * modules/tanh (configure.ac): Likewise.
28064         * modules/y0 (configure.ac): Likewise.
28065         * modules/y1 (configure.ac): Likewise.
28066         * modules/yn (configure.ac): Likewise.
28067
28068 2010-01-24  Bruno Haible  <bruno@clisp.org>
28069
28070         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
28071         * tests/test-acosl.c (x): New variable.
28072         (main): Store argument in x and fetch it from x.
28073         * tests/test-asinl.c (x): New variable.
28074         (main): Store argument in x and fetch it from x.
28075         * tests/test-atanl.c (x): New variable.
28076         (main): Store argument in x and fetch it from x.
28077         * tests/test-cosl.c (x): New variable.
28078         (main): Store argument in x and fetch it from x.
28079         * tests/test-expl.c (x): New variable.
28080         (main): Store argument in x and fetch it from x.
28081         * tests/test-logl.c (x): New variable.
28082         (main): Store argument in x and fetch it from x.
28083         * tests/test-sinl.c (x): New variable.
28084         (main): Store argument in x and fetch it from x.
28085         * tests/test-sqrtl.c (x): New variable.
28086         (main): Store argument in x and fetch it from x.
28087         * tests/test-tanl.c (x): New variable.
28088         (main): Store argument in x and fetch it from x.
28089
28090 2010-01-24  Bruno Haible  <bruno@clisp.org>
28091
28092         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
28093         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
28094         assignments to the initial TESTS_ENVIRONMENT.
28095         * doc/gnulib.texi (Unit test modules): Document it.
28096         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
28097         TESTS_ENVIRONMENT.
28098         * modules/btowc-tests (Makefile.am): Likewise.
28099         * modules/c-stack-tests (Makefile.am): Likewise.
28100         * modules/c-strcase-tests (Makefile.am): Likewise.
28101         * modules/copy-file-tests (Makefile.am): Likewise.
28102         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
28103         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
28104         * modules/mbrtowc-tests (Makefile.am): Likewise.
28105         * modules/mbscasecmp-tests (Makefile.am): Likewise.
28106         * modules/mbscasestr-tests (Makefile.am): Likewise.
28107         * modules/mbschr-tests (Makefile.am): Likewise.
28108         * modules/mbscspn-tests (Makefile.am): Likewise.
28109         * modules/mbsinit-tests (Makefile.am): Likewise.
28110         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
28111         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
28112         * modules/mbspbrk-tests (Makefile.am): Likewise.
28113         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
28114         * modules/mbsrchr-tests (Makefile.am): Likewise.
28115         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
28116         * modules/mbsspn-tests (Makefile.am): Likewise.
28117         * modules/mbsstr-tests (Makefile.am): Likewise.
28118         * modules/nl_langinfo-tests (Makefile.am): Likewise.
28119         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
28120         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
28121         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
28122         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
28123         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
28124         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
28125         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
28126         * modules/wcrtomb-tests (Makefile.am): Likewise.
28127         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
28128         * modules/wcsrtombs-tests (Makefile.am): Likewise.
28129         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
28130         assignments from TESTS_ENVIRONMENT.
28131         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
28132         augmentation.
28133         * modules/argp-version-etc-tests (Makefile.am): Likewise.
28134         * modules/atexit-tests (Makefile.am): Likewise.
28135         * modules/binary-io-tests (Makefile.am): Likewise.
28136         * modules/closein-tests (Makefile.am): Likewise.
28137         * modules/dprintf-posix-tests (Makefile.am): Likewise.
28138         * modules/exclude-tests (Makefile.am): Likewise.
28139         * modules/fflush-tests (Makefile.am): Likewise.
28140         * modules/fpending-tests (Makefile.am): Likewise.
28141         * modules/fprintf-posix-tests (Makefile.am): Likewise.
28142         * modules/freadahead-tests (Makefile.am): Likewise.
28143         * modules/freadptr-tests (Makefile.am): Likewise.
28144         * modules/freadseek-tests (Makefile.am): Likewise.
28145         * modules/fseek-tests (Makefile.am): Likewise.
28146         * modules/fseeko-tests (Makefile.am): Likewise.
28147         * modules/ftell-tests (Makefile.am): Likewise.
28148         * modules/ftello-tests (Makefile.am): Likewise.
28149         * modules/idpriv-drop-tests (Makefile.am): Likewise.
28150         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
28151         * modules/lseek-tests (Makefile.am): Likewise.
28152         * modules/parse-duration-tests (Makefile.am): Likewise.
28153         * modules/perror-tests (Makefile.am): Likewise.
28154         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
28155         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
28156         * modules/pipe-tests (Makefile.am): Likewise.
28157         * modules/pread-tests (Makefile.am): Likewise.
28158         * modules/printf-posix-tests (Makefile.am): Likewise.
28159         * modules/select-tests (Makefile.am): Likewise.
28160         * modules/sigpipe-tests (Makefile.am): Likewise.
28161         * modules/tsearch-tests (Makefile.am): Likewise.
28162         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
28163         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
28164         * modules/uniname/uniname-tests (Makefile.am): Likewise.
28165         * modules/uniwidth/width-tests (Makefile.am): Likewise.
28166         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
28167         * modules/version-etc-tests (Makefile.am): Likewise.
28168         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
28169         * modules/vprintf-posix-tests (Makefile.am): Likewise.
28170         * modules/xalloc-die-tests (Makefile.am): Likewise.
28171         * modules/xprintf-posix-tests (Makefile.am): Likewise.
28172         * modules/xstrtoimax-tests (Makefile.am): Likewise.
28173         * modules/xstrtol-tests (Makefile.am): Likewise.
28174         * modules/xstrtoumax-tests (Makefile.am): Likewise.
28175         * modules/yesno-tests (Makefile.am): Likewise.
28176         Suggested by Jim Meyering.
28177
28178 2010-01-24  Bruno Haible  <bruno@clisp.org>
28179
28180         More documentation.
28181         * doc/gnulib.texi (Writing modules): New chapter.
28182         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
28183         the new chapter.
28184
28185 2010-01-24  Jim Meyering  <meyering@redhat.com>
28186
28187         maint.mk: do not prepend "./" after filtering
28188         * top/maint.mk (_prepend_srcdir_prefix): New variable
28189         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
28190         "./" when $(srcdir) is ".".
28191
28192         define STREQ(a,b) consistently, removing useless parentheses
28193         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
28194         since the only risk is that "a" or "b" contains an unparenthesized
28195         comma, but if either did that, STREQ would have 3 or more arguments.
28196         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
28197         * lib/fts.c (STREQ): Remove unnecessary parentheses.
28198         * lib/hash-triple.c (STREQ): Likewise.
28199         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
28200         * lib/getugroups.c (STREQ): Likewise.
28201
28202 2010-01-23  Jim Meyering  <meyering@redhat.com>
28203
28204         maint.mk: fix syntax-check in a non-srcdir build directory
28205         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
28206         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
28207
28208 2010-01-22  Jim Meyering  <meyering@redhat.com>
28209
28210         userspec: add unit tests
28211         * tests/test-userspec.c: New file.
28212         * modules/userspec-tests: Likewise.
28213
28214 2010-01-21  Jim Meyering  <meyering@redhat.com>
28215
28216         maint.mk: handle source file names containing "." robustly
28217         * top/maint.mk (_dot_escaped_srcdir): Define.
28218         (VC_LIST): Use it in LHS of sed substitution.
28219
28220 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
28221
28222         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
28223         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
28224         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
28225         from a non-srcdir build.
28226
28227 2010-01-20  Eric Blake  <ebb9@byu.net>
28228
28229         warn-on-use: use instead of link-warning
28230         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
28231         * modules/unistd (Depends-on, Makefile.am): Likewise.
28232         * modules/arpa_inet (Depends-on): Replace link-warning with
28233         warn-on-use.
28234         (Makefile.am): Update rules accordingly.
28235         * modules/ctype (Depends-on, Makefile.am): Likewise.
28236         * modules/dirent (Depends-on, Makefile.am): Likewise.
28237         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
28238         * modules/inttypes (Depends-on, Makefile.am): Likewise.
28239         * modules/langinfo (Depends-on, Makefile.am): Likewise.
28240         * modules/locale (Depends-on, Makefile.am): Likewise.
28241         * modules/math (Depends-on, Makefile.am): Likewise.
28242         * modules/search (Depends-on, Makefile.am): Likewise.
28243         * modules/signal (Depends-on, Makefile.am): Likewise.
28244         * modules/spawn (Depends-on, Makefile.am): Likewise.
28245         * modules/stdlib (Depends-on, Makefile.am): Likewise.
28246         * modules/string (Depends-on, Makefile.am): Likewise.
28247         * modules/strings (Depends-on, Makefile.am): Likewise.
28248         * modules/sys_file (Depends-on, Makefile.am): Likewise.
28249         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
28250         * modules/sys_select (Depends-on, Makefile.am): Likewise.
28251         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
28252         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
28253         * modules/sys_times (Depends-on, Makefile.am): Likewise.
28254         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
28255         * modules/wchar (Depends-on, Makefile.am): Likewise.
28256         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
28257         should be poisoned.
28258         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
28259         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
28260         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
28261         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28262         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28263         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
28264         * m4/math_h.m4 (gl_MATH_H): Likewise.
28265         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
28266         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
28267         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28268         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
28269         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
28270         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
28271         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
28272         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
28273         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
28274         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28275         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28276         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
28277         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28278         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
28279         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
28280         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28281         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
28282         GL_LINK_WARNING.
28283         * lib/ctype.in.h: Likewise.
28284         * lib/dirent.in.h: Likewise.
28285         * lib/fcntl.in.h: Likewise.
28286         * lib/inttypes.in.h: Likewise.
28287         * lib/langinfo.in.h: Likewise.
28288         * lib/locale.in.h: Likewise.
28289         * lib/math.in.h: Likewise.
28290         * lib/search.in.h: Likewise.
28291         * lib/signal.in.h: Likewise.
28292         * lib/spawn.in.h: Likewise.
28293         * lib/stdio.in.h: Likewise.
28294         * lib/stdlib.in.h: Likewise.
28295         * lib/string.in.h: Likewise.
28296         * lib/strings.in.h: Likewise.
28297         * lib/sys_file.in.h: Likewise.
28298         * lib/sys_ioctl.in.h: Likewise.
28299         * lib/sys_select.in.h: Likewise.
28300         * lib/sys_socket.in.h: Likewise.
28301         * lib/sys_stat.in.h: Likewise.
28302         * lib/sys_times.in.h: Likewise.
28303         * lib/sys_utsname.in.h: Likewise.
28304         * lib/unistd.in.h: Likewise.
28305         * lib/wchar.in.h: Likewise.
28306
28307 2010-01-20  Bruno Haible  <bruno@clisp.org>
28308
28309         Avoid duplicate -lm.
28310         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
28311         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
28312         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
28313         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
28314         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
28315         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
28316         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
28317         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
28318         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
28319         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
28320         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
28321         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
28322         Reported by Paolo Bonzini.
28323
28324 2010-01-19  Bruno Haible  <bruno@clisp.org>
28325
28326         langinfo, nl_langinfo: Relicense under LGPLv2+.
28327         * modules/langinfo (License): Change to LGPLv2+.
28328         * modules/nl_langinfo (License): Likewise.
28329         Patch by David Lutterkort <lutter@redhat.com>.
28330
28331 2010-01-19  Bruno Haible  <bruno@clisp.org>
28332
28333         Avoid compilation error with cc on OSF/1 5.1.
28334         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
28335         statement, not before.
28336         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28337
28338 2010-01-18  Bruno Haible  <bruno@clisp.org>
28339
28340         Avoid a link error due to the __printf__ symbol.
28341         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
28342         and 2.6.x.
28343         (__format__, __printf__): Remove definitions.
28344         * lib/argp-fmtstream.h: Likewise.
28345         * lib/argp.h: Likewise.
28346         * lib/error.h: Likewise.
28347         * lib/vasnprintf.h: Likewise.
28348         * lib/xprintf.h: Likewise.
28349         * lib/xvasprintf.h: Likewise.
28350         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28351
28352 2010-01-18  Bruno Haible  <bruno@clisp.org>
28353
28354         Tests for module 'tanl'.
28355         * modules/tanl-tests: New file.
28356         * tests/test-tanl.c: New file.
28357
28358         Tests for module 'sqrtl'.
28359         * modules/sqrtl-tests: New file.
28360         * tests/test-sqrtl.c: New file.
28361
28362         Tests for module 'sinl'.
28363         * modules/sinl-tests: New file.
28364         * tests/test-sinl.c: New file.
28365
28366         Tests for module 'logl'.
28367         * modules/logl-tests: New file.
28368         * tests/test-logl.c: New file.
28369
28370         Tests for module 'expl'.
28371         * modules/expl-tests: New file.
28372         * tests/test-expl.c: New file.
28373
28374         Tests for module 'cosl'.
28375         * modules/cosl-tests: New file.
28376         * tests/test-cosl.c: New file.
28377
28378         Tests for module 'atanl'.
28379         * modules/atanl-tests: New file.
28380         * tests/test-atanl.c: New file.
28381
28382         Tests for module 'asinl'.
28383         * modules/asinl-tests: New file.
28384         * tests/test-asinl.c: New file.
28385
28386         Tests for module 'acosl'.
28387         * modules/acosl-tests: New file.
28388         * tests/test-acosl.c: New file.
28389
28390         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28391         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
28392         tanl): Use the standard gnulib idiom.
28393         * lib/cosl.c: Don't include trigl.c and sincosl.c.
28394         * lib/sinl.c: Likewise.
28395         * lib/tanl.c: Don't include trigl.c.
28396         (kernel_tanl): Make static.
28397         * lib/sincosl.c: Include trigl.h first.
28398         * lib/trigl.c: Likewise.
28399         * m4/acosl.m4: New file.
28400         * m4/asinl.m4: New file.
28401         * m4/atanl.m4: New file.
28402         * m4/cosl.m4: New file.
28403         * m4/expl.m4: New file.
28404         * m4/logl.m4: New file.
28405         * m4/sinl.m4: New file.
28406         * m4/sqrtl.m4: New file.
28407         * m4/tanl.m4: New file.
28408         * m4/mathl.m4: Remove file.
28409         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
28410         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
28411         Don't initialize GNULIB_MATHL.
28412         * modules/acosl: New file.
28413         * modules/asinl: New file.
28414         * modules/atanl: New file.
28415         * modules/cosl: New file.
28416         * modules/expl: New file.
28417         * modules/logl: New file.
28418         * modules/sinl: New file.
28419         * modules/sqrtl: New file.
28420         * modules/tanl: New file.
28421         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
28422         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
28423         substitute GNULIB_MATHL.
28424         * modules/mathl: Rewritten.
28425         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
28426         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
28427         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
28428         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
28429         * doc/posix-functions/expl.texi: Mention the 'expl' module.
28430         * doc/posix-functions/logl.texi: Mention the 'logl' module.
28431         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
28432         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
28433         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
28434
28435 2010-01-18  Bruno Haible  <bruno@clisp.org>
28436
28437         sqrt: Make gl_FUNC_SQRT requirable.
28438         * m4/sqrt.m4: New file.
28439         * modules/sqrt (Files): Add it.
28440         (configure.ac): Invoke gl_FUNC_SQRT.
28441
28442 2010-01-18  Bruno Haible  <bruno@clisp.org>
28443
28444         New modules for common <math.h> functions.
28445         * m4/mathfunc.m4: New file.
28446         * modules/acos: New file.
28447         * modules/asin: New file.
28448         * modules/atan: New file.
28449         * modules/atan2: New file.
28450         * modules/cbrt: New file.
28451         * modules/copysign: New file.
28452         * modules/cos: New file.
28453         * modules/cosh: New file.
28454         * modules/erf: New file.
28455         * modules/erfc: New file.
28456         * modules/exp: New file.
28457         * modules/fabs: New file.
28458         * modules/fmod: New file.
28459         * modules/hypot: New file.
28460         * modules/j0: New file.
28461         * modules/j1: New file.
28462         * modules/jn: New file.
28463         * modules/ldexp: New file.
28464         * modules/lgamma: New file.
28465         * modules/log: New file.
28466         * modules/log10: New file.
28467         * modules/log1p: New file.
28468         * modules/logb: New file.
28469         * modules/modf: New file.
28470         * modules/nextafter: New file.
28471         * modules/pow: New file.
28472         * modules/remainder: New file.
28473         * modules/rint: New file.
28474         * modules/sin: New file.
28475         * modules/sinh: New file.
28476         * modules/sqrt: New file.
28477         * modules/tan: New file.
28478         * modules/tanh: New file.
28479         * modules/y0: New file.
28480         * modules/y1: New file.
28481         * modules/yn: New file.
28482         * doc/posix-functions/acos.texi: Mention the 'acos' module.
28483         * doc/posix-functions/asin.texi: Mention the 'asin' module.
28484         * doc/posix-functions/atan.texi: Mention the 'atan' module.
28485         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
28486         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
28487         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
28488         * doc/posix-functions/cos.texi: Mention the 'cos' module.
28489         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
28490         * doc/posix-functions/erf.texi: Mention the 'erf' module.
28491         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
28492         * doc/posix-functions/exp.texi: Mention the 'exp' module.
28493         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
28494         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
28495         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
28496         * doc/posix-functions/j0.texi: Mention the 'j0' module.
28497         * doc/posix-functions/j1.texi: Mention the 'j1' module.
28498         * doc/posix-functions/jn.texi: Mention the 'jn' module.
28499         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
28500         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
28501         * doc/posix-functions/log.texi: Mention the 'log' module.
28502         * doc/posix-functions/log10.texi: Mention the 'log10' module.
28503         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
28504         * doc/posix-functions/logb.texi: Mention the 'logb' module.
28505         * doc/posix-functions/modf.texi: Mention the 'modf' module.
28506         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
28507         * doc/posix-functions/pow.texi: Mention the 'pow' module.
28508         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
28509         * doc/posix-functions/rint.texi: Mention the 'rint' module.
28510         * doc/posix-functions/sin.texi: Mention the 'sin' module.
28511         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
28512         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
28513         * doc/posix-functions/tan.texi: Mention the 'tan' module.
28514         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
28515         * doc/posix-functions/y0.texi: Mention the 'y0' module.
28516         * doc/posix-functions/y1.texi: Mention the 'y1' module.
28517         * doc/posix-functions/yn.texi: Mention the 'yn' module.
28518
28519 2010-01-18  Jim Meyering  <meyering@redhat.com>
28520
28521         ignore-value: relax license to LGPLv2+
28522         * modules/ignore-value (License): Relax to LGPLv2+.
28523
28524         getdate: don't leak when TZ contains two or more '"'s
28525         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
28526         double quote in TZ after the first one.
28527
28528         readtokens: do not leak internal token_lengths buffer
28529         * lib/readtokens.c (readtokens): Free the local, lengths,
28530         when the supplied "token_lengths" parameter is NULL.
28531
28532 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28533
28534         Fix a couple of missing LIBTHREAD link failures on AIX.
28535         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
28536         $(LIBTHREAD).
28537         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
28538
28539         Link test-poll against INET_PTON_LIB.
28540         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
28541         for inet_pton on Solaris 10.
28542
28543 2010-01-17  Bruno Haible  <bruno@clisp.org>
28544
28545         unistdio/*-sprintf: Fix typo in module description.
28546         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
28547         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
28548         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
28549         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
28550         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
28551         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
28552         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
28553         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28554
28555 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28556
28557         gnulib-tool: fix filelist for AIX, HP-UX ksh.
28558         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
28559         variables in shell case patterns, for AIX and HP-UX ksh.
28560
28561         Split large sed scripts, for HP-UX sed.
28562         * modules/stdio: Split sed scripts around 50 sed commands,
28563         to avoid HP-UX limit of 99 commands, in the near future.
28564         * modules/string: Likewise.
28565         * modules/unistd: Likewise.
28566
28567         gnulib-tool: avoid writing in the current directory.
28568         * gnulib-tool (func_emit_lib_Makefile_am)
28569         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
28570         not in the current directory, so concurrent gnulib-tool
28571         instances do not interfere.
28572
28573 2010-01-16  Jim Meyering  <meyering@redhat.com>
28574
28575         doc: update users.txt
28576         * users.txt: Add grep.
28577         (diffutils, gzip): Update URLs.
28578
28579 2010-01-12  Bruno Haible  <bruno@clisp.org>
28580
28581         posix_spawn: Avoid test failure on Cygwin.
28582         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
28583         characters.
28584         Reported by Simon Josefsson.
28585
28586 2010-01-12  Bruno Haible  <bruno@clisp.org>
28587
28588         * tests/test-cond.c (main): When skipping the test, show the reason.
28589
28590 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28591
28592         * lib/striconv.c (str_cd_iconv): Avoid if before free.
28593
28594 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28595
28596         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
28597         VC_LIST_ALWAYS_EXCLUDE_REGEX.
28598
28599 2010-01-12  Eric Blake  <ebb9@byu.net>
28600
28601         build: guarantee AS_VAR_IF
28602         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
28603         (gl_AS_VAR_IF): Move...
28604         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
28605         Reported by Simon Josefsson.
28606
28607 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28608
28609         * lib/stdio.in.h: Fix typo.
28610
28611 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28612
28613         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
28614         libgpg-error.
28615
28616 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28617
28618         * tests/test-xalloc-die.sh: Use $EXEEXT.
28619
28620 2010-01-12  Simon Josefsson  <simon@josefsson.org>
28621             Bruno Haible  <bruno@clisp.org>
28622
28623         getlogin, getlogin_r: Avoid test failure.
28624         * tests/test-getlogin.c: Include <stdio.h>.
28625         (main): Skip the test when the function fails because stdin is not a
28626         tty.
28627         * tests/test-getlogin_r.c: Include <stdio.h>.
28628         (main): Skip the test when the function fails because stdin is not a
28629         tty.
28630
28631 2010-01-11  Eric Blake  <ebb9@byu.net>
28632
28633         tests: avoid more large file warnings
28634         * tests/test-fflush.c: Avoid warning about ftell use.
28635         * tests/test-fseek.c: Avoid warning about fseek use.
28636
28637 2010-01-10  Bruno Haible  <bruno@clisp.org>
28638
28639         nproc: Work better on Linux when /proc and /sys are not mounted.
28640         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
28641         as lower bound when, on glibc/Linux systems,
28642         sysconf (_SC_NPROCESSORS_CONF) returns 1.
28643         Suggested by Pádraig Brady <P@draigbrady.com>.
28644         Reported by Dmitry V. Levin <ldv@altlinux.org>.
28645
28646         nproc: Refactor.
28647         * lib/nproc.c (num_processors_via_affinity_mask): New function,
28648         extracted from num_processors.
28649         (num_processors): Call it.
28650
28651 2010-01-11  Jim Meyering  <meyering@redhat.com>
28652
28653         utimecmp: avoid new warning from upcoming gcc-4.5.0
28654         * lib/utimecmp.c (BILLION): Define using #define rather than an
28655         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
28656
28657 2010-01-11  Eric Blake  <ebb9@byu.net>
28658
28659         math: add portability warnings for classification macros
28660         * modules/math (Depends-on): Add warn-on-use.
28661         (Makefile.am): Provide new substitutions.
28662         * m4/math_h.m4 (gl_MATH_H): Require inline.
28663         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
28664         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
28665         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
28666         implement warnings.
28667
28668         unistd: warn on use of environ without module
28669         * modules/unistd (Depends-on): Add warn-on-use.
28670         (Makefile.am): Provide new substitutions.
28671         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
28672         * lib/unistd.in.h (environ): Wrap with a warning helper function.
28673
28674         stdio: warn on suspicious uses
28675         * modules/stdio (Depends-on): Add warn-on-use.
28676         (Makefile.am): Provide new substitutions.
28677         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
28678         fseeko.
28679         * lib/stdio.in.h (gets): Always warn on use.
28680         (fseek, ftell): Adjust when warnings are issued, and honor
28681         _GL_NO_LARGE_FILES as a way to silence the warning.
28682         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
28683         any warning about large file offsets.
28684         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
28685         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
28686         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
28687         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
28688         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
28689         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
28690         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
28691         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
28692
28693         warn-on-use: new module
28694         * modules/warn-on-use: New file.
28695         * build-aux/warn-on-use.h: Likewise.
28696         * m4/warn-on-use.m4: Likewise.
28697         * MODULES.html.sh (Support for building): Mention it.
28698
28699 2010-01-10  Bruno Haible  <bruno@clisp.org>
28700
28701         Tests for module 'unistr/u32-strdup'.
28702         * modules/unistr/u32-strdup-tests: New file.
28703         * tests/unistr/test-u32-strdup.c: New file.
28704
28705         Tests for module 'unistr/u16-strdup'.
28706         * modules/unistr/u16-strdup-tests: New file.
28707         * tests/unistr/test-u16-strdup.c: New file.
28708
28709         Tests for module 'unistr/u8-strdup'.
28710         * modules/unistr/u8-strdup-tests: New file.
28711         * tests/unistr/test-u8-strdup.c: New file.
28712         * tests/unistr/test-strdup.h: New file.
28713
28714         Tests for module 'unistr/u32-strncmp'.
28715         * modules/unistr/u32-strncmp-tests: New file.
28716         * tests/unistr/test-u32-strncmp.c: New file.
28717
28718         Tests for module 'unistr/u16-strncmp'.
28719         * modules/unistr/u16-strncmp-tests: New file.
28720         * tests/unistr/test-u16-strncmp.c: New file.
28721
28722         Tests for module 'unistr/u8-strncmp'.
28723         * modules/unistr/u8-strncmp-tests: New file.
28724         * tests/unistr/test-u8-strncmp.c: New file.
28725         * tests/unistr/test-strncmp.h: New file.
28726
28727         Tests for module 'unistr/u32-strcoll'.
28728         * modules/unistr/u32-strcoll-tests: New file.
28729         * tests/unistr/test-u32-strcoll.c: New file.
28730
28731         Tests for module 'unistr/u16-strcoll'.
28732         * modules/unistr/u16-strcoll-tests: New file.
28733         * tests/unistr/test-u16-strcoll.c: New file.
28734
28735         Tests for module 'unistr/u8-strcoll'.
28736         * modules/unistr/u8-strcoll-tests: New file.
28737         * tests/unistr/test-u8-strcoll.c: New file.
28738
28739         Tests for module 'unistr/u32-strcmp'.
28740         * modules/unistr/u32-strcmp-tests: New file.
28741         * tests/unistr/test-u32-strcmp.c: New file.
28742         * tests/unistr/test-u32-strcmp.h: New file.
28743
28744         Tests for module 'unistr/u16-strcmp'.
28745         * modules/unistr/u16-strcmp-tests: New file.
28746         * tests/unistr/test-u16-strcmp.c: New file.
28747         * tests/unistr/test-u16-strcmp.h: New file.
28748
28749         Tests for module 'unistr/u8-strcmp'.
28750         * modules/unistr/u8-strcmp-tests: New file.
28751         * tests/unistr/test-u8-strcmp.c: New file.
28752         * tests/unistr/test-u8-strcmp.h: New file.
28753         * tests/unistr/test-strcmp.h: New file.
28754
28755         Tests for module 'unistr/u32-strncat'.
28756         * modules/unistr/u32-strncat-tests: New file.
28757         * tests/unistr/test-u32-strncat.c: New file.
28758
28759         Tests for module 'unistr/u16-strncat'.
28760         * modules/unistr/u16-strncat-tests: New file.
28761         * tests/unistr/test-u16-strncat.c: New file.
28762
28763         Tests for module 'unistr/u8-strncat'.
28764         * modules/unistr/u8-strncat-tests: New file.
28765         * tests/unistr/test-u8-strncat.c: New file.
28766         * tests/unistr/test-strncat.h: New file.
28767
28768         Tests for module 'unistr/u32-strcat'.
28769         * modules/unistr/u32-strcat-tests: New file.
28770         * tests/unistr/test-u32-strcat.c: New file.
28771
28772         Tests for module 'unistr/u16-strcat'.
28773         * modules/unistr/u16-strcat-tests: New file.
28774         * tests/unistr/test-u16-strcat.c: New file.
28775
28776         Tests for module 'unistr/u8-strcat'.
28777         * modules/unistr/u8-strcat-tests: New file.
28778         * tests/unistr/test-u8-strcat.c: New file.
28779         * tests/unistr/test-strcat.h: New file.
28780
28781         Tests for module 'unistr/u32-stpncpy'.
28782         * modules/unistr/u32-stpncpy-tests: New file.
28783         * tests/unistr/test-u32-stpncpy.c: New file.
28784
28785         Tests for module 'unistr/u16-stpncpy'.
28786         * modules/unistr/u16-stpncpy-tests: New file.
28787         * tests/unistr/test-u16-stpncpy.c: New file.
28788
28789         Tests for module 'unistr/u8-stpncpy'.
28790         * modules/unistr/u8-stpncpy-tests: New file.
28791         * tests/unistr/test-u8-stpncpy.c: New file.
28792         * tests/unistr/test-stpncpy.h: New file.
28793
28794         Tests for module 'unistr/u32-strncpy'.
28795         * modules/unistr/u32-strncpy-tests: New file.
28796         * tests/unistr/test-u32-strncpy.c: New file.
28797
28798         Tests for module 'unistr/u16-strncpy'.
28799         * modules/unistr/u16-strncpy-tests: New file.
28800         * tests/unistr/test-u16-strncpy.c: New file.
28801
28802         Tests for module 'unistr/u8-strncpy'.
28803         * modules/unistr/u8-strncpy-tests: New file.
28804         * tests/unistr/test-u8-strncpy.c: New file.
28805         * tests/unistr/test-strncpy.h: New file.
28806
28807         Tests for module 'unistr/u32-stpcpy'.
28808         * modules/unistr/u32-stpcpy-tests: New file.
28809         * tests/unistr/test-u32-stpcpy.c: New file.
28810
28811         Tests for module 'unistr/u16-stpcpy'.
28812         * modules/unistr/u16-stpcpy-tests: New file.
28813         * tests/unistr/test-u16-stpcpy.c: New file.
28814
28815         Tests for module 'unistr/u8-stpcpy'.
28816         * modules/unistr/u8-stpcpy-tests: New file.
28817         * tests/unistr/test-u8-stpcpy.c: New file.
28818         * tests/unistr/test-stpcpy.h: New file.
28819
28820         Tests for module 'unistr/u32-strcpy'.
28821         * modules/unistr/u32-strcpy-tests: New file.
28822         * tests/unistr/test-u32-strcpy.c: New file.
28823
28824         Tests for module 'unistr/u16-strcpy'.
28825         * modules/unistr/u16-strcpy-tests: New file.
28826         * tests/unistr/test-u16-strcpy.c: New file.
28827
28828         Tests for module 'unistr/u8-strcpy'.
28829         * modules/unistr/u8-strcpy-tests: New file.
28830         * tests/unistr/test-u8-strcpy.c: New file.
28831         * tests/unistr/test-strcpy.h: New file.
28832
28833         Tests for module 'unistr/u32-strnlen'.
28834         * modules/unistr/u32-strnlen-tests: New file.
28835         * tests/unistr/test-u32-strnlen.c: New file.
28836
28837         Tests for module 'unistr/u16-strnlen'.
28838         * modules/unistr/u16-strnlen-tests: New file.
28839         * tests/unistr/test-u16-strnlen.c: New file.
28840
28841         Tests for module 'unistr/u8-strnlen'.
28842         * modules/unistr/u8-strnlen-tests: New file.
28843         * tests/unistr/test-u8-strnlen.c: New file.
28844         * tests/unistr/test-strnlen.h: New file.
28845
28846         Tests for module 'unistr/u32-strlen'.
28847         * modules/unistr/u32-strlen-tests: New file.
28848         * tests/unistr/test-u32-strlen.c: New file.
28849
28850         Tests for module 'unistr/u16-strlen'.
28851         * modules/unistr/u16-strlen-tests: New file.
28852         * tests/unistr/test-u16-strlen.c: New file.
28853
28854         Tests for module 'unistr/u8-strlen'.
28855         * modules/unistr/u8-strlen-tests: New file.
28856         * tests/unistr/test-u8-strlen.c: New file.
28857
28858         Tests for module 'unistr/u32-prev'.
28859         * modules/unistr/u32-prev-tests: New file.
28860         * tests/unistr/test-u32-prev.c: New file.
28861
28862         Tests for module 'unistr/u16-prev'.
28863         * modules/unistr/u16-prev-tests: New file.
28864         * tests/unistr/test-u16-prev.c: New file.
28865
28866         Tests for module 'unistr/u8-prev'.
28867         * modules/unistr/u8-prev-tests: New file.
28868         * tests/unistr/test-u8-prev.c: New file.
28869
28870         Tests for module 'unistr/u32-next'.
28871         * modules/unistr/u32-next-tests: New file.
28872         * tests/unistr/test-u32-next.c: New file.
28873
28874         Tests for module 'unistr/u16-next'.
28875         * modules/unistr/u16-next-tests: New file.
28876         * tests/unistr/test-u16-next.c: New file.
28877
28878         Tests for module 'unistr/u8-next'.
28879         * modules/unistr/u8-next-tests: New file.
28880         * tests/unistr/test-u8-next.c: New file.
28881
28882         Tests for module 'unistr/u32-strmbtouc'.
28883         * modules/unistr/u32-strmbtouc-tests: New file.
28884         * tests/unistr/test-u32-strmbtouc.c: New file.
28885
28886         Tests for module 'unistr/u16-strmbtouc'.
28887         * modules/unistr/u16-strmbtouc-tests: New file.
28888         * tests/unistr/test-u16-strmbtouc.c: New file.
28889
28890         Tests for module 'unistr/u8-strmbtouc'.
28891         * modules/unistr/u8-strmbtouc-tests: New file.
28892         * tests/unistr/test-u8-strmbtouc.c: New file.
28893
28894         Tests for module 'unistr/u32-strmblen'.
28895         * modules/unistr/u32-strmblen-tests: New file.
28896         * tests/unistr/test-u32-strmblen.c: New file.
28897
28898         Tests for module 'unistr/u16-strmblen'.
28899         * modules/unistr/u16-strmblen-tests: New file.
28900         * tests/unistr/test-u16-strmblen.c: New file.
28901
28902         Tests for module 'unistr/u8-strmblen'.
28903         * modules/unistr/u8-strmblen-tests: New file.
28904         * tests/unistr/test-u8-strmblen.c: New file.
28905
28906         Tests for module 'unistr/u32-cpy-alloc'.
28907         * modules/unistr/u32-cpy-alloc-tests: New file.
28908         * tests/unistr/test-u32-cpy-alloc.c: New file.
28909
28910         Tests for module 'unistr/u16-cpy-alloc'.
28911         * modules/unistr/u16-cpy-alloc-tests: New file.
28912         * tests/unistr/test-u16-cpy-alloc.c: New file.
28913
28914         Tests for module 'unistr/u8-cpy-alloc'.
28915         * modules/unistr/u8-cpy-alloc-tests: New file.
28916         * tests/unistr/test-u8-cpy-alloc.c: New file.
28917         * tests/unistr/test-cpy-alloc.h: New file.
28918
28919         Tests for module 'unistr/u32-mbsnlen'.
28920         * modules/unistr/u32-mbsnlen-tests: New file.
28921         * tests/unistr/test-u32-mbsnlen.c: New file.
28922
28923         Tests for module 'unistr/u16-mbsnlen'.
28924         * modules/unistr/u16-mbsnlen-tests: New file.
28925         * tests/unistr/test-u16-mbsnlen.c: New file.
28926
28927         Tests for module 'unistr/u8-mbsnlen'.
28928         * modules/unistr/u8-mbsnlen-tests: New file.
28929         * tests/unistr/test-u8-mbsnlen.c: New file.
28930
28931         Tests for module 'unistr/u32-chr'.
28932         * modules/unistr/u32-chr-tests: New file.
28933         * tests/unistr/test-u32-chr.c: New file.
28934
28935         Tests for module 'unistr/u16-chr'.
28936         * modules/unistr/u16-chr-tests: New file.
28937         * tests/unistr/test-u16-chr.c: New file.
28938
28939         Tests for module 'unistr/u8-chr'.
28940         * modules/unistr/u8-chr-tests: New file.
28941         * tests/unistr/test-u8-chr.c: New file.
28942         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
28943
28944         Tests for module 'unistr/u32-cmp2'.
28945         * modules/unistr/u32-cmp2-tests: New file.
28946         * tests/unistr/test-u32-cmp2.c: New file.
28947
28948         Tests for module 'unistr/u16-cmp2'.
28949         * modules/unistr/u16-cmp2-tests: New file.
28950         * tests/unistr/test-u16-cmp2.c: New file.
28951
28952         Tests for module 'unistr/u8-cmp2'.
28953         * modules/unistr/u8-cmp2-tests: New file.
28954         * tests/unistr/test-u8-cmp2.c: New file.
28955         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
28956
28957         Tests for module 'unistr/u32-cmp'.
28958         * modules/unistr/u32-cmp-tests: New file.
28959         * tests/unistr/test-u32-cmp.c: New file.
28960
28961         Tests for module 'unistr/u16-cmp'.
28962         * modules/unistr/u16-cmp-tests: New file.
28963         * tests/unistr/test-u16-cmp.c: New file.
28964
28965         Tests for module 'unistr/u8-cmp'.
28966         * modules/unistr/u8-cmp-tests: New file.
28967         * tests/unistr/test-u8-cmp.c: New file.
28968         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
28969
28970         Tests for module 'unistr/u32-set'.
28971         * modules/unistr/u32-set-tests: New file.
28972         * tests/unistr/test-u32-set.c: New file.
28973
28974         Tests for module 'unistr/u16-set'.
28975         * modules/unistr/u16-set-tests: New file.
28976         * tests/unistr/test-u16-set.c: New file.
28977
28978         Tests for module 'unistr/u8-set'.
28979         * modules/unistr/u8-set-tests: New file.
28980         * tests/unistr/test-u8-set.c: New file.
28981         * tests/unistr/test-set.h: New file.
28982
28983         Tests for module 'unistr/u32-move'.
28984         * modules/unistr/u32-move-tests: New file.
28985         * tests/unistr/test-u32-move.c: New file.
28986
28987         Tests for module 'unistr/u16-move'.
28988         * modules/unistr/u16-move-tests: New file.
28989         * tests/unistr/test-u16-move.c: New file.
28990
28991         Tests for module 'unistr/u8-move'.
28992         * modules/unistr/u8-move-tests: New file.
28993         * tests/unistr/test-u8-move.c: New file.
28994         * tests/unistr/test-move.h: New file.
28995
28996         Tests for module 'unistr/u32-cpy'.
28997         * modules/unistr/u32-cpy-tests: New file.
28998         * tests/unistr/test-u32-cpy.c: New file.
28999
29000         Tests for module 'unistr/u16-cpy'.
29001         * modules/unistr/u16-cpy-tests: New file.
29002         * tests/unistr/test-u16-cpy.c: New file.
29003
29004         Tests for module 'unistr/u8-cpy'.
29005         * modules/unistr/u8-cpy-tests: New file.
29006         * tests/unistr/test-u8-cpy.c: New file.
29007         * tests/unistr/test-cpy.h: New file.
29008
29009 2010-01-09  Bruno Haible  <bruno@clisp.org>
29010
29011         Tests for module 'unistr/u32-uctomb'.
29012         * modules/unistr/u32-uctomb-tests: New file.
29013         * tests/unistr/test-u32-uctomb.c: New file.
29014
29015         Tests for module 'unistr/u16-uctomb'.
29016         * modules/unistr/u16-uctomb-tests: New file.
29017         * tests/unistr/test-u16-uctomb.c: New file.
29018
29019         Tests for module 'unistr/u8-uctomb'.
29020         * modules/unistr/u8-uctomb-tests: New file.
29021         * tests/unistr/test-u8-uctomb.c: New file.
29022
29023         Tests for module 'unistr/u32-mbtoucr'.
29024         * modules/unistr/u32-mbtoucr-tests: New file.
29025         * tests/unistr/test-u32-mbtoucr.c: New file.
29026
29027         Tests for module 'unistr/u16-mbtoucr'.
29028         * modules/unistr/u16-mbtoucr-tests: New file.
29029         * tests/unistr/test-u16-mbtoucr.c: New file.
29030
29031         Tests for module 'unistr/u8-mbtoucr'.
29032         * modules/unistr/u8-mbtoucr-tests: New file.
29033         * tests/unistr/test-u8-mbtoucr.c: New file.
29034
29035         Tests for module 'unistr/u32-mbtouc'.
29036         * modules/unistr/u32-mbtouc-tests: New file.
29037         * tests/unistr/test-u32-mbtouc.c: New file.
29038
29039         Tests for module 'unistr/u16-mbtouc'.
29040         * modules/unistr/u16-mbtouc-tests: New file.
29041         * tests/unistr/test-u16-mbtouc.c: New file.
29042
29043         Tests for module 'unistr/u8-mbtouc'.
29044         * modules/unistr/u8-mbtouc-tests: New file.
29045         * tests/unistr/test-u8-mbtouc.c: New file.
29046
29047         Tests for module 'unistr/u32-mbtouc-unsafe'.
29048         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
29049         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
29050         * tests/unistr/test-u32-mbtouc.h: New file.
29051
29052         Tests for module 'unistr/u16-mbtouc-unsafe'.
29053         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
29054         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
29055         * tests/unistr/test-u16-mbtouc.h: New file.
29056
29057         Tests for module 'unistr/u8-mbtouc-unsafe'.
29058         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
29059         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
29060         * tests/unistr/test-u8-mbtouc.h: New file.
29061
29062         Tests for module 'unistr/u32-mblen'.
29063         * modules/unistr/u32-mblen-tests: New file.
29064         * tests/unistr/test-u32-mblen.c: New file.
29065
29066         Tests for module 'unistr/u16-mblen'.
29067         * modules/unistr/u16-mblen-tests: New file.
29068         * tests/unistr/test-u16-mblen.c: New file.
29069
29070         Tests for module 'unistr/u8-mblen'.
29071         * modules/unistr/u8-mblen-tests: New file.
29072         * tests/unistr/test-u8-mblen.c: New file.
29073
29074         Tests for module 'unistr/u32-to-u16'.
29075         * modules/unistr/u32-to-u16-tests: New file.
29076         * tests/unistr/test-u32-to-u16.c: New file.
29077
29078         Tests for module 'unistr/u32-to-u8'.
29079         * modules/unistr/u32-to-u8-tests: New file.
29080         * tests/unistr/test-u32-to-u8.c: New file.
29081
29082         Tests for module 'unistr/u16-to-u32'.
29083         * modules/unistr/u16-to-u32-tests: New file.
29084         * tests/unistr/test-u16-to-u32.c: New file.
29085
29086         Tests for module 'unistr/u16-to-u8'.
29087         * modules/unistr/u16-to-u8-tests: New file.
29088         * tests/unistr/test-u16-to-u8.c: New file.
29089
29090         Tests for module 'unistr/u8-to-u32'.
29091         * modules/unistr/u8-to-u32-tests: New file.
29092         * tests/unistr/test-u8-to-u32.c: New file.
29093
29094         Tests for module 'unistr/u8-to-u16'.
29095         * modules/unistr/u8-to-u16-tests: New file.
29096         * tests/unistr/test-u8-to-u16.c: New file.
29097
29098         Tests for module 'unistr/u32-check'.
29099         * modules/unistr/u32-check-tests: New file.
29100         * tests/unistr/test-u32-check.c: New file.
29101
29102         Tests for module 'unistr/u16-check'.
29103         * modules/unistr/u16-check-tests: New file.
29104         * tests/unistr/test-u16-check.c: New file.
29105
29106         Tests for module 'unistr/u8-check'.
29107         * modules/unistr/u8-check-tests: New file.
29108         * tests/unistr/test-u8-check.c: New file.
29109
29110         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
29111         (category_equals): New function.
29112         (main): Add more tests.
29113         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
29114
29115         * tests/unictype/test-bidi_byname.c (main): Add more tests.
29116
29117 2010-01-10  Bruno Haible  <bruno@clisp.org>
29118
29119         unistr/u*-strcoll: Try harder to distinguish different strings.
29120         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
29121         compare s1 and s2 to see if they are different.
29122
29123 2010-01-10  Bruno Haible  <bruno@clisp.org>
29124
29125         unistr/u*-stpncpy: Fix the return value.
29126         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
29127         description of the return value consistent with stpncpy in glibc.
29128         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
29129         written non-NUL unit.
29130
29131 2010-01-10  Bruno Haible  <bruno@clisp.org>
29132
29133         unistr/u*-next: Add missing dependencies.
29134         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
29135         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
29136         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
29137
29138 2010-01-10  Bruno Haible  <bruno@clisp.org>
29139
29140         unistr/u8-mbsnlen: Fix return value for incomplete character.
29141         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
29142         u8_mblen.
29143         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
29144         Remove unistr/u8-mblen.
29145         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
29146         u16_mblen.
29147         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
29148         Remove unistr/u16-mblen.
29149
29150 2010-01-10  Bruno Haible  <bruno@clisp.org>
29151
29152         wchar: Fix compilation error when <wchar.h> is used from coreutils.
29153         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
29154         Reported by Brian Gough <bjg@gnu.org> and
29155         Chris Clayton <chris2553@googlemail.com> via
29156         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
29157
29158 2010-01-09  Bruno Haible  <bruno@clisp.org>
29159
29160         unistr/u16-to-u32: Reject invalid input.
29161         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
29162         u16_mbtouc.
29163         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
29164         Remove unistr/u16-mbtouc.
29165
29166         unistr/u16-to-u8: Reject invalid input.
29167         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
29168         u16_mbtouc.
29169         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
29170         Remove unistr/u16-mbtouc.
29171
29172         unistr/u8-to-u32: Reject invalid input.
29173         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
29174         u8_mbtouc.
29175         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
29176         Remove unistr/u8-mbtouc.
29177
29178         unistr/u8-to-u16: Reject invalid input.
29179         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
29180         u8_mbtouc.
29181         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
29182         Remove unistr/u8-mbtouc.
29183
29184 2010-01-09  Bruno Haible  <bruno@clisp.org>
29185
29186         Tests for module 'getlogin'.
29187         * modules/getlogin-tests: New file.
29188         * tests/test-getlogin.c: New file.
29189
29190         New module 'getlogin'.
29191         * lib/unistd.in.h (getlogin): New declaration.
29192         * lib/getlogin.c: New file.
29193         * m4/getlogin.m4: New file.
29194         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
29195         HAVE_GETLOGIN.
29196         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
29197         HAVE_GETLOGIN.
29198         * modules/getlogin: New file.
29199         * doc/posix-functions/getlogin.texi: Mention the new module.
29200         Reported by John W. Eaton <jwe@gnu.org>.
29201
29202 2010-01-09  Bruno Haible  <bruno@clisp.org>
29203
29204         getlogin_r: Support for native Windows.
29205         * lib/getlogin_r.c: Include <windows.h>
29206         (getlogin_r): Implement for native Windows.
29207         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
29208         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
29209         via John W. Eaton <jwe@gnu.org>.
29210
29211 2010-01-09  Bruno Haible  <bruno@clisp.org>
29212
29213         getlogin_r: Small fixes.
29214         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
29215         succeeds.
29216         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
29217         before testing whether getlogin_r is declared. No need to set
29218         HAVE_DECL_GETLOGIN_R to 1.
29219         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
29220
29221 2010-01-09  Bruno Haible  <bruno@clisp.org>
29222
29223         * lib/unistd.in.h (getlogin_r): Add comment.
29224
29225 2010-01-09  Bruno Haible  <bruno@clisp.org>
29226
29227         Tests for module 'getlogin_r'.
29228         * modules/getlogin_r-tests: New file.
29229         * tests/test-getlogin_r.c: New file.
29230
29231 2010-01-09  Jim Meyering  <meyering@redhat.com>
29232
29233         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
29234         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
29235         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
29236
29237 2010-01-08  Simon Josefsson  <simon@josefsson.org>
29238
29239         * lib/dup2.c (rpl_dup2): Improve comment.
29240
29241 2010-01-08  Eric Blake  <ebb9@byu.net>
29242
29243         maint.mk: allow packages to add makefile @@ exceptions
29244         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
29245         (sc_makefile_check): Rename...
29246         (sc_makefile_at_at_check): ...to this, and use hook.
29247
29248         dup2: work around mingw bug
29249         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
29250         Reported by Simon Josefsson.
29251
29252 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
29253
29254         glob: Fix C++ compilation.
29255         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
29256         C++.
29257
29258 2010-01-07  Bruno Haible  <bruno@clisp.org>
29259
29260         Fix indentation of wctype.in.h, broken since 2007-01-06.
29261         * lib/wctype.in.h: Fix indentation of preprocessor directives.
29262
29263 2010-01-07  Bruno Haible  <bruno@clisp.org>
29264
29265         mbslen: Avoid collision with system function.
29266         * lib/string.in.h [MirBSD]: Include <wchar.h>.
29267         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
29268         * m4/mbslen.m4: New file.
29269         * modules/mbslen (Files): Add it.
29270         (configure.ac): Invoke gl_MBSLEN.
29271         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
29272         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
29273         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
29274         via Ian Beckwith <ianb@erislabs.net>.
29275
29276 2010-01-07  Bruno Haible  <bruno@clisp.org>
29277
29278         dirent: Document the last fix.
29279         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
29280
29281 2010-01-07  Bruno Haible  <bruno@clisp.org>
29282
29283         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
29284         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
29285         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
29286         va_list are defined.
29287         * doc/posix-headers/stdio.texi: Document the bug of missing types.
29288         Reported by Eric Blake.
29289
29290 2010-01-07  Bruno Haible  <bruno@clisp.org>
29291
29292         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
29293         * modules/xlist (Depends-on): Add 'list',
29294         * modules/xoset (Depends-on): Add 'oset'.
29295         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29296
29297 2010-01-07  Bruno Haible  <bruno@clisp.org>
29298
29299         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
29300         * doc/posix-functions/strncasecmp.texi: Likewise.
29301
29302 2010-01-07  Bruno Haible  <bruno@clisp.org>
29303
29304         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
29305
29306 2010-01-07  John W. Eaton  <jwe@octave.org>
29307
29308         wctype: allow C++ use
29309         * lib/wctype.in.h: Add extern "C" block for C++.
29310
29311 2010-01-06  Eric Blake  <ebb9@byu.net>
29312
29313         maint.mk: detect incorrect GFDL usage
29314         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
29315
29316 2010-01-06  Jim Meyering  <meyering@redhat.com>
29317         and Eric Blake  <ebb9@byu.net>
29318
29319         maint.mk: ignore multi-line copyright in NEWS
29320         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
29321
29322 2010-01-06  Eric Blake  <ebb9@byu.net>
29323
29324         select: add missing dependency
29325         * modules/select-tests (Depends-on): Move sockets dependency...
29326         * modules/select (Depends-on): ...here.
29327         Reported by Ian Beckwith.
29328
29329         doc: regenerate INSTALL
29330         * doc/INSTALL: Reflect recent autoconf update.
29331         * doc/INSTALL.ISO: Likewise.
29332         * doc/INSTALL.UTF-8: Likewise.
29333
29334         pread: fix compilation on glibc
29335         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
29336         Reported by Ralf Wildenhues.
29337
29338         dirent: fix test failure
29339         * lib/dirent.in.h (includes): Guarantee ino_t.
29340         Reported by Ralf Wildenhues.
29341
29342 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
29343
29344         linkat, renameat: avoid bad free
29345         * lib/at-func2.c (at_func2): Fix typo.
29346         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
29347
29348 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29349
29350         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
29351         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
29352         to avoid failure of symlink test later.
29353
29354 2010-01-06  Eric Blake  <ebb9@byu.net>
29355
29356         stdio, unistd: guarantee ssize_t
29357         * lib/unistd.in.h (includes): Ensure that types required by POSIX
29358         2008 are exposed when needed.
29359         * lib/stdio.in.h (includes): Likewise.
29360         Reported by Ralf Wildenhues.
29361
29362 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
29363
29364         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
29365         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
29366         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
29367
29368 2010-01-06  Jim Meyering  <meyering@redhat.com>
29369
29370         readtokens: this module *does* require xalloc.h
29371         It uses only functions that were omitted by the old syntax-check rule.
29372         * lib/readtokens.c: Include "xalloc.h" once again.
29373         * modules/readtokens (Depends-on): Add xalloc.
29374         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
29375
29376 2010-01-05  Eric Blake  <ebb9@byu.net>
29377
29378         maint: support 'make announcement' from a VPATH build
29379         * top/maint.mk (announcement): Look for correct NEWS file.
29380
29381 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
29382
29383         utimens (fdutimens): ignore a negative FD, per contract
29384         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
29385         when we have a valid file descriptor.  Otherwise, using a brand
29386         new glibc (with just-patched futimens that now fails with EBADF)
29387         would cause this function to fail with ENOSYS.
29388         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
29389         See also http://bugzilla.redhat.com/552320.
29390
29391 2010-01-05  Eric Blake  <ebb9@byu.net>
29392
29393         strcase: document what it provides
29394         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
29395         gnulib module.
29396         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
29397         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
29398
29399 2010-01-05  Jim Meyering  <meyering@redhat.com>
29400
29401         maint: remove useless inclusions of "xalloc.h"
29402         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
29403         * lib/readtokens.c: Likewise.
29404         * lib/same.c: Likewise.
29405         * modules/getloadavg (Depends-on): Remove xalloc.
29406         * modules/readtokens: Likewise.
29407         * modules/same: Likewise.
29408
29409         maint.mk: include 4 more function names in alloca.h-checking regexp
29410         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
29411         regexp.  Before, we would give a false-positive (saying alloca.h
29412         is included unnecessarily) when the only uses involved omitted symbols.
29413
29414         xalloc.h: use consistent formatting
29415         * lib/xalloc.h: Move declarations to start in the first column.
29416
29417 2010-01-05  Eric Blake  <ebb9@byu.net>
29418
29419         mkdir: avoid xalloc
29420         * lib/mkdir.c (includes): Drop unused header.
29421         Reported by John W. Eaton.
29422
29423 2010-01-04  Jim Meyering  <meyering@redhat.com>
29424
29425         nl_langinfo: avoid configure-time syntax error
29426         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
29427         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
29428         the empty string.  Don't let that provoke a shell syntax error.
29429
29430         regcomp, regexec, fnmatch: avoid array bounds read error
29431         * lib/regcomp.c (build_equiv_class): From glibc:
29432         Use only the low 24 bits of a findidx return value as an index
29433         into the weights array.  Patch by Ulrich Drepper:
29434         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
29435         * lib/regexec.c (check_node_accept_bytes): Likewise.
29436         * lib/fnmatch_loop.c (FCT): Likewise.
29437
29438         regcomp: skip collseq lookup when there are no rules
29439         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
29440         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
29441
29442         regcomp: recognize ill-formed { } expressions
29443         * lib/regcomp.c (parse_dup_op): From glibc:
29444         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
29445
29446         regcomp: fix typo in comment
29447         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
29448         s/satisfy/satisfies/.
29449
29450         regcomp: sync from glibc: remove dead store
29451         * lib/regcomp.c (duplicate_node_closure): Remove useless
29452         search_duplicated_node call and dead store.
29453
29454         regcomp: sync from glibc; always use nl_langinfo
29455         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
29456         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
29457         * modules/regex (Depends-on): Add nl_langinfo.
29458
29459 2010-01-04  Eric Blake  <ebb9@byu.net>
29460
29461         fdopendir: fix configure test
29462         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
29463
29464 2010-01-01  Bruno Haible  <bruno@clisp.org>
29465
29466         wchar: Remove unused configure check.
29467         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
29468
29469 2010-01-01  Eric Blake  <ebb9@byu.net>
29470
29471         headers: make check of system header explicit
29472         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
29473         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
29474         ourselves.
29475         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
29476         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29477         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
29478         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
29479         internals.
29480         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
29481         missing.
29482         Suggested by Bruno Haible.
29483
29484 2010-01-01  Jim Meyering  <meyering@redhat.com>
29485
29486         ChangeLog: tweak to eliminate unnecessary copyright line
29487         * ChangeLog: Remove a copyright line that was mistakenly updated
29488         by today's update-copyright run.  Reported by Eric Blake.
29489
29490         test-update-copyright: don't let envvar setting cause test failure
29491         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
29492
29493 2010-01-01  Bruno Haible  <bruno@clisp.org>
29494
29495         localename: Avoid gcc warning.
29496         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
29497         function if it is not used.
29498
29499 2010-01-01  Jim Meyering  <meyering@redhat.com>
29500
29501         update nearly all FSF copyright year lists to include 2010
29502         Use the same procedure as for 2009, outlined in
29503         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
29504
29505         version-etc: set COPYRIGHT_YEAR to 2010
29506         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
29507
29508 2009-12-31  Eric Blake  <ebb9@byu.net>
29509
29510         doc: correct availability of cygwin 1.5.x getopt
29511         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
29512         variables.
29513         * doc/posix-functions/opterr.texi (opterr): Likewise.
29514         * doc/posix-functions/optind.texi (optind): Likewise.
29515         * doc/posix-functions/optopt.texi (optopt): Likewise.
29516         * doc/posix-functions/tzname.texi (tzname): Likewise.
29517
29518         openat: update maintainer
29519         * modules/openat (Maintainer): Add myself.
29520
29521         utimens: avoid shadowing warning
29522         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
29523         buffers into one, to avoid shadowing, as well as avoiding a
29524         redundant stat.
29525         Reported by Jim Meyering.
29526
29527         test-dup2: avoid compiler warning
29528         * tests/test-dup2.c (is_inheritable): Only define if used.
29529
29530 2010-01-01  Bruno Haible  <bruno@clisp.org>
29531
29532         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
29533         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
29534         defined, use wctomb instead of wcrtomb.
29535
29536 2010-01-01  Bruno Haible  <bruno@clisp.org>
29537
29538         iconv: Reject native Solaris iconv.
29539         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
29540         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
29541
29542 2009-12-31  Bruno Haible  <bruno@clisp.org>
29543
29544         * tests/test-signal.c (main): Remove test of 'SIG'.
29545
29546 2009-12-31  Bruno Haible  <bruno@clisp.org>
29547
29548         spawn: Fix incomplete fix.
29549         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29550         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29551         warnings for GNULIB_POSIXCHECK again.
29552         Reported by Eric Blake.
29553
29554 2009-12-31  Bruno Haible  <bruno@clisp.org>
29555
29556         Avoid namespace pollution on glibc systems.
29557         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
29558         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
29559         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
29560         glibc systems.
29561
29562 2009-12-31  Bruno Haible  <bruno@clisp.org>
29563
29564         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
29565         (gl_REPLACE_WCHAR_H): Turn into a no-op.
29566         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
29567         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
29568         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
29569         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
29570         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
29571
29572 2009-12-31  Bruno Haible  <bruno@clisp.org>
29573
29574         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
29575         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
29576         afterwards.
29577
29578 2009-12-31  Bruno Haible  <bruno@clisp.org>
29579
29580         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
29581         SYS_UTSNAME_H.
29582
29583 2009-12-31  Bruno Haible  <bruno@clisp.org>
29584
29585         spawn: Fix misapplied patch.
29586         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
29587         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
29588         warnings for GNULIB_POSIXCHECK.
29589
29590 2009-12-31  Bruno Haible  <bruno@clisp.org>
29591
29592         times: Update after sys_times changed.
29593         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
29594         * modules/times (Files): Add it.
29595         (configure.ac): Invoke gl_FUNC_TIMES.
29596
29597 2009-12-31  Bruno Haible  <bruno@clisp.org>
29598
29599         Use AC_C_INLINE where necessary.
29600         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
29601         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
29602         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
29603         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
29604         * m4/mbfile.m4 (gl_MBFILE): Likewise.
29605         * m4/mbiter.m4 (gl_MBITER): Likewise.
29606         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
29607         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
29608         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
29609         * modules/u64 (configure.ac): Likewise.
29610
29611 2009-12-31  Bruno Haible  <bruno@clisp.org>
29612
29613         Use AC_C_INLINE instead of module 'inline' where possible.
29614         * modules/inline (Description): Clarify purpose.
29615         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
29616         * modules/count-one-bits (Depends-on): Remove inline.
29617         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
29618         * modules/openat (Depends-on): Remove inline.
29619         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
29620         instead of depending on module 'inline'.
29621         * modules/filevercmp (Depends-on, configure.ac): Likewise.
29622         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
29623         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
29624         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
29625         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
29626         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
29627         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
29628         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
29629         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
29630         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
29631         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
29632         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
29633         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
29634         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
29635         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
29636         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
29637         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
29638         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
29639         Likewise.
29640         * modules/unictype/property-ascii-hex-digit (Depends-on,
29641         configure.ac): Likewise.
29642         * modules/unictype/property-bidi-arabic-digit (Depends-on,
29643         configure.ac): Likewise.
29644         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
29645         configure.ac): Likewise.
29646         * modules/unictype/property-bidi-block-separator (Depends-on,
29647         configure.ac): Likewise.
29648         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
29649         configure.ac): Likewise.
29650         * modules/unictype/property-bidi-common-separator (Depends-on,
29651         configure.ac): Likewise.
29652         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
29653         Likewise.
29654         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
29655         configure.ac): Likewise.
29656         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
29657         configure.ac): Likewise.
29658         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
29659         configure.ac): Likewise.
29660         * modules/unictype/property-bidi-european-digit (Depends-on,
29661         configure.ac): Likewise.
29662         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
29663         configure.ac): Likewise.
29664         * modules/unictype/property-bidi-left-to-right (Depends-on,
29665         configure.ac): Likewise.
29666         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
29667         configure.ac): Likewise.
29668         * modules/unictype/property-bidi-other-neutral (Depends-on,
29669         configure.ac): Likewise.
29670         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
29671         Likewise.
29672         * modules/unictype/property-bidi-segment-separator (Depends-on,
29673         configure.ac): Likewise.
29674         * modules/unictype/property-bidi-whitespace (Depends-on,
29675         configure.ac): Likewise.
29676         * modules/unictype/property-combining (Depends-on, configure.ac):
29677         Likewise.
29678         * modules/unictype/property-composite (Depends-on, configure.ac):
29679         Likewise.
29680         * modules/unictype/property-currency-symbol (Depends-on,
29681         configure.ac): Likewise.
29682         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
29683         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
29684         Likewise.
29685         * modules/unictype/property-default-ignorable-code-point (Depends-on,
29686         configure.ac): Likewise.
29687         * modules/unictype/property-deprecated (Depends-on, configure.ac):
29688         Likewise.
29689         * modules/unictype/property-diacritic (Depends-on, configure.ac):
29690         Likewise.
29691         * modules/unictype/property-extender (Depends-on, configure.ac):
29692         Likewise.
29693         * modules/unictype/property-format-control (Depends-on, configure.ac):
29694         Likewise.
29695         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
29696         Likewise.
29697         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
29698         Likewise.
29699         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
29700         Likewise.
29701         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
29702         Likewise.
29703         * modules/unictype/property-hyphen (Depends-on, configure.ac):
29704         Likewise.
29705         * modules/unictype/property-id-continue (Depends-on, configure.ac):
29706         Likewise.
29707         * modules/unictype/property-id-start (Depends-on, configure.ac):
29708         Likewise.
29709         * modules/unictype/property-ideographic (Depends-on, configure.ac):
29710         Likewise.
29711         * modules/unictype/property-ids-binary-operator (Depends-on,
29712         configure.ac): Likewise.
29713         * modules/unictype/property-ids-trinary-operator (Depends-on,
29714         configure.ac): Likewise.
29715         * modules/unictype/property-ignorable-control (Depends-on,
29716         configure.ac): Likewise.
29717         * modules/unictype/property-iso-control (Depends-on, configure.ac):
29718         Likewise.
29719         * modules/unictype/property-join-control (Depends-on, configure.ac):
29720         Likewise.
29721         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
29722         Likewise.
29723         * modules/unictype/property-line-separator (Depends-on, configure.ac):
29724         Likewise.
29725         * modules/unictype/property-logical-order-exception (Depends-on,
29726         configure.ac): Likewise.
29727         * modules/unictype/property-lowercase (Depends-on, configure.ac):
29728         Likewise.
29729         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
29730         * modules/unictype/property-non-break (Depends-on, configure.ac):
29731         Likewise.
29732         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
29733         Likewise.
29734         * modules/unictype/property-numeric (Depends-on, configure.ac):
29735         Likewise.
29736         * modules/unictype/property-other-alphabetic (Depends-on,
29737         configure.ac): Likewise.
29738         * modules/unictype/property-other-default-ignorable-code-point
29739         (Depends-on, configure.ac): Likewise.
29740         * modules/unictype/property-other-grapheme-extend (Depends-on,
29741         configure.ac): Likewise.
29742         * modules/unictype/property-other-id-continue (Depends-on,
29743         configure.ac): Likewise.
29744         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
29745         Likewise.
29746         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
29747         Likewise.
29748         * modules/unictype/property-other-math (Depends-on, configure.ac):
29749         Likewise.
29750         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
29751         Likewise.
29752         * modules/unictype/property-paired-punctuation (Depends-on,
29753         configure.ac): Likewise.
29754         * modules/unictype/property-paragraph-separator (Depends-on,
29755         configure.ac): Likewise.
29756         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
29757         Likewise.
29758         * modules/unictype/property-pattern-white-space (Depends-on,
29759         configure.ac): Likewise.
29760         * modules/unictype/property-private-use (Depends-on, configure.ac):
29761         Likewise.
29762         * modules/unictype/property-punctuation (Depends-on, configure.ac):
29763         Likewise.
29764         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
29765         Likewise.
29766         * modules/unictype/property-radical (Depends-on, configure.ac):
29767         Likewise.
29768         * modules/unictype/property-sentence-terminal (Depends-on,
29769         configure.ac): Likewise.
29770         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
29771         Likewise.
29772         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
29773         * modules/unictype/property-terminal-punctuation (Depends-on,
29774         configure.ac): Likewise.
29775         * modules/unictype/property-titlecase (Depends-on, configure.ac):
29776         Likewise.
29777         * modules/unictype/property-unassigned-code-value (Depends-on,
29778         configure.ac): Likewise.
29779         * modules/unictype/property-unified-ideograph (Depends-on,
29780         configure.ac): Likewise.
29781         * modules/unictype/property-uppercase (Depends-on, configure.ac):
29782         Likewise.
29783         * modules/unictype/property-variation-selector (Depends-on,
29784         configure.ac): Likewise.
29785         * modules/unictype/property-white-space (Depends-on, configure.ac):
29786         Likewise.
29787         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
29788         Likewise.
29789         * modules/unictype/property-xid-start (Depends-on, configure.ac):
29790         Likewise.
29791         * modules/unictype/property-zero-width (Depends-on, configure.ac):
29792         Likewise.
29793         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
29794         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
29795         Likewise.
29796
29797 2009-12-31  Bruno Haible  <bruno@clisp.org>
29798
29799         Remove unnecessary AC_C_INLINE invocation.
29800         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
29801         since 2009-08-21.
29802
29803 2009-12-31  Jim Meyering  <meyering@redhat.com>
29804
29805         maint.mk: don't require explicit gpg_key_ID in cfg.mk
29806         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
29807         With this change, we can all remove the gpg_key_ID = ... definition
29808         from our respective cfg.mk files.
29809
29810         maint.mk: create announcement template in ~/, not in /tmp
29811         * top/maint.mk (emit_upload_commands): Adjust.
29812         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
29813         Remove temporary file, .ci-msg.
29814
29815 2009-12-31  Eric Blake  <ebb9@byu.net>
29816
29817         link-warning: always build headers with link warnings
29818         * modules/arpa_inet (Makefile.am): Always build replacement
29819         header.
29820         * modules/ctype (Makefile.am): Likewise.
29821         * modules/dirent (Makefile.am): Likewise.
29822         * modules/inttypes (Makefile.am): Likewise.
29823         * modules/langinfo (Makefile.am): Likewise.
29824         * modules/locale (Makefile.am): Likewise.
29825         * modules/spawn (Makefile.am): Likewise.
29826         * modules/sys_file (Makefile.am): Likewise.
29827         * modules/sys_ioctl (Makefile.am): Likewise.
29828         * modules/sys_select (Makefile.am): Likewise.
29829         * modules/sys_socket (Makefile.am): Likewise.
29830         * modules/sys_times (Makefile.am): Likewise.
29831         * modules/sys_utsname (Makefile.am): Likewise.
29832         * modules/sys_wait (Makefile.am): Likewise.
29833         * modules/wchar (Makefile.am): Likewise.
29834         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
29835         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
29836         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
29837         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
29838         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
29839         Likewise.
29840         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29841         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29842         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
29843         Likewise.
29844         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
29845         Likewise.
29846         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
29847         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
29848         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
29849         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29850         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29851         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29852         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29853         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
29854         (gl_WCHAR_H_DEFAULTS): Likewise.
29855
29856 2009-12-31  Eric Blake  <ebb9@byu.net>
29857
29858         signal, spawn: use link warnings
29859         * lib/signal.in.h (sigset_t): Make unconditional.
29860         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
29861         (sigpending, sigprocmask, sigaction): Add link warnings.
29862         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
29863         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
29864         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
29865         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
29866         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
29867         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
29868         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
29869         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
29870         (posix_spawn_file_actions_destroy)
29871         (posix_spawn_file_actions_addopen)
29872         (posix_spawn_file_actions_addclose)
29873         (posix_spawn_file_actions_adddup2): Likewise.
29874         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
29875         * tests/test-signal.c (main): Enhance test.
29876
29877         spawn: improve wrapper support
29878         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
29879         (gl_SPAWN_H_DEFAULTS): New defaults.
29880         * modules/spawn (Makefile.am): Substitute them.
29881         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
29882         Only declare if missing or broken.
29883
29884         sys_times, sys_utsname: use include_next
29885         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
29886         header.
29887         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
29888         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
29889         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
29890         * modules/sys_times (Depends-on): Add include_next.
29891         (Makefile.am): Substitute additional values.
29892         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29893         * lib/sys_times.in.h (includes): Include native header, if
29894         available.
29895         * lib/sys_utsname.in.h (includes): Likewise.
29896         * tests/test-sys_times.c (main): Enhance test.
29897
29898         fdutimensat: revert prior patch
29899         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
29900         utimens.h.
29901         Reported by Bruno Haible.
29902
29903 2009-12-30  Eric Blake  <ebb9@byu.net>
29904
29905         sys_wait: drop link-warning dependency
29906         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
29907         link-warning efforts.
29908         * lib/sys_wait.in.h: Likewise.
29909
29910         fdutimensat: remove bogus dependency
29911         * modules/fdutimensat (Depends-on): Drop inline.
29912
29913         unistd: fix typo
29914         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
29915
29916 2009-12-30  Bruno Haible  <bruno@clisp.org>
29917
29918         Fix compilation error with Solaris cc.
29919         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
29920         * lib/unicase/u16-is-invariant.c: Likewise.
29921         * lib/unicase/u32-is-invariant.c: Likewise.
29922         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
29923
29924 2009-12-30  Bruno Haible  <bruno@clisp.org>
29925
29926         Fix test crash.
29927         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
29928         locales.
29929         Reported by Simon Josefsson <simon@josefsson.org>.
29930
29931 2009-12-30  Bruno Haible  <bruno@clisp.org>
29932
29933         Fix compilation error on most platforms.
29934         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
29935         Reported by Simon Josefsson <simon@josefsson.org>
29936         and Nelson H. F. Beebe <beebe@math.utah.edu>.
29937
29938 2009-12-30  Eric Blake  <ebb9@byu.net>
29939
29940         futimens, utimensat: work around ntfs-3g bug
29941         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
29942         a ctime bug is present, and expand workaround to cover ntfs-3g.
29943         * lib/utimens.c (fdutimens, lutimens): Likewise.
29944         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
29945         (validate_timespec): Adjust return value.
29946         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
29947         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29948         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
29949
29950 2009-12-29  Eric Blake  <ebb9@byu.net>
29951
29952         link-warning: make usage consistent
29953         * modules/ctype (Depends-on): Add link-warning.
29954         (Makefile.am): Update rules accordingly.
29955         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29956         * modules/locale (Depends-on, Makefile.am): Likewise.
29957         * modules/sys_file (Makefile.am): Likewise.
29958         * modules/getopt-posix (Makefile.am): Delete unused link warning
29959         efforts.
29960         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
29961         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
29962         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
29963         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
29964
29965         stdio: remove unused variables
29966         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
29967         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
29968         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29969
29970         tests: test more substitute headers
29971         * modules/ctype-tests: New file.
29972         * modules/dirent-tests: Likewise.
29973         * modules/spawn-tests: Likewise.
29974         * modules/sys_file-tests: Likewise.
29975         * modules/sys_ioctl-tests: Likewise.
29976         * modules/sys_wait-tests: Likewise.
29977         * tests/test-ctype.c: Likewise.
29978         * tests/test-dirent.c: Likewise.
29979         * tests/test-spawn.c: Likewise.
29980         * tests/test-sys_file.c: Likewise.
29981         * tests/test-sys_ioctl.c: Likewise.
29982         * tests/test-sys_wait.c: Likewise.
29983         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
29984         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
29985         whether or not flock is in use.
29986
29987         tests: remove License section from module
29988         * modules/arpa_inet-tests: Remove unneeded section.
29989         * modules/byteswap-tests: Likewise.
29990         * modules/ceilf-tests: Likewise.
29991         * modules/ceill-tests: Likewise.
29992         * modules/crypto/des-tests: Likewise.
29993         * modules/crypto/gc-arcfour-tests: Likewise.
29994         * modules/crypto/gc-arctwo-tests: Likewise.
29995         * modules/crypto/gc-des-tests: Likewise.
29996         * modules/crypto/gc-hmac-md5-tests: Likewise.
29997         * modules/crypto/gc-hmac-sha1-tests: Likewise.
29998         * modules/crypto/gc-md2-tests: Likewise.
29999         * modules/crypto/gc-md4-tests: Likewise.
30000         * modules/crypto/gc-md5-tests: Likewise.
30001         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
30002         * modules/crypto/gc-rijndael-tests: Likewise.
30003         * modules/crypto/gc-sha1-tests: Likewise.
30004         * modules/crypto/gc-tests: Likewise.
30005         * modules/crypto/md2-tests: Likewise.
30006         * modules/crypto/md4-tests: Likewise.
30007         * modules/fcntl-h-tests: Likewise.
30008         * modules/floorf-tests: Likewise.
30009         * modules/floorl-tests: Likewise.
30010         * modules/frexp-nolibm-tests: Likewise.
30011         * modules/frexp-tests: Likewise.
30012         * modules/frexpl-nolibm-tests: Likewise.
30013         * modules/frexpl-tests: Likewise.
30014         * modules/getaddrinfo-tests: Likewise.
30015         * modules/inttypes-tests: Likewise.
30016         * modules/isfinite-tests: Likewise.
30017         * modules/isinf-tests: Likewise.
30018         * modules/ldexpl-tests: Likewise.
30019         * modules/locale-tests: Likewise.
30020         * modules/math-tests: Likewise.
30021         * modules/netdb-tests: Likewise.
30022         * modules/netinet_in-tests: Likewise.
30023         * modules/printf-frexp-tests: Likewise.
30024         * modules/printf-frexpl-tests: Likewise.
30025         * modules/priv-set-tests: Likewise.
30026         * modules/random_r-tests: Likewise.
30027         * modules/round-tests: Likewise.
30028         * modules/roundf-tests: Likewise.
30029         * modules/roundl-tests: Likewise.
30030         * modules/search-tests: Likewise.
30031         * modules/select-tests: Likewise.
30032         * modules/signal-tests: Likewise.
30033         * modules/stdbool-tests: Likewise.
30034         * modules/stddef-tests: Likewise.
30035         * modules/stdint-tests: Likewise.
30036         * modules/stdio-tests: Likewise.
30037         * modules/stdlib-tests: Likewise.
30038         * modules/string-tests: Likewise.
30039         * modules/strings-tests: Likewise.
30040         * modules/sys_select-tests: Likewise.
30041         * modules/sys_socket-tests: Likewise.
30042         * modules/sys_stat-tests: Likewise.
30043         * modules/sys_time-tests: Likewise.
30044         * modules/sys_utsname-tests: Likewise.
30045         * modules/sysexits-tests: Likewise.
30046         * modules/time-tests: Likewise.
30047         * modules/trunc-tests: Likewise.
30048         * modules/truncf-tests: Likewise.
30049         * modules/truncl-tests: Likewise.
30050         * modules/tsearch-tests: Likewise.
30051         * modules/unistd-tests: Likewise.
30052         * modules/wchar-tests: Likewise.
30053         * modules/wctype-tests: Likewise.
30054
30055         tests: fix license on several tests
30056         * tests/test-des.c: Update to GPLv3+.
30057         * tests/test-flock.c: Likewise.
30058         * tests/test-fsync.c: Likewise.
30059         * tests/test-futimens.h: Likewise.
30060         * tests/test-gc-arcfour.c: Likewise.
30061         * tests/test-gc-arctwo.c: Likewise.
30062         * tests/test-gc-des.c: Likewise.
30063         * tests/test-gc-hmac-md5.c: Likewise.
30064         * tests/test-gc-hmac-sha1.c: Likewise.
30065         * tests/test-gc-md2.c: Likewise.
30066         * tests/test-gc-md4.c: Likewise.
30067         * tests/test-gc-md5.c: Likewise.
30068         * tests/test-gc-pbkdf2-sha1.c: Likewise.
30069         * tests/test-gc-rijndael.c: Likewise.
30070         * tests/test-gc-sha1.c: Likewise.
30071         * tests/test-gc.c: Likewise.
30072         * tests/test-getcwd.c: Likewise.
30073         * tests/test-link.c: Likewise.
30074         * tests/test-link.h: Likewise.
30075         * tests/test-lutimens.h: Likewise.
30076         * tests/test-md2.c: Likewise.
30077         * tests/test-md4.c: Likewise.
30078         * tests/test-mkdir.h: Likewise.
30079         * tests/test-rename.c: Likewise.
30080         * tests/test-rename.h: Likewise.
30081         * tests/test-safe-alloc.c: Likewise.
30082         * tests/test-utimens-common.h: Likewise.
30083         * tests/test-utimens.h: Likewise.
30084
30085         maint: sync license texts
30086         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
30087         * doc/gpl-3.0.texi: Revert copyright year update.
30088         * doc/lgpl-3.0.texi: Likewise.
30089
30090 2009-12-29  Jim Meyering  <meyering@redhat.com>
30091
30092         update nearly all FSF copyright year lists to include 2009
30093         The files named by the following are exempted:
30094             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
30095               test -f "$dst" && { echo "$dst"; continue; }
30096               test -d "$dst" || continue
30097               echo "$dst"/$(basename "$src")
30098             done > exempt
30099             git ls-files tests/unictype >> exempt
30100         In the remaining files, convert to all-interval notation if
30101         - there is already at least one year interval like 2000-2003
30102         - the file is maintained by me
30103         - the file is in lib/uni*/, where that style already prevails
30104         Otherwise, use update-copyright's default.
30105
30106 2009-12-29  Simon Josefsson  <simon@josefsson.org>
30107         and Eric Blake  <ebb9@byu.net>
30108
30109         tests: don't require debug system() to pass
30110         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
30111         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30112         * tests/test-unlink.h (test_unlink_func): Likewise.
30113         * tests/test-fstatat.c (main): ...into callers.
30114         * tests/test-lstat.c (main): Likewise.
30115         * tests/test-rmdir.c (main): Likewise.
30116         * tests/test-unlink.c (main): Likewise.
30117         * tests/test-unlinkat.c (main): Likewise.
30118         * tests/test-areadlink-with-size.c (main): Don't require a
30119         debug-only system call to pass, aiding cross-testing to mingw.
30120         * tests/test-areadlink.c (main): Likewise.
30121         * tests/test-areadlinkat-with-size.c (main): Likewise.
30122         * tests/test-areadlinkat.c (main): Likewise.
30123         * tests/test-canonicalize-lgpl.c (main): Likewise.
30124         * tests/test-canonicalize.c (main): Likewise.
30125         * tests/test-chown.c (main): Likewise.
30126         * tests/test-fchownat.c (main): Likewise.
30127         * tests/test-lchown.c (main): Likewise.
30128         * tests/test-fdutimensat.c (main): Likewise.
30129         * tests/test-futimens.c (main): Likewise.
30130         * tests/test-link.c (main): Likewise.
30131         * tests/test-linkat.c (main): Likewise.
30132         * tests/test-mkdir.c (main): Likewise.
30133         * tests/test-mkdirat.c (main): Likewise.
30134         * tests/test-mkfifo.c (main): Likewise.
30135         * tests/test-mkfifoat.c (main): Likewise.
30136         * tests/test-mknod.c (main): Likewise.
30137         * tests/test-readlink.c (main): Likewise.
30138         * tests/test-remove.c (main): Likewise.
30139         * tests/test-rename.c (main): Likewise.
30140         * tests/test-renameat.c (main): Likewise.
30141         * tests/test-symlink.c (main): Likewise.
30142         * tests/test-symlinkat.c (main): Likewise.
30143         * tests/test-utimens.c (main): Likewise.
30144         * tests/test-utimensat.c (main): Likewise.
30145
30146 2009-12-29  Simon Josefsson  <simon@josefsson.org>
30147
30148         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
30149         on $(UNUSED_PARAMETER_H) to avoid build failure.
30150
30151 2009-12-28  Jim Meyering  <meyering@redhat.com>
30152
30153         update-copyright: you may specify a max. line length other than 72
30154         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
30155
30156         maint: use consistent FSF copyright line syntax
30157         * lib/posixtm.c: Add missing comma in FSF copyright line.
30158         * lib/posixtm.h: Likewise.
30159         * lib/getugroups.c: Add missing ", Inc.".
30160
30161         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
30162         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
30163         FSF copyright line.  Remove trailing blanks.
30164
30165 2009-12-28  Eric Blake  <ebb9@byu.net>
30166
30167         test-dup2: reduce dependencies
30168         * modules/cloexec (Configure.ac): Set witness.
30169         * modules/dup2-tests (Depends-on): Drop cloexec.
30170         * tests/test-dup2.c (main): Skip portion of test if cloexec module
30171         not present.
30172         Suggested by Bruno Haible.
30173
30174 2009-12-26  Bruno Haible  <bruno@clisp.org>
30175
30176         Remove an unneeded dependency.
30177         * modules/fseterr (Depends-on): Remove dup2.
30178
30179 2009-12-26  Eric Blake  <ebb9@byu.net>
30180
30181         tests: use macros.h in more places
30182         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
30183         (ASSERT_STREAM): Provide default of stderr.
30184         * tests/test-dirent-safer.c: Include macros.h, using alternate
30185         stream for assertions.
30186         * tests/test-dup-safer.c: Likewise.
30187         * tests/test-freopen-safer.c: Likewise.
30188         * tests/test-getopt.c: Likewise.
30189         * tests/test-openat-safer.c: Likewise.
30190         * tests/test-pipe.c: Likewise.
30191         * tests/test-popen-safer.c: Likewise.
30192         * modules/dirent-safer-tests (Files): Include macros.h.
30193         * modules/unistd-safer-tests (Files): Likewise.
30194         * modules/freopen-safer-tests (Files): Likewise.
30195         * modules/getopt-posix-tests (Files): Likewise.
30196         * modules/openat-safer-tests (Files): Likewise.
30197         * modules/pipe-tests (Files): Likewise.
30198
30199 2009-12-26  Bruno Haible  <bruno@clisp.org>
30200
30201         javacomp: Portability fix.
30202         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
30203         that it also works on Solaris.
30204
30205 2009-12-26  Bruno Haible  <bruno@clisp.org>
30206
30207         localename: Fix storage allocation of gl_locale_name_thread's result.
30208         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
30209         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
30210         all platforms that have 'uselocale'.
30211         (gl_locale_name_thread_unsafe): New function, extracted from
30212         gl_locale_name_thread.
30213         (gl_locale_name_thread): Call struniq on all platforms that have
30214         'uselocale'.
30215         * tests/test-localename.c (test_locale_name_thread): Check that the
30216         resulting strings are permanently allocated.
30217         * modules/localename-tests (Depends-on): Add strdup.
30218
30219 2009-12-26  Bruno Haible  <bruno@clisp.org>
30220
30221         * tests/test-localename.c (categories): Fill in the strings.
30222
30223 2009-12-26  Jim Meyering  <meyering@redhat.com>
30224
30225         isdir: complete the removal of m4/isdir.m4
30226         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
30227
30228         isdir: clean up, since at least grep still uses it
30229         * lib/isdir.c: Include "isdir.h".
30230         (S_ISDIR): Remove now-unneeded definition.
30231         * modules/isdir (Files): Add lib/isdir.h.
30232         * lib/isdir.h: New file, with declaration.
30233         * m4/isdir.m4: Remove file -- unneeded.
30234
30235 2009-12-25  Bruno Haible  <bruno@clisp.org>
30236
30237         selinux-h: Make generated .h files standalone.
30238         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
30239         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
30240         * lib/se-selinux.in.h: Likewise.
30241         * modules/selinux-h (Depends-on): Add unused-parameter.
30242         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
30243         selinux/selinux.h and selinux/context.h.
30244         Suggested by Eric Blake.
30245
30246 2009-12-25  Bruno Haible  <bruno@clisp.org>
30247
30248         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
30249         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
30250         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
30251         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
30252         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
30253
30254 2009-12-24  Bruno Haible  <bruno@clisp.org>
30255
30256         openat: Fix warning.
30257         * lib/openat-proc.c: Include <unistd.h>.
30258
30259 2009-12-24  Bruno Haible  <bruno@clisp.org>
30260
30261         New module 'unused-parameter'.
30262         * build-aux/unused-parameter.h: New file, extracted from earlier
30263         gnulib-common.m4.
30264         * modules/unused-parameter: New file.
30265         * lib/unistr.h: Include unused-parameter.h.
30266         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
30267         _GL_UNUSED.
30268         * modules/unistr/base (Depends-on): Add unused-parameter.
30269
30270 2009-12-24  Bruno Haible  <bruno@clisp.org>
30271
30272         Add missing dependencies to 'extensions' module.
30273         * m4/extensions.m4: Add comment.
30274         * modules/accept4 (Depends-on): Add extensions.
30275         * modules/dup3 (Depends-on): Likewise.
30276         * modules/fcntl (Depends-on): Likewise.
30277         * modules/futimens (Depends-on): Likewise.
30278         * modules/mknod (Depends-on): Likewise.
30279         * modules/pipe2 (Depends-on): Likewise.
30280         * modules/stat-time (Depends-on): Likewise.
30281         * modules/strcasestr-simple (Depends-on): Likewise.
30282         * modules/strsignal (Depends-on): Likewise.
30283         * modules/utimensat (Depends-on): Likewise.
30284         * modules/localcharset (Depends-on): Likewise. Needed because of
30285         gl_FCNTL_O_FLAGS.
30286         * modules/wcrtomb (Depends-on): Likewise. Needed because of
30287         AC_TYPE_MBSTATE_T.
30288         * modules/wcsnrtombs (Depends-on): Likewise.
30289         * modules/wcsrtombs (Depends-on): Likewise.
30290
30291 2009-12-24  Bruno Haible  <bruno@clisp.org>
30292
30293         binary-io: Avoid gcc warning due to SET_BINARY.
30294         * lib/binary-io.h (SET_BINARY): Cast the result to void.
30295         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
30296
30297 2009-12-24  Bruno Haible  <bruno@clisp.org>
30298
30299         Avoid future namespace pollution on glibc systems.
30300         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
30301         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
30302         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
30303         glibc systems.
30304
30305 2009-12-24  Bruno Haible  <bruno@clisp.org>
30306
30307         Refactor common macros used in tests.
30308         * tests/macros.h: New file.
30309         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
30310         and/or <stdlib.h>, if appropriate.
30311         (ASSERT, SIZEOF): Remove macros.
30312         * tests/test-areadlink-with-size.c: Likewise.
30313         * tests/test-areadlinkat.c: Likewise.
30314         * tests/test-areadlinkat-with-size.c: Likewise.
30315         * tests/test-argmatch.c: Likewise.
30316         * tests/test-argv-iter.c: Likewise.
30317         * tests/test-array-mergesort.c: Likewise.
30318         * tests/test-array_list.c: Likewise.
30319         * tests/test-array_oset.c: Likewise.
30320         * tests/test-avltree_list.c: Likewise.
30321         * tests/test-avltree_oset.c: Likewise.
30322         * tests/test-avltreehash_list.c: Likewise.
30323         * tests/test-base64.c: Likewise.
30324         * tests/test-binary-io.c: Likewise.
30325         * tests/test-bitrotate.c: Likewise.
30326         * tests/test-btowc.c: Likewise.
30327         * tests/test-byteswap.c: Likewise.
30328         * tests/test-c-ctype.c: Likewise.
30329         * tests/test-c-stack.c: Likewise.
30330         * tests/test-c-strcasecmp.c: Likewise.
30331         * tests/test-c-strcasestr.c: Likewise.
30332         * tests/test-c-strncasecmp.c: Likewise.
30333         * tests/test-c-strstr.c: Likewise.
30334         * tests/test-canonicalize-lgpl.c: Likewise.
30335         * tests/test-canonicalize.c: Likewise.
30336         * tests/test-carray_list.c: Likewise.
30337         * tests/test-ceilf1.c: Likewise.
30338         * tests/test-ceilf2.c: Likewise.
30339         * tests/test-ceill.c: Likewise.
30340         * tests/test-chown.c: Likewise.
30341         * tests/test-cloexec.c: Likewise.
30342         * tests/test-copy-acl.c: Likewise.
30343         * tests/test-copy-file.c: Likewise.
30344         * tests/test-count-one-bits.c: Likewise.
30345         * tests/test-dprintf-posix.c: Likewise.
30346         * tests/test-dup2.c: Likewise.
30347         * tests/test-dup3.c: Likewise.
30348         * tests/test-duplocale.c: Likewise.
30349         * tests/test-fbufmode.c: Likewise.
30350         * tests/test-fchdir.c: Likewise.
30351         * tests/test-fchownat.c: Likewise.
30352         * tests/test-fcntl-safer.c: Likewise.
30353         * tests/test-fcntl.c: Likewise.
30354         * tests/test-fdopendir.c: Likewise.
30355         * tests/test-fdutimensat.c: Likewise.
30356         * tests/test-fflush2.c: Likewise.
30357         * tests/test-file-has-acl.c: Likewise.
30358         * tests/test-filevercmp.c: Likewise.
30359         * tests/test-flock.c: Likewise.
30360         * tests/test-floorf1.c: Likewise.
30361         * tests/test-floorf2.c: Likewise.
30362         * tests/test-floorl.c: Likewise.
30363         * tests/test-fnmatch.c: Likewise.
30364         * tests/test-fopen.h: Likewise.
30365         * tests/test-fpending.c: Likewise.
30366         * tests/test-fprintf-posix.c: Likewise.
30367         * tests/test-fpurge.c: Likewise.
30368         * tests/test-freadable.c: Likewise.
30369         * tests/test-freadahead.c: Likewise.
30370         * tests/test-freading.c: Likewise.
30371         * tests/test-freadptr.c: Likewise.
30372         * tests/test-freadptr2.c: Likewise.
30373         * tests/test-freadseek.c: Likewise.
30374         * tests/test-freopen.c: Likewise.
30375         * tests/test-frexp.c: Likewise.
30376         * tests/test-frexpl.c: Likewise.
30377         * tests/test-fseek.c: Likewise.
30378         * tests/test-fseeko.c: Likewise.
30379         * tests/test-fstatat.c: Likewise.
30380         * tests/test-fstrcmp.c: Likewise.
30381         * tests/test-fsync.c: Likewise.
30382         * tests/test-ftell.c: Likewise.
30383         * tests/test-ftello.c: Likewise.
30384         * tests/test-func.c: Likewise.
30385         * tests/test-futimens.c: Likewise.
30386         * tests/test-fwritable.c: Likewise.
30387         * tests/test-fwriting.c: Likewise.
30388         * tests/test-getcwd.c: Likewise.
30389         * tests/test-getdate.c: Likewise.
30390         * tests/test-getdelim.c: Likewise.
30391         * tests/test-getdtablesize.c: Likewise.
30392         * tests/test-getgroups.c: Likewise.
30393         * tests/test-getline.c: Likewise.
30394         * tests/test-getndelim2.c: Likewise.
30395         * tests/test-glob.c: Likewise.
30396         * tests/test-hash.c: Likewise.
30397         * tests/test-i-ring.c: Likewise.
30398         * tests/test-iconv-utf.c: Likewise.
30399         * tests/test-iconv.c: Likewise.
30400         * tests/test-idpriv-drop.c: Likewise.
30401         * tests/test-idpriv-droptemp.c: Likewise.
30402         * tests/test-inet_ntop.c: Likewise.
30403         * tests/test-inet_pton.c: Likewise.
30404         * tests/test-isblank.c: Likewise.
30405         * tests/test-isfinite.c: Likewise.
30406         * tests/test-isinf.c: Likewise.
30407         * tests/test-isnan.c: Likewise.
30408         * tests/test-isnand.h: Likewise.
30409         * tests/test-isnanf.h: Likewise.
30410         * tests/test-isnanl.h: Likewise.
30411         * tests/test-lchown.c: Likewise.
30412         * tests/test-ldexpl.c: Likewise.
30413         * tests/test-link.c: Likewise.
30414         * tests/test-linkat.c: Likewise.
30415         * tests/test-linked_list.c: Likewise.
30416         * tests/test-linkedhash_list.c: Likewise.
30417         * tests/test-localename.c: Likewise.
30418         * tests/test-lseek.c: Likewise.
30419         * tests/test-lstat.c: Likewise.
30420         * tests/test-mbmemcasecmp.c: Likewise.
30421         * tests/test-mbmemcasecoll.c: Likewise.
30422         * tests/test-mbrtowc.c: Likewise.
30423         * tests/test-mbscasecmp.c: Likewise.
30424         * tests/test-mbscasestr1.c: Likewise.
30425         * tests/test-mbscasestr2.c: Likewise.
30426         * tests/test-mbscasestr3.c: Likewise.
30427         * tests/test-mbscasestr4.c: Likewise.
30428         * tests/test-mbschr.c: Likewise.
30429         * tests/test-mbscspn.c: Likewise.
30430         * tests/test-mbsinit.c: Likewise.
30431         * tests/test-mbsncasecmp.c: Likewise.
30432         * tests/test-mbsnrtowcs.c: Likewise.
30433         * tests/test-mbspbrk.c: Likewise.
30434         * tests/test-mbspcasecmp.c: Likewise.
30435         * tests/test-mbsrchr.c: Likewise.
30436         * tests/test-mbsrtowcs.c: Likewise.
30437         * tests/test-mbsspn.c: Likewise.
30438         * tests/test-mbsstr1.c: Likewise.
30439         * tests/test-mbsstr2.c: Likewise.
30440         * tests/test-mbsstr3.c: Likewise.
30441         * tests/test-memchr.c: Likewise.
30442         * tests/test-memchr2.c: Likewise.
30443         * tests/test-memcmp.c: Likewise.
30444         * tests/test-memmem.c: Likewise.
30445         * tests/test-memrchr.c: Likewise.
30446         * tests/test-mkdir.c: Likewise.
30447         * tests/test-mkdirat.c: Likewise.
30448         * tests/test-mkfifo.c: Likewise.
30449         * tests/test-mkfifoat.c: Likewise.
30450         * tests/test-mknod.c: Likewise.
30451         * tests/test-nanosleep.c: Likewise.
30452         * tests/test-nl_langinfo.c: Likewise.
30453         * tests/test-obstack-printf.c: Likewise.
30454         * tests/test-open.c: Likewise.
30455         * tests/test-openat.c: Likewise.
30456         * tests/test-pipe-filter-gi1.c: Likewise.
30457         * tests/test-pipe-filter-gi2-main.c: Likewise.
30458         * tests/test-pipe-filter-ii1.c: Likewise.
30459         * tests/test-pipe-filter-ii2-main.c: Likewise.
30460         * tests/test-pipe2.c: Likewise.
30461         * tests/test-popen.h: Likewise.
30462         * tests/test-posixtm.c: Likewise.
30463         * tests/test-pread.c: Likewise.
30464         * tests/test-printf-frexp.c: Likewise.
30465         * tests/test-printf-frexpl.c: Likewise.
30466         * tests/test-printf-posix.c: Likewise.
30467         * tests/test-priv-set.c: Likewise.
30468         * tests/test-quotearg.c: Likewise.
30469         * tests/test-random_r.c: Likewise.
30470         * tests/test-rawmemchr.c: Likewise.
30471         * tests/test-rbtree_list.c: Likewise.
30472         * tests/test-rbtree_oset.c: Likewise.
30473         * tests/test-rbtreehash_list.c: Likewise.
30474         * tests/test-readlink.c: Likewise.
30475         * tests/test-remove.c: Likewise.
30476         * tests/test-rename.c: Likewise.
30477         * tests/test-renameat.c: Likewise.
30478         * tests/test-rmdir.c: Likewise.
30479         * tests/test-round1.c: Likewise.
30480         * tests/test-roundf1.c: Likewise.
30481         * tests/test-roundl.c: Likewise.
30482         * tests/test-safe-alloc.c: Likewise.
30483         * tests/test-sameacls.c: Likewise.
30484         * tests/test-set-mode-acl.c: Likewise.
30485         * tests/test-setenv.c: Likewise.
30486         * tests/test-sigaction.c: Likewise.
30487         * tests/test-signbit.c: Likewise.
30488         * tests/test-sleep.c: Likewise.
30489         * tests/test-snprintf-posix.c: Likewise.
30490         * tests/test-snprintf.c: Likewise.
30491         * tests/test-sprintf-posix.c: Likewise.
30492         * tests/test-stat-time.c: Likewise.
30493         * tests/test-stat.c: Likewise.
30494         * tests/test-strcasestr.c: Likewise.
30495         * tests/test-strchrnul.c: Likewise.
30496         * tests/test-strerror.c: Likewise.
30497         * tests/test-striconv.c: Likewise.
30498         * tests/test-striconveh.c: Likewise.
30499         * tests/test-striconveha.c: Likewise.
30500         * tests/test-strsignal.c: Likewise.
30501         * tests/test-strstr.c: Likewise.
30502         * tests/test-strtod.c: Likewise.
30503         * tests/test-strverscmp.c: Likewise.
30504         * tests/test-symlink.c: Likewise.
30505         * tests/test-symlinkat.c: Likewise.
30506         * tests/test-trunc1.c: Likewise.
30507         * tests/test-trunc2.c: Likewise.
30508         * tests/test-truncf1.c: Likewise.
30509         * tests/test-truncf2.c: Likewise.
30510         * tests/test-truncl.c: Likewise.
30511         * tests/test-uname.c: Likewise.
30512         * tests/test-unlink.c: Likewise.
30513         * tests/test-unlinkat.c: Likewise.
30514         * tests/test-unsetenv.c: Likewise.
30515         * tests/test-usleep.c: Likewise.
30516         * tests/test-utimens.c: Likewise.
30517         * tests/test-utimensat.c: Likewise.
30518         * tests/test-vasnprintf-posix.c: Likewise.
30519         * tests/test-vasnprintf-posix2.c: Likewise.
30520         * tests/test-vasnprintf.c: Likewise.
30521         * tests/test-vasprintf-posix.c: Likewise.
30522         * tests/test-vasprintf.c: Likewise.
30523         * tests/test-vdprintf-posix.c: Likewise.
30524         * tests/test-vfprintf-posix.c: Likewise.
30525         * tests/test-vprintf-posix.c: Likewise.
30526         * tests/test-vsnprintf-posix.c: Likewise.
30527         * tests/test-vsnprintf.c: Likewise.
30528         * tests/test-vsprintf-posix.c: Likewise.
30529         * tests/test-wcrtomb.c: Likewise.
30530         * tests/test-wcsnrtombs.c: Likewise.
30531         * tests/test-wcsrtombs.c: Likewise.
30532         * tests/test-wctype.c: Likewise.
30533         * tests/test-wcwidth.c: Likewise.
30534         * tests/test-xfprintf-posix.c: Likewise.
30535         * tests/test-xmemdup0.c: Likewise.
30536         * tests/test-xprintf-posix.c: Likewise.
30537         * tests/test-xvasprintf.c: Likewise.
30538         * tests/unicase/test-locale-language.c: Likewise.
30539         * tests/unicase/test-mapping-part1.h: Likewise.
30540         * tests/unicase/test-predicate-part1.h: Likewise.
30541         * tests/unicase/test-u8-casecmp.c: Likewise.
30542         * tests/unicase/test-u8-casecoll.c: Likewise.
30543         * tests/unicase/test-u8-casefold.c: Likewise.
30544         * tests/unicase/test-u8-is-cased.c: Likewise.
30545         * tests/unicase/test-u8-is-casefolded.c: Likewise.
30546         * tests/unicase/test-u8-is-lowercase.c: Likewise.
30547         * tests/unicase/test-u8-is-titlecase.c: Likewise.
30548         * tests/unicase/test-u8-is-uppercase.c: Likewise.
30549         * tests/unicase/test-u8-tolower.c: Likewise.
30550         * tests/unicase/test-u8-totitle.c: Likewise.
30551         * tests/unicase/test-u8-toupper.c: Likewise.
30552         * tests/unicase/test-u16-casecmp.c: Likewise.
30553         * tests/unicase/test-u16-casecoll.c: Likewise.
30554         * tests/unicase/test-u16-casefold.c: Likewise.
30555         * tests/unicase/test-u16-is-cased.c: Likewise.
30556         * tests/unicase/test-u16-is-casefolded.c: Likewise.
30557         * tests/unicase/test-u16-is-lowercase.c: Likewise.
30558         * tests/unicase/test-u16-is-titlecase.c: Likewise.
30559         * tests/unicase/test-u16-is-uppercase.c: Likewise.
30560         * tests/unicase/test-u16-tolower.c: Likewise.
30561         * tests/unicase/test-u16-totitle.c: Likewise.
30562         * tests/unicase/test-u16-toupper.c: Likewise.
30563         * tests/unicase/test-u32-casecmp.c: Likewise.
30564         * tests/unicase/test-u32-casecoll.c: Likewise.
30565         * tests/unicase/test-u32-casefold.c: Likewise.
30566         * tests/unicase/test-u32-is-cased.c: Likewise.
30567         * tests/unicase/test-u32-is-casefolded.c: Likewise.
30568         * tests/unicase/test-u32-is-lowercase.c: Likewise.
30569         * tests/unicase/test-u32-is-titlecase.c: Likewise.
30570         * tests/unicase/test-u32-is-uppercase.c: Likewise.
30571         * tests/unicase/test-u32-tolower.c: Likewise.
30572         * tests/unicase/test-u32-totitle.c: Likewise.
30573         * tests/unicase/test-u32-toupper.c: Likewise.
30574         * tests/unicase/test-ulc-casecmp.c: Likewise.
30575         * tests/unicase/test-ulc-casecoll.c: Likewise.
30576         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
30577         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
30578         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
30579         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
30580         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
30581         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
30582         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
30583         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
30584         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
30585         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
30586         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
30587         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
30588         * tests/unictype/test-bidi_byname.c: Likewise.
30589         * tests/unictype/test-bidi_name.c: Likewise.
30590         * tests/unictype/test-bidi_of.c: Likewise.
30591         * tests/unictype/test-bidi_test.c: Likewise.
30592         * tests/unictype/test-block_list.c: Likewise.
30593         * tests/unictype/test-block_of.c: Likewise.
30594         * tests/unictype/test-block_test.c: Likewise.
30595         * tests/unictype/test-categ_and.c: Likewise.
30596         * tests/unictype/test-categ_and_not.c: Likewise.
30597         * tests/unictype/test-categ_byname.c: Likewise.
30598         * tests/unictype/test-categ_name.c: Likewise.
30599         * tests/unictype/test-categ_none.c: Likewise.
30600         * tests/unictype/test-categ_of.c: Likewise.
30601         * tests/unictype/test-categ_or.c: Likewise.
30602         * tests/unictype/test-categ_test_withtable.c: Likewise.
30603         * tests/unictype/test-combining.c: Likewise.
30604         * tests/unictype/test-decdigit.c: Likewise.
30605         * tests/unictype/test-digit.c: Likewise.
30606         * tests/unictype/test-mirror.c: Likewise.
30607         * tests/unictype/test-numeric.c: Likewise.
30608         * tests/unictype/test-pr_byname.c: Likewise.
30609         * tests/unictype/test-pr_test.c: Likewise.
30610         * tests/unictype/test-predicate-part1.h: Likewise.
30611         * tests/unictype/test-scripts.c: Likewise.
30612         * tests/unictype/test-sy_c_ident.c: Likewise.
30613         * tests/unictype/test-sy_java_ident.c: Likewise.
30614         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
30615         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
30616         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
30617         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
30618         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
30619         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
30620         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
30621         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
30622         * tests/uninorm/test-canonical-decomposition.c: Likewise.
30623         * tests/uninorm/test-compat-decomposition.c: Likewise.
30624         * tests/uninorm/test-composition.c: Likewise.
30625         * tests/uninorm/test-decomposing-form.c: Likewise.
30626         * tests/uninorm/test-decomposition.c: Likewise.
30627         * tests/uninorm/test-u8-nfc.c: Likewise.
30628         * tests/uninorm/test-u8-nfd.c: Likewise.
30629         * tests/uninorm/test-u8-nfkc.c: Likewise.
30630         * tests/uninorm/test-u8-nfkd.c: Likewise.
30631         * tests/uninorm/test-u8-normcmp.c: Likewise.
30632         * tests/uninorm/test-u8-normcoll.c: Likewise.
30633         * tests/uninorm/test-u16-nfc.c: Likewise.
30634         * tests/uninorm/test-u16-nfd.c: Likewise.
30635         * tests/uninorm/test-u16-nfkc.c: Likewise.
30636         * tests/uninorm/test-u16-nfkd.c: Likewise.
30637         * tests/uninorm/test-u16-normcmp.c: Likewise.
30638         * tests/uninorm/test-u16-normcoll.c: Likewise.
30639         * tests/uninorm/test-u32-nfc.c: Likewise.
30640         * tests/uninorm/test-u32-nfd.c: Likewise.
30641         * tests/uninorm/test-u32-nfkc.c: Likewise.
30642         * tests/uninorm/test-u32-nfkd.c: Likewise.
30643         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30644         * tests/uninorm/test-u32-normcmp.c: Likewise.
30645         * tests/uninorm/test-u32-normcoll.c: Likewise.
30646         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
30647         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
30648         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
30649         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
30650         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
30651         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
30652         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
30653         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
30654         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
30655         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
30656         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
30657         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
30658         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
30659         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
30660         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
30661         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
30662         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
30663         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
30664         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
30665         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
30666         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
30667         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
30668         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
30669         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
30670         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
30671         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
30672         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
30673         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
30674         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
30675         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
30676         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
30677         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
30678         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
30679         * tests/uniwidth/test-u8-strwidth.c: Likewise.
30680         * tests/uniwidth/test-u8-width.c: Likewise.
30681         * tests/uniwidth/test-u16-strwidth.c: Likewise.
30682         * tests/uniwidth/test-u16-width.c: Likewise.
30683         * tests/uniwidth/test-u32-strwidth.c: Likewise.
30684         * tests/uniwidth/test-u32-width.c: Likewise.
30685         * tests/uniwidth/test-uc_width.c: Likewise.
30686         * tests/uniwidth/test-uc_width2.c: Likewise.
30687         * modules/acl-tests (Files): Add tests/macros.h.
30688         * modules/areadlink-tests (Files): Likewise.
30689         * modules/areadlink-with-size-tests (Files): Likewise.
30690         * modules/areadlinkat-tests (Files): Likewise.
30691         * modules/areadlinkat-with-size-tests (Files): Likewise.
30692         * modules/argmatch-tests (Files): Likewise.
30693         * modules/argv-iter-tests (Files): Likewise.
30694         * modules/array-list-tests (Files): Likewise.
30695         * modules/array-mergesort-tests (Files): Likewise.
30696         * modules/array-oset-tests (Files): Likewise.
30697         * modules/avltree-list-tests (Files): Likewise.
30698         * modules/avltree-oset-tests (Files): Likewise.
30699         * modules/avltreehash-list-tests (Files): Likewise.
30700         * modules/base64-tests (Files): Likewise.
30701         * modules/binary-io-tests (Files): Likewise.
30702         * modules/bitrotate-tests (Files): Likewise.
30703         * modules/btowc-tests (Files): Likewise.
30704         * modules/byteswap-tests (Files): Likewise.
30705         * modules/c-ctype-tests (Files): Likewise.
30706         * modules/c-stack-tests (Files): Likewise.
30707         * modules/c-strcase-tests (Files): Likewise.
30708         * modules/c-strcasestr-tests (Files): Likewise.
30709         * modules/c-strstr-tests (Files): Likewise.
30710         * modules/canonicalize-lgpl-tests (Files): Likewise.
30711         * modules/canonicalize-tests (Files): Likewise.
30712         * modules/carray-list-tests (Files): Likewise.
30713         * modules/ceilf-tests (Files): Likewise.
30714         * modules/ceill-tests (Files): Likewise.
30715         * modules/chown-tests (Files): Likewise.
30716         * modules/cloexec-tests (Files): Likewise.
30717         * modules/copy-file-tests (Files): Likewise.
30718         * modules/count-one-bits-tests (Files): Likewise.
30719         * modules/dprintf-posix-tests (Files): Likewise.
30720         * modules/dup2-tests (Files): Likewise.
30721         * modules/dup3-tests (Files): Likewise.
30722         * modules/duplocale-tests (Files): Likewise.
30723         * modules/fbufmode-tests (Files): Likewise.
30724         * modules/fchdir-tests (Files): Likewise.
30725         * modules/fcntl-safer-tests (Files): Likewise.
30726         * modules/fcntl-tests (Files): Likewise.
30727         * modules/fdopendir-tests (Files): Likewise.
30728         * modules/fdutimensat-tests (Files): Likewise.
30729         * modules/fflush-tests (Files): Likewise.
30730         * modules/filevercmp-tests (Files): Likewise.
30731         * modules/flock-tests (Files): Likewise.
30732         * modules/floorf-tests (Files): Likewise.
30733         * modules/floorl-tests (Files): Likewise.
30734         * modules/fnmatch-tests (Files): Likewise.
30735         * modules/fopen-safer-tests (Files): Likewise.
30736         * modules/fopen-tests (Files): Likewise.
30737         * modules/fpending-tests (Files): Likewise.
30738         * modules/fprintf-posix-tests (Files): Likewise.
30739         * modules/fpurge-tests (Files): Likewise.
30740         * modules/freadable-tests (Files): Likewise.
30741         * modules/freadahead-tests (Files): Likewise.
30742         * modules/freading-tests (Files): Likewise.
30743         * modules/freadptr-tests (Files): Likewise.
30744         * modules/freadseek-tests (Files): Likewise.
30745         * modules/freopen-tests (Files): Likewise.
30746         * modules/frexp-nolibm-tests (Files): Likewise.
30747         * modules/frexp-tests (Files): Likewise.
30748         * modules/frexpl-nolibm-tests (Files): Likewise.
30749         * modules/frexpl-tests (Files): Likewise.
30750         * modules/fseek-tests (Files): Likewise.
30751         * modules/fseeko-tests (Files): Likewise.
30752         * modules/fstrcmp-tests (Files): Likewise.
30753         * modules/fsync-tests (Files): Likewise.
30754         * modules/ftell-tests (Files): Likewise.
30755         * modules/ftello-tests (Files): Likewise.
30756         * modules/func-tests (Files): Likewise.
30757         * modules/futimens-tests (Files): Likewise.
30758         * modules/fwritable-tests (Files): Likewise.
30759         * modules/fwriting-tests (Files): Likewise.
30760         * modules/getcwd-tests (Files): Likewise.
30761         * modules/getdate-tests (Files): Likewise.
30762         * modules/getdelim-tests (Files): Likewise.
30763         * modules/getdtablesize-tests (Files): Likewise.
30764         * modules/getgroups-tests (Files): Likewise.
30765         * modules/getline-tests (Files): Likewise.
30766         * modules/getndelim2-tests (Files): Likewise.
30767         * modules/glob-tests (Files): Likewise.
30768         * modules/hash-tests (Files): Likewise.
30769         * modules/i-ring-tests (Files): Likewise.
30770         * modules/iconv-tests (Files): Likewise.
30771         * modules/iconv_open-utf-tests (Files): Likewise.
30772         * modules/idpriv-drop-tests (Files): Likewise.
30773         * modules/idpriv-droptemp-tests (Files): Likewise.
30774         * modules/inet_ntop-tests (Files): Likewise.
30775         * modules/inet_pton-tests (Files): Likewise.
30776         * modules/isblank-tests (Files): Likewise.
30777         * modules/isfinite-tests (Files): Likewise.
30778         * modules/isinf-tests (Files): Likewise.
30779         * modules/isnan-tests (Files): Likewise.
30780         * modules/isnand-nolibm-tests (Files): Likewise.
30781         * modules/isnand-tests (Files): Likewise.
30782         * modules/isnanf-nolibm-tests (Files): Likewise.
30783         * modules/isnanf-tests (Files): Likewise.
30784         * modules/isnanl-nolibm-tests (Files): Likewise.
30785         * modules/isnanl-tests (Files): Likewise.
30786         * modules/lchown-tests (Files): Likewise.
30787         * modules/ldexpl-tests (Files): Likewise.
30788         * modules/link-tests (Files): Likewise.
30789         * modules/linkat-tests (Files): Likewise.
30790         * modules/linked-list-tests (Files): Likewise.
30791         * modules/linkedhash-list-tests (Files): Likewise.
30792         * modules/localename-tests (Files): Likewise.
30793         * modules/lseek-tests (Files): Likewise.
30794         * modules/lstat-tests (Files): Likewise.
30795         * modules/mbmemcasecmp-tests (Files): Likewise.
30796         * modules/mbmemcasecoll-tests (Files): Likewise.
30797         * modules/mbrtowc-tests (Files): Likewise.
30798         * modules/mbscasecmp-tests (Files): Likewise.
30799         * modules/mbscasestr-tests (Files): Likewise.
30800         * modules/mbschr-tests (Files): Likewise.
30801         * modules/mbscspn-tests (Files): Likewise.
30802         * modules/mbsinit-tests (Files): Likewise.
30803         * modules/mbsncasecmp-tests (Files): Likewise.
30804         * modules/mbsnrtowcs-tests (Files): Likewise.
30805         * modules/mbspbrk-tests (Files): Likewise.
30806         * modules/mbspcasecmp-tests (Files): Likewise.
30807         * modules/mbsrchr-tests (Files): Likewise.
30808         * modules/mbsrtowcs-tests (Files): Likewise.
30809         * modules/mbsspn-tests (Files): Likewise.
30810         * modules/mbsstr-tests (Files): Likewise.
30811         * modules/memchr-tests (Files): Likewise.
30812         * modules/memchr2-tests (Files): Likewise.
30813         * modules/memcmp-tests (Files): Likewise.
30814         * modules/memmem-tests (Files): Likewise.
30815         * modules/memrchr-tests (Files): Likewise.
30816         * modules/mkdir-tests (Files): Likewise.
30817         * modules/mkfifo-tests (Files): Likewise.
30818         * modules/mkfifoat-tests (Files): Likewise.
30819         * modules/mknod-tests (Files): Likewise.
30820         * modules/nanosleep-tests (Files): Likewise.
30821         * modules/nl_langinfo-tests (Files): Likewise.
30822         * modules/obstack-printf-tests (Files): Likewise.
30823         * modules/open-tests (Files): Likewise.
30824         * modules/openat-tests (Files): Likewise.
30825         * modules/pipe-filter-gi-tests (Files): Likewise.
30826         * modules/pipe-filter-ii-tests (Files): Likewise.
30827         * modules/pipe2-tests (Files): Likewise.
30828         * modules/popen-safer-tests (Files): Likewise.
30829         * modules/popen-tests (Files): Likewise.
30830         * modules/posixtm-tests (Files): Likewise.
30831         * modules/pread-tests (Files): Likewise.
30832         * modules/printf-frexp-tests (Files): Likewise.
30833         * modules/printf-frexpl-tests (Files): Likewise.
30834         * modules/printf-posix-tests (Files): Likewise.
30835         * modules/priv-set-tests (Files): Likewise.
30836         * modules/quotearg-tests (Files): Likewise.
30837         * modules/random_r-tests (Files): Likewise.
30838         * modules/rawmemchr-tests (Files): Likewise.
30839         * modules/rbtree-list-tests (Files): Likewise.
30840         * modules/rbtree-oset-tests (Files): Likewise.
30841         * modules/rbtreehash-list-tests (Files): Likewise.
30842         * modules/readlink-tests (Files): Likewise.
30843         * modules/remove-tests (Files): Likewise.
30844         * modules/rename-tests (Files): Likewise.
30845         * modules/renameat-tests (Files): Likewise.
30846         * modules/rmdir-tests (Files): Likewise.
30847         * modules/round-tests (Files): Likewise.
30848         * modules/roundf-tests (Files): Likewise.
30849         * modules/roundl-tests (Files): Likewise.
30850         * modules/safe-alloc-tests (Files): Likewise.
30851         * modules/setenv-tests (Files): Likewise.
30852         * modules/sigaction-tests (Files): Likewise.
30853         * modules/signbit-tests (Files): Likewise.
30854         * modules/sleep-tests (Files): Likewise.
30855         * modules/snprintf-posix-tests (Files): Likewise.
30856         * modules/snprintf-tests (Files): Likewise.
30857         * modules/sprintf-posix-tests (Files): Likewise.
30858         * modules/stat-tests (Files): Likewise.
30859         * modules/stat-time-tests (Files): Likewise.
30860         * modules/strcasestr-tests (Files): Likewise.
30861         * modules/strchrnul-tests (Files): Likewise.
30862         * modules/strerror-tests (Files): Likewise.
30863         * modules/striconv-tests (Files): Likewise.
30864         * modules/striconveh-tests (Files): Likewise.
30865         * modules/striconveha-tests (Files): Likewise.
30866         * modules/strsignal-tests (Files): Likewise.
30867         * modules/strstr-tests (Files): Likewise.
30868         * modules/strtod-tests (Files): Likewise.
30869         * modules/strverscmp-tests (Files): Likewise.
30870         * modules/symlink-tests (Files): Likewise.
30871         * modules/symlinkat-tests (Files): Likewise.
30872         * modules/trunc-tests (Files): Likewise.
30873         * modules/truncf-tests (Files): Likewise.
30874         * modules/truncl-tests (Files): Likewise.
30875         * modules/uname-tests (Files): Likewise.
30876         * modules/unicase/cased-tests (Files): Likewise.
30877         * modules/unicase/ignorable-tests (Files): Likewise.
30878         * modules/unicase/locale-language-tests (Files): Likewise.
30879         * modules/unicase/tolower-tests (Files): Likewise.
30880         * modules/unicase/totitle-tests (Files): Likewise.
30881         * modules/unicase/toupper-tests (Files): Likewise.
30882         * modules/unicase/u8-casecmp-tests (Files): Likewise.
30883         * modules/unicase/u8-casecoll-tests (Files): Likewise.
30884         * modules/unicase/u8-casefold-tests (Files): Likewise.
30885         * modules/unicase/u8-is-cased-tests (Files): Likewise.
30886         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
30887         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
30888         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
30889         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
30890         * modules/unicase/u8-tolower-tests (Files): Likewise.
30891         * modules/unicase/u8-totitle-tests (Files): Likewise.
30892         * modules/unicase/u8-toupper-tests (Files): Likewise.
30893         * modules/unicase/u16-casecmp-tests (Files): Likewise.
30894         * modules/unicase/u16-casecoll-tests (Files): Likewise.
30895         * modules/unicase/u16-casefold-tests (Files): Likewise.
30896         * modules/unicase/u16-is-cased-tests (Files): Likewise.
30897         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
30898         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
30899         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
30900         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
30901         * modules/unicase/u16-tolower-tests (Files): Likewise.
30902         * modules/unicase/u16-totitle-tests (Files): Likewise.
30903         * modules/unicase/u16-toupper-tests (Files): Likewise.
30904         * modules/unicase/u32-casecmp-tests (Files): Likewise.
30905         * modules/unicase/u32-casecoll-tests (Files): Likewise.
30906         * modules/unicase/u32-casefold-tests (Files): Likewise.
30907         * modules/unicase/u32-is-cased-tests (Files): Likewise.
30908         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
30909         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
30910         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
30911         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
30912         * modules/unicase/u32-tolower-tests (Files): Likewise.
30913         * modules/unicase/u32-totitle-tests (Files): Likewise.
30914         * modules/unicase/u32-toupper-tests (Files): Likewise.
30915         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
30916         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
30917         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
30918         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
30919         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
30920         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
30921         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
30922         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
30923         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
30924         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
30925         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
30926         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
30927         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
30928         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
30929         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
30930         * modules/unictype/bidicategory-name-tests (Files): Likewise.
30931         * modules/unictype/bidicategory-of-tests (Files): Likewise.
30932         * modules/unictype/bidicategory-test-tests (Files): Likewise.
30933         * modules/unictype/block-list-tests (Files): Likewise.
30934         * modules/unictype/block-of-tests (Files): Likewise.
30935         * modules/unictype/block-test-tests (Files): Likewise.
30936         * modules/unictype/category-C-tests (Files): Likewise.
30937         * modules/unictype/category-Cc-tests (Files): Likewise.
30938         * modules/unictype/category-Cf-tests (Files): Likewise.
30939         * modules/unictype/category-Cn-tests (Files): Likewise.
30940         * modules/unictype/category-Co-tests (Files): Likewise.
30941         * modules/unictype/category-Cs-tests (Files): Likewise.
30942         * modules/unictype/category-L-tests (Files): Likewise.
30943         * modules/unictype/category-Ll-tests (Files): Likewise.
30944         * modules/unictype/category-Lm-tests (Files): Likewise.
30945         * modules/unictype/category-Lo-tests (Files): Likewise.
30946         * modules/unictype/category-Lt-tests (Files): Likewise.
30947         * modules/unictype/category-Lu-tests (Files): Likewise.
30948         * modules/unictype/category-M-tests (Files): Likewise.
30949         * modules/unictype/category-Mc-tests (Files): Likewise.
30950         * modules/unictype/category-Me-tests (Files): Likewise.
30951         * modules/unictype/category-Mn-tests (Files): Likewise.
30952         * modules/unictype/category-N-tests (Files): Likewise.
30953         * modules/unictype/category-Nd-tests (Files): Likewise.
30954         * modules/unictype/category-Nl-tests (Files): Likewise.
30955         * modules/unictype/category-No-tests (Files): Likewise.
30956         * modules/unictype/category-P-tests (Files): Likewise.
30957         * modules/unictype/category-Pc-tests (Files): Likewise.
30958         * modules/unictype/category-Pd-tests (Files): Likewise.
30959         * modules/unictype/category-Pe-tests (Files): Likewise.
30960         * modules/unictype/category-Pf-tests (Files): Likewise.
30961         * modules/unictype/category-Pi-tests (Files): Likewise.
30962         * modules/unictype/category-Po-tests (Files): Likewise.
30963         * modules/unictype/category-Ps-tests (Files): Likewise.
30964         * modules/unictype/category-S-tests (Files): Likewise.
30965         * modules/unictype/category-Sc-tests (Files): Likewise.
30966         * modules/unictype/category-Sk-tests (Files): Likewise.
30967         * modules/unictype/category-Sm-tests (Files): Likewise.
30968         * modules/unictype/category-So-tests (Files): Likewise.
30969         * modules/unictype/category-Z-tests (Files): Likewise.
30970         * modules/unictype/category-Zl-tests (Files): Likewise.
30971         * modules/unictype/category-Zp-tests (Files): Likewise.
30972         * modules/unictype/category-Zs-tests (Files): Likewise.
30973         * modules/unictype/category-and-not-tests (Files): Likewise.
30974         * modules/unictype/category-and-tests (Files): Likewise.
30975         * modules/unictype/category-byname-tests (Files): Likewise.
30976         * modules/unictype/category-name-tests (Files): Likewise.
30977         * modules/unictype/category-none-tests (Files): Likewise.
30978         * modules/unictype/category-of-tests (Files): Likewise.
30979         * modules/unictype/category-or-tests (Files): Likewise.
30980         * modules/unictype/category-test-withtable-tests (Files): Likewise.
30981         * modules/unictype/combining-class-tests (Files): Likewise.
30982         * modules/unictype/ctype-alnum-tests (Files): Likewise.
30983         * modules/unictype/ctype-alpha-tests (Files): Likewise.
30984         * modules/unictype/ctype-blank-tests (Files): Likewise.
30985         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
30986         * modules/unictype/ctype-digit-tests (Files): Likewise.
30987         * modules/unictype/ctype-graph-tests (Files): Likewise.
30988         * modules/unictype/ctype-lower-tests (Files): Likewise.
30989         * modules/unictype/ctype-print-tests (Files): Likewise.
30990         * modules/unictype/ctype-punct-tests (Files): Likewise.
30991         * modules/unictype/ctype-space-tests (Files): Likewise.
30992         * modules/unictype/ctype-upper-tests (Files): Likewise.
30993         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
30994         * modules/unictype/decimal-digit-tests (Files): Likewise.
30995         * modules/unictype/digit-tests (Files): Likewise.
30996         * modules/unictype/mirror-tests (Files): Likewise.
30997         * modules/unictype/numeric-tests (Files): Likewise.
30998         * modules/unictype/property-alphabetic-tests (Files): Likewise.
30999         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
31000         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
31001         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
31002         Likewise.
31003         * modules/unictype/property-bidi-block-separator-tests (Files):
31004         Likewise.
31005         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
31006         Likewise.
31007         * modules/unictype/property-bidi-common-separator-tests (Files):
31008         Likewise.
31009         * modules/unictype/property-bidi-control-tests (Files): Likewise.
31010         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
31011         Likewise.
31012         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
31013         Likewise.
31014         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
31015         Likewise.
31016         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
31017         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
31018         Likewise.
31019         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
31020         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
31021         Likewise.
31022         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
31023         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
31024         * modules/unictype/property-bidi-segment-separator-tests (Files):
31025         Likewise.
31026         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
31027         * modules/unictype/property-byname-tests (Files): Likewise.
31028         * modules/unictype/property-combining-tests (Files): Likewise.
31029         * modules/unictype/property-composite-tests (Files): Likewise.
31030         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
31031         * modules/unictype/property-dash-tests (Files): Likewise.
31032         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
31033         * modules/unictype/property-default-ignorable-code-point-tests (Files):
31034         Likewise.
31035         * modules/unictype/property-deprecated-tests (Files): Likewise.
31036         * modules/unictype/property-diacritic-tests (Files): Likewise.
31037         * modules/unictype/property-extender-tests (Files): Likewise.
31038         * modules/unictype/property-format-control-tests (Files): Likewise.
31039         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
31040         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
31041         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
31042         * modules/unictype/property-hex-digit-tests (Files): Likewise.
31043         * modules/unictype/property-hyphen-tests (Files): Likewise.
31044         * modules/unictype/property-id-continue-tests (Files): Likewise.
31045         * modules/unictype/property-id-start-tests (Files): Likewise.
31046         * modules/unictype/property-ideographic-tests (Files): Likewise.
31047         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
31048         * modules/unictype/property-ids-trinary-operator-tests (Files):
31049         Likewise.
31050         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
31051         * modules/unictype/property-iso-control-tests (Files): Likewise.
31052         * modules/unictype/property-join-control-tests (Files): Likewise.
31053         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
31054         * modules/unictype/property-line-separator-tests (Files): Likewise.
31055         * modules/unictype/property-logical-order-exception-tests (Files):
31056         Likewise.
31057         * modules/unictype/property-lowercase-tests (Files): Likewise.
31058         * modules/unictype/property-math-tests (Files): Likewise.
31059         * modules/unictype/property-non-break-tests (Files): Likewise.
31060         * modules/unictype/property-not-a-character-tests (Files): Likewise.
31061         * modules/unictype/property-numeric-tests (Files): Likewise.
31062         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
31063         * modules/unictype/property-other-default-ignorable-code-point-tests
31064         (Files): Likewise.
31065         * modules/unictype/property-other-grapheme-extend-tests (Files):
31066         Likewise.
31067         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
31068         * modules/unictype/property-other-id-start-tests (Files): Likewise.
31069         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
31070         * modules/unictype/property-other-math-tests (Files): Likewise.
31071         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
31072         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
31073         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
31074         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
31075         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
31076         * modules/unictype/property-private-use-tests (Files): Likewise.
31077         * modules/unictype/property-punctuation-tests (Files): Likewise.
31078         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
31079         * modules/unictype/property-radical-tests (Files): Likewise.
31080         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
31081         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
31082         * modules/unictype/property-space-tests (Files): Likewise.
31083         * modules/unictype/property-terminal-punctuation-tests (Files):
31084         Likewise.
31085         * modules/unictype/property-test-tests (Files): Likewise.
31086         * modules/unictype/property-titlecase-tests (Files): Likewise.
31087         * modules/unictype/property-unassigned-code-value-tests (Files):
31088         Likewise.
31089         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
31090         * modules/unictype/property-uppercase-tests (Files): Likewise.
31091         * modules/unictype/property-variation-selector-tests (Files): Likewise.
31092         * modules/unictype/property-white-space-tests (Files): Likewise.
31093         * modules/unictype/property-xid-continue-tests (Files): Likewise.
31094         * modules/unictype/property-xid-start-tests (Files): Likewise.
31095         * modules/unictype/property-zero-width-tests (Files): Likewise.
31096         * modules/unictype/scripts-tests (Files): Likewise.
31097         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
31098         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
31099         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
31100         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
31101         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
31102         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
31103         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
31104         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
31105         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
31106         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
31107         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
31108         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
31109         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
31110         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
31111         * modules/uninorm/composition-tests (Files): Likewise.
31112         * modules/uninorm/decomposing-form-tests (Files): Likewise.
31113         * modules/uninorm/decomposition-tests (Files): Likewise.
31114         * modules/uninorm/filter-tests (Files): Likewise.
31115         * modules/uninorm/nfc-tests (Files): Likewise.
31116         * modules/uninorm/nfd-tests (Files): Likewise.
31117         * modules/uninorm/nfkc-tests (Files): Likewise.
31118         * modules/uninorm/nfkd-tests (Files): Likewise.
31119         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
31120         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
31121         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
31122         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
31123         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
31124         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
31125         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
31126         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
31127         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
31128         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
31129         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
31130         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
31131         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
31132         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
31133         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
31134         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
31135         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
31136         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
31137         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
31138         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
31139         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
31140         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
31141         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
31142         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
31143         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
31144         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
31145         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
31146         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
31147         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
31148         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
31149         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
31150         * modules/uniwidth/u8-width-tests (Files): Likewise.
31151         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
31152         * modules/uniwidth/u16-width-tests (Files): Likewise.
31153         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
31154         * modules/uniwidth/u32-width-tests (Files): Likewise.
31155         * modules/uniwidth/width-tests (Files): Likewise.
31156         * modules/unlink-tests (Files): Likewise.
31157         * modules/unsetenv-tests (Files): Likewise.
31158         * modules/usleep-tests (Files): Likewise.
31159         * modules/utimens-tests (Files): Likewise.
31160         * modules/utimensat-tests (Files): Likewise.
31161         * modules/vasnprintf-posix-tests (Files): Likewise.
31162         * modules/vasnprintf-tests (Files): Likewise.
31163         * modules/vasprintf-posix-tests (Files): Likewise.
31164         * modules/vasprintf-tests (Files): Likewise.
31165         * modules/vdprintf-posix-tests (Files): Likewise.
31166         * modules/vfprintf-posix-tests (Files): Likewise.
31167         * modules/vprintf-posix-tests (Files): Likewise.
31168         * modules/vsnprintf-posix-tests (Files): Likewise.
31169         * modules/vsnprintf-tests (Files): Likewise.
31170         * modules/vsprintf-posix-tests (Files): Likewise.
31171         * modules/wcrtomb-tests (Files): Likewise.
31172         * modules/wcsnrtombs-tests (Files): Likewise.
31173         * modules/wcsrtombs-tests (Files): Likewise.
31174         * modules/wctype-tests (Files): Likewise.
31175         * modules/wcwidth-tests (Files): Likewise.
31176         * modules/xmemdup0-tests (Files): Likewise.
31177         * modules/xprintf-posix-tests (Files): Likewise.
31178         * modules/xvasprintf-tests (Files): Likewise.
31179
31180 2009-12-24  Eric Blake  <ebb9@byu.net>
31181
31182         test-nanosleep: fix typo
31183         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
31184         patch.
31185         Reported by Bruno Haible.
31186
31187 2009-12-24  Bruno Haible  <bruno@clisp.org>
31188
31189         Reduce namespace pollution on glibc systems.
31190         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
31191         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
31192         systems.
31193         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
31194         <getopt.h> on glibc systems.
31195         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
31196         systems.
31197         * lib/fcntl.c: Include <unistd.h> here instead.
31198
31199 2009-12-24  Bruno Haible  <bruno@clisp.org>
31200
31201         * lib/stdlib.in.h (includes): Fix typo in today's commit.
31202
31203 2009-12-24  Eric Blake  <ebb9@byu.net>
31204
31205         tests: add signature checks
31206         * tests/signature.h (SIGNATURE_CHECK): New file.
31207         * modules/atexit-tests (Files): Use it.
31208         * modules/btowc-tests (Files): Likewise.
31209         * modules/canonicalize-lgpl-tests (Files): Likewise.
31210         * modules/ceilf-tests (Files): Likewise.
31211         * modules/ceill-tests (Files): Likewise.
31212         * modules/chown-tests (Files): Likewise.
31213         * modules/dprintf-posix-tests (Files): Likewise.
31214         * modules/dup2-tests (Files): Likewise.
31215         * modules/dup3-tests (Files): Likewise.
31216         * modules/duplocale-tests (Files): Likewise.
31217         * modules/fchdir-tests (Files): Likewise.
31218         * modules/fcntl-tests (Files): Likewise.
31219         * modules/fdopendir-tests (Files): Likewise.
31220         * modules/fflush-tests (Files): Likewise.
31221         * modules/flock-tests (Files): Likewise.
31222         * modules/floorf-tests (Files): Likewise.
31223         * modules/floorl-tests (Files): Likewise.
31224         * modules/fnmatch-tests (Files): Likewise.
31225         * modules/fopen-tests (Files): Likewise.
31226         * modules/fprintf-posix-tests (Files): Likewise.
31227         * modules/freopen-tests (Files): Likewise.
31228         * modules/frexp-nolibm-tests (Files): Likewise.
31229         * modules/frexp-tests (Files): Likewise.
31230         * modules/frexpl-nolibm-tests (Files): Likewise.
31231         * modules/frexpl-tests (Files): Likewise.
31232         * modules/fseek-tests (Files): Likewise.
31233         * modules/fseeko-tests (Files): Likewise.
31234         * modules/fsync-tests (Files): Likewise.
31235         * modules/ftell-tests (Files): Likewise.
31236         * modules/ftello-tests (Files): Likewise.
31237         * modules/futimens-tests (Files): Likewise.
31238         * modules/getaddrinfo-tests (Files): Likewise.
31239         * modules/getcwd-tests (Files): Likewise.
31240         * modules/getdelim-tests (Files): Likewise.
31241         * modules/getdtablesize-tests (Files): Likewise.
31242         * modules/getgroups-tests (Files): Likewise.
31243         * modules/gethostname-tests (Files): Likewise.
31244         * modules/getline-tests (Files): Likewise.
31245         * modules/getopt-posix-tests (Files): Likewise.
31246         * modules/gettimeofday-tests (Files): Likewise.
31247         * modules/glob-tests (Files): Likewise.
31248         * modules/iconv-tests (Files): Likewise.
31249         * modules/inet_ntop-tests (Files): Likewise.
31250         * modules/inet_pton-tests (Files): Likewise.
31251         * modules/isblank-tests (Files): Likewise.
31252         * modules/lchown-tests (Files): Likewise.
31253         * modules/ldexpl-tests (Files): Likewise.
31254         * modules/link-tests (Files): Likewise.
31255         * modules/linkat-tests (Files): Likewise.
31256         * modules/lseek-tests (Files): Likewise.
31257         * modules/lstat-tests (Files): Likewise.
31258         * modules/mbrtowc-tests (Files): Likewise.
31259         * modules/mbsinit-tests (Files): Likewise.
31260         * modules/mbsnrtowcs-tests (Files): Likewise.
31261         * modules/mbsrtowcs-tests (Files): Likewise.
31262         * modules/memchr-tests (Files): Likewise.
31263         * modules/memcmp-tests (Files): Likewise.
31264         * modules/memmem-tests (Files): Likewise.
31265         * modules/memrchr-tests (Files): Likewise.
31266         * modules/mkdir-tests (Files): Likewise.
31267         * modules/mkfifo-tests (Files): Likewise.
31268         * modules/mkfifoat-tests (Files): Likewise.
31269         * modules/mknod-tests (Files): Likewise.
31270         * modules/nanosleep-tests (Files): Likewise.
31271         * modules/nl_langinfo-tests (Files): Likewise.
31272         * modules/obstack-printf-tests (Files): Likewise.
31273         * modules/open-tests (Files): Likewise.
31274         * modules/openat-tests (Files): Likewise.
31275         * modules/perror-tests (Files): Likewise.
31276         * modules/pipe2-tests (Files): Likewise.
31277         * modules/poll-tests (Files): Likewise.
31278         * modules/popen-tests (Files): Likewise.
31279         * modules/posix_spawn-tests (Files): Likewise.
31280         * modules/posix_spawnp-tests (Files): Likewise.
31281         * modules/pread-tests (Files): Likewise.
31282         * modules/printf-posix-tests (Files): Likewise.
31283         * modules/pty-tests (Files): Likewise.
31284         * modules/random_r-tests (Files): Likewise.
31285         * modules/rawmemchr-tests (Files): Likewise.
31286         * modules/readlink-tests (Files): Likewise.
31287         * modules/remove-tests (Files): Likewise.
31288         * modules/rename-tests (Files): Likewise.
31289         * modules/renameat-tests (Files): Likewise.
31290         * modules/rmdir-tests (Files): Likewise.
31291         * modules/round-tests (Files): Likewise.
31292         * modules/roundf-tests (Files): Likewise.
31293         * modules/roundl-tests (Files): Likewise.
31294         * modules/select-tests (Files): Likewise.
31295         * modules/setenv-tests (Files): Likewise.
31296         * modules/sigaction-tests (Files): Likewise.
31297         * modules/sleep-tests (Files): Likewise.
31298         * modules/snprintf-posix-tests (Files): Likewise.
31299         * modules/snprintf-tests (Files): Likewise.
31300         * modules/sprintf-posix-tests (Files): Likewise.
31301         * modules/stat-tests (Files): Likewise.
31302         * modules/strcasestr-tests (Files): Likewise.
31303         * modules/strchrnul-tests (Files): Likewise.
31304         * modules/strerror-tests (Files): Likewise.
31305         * modules/strsignal-tests (Files): Likewise.
31306         * modules/strstr-tests (Files): Likewise.
31307         * modules/strtod-tests (Files): Likewise.
31308         * modules/strverscmp-tests (Files): Likewise.
31309         * modules/symlink-tests (Files): Likewise.
31310         * modules/symlinkat-tests (Files): Likewise.
31311         * modules/times-tests (Files): Likewise.
31312         * modules/trunc-tests (Files): Likewise.
31313         * modules/truncf-tests (Files): Likewise.
31314         * modules/truncl-tests (Files): Likewise.
31315         * modules/tsearch-tests (Files): Likewise.
31316         * modules/uname-tests (Files): Likewise.
31317         * modules/unlink-tests (Files): Likewise.
31318         * modules/unsetenv-tests (Files): Likewise.
31319         * modules/usleep-tests (Files): Likewise.
31320         * modules/utimensat-tests (Files): Likewise.
31321         * modules/vasprintf-tests (Files): Likewise.
31322         * modules/vdprintf-posix-tests (Files): Likewise.
31323         * modules/vfprintf-posix-tests (Files): Likewise.
31324         * modules/vprintf-posix-tests (Files): Likewise.
31325         * modules/vsnprintf-posix-tests (Files): Likewise.
31326         * modules/vsnprintf-tests (Files): Likewise.
31327         * modules/vsprintf-posix-tests (Files): Likewise.
31328         * modules/wcrtomb-tests (Files): Likewise.
31329         * modules/wcsnrtombs-tests (Files): Likewise.
31330         * modules/wcsrtombs-tests (Files): Likewise.
31331         * modules/wcwidth-tests (Files): Likewise.
31332         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
31333         * tests/test-isinf.c (isinf): Likewise.
31334         * tests/test-isnan.c (isnan): Likewise.
31335         * tests/test-signbit.c (signbit): Likewise.
31336         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
31337         declaration, either as macro or with correct signature.
31338         (select): Ensure function under test is declared with correct
31339         signature in correct header.
31340         * tests/test-atexit.c (atexit): Likewise.
31341         * tests/test-btowc.c (btowc): Likewise.
31342         * tests/test-canonicalize-lgpl.c (realpath)
31343         (canonicalize_file_name): Likewise.
31344         * tests/test-ceilf1.c (ceilf): Likewise.
31345         * tests/test-ceill.c (ceill): Likewise.
31346         * tests/test-chown.c (chown): Likewise.
31347         * tests/test-dprintf-posix.c (dprintf): Likewise.
31348         * tests/test-dup2.c (dup2): Likewise.
31349         * tests/test-dup3.c (dup3): Likewise.
31350         * tests/test-duplocale.c (duplocale): Likewise.
31351         * tests/test-fchdir.c (fchdir): Likewise.
31352         * tests/test-fchownat.c (fchownat): Likewise.
31353         * tests/test-fcntl.c (fcntl): Likewise.
31354         * tests/test-fdopendir.c (fdopendir): Likewise.
31355         * tests/test-fflush.c (fflush): Likewise.
31356         * tests/test-flock.c (flock): Likewise.
31357         * tests/test-floorf1.c (floorf): Likewise.
31358         * tests/test-floorl.c (floorl): Likewise.
31359         * tests/test-fnmatch.c (fnmatch): Likewise.
31360         * tests/test-fopen.c (fopen): Likewise.
31361         * tests/test-fprintf-posix.c (fprintf): Likewise.
31362         * tests/test-freopen.c (freopen): Likewise.
31363         * tests/test-frexp.c (frexp): Likewise.
31364         * tests/test-frexpl.c (frexpl): Likewise.
31365         * tests/test-fseek.c (fseek): Likewise.
31366         * tests/test-fseeko.c (fseeko): Likewise.
31367         * tests/test-fstatat.c (fstatat): Likewise.
31368         * tests/test-fsync.c (fsync): Likewise.
31369         * tests/test-ftell.c (ftell): Likewise.
31370         * tests/test-ftello.c (ftello): Likewise.
31371         * tests/test-futimens.c (futimens): Likewise.
31372         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
31373         (gai_strerror): Likewise.
31374         * tests/test-getcwd.c (getcwd): Likewise.
31375         * tests/test-getdelim.c (getdelim): Likewise.
31376         * tests/test-getdtablesize.c (getdtablesize): Likewise.
31377         * tests/test-getgroups.c (getgroups): Likewise.
31378         * tests/test-gethostname.c (gethostname): Likewise.
31379         * tests/test-getline.c (getline): Likewise.
31380         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
31381         Likewise.
31382         * tests/test-gettimeofday.c (gettimeofday): Likewise.
31383         * tests/test-glob.c (glob, globfree): Likewise.
31384         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
31385         * tests/test-inet_ntop.c (inet_ntop): Likewise.
31386         * tests/test-inet_pton.c (inet_pton): Likewise.
31387         * tests/test-isblank.c (isblank): Likewise.
31388         * tests/test-lchown.c (lchown): Likewise.
31389         * tests/test-ldexpl.c (ldexpl): Likewise.
31390         * tests/test-link.c (link): Likewise.
31391         * tests/test-linkat.c (linkat): Likewise.
31392         * tests/test-lseek.c (lseek): Likewise.
31393         * tests/test-lstat.c (lstat): Likewise.
31394         * tests/test-mbrtowc.c (mbrtowc): Likewise.
31395         * tests/test-mbsinit.c (mbsinit): Likewise.
31396         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
31397         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
31398         * tests/test-memchr.c (memchr): Likewise.
31399         * tests/test-memcmp.c (memcmp): Likewise.
31400         * tests/test-memmem.c (memmem): Likewise.
31401         * tests/test-memrchr.c (memrchr): Likewise.
31402         * tests/test-mkdir.c (mkdir): Likewise.
31403         * tests/test-mkdirat.c (mkdirat): Likewise.
31404         * tests/test-mkfifo.c (mkfifo): Likewise.
31405         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
31406         * tests/test-mknod.c (mknod): Likewise.
31407         * tests/test-nanosleep.c (nanosleep): Likewise.
31408         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
31409         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
31410         Likewise.
31411         * tests/test-open.c (open): Likewise.
31412         * tests/test-openat.c (openat): Likewise.
31413         * tests/test-perror.c (perror): Likewise.
31414         * tests/test-pipe2.c (pipe2): Likewise.
31415         * tests/test-poll.c (poll): Likewise.
31416         * tests/test-popen.c (popen, pclose): Likewise.
31417         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
31418         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
31419         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
31420         (posix_spawn_file_actions_destroy)
31421         (posix_spawn_file_actions_addclose)
31422         (posix_spawn_file_actions_addopen)
31423         (posix_spawn_file_actions_adddup2): Likewise.
31424         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
31425         * tests/test-pread.c (pread): Likewise.
31426         * tests/test-printf-posix.c (printf): Likewise.
31427         * tests/test-pty.c (openpty, forkpty): Likewise.
31428         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
31429         (random_r): Likewise.
31430         * tests/test-rawmemchr.c (rawmemchr): Likewise.
31431         * tests/test-readlink.c (readlink): Likewise.
31432         * tests/test-remove.c (remove): Likewise.
31433         * tests/test-rename.c (rename): Likewise.
31434         * tests/test-renameat.c (renameat): Likewise.
31435         * tests/test-rmdir.c (rmdir): Likewise.
31436         * tests/test-round1.c (round): Likewise.
31437         * tests/test-roundf1.c (roundf): Likewise.
31438         * tests/test-roundl.c (roundl): Likewise.
31439         * tests/test-setenv.c (setenv): Likewise.
31440         * tests/test-sigaction.c (sigaction): Likewise.
31441         * tests/test-sleep.c (sleep): Likewise.
31442         * tests/test-snprintf.c (snprintf): Likewise.
31443         * tests/test-sprintf-posix.c (sprintf): Likewise.
31444         * tests/test-stat.c (stat): Likewise.
31445         * tests/test-stpncpy.c (stpncpy): Likewise.
31446         * tests/test-strcasestr.c (strcasestr): Likewise.
31447         * tests/test-strchrnul.c (strchrnul): Likewise.
31448         * tests/test-strerror.c (strerror): Likewise.
31449         * tests/test-strsignal.c (strsignal): Likewise.
31450         * tests/test-strstr.c (strstr): Likewise.
31451         * tests/test-strtod.c (strtod): Likewise.
31452         * tests/test-strverscmp.c (strverscmp): Likewise.
31453         * tests/test-symlink.c (symlink): Likewise.
31454         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
31455         * tests/test-times.c (times): Likewise.
31456         * tests/test-trunc1.c (trunc): Likewise.
31457         * tests/test-truncf1.c (truncf): Likewise.
31458         * tests/test-truncl.c (truncl): Likewise.
31459         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
31460         Likewise.
31461         * tests/test-uname.c (uname): Likewise.
31462         * tests/test-unlink.c (unlink): Likewise.
31463         * tests/test-unlinkat.c (unlinkat): Likewise.
31464         * tests/test-unsetenv.c (unsetenv): Likewise.
31465         * tests/test-usleep.c (usleep): Likewise.
31466         * tests/test-utimensat.c (utimensat): Likewise.
31467         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
31468         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
31469         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
31470         * tests/test-vprintf-posix.c (vprintf): Likewise.
31471         * tests/test-vsnprintf.c (vsnprintf): Likewise.
31472         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
31473         * tests/test-wcrtomb.c (wcrtomb): Likewise.
31474         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
31475         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
31476         * tests/test-wcwidth.c (wcwidth): Likewise.
31477
31478         build: pull in conditional headers during GNULIB_POSIXCHECK
31479         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
31480         definitions from any conditionally-included headers.
31481         * lib/stdlib.in.h (includes): Likewise.
31482         * lib/unistd.in.h (includes): Likewise.
31483
31484 2009-12-24  Bruno Haible  <bruno@clisp.org>
31485
31486         * tests/test-argv-iter.c: Include header file being tested immediately
31487         after config.h.
31488         * tests/test-base64.c: Likewise.
31489         * tests/test-flock.c: Likewise.
31490         * tests/test-fsync.c: Likewise.
31491         * tests/test-getdate.c: Likewise.
31492         * tests/test-getndelim2.c: Likewise.
31493         * tests/test-isfinite.c: Likewise.
31494         * tests/test-isinf.c: Likewise.
31495         * tests/test-strerror.c: Likewise.
31496         * tests/test-strsignal.c: Likewise.
31497
31498 2009-12-23  Eric Blake  <ebb9@byu.net>
31499
31500         unistd: work around cygwin bug
31501         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
31502         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
31503         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31504
31505 2009-12-23  Bruno Haible  <bruno@clisp.org>
31506
31507         localename: More tests.
31508         * tests/test-localename.c (SIZEOF): New macro.
31509         (categories): New variable.
31510         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
31511         test_locale_name_default): Add test w.r.t. thread locale.
31512         (test_locale_name_thread): New function.
31513         (main): Invoke it.
31514
31515         localename: Make aware of thread locale.
31516         * lib/localename.h (gl_locale_name_thread): New declaration.
31517         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
31518         behaviour with respect to thread locale.
31519         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
31520         <langinfo.h>, glthread/lock.h.
31521         (SIZE_BITS): New macro.
31522         (string_hash): New function.
31523         (struct hash_node): New type.
31524         (HASH_TABLE_SIZE): New macro.
31525         (struniq_hash_table, struniq_lock): New variables.
31526         (struniq): New function.
31527         (gl_locale_name_thread): New function.
31528         (gl_locale_name): Invoke it.
31529         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
31530         * modules/localename (Depends-on): Add lock.
31531         Reported by Mike Gran <spk121@yahoo.com>.
31532
31533 2009-12-23  Eric Blake  <ebb9@byu.net>
31534
31535         va-args: new module
31536         * modules/va-args: New file.
31537         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
31538         * MODULES.html.sh (Core language properties): Mention it.
31539
31540         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
31541         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
31542         named alias for __attribute__((__unused__)).
31543         * lib/chown.c: Update client.
31544         * lib/fchmodat.c: Likewise.
31545         * lib/fts.c: Likewise.
31546         * lib/getdate.y: Likewise.
31547         * lib/getgroups.c: Likewise.
31548         * lib/getopt.c: Likewise.
31549         * lib/getugroups.c: Likewise.
31550         * lib/mkdir.c: Likewise.
31551         * lib/mkfifo.c: Likewise.
31552         * lib/mkfifoat.c: Likewise.
31553         * lib/mknod.c: Likewise.
31554         * lib/mknodat.c: Likewise.
31555         * lib/readlink.c: Likewise.
31556         * lib/se-context.in.h: Likewise.
31557         * lib/se-selinux.in.h: Likewise.
31558         * lib/sockets.c: Likewise.
31559         * lib/symlink.c: Likewise.
31560         * lib/symlinkat.c: Likewise.
31561         * lib/unicodeio.c: Likewise.
31562         * lib/unistr.h: Likewise.
31563         * tests/test-areadlink.c: Likewise.
31564         * tests/test-areadlinkat.c: Likewise.
31565         * tests/test-filenamecat.c: Likewise.
31566         * tests/test-fseeko.c: Likewise.
31567         * tests/test-ftello.c: Likewise.
31568         * tests/test-getdate.c: Likewise.
31569         * tests/test-getgroups.c: Likewise.
31570         * tests/test-gethostname.c: Likewise.
31571         * tests/test-quotearg.c: Likewise.
31572         * tests/test-version-etc.c: Likewise.
31573         * tests/test-xalloc-die.c: Likewise.
31574         * tests/test-xfprintf-posix.c: Likewise.
31575         * tests/test-xprintf-posix.c: Likewise.
31576         * tests/test-xvasprintf.c: Likewise.
31577
31578         tests: avoid compiler warnings
31579         * tests/test-fcntl.c (main): Delete unused parameters.
31580         * tests/test-freopen-safer.c (main): Likewise.
31581         * tests/test-xalloc-die.c (main): Mark unused parameters.
31582         * tests/test-fseeko.c (main): Likewise.
31583         * tests/test-ftello.c (main): Likewise.
31584         * tests/test-nanosleep.c (main): Avoid declaration warning.
31585         * tests/test-sleep.c (main): Likewise.
31586         * tests/test-unsetenv.c (main): Silence warning about string
31587         literal.
31588         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
31589
31590 2009-12-23  Bruno Haible  <bruno@clisp.org>
31591
31592         * tests/test-localename.c (test_locale_name): New function, extracted
31593         from main. Also test mixed situations.
31594         (test_locale_name_posix, test_locale_name_environ,
31595         test_locale_name_default): New functions.
31596         (main): Invoke them all.
31597         * modules/localename-tests (configure.ac): Test for newlocale.
31598
31599 2009-12-23  Bruno Haible  <bruno@clisp.org>
31600
31601         unistd: Ensure getcwd gets declared before being overridden.
31602         * lib/unistd.in.h: Conditionally include <io.h>.
31603
31604 2009-12-22  Bruno Haible  <bruno@clisp.org>
31605
31606         wchar: Diagnose broken combination of glibc and gcc versions and flags.
31607         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
31608         (gl_WCHAR_H): Invoke it.
31609         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
31610         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
31611         Reported by Karl Berry <karl@freefriends.org>.
31612
31613 2009-12-22  Eric Blake  <ebb9@byu.net>
31614
31615         math, unistd: avoid redundant includes
31616         * lib/math.in.h (isnan): No need to re-include <math.h>.
31617         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
31618
31619         getsubopt: work around cygwin bug
31620         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
31621         avoid conflicting with system getsubopt.
31622         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
31623         bug.
31624
31625         getopt: synchronize from glibc
31626         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
31627         parameter order.  Adjust all callers.
31628         (_getopt_internal_r, main): Adjust quoting in error messages.
31629         Drop considerations for outdated POSIX 1003.2 error message.
31630         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
31631         callers.
31632         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
31633
31634         test-getopt: test stderr behavior
31635         * modules/getopt-posix-tests (Depends-on): Add dup2.
31636         * tests/test-getopt.c (ASSERT): Avoid stderr.
31637         (main): Move stderr to a temporary file.
31638         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
31639         Instead, add parameter to inform caller if output occurred.
31640         (test_getopt): Adjust all existing tests to expect silence, and
31641         add new tests of leading ":".
31642         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31643         glibc shortcomings with leading "-:" or "+:" in optstring.
31644         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31645         Likewise.
31646         * doc/posix-functions/getopt.texi (getopt): Likewise.
31647
31648         test-getopt: enhance test
31649         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
31650         supports optind=0.
31651         * tests/test-getopt.c (OPTIND_MIN): Move...
31652         * tests/test-getopt.h (OPTIND_MIN): ...here.
31653         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
31654         Require that optind=0 works, since modern BSD supports it in
31655         addition to optreset, and since coreutils expects it.
31656         (test_getopt_long_only): New test.
31657         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
31658         glibc shortcomings with 'W;', and enforcement of optind=0.
31659         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31660         Likewise.
31661
31662 2009-12-21  Bruno Haible  <bruno@clisp.org>
31663
31664         localename: Improvements for MacOS X and Cygwin.
31665         * lib/localename.h (gl_locale_name_environ): New declaration.
31666         * lib/localename.c (gl_locale_name_environ): New function, extracted from
31667         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
31668         (gl_locale_name_posix): Invoke it.
31669         (gl_locale_name_default): Add comments. Use Windows native API also on
31670         Cygwin.
31671
31672 2009-12-21  Bruno Haible  <bruno@clisp.org>
31673
31674         Update list of Win32 locale ids.
31675         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
31676         (LANG_SAMI): Renamed from LANG_SAAMI.
31677         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
31678         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
31679         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
31680         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
31681         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
31682         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
31683         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
31684         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
31685         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
31686         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
31687         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
31688         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
31689         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
31690         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
31691         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
31692         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
31693         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
31694         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
31695         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
31696         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
31697         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
31698         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
31699         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
31700         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
31701         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
31702         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
31703         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
31704         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
31705         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
31706         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
31707         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
31708         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
31709         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
31710         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
31711         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
31712         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
31713         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
31714         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
31715         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
31716         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
31717         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
31718         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
31719         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
31720         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
31721         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
31722         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
31723         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
31724         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
31725         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
31726         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
31727         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
31728         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
31729         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
31730         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
31731         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
31732         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
31733         Add more languages and countries for Sami, Sorbian. Add more countries
31734         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
31735         for Pashto. Change country for Syriac, Tswana.
31736
31737 2009-12-21  Eric Blake  <ebb9@byu.net>
31738
31739         test-utimens: avoid spurious failure
31740         * tests/test-chown.h (nap): Factor...
31741         * tests/nap.h: ...into new file.
31742         * tests/test-lchown.h (nap): Avoid duplication.
31743         * tests/test-utimens-common.h (nap): Use shared implementation,
31744         necessary on file systems with 1-second resolution.
31745         * modules/chown-tests (Files): Include new file.
31746         * modules/fdutimensat-tests (Files): Likewise.
31747         * modules/futimens-tests (Files): Likewise.
31748         * modules/lchown-tests (Files): Likewise.
31749         * modules/openat-tests (Files): Likewise.
31750         * modules/utimens-tests (Files): Likewise.
31751         * modules/utimensat-tests (Files): Likewise.
31752
31753 2009-12-19  Eric Blake  <ebb9@byu.net>
31754
31755         futimens, utimensat: work around Linux bug
31756         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
31757         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31758         * lib/utimensat.c (rpl_utimensat): Work around it.
31759         * lib/futimens.c (rpl_futimens): Adjust comment.
31760
31761         utimens: work around Linux ctime bug
31762         * lib/utimens.c (detect_ctime_bug): New helper function.
31763         (update_timespec): Differentiate between workaround needed for
31764         this bug vs. what is needed for systems that lack utimensat.
31765         (fdutimens, lutimens): Work around bug.
31766
31767         utimens: check for ctime update
31768         * tests/test-utimens-common.h (check_ctime): Define.
31769         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
31770         * tests/test-futimens.h (test_futimens): Likewise.
31771         * tests/test-lutimens.h (test_lutimens): Likewise.
31772         * doc/posix-functions/futimens.texi (futimens): Document the bug.
31773         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
31774
31775 2009-12-19  Bruno Haible  <bruno@clisp.org>
31776
31777         dprintf-posix: Check against memory leak fixed on 2009-12-15.
31778         * tests/test-dprintf-posix2.sh: New file.
31779         * tests/test-dprintf-posix2.c: New file.
31780         * modules/dprintf-posix-tests (Files): Add them.
31781         (configure.ac): Check for getrlimit and setrlimit.
31782         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31783
31784 2009-12-19  Bruno Haible  <bruno@clisp.org>
31785
31786         fprintf-posix: Check against memory leak fixed on 2009-12-15.
31787         * tests/test-fprintf-posix3.sh: New file.
31788         * tests/test-fprintf-posix3.c: New file.
31789         * modules/fprintf-posix-tests (Files): Add them.
31790         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
31791
31792 2009-12-19  Eric Blake  <ebb9@byu.net>
31793
31794         dirfd: fix prototype
31795         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
31796         * lib/dirfd.c (dirfd): Likewise.
31797
31798         canonicalize: reduce memory usage
31799         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
31800         allocation to size.
31801         Reported by Solar Designer <solar@openwall.com>.
31802
31803 2009-12-19  Bruno Haible  <bruno@clisp.org>
31804
31805         New module attribute 'Applicability'.
31806         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
31807         * gnulib-tool: New option --extract-applicability.
31808         (func_usage): Document it.
31809         (sed_extract_prog): Recognize it.
31810         (func_get_applicability): New function.
31811         (func_import): Generalize handling of 'link-warning' module.
31812         * modules/link-warning (Applicability): New section.
31813         * modules/arg-nonnull (Applicability): New section.
31814         Repoted by Simon Josefsson <simon@josefsson.org>.
31815
31816 2009-12-19  Bruno Haible  <bruno@clisp.org>
31817
31818         fflush: tweak
31819         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
31820         * lib/fseeko.c (rpl_fseeko): Likewise.
31821
31822 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
31823
31824         * lib/gl_list.h: Fix typo in comment.
31825
31826 2009-12-16  Eric Blake  <ebb9@byu.net>
31827
31828         fcntl: use to simplify other modules
31829         * modules/cloexec (Depends-on): Add fcntl.
31830         * modules/fchdir (Depends-on): Likewise.
31831         * modules/fd-safer-flag (Depends-on): Likewise.
31832         * modules/unistd-safer (Depends-on): Likewise.
31833         * modules/dup3 (configure.ac): Set module indicator.
31834         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
31835         missing.
31836         * lib/fchdir.c (_gl_register_dup): Fix comment.
31837         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
31838         * lib/dup-safer.c (dup_safer): Likewise.
31839         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
31840         * lib/dup3.c (dup3): Likewise.
31841         * tests/test-fchdir.c (main): Enhance test.
31842         Fixes a dup_cloexec bug reported by Ondřej Vašík.
31843
31844         fcntl: port portions of fcntl to mingw
31845         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
31846         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
31847         replacement for mingw.
31848         * modules/fcntl (Description): Update.
31849         (Depends-on): Add dup2.
31850         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
31851         * modules/fcntl-h (Makefile.am): Substitute it.
31852         * lib/fcntl.in.h (fcntl): Update declaration.
31853         (F_DUPFD, F_GETFD): New macros, when needed.
31854         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
31855         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
31856         * tests/test-fcntl.c (check_flags, main): Enhance test for items
31857         we now guarantee.
31858
31859         fcntl: work around cygwin bug in F_DUPFD
31860         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
31861         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
31862         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
31863         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
31864         * doc/posix-functions/fcntl.texi (fcntl): Document it.
31865
31866         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
31867         * modules/fcntl (Files): List new files.
31868         (configure.ac): Run a test.
31869         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
31870         * lib/fcntl.c (rpl_fcntl): Likewise.
31871         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
31872         (gl_FCNTL_H): Always replace fcntl.h.
31873         * modules/fcntl-h (Makefile.am): Substitute witnesses.
31874         * lib/fcntl.in.h (fcntl): Declare replacement.
31875         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
31876         needed, plus a witness.
31877         * doc/posix-functions/fcntl.texi (fcntl): Document this.
31878         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
31879         * tests/test-fcntl.c: New file.
31880         * modules/fcntl-tests: Likewise.
31881
31882         binary-io: avoid potential compilation warning
31883         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
31884         directives.
31885
31886         fflush: avoid compilation error on NetBSD
31887         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
31888         between off_t and fpos_t, since the latter is sometimes a struct.
31889         * lib/fseeko.c (rpl_fseeko): Likewise.
31890         Reported by Alexander Nasonov <alnsn@yandex.ru>.
31891
31892 2009-12-15  Eric Blake  <ebb9@byu.net>
31893
31894         fcntl-h, stdio, sys_ioctl: fix declarations
31895         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
31896         function must not take arguments.
31897         * lib/sys_ioctl.in.h (ioctl): Likewise.
31898         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
31899         (open): Add a link warning.
31900
31901 2009-12-15  Jim Meyering  <meyering@redhat.com>
31902
31903         areadlink, areadlink-with-size: relax license to LGPLv2+
31904         * modules/areadlink (License): Relax to LGPLv2+.
31905         * modules/areadlink-with-size (License): Likewise.
31906
31907 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
31908             Bruno Haible  <bruno@clisp.org>
31909
31910         *printf: Fix memory leak.
31911         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
31912         * lib/vfprintf.c (vfprintf): Likewise.
31913         * lib/dprintf.c (dprintf): Likewise.
31914         * lib/vdprintf.c (vdprintf): Likewise.
31915
31916 2009-12-14  Eric Blake  <ebb9@byu.net>
31917
31918         accept4: adjust module dependencies
31919         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
31920
31921         utimens: one more try at avoiding compiler warning
31922         * lib/utimens.c (lutimens): Lower scope of result.
31923
31924 2009-12-13  Bruno Haible  <bruno@clisp.org>
31925
31926         Move the malloc checking from module 'list' to new module 'xlist'.
31927         * modules/xlist: New file.
31928         * lib/gl_xlist.h: New file.
31929         * lib/gl_xlist.c: New file.
31930         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
31931         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
31932         gl_list_add_last, gl_list_add_before, gl_list_add_after,
31933         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
31934         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
31935         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
31936         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
31937         gl_sortedlist_nx_add): New declarations.
31938         (struct gl_list_implementation): Rename and change methods accordingly.
31939         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
31940         (gl_list_nx_create): Renamed from gl_list_create.
31941         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31942         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31943         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31944         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31945         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31946         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31947         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31948         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31949         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
31950         gl_list_create_empty.
31951         (gl_list_nx_create): Renamed from gl_list_create.
31952         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
31953         (gl_list_nx_set_at): Renamed from gl_list_set_at.
31954         (gl_list_nx_add_first): Renamed from gl_list_add_first.
31955         (gl_list_nx_add_last): Renamed from gl_list_add_last.
31956         (gl_list_nx_add_before): Renamed from gl_list_add_before.
31957         (gl_list_nx_add_after): Renamed from gl_list_add_after.
31958         (gl_list_nx_add_at): Renamed from gl_list_add_at.
31959         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
31960         * lib/gl_array_list.c: Don't include xalloc.h.
31961         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
31962         NULL upon out-of-memory.
31963         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
31964         out-of-memory.
31965         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
31966         Change return type to 'int'.
31967         (gl_array_nx_set_at): Renamed from gl_array_set_at.
31968         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31969         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
31970         upon out-of-memory.
31971         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
31972         upon out-of-memory.
31973         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
31974         upon out-of-memory.
31975         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
31976         upon out-of-memory.
31977         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
31978         out-of-memory.
31979         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
31980         Update.
31981         (gl_array_list_implementation): Update.
31982         * lib/gl_carray_list.c: Don't include xalloc.h.
31983         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
31984         Return NULL upon out-of-memory.
31985         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
31986         out-of-memory.
31987         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
31988         Change return type to 'int'.
31989         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
31990         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
31991         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
31992         upon out-of-memory.
31993         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
31994         upon out-of-memory.
31995         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
31996         out-of-memory.
31997         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
31998         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
31999         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
32000         Update.
32001         (gl_carray_list_implementation): Update.
32002         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
32003         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
32004         gl_linked_create_empty. Return NULL upon out-of-memory.
32005         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
32006         out-of-memory.
32007         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
32008         Change return type to 'int'. Return -1 upon out-of-memory.
32009         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
32010         out-of-memory.
32011         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
32012         upon out-of-memory.
32013         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
32014         upon out-of-memory.
32015         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
32016         NULL upon out-of-memory.
32017         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
32018         upon out-of-memory.
32019         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
32020         out-of-memory.
32021         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
32022         Update.
32023         * lib/gl_linked_list.c: Don't include xalloc.h.
32024         (gl_linked_list_implementation): Update.
32025         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
32026         (add_to_bucket): Change return type to 'int'.
32027         (gl_linkedhash_list_implementation): Update.
32028         * lib/gl_anytree_list1.h (free_subtree): New function.
32029         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
32030         gl_tree_create_empty. Return NULL upon out-of-memory.
32031         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
32032         Change return type to 'int'. Return -1 upon out-of-memory.
32033         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
32034         out-of-memory.
32035         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
32036         (gl_tree_remove_node): New function, moved here from
32037         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
32038         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
32039         Update.
32040         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
32041         malloc, not xmalloc. Return NULL upon out-of-memory.
32042         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
32043         out-of-memory.
32044         (gl_tree_remove_node_from_tree): New function, extracted from
32045         gl_tree_remove_node.
32046         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
32047         upon out-of-memory.
32048         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
32049         out-of-memory.
32050         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
32051         upon out-of-memory.
32052         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
32053         upon out-of-memory.
32054         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
32055         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
32056         not xmalloc. Return NULL upon out-of-memory.
32057         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
32058         out-of-memory.
32059         (gl_tree_remove_node_from_tree): New function, extracted from
32060         gl_tree_remove_node.
32061         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
32062         upon out-of-memory.
32063         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
32064         out-of-memory.
32065         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
32066         upon out-of-memory.
32067         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
32068         upon out-of-memory.
32069         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
32070         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
32071         gl_anytree_list1.h before gl_anyavltree_list2.h.
32072         (gl_avltree_list_implementation): Update.
32073         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
32074         gl_anytree_list1.h before gl_anyavltree_list2.h.
32075         (gl_rbtree_list_implementation): Update.
32076         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
32077         Change return type to 'int'. Return -1 upon out-of-memory. Use
32078         __builtin_expect.
32079         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
32080         (gl_avltreehash_list_implementation): Update.
32081         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
32082         (gl_rbtreehash_list_implementation): Update.
32083         * modules/array-list (Depends-on): Remove xalloc.
32084         * modules/carray-list (Depends-on): Likewise.
32085         * modules/linked-list (Depends-on): Likewise.
32086         * modules/linkedhash-list (Depends-on): Likewise.
32087         * modules/avltree-list (Depends-on): Likewise.
32088         * modules/rbtree-list (Depends-on): Likewise.
32089         * modules/avltreehash-list (Depends-on): Likewise.
32090         * modules/rbtreehash-list (Depends-on): Likewise.
32091
32092         * modules/xsublist: New file.
32093         * lib/gl_xsublist.h: New file.
32094         * lib/gl_xsublist.c: New file.
32095         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
32096         (gl_sublist_nx_create): New declaration.
32097         * lib/gl_sublist.c: Don't include xalloc.h.
32098         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
32099         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
32100         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
32101         Change return type to 'int'. Return -1 upon out-of-memory.
32102         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
32103         upon out-of-memory.
32104         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
32105         NULL upon out-of-memory.
32106         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
32107         upon out-of-memory.
32108         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
32109         NULL upon out-of-memory.
32110         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
32111         NULL upon out-of-memory.
32112         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
32113         upon out-of-memory.
32114         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
32115         (gl_sublist_list_implementation): Update.
32116         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
32117         upon out-of-memory.
32118         * modules/sublist (Depends-on): Remove xalloc.
32119
32120         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
32121         * tests/test-carray_list.c: Likewise.
32122         * tests/test-linked_list.c: Likewise.
32123         * tests/test-linkedhash_list.c: Likewise.
32124         * tests/test-avltree_list.c: Likewise.
32125         * tests/test-rbtree_list.c: Likewise.
32126         * tests/test-avltreehash_list.c: Likewise.
32127         * tests/test-rbtreehash_list.c: Likewise.
32128         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
32129         * modules/carray-list-tests (Makefile.am): Likewise.
32130         * modules/linked-list-tests (Makefile.am): Likewise.
32131         * modules/linkedhash-list-tests (Makefile.am): Likewise.
32132         * modules/avltree-list-tests (Makefile.am): Likewise.
32133         * modules/rbtree-list-tests (Makefile.am): Likewise.
32134         * modules/avltreehash-list-tests (Makefile.am): Likewise.
32135         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
32136
32137         * NEWS: Mention the changes.
32138
32139         * lib/clean-temp.c: Include gl_xlist.h.
32140         * modules/clean-temp (Depends-on): Add xlist.
32141
32142         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
32143         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
32144
32145         * tests/test-array_oset.c: Include gl_xlist.h.
32146         * modules/array-oset-tests (Depends-on): Add xlist.
32147
32148         Reported by José E. Marchesi <jemarch@gnu.org>.
32149
32150 2009-12-13  Bruno Haible  <bruno@clisp.org>
32151
32152         Move the malloc checking from module 'oset' to new module 'xoset'.
32153         * modules/xoset: New file.
32154         * lib/gl_xoset.h: New file.
32155         * lib/gl_xoset.c: New file.
32156         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
32157         declarations.
32158         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
32159         (struct gl_oset_implementation): Rename and change methods accordingly.
32160         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
32161         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
32162         'int'. Mark as __warn_unused_result__.
32163         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
32164         gl_oset_create_empty.
32165         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
32166         'int'.
32167         * lib/gl_array_oset.c: Don't include xalloc.h.
32168         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
32169         malloc, not xmalloc.
32170         (grow): Change return type to 'int'. Don't call xalloc_die.
32171         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
32172         to 'int'.
32173         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
32174         'int'.
32175         (gl_array_oset_implementation): Update.
32176         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
32177         gl_tree_create_empty.
32178         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
32179         'int'.
32180         * lib/gl_avltree_oset.c: Don't include xalloc.h.
32181         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
32182         xmalloc.
32183         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
32184         not xmalloc.
32185         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
32186         xmalloc.
32187         (gl_avltree_oset_implementation): Update.
32188         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
32189         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
32190         xmalloc.
32191         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
32192         not xmalloc.
32193         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
32194         xmalloc.
32195         (gl_rbtree_oset_implementation): Update.
32196         * modules/array-oset (Depends-on): Remove xalloc.
32197         * modules/avltree-oset (Depends-on): Likewise.
32198         * modules/rbtree-oset (Depends-on): Likewise.
32199         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
32200         * tests/test-avltree_oset.c: Likewise.
32201         * tests/test-rbtree_oset.c: Likewise.
32202         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
32203         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
32204         * modules/rbtree-oset-tests (Makefile.am): Likewise.
32205         * NEWS: Mention the change.
32206
32207 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
32208
32209         maint.mk: allow a project to override release-prep commands
32210         * top/maint.mk (alpha, beta, stable): Move release-preparatory
32211         commands into a new rule.
32212         (release-prep): New rule.
32213         (release-prep-hook): New overridable variable.
32214
32215 2009-12-13  Bruno Haible  <bruno@clisp.org>
32216
32217         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
32218
32219 2009-12-13  Jim Meyering  <meyering@redhat.com>
32220
32221         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
32222         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
32223
32224 2009-12-12  Bruno Haible  <bruno@clisp.org>
32225
32226         duplocale: Tweak.
32227         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
32228
32229 2009-12-12  Karl Berry  <karl@gnu.org>
32230
32231         * config/srclist.txt (strtoll.c): tab changes, no more sync.
32232
32233 2009-12-12  Bruno Haible  <bruno@clisp.org>
32234
32235         * m4/po.m4: Undo incorrect untabification.
32236
32237 2009-12-12  Bruno Haible  <bruno@clisp.org>
32238
32239         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
32240         * modules/c-strtod (Depends-on): Add locale.
32241         * modules/c-strtold (Depends-on): Likewise.
32242
32243 2009-12-12  Bruno Haible  <bruno@clisp.org>
32244
32245         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
32246
32247 2009-12-11  Eric Blake  <ebb9@byu.net>
32248
32249         setenv: relax requirement in light of POSIX ruling
32250         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
32251         not NULL.
32252         * tests/test-setenv.c (main): Relax test.
32253         * tests/test-unsetenv.c (main): Likewise.
32254         * doc/posix-functions/setenv.texi (setenv): Document this.
32255         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
32256
32257 2009-12-11  Bruno Haible  <bruno@clisp.org>
32258
32259         New module 'fd-safer-flag'.
32260         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
32261         * lib/dup-safer.c (dup_safer_flag): Remove function.
32262         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
32263         * lib/fd-safer.c (fd_safer_flag): Remove function.
32264         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
32265         * modules/cloexec (configure.ac): Drop indicator macro.
32266         * modules/fd-safer-flag: New file.
32267         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
32268         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
32269         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
32270
32271 2009-12-11  Bruno Haible  <bruno@clisp.org>
32272
32273         Tests for module 'nl_langinfo'.
32274         * modules/nl_langinfo-tests: New file.
32275         * tests/test-nl_langinfo.sh: New file.
32276         * tests/test-nl_langinfo.c: New file.
32277
32278         New module 'nl_langinfo'.
32279         * lib/nl_langinfo.c: New file.
32280         * m4/nl_langinfo.m4: New file.
32281         * modules/nl_langinfo: New file.
32282         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
32283
32284 2009-12-11  Bruno Haible  <bruno@clisp.org>
32285
32286         Tests for module 'langinfo'.
32287         * modules/langinfo-tests: New file.
32288         * tests/test-langinfo.c: New file.
32289
32290         New module 'langinfo'.
32291         * lib/langinfo.in.h: New file.
32292         * m4/langinfo_h.m4: New file.
32293         * modules/langinfo: New file.
32294         * doc/posix-headers/langinfo.texi: Mention the new module.
32295
32296 2009-12-11  Bruno Haible  <bruno@clisp.org>
32297
32298         * lib/config.charset: Untabify.
32299
32300 2009-12-11  Bruno Haible  <bruno@clisp.org>
32301
32302         * modules/unistd-safer (configure.ac): Drop indicator macro.
32303
32304 2009-12-11  Bruno Haible  <bruno@clisp.org>
32305
32306         Move pipe2-safer code to its own file.
32307         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
32308         * lib/pipe-safer.c (pipe2_safer): Remove function.
32309         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
32310         (Makefile.am): Add it to lib_SOURCES.
32311
32312 2009-12-10  Bruno Haible  <bruno@clisp.org>
32313
32314         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
32315
32316 2009-12-10  Bruno Haible  <bruno@clisp.org>
32317
32318         Declare which arguments expect non-NULL values, for GCC and clang.
32319         * build-aux/arg-nonnull.h: New file.
32320         * modules/arg-nonnull: New file.
32321         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
32322         (inet_ntop, inet_pton): Use it.
32323         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
32324         (closedir, dirfd, opendir, scandir, alphasort): Use it.
32325         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
32326         (open, openat): Use it.
32327         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
32328         (fnmatch): Use it.
32329         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
32330         (getopt, getopt_long, getopt_long_only): Use it.
32331         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
32332         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
32333         Use it.
32334         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
32335         (iconv_open): Use it.
32336         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
32337         (strtoimax, strtoumax): Use it.
32338         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
32339         (duplocale): Use it.
32340         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
32341         (frexp, frexpl): Use it.
32342         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
32343         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
32344         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
32345         (tsearch, tfind, tdelete, twalk): Use it.
32346         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
32347         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32348         sigpending): Use it.
32349         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
32350         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32351         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32352         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32353         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32354         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32355         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32356         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32357         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32358         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32359         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32360         Use it.
32361         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
32362         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
32363         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
32364         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
32365         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
32366         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
32367         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
32368         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
32369         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
32370         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
32371         strtoull, unsetenv): Use it.
32372         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
32373         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32374         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32375         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
32376         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
32377         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
32378         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
32379         (strcasecmp, strncasecmp): Use it.
32380         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
32381         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
32382         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
32383         rpl_setsockopt): Use it.
32384         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
32385         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
32386         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
32387         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
32388         (gettimeofday): Use it.
32389         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
32390         (times): Use it.
32391         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
32392         (uname): Use it.
32393         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
32394         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
32395         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
32396         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
32397         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
32398         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
32399         unlinkat, write): Use it.
32400         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
32401         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
32402         * lib/argv-iter.h: Include arg-nonnull.h.
32403         (_ATTRIBUTE_NONNULL_): Remove macro.
32404         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
32405         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
32406         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
32407         optimization.
32408         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
32409         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
32410         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
32411         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
32412         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
32413         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
32414         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
32415         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
32416         * modules/arpa_inet (Depends-on): Add arg-nonnull.
32417         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
32418         * modules/dirent (Depends-on): Add arg-nonnull.
32419         (Makefile.am): Insert arg-nonnull.h into dirent.h.
32420         * modules/fcntl-h (Depends-on): Add arg-nonnull.
32421         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
32422         * modules/fnmatch (Depends-on): Add arg-nonnull.
32423         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
32424         * modules/getopt-posix (Depends-on): Add arg-nonnull.
32425         (Makefile.am): Insert arg-nonnull.h into getopt.h.
32426         * modules/glob (Depends-on): Add arg-nonnull.
32427         (Makefile.am): Insert arg-nonnull.h into glob.h.
32428         * modules/iconv_open (Depends-on): Add arg-nonnull.
32429         (Makefile.am): Insert arg-nonnull.h into iconv.h.
32430         * modules/inttypes (Depends-on): Add arg-nonnull.
32431         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
32432         * modules/locale (Depends-on): Add arg-nonnull.
32433         (Makefile.am): Insert arg-nonnull.h into locale.h.
32434         * modules/math (Depends-on): Add arg-nonnull.
32435         (Makefile.am): Insert arg-nonnull.h into math.h.
32436         * modules/netdb (Depends-on): Add arg-nonnull.
32437         (Makefile.am): Insert arg-nonnull.h into netdb.h.
32438         * modules/search (Depends-on): Add arg-nonnull.
32439         (Makefile.am): Insert arg-nonnull.h into search.h.
32440         * modules/signal (Depends-on): Add arg-nonnull.
32441         (Makefile.am): Insert arg-nonnull.h into signal.h.
32442         * modules/spawn (Depends-on): Add arg-nonnull.
32443         (Makefile.am): Insert arg-nonnull.h into spawn.h.
32444         * modules/stdio (Depends-on): Add arg-nonnull.
32445         (Makefile.am): Insert arg-nonnull.h into stdio.h.
32446         * modules/stdlib (Depends-on): Add arg-nonnull.
32447         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
32448         * modules/string (Depends-on): Add arg-nonnull.
32449         (Makefile.am): Insert arg-nonnull.h into string.h.
32450         * modules/strings (Depends-on): Add arg-nonnull.
32451         (Makefile.am): Insert arg-nonnull.h into strings.h.
32452         * modules/sys_socket (Depends-on): Add arg-nonnull.
32453         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
32454         * modules/sys_stat (Depends-on): Add arg-nonnull.
32455         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
32456         * modules/sys_time (Depends-on): Add arg-nonnull.
32457         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
32458         * modules/sys_times (Depends-on): Add arg-nonnull.
32459         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
32460         * modules/sys_utsname (Depends-on): Add arg-nonnull.
32461         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
32462         * modules/time (Depends-on): Add arg-nonnull.
32463         (Makefile.am): Insert arg-nonnull.h into time.h.
32464         * modules/unistd (Depends-on): Add arg-nonnull.
32465         (Makefile.am): Insert arg-nonnull.h into unistd.h.
32466         * modules/wchar (Depends-on): Add arg-nonnull.
32467         (Makefile.am): Insert arg-nonnull.h into wchar.h.
32468         * modules/argv-iter (Depends-on): Add arg-nonnull.
32469         * tests/test-canonicalize.c (null_ptr): New function.
32470         (main): Use it.
32471         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
32472         (main): Use it.
32473         * tests/test-memmem.c (null_ptr): New function.
32474         (main): Use it.
32475         Reported by Jim Meyering.
32476
32477 2009-12-10  Bruno Haible  <bruno@clisp.org>
32478
32479         Use spaces for indentation, not tabs.
32480         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
32481         * m4/*.m4: Untabify.
32482         * build-aux/*.h: Untabify.
32483         * tests/**/*.[hc]: Untabify.
32484         * README: New section "Indent with spaces, not TABs", based on
32485         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
32486         * NEWS: Mention the change.
32487
32488 2009-12-10  Bruno Haible  <bruno@clisp.org>
32489
32490         pty test: Fix link error.
32491         * modules/pty-tests (Makefile.am): Add the default LDADD value to
32492         test_pty_LDADD.
32493
32494 2009-12-07  Simon Josefsson  <simon@josefsson.org>
32495
32496         * modules/pty: New file.
32497         * modules/pty-tests: New file.
32498         * m4/pty.m4: New file.
32499         * tests/test-pty.c: New file.
32500         * doc/glibc-headers/pty.texi: Modified.
32501         * doc/glibc-functions/forkpty.texi: Modified.
32502         * doc/glibc-functions/openpty.texi: Modified.
32503
32504 2009-12-10  Bruno Haible  <bruno@clisp.org>
32505
32506         Avoid syntax error in C++ mode.
32507         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
32508
32509 2009-12-10  Bruno Haible  <bruno@clisp.org>
32510
32511         Use sed with option -e.
32512         * gnulib-tool (func_version, func_emit_copyright_notice,
32513         func_emit_initmacro_end, func_import, func_create_testdir): Pass
32514         option -e to sed.
32515         * modules/link-warning (Makefile.am): Likewise.
32516
32517 2009-12-10  Jim Meyering  <meyering@redhat.com>
32518
32519         mgetgroups: do not write bytes beyond end of malloc'd buffer
32520         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
32521         username, we call getgroups with a one-element-shorter buffer,
32522         but still told it the length was original, max_n_groups.
32523
32524 2009-12-09  Eric Blake  <ebb9@byu.net>
32525
32526         cloexec: relax license
32527         * modules/cloexec (Maintainer): Add myself.
32528         (License): Use LGPL, not GPL.
32529
32530         link-warning: optimize generation
32531         * modules/link-warning (Makefile.am): Reduce process usage.
32532
32533 2009-12-09  Bruno Haible  <bruno@clisp.org>
32534
32535         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
32536         workaround was added on 2009-11-17.
32537
32538 2009-12-09  Jim Meyering  <meyering@redhat.com>
32539             Bruno Haible  <bruno@clisp.org>
32540
32541         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
32542         * modules/link-warning (Makefile.am): Make the comment-removing sed
32543         command more robust in the face of bootstrap-prepended comment lines.
32544
32545 2009-12-09  Bruno Haible  <bruno@clisp.org>
32546
32547         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
32548         most one group.
32549
32550 2009-12-09  Simon Josefsson <simon@josefsson.org>
32551             Bruno Haible  <bruno@clisp.org>
32552
32553         * build-aux/link-warning.h: Add copyright notice.
32554         * modules/link-warning (Makefile.am): Generate link-warning.h from
32555         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
32556         * NEWS: Mention change in link-warning module.
32557         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
32558         * modules/dirent (Makefile.am): Add dependency to dirent.h.
32559         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
32560         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
32561         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
32562         * modules/math (Makefile.am): Add dependency to math.h.
32563         * modules/search (Makefile.am): Add dependency to search.h.
32564         * modules/signal (Makefile.am): Add dependency to signal.h.
32565         * modules/spawn (Makefile.am): Add dependency to spawn.h.
32566         * modules/stdio (Makefile.am): Add dependency to stdio.h.
32567         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
32568         * modules/string (Makefile.am): Add dependency to string.h.
32569         * modules/strings (Makefile.am): Add dependency to strings.h.
32570         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
32571         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
32572         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
32573         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
32574         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
32575         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
32576         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
32577         * modules/unistd (Makefile.am): Add dependency to unistd.h.
32578         * modules/wchar (Makefile.am): Add dependency to wchar.h.
32579
32580 2009-12-09  Bruno Haible  <bruno@clisp.org>
32581
32582         fchdir: Optimize away rpl_fstat when possible.
32583         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
32584         REPLACE_OPEN_DIRECTORY.
32585         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
32586
32587 2009-12-09  Bruno Haible  <bruno@clisp.org>
32588
32589         * lib/fchdir.c: Update comment.
32590
32591 2009-12-09  Bruno Haible  <bruno@clisp.org>
32592
32593         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
32594
32595 2009-12-08  Eric Blake  <ebb9@byu.net>
32596
32597         fchdir: avoid memory leak on re-registration.
32598         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
32599
32600 2009-12-08  Jim Meyering  <meyering@redhat.com>
32601
32602         init.sh: avoid Solaris 10 /bin/sh portability problem
32603         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
32604         sourced script:
32605           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
32606           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
32607           bar
32608         tests/init.sh relied on that, accepting a --set-path=DIR argument,
32609         and two tests used that idiom.
32610         * tests/init.sh: Update suggested usage comments.
32611         (path_prepend_): New function, to be used in place
32612         of the --src-path=DIR option.
32613         (setup_): Move PATH-prepending code into path_prepend_.
32614         * tests/test-pread.sh: Adapt to new usage.
32615         * tests/test-xalloc-die.sh: Likewise.
32616
32617 2009-12-08  Simon Josefsson  <simon@josefsson.org>
32618
32619         * doc/gnulib.texi (Glibc pty.h): Add.
32620         * doc/glibc-functions/forkpty.texi: Add.
32621         * doc/glibc-functions/openpty.texi: Add.
32622         Suggested by Bruno Haible.
32623
32624 2009-12-08  Eric Blake  <ebb9@byu.net>
32625
32626         fchdir: fix logic bugs
32627         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
32628         * tests/test-fchdir.c (main): Enhance test.
32629         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
32630         is in use.
32631
32632         dup2: fix logic bugs
32633         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
32634         REPLACE_DUP2 to decide when rpl_dup2 is needed.
32635         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
32636         exists.
32637         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
32638
32639 2009-12-07  Eric Blake  <ebb9@byu.net>
32640
32641         unlink: fix m4 detection
32642         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
32643
32644         unistd-safer: add unit test
32645         * modules/unistd-safer-tests: New file.
32646         * tests/test-dup-safer.c: Likewise.
32647         * tests/test-cloexec.c (setmode): Avoid compiler warning.
32648         * tests/test-dup2.c (setmode): Likewise.
32649         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
32650
32651         cloexec: preserve text vs. binary across dup_cloexec
32652         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
32653         mode.
32654         * modules/dup2-tests (Depends-on): Add binary-io.
32655         * modules/cloexec-tests (Depends-on): Likewise.
32656         * tests/test-dup2.c (setmode, is_mode): New helpers.
32657         (main): Add tests that translation mode is preserved.
32658         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
32659         Reported by Bruno Haible.
32660
32661         mgetgroups: reduce duplicate listings
32662         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
32663         resulting array.
32664         * tests/test-chown.h (test_chown): Simplify client.
32665         * tests/test-lchown.h (test_lchown): Likewise.
32666
32667 2009-12-06  Bruno Haible  <bruno@clisp.org>
32668
32669         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
32670         value.
32671
32672 2009-12-06  Bruno Haible  <bruno@clisp.org>
32673
32674         * lib/progname.c: Include stdio.h, stdlib.h.
32675         (set_program_name): Reject a NULL argument.
32676
32677 2009-12-05  Eric Blake  <ebb9@byu.net>
32678
32679         pipe2-safer: new module
32680         * modules/pipe2-safer: New file.
32681         * lib/unistd-safer.h (pipe2_safer): New prototype.
32682         * lib/unistd--.h (pipe2): New wrapper.
32683         * lib/pipe-safer.c (pipe2_safer): New function.
32684         * modules/pipe (Depends-on): Add pipe2-safer.
32685         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
32686
32687         stdlib-safer: preserve cloexec flag for mkostemp[s]
32688         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
32689         fd_safer_flag.
32690
32691         unistd-safer: allow preservation of cloexec status via flag
32692         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
32693         prototypes.
32694         * lib/dup-safer.c (dup_safer_flag): New function.
32695         * lib/fd-safer.c (fd_safer_flag): Likewise.
32696         * modules/cloexec (configure.ac): Set witness.
32697
32698         test-dup2: enhance test
32699         * modules/dup2-tests (Depends-on): Add cloexec.
32700         * tests/test-dup2.c (main): Enhance test.
32701
32702         cloexec: add dup_cloexec
32703         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
32704         header and comments.
32705         * lib/cloexec.c (set_cloexec_flag): Add comments.
32706         (dup_cloexec): New function, with mingw implementation borrowed
32707         from...
32708         * lib/w32spawn.h (dup_noinherit): ...here.
32709         * modules/execute (Depends-on): Add cloexec.
32710         * modules/pipe (Depends-on): Likewise.
32711         * modules/cloexec (Depends-on): Add dup2.
32712         * modules/cloexec-tests (Files): New file.
32713         * tests/test-cloexec.c: Likewise.
32714
32715         test-xalloc-die: fix test for mingw
32716         * modules/xalloc-die-tests (Files): Add tests/init.sh.
32717         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
32718         directory and .exe suffix off argv[0] output.
32719
32720         test-fseeko: fix test for mingw
32721         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
32722         than undefining fseek, so test will pass on mingw.
32723
32724 2009-12-05  Bruno Haible  <bruno@clisp.org>
32725
32726         * lib/progname.h (set_program_name): Clarify specification.
32727         * lib/progname.c (set_program_name): Likewise.
32728         Reported by Jim Meyering.
32729
32730 2009-12-05  Jim Meyering  <meyering@redhat.com>
32731
32732         maint.mk: backslash-escape parens in default regexp
32733         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
32734         backslash-escape the literal parentheses.
32735
32736         maint.mk: news-date-check: use grep -E
32737         * top/maint.mk (today): Define a Make variable, not a...
32738         (news-date-check): ...shell variable.
32739         (news-date-regexp): Use the Make variable.
32740         Use grep's -E option.  Change the failing diagnostic to mention
32741         the variable, $(news-date-regexp).
32742
32743 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
32744
32745         maintainer-makefile: allow customization of NEWS entry format
32746         * top/maint.mk (news-date-regexp): New overridable variable.
32747         (news-date-check): Use it.
32748
32749 2009-12-04  Eric Blake  <ebb9@byu.net>
32750
32751         mgetgroups: add xgetgroups, and avoid ENOSYS failures
32752         * lib/mgetgroups.h (xgetgroups): New prototype.
32753         * lib/mgetgroups.c (xgetgroups): New wrapper.
32754         (mgetgroups): Handle ENOSYS.
32755         * modules/mgetgroups (Depends-on): Add realloc.
32756         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
32757
32758         mgetgroups: avoid argument promotion issues with -1
32759         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
32760         for invalid gid_t.
32761         * tests/test-chown.h (getegid, test_chown): Likewise.
32762         * tests/test-lchown.h (getegid, test_lchown): Likewise.
32763
32764 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
32765
32766         exclude: Fix header file problems.
32767         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
32768
32769 2009-12-01  Jim Meyering  <meyering@redhat.com>
32770
32771         fts: fts_open: do not let an empty string cause immediate failure
32772         This is required in support of GNU rm, for which the command
32773         "rm A '' B" must process and remove both A and B, in spite of
32774         the empty string argument.
32775         * lib/fts.c (fts_open): Do not let the presence of an empty string
32776         cause fts_open to fail immediately.  Most fts-using tools must be
32777         able to process all arguments, in order, and can be expected to
32778         diagnose such arguments themselves.
32779
32780 2009-11-30  Eric Blake  <ebb9@byu.net>
32781
32782         utimens: fix compilation error
32783         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
32784         Declare variable at right scope.
32785
32786 2009-11-29  Jim Meyering  <meyering@redhat.com>
32787
32788         bootstrap: handle perl-5.11's changed --version output
32789         * build-aux/bootstrap (get_version): Handle perl separately,
32790         since perl-5.11's --version output is different.
32791
32792 2009-11-28  Jim Meyering  <meyering@redhat.com>
32793
32794         userspec: depend on the inttostr module, too
32795         * modules/userspec (Depends-on): Add inttostr.
32796
32797         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
32798         * lib/userspec.c (parse_with_separator): Do not accept a user ID
32799         number of MAXUID when it evaluates to (uid_t) -1.
32800         Likewise for group ID.  Reported by Matt McCutchen in
32801         <http://savannah.gnu.org/bugs/?28113>
32802
32803         userspec: reformat to use spaces, not TABs
32804         * lib/userspec.c: Expand TABs to spaces.
32805         Add Emacs' "indent-tabs-mode: nil" hint.
32806
32807 2009-11-27  Eric Blake  <ebb9@byu.net>
32808
32809         getopt-gnu: flush out another BSD bug
32810         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
32811         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
32812         flush out BSD bug.
32813         * tests/test-getopt.h (test_getopt): End lists with NULL.
32814         * tests/test-getopt_long.h (test_getopt_long): Likewise.
32815         (test_getopt_long_posix): Enhance test.
32816         * modules/getopt-posix-tests (Depends-on): Add stdbool.
32817         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
32818         getopt-gnu.
32819         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32820         Likewise.
32821
32822 2009-11-27  Simon Josefsson  <simon@josefsson.org>
32823
32824         * modules/idpriv-droptemp-tests (Notice): Fix text.
32825
32826 2009-11-27  Jim Meyering  <meyering@redhat.com>
32827
32828         test-xalloc-die: avoid spurious failure due to libtool argv difference
32829         In a libtool-enabled project, this test would fail due to a difference
32830         in the emitted program name, e.g.,
32831         -test-xalloc-die: memory exhausted
32832         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
32833         Use program to avoid that.
32834         * modules/xalloc-die-tests (Depends-on): Add progname.
32835         * tests/test-xalloc-die.c: Include progname.h".
32836         (program_name): Remove decl.
32837         (main): Call set_program_name.
32838         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
32839
32840 2009-11-26  Richard Jones  <rjones@redhat.com>
32841
32842         w32sock: leave win32 error in place.
32843         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
32844
32845 2009-11-26  Eric Blake  <ebb9@byu.net>
32846
32847         init.sh: suggest to use skip_ and fail_ functions in comments
32848         * tests/init.sh: Add a sentence.
32849
32850 2009-11-25  Bruno Haible  <bruno@clisp.org>
32851
32852         init.sh: add documentation in comments
32853         * tests/init.sh: Add some developer and user documentation.
32854
32855 2009-11-26  Jim Meyering  <meyering@redhat.com>
32856
32857         init.sh: accommodate even those who specify bogus srcdir manually
32858         * tests/init.sh: Normally, srcdir is guaranteed by automake and
32859         configure-time tests to be sanitized, so that there is no need to
32860         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
32861         (with no double quotes) suffices.  However, since tests may be
32862         invoked manually, and since you may explicitly set srcdir to the
32863         name of a directory containing spaces, do quote its uses here.
32864         * tests/test-pread.sh: Likewise.
32865         Suggested by Bruno Haible.
32866
32867         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
32868         * tests/test-pread.sh: Write no data into the pipe, because
32869         test-pread actually reads none.  This avoids a diagnostic,
32870         "bash: echo: write error: Broken pipe", that arises in the unusual
32871         event something is ignoring SIGPIPE, and might be interpreted
32872         as some sort of failure.  Reported by Bruno Haible.
32873
32874 2009-11-25  Jim Meyering  <meyering@redhat.com>
32875
32876         test-pread: cover failure with ESPIPE and EINVAL
32877         * tests/test-pread.c (main): Test for failure, too.
32878         * tests/test-pread.sh: Invoke with stdin on a pipe.
32879         Suggested by Eric Blake.
32880
32881         pread: improvement and fix
32882         * modules/pread (Depends-on): Depend on lseek, for portability to
32883         e.g., mingw.  Suggested by Eric Blake.
32884         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
32885
32886         unistd.in.h: correct declaration of pread
32887         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
32888         Reported by Richard W.M. Jones.
32889
32890         test-pread.sh: distribute the test script
32891         * modules/pread-tests (Files): Include test-pread.sh.
32892
32893         test-pread.sh: clean up
32894         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
32895         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
32896         That is unnecessary, since it's always ".".
32897         Suggestion from Eric Blake.
32898
32899         test-pread.sh: make executable
32900         * tests/test-pread.sh: Set executable bit.
32901         Reported by Eric Blake.
32902
32903         correct typo in test-pread.sh
32904         * tests/test-pread.sh: Add #! line.
32905
32906         test pread
32907         * tests/test-pread.c: New file.
32908         * tests/test-pread.sh: Likewise.
32909         * modules/pread-tests: Likewise.
32910
32911         pread: new module
32912         * modules/pread: New file.
32913         * lib/unistd.in.h (pread): Define/declare.
32914         * lib/pread.c (pread): New file.
32915         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
32916         * modules/unistd (Makefile.am): Substitute witnesses.
32917         * doc/posix-functions/pread.texi (pread): Update.
32918         * MODULES.html.sh: Add pread.
32919
32920 2009-11-25  Jim Meyering  <meyering@redhat.com>
32921
32922         tests/init.sh: new file to be used via most *.sh tests
32923         * tests/init.sh: New file.
32924
32925 2009-11-25  Eric Blake  <ebb9@byu.net>
32926
32927         utimens: work around older Linux failure with symlinks
32928         * lib/utimens.c (lutimensat_works_really): New variable.
32929         (fdutimens, lutimens): Use it to manage kernels that support
32930         nanosecond times on files, but not on symlinks.
32931         Reported by Ondřej Vašík.
32932
32933         utimes: fix configure grammar
32934         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
32935
32936 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
32937
32938         regex: Fix fastmap for multibyte character ranges.
32939         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
32940         characters when a multibyte character range is included.
32941
32942 2009-11-22  Andy Wingo  <wingo@pobox.com>
32943
32944         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
32945         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
32946
32947 2009-11-24  Bruno Haible  <bruno@clisp.org>
32948
32949         doc: Most *_l functions exist in MacOS X 10.5.
32950         * doc/posix-functions/duplocale.texi: Update platforms list.
32951         * doc/posix-functions/freelocale.texi: Likewise.
32952         * doc/posix-functions/newlocale.texi: Likewise.
32953         * doc/posix-functions/uselocale.texi: Likewise.
32954         * doc/posix-functions/isalnum_l.texi: Likewise.
32955         * doc/posix-functions/isalpha_l.texi: Likewise.
32956         * doc/posix-functions/isblank_l.texi: Likewise.
32957         * doc/posix-functions/iscntrl_l.texi: Likewise.
32958         * doc/posix-functions/isdigit_l.texi: Likewise.
32959         * doc/posix-functions/isgraph_l.texi: Likewise.
32960         * doc/posix-functions/islower_l.texi: Likewise.
32961         * doc/posix-functions/isprint_l.texi: Likewise.
32962         * doc/posix-functions/ispunct_l.texi: Likewise.
32963         * doc/posix-functions/isspace_l.texi: Likewise.
32964         * doc/posix-functions/isupper_l.texi: Likewise.
32965         * doc/posix-functions/iswalnum_l.texi: Likewise.
32966         * doc/posix-functions/iswalpha_l.texi: Likewise.
32967         * doc/posix-functions/iswblank_l.texi: Likewise.
32968         * doc/posix-functions/iswcntrl_l.texi: Likewise.
32969         * doc/posix-functions/iswctype_l.texi: Likewise.
32970         * doc/posix-functions/iswdigit_l.texi: Likewise.
32971         * doc/posix-functions/iswgraph_l.texi: Likewise.
32972         * doc/posix-functions/iswlower_l.texi: Likewise.
32973         * doc/posix-functions/iswprint_l.texi: Likewise.
32974         * doc/posix-functions/iswpunct_l.texi: Likewise.
32975         * doc/posix-functions/iswspace_l.texi: Likewise.
32976         * doc/posix-functions/iswupper_l.texi: Likewise.
32977         * doc/posix-functions/iswxdigit_l.texi: Likewise.
32978         * doc/posix-functions/isxdigit_l.texi: Likewise.
32979         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
32980         * doc/posix-functions/strcasecmp_l.texi: Likewise.
32981         * doc/posix-functions/strcoll_l.texi: Likewise.
32982         * doc/posix-functions/strfmon_l.texi: Likewise.
32983         * doc/posix-functions/strftime_l.texi: Likewise.
32984         * doc/posix-functions/strncasecmp_l.texi: Likewise.
32985         * doc/posix-functions/strxfrm_l.texi: Likewise.
32986         * doc/posix-functions/tolower_l.texi: Likewise.
32987         * doc/posix-functions/toupper_l.texi: Likewise.
32988         * doc/posix-functions/towctrans_l.texi: Likewise.
32989         * doc/posix-functions/towlower_l.texi: Likewise.
32990         * doc/posix-functions/towupper_l.texi: Likewise.
32991         * doc/posix-functions/wcscoll_l.texi: Likewise.
32992         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
32993         * doc/posix-functions/wctrans_l.texi: Likewise.
32994         * doc/posix-functions/wctype_l.texi: Likewise.
32995         * doc/glibc-functions/strptime_l.texi: Likewise.
32996         * doc/glibc-functions/strtod_l.texi: Likewise.
32997         * doc/glibc-functions/strtof_l.texi: Likewise.
32998         * doc/glibc-functions/strtol_l.texi: Likewise.
32999         * doc/glibc-functions/strtold_l.texi: Likewise.
33000         * doc/glibc-functions/strtoll_l.texi: Likewise.
33001         * doc/glibc-functions/strtoul_l.texi: Likewise.
33002         * doc/glibc-functions/strtoull_l.texi: Likewise.
33003         * doc/glibc-functions/wcsftime_l.texi: Likewise.
33004         * doc/glibc-functions/wcstod_l.texi: Likewise.
33005         * doc/glibc-functions/wcstof_l.texi: Likewise.
33006         * doc/glibc-functions/wcstol_l.texi: Likewise.
33007         * doc/glibc-functions/wcstold_l.texi: Likewise.
33008         * doc/glibc-functions/wcstoll_l.texi: Likewise.
33009         * doc/glibc-functions/wcstoul_l.texi: Likewise.
33010         * doc/glibc-functions/wcstoull_l.texi: Likewise.
33011
33012 2009-11-24  Bruno Haible  <bruno@clisp.org>
33013
33014         duplocale: Fix logic bug.
33015         * lib/duplocale.c: Don't include <langinfo.h>.
33016         (_NL_LOCALE_NAME): Remove macro.
33017         (rpl_duplocale): Use setlocale instead of nl_langinfo.
33018         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
33019
33020 2009-11-23  Jim Meyering  <meyering@redhat.com>
33021
33022         test-update-copyright: don't hard-code /usr/bin/perl
33023         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
33024         perl to print the current year.  Gilles Espinasse reported that
33025         the replaced use of perl was hard-coded as /usr/bin/perl.
33026
33027 2009-11-23  Bruno Haible  <bruno@clisp.org>
33028
33029         duplocale: Add support for glibc 2.3.x.
33030         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
33031
33032 2009-11-22  Bruno Haible  <bruno@clisp.org>
33033
33034         vasnprintf: Tiny optimization.
33035         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
33036         MacOS X.
33037
33038 2009-11-22  Bruno Haible  <bruno@clisp.org>
33039
33040         Tests for module 'duplocale'.
33041         * modules/duplocale-tests: New file.
33042         * tests/test-duplocale.c: New file.
33043
33044         New module 'duplocale'.
33045         * m4/duplocale.m4: New file.
33046         * lib/locale.in.h (duplocale): New declaration.
33047         * lib/duplocale.c: New file.
33048         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
33049         gl_LOCALE_H_DEFAULTS): New macros.
33050         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
33051         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
33052         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
33053         REPLACE_DUPLOCALE.
33054         * modules/duplocale: New file.
33055         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
33056
33057 2009-11-22  Bruno Haible  <bruno@clisp.org>
33058
33059         * modules/locale-tests (configure.ac): Test for newlocale function.
33060         * tests/test-locale.c: When the system has extended locale functions,
33061         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
33062
33063         locale: Make locale_t available when possible.
33064         * lib/locale.in.h: Include <xlocale.h> when it exists.
33065         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
33066         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
33067         * modules/locale (Depends-on): Add extensions.
33068         (Makefile.am): Also substitute HAVE_XLOCALE_H.
33069         * doc/posix-headers/locale.texi: Document the problem with locale_t.
33070
33071 2009-11-22  Bruno Haible  <bruno@clisp.org>
33072
33073         Add comments.
33074         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
33075         invocation.
33076         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
33077         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33078         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33079
33080 2009-11-22  Bruno Haible  <bruno@clisp.org>
33081
33082         error: account for the possibility of freopen (stdout).
33083         * lib/error.c: Include <unistd.h>.
33084         (flush_stdout): New function, extracted from error and error_at_line.
33085         Determine stdout's fd dynamically.
33086         (error, error_at_line): Invoke flush_stdout.
33087         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
33088         * modules/error (Depends-on): Add unistd.
33089
33090 2009-11-22  Bruno Haible  <bruno@clisp.org>
33091
33092         diffseq: Add comment.
33093         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
33094
33095 2009-11-22  Jim Meyering  <meyering@redhat.com>
33096
33097         c-stack: avoid defining an unused static function
33098         * lib/c-stack.c (find_stack_direction): Do not define this function
33099         when it will not be used.
33100
33101         diffseq: avoid spurious gcc warnings
33102         * lib/diffseq.h (IF_LINT2): Define.
33103         (compareseq): Use it to initialize two members of "part".
33104         This avoids two used-uninitialized warnings.
33105
33106 2009-11-21  Jim Meyering  <meyering@redhat.com>
33107
33108         c-stack: avoid "ignoring return value of `write'" warning
33109         * lib/c-stack.c: Include "ignore-value.h".
33110         (die): Explicitly ignore each write return value.
33111         * modules/c-stack (Depends-on): Add ignore-value.
33112
33113 2009-11-21  Bruno Haible  <bruno@clisp.org>
33114
33115         diffseq: reduce scope of variable 'best'.
33116         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
33117         variable, earlier used for two different purposes.
33118
33119 2009-11-21  Jim Meyering  <meyering@redhat.com>
33120
33121         diffseq: remove useless assignment to "best"
33122         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
33123         assignment.  At that point "best" is already guaranteed to be zero.
33124
33125 2009-11-20  Eric Blake  <ebb9@byu.net>
33126
33127         build: mention ftp redirector in release announcements
33128         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
33129         values that used to come from cfg.mk; mention FTP redirect URL.
33130         * build-aux/announce-gen: Mention the mirror list.
33131         Suggested by Karl Berry.
33132
33133         nanosleep: improve port to mingw
33134         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
33135         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
33136         LIB_NANOSLEEP, but only when needed.
33137         * modules/select (Link): Document LIBSOCKET.
33138         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
33139         enough.
33140
33141         nanosleep: work around cygwin bug
33142         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
33143         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
33144         bug.
33145         (getnow): Delete, not needed.
33146         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
33147         LIB_CLOCK_GETTIME.
33148         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
33149         clock-time, gettime.
33150         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
33151         bug.
33152         * modules/nanosleep-tests: New test.
33153         * tests/test-nanosleep.c: New file.
33154
33155         sleep: work around cygwin bug
33156         * lib/sleep.c (rpl_sleep): Work around the bug.
33157         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
33158         (gl_PREREQ_SLEEP): Delete unused macro.
33159         * modules/sleep (Depends-on): Add verify.
33160         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33161         * modules/unistd (Makefile.am): Substitute witness.
33162         * lib/unistd.in.h (sleep): Update prototype.
33163         * doc/posix-functions/sleep.texi (sleep): Document the bug.
33164         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
33165         * modules/sleep-tests (Depends-on): Check for alarm.
33166
33167 2009-11-20  Jim Meyering  <meyering@redhat.com>
33168
33169         maint.mk: improve sc_prohibit_magic_number_exit
33170         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
33171         so it does not match uses like System.exit(1).
33172         Add comments showing how to correct all offenders.
33173
33174 2009-11-19  Eric Blake  <ebb9@byu.net>
33175
33176         xalloc-die-tests: add missing library
33177         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
33178
33179         test-xvasprintf: silence compiler warnings
33180         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
33181         empty string from gcc.
33182
33183 2009-11-19  Jim Meyering  <meyering@redhat.com>
33184
33185         xfreopen: new module, from coreutils
33186         * modules/xfreopen: New module.
33187         * lib/xfreopen.c: New file.
33188         * lib/xfreopen.h: New file.
33189         * MODULES.html.sh (File stream based Input/Output"): Add it.
33190
33191 2009-11-19  Eric Blake  <ebb9@byu.net>
33192
33193         manywarnings: depend on warnings
33194         * modules/manywarnings (Depends-on): Add warnings.
33195
33196         build: avoid compiler warnings
33197         * lib/select.c (rpl_select): Delete unused variable.
33198         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
33199
33200 2009-11-18  Eric Blake  <ebb9@byu.net>
33201
33202         tests: avoid false negative with --with-packager
33203         * tests/test-version-etc.sh: Discard packager information.
33204         * tests/test-argp-version-etc-1.sh: Likewise.
33205         Reported by Mike Frysinger.
33206
33207         utimens: fix regression on Solaris
33208         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
33209         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
33210         can only change fd timestamps via futimesat.  Instead, use an
33211         additional witness macro to avoid BSD bug.
33212         Reported by Jim Meyering.
33213
33214 2009-11-17  Eric Blake  <ebb9@byu.net>
33215
33216         usleep: use it to simplify tests
33217         * modules/stat-time-tests (Depends-on): Add usleep.
33218         (configure.ac): Drop usleep check.
33219         * modules/chown-tests (Depends-on, configure.ac): Likewise.
33220         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
33221         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
33222         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
33223         * modules/openat-tests (Depends-on, configure.ac): Likewise.
33224         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
33225         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
33226         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
33227         Likewise.
33228         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
33229         * tests/test-lchown.h (nap): Likewise.
33230         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
33231         * tests/test-stat-time.c (nap): Likewise.
33232         * tests/test-utimens-common.h (nap): Update comments.
33233
33234         usleep: new module
33235         * modules/usleep: New file.
33236         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
33237         * lib/usleep.c (usleep): Likewise.
33238         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
33239         * modules/unistd (Makefile.am): Substitute witnesses.
33240         * lib/unistd.in.h (usleep): Add declaration.
33241         * doc/pastposix-functions/usleep.texi (usleep): Document this.
33242         * MODULES.html.sh (Date and time): Likewise.
33243         * modules/usleep-tests (Depends-on): New test.
33244         * tests/test-usleep.c: New file.
33245
33246         chown: work around OpenBSD bug
33247         * lib/chown.c (rpl_chown): Work around the bug.
33248         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
33249         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
33250         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
33251         * modules/chown (Depends-on): Add stdbool.
33252         * modules/lchown (Depends-on): Likewise.
33253         * doc/posix-functions/chown.texi (chown): Document the bug.
33254         * doc/posix-functions/lchown.texi (lchown): Likewise.
33255         * tests/test-lchown.h (test_chown): Relax test.
33256
33257         mkstemp: avoid conflict with C++ keyword template
33258         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
33259         * lib/mkostemp.c (mkostemp): Likewise.
33260         * lib/mkostemps.c (mkostemps): Likewise.
33261         * lib/mkstemp.c (mkstemp): Likewise.
33262         * lib/mkstemps.c (mkstemps): Likewise.
33263
33264         xalloc-die-tests: optimize
33265         * tests/test-xalloc-die.sh: Reduce number of processes.
33266
33267 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33268
33269         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
33270         patch from ludo@gnu.org (Ludovic Courtès).
33271
33272 2009-11-17  Jim Meyering  <meyering@redhat.com>
33273
33274         version-etc: use proper license string
33275         * modules/version-etc (License): Use LGPL, not LGPLv3+.
33276         * modules/version-etc-fsf: Likewise.
33277
33278 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33279
33280         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
33281         printed to stdout.  Deal with EOL differences.
33282
33283 2009-11-17  Eric Blake  <ebb9@byu.net>
33284
33285         unsetenv: work around Solaris bug
33286         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
33287         * lib/unsetenv.c (rpl_unsetenv): Work around it.
33288         Reported by Jim Meyering.
33289
33290         vasnprintf: avoid compiler warnings
33291         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
33292         variables.
33293         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
33294
33295 2009-11-17  Simon Josefsson  <simon@josefsson.org>
33296
33297         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
33298         settings since xalloc-die is no longer the self test,
33299         xalloc-die.sh is.
33300
33301 2009-11-17  Jim Meyering  <meyering@redhat.com>
33302
33303         test-xalloc-die.sh: make the code agree with the commit log
33304         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
33305         at the end, just in case you happen to have a test-xalloc-die
33306         program in some other PATH directory.
33307
33308         test-xalloc-die.sh: fix a portability bug
33309         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
33310         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
33311         Otherwise, argv[0] (as often seen in diagnostics) would be too
33312         system-dependent, sometimes with, and sometimes without the leading "./".
33313
33314         version-etc-fsf: relax license to LGPLv3+
33315         * modules/version-etc-fsf (License): Relax license.
33316
33317 2009-11-16  Eric Blake  <ebb9@byu.net>
33318
33319         xalloc-die-tests: avoid printing null pointer
33320         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
33321         shell script.
33322         * tests/test-xalloc-die.c (program_name): Declare.
33323         * tests/test-xalloc-die.sh (tmpfiles): New file.
33324
33325         setenv, unsetenv: work around various bugs
33326         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
33327         (setenv) [HAVE_SETENV]: Work around bugs.
33328         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
33329         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
33330         for bugs.
33331         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
33332         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
33333         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
33334         * modules/stdlib (Makefile.am): Update substitutions.
33335         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
33336         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
33337         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
33338         * modules/setenv-tests: New test.
33339         * modules/unsetenv-tests: Likewise.
33340         * tests/test-setenv.c: New file.
33341         * tests/test-unsetenv.c: Likewise.
33342
33343 2009-11-16  Jim Meyering  <meyering@redhat.com>
33344
33345         version-etc: relax license to LGPLv3+
33346         * modules/version-etc (License): Relax license.
33347
33348         better AC_REQUIRE expanded-before-required-warning avoidance
33349         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
33350         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
33351         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
33352         which is no longer needed.
33353
33354 2009-11-16  Eric Blake  <ebb9@byu.net>
33355
33356         test-freading: clean up temporary file
33357         * tests/test-freading.c (main): Remove file on success, and use
33358         ASSERT more liberally.
33359         Reported by Jim Meyering.
33360
33361 2009-11-16  Jim Meyering  <meyering@redhat.com>
33362
33363         avoid new AC_REQUIRE expanded-before-required warnings
33364         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
33365         merely using it.
33366         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
33367         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
33368
33369 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33370
33371         * tests/test-xalloc-die.c: New file.
33372         * modules/xalloc-die-tests: New file.
33373         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
33374         XFAIL_TESTS so it can be appended by modules.
33375
33376 2009-11-15  Simon Josefsson  <simon@josefsson.org>
33377
33378         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
33379         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
33380
33381 2009-11-14  Eric Blake  <ebb9@byu.net>
33382
33383         fnmatch: avoid compiler warning
33384         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
33385         to silence compiler warning about mismatch signedness in ?:.
33386         Reported by Robert Millan.
33387
33388         intprops: add double-inclusion guard
33389         * lib/intprops.h: Allow idempotent includes.
33390         Suggested by Bruce Korb.
33391
33392         openat: detect Solaris fchownat bug
33393         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
33394         penalizing glibc chownat when only lchownat is broken.
33395         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
33396         trailing slash bugs.
33397         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
33398         * modules/openat-tests (Files): Include more files.
33399         (Depends-on): Add mgetgroups, sleep, stat-time.
33400         (configure.ac): Add additional checks.
33401         (Makefile.am): Build new test.
33402         * tests/test-fchownat.c: New file.
33403
33404         lchown: detect Solaris and FreeBSD bug
33405         * lib/lchown.c (rpl_lchown): Work around bug.
33406         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
33407         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33408         * modules/unistd (Makefile.am): Populate it.
33409         * lib/unistd.in.h (lchown): Update declaration.
33410         * doc/posix-functions/lchown.texi (lchown): Document the bug.
33411         * modules/lchown-tests: New file.
33412         * tests/test-lchown.h (test_lchown): Likewise.
33413         * tests/test-lchown.c (main): Likewise.
33414
33415         chown: detect Solaris and FreeBSD bug
33416         * lib/chown.c (rpl_chown): Work around bug.
33417         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
33418         (gl_PREREQ_CHOWN): Delete.
33419         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33420         * modules/unistd (Makefile.am): Populate it.
33421         * lib/unistd.in.h (chown): Update declaration.
33422         * lib/lchown.c (chown): Update client.
33423         * modules/lchown (Depends-on): Add lstat.
33424         * doc/posix-functions/chown.texi (chown): Document the bug.
33425         * doc/posix-functions/getgroups.texi (getgroups): Document
33426         getgroups pitfall.
33427         * modules/chown-tests: New file.
33428         * tests/test-chown.h (test_chown): Likewise.
33429         * tests/test-chown.c (main): Likewise.
33430
33431 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
33432
33433         gnulib-tool: correctly detect absence of m4 directories
33434         * gnulib-tool: Avoid extra newline on data passed to wc -l.
33435
33436 2009-11-14  Jim Meyering  <meyering@redhat.com>
33437
33438         maint.mk: Prohibit inclusion of "xalloc.h" without use.
33439         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33440
33441 2009-11-14  John W. Eaton  <jwe@gnu.org>
33442
33443         strftime.h: wrap funtion declaration in extern "C" block
33444         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
33445
33446 2009-11-13  Eric Blake  <ebb9@byu.net>
33447
33448         getgroups: avoid compiler warning
33449         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
33450
33451         getgroups: work around FreeBSD bug
33452         * lib/getgroups.c (rpl_getgroups): Work around the bug.
33453         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
33454         * doc/posix-functions/getgroups.texi (getgroups): Document it.
33455         * tests/test-getgroups.c (main): Fix buffer overrun.
33456
33457         getgroups: avoid compilation failure
33458         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
33459         * modules/getgroups (Depends-on): Add stdint.
33460
33461 2009-11-13  Jim Meyering  <meyering@redhat.com>
33462
33463         test-getgroups: avoid compilation failure
33464         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
33465
33466 2009-11-13  Eric Blake  <ebb9@byu.net>
33467
33468         mgetgroups: new module, taken from coreutils
33469         * modules/mgetgroups: New file.
33470         * lib/mgetgroups.h: Likewise.
33471         * lib/mgetgroups.c (mgetgroups): Likewise.
33472         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
33473         * MODULES.html.sh (Users and groups): Mention it.
33474
33475         getgroups: don't expose GETGROUPS_T to user
33476         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
33477         an element at a time if GETGROUPS_T is wrong size.
33478         * lib/getugroups.h (getugroups): Change signature.
33479         * lib/unistd.in.h (getgroups): Likewise.
33480         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
33481         signature needs fixing.
33482         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
33483         AC_TYPE_GETGROUPS.
33484         * modules/group-member (Depends-on): Add getgroups.
33485         * lib/group-member.c (group_info, get_group_info): Use gid_t.
33486         (group_member): Rely on getgroups replacement.
33487         * lib/getugroups.c (getugroups): Use gid_t.
33488         * tests/test-getgroups.c (main): Likewise.
33489         * NEWS: Mention the signature change.
33490         * doc/posix-functions/getgroups.texi (getgroups): Mention the
33491         problem with signature.
33492         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
33493         GETGROUPS_T is still useful for setgroups.
33494
33495         getgroups, getugroups: provide stubs for mingw
33496         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
33497         * lib/getugroups.c (getugroups): Likewise.
33498         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
33499         function.  Modernize replacement scheme.
33500         (gl_PREREQ_GETGROUPS): Delete.
33501         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
33502         * modules/getgroups (configure.ac): Declare witness.
33503         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
33504         * modules/unistd (Depends-on): Substitute witness.
33505         * lib/unistd.in.h (getgroups): Declare replacement.
33506
33507         getgroups: avoid calling exit
33508         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
33509         drop xalloc.
33510         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
33511         dependencies.
33512         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
33513         exiting, in the rare case of malloc failure.
33514
33515         getgroups: fix logic error
33516         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
33517         has more than 20 groups.
33518         * modules/getgroups-tests: New test.
33519         * tests/test-getgroups.c: New file.
33520
33521 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33522
33523         * tests/test-base64.c: Improve.
33524
33525 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33526
33527         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
33528         Blake <ebb9@byu.net>.
33529
33530 2009-11-13  Simon Josefsson  <simon@josefsson.org>
33531
33532         * tests/test-xvasprintf.c: Add %s%s related checks.
33533
33534 2009-11-12  Eric Blake  <ebb9@byu.net>
33535
33536         version-etc: match standards.texi style
33537         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
33538         and use <> only for URLs.
33539
33540 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
33541
33542         fts: do not fail on a submount during traversal
33543         * lib/fts.c (fts_build): Read the stat info again after opening
33544         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
33545         Original report at http://bugzilla.redhat.com/501848.
33546
33547 2009-11-12  Jim Meyering  <meyering@redhat.com>
33548
33549         bootstrap: sync from coreutils
33550         * build-aux/bootstrap (bootstrap_epilogue): New function.
33551         Use git_modules_config in one more place.  This make bootstrap's
33552         --gnulib-srcdir option more useful for testing.
33553
33554         bootstrap: generalize autoheader check
33555         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
33556         AC_CONFIG_HEADERS.
33557
33558 2009-11-11  Eric Blake  <ebb9@byu.net>
33559
33560         mkfifoat: use new modules for Solaris and BSD bugs
33561         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
33562         * lib/mkfifoat.c (mknodat): Split...
33563         * lib/mknodat.c (mknodat): ...into new file.
33564         * modules/mkfifoat (Files): Ship new file.
33565         (Depends-on): Add mkfifo, mknod.
33566         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
33567         (Depends-on): Add symlink.
33568         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
33569         redundant with test_mkfifo.h.
33570         (do_mkfifoat, do_mknodat): New helpers.
33571
33572         mknod: new module
33573         * modules/mknod: New file.
33574         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
33575         * lib/mknod.c (mknod): Likewise.
33576         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33577         defaults.
33578         * modules/sys_stat (Makefile.am): Substitute them.
33579         * lib/sys_stat.in.h (mknod): Declare replacement.
33580         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33581         Document it.
33582         * doc/posix-functions/mknod.texi (mknod): Likewise.
33583         * modules/mknod-tests: New test.
33584         * tests/test-mknod.c: Likewise.
33585
33586         mkfifo: new module
33587         * modules/mkfifo: New file.
33588         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
33589         * lib/mkfifo.c (mkfifo): Likewise.
33590         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
33591         defaults.
33592         * modules/sys_stat (Makefile.am): Substitute them.
33593         * lib/sys_stat.in.h (mkfifo): Declare replacement.
33594         * MODULES.html.sh (Support for systems lacking POSIX:2008):
33595         Document it.
33596         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
33597         * modules/mkfifo-tests: New test.
33598         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
33599         from test-mkfifoat.c.
33600         * tests/test-mkfifo.c: New file.
33601
33602         readlink: detect FreeBSD bug
33603         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
33604         slash on symlink.
33605         * doc/posix-functions/readlink.texi (readlink): Document the bug.
33606         * tests/test-readlink.h (test_readlink): Enhance test.
33607
33608         symlink: detect FreeBSD bug
33609         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
33610         slash on symlink.
33611         * doc/posix-functions/symlink.texi (symlink): Document the bug.
33612         * tests/test-symlink.h (test_symlink): Enhance test.
33613
33614 2009-11-10  Eric Blake  <ebb9@byu.net>
33615
33616         link: detect FreeBSD bug
33617         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
33618         symlink.
33619         * doc/posix-functions/link.texi (link): Document the bug.
33620         * tests/test-link.h (test_link): Enhance test.
33621         * tests/test-linkat.c (main): Update caller.
33622
33623         unlink, remove: detect FreeBSD bug
33624         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
33625         slash on symlink.
33626         * doc/posix-functions/unlink.texi (unlink): Document the bug.
33627         * doc/posix-functions/remove.texi (remove): Likewise.
33628         * tests/test-unlink.h (test_unlink): Enhance test.
33629         * tests/test-remove.c (main): Likewise.
33630
33631 2009-11-09  Eric Blake  <ebb9@byu.net>
33632
33633         rename: detect FreeBSD bug
33634         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
33635         slash on symlink.
33636         * modules/renameat-tests (Depends-on): Add filenamecat.
33637         * tests/test-rename.h (test_rename): Allow one more errno.
33638         * tests/test-renameat.c (main): Likewise.
33639         * doc/posix-functions/rename.texi (rename): Document the bug.
33640
33641         open: detect FreeBSD bug
33642         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
33643         symlink.
33644         * doc/posix-functions/open.texi (open): Document the bug.
33645         * doc/posix-functions/utimes.texi (utimes): Likewise.
33646         * tests/test-open.h (test_open): Add parameters, and test symlink
33647         handling.
33648         * tests/test-open.c (main): Adjust caller.
33649         * tests/test-fcntl-safer.c (main): Likewise.
33650         * modules/open-tests (Depends-on): Add stdbool, symlink.
33651         * modules/fcntl-safer-tests (Depends-on): Likewise.
33652         * tests/test-openat.c (main): Add test-open tests.
33653
33654         stat: detect FreeBSD bug
33655         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
33656         symlink.
33657         * doc/posix-functions/stat.texi (stat): Document the bug.
33658         * tests/test-stat.h (test_stat_func): Add argument.
33659         * tests/test-stat.c (main): Adjust caller.
33660         * tests/test-fstatat.c (main): Likewise.
33661         * modules/stat-tests (Depends-on): Add stdbool, symlink.
33662         Reported by Jim Meyering.
33663
33664 2009-11-09  James Youngman  <jay@gnu.org>
33665
33666         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
33667         * lib/strftime.c: Correct placement of #include "ignore-value.h".
33668
33669 2009-11-08  Jim Meyering  <meyering@redhat.com>
33670
33671         utimens: remove invalid futimesat call
33672         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
33673         It used the file descriptor of the target file as the DIR_FD
33674         parameter and NULL as the file name.  That caused failure with
33675         errno == EFAULT on FreeBSD-8.0-rc2
33676
33677 2009-11-07  Eric Blake  <ebb9@byu.net>
33678
33679         fflush, freadseek: use fseeko, not fseek
33680         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
33681         (clear_ungetc_buffer): Avoid potential problems on large files.
33682         * lib/freadseek.c (freadseek): Likewise.
33683         * modules/freadseek (Depends-on): Add fseeko.
33684         * modules/fseek (configure.ac): Set a witness.
33685         * tests/test-fflush.c (main): Use fseeko.
33686         * tests/test-fpurge.c (fseek): Disable link warning.
33687         * tests/test-freadable.c (fseek): Likewise.
33688         * tests/test-freading.c (fseek): Likewise.
33689         * tests/test-fseeko.c (fseek): Likewise.
33690         * tests/test-ftell.c (fseek): Likewise.
33691         * tests/test-ftello.c (fseek): Likewise.
33692         * tests/test-fwritable.c (fseek): Likewise.
33693         * tests/test-fwriting.c (fseek): Likewise.
33694
33695 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33696
33697         * modules/memchr (Depends-on): Drop getpagesize dependency.
33698
33699 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33700
33701         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
33702         Reported by Ludovic Courtès.
33703         * build-aux/pmccabe2html: Improve example usage.
33704         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
33705
33706 2009-11-06  Jim Meyering  <meyering@redhat.com>
33707
33708         do-release-commit-and-tag: New module.
33709         Automate the release-commit and tag process.
33710         * build-aux/do-release-commit-and-tag: New script, from coreutils.
33711         * modules/do-release-commit-and-tag: New file.
33712         * MODULES.html.sh (Support for maintaining and releasing): Add it.
33713
33714 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33715
33716         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
33717         because test-select.c uses inet_pton.
33718
33719 2009-11-06  Simon Josefsson  <simon@josefsson.org>
33720
33721         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
33722         GETADDRINFO_LIB.  Bump serial number.
33723         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
33724         Suggested by Eric Blake <ebb9@byu.net>.
33725
33726 2009-11-05  Eric Blake  <ebb9@byu.net>
33727
33728         strtod: detect darwin bug
33729         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
33730         Reported by Leo Davis.
33731
33732         freopen-safer: new module
33733         * modules/freopen-safer: New module.
33734         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
33735         * lib/freopen-safer.c (freopen_safer): New file.
33736         * lib/stdio-safer.h (freopen_safer): New declaration.
33737         * lib/stdio--.h (freopen): New override.
33738         * MODULES.html.sh (File stream based Input/Output): Mention it.
33739         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
33740         freopen-safer module.
33741         * doc/posix-functions/stderr.texi (stderr): Likewise.
33742         * doc/posix-functions/stdin.texi (stdin): Likewise.
33743         * doc/posix-functions/stdout.texi (stdout): Likewise.
33744         * modules/freopen-safer-tests: New test.
33745         * tests/test-reopen-safer.c: New file.
33746
33747 2009-11-05  Jim Meyering  <meyering@redhat.com>
33748
33749         maint.mk: Prohibit inclusion of "close-stream.h" without use.
33750         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
33751
33752 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33753
33754         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
33755
33756 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33757
33758         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
33759
33760 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33761
33762         Fix link error.
33763         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33764         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33765
33766 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33767
33768         * tests/test-func.c: Also test value of __func__.
33769
33770 2009-11-05  Simon Josefsson  <simon@josefsson.org>
33771
33772         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
33773         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
33774
33775 2009-11-05  Bruno Haible  <bruno@clisp.org>
33776
33777         Fix link error.
33778         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
33779         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
33780         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
33781
33782 2009-11-05  Bruno Haible  <bruno@clisp.org>
33783
33784         Tests for module 'inet_pton'.
33785         * modules/inet_pton-tests: New file.
33786         * tests/test-inet_pton.c: New file.
33787
33788 2009-11-05  Bruno Haible  <bruno@clisp.org>
33789
33790         Tests for module 'inet_ntop'.
33791         * modules/inet_ntop-tests: New file.
33792         * tests/test-inet_ntop.c: New file.
33793
33794 2009-11-04  Eric Blake  <ebb9@byu.net>
33795
33796         stdlib-safer: wrap all mkstemp variants
33797         * modules/mkostemp (configure.ac): Set witness.
33798         * modules/mkostemps (configure.ac): Likewise.
33799         * modules/mkstemps (configure.ac): Likewise.
33800         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
33801         (mkstemps_safer): Wrap more functions.
33802         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
33803         wrapping.
33804         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
33805         (mkstemps_safer): Implement the wrappers.
33806
33807         mkstemps, mkostemps: new modules
33808         * modules/mkostemps: New module.
33809         * modules/mkstemps: Likewise.
33810         * lib/mkostemps.c (mkostemps): New file.
33811         * lib/mkstemps.c (mkstemps): Likewise.
33812         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
33813         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
33814         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
33815         * modules/stdlib (Makefile.am): Substitute them.
33816         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
33817         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
33818         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
33819         * doc/gnulib.texi (Glibc stdlib.h): Include them.
33820         * MODULES.html.sh (File system functions): Mention them.
33821
33822         tempname: resync from glibc
33823         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
33824         same values for __GT_FILE as glibc.  Abort even when assertions
33825         are disabled.
33826         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
33827         match its value otherwise.  Allow idempotent inclusion.
33828         * lib/mkdtemp.c (mkdtemp): Adjust caller.
33829         * lib/mkostemp.c (mkostemp): Likewise.
33830         * lib/mkstemp.c (mkstemp): Likewise.
33831         * lib/tmpfile.c (tmpfile): Likewise.
33832         * NEWS: Document this.
33833
33834         utimens: fix use of futimens on older Linux
33835         * lib/utimens.c (fdutimens): Use updated, rather than original,
33836         timespec to avoid bug in older Linux kernel.
33837         Reported by Simon Josefsson.
33838
33839 2009-11-04  Bruno Haible  <bruno@clisp.org>
33840
33841         Make num_processors more flexible and consistent.
33842         * lib/nproc.h (enum nproc_query): New type.
33843         (num_processors): Add a 'query' argument.
33844         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
33845         (num_processors): Add a 'query' argument. Test the value of the
33846         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
33847         mingw, count the number of CPUs available for the current process.
33848         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
33849         Check for sched_getaffinity and sched_getaffinity_np.
33850         * modules/nproc (Depends-on): Add c-ctype, extensions.
33851         * NEWS: Mention the change.
33852
33853 2009-11-03  Bruno Haible  <bruno@clisp.org>
33854
33855         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
33856
33857 2009-11-03  Jim Meyering  <meyering@redhat.com>
33858
33859         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
33860         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
33861         if it is defined.
33862
33863 2009-11-02  Eric Blake  <ebb9@byu.net>
33864
33865         mktime, timegm: share common declaration
33866         * lib/mktime-internal.h: New file.
33867         * lib/mktime.c: Use it rather than open-coding a declaration.
33868         * lib/timegm.c: Likewise.
33869         * modules/mktime (Files): Ship it.
33870         * modules/timegm (Files): Likewise.
33871         Suggested by Bruno Haible.
33872
33873         test-update-copyright: update test to match script changes
33874         * tests/test-update-copyright.sh: Avoid hard-coding perl
33875         location.  Don't update *.bak created by earlier runs.
33876
33877 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
33878             Simon Josefsson  <simon@josefsson.org>
33879             Bruno Haible  <bruno@clisp.org>
33880
33881         Fix link error on Solaris 8.
33882         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
33883         also in libnsl. Define also INET_PTON_LIB.
33884         * modules/inet_pton (Link): New section.
33885
33886 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33887             Bruno Haible  <bruno@clisp.org>
33888
33889         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
33890         * modules/inet_ntop (Link): New section.
33891         Reported by Boyan Kasarov <bkasarov@gmail.com>.
33892
33893 2009-11-02  Eric Blake  <ebb9@byu.net>
33894
33895         maint: avoid compiler warnings in m4 macros
33896         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
33897         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
33898
33899 2009-11-02  Simon Josefsson  <simon@josefsson.org>
33900
33901         * m4/pmccabe2html.m4: Remove file.
33902         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
33903         function.  Change maintainer.
33904         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
33905         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
33906         Courtès).
33907
33908 2009-10-31  Eric Blake  <ebb9@byu.net>
33909
33910         fseeko: fix m4 regression
33911         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
33912         regression from 2009-10-27.
33913         Reported by Ralf Wildenhues.
33914
33915 2009-10-31  Jim Meyering  <meyering@redhat.com>
33916
33917         inttostr: aesthetics and improved (compile-time) safety
33918         Define inttype_is_signed rather than inttype_is_unsigned,
33919         since the sole use is via "#if inttype_is_signed".
33920         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
33921         inttype_is_unsigned.
33922         * lib/offtostr.c (inttype_is_signed): Likewise.
33923         * lib/uinttostr.c (inttype_is_signed): Likewise.
33924         * lib/umaxtostr.c (inttype_is_signed): Likewise.
33925         * lib/inttostr.c (inttostr): Use verify to cross-check the
33926         inttype_is_signed value and the signedness of the actual type.
33927         * modules/inttostr (Depends-on): Add verify.
33928
33929 2009-10-30  Eric Blake  <ebb9@byu.net>
33930
33931         build: avoid compiler warnings
33932         * lib/fchmodat.c (lchmod): Mark unused variables.
33933         * lib/getopt.c (_getopt_initialize): Likewise.
33934         * lib/mktime.c (__mktime_internal): Provide prototype.
33935         * lib/inttostr.c (inttostr): Avoid compiler warning even with
33936         older gcc that do not understand #pragma GCC diagnostic.
33937         * lib/uinttostr.c (inttype_is_unsigned): Define.
33938         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
33939
33940 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33941
33942         stat: fix compilation on AIX
33943         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
33944         only see struct stat64.
33945
33946 2009-10-30  Eric Blake  <ebb9@byu.net>
33947
33948         exclude: make more robust
33949         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
33950         rather than masking a coding bug.
33951         Suggested by Bruno Haible.
33952
33953 2009-10-30  Jim Meyering  <meyering@redhat.com>
33954
33955         perl scripts: remove #!/usr/bin/perl in favor of more portable...
33956         Rather than putting #!/usr/bin/perl on the first line,
33957         start with a variant of what's recommended by "man perlrun" that
33958         invokes the first "perl" program from your shell's search path.
33959         * build-aux/gitlog-to-changelog: Replace #!... as above.
33960         Add a "Local Variables" perl mode setting.
33961         Prompted by a patch from Ludovic Courtès.
33962         Improved by Eric Blake.
33963         * build-aux/useless-if-before-free: Likewise.
33964         * build-aux/announce-gen: Likewise.
33965         * build-aux/update-copyright: Likewise.
33966
33967 2009-10-29  Eric Blake  <ebb9@byu.net>
33968
33969         filenamecat-lgpl: adjust clients
33970         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
33971         filenamecat.
33972         * modules/renameat (Depends-on): Likewise.
33973
33974         filenamecat: split into filenamecat-lgpl
33975         * modules/filenamecat-lgpl: New module.
33976         * modules/filenamecat (Files): Move library-safe files into
33977         filenamecat-lgpl.
33978         (Depends-on): Add filenamecat-lgpl.
33979         (configure.ac): Declare witness.
33980         * lib/filenamecat.h (file_name_concat): Only declare when using
33981         GPL module.
33982         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
33983         Move...
33984         * lib/filenamecat-lgpl.c: ...into new file.
33985         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
33986         (gl_FILE_NAME_CONCAT): Use it.
33987         * MODULES.html.sh (File system functions): Mention new module.
33988
33989         argp: avoid memory leak
33990         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
33991         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
33992         base_name, since the latter malloc()s and can call exit().
33993         Leak introduced 2006-07-03.
33994
33995         dirname-lgpl: adjust clients that don't need full dirname
33996         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
33997         * modules/filenamecat (Depends-on): Likewise.
33998         * modules/linkat (Depends-on): Likewise.
33999         * modules/mkancesdirs (Depends-on): Likewise.
34000         * modules/mkdir (Depends-on): Likewise.
34001         * modules/openat (Depends-on): Likewise.
34002         * modules/savewd (Depends-on): Likewise.
34003         * modules/rename (Depends-on): Likewise.
34004         (License): Relax license.
34005         * modules/mkdir-tests (Depends-on): Drop progname.
34006         (Makefile.am): Delete unneeded LDADD.
34007         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
34008
34009         dirname: split into dirname-lgpl
34010         * modules/dirname-lgpl: New module.
34011         * modules/dirname (Files): Move library-safe files into
34012         dirname-lgpl.
34013         (Depends-on): Add dirname-lgpl.
34014         (configure.ac): Declare witness.
34015         * modules/double-slash-root (License): Relax license.
34016         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
34017         module.
34018         * lib/dirname.c (dir_len, mdir_name): Move...
34019         * lib/dirname-lgpl.c: ...into new file.
34020         * lib/basename.c (last_component, base_len): Move...
34021         * lib/basename-lgpl.c: ...into new file.
34022         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
34023         (gl_DIRNAME): Use it.
34024         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
34025         Mention new module.
34026         * modules/dirname-tests (Depends-on): Add progname.
34027         * tests/test-dirname.c (program_name): Delete.
34028
34029         mkdir: make safe for libraries
34030         * modules/mkdir (Depends-on): Drop xalloc.
34031         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
34032         exit.
34033
34034         tests: avoid some compiler warnings
34035         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
34036         literals.
34037         * tests/test-memchr.c (main): Avoid type mismatch.
34038         * tests/test-arpa_inet.c (main): Avoid unused parameters.
34039         * tests/test-base64.c (main): Likewise.
34040         * tests/test-getdelim.c (main): Likewise.
34041         * tests/test-gethostname.c (main): Likewise.
34042         * tests/test-getline.c (main): Likewise.
34043         * tests/test-netinet_in.c (main): Likewise.
34044         * tests/test-select.c (open_server_socket, main): Likewise.
34045         * tests/test-select-stdin.c (main): Likewise.
34046         * tests/test-sockets.c (main): Likewise.
34047         * tests/test-strsignal.c (main): Likewise.
34048         * tests/test-sys_select.c (main): Likewise.
34049         * tests/test-sys_socket.c (main): Likewise.
34050         * tests/test-u64.c (main): Likewise.
34051         * tests/test-xfprintf-posix.c (main): Likewise.
34052         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
34053
34054         sockets: avoid compiler warning
34055         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
34056
34057         maint: detect usage(1) and other suspicious exits
34058         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
34059
34060 2009-10-29  Jim Meyering  <meyering@redhat.com>
34061
34062         timespec: long-to-int truncation could make timespec_cmp malfunction
34063         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
34064         a multiple of 2^32 nanoseconds as no difference.
34065
34066 2009-10-28  Jim Meyering  <meyering@redhat.com>
34067
34068         fprintftime: wrap macro code argument in "do {...} while(0)"
34069         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
34070         cpy macro must be a statement that can be followed by a semicolon.
34071         Now that the else clause contains a comment and is hence longer
34072         than one line, I require curly braces.  That in turn requires
34073         that we wrap this code block in the standard do...while(0).
34074
34075         fprintftime: remove stray semicolon from previous change
34076         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
34077
34078         fprintftime: avoid a warning about ignored fwrite return value
34079         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
34080         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
34081         that is unsafe.
34082         * modules/fprintftime (Depends-on): Add ignore-value.
34083
34084         exclude: avoid an unwarranted warning
34085         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
34086
34087 2009-10-27  Eric Blake  <ebb9@byu.net>
34088
34089         fseek: avoid compilation failure when fflush is replaced
34090         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
34091         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
34092         module is in use.
34093         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
34094         module is not in use; since REPLACE_FSEEK worked otherwise.
34095         (GNULIB_FTELLO): Likewise for ftell.
34096         Reported by Ian Beckwith and others.
34097
34098 2009-10-27  Bruno Haible  <bruno@clisp.org>
34099
34100         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
34101         Reported by Jim Meyering.
34102
34103 2009-10-27  Jim Meyering  <jim@meyering.net>
34104             Bruno Haible  <bruno@clisp.org>
34105
34106         Avoid warning despite dropping the return value of fwrite.
34107         * lib/unicodeio.c: Include ignore-value.h.
34108         (fwrite_success_callback): Explicitly ignore fwrite's return value.
34109         * modules/unicodeio (Depends-on): Add ignore-value.
34110
34111 2009-10-26  Eric Blake  <ebb9@byu.net>
34112
34113         areadlinkat: fix fallback path
34114         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
34115         pointer and zero.
34116
34117 2009-10-22  Pádraig Brady  <P@draigBrady.com>
34118
34119         Use a better IO block size for modern systems
34120         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
34121         * lib/md2.c: Likewise.
34122         * lib/md4.c: Likewise.
34123         * lib/md5.c: Likewise.
34124         * lib/sha1.c: Likewise.
34125         * lib/sha256.c: Likewise.
34126         * lib/sha512.c: Likewise.
34127
34128 2009-10-22  Eric Blake  <ebb9@byu.net>
34129
34130         tests: avoid several compiler warnings
34131         * tests/test-getcwd.c (main): Avoid buffer underflow.
34132         * tests/test-getdate.c (main): String literals are not safe with
34133         putenv, so use setenv.  Declare unused argument.
34134         * modules/getdate-tests (Depends-on): Add setenv.
34135         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
34136         problems with string literals in char *.
34137         * tests/test-hash.c (main): Avoid shadowing declaration.
34138         (insert_new): Treat string literals as char const *.
34139         * tests/test-getopt.h (test_getopt): Likewise.
34140         (getopt_loop): Alter types to minimize casting elsewhere.
34141         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
34142         (test_getopt_long_posix): Likewise.
34143         (do_getopt_long): Add wrapper to minimize casting.
34144         * tests/test-atexit.c (clear_temp_file): Use void.
34145         * tests/test-areadlink-with-size.c (main): Declare unused
34146         arguments.
34147         * tests/test-areadlink.c (main): Likewise.
34148         * tests/test-areadlinkat-with-size.c (main): Likewise.
34149         * tests/test-areadlinkat.c (main): Likewise.
34150         * tests/test-canonicalize-lgpl.c (main): Likewise.
34151         * tests/test-canonicalize.c (main): Likewise.
34152         * tests/test-dirent-safer.c (main): Likewise.
34153         * tests/test-dirname.c (main): Likewise.
34154         * tests/test-dup2.c (main): Likewise.
34155         * tests/test-fchdir.c (main): Likewise.
34156         * tests/test-fcntl-h.c (main): Likewise.
34157         * tests/test-fcntl-safer.c (main): Likewise.
34158         * tests/test-fdopendir.c (main): Likewise.
34159         * tests/test-fdutimensat.c (main): Likewise.
34160         * tests/test-fflush.c (main): Likewise.
34161         * tests/test-filenamecat.c (main): Likewise.
34162         * tests/test-filevercmp.c (main): Likewise.
34163         * tests/test-fopen-safer.c (main): Likewise.
34164         * tests/test-fopen.c (main): Likewise.
34165         * tests/test-fpending.c (main): Likewise.
34166         * tests/test-fpurge.c (main): Likewise.
34167         * tests/test-freading.c (main): Likewise.
34168         * tests/test-fstatat.c (main): Likewise.
34169         * tests/test-fsync.c (main): Likewise.
34170         * tests/test-futimens.c (main): Likewise.
34171         * tests/test-getndelim2.c (main): Likewise.
34172         * tests/test-gettimeofday.c (main): Likewise.
34173         * tests/test-getopt.c (main): Likewise.
34174         * tests/test-i-ring.c (main): Likewise.
34175         * tests/test-inttypes.c (main): Likewise.
34176         * tests/test-link.c (main): Likewise.
34177         * tests/test-lstat.c (main): Likewise.
34178         * tests/test-math.c (main): Likewise.
34179         * tests/test-md5.c (main): Likewise.
34180         * tests/test-memchr2.c (main): Likewise.
34181         * tests/test-memrchr.c (main): Likewise.
34182         * tests/test-mkdir.c (main): Likewise.
34183         * tests/test-mkdirat.c (main): Likewise.
34184         * tests/test-mkfifoat.c (main): Likewise.
34185         * tests/test-open.c (main): Likewise.
34186         * tests/test-openat-safer.c (main): Likewise.
34187         * tests/test-openat.c (main): Likewise.
34188         * tests/test-quotearg.c (main): Likewise.
34189         * tests/test-rawmemchr.c (main): Likewise.
34190         * tests/test-readlink.c (main): Likewise.
34191         * tests/test-remove.c (main): Likewise.
34192         * tests/test-rename.c (main): Likewise.
34193         * tests/test-renameat.c (main): Likewise.
34194         * tests/test-rmdir.c (main): Likewise.
34195         * tests/test-sha1.c (main): Likewise.
34196         * tests/test-signal.c (main): Likewise.
34197         * tests/test-sigaction.c (main): Likewise.
34198         * tests/test-stat.c (main): Likewise.
34199         * tests/test-stat-time.c (main): Likewise.
34200         * tests/test-stddef.c (main): Likewise.
34201         * tests/test-stdint.c (main): Likewise.
34202         * tests/test-stdio.c (main): Likewise.
34203         * tests/test-stdlib.c (main): Likewise.
34204         * tests/test-strchrnul.c (main): Likewise.
34205         * tests/test-strerror.c (main): Likewise.
34206         * tests/test-string.c (main): Likewise.
34207         * tests/test-strtod.c (main): Likewise.
34208         * tests/test-strverscmp.c (main): Likewise.
34209         * tests/test-symlink.c (main): Likewise.
34210         * tests/test-symlinkat.c (main): Likewise.
34211         * tests/test-sys_stat.c (main): Likewise.
34212         * tests/test-sys_time.c (main): Likewise.
34213         * tests/test-time.c (main): Likewise.
34214         * tests/test-unistd.c (main): Likewise.
34215         * tests/test-unlink.c (main): Likewise.
34216         * tests/test-unlinkat.c (main): Likewise.
34217         * tests/test-utimens.c (main): Likewise.
34218         * tests/test-utimensat.c (main): Likewise.
34219         * tests/test-version-etc.c (main): Likewise.
34220         * tests/test-wchar.c (main): Likewise.
34221         * tests/test-wctype.c (main): Likewise.
34222         * tests/test-xprintf-posix.c (main): Likewise.
34223         * tests/test-posixtm.c (main): Likewise.
34224         (STREQ): Delete unused macro.
34225         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
34226         shadowed variables.
34227         * tests/test-memchr.c (main): Likewise.
34228
34229 2009-10-21  Eric Blake  <ebb9@byu.net>
34230
34231         areadlinkat: avoid failure on older glibc
34232         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
34233         rather than mis-comparing 0 against FUNC_RESULT of char*.
34234
34235 2009-10-21  Bruno Haible  <bruno@clisp.org>
34236
34237         * modules/stpncpy (License): Relicense under LGPLv2+.
34238         Reported by David Lutterkort <lutter@redhat.com>.
34239
34240 2009-10-20  Eric Blake  <ebb9@byu.net>
34241
34242         utimensat: work around Solaris 9 bug
34243         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
34244         has trailing slash bugs.
34245         * tests/test-lutimens.h (test_lutimens): Enhance test.
34246         * tests/test-utimens.h (test_utimens): Likewise.
34247         * doc/posix-functions/utime.texi (utime): Enhance documentation.
34248         * doc/posix-functions/utimes.texi (utimes): Likewise.
34249         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34250         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
34251         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
34252         * doc/posix-functions/futimens.texi (futimens): Likewise.
34253
34254         fdutimensat: new module
34255         * modules/fdutimensat: New file.
34256         * lib/fdutimensat.c (fdutimensat): Likewise.
34257         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
34258         * MODULES.html.sh (File system functions): Mention module.
34259         * modules/fdutimensat-tests: New test.
34260         * tests/test-fdutimensat.c: Likewise.
34261
34262         doc: regenerate INSTALL
34263         * doc/INSTALL: Reflect recent autoconf update.
34264         * doc/INSTALL.ISO: Likewise.
34265         * doc/INSTALL.UTF-8: Likewise.
34266
34267 2009-10-20  Pádraig Brady  <P@draigBrady.com>
34268
34269         acl: warn if ACL support is not detected
34270         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
34271
34272 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
34273
34274         * lib/nproc.h: Add extern "C" block for C++.
34275
34276 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
34277             Bruno Haible  <bruno@clisp.org>
34278
34279         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
34280         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
34281         * doc/posix-functions/isalpha.texi: Likewise.
34282         * doc/posix-functions/isblank.texi: Likewise.
34283         * doc/posix-functions/iscntrl.texi: Likewise.
34284         * doc/posix-functions/isdigit.texi: Likewise.
34285         * doc/posix-functions/isgraph.texi: Likewise.
34286         * doc/posix-functions/islower.texi: Likewise.
34287         * doc/posix-functions/isprint.texi: Likewise.
34288         * doc/posix-functions/ispunct.texi: Likewise.
34289         * doc/posix-functions/isspace.texi: Likewise.
34290         * doc/posix-functions/isupper.texi: Likewise.
34291         * doc/posix-functions/isxdigit.texi: Likewise.
34292
34293 2009-10-18  Bruno Haible  <bruno@clisp.org>
34294
34295         Tests for module 'isblank'.
34296         * modules/isblank-tests: New file.
34297         * tests/test-isblank.c: New file.
34298
34299         New module 'isblank'.
34300         * lib/isblank.c: New file.
34301         * m4/isblank.m4: New file.
34302         * modules/isblank: New file.
34303         * doc/posix-functions/isblank.texi: Mention the new module.
34304
34305 2009-10-18  Bruno Haible  <bruno@clisp.org>
34306
34307         New module 'ctype'.
34308         * lib/ctype.in.h: New file.
34309         * m4/ctype.m4: New file.
34310         * modules/ctype: New file.
34311         * doc/posix-headers/ctype.texi: Mention the new module.
34312
34313 2009-10-18  Jim Meyering  <meyering@redhat.com>
34314
34315         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
34316         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
34317         right after its initialization, rather than farther down.
34318         Keeping these in close proximity makes it easier to ensure
34319         that each such variable is initialized.  E.g.,
34320
34321             LIB_CLOCK_GETTIME=
34322             AC_SUBST([LIB_CLOCK_GETTIME])
34323
34324         This change also increments these serial numbers.
34325         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
34326         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34327         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34328
34329 2009-10-18  Bruno Haible  <bruno@clisp.org>
34330
34331         Don't let environment variables perturb build.
34332         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
34333         (gl_PREREQ_GETHRXTIME): ... not here.
34334
34335 2009-10-18  Bruno Haible  <bruno@clisp.org>
34336
34337         Avoid symlink attack in localcharset module.
34338         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
34339         (O_NOFOLLOW): Define fallback.
34340         (get_charset_aliases): Don't open the file if it is a symbolic link.
34341         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
34342         gl_FCNTL_H.
34343         (gl_FCNTL_H): Require it.
34344         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
34345         * modules/localcharset (Files): Add m4/fcntl_h.m4.
34346         Reported by Fergal Glynn <fglynn@veracode.com>.
34347
34348 2009-10-18  Bruno Haible  <bruno@clisp.org>
34349
34350         Implement nproc for mingw.
34351         * lib/nproc.c: Include <windows.h>
34352         (num_processors): On native Windows platforms, try GetSystemInfo.
34353
34354 2009-10-18  Bruno Haible  <bruno@clisp.org>
34355
34356         Implement nproc for IRIX.
34357         * lib/nproc.c: Include <sys/sysmp.h>.
34358         (num_processors): On IRIX systems, try sysmp.
34359         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
34360
34361 2009-10-18  Bruno Haible  <bruno@clisp.org>
34362
34363         Implement nproc for HP-UX.
34364         * lib/nproc.c: Include <sys/pstat.h>
34365         (num_processors): On HP-UX systems, try pstat_getdynamic.
34366         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
34367         pstat_getdynamic.
34368
34369 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
34370             Bruno Haible  <bruno@clisp.org>
34371
34372         Implement nproc for NetBSD, OpenBSD.
34373         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
34374         (ARRAY_SIZE): New macro.
34375         (num_processors): On BSD systems, try sysctl of HW_NCPU.
34376         * m4/nproc.m4: New file.
34377         * modules/nproc (Files): Add m4/nproc.m4.
34378         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
34379         (Makefile.am): Instead, augment lib_SOURCES.
34380
34381 2009-10-18  Bruno Haible  <bruno@clisp.org>
34382
34383         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
34384         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
34385         sys/param.h.
34386
34387 2009-10-16  Eric Blake  <ebb9@byu.net>
34388
34389         utimensat: new module
34390         * modules/utimensat: New file.
34391         * lib/utimensat.c (utimensat): Likewise.
34392         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34393         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
34394         so we can work around Linux bugs.
34395         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34396         * modules/sys_stat (Makefile.am): Substitute them.
34397         * lib/sys_stat.in.h (utimensat): Declare it.
34398         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34399         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34400         * modules/utimensat-tests: New test.
34401         * tests/test-utimensat.c: Likewise.
34402
34403         utimens: let lutimens work on non-symlinks
34404         * lib/utimens.c (lutimens): Fall back to utimens rather than
34405         failing with ENOSYS, when file is not a symlink.
34406         (utimens): Reduce redirection.
34407         * tests/test-lutimens.h (test_lutimens): Update test to cover
34408         non-symlinks.
34409         * tests/test-utimens.h (test_utimens): Update test to cover
34410         symlinks.
34411         * tests/test-utimens.c (main): Update caller.
34412
34413         utimens: cache whether utimensat syscall works
34414         * lib/utimens.c (utimensat_works_really): New cache variable.
34415         (fdutimens, lutimens): Use it to avoid failing syscall.
34416
34417         test-stat-time, test-utimens: improve portability
34418         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
34419         ext4 on alpha, and for cygwin.
34420         * tests/test-utimens-common.h: New file.
34421         (nap): Factor delays into single function.
34422         * tests/test-lutimens.h (test_lutimens): Use new header.
34423         * tests/test-futimens.h (test_futimens): Likewise.
34424         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
34425         timestamps to occur from same machine, as was done previously for
34426         test_utimens.
34427         * modules/utimens-tests (Files): Ship new file.
34428         * modules/futimens-tests (Files): Likewise.
34429         Reported in part by Jim Meyering.
34430
34431         sys_stat: sort replacement declarations
34432         * lib/sys_stat.in.h: Sort declarations.
34433         * lib/futimens.c (futimens): Fix typo.
34434
34435 2009-10-15  Jim Meyering  <meyering@redhat.com>
34436
34437         don't let environment settings perturb build
34438         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
34439         could cause a configure-time and/or build-time malfunction.
34440         Typically, a configure-time function-in-library test is performed
34441         via code like this:
34442
34443           LIB_VAR=
34444           AC_SUBST([LIB_VAR])
34445           prefix_saved_LIBS=$LIBS
34446             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
34447                        [test "$ac_cv_search_FUNC" = "none required" ||
34448                         LIB_VAR=$ac_cv_search_FUNC])
34449           LIBS=$prefix_saved_LIBS
34450
34451         However, in each of the files affected by this change, the LIB_VAR=
34452         initialization was omitted.  Thus, when set in the environment, its
34453         value would propagate into generated Makefiles when FUNC is not found
34454         in LIB_NAME.
34455         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
34456         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34457         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34458
34459 2009-10-14  Eric Blake  <ebb9@byu.net>
34460
34461         fchdir: avoid infinite recursion in mingw
34462         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
34463         recursing.
34464
34465         test-stat-time: port to mingw
34466         * tests/test-stat-time.c (force_unlink): Return a value.
34467         (test_ctime) [W32]: Fix compilation error.
34468         (nap): Don't call usleep with too large an argument.  Use
34469         force_unlink.
34470         * doc/pastposix-functions/usleep.texi (usleep): Document the
34471         portability issue.
34472
34473 2009-10-13  Jim Meyering  <meyering@redhat.com>
34474
34475         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
34476         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
34477         * modules/pipe-filter-ii: Likewise.
34478         * modules/sys_socket-tests: Likewise.
34479         * modules/tsearch-tests: Likewise.
34480         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
34481         (check): Depend on it.
34482
34483 2009-10-12  Eric Blake  <ebb9@byu.net>
34484
34485         utimens-tests: port to NFS file systems
34486         * tests/test-utimens.h (test_utimens): Refactor utimecmp
34487         comparisons to avoid spurious failures from timestamp drift
34488         between NFS machines.
34489
34490 2009-10-12  Eric Blake  <ebb9@byu.net>
34491
34492         stat-time-tests: minor cleanups
34493         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
34494         * tests/test-stat-time.c (nap): Separate assignment from call.
34495         Suggested by Paolo Bonzini and Bruno Haible.
34496
34497         sys_stat: guarantee struct timespec
34498         * lib/sys_stat.in.h (includes): Always include <time.h>
34499         * modules/sys_stat (Depends-on): Add time.
34500         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
34501         mode_t permission values.
34502         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
34503         get at subsecond timestamps.
34504
34505 2009-10-10  Eric Blake  <ebb9@byu.net>
34506
34507         futimens: new module
34508         * modules/futimens: New file.
34509         * lib/futimens.c (futimens): Likewise.
34510         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
34511         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
34512         we can work around Linux bugs.
34513         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
34514         * modules/sys_stat (Makefile.am): Substitute them.
34515         * lib/sys_stat.in.h (futimens): Declare it.
34516         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34517         * doc/posix-functions/futimens.texi (futimens): Likewise.
34518         * modules/futimens-tests: New test.
34519         * tests/test-futimens.c: Likewise.
34520
34521         utimens: introduce fdutimens
34522         * lib/utimens.h (fdutimens): New prototype.
34523         * lib/utimens.c (gl_futimens): Move guts...
34524         (fdutimens): ...to new interface.
34525         * tests/test-utimens.c (do_fdutimens): Use it.
34526
34527         utimens: add UTIME_NOW and UTIME_OMIT support
34528         * lib/utimens.c (validate_timespec, update_timespec): New helper
34529         functions.
34530         (gl_futimens, lutimens): Use them.
34531         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
34532         stdbool, sys_stat.
34533         (Link): Mention resulting library dependency.
34534         * modules/utimecmp (Link): Likewise.
34535         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
34536         (Makefile.am): Pick up library dependency.
34537         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
34538         definition.
34539         * tests/test-sys_stat.c: Test the definitions.
34540         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
34541         * NEWS: Document library dependency.
34542
34543         utimecmp: support symlink timestamps
34544         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
34545         hashing when possible.  Use pathconf when available.
34546         (SYSCALL_RESOLUTION): Recognize tighter resolution.
34547         * modules/utimecmp (Depends-on): Add lstat.
34548
34549         utimens: add lutimens interface
34550         * lib/utimens.c (lutimens): New function.
34551         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
34552         * lib/utimens.h (lutimens): Declare new interface.
34553         * tests/test-utimens.c (main): Enhance test.
34554         * tests/test-lutimens.h (test_lutimens): New file.
34555         * modules/utimens-tests (Files): Distribute it.
34556         (Depends-on): Add symlink.
34557         (configure.ac): Check for usleep.
34558
34559         utimens: validate futimens usage
34560         * lib/utimens.c (gl_futimens): Require valid fd up front, using
34561         fewer syscalls on failure later on.  Avoid compiler warning on
34562         mingw.
34563         * modules/utimens (Depends-on): Add dup2.
34564
34565         utimens: add test
34566         * modules/utimens-tests: New test.
34567         * tests/test-utimens.h: New file.
34568         * tests/test-futimens.h: Likewise.
34569         * tests/test-utimens.c: Likewise.
34570
34571         doc: mention timestamp portability issues
34572         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
34573         instead.
34574         * doc/posix-functions/utime.texi (utime): Likewise.
34575         * doc/posix-functions/utimes.texi (utimes): Likewise.
34576         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
34577         instead.
34578         * doc/posix-functions/futimens.texi (futimens): Mention utimens
34579         module.
34580         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
34581         Mention weakness with symlink timestamps.
34582         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
34583         to utimensat/futimens instead.
34584         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
34585
34586         test-dup2: enhance test
34587         * tests/test-dup2.c (main): Also check AT_FDCWD.
34588
34589         test-stat-time: avoid more spurious failures
34590         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
34591         xfs; and avoid race if the two timestamps cross quantization edge.
34592
34593         relocatable: prefer 'file system' over 'filesystem'
34594         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
34595         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
34596         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
34597         * doc/relocatable.texi (Enabling Relocatability): Likewise.
34598         * lib/relocatable.c (compute_curr_prefix): Likewise.
34599
34600 2009-10-10  Jim Meyering  <meyering@redhat.com>
34601
34602         stat-time-tests: check for the usleep function
34603         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
34604
34605 2009-10-10  Bruno Haible  <bruno@clisp.org>
34606
34607         * modules/xnanosleep: Put the Link section after the Include section.
34608
34609 2009-10-09  Eric Blake  <ebb9@byu.net>
34610
34611         dup2: work around FreeBSD 6.1 bug
34612         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
34613         * doc/posix-functions/dup2.texi (dup2): Document it.
34614         Reported by Nelson H. F. Beebe and Jim Meyering.
34615
34616         test-stat-time: port to buggy NFS clients
34617         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
34618         (test_ctime): Also skip test if mtime and ctime are skewed.
34619
34620         maint: prefer 'file system' over 'filesystem'
34621         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
34622         * doc/posix-functions/lstat.texi (lstat): Likewise.
34623         * lib/file-has-acl.c (file_has_acl): Likewise.
34624         * lib/fwriteerror.c [TEST]: Likewise.
34625         * tests/test-areadlink.h (test_areadlink): Likewise.
34626         * tests/test-areadlinkat-with-size.c (main): Likewise.
34627         * tests/test-areadlinkat.c (main): Likewise.
34628         * tests/test-canonicalize-lgpl.c (main): Likewise.
34629         * tests/test-canonicalize.c (main): Likewise.
34630         * tests/test-fstatat.c (main): Likewise.
34631         * tests/test-linkat.c (main): Likewise.
34632         * tests/test-lstat.h (test_lstat_func): Likewise.
34633         * tests/test-mkdir.h (test_mkdir): Likewise.
34634         * tests/test-readlink.h (test_readlink): Likewise.
34635         * tests/test-remove.c (main): Likewise.
34636         * tests/test-rename.h (test_rename): Likewise.
34637         * tests/test-renameat.c (main): Likewise.
34638         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34639         * tests/test-symlink.h (test_symlink): Likewise.
34640         * tests/test-symlinkat.c (main): Likewise.
34641         * tests/test-unlink.h (test_unlink_func): Likewise.
34642         * tests/test-unlinkat.c (main): Likewise.
34643
34644         maint: make realtime library usage explicit
34645         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
34646         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
34647         * modules/settime (Link): Likewise.
34648         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
34649
34650         test-stat-time: speed up execution
34651         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
34652         warning on mingw.
34653         (nap): New helper function.
34654         (prepare_test): Use it to reduce sleep time.
34655         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
34656         execution.
34657         * modules/stat-time-tests (configure.ac): Check for usleep.
34658
34659 2009-10-09  Jim Meyering  <meyering@redhat.com>
34660
34661         selinux-h: always use getfilecon wrappers
34662         * lib/getfilecon.c: New file.
34663         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
34664         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
34665         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
34666         (fgetfilecon): Provide a stub.
34667         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
34668         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
34669         file unconditionally.
34670         When <selinux/selinux.h> is found, arrange to use wrappers.
34671         * modules/selinux-h (Files): Add getfilecon.c.
34672         (Makefile.am): Substitute include-next-related bits
34673         into the now-always-generated selinux/selinux.h file.
34674         * doc/glibc-functions/lgetfilecon.texi: New file.
34675         * doc/glibc-functions/fgetfilecon.texi: New file.
34676         * doc/glibc-functions/getfilecon.texi: New file.
34677         * doc/glibc-functions/getfilecon-desc.texi: New file.
34678         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
34679         which to pull in the new files.
34680         * MODULES.html.sh (Misc): Add selinux-h.
34681
34682 2009-10-08  Jim Meyering  <meyering@redhat.com>
34683
34684         unistd: fix comment typo
34685         * lib/unistd.in.h (euidaccess): Fix a comment typo.
34686
34687 2009-10-08  Eric Blake  <ebb9@byu.net>
34688
34689         areadlink: use SIZE_MAX consistently
34690         * modules/areadlink (Depends-on): Add stdint.
34691         * modules/areadlink-with-size (Depends-on): Likewise.
34692         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
34693         gives NULL; drop sys/types, since unistd gives size_t; and add
34694         stdint for SIZE_MAX.
34695         (SIZE_MAX): Rely on headers.
34696         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
34697         and add stdint.
34698         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
34699         (SIZE_MAX): Likewise.
34700         (INITIAL_BUF_SIZE): Turn into enum.
34701         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
34702
34703 2009-10-08  Jim Meyering  <meyering@redhat.com>
34704
34705         areadlinkat: avoid compilation failure
34706         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
34707         Fix typo in comment.
34708
34709 2009-10-07  Eric Blake  <ebb9@byu.net>
34710
34711         areadlinkat-with-size: new module
34712         * modules/areadlinkat-with-size: New module.
34713         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
34714         * lib/areadlink.h (areadlinkat): Declare it.
34715         * MODULES.html.sh (File system functions): Mention it.
34716         * modules/areadlinkat-with-size-tests: New test.
34717         * tests/test-areadlinkat-with-size.c: New file.
34718
34719         xreadlinkat: new module
34720         * modules/xreadlinkat: New module.
34721         * lib/xreadlinkat.c (xreadlinkat): New file.
34722         * lib/xreadlink.h (xreadlinkat): Declare it.
34723         * MODULES.html.sh (File system functions): Mention it.
34724
34725         areadlinkat: new module
34726         * lib/at-func.c (FUNC_FAIL): New define.
34727         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
34728         * modules/areadlinkat: New module.
34729         * lib/linkat.c (areadlinkat): Move...
34730         * lib/areadlinkat.c (areadlinkat): ...to new file.
34731         * lib/areadlink.h (areadlinkat): Declare it.
34732         * modules/linkat (Depends-on): Add areadlinkat.
34733         * MODULES.html.sh (File system functions): Mention it.
34734         * modules/areadlinkat-tests: New test.
34735         * tests/test-areadlinkat.c: New file.
34736
34737         areadlink, areadlink-with-size: add tests
34738         * modules/areadlink-tests: New test.
34739         * modules/areadlink-with-size-tests: Likewise.
34740         * tests/test-areadlink.h: New file.
34741         * tests/test-areadlink.c: Likewise.
34742         * tests/test-areadlink-with-size.c: Likewise.
34743
34744         maint: minor cleanups
34745         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
34746         _UNUSED_PARAMETER_ instead.
34747         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
34748         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
34749         * modules/linkat-tests (Files): Distribute test-link.h.
34750
34751         openat, utimens: whitespace cleanup
34752         * lib/openat.c: Prefer space throughout, rather than mix of 8
34753         spaces vs. tabs.
34754         * lib/at-func.c: Likewise.
34755         * lib/utimens.c: Likewise.
34756
34757         openat: avoid using wrong fd
34758         * lib/openat.c (openat_permissive): Reject user's fd if saving the
34759         working directory chooses same fd.
34760         * lib/at-func.c (AT_FUNC_NAME): Likewise.
34761
34762         mkdir, mkdirat: fix cygwin 1.5.x bug
34763         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
34764         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
34765         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
34766         bug.
34767         (gl_PREREQ_MKDIR): Delete unused macro.
34768         * modules/mkdir (Files): Track file rename.
34769         (configure.ac): Update macro name.
34770         * modules/openat (Depends-on): Add mkdir.
34771         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
34772
34773         mkdir, mkdirat: add tests
34774         * modules/mkdir-tests: New test.
34775         * tests/test-mkdir.h: New file.
34776         * tests/test-mkdir.c: Likewise.
34777         * tests/test-mkdirat.c: Likewise.
34778         * modules/openat-tests (Files): Add new files.
34779         (Makefile.am): Run new test.
34780
34781 2009-10-06  Eric Blake  <ebb9@byu.net>
34782
34783         doc: tweak *at function documentation
34784         * doc/posix-functions/faccessat.texi (faccessat): Mention
34785         known issue with replacement.
34786         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
34787         * doc/posix-functions/linkat.texi (linkat): Likewise.
34788         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
34789         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
34790         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
34791         * doc/posix-functions/renameat.texi (renameat): Likewise.
34792         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
34793
34794         openat: fix GNU/Hurd bug in unlinkat
34795         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
34796         broken.
34797         * doc/posix-functions/unlink.texi (unlink): Document this.
34798         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
34799
34800         fdopendir: fix GNU/Hurd bug
34801         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
34802         allowing non-directory fds.
34803         * lib/fdopendir.c (rpl_fdopendir): Work around it.
34804         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34805         * modules/dirent (Makefile.am): Substitute it.
34806         * lib/dirent.in.h (fdopendir): Declare replacement.
34807         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
34808         * tests/test-fdopendir.c (main): Test something other than
34809         /dev/null, since on Hurd that behaves like a directory.
34810
34811         test-symlink: port to GNU/Hurd
34812         * tests/test-symlink.h (test_symlink): Relax expected errno.
34813
34814         doc: tweak more cygwin information
34815         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
34816         now compatible with glibc.
34817         * doc/posix-functions/getopt.texi (getopt): Likewise.
34818
34819         getopt-gnu: add another test
34820         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
34821         guarantee behavior relied on by m4.
34822         * tests/test-getopt.c (main): Use it.
34823         * modules/getopt-posix-tests (Depends-on): Add setenv.
34824         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
34825
34826         getopt: fix compilation on darwin
34827         * lib/getopt.in.h (includes): Leave breadcrumbs during system
34828         include.
34829         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
34830         Reported by Ludovic Courtès.
34831
34832 2009-10-06  Bruno Haible  <bruno@clisp.org>
34833
34834         * modules/size_max (Description): Discourage its use.
34835         Reported by Simon Josefsson.
34836
34837 2009-10-06  Jim Meyering  <meyering@redhat.com>
34838
34839         linkat: avoid compilation failure
34840         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
34841
34842 2009-10-05  Eric Blake  <ebb9@byu.net>
34843
34844         linkat: support Linux 2.6.17
34845         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
34846         linkat on Linux, but allow cache variable override.
34847         * lib/linkat.c (rpl_linkat): Define override.
34848         * modules/linkat (Depends-on): Add symlinkat.
34849         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
34850         * modules/unistd (Makefile.am): Substitute it.
34851         * lib/unistd.in.h (linkat): Declare replacement.
34852         Reported by Pádraig Brady.
34853
34854         quotearg: port test to systems with C.UTF-8 locale
34855         * tests/test-quotearg.c (struct result_strings): Add another
34856         member, differentiating between C.ASCII and C.UTF-8 handling.
34857         (compare_strings): Add parameter.
34858         (main): Adjust all callers.
34859
34860         getopt: avoid clash with FreeBSD _getopt_internal
34861         * lib/getopt.in.h (_getopt_internal): Override the name.
34862         * lib/getopt_int.h (includes): Pick up any overrides.
34863         Reported by Reuben Thomas.
34864
34865         hash: allow C89 compilation
34866         * lib/hash.c (check_tuning): Move declaration before statement.
34867         Reported by Reuben Thomas.
34868
34869 2009-10-05  Karl Berry  <karl@gnu.org>
34870
34871         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
34872
34873 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
34874             Bruno Haible  <bruno@clisp.org>
34875
34876         * lib/uname.c (uname): Use a table-driven algorithm to compute
34877         Windows NT versions.
34878
34879 2009-10-04  Bruno Haible  <bruno@clisp.org>
34880
34881         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
34882         program_invocation_short_name.
34883         * modules/progname (configure.ac): Test for presence of
34884         program_invocation_short_name.
34885         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
34886
34887 2009-10-04  Bruno Haible  <bruno@clisp.org>
34888
34889         * lib/progname.c (set_program_name): Fix comment.
34890         Reported by Jim Meyering.
34891
34892 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34893             Bruno Haible  <bruno@clisp.org>
34894
34895         * lib/uname.c: Include <string.h>.
34896         (uname): Do only one call to GetVersionEx in the common case.
34897
34898 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
34899             Bruno Haible  <bruno@clisp.org>
34900
34901         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
34902         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
34903         (uname): Add support for Windows CE and various non-x86 CPU types.
34904
34905 2009-10-03  Bruno Haible  <bruno@clisp.org>
34906
34907         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
34908         invocation to tests/configure.ac.
34909         Reported by Ian Beckwith <ianb@erislabs.net>.
34910
34911 2009-10-02  Eric Blake  <ebb9@byu.net>
34912
34913         fchdir: avoid compiler warning
34914         * lib/fchdir.c (canonicalize_file_name)
34915         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
34916
34917         test-open: support mingw errno values
34918         * tests/test-open.h (test_open): Relax test.
34919         * tests/test-fopen.h (test_fopen): Likewise.
34920         * tests/test-openat-safer.c (main): Likewise.
34921
34922         open: fix opening directory on mingw
34923         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
34924
34925         test-open: on GNU/Hurd, /dev/null is a directory
34926         * tests/test-fopen.h (main): Rename...
34927         (test_fopen): ...to this.  Use a guaranteed non-directory when
34928         confirming open behavior on trailing slash.
34929         * tests/test-openat-safer.c (main): Likewise.
34930         * tests/test-open.h (main): Likewise....
34931         (test_open): ...to this.
34932         * tests/test-fopen.c (main): Adjust caller.
34933         * tests/test-fopen-safer.c (main): Likewise.
34934         * tests/test-open.c (main): Likewise.
34935         * tests/test-fcntl-safer.c (main): Likewise.
34936         Reported by Samuel Thibault.
34937
34938         rename, fchdir: don't ignore chdir failure
34939         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
34940         * lib/rename.c (rpl_rename) [W32]: Likewise.
34941         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
34942         an empty destination directory if source cannot be renamed,
34943         although there is still possibility for failure.
34944         * doc/posix-functions/rename.texi (rename): Document the race.
34945         Reported by Jim Meyering.
34946
34947         maint: cleanup whitespace in recent commits
34948         * lib/rename.c (rpl_rename): Remove tabs.
34949         * tests/test-link.h (test_link): Likewise.
34950         * lib/fchdir.c (get_name): Likewise.
34951         Reported by Jim Meyering.
34952
34953 2009-10-02  Ben Pfaff  <blp@gnu.org>
34954
34955         relocatable-prog-wrapper: Add missing dependency on
34956         double-slash-root.
34957         * modules/relocatable-prog-wrapper: Add dependency.
34958         Reported by Ian Beckwith <ianb@erislabs.net>.
34959
34960 2009-10-02  Eric Blake  <ebb9@byu.net>
34961
34962         renameat: fix Solaris bugs
34963         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
34964         needed fixing.
34965         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
34966         * modules/stdio (Makefile.am): Substitute it.
34967         * lib/stdio.in.h (renameat): Declare replacement.
34968         * lib/renameat.c (rpl_renameat): Implement fix.
34969
34970         renameat: new module
34971         * modules/renameat: New file.
34972         * lib/renameat.c (renameat): Likewise.
34973         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
34974         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
34975         * modules/stdio (Makefile.am): Substitute them.
34976         * lib/stdio.in.h (renameat): Declare it.
34977         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
34978         * doc/posix-functions/renameat.texi (renameat): Likewise.
34979         * modules/renameat-tests: New test.
34980         * tests/test-renameat.c: Likewise.
34981
34982         rename: fix mingw bugs
34983         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
34984         directory overwrite bugs.
34985
34986         rename: fix another cygwin 1.5 bug
34987         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
34988         checks.
34989         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
34990         unnecessary cygwin workarounds.  Also work around bug with moving
34991         full directory onto an empty one.
34992         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
34993
34994         rename-dest-slash: merge into rename module
34995         * modules/rename-dest-slash (Status): Mark obsolete.
34996         (Depends-on): Add rename.
34997         (Files): Let rename do it all.
34998         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
34999         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
35000         * m4/rename-dest-slash.m4: ...so this file can be deleted.
35001         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
35002         * lib/rename.c (rpl_rename): Update comments.
35003
35004         rename: fix cygwin 1.5.x bugs
35005         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
35006         * lib/rename.c (rpl_rename): Work around them.
35007         * modules/rename (Depends-on): Add same-inode.
35008
35009         rename: fix Solaris 10 bug
35010         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
35011         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
35012         was the only bug.
35013
35014         rename: fix Solaris 9 bug
35015         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
35016         on non-directory.  Avoid calling exit.
35017         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
35018         strdup.
35019         * modules/rename-tests (Depends-on): Drop lstat.
35020         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
35021         (gl_PREREQ_RENAME): Delete unused macro.
35022
35023         rename-dest-slash: fix NetBSD bug
35024         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
35025         links.
35026         * modules/rename-dest-slash (Depends-on): Add same-inode.
35027
35028         rename-tests: new test, exposes several platform bugs
35029         * modules/rename-tests: New file.
35030         * tests/test-rename.h: Likewise.
35031         * tests/test-rename.c: Likewise.
35032         * doc/posix-functions/rename.texi (rename): Improve documentation,
35033         including bugs that will eventually be fixed in gnulib.
35034
35035 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
35036
35037         * lib/uname.c: Include <stdlib.h>
35038         (uname): Assume version info is available.
35039
35040 2009-10-02  Jim Meyering  <meyering@redhat.com>
35041
35042         gnu-web-doc-update: correct --help output
35043         * build-aux/gnu-web-doc-update: Make --help output relevant.
35044
35045         gnu-web-doc-update: add standard options
35046         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
35047
35048         gnu-web-doc-update: New module.
35049         Use this script to automatically update the on-line web documentation
35050         for your GNU project at http://www.gnu.org/software/$pkg/manual/
35051         * modules/gnu-web-doc-update: New file, from coreutils.
35052         * build-aux/gnu-web-doc-update: New script.
35053
35054 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
35055
35056         link: LoadLibrary is not needed.
35057         * lib/link.c: Use GetModuleHandle.
35058
35059 2009-10-01  Eric Blake  <ebb9@byu.net>
35060
35061         getopt: bump serial number
35062         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
35063         change.
35064
35065         tests: tighten link, rmdir, and remove tests
35066         * tests/test-link.h (includes): No need to use <config.h> here.
35067         Clean up if directory hard link was created, otherwise test for
35068         trailing '.'.
35069         * tests/test-linkat.c (main): Simplify.
35070         * tests/test-remove.c (main): Enhance test for trailing '.'.
35071         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35072
35073 2009-10-01  Jim Meyering  <meyering@redhat.com>
35074
35075         maint.mk: requiring "make major" was annoying, for a "minor" release.
35076         What is intended is "stable", to contrast with alpha and beta,
35077         so require "make stable", not "make major".
35078         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
35079         (get_tool_versions): Likewise.
35080         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
35081
35082 2009-09-30  Ben Pfaff  <blp@gnu.org>
35083
35084         Fix broken build of replacement for Windows tmpfile().
35085         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
35086         flags argument added along with the 'mkostemp' module.
35087
35088 2009-09-28  Bruno Haible  <bruno@clisp.org>
35089
35090         Avoid identifier clash with POSIX function 'remove' defined as a macro.
35091         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
35092         to 'remove_elt'.
35093         (gl_list_remove): Update.
35094         * lib/gl_list.c (gl_list_remove): Update.
35095         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
35096         to 'remove_elt'.
35097         (gl_oset_remove): Update.
35098         * lib/gl_list.c (gl_oset_remove): Update.
35099         Reported by Eric Blake.
35100
35101 2009-09-28  Eric Blake  <ebb9@byu.net>
35102
35103         doc: mention yet more cygwin 1.7 status
35104         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
35105         cygwin.
35106         * doc/glibc-functions/execvpe.texi (execvpe): New file.
35107         * doc/gnulib.texi (Glibc unistd.h): Mention it.
35108
35109         argp: fix test failure
35110         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
35111         that are not upper-case.  Pass correct range to tolower.
35112
35113 2009-09-27  Jim Meyering  <meyering@redhat.com>
35114
35115         test-yesno: work around sparc-dash here-document infelicity
35116         Without this change, the literal \177 byte in a here document
35117         would make dash 0.5.5.1-3 access uninitialized memory.
35118         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
35119         Instead, use a marker, "@", and filter through tr to create the desired
35120         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
35121
35122 2009-09-27  Bruno Haible  <bruno@clisp.org>
35123
35124         Disable untested support for new flavours of ACLs on AIX.
35125         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
35126         progress.
35127         * lib/set-mode-acl.c (qset_acl): Likewise.
35128
35129 2008-12-07  Bruno Haible  <bruno@clisp.org>
35130
35131         Add support for new flavours of ACLs on AIX. (Untested.)
35132         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
35133         (file_has_acl): Add support for newer AIX.
35134         * lib/set-mode-acl.c (qset_acl): Likewise.
35135         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
35136         Rainer Tammer <tammer@tammer.net>.
35137
35138 2009-09-26  Eric Blake  <ebb9@byu.net>
35139
35140         argp: fix compilation of getopt
35141         * lib/getopt.in.h (includes): Use different guard than glibc.
35142         Reported by Sergey Poznyakoff.
35143
35144         doc: mention more cygwin 1.7 status
35145         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
35146         bug.
35147         * doc/posix-functions/execl.texi (execl): Likewise.
35148         * doc/posix-functions/execle.texi (execle): Likewise.
35149         * doc/posix-functions/execlp.texi (execlp): Likewise.
35150         * doc/posix-functions/execv.texi (execv): Likewise.
35151         * doc/posix-functions/execve.texi (execve): Likewise.
35152         * doc/posix-functions/execvp.texi (execvp): Likewise.
35153         * doc/glibc-functions/canonicalize_file_name.texi
35154         (canonicalize_file_name): Cygwin 1.7 now provides this.
35155         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
35156         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
35157         on AT_SYMLINK_NOFOLLOW.
35158
35159 2009-09-24  Eric Blake  <ebb9@byu.net>
35160
35161         test-linkat: make test more robust
35162         * tests/test-linkat.c (main): Avoid collision with EEXIST.
35163
35164         getopt: fix inclusion guards for cygwin
35165         * modules/getopt-posix (Depends-on): Add include-next.
35166         (Makefile.am): Substitute more items in replacement header.
35167         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
35168         <getopt.h>.
35169         * lib/getopt.in.h (includes): Use split inclusion guard, and
35170         prefer <getopt.h> over include <unistd.h> when one is present.
35171         (option): Also override name of 'struct option'.
35172
35173         same-inode: revert prior change; it is not yet ready
35174         * NEWS: Undo mention of this change.
35175         * lib/same-inode.h (same-inode.h): Undo tri-state change.
35176         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
35177         * lib/cycle-check.c (cycle_check): Likewise.
35178         * lib/same.c (same_name): Likewise.
35179         * lib/at-func2.c (at_func2): Likewise.
35180
35181 2009-09-23  Eric Blake  <ebb9@byu.net>
35182
35183         linkat: new module
35184         * modules/linkat: New file.
35185         * lib/at-func2.c (at_func2): Likewise.
35186         * lib/linkat.c (linkat): Likewise.
35187         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
35188         * lib/openat-priv.h (at_func2): Add declaration.
35189         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35190         * modules/unistd (Makefile.am): Substitute them.
35191         * lib/unistd.in.h (linkat): Declare it.
35192         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35193         * doc/posix-functions/linkat.texi (linkat): Likewise.
35194         * doc/posix-functions/link.texi (link): Tweak wording.
35195         * tests/test-link.c (main): Move guts...
35196         * tests/test-link.h (test_link): ...into new file.
35197         * modules/linkat-tests: New test.
35198         * tests/test-linkat.c: Likewise.
35199         * modules/link-tests (Files): Ship new file.
35200         (Depends-on): Add stdbool.
35201
35202         dirname: add library-safe mdir_name
35203         * lib/dirname.h (mdir_name): New prototype.
35204         * lib/dirname.c (dir_name): Move guts...
35205         (mdir_name): ...to new function that avoids xalloc_die.
35206
35207         fchdir: another mingw fix
35208         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
35209         * lib/fchdir.c (get_name): New helper method; skips canonicalize
35210         on mingw (where it has not yet been ported), and make it optional
35211         elsewhere.
35212         (_gl_register_fd): Use it.
35213
35214         same-inode: make SAME_INODE tri-state, to port to mingw
35215         * NEWS: Mention this change.
35216         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
35217         st_ino always being 0.
35218         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
35219         * lib/cycle-check.c (cycle_check): Likewise.
35220         * lib/same.c (same_name): Likewise.
35221
35222         lstat: avoid mingw compilation error
35223         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
35224         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
35225         lstat ourselves.
35226         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
35227         was adequate.
35228         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
35229         the checks for lstat.
35230         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
35231
35232         link: fix test failure on Solaris 9
35233         * lib/link.c (rpl_link): Don't assume link will catch bogus
35234         trailing slash on source.
35235
35236         test-symlinkat: enhance test
35237         * tests/test-readlink.c (main): Move guts...
35238         * tests/test-readlink.h (test_readlink): ...into new file.
35239         * tests/test-symlink.c (main): Move guts...
35240         * tests/test-symlink.h (test_symlink): ...into new file.
35241         * tests/test-symlinkat.c (main): Use new files for further
35242         coverage.
35243         (do_symlink, do_readlink): New helper functions.
35244         * modules/symlink-tests (Files): Ship new file.
35245         (Depends-on): Add stdbool.
35246         * modules/readlink-tests (Files): Ship new file.
35247         (Depends-on): Add stdbool.
35248         * modules/symlinkat-tests (Files): Use new files.
35249
35250 2009-09-23  Eric Blake  <ebb9@byu.net>
35251
35252         readlink: document portability issue with symlink length
35253         * doc/posix-functions/lstat.texi (lstat): Mention that some file
35254         systems have bogus st_size on symlinks, and mention the
35255         areadlink-with-size module.
35256         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
35257         * doc/posix-functions/readlink.texi (readlink): Mention the
35258         areadlink module, and ERANGE failure.
35259         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35260         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
35261
35262         readlink: fix Solaris 9 bug with trailing slash
35263         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
35264         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
35265         * doc/posix-functions/readlink.texi (readlink): Document this.
35266         * modules/readlink-tests: New test.
35267         * tests/test-readlink.c: Likewise.
35268
35269         readlink: fix cygwin 1.5.x bug with return type
35270         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
35271         * lib/unistd.in.h (readlink): Use ssize_t.
35272         * lib/readlink.c (readlink): Likewise.
35273         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35274         * modules/unistd (Makefile.am): Substitute it.
35275         * lib/unistd.in.h (readlink): Declare replacement.
35276         * doc/posix-functions/readlink.texi (readlink): Document this.
35277
35278         symlink: use throughout gnulib
35279         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
35280         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
35281         symlink is not used.
35282         * modules/symlinkat (Depends-on): Add symlink.
35283         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35284         * modules/canonicalize-tests (Depends-on): Likewise.
35285         * modules/lstat-tests (Depends-on): Likewise.
35286         * modules/openat-tests (Depends-on): Likewise.
35287         * modules/remove-tests (Depends-on): Likewise.
35288         * modules/rmdir-tests (Depends-on): Likewise.
35289         * modules/unlink-tests (Depends-on): Likewise.
35290         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
35291         * tests/test-canonicalize.c (symlink): Likewise.
35292         * tests/test-fstatat.c (symlink): Likewise.
35293         * tests/test-lstat.c (symlink): Likewise.
35294         * tests/test-remove.c (symlink): Likewise.
35295         * tests/test-rmdir.c (symlink): Likewise.
35296         * tests/test-unlink.c (symlink): Likewise.
35297         * tests/test-unlinkat.c (symlink): Likewise.
35298
35299         symlink: new module, for Solaris 9 bug
35300         * modules/symlink: New file.
35301         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
35302         * lib/symlink.c: Likewise.
35303         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
35304         * modules/unistd (Makefile.am): Substitute them.
35305         * lib/unistd.in.h (symlink): Declare replacement.
35306         * MODULES.html.sh (File system functions): Mention it.
35307         * doc/posix-functions/symlink.texi (symlink): Likewise.
35308         * modules/symlink-tests: New test.
35309         * tests/test-symlink.c: Likewise.
35310
35311 2009-09-23  Bruno Haible  <bruno@clisp.org>
35312
35313         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
35314         when needed.
35315         Test case: gnulib-tool --import --with-tests atexit inttypes.
35316         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
35317
35318 2009-09-23  Bruno Haible  <bruno@clisp.org>
35319
35320         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
35321         subcommand, not in a subshell.
35322
35323 2009-09-22  Eric Blake  <ebb9@byu.net>
35324
35325         unistd: sort replacement declarations
35326         * lib/unistd.in.h: Sort declarations.
35327
35328         open, openat: minor optimization
35329         * lib/open.c (open): If open succeeded, len is non-zero.
35330         * lib/openat.c (rpl_openat): Likewise.
35331
35332         link-follow: ensure correct result
35333         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
35334         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
35335         distinguish between possible failures.
35336
35337 2009-09-21  Eric Blake  <ebb9@byu.net>
35338
35339         fts: avoid compiler warning
35340         * lib/fts.c (dirent_inode_sort_may_be_useful)
35341         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
35342
35343 2009-09-19  Bruno Haible  <bruno@clisp.org>
35344
35345         * lib/progreloc.c (canonicalize_file_name): New declaration.
35346
35347 2009-09-19  Eric Blake  <ebb9@byu.net>
35348
35349         link: fix quoting
35350         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
35351
35352         openat: fix openat bugs on Solaris 9
35353         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
35354         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
35355         * modules/openat (Depends-on): Add open.
35356         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
35357         * modules/fcntl-h (Makefile.am): Substitute it.
35358         * lib/fcntl.in.h (openat): Declare replacement.
35359         * doc/posix-functions/openat.texi (openat): Document this.
35360
35361         openat: move fstatat and unlinkat into correct files
35362         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
35363         compiled.
35364         * lib/openat.c (fstatat, unlinkat): Move...
35365         * lib/fstatat.c (fstatat): ...into correct files.
35366         * lib/unlinkat.c (unlinkat): Likewise.
35367
35368         openat: fix unlinkat bugs on Solaris 9
35369         * lib/unlinkat.c (unlinkat): New file.
35370         * modules/openat (Depends-on): Add unlink.
35371         (Files): Distribute it.
35372         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
35373         trailing slash behavior is broken.
35374         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35375         * modules/unistd (Makefile.am): Substitute it.
35376         * lib/unistd.in.h (unlinkat): Declare replacement.
35377         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
35378
35379         openat: fix fstatat bugs on Solaris 9
35380         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
35381         stat.
35382         * doc/posix-functions/fstatat.texi (fstatat): Document this.
35383
35384         test-unlinkat: enhance test, to expose Solaris 9 bug
35385         * tests/test-unlink.c (main): Factor guts...
35386         * tests/test-unlink.h (test_rmdir_func): ...into new file.
35387         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
35388         * tests/test-rmdir.c (main): Adjust caller.
35389         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
35390         (unlinker): New helper function.
35391         (rmdirat): Enhance check.
35392         * modules/rmdir-tests (Depends-on): Add stdbool.
35393         * modules/unlink-tests (Depends-on): Likewise.
35394         (Files): Add test-unlink.h.
35395         * modules/openat-tests (Files): Likewise.
35396         (Depends-on): Add unlinkdir.
35397
35398         test-fstatat: new test, to expose Solaris 9 bugs
35399         * tests/test-stat.c (main): Factor guts...
35400         * tests/test-stat.h (test_stat_func): ...into new file.
35401         * tests/test-lstat.c (main): Factor guts...
35402         * tests/test-lstat.h (test_lstat_func): ...into new file.
35403         * tests/test-fstatat.c: New file.
35404         * modules/stat-tests (Files): Add test-stat.h.
35405         * modules/lstat-tests (Files): Add test-lstat.h.
35406         (Depends-on): Add stdbool.
35407         * modules/openat-tests (Depends-on): Add pathmax.
35408         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
35409         (Makefile.am): Run new test.
35410
35411         remove: new module, for mingw and Solaris 9 bugs
35412         * modules/remove: New file.
35413         * lib/remove.c: Likewise.
35414         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
35415         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
35416         * modules/stdio (Makefile.am): Use them.
35417         * lib/stdio.in.h (remove): Declare replacement.
35418         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35419         * doc/posix-functions/remove.texi (remove): Likewise.
35420         * modules/remove-tests: New test.
35421         * tests/test-remove.c: Likewise.
35422
35423         unlink: new module, for Solaris 9 bug
35424         * modules/unlink: New file.
35425         * lib/unlink.c: Likewise.
35426         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
35427         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
35428         * modules/unistd (Makefile.am): Use them.
35429         * lib/unistd.in.h (stat): Declare replacement.
35430         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35431         * doc/posix-functions/unlink.texi (unlink): Likewise.
35432         * modules/unlink-tests: New test.
35433         * tests/test-unlink.c: Likewise.
35434
35435         lstat: fix Solaris 9 bug
35436         * lib/lstat.c (lstat): Also check for trailing slash on
35437         non-symlink, non-directories.  Use stat module to simplify logic.
35438         * doc/posix-functions/lstat.texi (lstat): Document it.
35439         * modules/lstat-tests (Depends-on): Add errno, same-inode.
35440         (configure.ac): Check for symlink.
35441         * tests/test-lstat.c (main): Add more tests.
35442
35443         stat: add as dependency to other modules
35444         * modules/chown (Depends-on): Add stat.
35445         * modules/euidaccess (Depends-on): Likewise.
35446         * modules/fchdir (Depends-on): Likewise.
35447         * modules/isdir (Depends-on): Likewise.
35448         * modules/link (Depends-on): Likewise.
35449         * modules/lstat (Depends-on): Likewise.
35450         * modules/mkdir-p (Depends-on): Likewise.
35451         * modules/modechange (Depends-on): Likewise.
35452         * modules/open (Depends-on): Likewise.
35453         * modules/readlink (Depends-on): Likewise.
35454         * modules/same (Depends-on): Likewise.
35455
35456         stat: fix Solaris 9 bug
35457         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
35458         slash.
35459         * lib/stat.c (rpl_stat): Work around it.
35460         * doc/posix-functions/stat.texi (stat): Update documentation.
35461
35462         stat: new module, for mingw bug
35463         * modules/stat: New file.
35464         * lib/stat.c: Likewise.
35465         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35466         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35467         * modules/sys_stat (Makefile.am): Use them.
35468         * lib/sys_stat.in.h (stat): Declare replacement.
35469         * lib/openat.c (fstatat): Deal with lstat and stat being function
35470         macros.
35471         * modules/openat (Depends-on): Add inline.
35472         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35473         * doc/posix-functions/stat.texi (stat): Likewise.
35474         * modules/stat-tests: New test.
35475         * tests/test-stat.c: Likewise.
35476
35477 2009-09-19  Jim Meyering  <meyering@redhat.com>
35478
35479         syntax-check: detect unnecessary inclusion of canonicalize.h
35480         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
35481
35482 2009-09-19  Eric Blake  <ebb9@byu.net>
35483
35484         canonicalize-lgpl: adjust clients to use correct header
35485         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35486         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
35487         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
35488         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
35489         * lib/progreloc.c (includes): Likewise.
35490
35491 2009-09-19  Jim Meyering  <meyering@redhat.com>
35492
35493         test-posixtm.c: correct a comment
35494         * tests/test-posixtm.c: Correct first-line comment.
35495         Spotted by Eric Blake.
35496
35497 2009-09-16  Jim Meyering  <meyering@redhat.com>
35498
35499         posixtm-tests: make T const-correct; add a test case
35500         * tests/test-posixtm.c (T): Declare const.
35501         Add a test for -(2^31+1).
35502         Remove useless can-succeed-only-in-2002 test.
35503
35504         posixtm-tests: adjust the sole failing test
35505         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
35506         expected output matches what mktime now produces.  Cross-checked via
35507         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
35508
35509         posixtm: move #ifdef'd tests into a new module
35510         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
35511         * tests/test-posixtm.c: ... this new file.
35512         * modules/posixtm-tests: New module.
35513
35514 2009-09-19  Eric Blake  <ebb9@byu.net>
35515
35516         openat: simplify use of at-func.c
35517         * lib/at-func.c (includes): Include prerequisites here, to
35518         simplify requirements on client files.
35519         * lib/openat-priv.h: Add double-inclusion guard.
35520         * lib/faccessat.c (includes): Simplify.
35521         * lib/fchmodat.c (includes): Likewise.
35522         * lib/fchownat.c (includes): Likewise.
35523         * lib/mkdirat.c (includes): Likewise.
35524         * lib/mkfifoat.c (includes): Likewise.
35525         * lib/symlinkat.c (includes): Likewise.
35526
35527         openat: allow return of fd 0
35528         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
35529         * modules/save-cwd (Depends-on): Replace fcntl-safer with
35530         unistd-safer.
35531         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
35532         <fcntl.h>; this module does not leak fds.
35533         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
35534         must be allowed to return 0, leaving openat_safer to add the
35535         safety.
35536         (openat_permissive): Avoid writing to just-opened fd 2 if
35537         restoring the current directory fails.
35538         * lib/openat-die.c (openat_restore_fail): Add comment.
35539         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
35540         (save_cwd): Guarantee safe fd, but without use of open_safer.
35541         * tests/test-openat.c: New test.
35542         * modules/openat-tests (Files, Makefile.am): Distribute and build
35543         new file.
35544
35545         relocatable-prog-wrapper: fix build
35546         * modules/relocatable-prog-wrapper (Files): Update name of
35547         canonicalize m4 file, broken on 2009-09-17.
35548         Reported by emad hajjar <aleppos@hotmail.com>.
35549
35550 2009-09-19  Bruno Haible  <bruno@clisp.org>
35551
35552         * lib/safe-alloc.h: Use the standard header with GPL copyright.
35553         * lib/safe-alloc.c: Likewise.
35554         Reported by Ian Beckwith <ianb@erislabs.net>.
35555
35556 2009-09-18  Bruno Haible  <bruno@clisp.org>
35557
35558         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
35559         Reported by <erobles@sensacd.com.mx>.
35560
35561 2009-09-17  Eric Blake  <ebb9@byu.net>
35562
35563         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
35564         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
35565         slashes when checking if last component is missing.
35566         * tests/test-canonicalize.c (main): Test this.
35567
35568         canonicalize, canonicalize-lgpl: honor // if distinct from /
35569         * modules/canonicalize (Files): Add double-slash-root.m4.
35570         * modules/canonicalize-lgpl (Files): Likewise.
35571         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
35572         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
35573         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
35574         fallback definition.
35575         (canonicalize_filename_mode): Use it to protect //.
35576         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
35577         (__realpath): Likewise.
35578         * tests/test-canonicalize.c (main): Test this.
35579         * tests/test-canonicalize-lgpl.c (main): Likewise.
35580         * modules/canonicalize-tests (Depends-on): Add same-inode.
35581         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35582
35583         canonicalize-lgpl: fix glibc bug with trailing slash
35584         * m4/canonicalize-lgpl.m4: Move contents...
35585         * m4/canonicalize.m4: ...here.
35586         (gl_CANONICALIZE_LGPL): Factor realpath check...
35587         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
35588         glibc 2.3.5 bug, fixed 2005-04-27.
35589         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
35590         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
35591         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
35592         * modules/canonicalize-lgpl (Files): Manage file rename.
35593         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35594         * modules/stdlib (Makefile.am): Substitute witness.
35595         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
35596         is needed.
35597         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
35598         replacement is required.
35599         * lib/canonicalize.c (canonicalize_file_name): Likewise.
35600         * doc/glibc-functions/canonicalize_file_name.texi
35601         (canonicalize_file_name): Document this.
35602         * doc/posix-functions/realpath.texi (realpath): Likewise.
35603
35604         canonicalize-lgpl: reject non-directory with trailing slash
35605         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
35606         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
35607         catches failures in glibc 2.3.5.
35608         * tests/test-canonicalize.c (main): Likewise.
35609
35610         canonicalize-lgpl: use native realpath if it works
35611         * lib/canonicalize-lgpl.c (realpath): Guard with
35612         FUNC_REALPATH_WORKS.
35613         * lib/stdlib.in.h (realpath): Make declaration optional based on
35614         HAVE_REALPATH.
35615         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
35616         native realpath works.
35617         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
35618         * modules/stdlib (Makefile.am): Substitute witness.
35619
35620         canonicalize, canonicalize-lgpl: use <stdlib.h>
35621         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
35622         (Include): Mention <stdlib.h>.
35623         (configure.ac): Mention functions we provide.
35624         * modules/canonicalize (configure.ac): Likewise.
35625         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
35626         realpath if canonicalize_file_name is missing.
35627         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
35628         * modules/stdlib (Makefile.am): Substitute witnesses.
35629         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
35630         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
35631         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
35632         * NEWS: Document this.
35633         * doc/glibc-functions/canonicalize_file_name.texi
35634         (canonicalize_file_name): Likewise.
35635         * doc/posix-functions/realpath.texi (realpath): Likewise.
35636         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
35637
35638         test-canonicalize: consolidate into single C program
35639         * tests/test-canonicalize.sh: Delete; move setup into...
35640         * tests/test-canonicalize.c (main): ...the program, making it
35641         easier to run in debugger.  Add some tests.
35642         * modules/canonicalize-tests (Files): Remove unused file.
35643         (Depends-on): Add progname.
35644         (configure.ac, Makefile.am): Simplify.
35645
35646         test-canonicalize-lgpl: consolidate into single C program
35647         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
35648         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
35649         easier to run in debugger.  Add some tests.
35650         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
35651         (configure.ac, Makefile.am): Simplify.
35652
35653         canonicalize: avoid resolvepath
35654         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
35655         unnecessary checks.
35656         * lib/canonicalize.c (includes): Simplify.
35657         (canonicalize_file_name): Drop resolvepath implementation.
35658         * modules/canonicalize (Depends-on): Drop filenamecat.
35659
35660         canonicalize: don't lose errno
35661         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
35662         over calls to free.
35663
35664         canonicalize: simplify errno handling
35665         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
35666         assignment.
35667
35668         canonicalize, canonicalize-lgpl: update module dependencies
35669         * modules/canonicalize (Depends-on): Add extensions, lstat,
35670         pathmax, stdlib.
35671         (Files): Drop pathmax.h.
35672         (configure.ac): Adjust macro name.
35673         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
35674         lstat, stdlib, sys_stat.
35675         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
35676         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
35677         extensions.
35678         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
35679         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
35680         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
35681         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
35682         declaration, if available.
35683         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
35684         we can rely on the readlink module.
35685         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
35686         (includes): Use <unistd.h> unconditionally.
35687
35688 2009-09-17  Eric Blake  <ebb9@byu.net>
35689
35690         maint: make Include sections of modules consistent
35691         * modules/alloca: Use only header name; no need to list #include.
35692         * modules/alloca-opt: Likewise.
35693         * modules/arpa_inet: Likewise.
35694         * modules/canon-host: Likewise.
35695         * modules/configmake: Likewise.
35696         * modules/dirent: Likewise.
35697         * modules/eealloc: Likewise.
35698         * modules/environ: Likewise.
35699         * modules/fchdir: Likewise.
35700         * modules/fcntl: Likewise.
35701         * modules/fcntl-h: Likewise.
35702         * modules/gethrxtime: Likewise.
35703         * modules/gettime: Likewise.
35704         * modules/ignore-value: Likewise.
35705         * modules/inet_ntop: Likewise.
35706         * modules/inet_pton: Likewise.
35707         * modules/inttypes: Likewise.
35708         * modules/isnand-nolibm: Likewise.
35709         * modules/isnanf-nolibm: Likewise.
35710         * modules/mbchar: Likewise.
35711         * modules/mbfile: Likewise.
35712         * modules/mbiter: Likewise.
35713         * modules/mbuiter: Likewise.
35714         * modules/netdb: Likewise.
35715         * modules/netinet_in: Likewise.
35716         * modules/nproc: Likewise.
35717         * modules/pagealign_alloc: Likewise.
35718         * modules/poll: Likewise.
35719         * modules/printf-frexp: Likewise.
35720         * modules/pthread: Likewise.
35721         * modules/putenv: Likewise.
35722         * modules/random_r: Likewise.
35723         * modules/relocatable-prog: Likewise.
35724         * modules/search: Likewise.
35725         * modules/select: Likewise.
35726         * modules/selinux-h: Likewise.
35727         * modules/settime: Likewise.
35728         * modules/signal: Likewise.
35729         * modules/size_max: Likewise.
35730         * modules/socklen: Likewise.
35731         * modules/ssize_t: Likewise.
35732         * modules/stdarg: Likewise.
35733         * modules/stdbool: Likewise.
35734         * modules/stddef: Likewise.
35735         * modules/stdint: Likewise.
35736         * modules/stdio: Likewise.
35737         * modules/stdlib: Likewise.
35738         * modules/string: Likewise.
35739         * modules/strings: Likewise.
35740         * modules/sys_file: Likewise.
35741         * modules/sys_ioctl: Likewise.
35742         * modules/sys_select: Likewise.
35743         * modules/sys_socket: Likewise.
35744         * modules/sys_stat: Likewise.
35745         * modules/sys_time: Likewise.
35746         * modules/sys_times: Likewise.
35747         * modules/sys_utsname: Likewise.
35748         * modules/sys_wait: Likewise.
35749         * modules/sysexits: Likewise.
35750         * modules/time: Likewise.
35751         * modules/times: Likewise.
35752         * modules/tmpfile: Likewise.
35753         * modules/trim: Likewise.
35754         * modules/unistd: Likewise.
35755         * modules/wchar: Likewise.
35756         * modules/wctype: Likewise.
35757
35758 2009-09-17  Bruno Haible  <bruno@clisp.org>
35759
35760         Make getdate.y compile on QNX and NetBSD 5 / i386.
35761         * m4/getdate.m4 (gl_GETDATE): Conditionally define
35762         TIME_T_FITS_IN_LONG_INT.
35763         * lib/getdate.y (long_time_t): New type.
35764         (relative_time): Change type of 'seconds' field to long_time_t.
35765         (get_date): Update types of local variables. Check against overflow
35766         during conversion from long_time_t to time_t.
35767         Reported by Matt Kraai <kraai@ftbfs.org>
35768         and Hasso Tepper <hasso@netbsd.org>.
35769
35770 2009-09-17  Bruno Haible  <bruno@clisp.org>
35771
35772         * modules/COPYING: Update copyright years.
35773         * modules/README: Likeiwse.
35774         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
35775         Reported by Ian Beckwith <ianb@erislabs.net>.
35776
35777 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35778
35779         * users.txt: Update references for gnuit package.
35780
35781 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
35782
35783         * m4/getdelim.m4: Fix typo in copyright line.
35784
35785 2009-09-17  Bruno Haible  <bruno@clisp.org>
35786
35787         * lib/atoll.c: Use the standard header with GPL copyright.
35788         * lib/argz.in.h: Likewise.
35789         * lib/glob.c: Likewise.
35790         * lib/glob-libc.h: Likewise.
35791         * lib/random_r.c: Likewise.
35792         * lib/siglist.h: Likewise.
35793         * lib/strsignal.c: Likewise.
35794         Reported by Ian Beckwith <ianb@erislabs.net>.
35795
35796 2009-09-17  Eric Blake  <ebb9@byu.net>
35797
35798         rmdir: ensure correct dependency order
35799         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
35800
35801 2009-09-17  Bruno Haible  <bruno@clisp.org>
35802
35803         Disable assertion that fails on NetBSD 5 / i386.
35804         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
35805         Reported by Sam Steingold <sds@gnu.org>
35806         and Hasso Tepper <hasso@netbsd.org>.
35807
35808 2009-09-16  Eric Blake  <ebb9@byu.net>
35809
35810         unlinkdir: port to mingw
35811         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
35812         on which no one can unlink a directory.
35813
35814         stdlib: sort witness names
35815         * modules/stdlib (Makefile.am): Sort replacements.
35816         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
35817         * lib/stdlib.in.h: Likewise.
35818
35819         parse-duration-tests: avoid link failure
35820         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
35821         LIBINTL.
35822         Reported by Tom G. Christensen.
35823
35824         openat-tests: ensure unlinkat behaves like rmdir
35825         * tests/test-rmdir.c (main): Factor guts...
35826         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
35827         * modules/rmdir-tests (Files): Ship new file.
35828         * modules/openat-tests: New test.
35829         * tests/test-unlinkat.c: Likewise.
35830
35831         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
35832         * modules/rmdir-errno (Status, Notice): Now obsolete.
35833
35834         rmdir: work around cygwin 1.5.x and mingw bugs
35835         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
35836         * lib/rmdir.c (rmdir): Work around it.
35837         * modules/rmdir (Status, Notice): No longer obsolete.
35838         (Files): Add dos.m4.
35839         (Depends-on): Add unistd.
35840         (configure.ac): Set witnesses.
35841         (License): Relax to LGPLv2+.
35842         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
35843         * modules/unistd (Makefile.am): Substitute witnesses.
35844         * lib/unistd.in.h (rmdir): Declare replacement.
35845         * doc/posix-functions/rmdir.texi (rmdir): Document this.
35846         * modules/rmdir-tests: New tests.
35847         * tests/test-rmdir.c: Likewise.
35848
35849 2009-09-15  Eric Blake  <ebb9@byu.net>
35850
35851         fchdir: improve use of replacement functions
35852         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
35853         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
35854         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
35855         REPLACE_CLOSEDIR.
35856         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
35857         * modules/sys_stat (Makefile.am): Substitute correct witness.
35858         * modules/dirent (Makefile.am): Likewise.
35859         * modules/unistd (Makefile.am): Likewise.
35860         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
35861         * lib/unistd.in.h (dup): Likewise.
35862         * lib/sys_stat.in.h (fstat): Likewise.
35863
35864         maint: ignore gnulib-tool temp files
35865         * .gitignore: Ignore files created during gnulib-tool --test.
35866
35867 2009-09-13  Jim Meyering  <meyering@redhat.com>
35868
35869         posixtm: don't reject a time that specify "60" as the number of seconds
35870         * lib/posixtm.c (posixtime): The code to reject invalid dates
35871         would also reject a time specified with the .60 suffix.
35872         But POSIX allows that, in order to accommodate leap seconds.
35873         So don't reject it.
35874         (main): Adjust tests accordingly.
35875         * modules/posixtm (Depends-on): Add stpcpy.
35876
35877 2009-09-11  Jim Meyering  <meyering@redhat.com>
35878
35879         announce-gen: include [$release_type] in emitted Subject:
35880         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
35881         e.g., [stable] in the emitted Subject: line.
35882
35883 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35884
35885         Remove obsolete macros from several modules.
35886         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
35887         obsolete Autoconf macros with their modern counterparts.
35888         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
35889         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
35890         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
35891         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
35892         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
35893         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
35894         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
35895         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
35896         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
35897         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
35898         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
35899         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
35900         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
35901         * m4/sockets.m4 (gl_SOCKETS): Likewise.
35902         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
35903         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
35904         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
35905         * m4/time_r.m4 (gl_TIME_R): Likewise.
35906         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
35907         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
35908         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
35909
35910         Fix copyright header in build-aux scripts.
35911         * build-aux/git-version-gen: Fix copyright header to match GPLv3
35912         recommendation.
35913         * build-aux/ncftpput-ftp: Likewise.
35914         * build-aux/update-copyright: Likewise.
35915
35916 2009-09-09  Eric Blake  <ebb9@byu.net>
35917
35918         test-link: allow Linux choice of errno
35919         * tests/test-link.c (main): Relax test for alternate error.
35920
35921         strndup: fix improper m4 caching
35922         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
35923         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
35924         (gl_PREREQ_STRNDUP): Delete.
35925         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
35926         * modules/string (Makefile.am): Substitute it.
35927         * lib/string.in.h (strndup): Modernize prototype.
35928
35929         getcwd: port to mingw
35930         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
35931         different from the POSIX assumptions made throughout the getcwd
35932         module; fortunately, the mingw getcwd does not need replacement.
35933         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
35934         * modules/getcwd-tests: New test.
35935         * tests/test-getcwd.c: Likewise.
35936
35937         link: fix platform bugs
35938         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
35939         * lib/link.c (link): Work around them.  Fix related mingw bug.
35940         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
35941         * modules/unistd (Makefile.am): Substitute it.
35942         * lib/unistd.in.h (link): Declare replacement.
35943         * doc/posix-functions/link.texi (link): Document this.
35944         * modules/link (Depends-on): Add strdup-posix, sys_stat.
35945
35946         test-link: consolidate into single C program, test more cases
35947         * tests/test-link.sh: Delete.
35948         * tests/test-link.c: Test more error conditions.  Exposes bugs on
35949         at least Cygwin and Solaris.
35950         * modules/link-tests (Files): Remove unused file.
35951         (Depends-on): Add errno, sys_stat.
35952         (Makefile.am): Simplify.
35953
35954 2009-09-08  Bruno Haible  <bruno@clisp.org>
35955
35956         Work around towlower, towupper bug on mingw.
35957         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
35958         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
35959         * doc/posix-functions/towlower.texi: Mention the mingw bug.
35960         * doc/posix-functions/towupper.texi: Likewise.
35961         Reported by Eric Blake.
35962
35963 2009-09-08  Jim Meyering  <meyering@redhat.com>
35964
35965         build: don't try to run autoheader if we don't use it
35966         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
35967         is not used in configure.ac.
35968
35969 2009-09-08  Eric Blake  <ebb9@byu.net>
35970
35971         euidaccess: fix compilation error
35972         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
35973
35974         rawmemchr: relax license
35975         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
35976         okay.
35977         Reported by Jim Meyering.
35978
35979         mkfifoat: new module
35980         * modules/mkfifoat: New file.
35981         * lib/mkfifoat.c: Likewise.
35982         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
35983         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35984         * modules/sys_stat (Makefile.am): Use them.
35985         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
35986         * MODULES.html.sh (File system functions): Mention module.
35987         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35988         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35989         * modules/mkfifoat-tests: New test.
35990         * tests/test-mkfifoat.c: Likewise.
35991
35992         strchrnul: relax license
35993         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
35994         okay.
35995         Reported by Jim Meyering.
35996
35997 2009-09-08  Eric Blake  <ebb9@byu.net>
35998
35999         fstatat: fix compilation on Solaris
36000         * lib/fstatat.c (includes): Add fcntl.h.
36001         Reported by Pádraig Brady.
36002
36003 2009-09-07  Eric Blake  <ebb9@byu.net>
36004
36005         rename: modernize replacement
36006         * modules/rename (Depends-on): Add stdio.
36007         (configure.ac): Declare witness.
36008         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
36009         stdio take care of replacement.
36010         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
36011         * modules/stdio (Makefile.am): Substitute them.
36012         * lib/stdio.in.h (rename): Declare replacement.
36013         * lib/rename.c (includes): Allow cross-compilation to non-windows
36014         machines.
36015         * doc/posix-functions/rename.texi (rename): Improve
36016         documentation.
36017
36018         stdio: sort witness names
36019         * modules/stdio (Makefile.am): Sort replacements.
36020         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36021         * lib/stdio.in.h: Likewise.
36022
36023         getcwd: minor cleanups
36024         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
36025         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
36026
36027         openat: provide more convenience names
36028         * modules/faccessat (configure.ac): Add C witness.
36029         * lib/unistd.in.h (readlinkat): Fix typo.
36030         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
36031         convenience wrappers.
36032         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
36033         wrappers in syntax checks.
36034
36035 2009-09-06  Eric Blake  <ebb9@byu.net>
36036
36037         doc: fix comments in recent patches
36038         * lib/faccessat.c: Mention correct function.
36039         * lib/fchmodat.c: Likewise.
36040         * lib/fchownat.c: Likewise.
36041         * lib/symlinkat.c: Likewise.
36042         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
36043         constants.
36044
36045         faccessat, symlinkat: continue cleanup of previous patch
36046         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
36047         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
36048         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
36049         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
36050         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
36051         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
36052         set.
36053
36054 2009-09-06  Bruno Haible  <bruno@clisp.org>
36055
36056         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
36057         (fstatat): Declare if GNULIB_FSTATAT is set.
36058         (mkdirat): Declare if GNULIB_MKDIRAT is set.
36059         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
36060         (unlinkat): Declare if GNULIB_UNLINKAT is set.
36061         * modules/fcntl-h (Files): Remove m4/openat.m4.
36062         * modules/sys_stat (Files): Remove m4/openat.m4.
36063         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
36064         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
36065         * modules/unistd (Files): Remove m4/openat.m4.
36066         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
36067         GNULIB_OPENAT.
36068         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
36069         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
36070         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
36071         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
36072         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
36073         gl_OPENAT_DEFAULTS.
36074         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
36075         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
36076         Don't require gl_OPENAT_DEFAULTS.
36077         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
36078         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
36079         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
36080         (gl_OPENAT_DEFAULTS): Remove macro.
36081
36082 2009-09-06  Bruno Haible  <bruno@clisp.org>
36083
36084         * modules/openat (configure.ac): Remove unneeded witness.
36085
36086 2009-09-06  Bruno Haible  <bruno@clisp.org>
36087
36088         Set errno to ENOSYS when a function is entirely unsupported.
36089         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
36090         EOPNOTSUPP.
36091         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36092         * modules/chown (Depends-on): Remove errno.
36093
36094 2009-09-06  Bruno Haible  <bruno@clisp.org>
36095
36096         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
36097
36098 2009-09-06  Bruno Haible  <bruno@clisp.org>
36099
36100         * lib/sys_stat.in.h: Fix preprocessor command indentation.
36101
36102 2009-09-06  Ben Pfaff  <blp@gnu.org>
36103             Bruno Haible  <bruno@clisp.org>
36104
36105         Work around a glibc bug in strtok_r.
36106         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
36107         Undefine if UNDEFINE_STRTOK_R is set.
36108         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
36109         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36110         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
36111         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
36112         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
36113         UNDEFINE_STRTOK_R.
36114         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
36115
36116 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
36117
36118         exclude: minor fix
36119         * lib/exclude.c: Include wctype.h
36120
36121 2009-09-06  Akim Demaille  <demaille@gostai.com>
36122
36123         bootstrap: improve error message
36124         * build-aux/bootstrap (find_tool): Upon failure, report the list
36125         of candidates.
36126         Honor the initial value of the envvar.
36127
36128 2009-09-05  Eric Blake  <ebb9@byu.net>
36129
36130         symlinkat: new module
36131         * modules/symlinkat: New file.
36132         * lib/symlinkat.c: Likewise.
36133         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
36134         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36135         * modules/unistd (Makefile.am): Use them.
36136         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
36137         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
36138         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
36139         * MODULES.html.sh (File system functions): Mention module.
36140         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36141         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36142         * modules/symlinkat-tests: New test.
36143         * tests/test-symlinkat.c: Likewise.
36144
36145         test-openat-safer: add more checks
36146         * tests/test-openat-safer.c (main): Check more code paths.
36147
36148 2009-09-05  Jim Meyering  <meyering@redhat.com>
36149
36150         syntax-check: detect unnecessary inclusion of openat.h
36151         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
36152
36153 2009-09-05  Bruno Haible  <bruno@clisp.org>
36154
36155         Support towlower, towupper.
36156         * doc/posix-functions/towlower.texi: Mention module wctype.
36157         * doc/posix-functions/towupper.texi: Likewise.
36158         * lib/wctype.in.h (towlower, towupper): New functions.
36159         * tests/test-wctype.c: Include stdio.h, stdlib.h.
36160         (ASSERT): New macro.
36161         (e): New variable.
36162         (main): Test also towlower, towupper. Test WEOF argument.
36163         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36164
36165 2009-09-05  Bruno Haible  <bruno@clisp.org>
36166
36167         Fix conversion behaviour when the input is invalid.
36168         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
36169         mark occurring in first pass of indirect conversion.
36170         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
36171         input.
36172         Found by clang's static analyzer.
36173
36174 2009-09-05  Bruno Haible  <bruno@clisp.org>
36175
36176         * tests/test-striconveh.c (main): Test indirect conversion on platforms
36177         where direct conversion is possible.
36178
36179 2009-09-04  Eric Blake  <ebb9@byu.net>
36180
36181         openat: fail with ENOENT on empty name
36182         * lib/openat-proc.c (openat_proc_name): Special-case the empty
36183         buffer.
36184
36185         link-follow: fix logic bug in prior patch
36186         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
36187         reversed sense of yes and no in prior patch.  Avoid confusing
36188         compilation failure with desired semantics.
36189
36190         link-follow: accomodate mingw and cross-compilation
36191         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
36192         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
36193         cross-compilation results to -1, to make linkat easier to
36194         implement when cross-compiling.  Trivially support mingw.
36195         * modules/link-follow (configure.ac): Call new name.
36196         * NEWS: Mention this.
36197
36198 2009-09-03  Eric Blake  <ebb9@byu.net>
36199
36200         faccessat: compile replacement
36201         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
36202         needed.
36203
36204         fts: fix compilation error
36205         * lib/fts.c (includes): Re-add "openat.h", for
36206         openat_needs_fchdir.
36207
36208         faccessat: new module
36209         * modules/faccessat: New file.
36210         * lib/faccessat.c: Likewise.
36211         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
36212         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36213         * modules/unistd (Makefile.am): Use it.
36214         * lib/unistd.in.h (faccessat): Declare it.
36215         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
36216         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
36217         * MODULES.html.sh (File system functions): Mention it.
36218         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
36219         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
36220
36221         euidaccess: prefer POSIX over non-standard implementation
36222         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
36223         * lib/euidaccess.c (euidaccess): Use it if available.
36224
36225         openat: make template easier to use
36226         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
36227         AT_FUNC_F2 to be undefined.
36228         (VALIDATE_FLAG): New macro; use it to reject bad flags.
36229         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
36230         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
36231         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
36232         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
36233         Likewise.
36234         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
36235         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
36236         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
36237         Likewise.
36238
36239         openat: declare in POSIX headers
36240         * NEWS: Mention this.
36241         * modules/openat (configure.ac): Declare witnesses.
36242         (Depends-on): Add fcntl-h, sys_stat, unistd.
36243         (Include): Mention correct headers.
36244         * modules/fcntl-h (Depends-on): Add link-warning.
36245         (Files): Add openat.m4.
36246         (Makefile.am): Substitute witnesses.
36247         * modules/sys_stat (Files, Makefile.am): Likewise.
36248         * modules/unistd (Files, Makefile.am): Likewise.
36249         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
36250         (gl_OPENAT_DEFAULTS): New macro.
36251         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
36252         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
36253         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
36254         (SYS_STAT_H): Remove unused variable.
36255         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
36256         * lib/fcntl--.h (includes): Remove unneeded header.
36257         * lib/openat-safer.c (includes): Likewise.
36258         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
36259         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
36260         appropriate headers.
36261         (__OPENAT_PREFIX): Delete.
36262         * lib/fcntl.in.h (openat): Provide declaration.
36263         (AT_FDCWD): Fix Solaris bug.
36264         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
36265         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
36266         * lib/fchmodat.c (includes):  Adjust to find declaration.
36267         * lib/fchownat.c (includes): Likewise.
36268         * lib/mkdirat.c (includes): Likewise.
36269         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
36270         still visible.
36271
36272 2009-09-02  Eric Blake  <ebb9@byu.net>
36273
36274         errno: use consistently
36275         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
36276         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
36277         * lib/canonicalize.c (ELOOP): Likewise.
36278         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
36279         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
36280         * lib/lchown.c (EOPNOTSUPP): Likewise.
36281         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
36282         * lib/savewd.c (ESTALE): Likewise.
36283         * lib/settime.c (ENOSYS): Likewise.
36284         * lib/utimens.c (ENOSYS): Likewise.
36285         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
36286         * lib/chdir-safer.c (ELOOP): Likewise.
36287         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
36288         * modules/c-stack (Depends-on): Add errno.
36289         * modules/canonicalize (Depends-on): Likewise.
36290         * modules/chdir-safer (Depends-on): Likewise.
36291         * modules/fdopendir (Depends-on): Likewise.
36292         * modules/inet_ntop (Depends-on): Likewise.
36293         * modules/inet_pton (Depends-on): Likewise.
36294         * modules/lchown (Depends-on): Likewise.
36295         * modules/openat (Depends-on): Likewise.
36296         * modules/savewd (Depends-on): Likewise.
36297         * modules/settime (Depends-on): Likewise.
36298         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
36299
36300         fts: avoid leaking fds
36301         * modules/fts (Depends-on): Add cloexec.
36302         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
36303         flag.
36304
36305         fts: make directory fds more robust
36306         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
36307         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
36308
36309         backupfile, chdir-long, fts, savedir: make safer
36310         * lib/backupfile.c (includes): Use "dirent--.h", since
36311         numbered_backup can write to stderr during readdir.
36312         * lib/savedir.c (includes): Likewise.
36313         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
36314         emulation can write to stderr on failure.
36315         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
36316         * lib/getcwd.c: Document why opendir_safer is unused.
36317         * lib/glob.c: Likewise.
36318         * lib/scandir.c: Likewise.
36319         * lib/openat-proc.c: Likewise, for open_safer.
36320         * modules/backupfile (Depends-on): Add dirent-safer.
36321         * modules/savedir (Depends-on): Likewise.
36322         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
36323         * modules/chdir-long (Depends-on): Add openat-safer.
36324
36325         openat-safer: new module
36326         * modules/openat-safer: New file.
36327         * lib/openat-safer.c: Likewise.
36328         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
36329         * lib/fcntl-safer.h (openat_safer): Declare.
36330         * lib/fcntl--.h (openat): Override.
36331         * MODULES.html.sh (File descriptor based I/O): Mention it.
36332         * lib/openat.h: Add double-inclusion guards.
36333         * lib/openat.c (includes): Only include "fcntl-safer.h", not
36334         "fcntl--.h", so we can implement openat.
36335         * modules/openat-safer-tests: New test.
36336         * tests/test-openat-safer.c: New file.
36337
36338         dirent-safer: new module
36339         * modules/dirent-safer: New file.
36340         * lib/dirent--.h: Likewise.
36341         * lib/dirent-safer.h: Likewise.
36342         * lib/opendir-safer.c: Likewise.
36343         * m4/dirent-safer.m4: Likewise.
36344         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
36345         * modules/dirent-safer-tests: New test.
36346         * tests/test-dirent-safer.c: New file.
36347         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
36348
36349         fdopendir: optimize on mingw
36350         * lib/unistd.in.h (_gl_directory_name): New prototype.
36351         * lib/fchdir.c (_gl_directory_name): Implement it.
36352         (fchdir): Use it to simplify implementation.
36353         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
36354         fchdir, when available, to avoid calling [f]chdir().
36355
36356         fdopendir: split into its own module
36357         * lib/openat.c (fdopendir): Move...
36358         * lib/fdopendir.c: ...into new file.
36359         * modules/fdopendir: New module.
36360         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
36361         * modules/openat (Depends-on): Add fdopendir.
36362         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
36363         fdopendir here.
36364         * modules/savedir (Depends-on): Only need fdopendir, not full
36365         openat.
36366         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
36367         * lib/openat.h (fdopendir): Drop prototype.
36368         * lib/dirent.in.h (fdopendir): Provide prototype.
36369         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
36370         * modules/dirent (Makefile.am): Substitute them.
36371         * MODULES.html.sh (File system functions): Mention it.
36372         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
36373         * modules/fdopendir-tests: New file.
36374         * tests/test-fdopendir.c: Likewise.
36375
36376         fchdir: use more consistent macro convention
36377         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
36378         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
36379         REPLACE_FCHDIR, rather than relying on config.h macros.
36380         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
36381         inside a single make-time REPLACE_FCHDIR block, rather than using
36382         the config.h FCHDIR_REPLACEMENT.
36383         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
36384         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
36385         Manage fstat replacement.
36386         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
36387         REPLACE_FCHDIR.
36388         * modules/sys_stat (Files): Add m4/unistd_h.m4.
36389         (Makefile.am): Substitute REPLACE_FCHDIR.
36390         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
36391         FCHDIR_REPLACEMENT.
36392         * lib/dup-safer.c (dup_safer): Likewise.
36393         * lib/dup2.c (rpl_dup2): Likewise.
36394         * lib/dup3.c (rpl_dup3): Likewise.
36395         * lib/open.c (rpl_open): Likewise.
36396
36397         fchdir: simplify error handling, and support dup3
36398         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
36399         stdbool, malloc-posix, realloc-posix.
36400         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
36401         (ensure_dirs_slot): Return false on allocation failure.
36402         (rpl_dup2): Delete.
36403         (_gl_register_dup): New function.
36404         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
36405         (_gl_register_fd): Close fd on allocation failure.
36406         * lib/fcntl.in.h (_gl_register_fd): Update signature.
36407         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
36408         prototype.
36409         (rpl_dup2_fchdir): Delete prototype.
36410         * lib/open.c (open): Update caller.
36411         * lib/dup2.c (dup2): Track fchdir metadata.
36412         * lib/dup3.c (dup3): Likewise.
36413         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
36414         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
36415
36416 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36417
36418         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
36419         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
36420         don't pass arguments to AC_OUTPUT.
36421
36422 2009-09-02  Bruno Haible  <bruno@clisp.org>
36423
36424         * modules/mkdtemp (License): Relicense under LGPLv2+.
36425         Reported by Paolo Bonzini.
36426
36427 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36428
36429         Replace uses of obsolete autoconf macros in Jim's modules.
36430         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
36431         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
36432         can evoke a warning from autoconf when run with -Wobsolete
36433         enabled.  They were declared obsolete for good reasons (see
36434         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
36435         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
36436         should not continue using the deprecated macros.
36437         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
36438         obsolete Autoconf macros with modern counterparts.
36439         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
36440         * m4/dos.m4 (gl_AC_DOS): Likewise.
36441         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
36442         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
36443         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
36444         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
36445         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
36446         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
36447         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
36448         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
36449         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
36450         Likewise.
36451         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
36452         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
36453         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
36454         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
36455         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
36456         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
36457
36458 2009-09-01  Eric Blake  <ebb9@byu.net>
36459
36460         fchdir: fix off-by-one bug in previous patch
36461         * lib/fchdir.c (rpl_fstat): Use correct bounds.
36462         (_gl_unregister_fd): Delete useless if.
36463
36464 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
36465
36466         maint.mk: sort the list of syntax-check rules
36467         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
36468         easier to get a sense of progress when the rules are run sequentially
36469         and take a long time.
36470
36471 2009-09-01  Simon Josefsson  <simon@josefsson.org>
36472
36473         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
36474         * modules/netinet_in: Likewise.
36475         * modules/sys_file: Likewise.
36476         * modules/sys_ioctl: Likewise.
36477         * modules/sys_select: Likewise.
36478         * modules/sys_socket: Likewise.
36479         * modules/sys_stat: Likewise.
36480         * modules/sys_time: Likewise.
36481         * modules/sys_times: Likewise.
36482         * modules/sys_utsname: Likewise.
36483         * modules/sys_wait: Likewise.
36484
36485 2009-09-01  Jim Meyering  <meyering@redhat.com>
36486
36487         fts: help ensure that return values are not ignored
36488         * lib/fts_.h (__GNUC_PREREQ): Define.
36489         (__attribute_warn_unused_result__): Define.
36490         (fts_children, fts_close, fts_open, fts_read): Declare with
36491         __attribute_warn_unused_result__.
36492
36493         fts: fts_close now fails also when closing a dir file descriptor fails
36494         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
36495         and propagate to caller, along with errno.
36496
36497         announce-gen: correct formatting in --help output
36498         * build-aux/announce-gen (usage): Move the one-line description in
36499         --help output "up", to where it belongs, just after Usage:.
36500
36501 2009-08-31  Eric Blake  <ebb9@byu.net>
36502
36503         fchdir: port to mingw
36504         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
36505         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
36506         opened, then use a substitute.
36507         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
36508         replacement.
36509         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
36510         (_gl_register_fd): No need to check stat if open already filters
36511         all directories.
36512         (fchdir): Fix error condition to match POSIX.
36513         * modules/fchdir (Depends-on): Add sys_stat.
36514         * doc/posix-functions/open.texi (open): Document the limitation.
36515         * modules/fchdir-tests: New file.
36516         * tests/test-fchdir.c: Likewise.
36517
36518         canonicalize: allow cross-testing from cygwin to mingw
36519         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
36520         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
36521         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
36522         Likewise.
36523         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
36524         target does not support symlinks.
36525         * tests/test-canonicalize-lgpl.sh: Likewise.
36526
36527         chown: avoid compilation warning on mingw
36528         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
36529         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
36530         mingw.
36531         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36532         * modules/chown (Depends-on): Add errno.
36533
36534 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
36535
36536         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
36537         command.
36538
36539 2009-08-31  Jim Meyering  <meyering@redhat.com>
36540
36541         canonicalize: remove useless initialization
36542         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
36543         initialization of local, "end".
36544
36545 2009-08-30  Bruno Haible  <bruno@clisp.org>
36546
36547         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
36548         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
36549         ENOSYS.
36550
36551 2009-08-30  Bruno Haible  <bruno@clisp.org>
36552
36553         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
36554         /usr/xpg4/bin/tr when it exists.
36555         * tests/test-pipe-filter-gi1.sh: Likewise.
36556
36557 2009-08-30  Bruno Haible  <bruno@clisp.org>
36558
36559         Work around deficient /usr/bin/id program on Solaris.
36560         * tests/test-file-has-acl.sh (ID): New variable.
36561         * tests/test-set-mode-acl.sh (ID): Likewise.
36562         * tests/test-copy-acl.sh (ID): Likewise.
36563         * tests/test-copy-file.sh (ID): Likewise.
36564
36565 2009-08-30  Bruno Haible  <bruno@clisp.org>
36566
36567         New module 'xstriconveh'.
36568         * lib/xstriconveh.h: New file.
36569         * lib/xstriconveh.c: New file.
36570         * modules/xstriconveh: New file.
36571
36572 2009-08-30  Bruno Haible  <bruno@clisp.org>
36573
36574         Make it easier to use mem_cd_iconveh.
36575         * lib/striconveh.h (iconveh_t): New type.
36576         (iconveh_open, iconveh_close): New declarations.
36577         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36578         with a single 'const iconveh_t *' argument.
36579         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
36580         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
36581         with a single 'const iconveh_t *' argument.
36582         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
36583         * tests/test-striconveh.c (main): Update.
36584         * NEWS: Mention the change.
36585
36586 2009-08-30  Bruno Haible  <bruno@clisp.org>
36587
36588         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
36589         problem.
36590
36591 2009-08-30  Bruno Haible  <bruno@clisp.org>
36592
36593         Work around iconv_open problem on Solaris.
36594         * lib/iconv_open-solaris.gperf: New file.
36595         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
36596         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
36597         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
36598         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
36599         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
36600         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
36601
36602 2009-08-29  Jim Meyering  <meyering@redhat.com>
36603
36604         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
36605         * top/maint.mk (cvs-check): Remove target; it was just an alias
36606         to the better-named vc-diff-check.
36607         (maintainer-distcheck): Remove rule.  It was used only from
36608         the (alpha/beta/major) target, and all of its commands but one
36609         were coreutils-specific.
36610         (vc-dist): Remove rule.
36611         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
36612         Run vc-diff-check, not vc-dist.
36613         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
36614
36615 2009-08-27  Bruno Haible  <bruno@clisp.org>
36616
36617         * tests/test-bitrotate.c (main): Remove test that uses a shift count
36618         of 0.
36619
36620 2009-08-27  Bruno Haible  <bruno@clisp.org>
36621
36622         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
36623         compilers.
36624         * doc/func.texi: Document the SunPRO C bug.
36625
36626 2009-08-27  Bruno Haible  <bruno@clisp.org>
36627
36628         Fix link error on Solaris.
36629         * tests/test-parse-duration.c (xstrdup): Remove function.
36630
36631 2009-08-26  Pádraig Brady  <P@draigbrady.com>
36632
36633         ignore-value: handle pointer types, too
36634         * lib/ignore-value.h (__attribute__): Remove definition.
36635         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
36636         of a more concise and more-often effective "(void) i" statement.
36637         (ignore_ptr): New function to suppress warnings from functions that
36638         return pointers, and to make it explicit that one function doesn't
36639         handle all cases.
36640
36641 2009-08-25  Bruno Haible  <bruno@clisp.org>
36642
36643         dup2: work around a Linux bug.
36644         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
36645         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
36646         * doc/posix-functions/dup2.texi: Mention the Linux bug.
36647         Reported by Simon Josefsson.
36648
36649 2009-08-25  Jim Meyering  <meyering@redhat.com>
36650
36651         libguestfs uses gnulib
36652         * users.txt: Add libguestfs.
36653
36654 2009-08-24  Eric Blake  <ebb9@byu.net>
36655
36656         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
36657         * lib/pipe2.c (includes): Add binary-io.h.
36658         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
36659
36660 2009-08-24  Bruno Haible  <bruno@clisp.org>
36661
36662         Tolerate declared but missing accept4 syscall.
36663         * lib/accept4.c (accept4): Invoke original accept4 function first, if
36664         available.
36665         * lib/sys_socket.in.h (accept4): If the function is already present,
36666         override it.
36667         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
36668         * modules/accept4 (Makefile.am): Compile accept4.c always.
36669         Reported by Paolo Bonzini and Eric Blake.
36670
36671 2009-08-23  Bruno Haible  <bruno@clisp.org>
36672
36673         New module 'accept4'.
36674         * lib/sys_socket.in.h (accept4): New declaration.
36675         * lib/accept4.c: New file.
36676         * m4/accept4.m4: New file.
36677         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36678         GNULIB_ACCEPT4, HAVE_ACCEPT4.
36679         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
36680         HAVE_ACCEPT4.
36681         * modules/accept4: New file.
36682         * doc/glibc-functions/accept4.texi: Mention the new module.
36683
36684 2009-08-24  Jim Meyering  <meyering@redhat.com>
36685
36686         progname: also set global program_invocation_name, when possible
36687         Before this change, a libtool-enabled program that calls glibc's
36688         error function would report the program name as
36689         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
36690         * modules/progname (configure.ac): Check for a declaration of
36691         program_invocation_name.
36692         * lib/progname.c:  Include <errno.h>.
36693         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
36694         Set program_invocation_name.
36695
36696 2009-08-23  Bruno Haible  <bruno@clisp.org>
36697
36698         * lib/dup3.c: Include <string.h>.
36699
36700 2009-08-23  Bruno Haible  <bruno@clisp.org>
36701
36702         * lib/dup3.c (dup3): Test only once whether the system actually exists.
36703         * lib/pipe2.c (pipe2): Likewise.
36704         Suggested by Eric Blake.
36705
36706 2009-08-23  Bruno Haible  <bruno@clisp.org>
36707
36708         Tolerate declared but missing dup3 syscall.
36709         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
36710         * lib/unistd.in.h (dup3): If the function is already present,
36711         override it.
36712         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
36713         * modules/dup3 (Makefile.am): Compile dup3.c always.
36714         Reported by Paolo Bonzini.
36715
36716 2009-08-23  Bruno Haible  <bruno@clisp.org>
36717
36718         Tolerate declared but missing pipe2 syscall.
36719         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
36720         available.
36721         * lib/unistd.in.h (pipe2): If the function is already present,
36722         override it.
36723         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
36724         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
36725         Reported by Paolo Bonzini.
36726
36727 2009-08-23  Bruno Haible  <bruno@clisp.org>
36728
36729         * lib/pipe2.c (pipe2): Move #ifs inside function.
36730
36731 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36732
36733         quotearg: document limitations of quote_these_too
36734         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
36735         those limitations are created.
36736         * lib/quotearg.h (set_char_quoting): Document that digits and
36737         letters that are special after backslash are not permitted.
36738         (quotearg_char): Cross-reference set_char_quoting documentation.
36739
36740 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
36741
36742         quotearg: implement custom_quoting_style
36743         * lib/quotearg.c: (struct quoting_options): Add left_quote and
36744         right_quote fields.
36745         (set_custom_quoting): New public function.
36746         (quotearg_buffer_restyled): Add left_quote and right_quote
36747         arguments, handle them very much like locale quoting, and update
36748         all uses.
36749         (quotearg_n_custom): New public function.
36750         (quotearg_n_custom_mem): New public function.
36751         (quotearg_custom): New public function.
36752         (quotearg_custom_mem): New public function.
36753         * lib/quotearg.h: Prototype and document new public functions.
36754         (enum quoting_style): For escape_quoting_style and
36755         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
36756         ignored even though they're otherwise like c_quoting_style.
36757         Add custom_quoting_style member and document with comparison to
36758         clocale_quoting_style.
36759         * tests/test-quotearg.c (custom_quotes): New array.
36760         (custom_results): New array.
36761         (main): Extend to test custom quoting.
36762
36763 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36764
36765         quotearg: fix right quote escaping when it's in quote_these_too
36766         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
36767         quote, be sure to prepend only one backslash.
36768         * tests/test-quotearg.c (use_quote_double_quotes): New function.
36769         (main): Test it.
36770
36771 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
36772
36773         quotearg-tests: test escaping of embedded locale quotes
36774         * tests/test-quotearg.c (struct result_strings): Add member for
36775         new input.
36776         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
36777         (inputs): Add new input.
36778         (results_g): Add expected results.
36779         (flag_results): Likewise.
36780         (locale_results): Likewise.
36781         (compare_strings): Check those.
36782
36783 2009-08-23  Bruno Haible  <bruno@clisp.org>
36784
36785         Tests for module 'dup3'.
36786         * modules/dup3-tests: New file.
36787         * tests/test-dup3.c: New file.
36788
36789         New module 'dup3'.
36790         * lib/unistd.in.h (dup3): New declaration.
36791         * lib/dup3.c: New file.
36792         * m4/dup3.m4: New file.
36793         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
36794         HAVE_DUP3.
36795         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
36796         * modules/dup3: New file.
36797         * doc/glibc-functions/dup3.texi: Mention the new module.
36798
36799 2009-08-23  Bruno Haible  <bruno@clisp.org>
36800
36801         Tweak the dup2 test.
36802         * tests/test-dup2.c (main): Create the test file empty. Verify that an
36803         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
36804         the test file is still empty. Fix argument order of lseek.
36805
36806 2009-08-23  Bruno Haible  <bruno@clisp.org>
36807
36808         Avoid test link errors when the modules getopt-gnu, gettext are used.
36809         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
36810         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36811
36812 2009-08-23  Bruno Haible  <bruno@clisp.org>
36813
36814         Fix getdtablesize() on mingw.
36815         * lib/getdtablesize.c (getdtablesize): Implement differently.
36816         * lib/unistd.in.h (getdtablesize): Improve comment.
36817
36818 2009-08-23  Bruno Haible  <bruno@clisp.org>
36819
36820         New module 'mkostemp'.
36821         Based on Ulrich Drepper's 2007-08-10 change in glibc.
36822         * lib/stdlib.in.h (mksotemp): New declaration.
36823         * lib/mkostemp.c: New file, from glibc with modifications.
36824         * lib/tempname.h (GT_FILE): Remove outdated comment.
36825         (gen_tempname): Add flags argument.
36826         * lib/tempname.c (__GT_BIGFILE): Remove macro.
36827         (__GT_FILE): Map to 1.
36828         (small_open, large_open): Remove macros.
36829         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
36830         * lib/mkstemp.c (mkstemp): Update.
36831         * lib/mkdtemp.c (mkdtemp): Likewise.
36832         * m4/mkostemp.m4: New file.
36833         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
36834         HAVE_MKOSTEMP.
36835         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
36836         HAVE_MKOSTEMP.
36837         * modules/mkostemp: New file, based on modules/mkstemp.
36838         * doc/glibc-functions/mkostemp.texi: Mention the new module.
36839         * NEWS: Mention the change.
36840
36841 2009-08-23  Bruno Haible  <bruno@clisp.org>
36842
36843         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
36844         Reported by Eric Blake.
36845
36846 2009-08-23  Bruno Haible  <bruno@clisp.org>
36847
36848         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
36849         Reported by Eric Blake.
36850
36851 2009-08-23  Bruno Haible  <bruno@clisp.org>
36852
36853         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
36854         * modules/pipe2 (Depends-on): Likewise.
36855
36856 2009-08-23  Eric Blake  <ebb9@byu.net>
36857
36858         fcntl-h: add O_TTY_INIT support
36859         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
36860         * tests/test-fcntl-h.c (o): Test it.
36861         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36862
36863         fcntl-h: rename from fcntl, in preparation for fcntl(2)
36864         * modules/fcntl: Move <fcntl.h> header replacement...
36865         * modules/fcntl-h: ...to new name, so as not to collide with
36866         like-named function.
36867         * tests/test-fcntl.c: Rename...
36868         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
36869         * modules/fcntl-tests: Rename...
36870         * modules/fcntl-h-tests: ...to this.  Update test file name.
36871         * modules/chdir-long (Depends-on): Update clients.
36872         * modules/chdir-safer (Depends-on): Likewise.
36873         * modules/fcntl-safer (Depends-on): Likewise.
36874         * modules/fts (Depends-on): Likewise.
36875         * modules/mkancesdirs (Depends-on): Likewise.
36876         * modules/mkdir-p (Depends-on): Likewise.
36877         * modules/open (Depends-on): Likewise.
36878         * modules/savewd (Depends-on): Likewise.
36879         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
36880         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36881
36882 2009-08-22  Bruno Haible  <bruno@clisp.org>
36883
36884         * modules/binary-io (License): Relicense under LGPL.
36885         * modules/pipe2 (License): Likewise.
36886
36887 2009-08-22  Bruno Haible  <bruno@clisp.org>
36888
36889         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
36890         return value.
36891         * lib/pipe-filter-gi.c (filter_init): Likewise.
36892         Reported by Eric Blake.
36893
36894 2009-08-22  Bruno Haible  <bruno@clisp.org>
36895
36896         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
36897         * modules/pipe (Depends-on): Add pipe2.
36898
36899 2009-08-22  Bruno Haible  <bruno@clisp.org>
36900
36901         Tests for module 'pipe2'.
36902         * modules/pipe2-tests: New file.
36903         * tests/test-pipe2.c: New file.
36904
36905         New module 'pipe2'.
36906         * lib/unistd.in.h (pipe2): New declaration.
36907         * lib/pipe2.c: New file.
36908         * m4/pipe2.m4: New file.
36909         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
36910         HAVE_PIPE2.
36911         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
36912         * modules/pipe2: New file.
36913         * doc/glibc-functions/pipe2.texi: Mention the new module.
36914
36915 2009-08-22  Bruno Haible  <bruno@clisp.org>
36916
36917         Reference some new glibc functions.
36918         * doc/glibc-functions/accept4.texi: New file.
36919         * doc/glibc-functions/dup3.texi: New file.
36920         * doc/glibc-functions/mkostemp.texi: New file.
36921         * doc/glibc-functions/pipe2.texi: New file.
36922         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
36923         (Glibc sys/socket.h): Refer to accept4.
36924         (Glibc unistd.h): Refer to dup3, pipe2.
36925         Reported by Eric Blake.
36926
36927 2009-08-22  Jim Meyering  <meyering@redhat.com>
36928             Bruno Haible  <bruno@clisp.org>
36929
36930         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
36931         This makes it so packages using automake-1.11's silent-rules option
36932         can print e.g., a single "GEN    configmake.h" line, rather than
36933         the 30+ statements that perform the job.  If you want to see the
36934         actual commands, you can still run "make V=1".
36935         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
36936         so that make output is abbreviated when those variables are defined
36937         appropriately.
36938         * modules/argz: Likewise.
36939         * modules/arpa_inet: Likewise.
36940         * modules/byteswap: Likewise.
36941         * modules/configmake: Likewise.
36942         * modules/dirent: Likewise.
36943         * modules/errno: Likewise.
36944         * modules/fcntl: Likewise.
36945         * modules/float: Likewise.
36946         * modules/fnmatch: Likewise.
36947         * modules/getopt-posix: Likewise.
36948         * modules/glob: Likewise.
36949         * modules/iconv_open: Likewise.
36950         * modules/inttypes: Likewise.
36951         * modules/localcharset: Likewise.
36952         * modules/locale: Likewise.
36953         * modules/math: Likewise.
36954         * modules/netdb: Likewise.
36955         * modules/netinet_in: Likewise.
36956         * modules/poll: Likewise.
36957         * modules/posix_spawnp-tests: Likewise.
36958         * modules/sched: Likewise.
36959         * modules/search: Likewise.
36960         * modules/selinux-h: Likewise.
36961         * modules/signal: Likewise.
36962         * modules/spawn: Likewise.
36963         * modules/stdarg: Likewise.
36964         * modules/stdbool: Likewise.
36965         * modules/stddef: Likewise.
36966         * modules/stdint: Likewise.
36967         * modules/stdio: Likewise.
36968         * modules/stdlib: Likewise.
36969         * modules/string: Likewise.
36970         * modules/strings: Likewise.
36971         * modules/sys_file: Likewise.
36972         * modules/sys_ioctl: Likewise.
36973         * modules/sys_select: Likewise.
36974         * modules/sys_socket: Likewise.
36975         * modules/sys_stat: Likewise.
36976         * modules/sys_time: Likewise.
36977         * modules/sys_times: Likewise.
36978         * modules/sys_utsname: Likewise.
36979         * modules/sys_wait: Likewise.
36980         * modules/sysexits: Likewise.
36981         * modules/time: Likewise.
36982         * modules/unistd: Likewise.
36983         * modules/wchar: Likewise.
36984         * modules/wctype: Likewise.
36985
36986 2009-08-22  Jim Meyering  <meyering@redhat.com>
36987
36988         announce-gen: detect write failure
36989         * build-aux/announce-gen: Add Coda at end.
36990         Remove equivalent-but-more-verbose block at top.
36991
36992 2009-08-19  Akim Demaille  <demaille@gostai.com>
36993
36994         bootstrap: --help to stdout.
36995         * bootstrap (usage): Don't send --help to stderr.
36996         Use a here doc instead of a long string.
36997
36998 2009-08-21  Eric Blake  <ebb9@byu.net>
36999
37000         test-popen-safer: split from test-popen
37001         * tests/test-popen.c (main): Move...
37002         * tests/test-popen.h: ...into new file.
37003         * tests/test-popen-safer2.c: New file.
37004         * modules/popen-tests (Files): Add test-popen.h.
37005         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
37006         Suggested by Bruno Haible.
37007
37008         test-fcntl-safer: split from test-open
37009         * tests/test-open.c (main): Move...
37010         * tests/test-open.h: ...into new file.
37011         * tests/test-fcntl-safer.c: New file.
37012         * modules/open-tests (Files): Add test-open.h.
37013         * modules/fcntl-safer-tests: New file.
37014         Suggested by Bruno Haible.
37015
37016         test-fopen-safer: split from test-fopen
37017         * tests/test-fopen.c (main): Move...
37018         * tests/test-fopen.h: ...into new file.
37019         * tests/test-fopen-safer.c: New file.
37020         * modules/fopen-tests (Files): Add test-fopen.h.
37021         * modules/fopen-safer-tests: New file.
37022         Suggested by Bruno Haible.
37023
37024 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
37025
37026         popen-safer: test O_CLOEXEC at run-time.
37027         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
37028
37029 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
37030
37031         fcntl: move more flags to the header
37032         * lib/cloexec.c: Do not define FD_CLOEXEC here.
37033         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
37034         * lib/fcntl.in.h: Do both things here.
37035
37036 2009-08-21  Jim Meyering  <meyering@redhat.com>
37037
37038         consistently remove $@-t before redirecting to it
37039         * modules/argz: Remove $@-t and $@ before redirecting to the former.
37040         * modules/alloca-opt: Likewise.
37041         * modules/byteswap: Likewise.
37042         * modules/fnmatch: Likewise.
37043         * modules/getopt-posix: Likewise.
37044         * modules/glob: Likewise.
37045         * modules/poll: Likewise.
37046         * modules/posix_spawnp-tests: Likewise.
37047         * modules/sys_socket: Likewise.
37048         * modules/sysexits: Likewise.
37049
37050 2009-08-21  Eric Blake  <ebb9@byu.net>
37051
37052         popen: simplify access to original popen
37053         * lib/popen.c (rpl_popen): No need to worry about popen being a
37054         macro.
37055         Reported by Bruno Haible.
37056
37057 2009-08-20  Eric Blake  <ebb9@byu.net>
37058
37059         build: avoid some compiler warnings
37060         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
37061         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
37062         type.
37063         (new_exclude_segment, excluded_file_pattern_p)
37064         (excluded_file_name_p): Reduce scope.
37065         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
37066         old-style declaration.
37067
37068 2009-08-20  Simon Josefsson  <simon@josefsson.org>
37069
37070         * tests/test-exclude1.sh: Handle Windows EOL.
37071         * tests/test-exclude2.sh: Likewise.
37072         * tests/test-exclude3.sh: Likewise.
37073         * tests/test-exclude4.sh: Likewise.
37074         * tests/test-exclude5.sh: Likewise.
37075         * tests/test-exclude6.sh: Likewise.
37076         * tests/test-exclude7.sh: Likewise.
37077
37078 2009-08-19  Akim Demaille  <demaille@gostai.com>
37079
37080         bootstrap: find sha1sum when named gsha1sum.
37081         * bootstrap (find_tool): New.
37082         ($SHA1SUM): New.
37083         Use it.
37084
37085 2009-08-20  Jim Meyering  <meyering@redhat.com>
37086
37087         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
37088         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
37089         expression that converts "." in a file name to "\." in the resulting
37090         regexp.  Start with a dummy statement, so that prior shell variable
37091         definitions are expanded portably.  Reported by Simon Josefsson.
37092
37093 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
37094
37095         Fix polling for writeability of a screen buffer.
37096         * lib/poll.c: Distinguish input and screen buffers for the
37097         Win32 implementation.
37098         * lib/select.c: Likewise.
37099
37100 2009-08-19  Eric Blake  <ebb9@byu.net>
37101
37102         popen-safer: prevent popen from clobbering std descriptors
37103         * modules/popen-safer: New file.
37104         * lib/popen-safer.c: Likewise.
37105         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
37106         * lib/stdio--.h (popen): Provide override.
37107         * lib/stdio-safer.h (popen_safer): Provide declaration.
37108         * tests/test-popen.c (includes): Partially test this.
37109         * modules/popen-safer-tests: New file, for more tests.
37110         * tests/test-popen-safer.c: Likewise.
37111         * MODULES.html.sh (file stream based Input/Output): Mention it.
37112
37113         tests: test some of the *-safer modules
37114         * modules/fopen-safer (Depends-on): Add fopen.
37115         * modules/fcntl-safer (Depends-on): Add fcntl.
37116         * modules/stdlib-safer (Depends-on): Add stdlib.
37117         (configure.ac): Set indicator.
37118         * modules/unistd-safer (configure.ac): Likewise.
37119         * modules/tmpfile-safer (configure.ac): Likewise.
37120         (Depends-on): Add tmpfile.
37121         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
37122         active.
37123         * tests/test-fopen.c (includes): Test safer versions when they are
37124         in use.
37125         * tests/test-open.c (includes): Likewise.
37126
37127         popen: fix cygwin 1.5 bug when stdin closed
37128         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
37129         * modules/popen: New file.
37130         * modules/popen-tests: Likewise.
37131         * tests/test-popen.c: Likewise.
37132         * m4/popen.m4: Likewise.
37133         * lib/popen.c: Likewise.
37134         * lib/stdio.in.h (popen): New declaration.
37135         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
37136         * modules/stdio (Makefile.am): Likewise.
37137         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
37138
37139 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
37140
37141         maint.mk: give full control over update-copyright exclusions
37142         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
37143         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
37144         (update-copyright): Don't force inclusion of top-level
37145         ChangeLog.  Don't force exclusion of all COPYING files, but make
37146         them the default exclusion instead.
37147
37148 2009-08-16  Bruno Haible  <bruno@clisp.org>
37149
37150         Fix test failures on Solaris 10.
37151         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
37152         tests when Solaris iconv() is used.
37153         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
37154         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
37155         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
37156         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
37157         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
37158
37159 2009-08-16  Bruno Haible  <bruno@clisp.org>
37160
37161         Fix test failures on Solaris 10.
37162         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
37163         'tr' program and pass it as first argument.
37164         * tests/test-pipe-filter-gi1.sh: Likewise.
37165         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
37166         program as first argument.
37167         * tests/test-pipe-filter-gi1.c (main): Likewise.
37168
37169 2009-08-16  Eric Blake  <ebb9@byu.net>
37170
37171         fpurge: fix previous commits
37172         * modules/fpurge (Makefile.am): Make replacement conditional,
37173         partially reverting 2007-04-29 change; missed in previous
37174         attempt.
37175         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
37176         is missing.
37177
37178 2009-08-16  Bruno Haible  <bruno@clisp.org>
37179
37180         Clarify fpurge's effect on the file position.
37181         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
37182         * tests/test-fpurge.c (main): Make a second pass for checking the file
37183         position.
37184
37185 2009-08-16  Bruno Haible  <bruno@clisp.org>
37186
37187         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
37188         declaration of fpurge is missing.
37189         * tests/test-fpurge.c (main): Check that the file has not more contents
37190         than expected. Close the file before removing it.
37191
37192 2009-08-15  Eric Blake  <ebb9@byu.net>
37193
37194         fpurge: don't wrap working cygwin implementation
37195         * lib/fpurge.c (fpurge): Fix comment typo.
37196         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
37197         1.7 to avoid replacement.
37198         * tests/test-fpurge.c (main): Enhance test.
37199
37200 2009-08-15  Eric Blake  <ebb9@byu.net>
37201         and Jim Meyering  <meyering@redhat.com>
37202
37203         test-update-copyright: skip if perl is insufficient
37204         * tests/test-update-copyright.sh: Failure to run maintainer tool
37205         should not cause testsuite failure on cygwin 1.5.
37206
37207 2009-08-14  Eric Blake  <ebb9@byu.net>
37208
37209         doc: mention more functions added in cygwin 1.7.0
37210         * doc/posix-headers/limits.texi (limits.h): Update for recent
37211         cygwin additions.
37212         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
37213         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
37214         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
37215         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
37216         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
37217
37218 2009-08-14  Eric Blake  <ebb9@byu.net>
37219
37220         maint.mk: simplify update-copyright rule
37221         * top/maint.mk (update-copyright-local): Delete, and document how
37222         to do it in cfg.mk instead.
37223         (update-copyright-exclude-regexp): Delete, and document how to do
37224         it in .x-update-copyright instead.
37225         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
37226         exclude ChangeLog.
37227
37228 2009-08-14  Bruno Haible  <bruno@clisp.org>
37229
37230         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
37231
37232 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37233
37234         maint.mk: support update-copyright-env
37235         * top/maint.mk (update-copyright-env): Define place-holder.
37236         (update-copyright): Expand $(update-copyright-env) before
37237         invoking update-copyright.
37238
37239 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37240
37241         update-copyright: implement forced reformatting
37242         * build-aux/update-copyright: Implement and document
37243         UPDATE_COPYRIGHT_FORCE.
37244         * tests/test-update-copyright.sh: Test it.
37245
37246 2009-08-14  Eric Blake  <ebb9@byu.net>
37247         and Bruno Haible  <bruno@clisp.org>
37248
37249         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
37250         * tests/test-locale.c: Revert previous patch related to NULL.
37251         * tests/test-stdio.c: Likewise.
37252         * tests/test-stdlib.c: Likewise.
37253         * tests/test-string.c: Likewise.
37254         * tests/test-unistd.c: Likewise.
37255         * modules/time-tests (Depends-on): Add verify.
37256         * modules/wchar-tests (Depends-on): Likewise.
37257         * tests/test-time.c: Test for NULL compliance.
37258         * tests/test-wchar.c: Likewise.
37259         * modules/locale (Depends-on): Add stddef.
37260         * modules/stdio (Depends-on): Likewise.
37261         * modules/stdlib (Depends-on): Likewise.
37262         * modules/string (Depends-on): Likewise.
37263         * modules/time (Depends-on): Likewise.
37264         * modules/unistd (Depends-on): Likewise.
37265         * modules/wchar (Depends-on): Likewise.
37266         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
37267         * lib/stdlib.in.h (includes): Likewise.
37268         * lib/string.in.h (includes): Likewise.
37269         * lib/time.in.h (includes): Likewise.
37270         * lib/unistd.in.h (includes): Likewise.
37271         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
37272         replaced.
37273         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37274         * m4/stddef_h.m4: New file.
37275         * modules/stddef: Likewise.
37276         * lib/stddef.in.h: Likewise.
37277         * modules/stddef-tests: Likewise.
37278         * tests/test-stddef.c: Likewise.
37279         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
37280         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
37281         * doc/posix-headers/locale.texi (locale.h): Likewise.
37282         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
37283         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
37284         * doc/posix-headers/string.texi (string.h): Likewise.
37285         * doc/posix-headers/time.texi (time.h): Likewise.
37286         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
37287         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
37288
37289 2009-08-14  Eric Blake  <ebb9@byu.net>
37290
37291         doc: improve git diff of texinfo files
37292         * .gitattributes: Add rule for *.texi files, with hint on how to
37293         use it.
37294         Copied from m4, and based on a report by Bruno Haible.
37295
37296 2009-08-14  Bruno Haible  <bruno@clisp.org>
37297
37298         Disable multithread support by default on Cygwin 1.5.x for real.
37299         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
37300
37301 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
37302
37303         update-copyright: much ado about intervals
37304         * build-aux/update-copyright: Implement and document
37305         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
37306         of copyright year intervals.
37307         Also, document UPDATE_COPYRIGHT_YEAR.
37308         * tests/test-update-copyright.sh: Test it.
37309
37310         update-copyright: convert 2-digit to 4-digit years
37311         * build-aux/update-copyright: Implement and document.
37312         * tests/test-update-copyright.sh: Update.
37313
37314 2009-08-14  Jim Meyering  <meyering@redhat.com>
37315
37316         test-exclude: avoid coreutils "make check" failure
37317         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
37318         just as in test-argmatch.c.
37319
37320 2009-08-13  Eric Blake  <ebb9@byu.net>
37321
37322         test-dup2: fix bad assumption
37323         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
37324         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
37325
37326         test-version-etc: fix CRLF portability issue
37327         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
37328         recognize \r.
37329         * tests/test-argp-version-etc-1.sh: Likewise.
37330
37331         getopt: update client modules
37332         * modules/argp (Depends-on): Use getopt-gnu.
37333         * modules/git-merge-changelog (Depends-on): Likewise.
37334         * modules/long-options (Depends-on): Likewise.
37335         * modules/xstrtol (Depends-on): Likewise.
37336
37337 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37338
37339         * tests/test-version-etc.sh: Don't fail on different
37340         project/version.  Don't fail on CRLF differences.  Rewrite to use
37341         multiple -e instead of multiple sed forks, suggested by Eric Blake
37342         <ebb9@byu.net>.
37343         * tests/test-argp-version-etc-1.sh: Likewise.
37344
37345 2009-08-13  Simon Josefsson  <simon@josefsson.org>
37346
37347         * tests/test-version-etc.sh: Don't fail on different
37348         project/version.
37349
37350 2009-08-12  Bruno Haible  <bruno@clisp.org>
37351
37352         Tests for modules 'getopt-posix', 'getopt-gnu'.
37353         * modules/getopt-posix-tests: New file.
37354         * tests/test-getopt.c: New file.
37355         * tests/test-getopt.h: New file.
37356         * tests/test-getopt_long.h: New file.
37357
37358         New modules 'getopt-posix', 'getopt-gnu'.
37359         * modules/getopt-gnu: New file, renamed from modules/getopt.
37360         * modules/getopt-posix: New file.
37361         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
37362         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
37363         (gl_GETOPT): Remove macro.
37364         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
37365         Disable the test against BSD systems that declare optreset. Test
37366         against mingw bug. Test against lack of support of optional arguments
37367         on many platforms.
37368         * doc/glibc-headers/getopt.texi: Update module name and list of
37369         relevant platforms.
37370         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
37371         'getopt-gnu' and more portability problems.
37372         * NEWS: Mention the changes.
37373
37374 2009-08-12  Bruno Haible  <bruno@clisp.org>
37375
37376         Ensure that optarg etc. get declared by <unistd.h>.
37377         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
37378         AC_USE_SYSTEM_EXTENSIONS.
37379         * modules/getopt (Depends-on): Add 'extensions'.
37380
37381 2009-08-12  Bruno Haible  <bruno@clisp.org>
37382
37383         Avoid test link errors.
37384         * modules/pipe-filter-ii-tests (Makefile.am): Define
37385         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
37386         * modules/pipe-filter-gi-tests (Makefile.am): Define
37387         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
37388         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37389
37390 2009-08-12  Bruno Haible  <bruno@clisp.org>
37391
37392         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
37393         gl_GETOPT_SUBSTITUTE before.
37394         (gl_GETOPT): Use it.
37395         * m4/argp.m4 (gl_ARGP): Update.
37396         Reported by Sergey Poznyakoff.
37397
37398         * m4/getopt.m4: Reorder macros.
37399         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
37400         (gl_GETOPT_SUBSTITUTE): Remove macro.
37401
37402 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37403
37404         Minor improvement in gitlog-to-changelog
37405
37406         * build-aux/gitlog-to-changelog: New option `--format' makes
37407         output format string configurable.
37408
37409 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
37410
37411         Optimize exclude: use hash tables for non-wildcard patterns.
37412
37413         * lib/exclude.c: Include hash.h and mbuiter.h
37414         (struct exclude_pattern, exclude_segment): New data types.
37415         (struct exclude): Rewrite.
37416         (fnmatch_pattern_has_wildcards): New function.
37417         (new_exclude_segment, free_exclude_segment): New functions.
37418         (excluded_file_pattern_p, excluded_file_name_p): New functions.
37419         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
37420         * lib/exclude.h (is_fnmatch_pattern): New prototype.
37421         * modules/exclude: Depend on hash and mbuiter.
37422
37423         * modules/exclude-tests: New file.
37424         * tests/test-exclude.c: New file.
37425         * tests/test-exclude1.sh: New file.
37426         * tests/test-exclude2.sh: New file.
37427         * tests/test-exclude3.sh: New file.
37428         * tests/test-exclude4.sh: New file.
37429         * tests/test-exclude5.sh: New file.
37430         * tests/test-exclude6.sh: New file.
37431         * tests/test-exclude7.sh: New file.
37432
37433 2009-08-12  Bruno Haible  <bruno@clisp.org>
37434
37435         Ensure that getopt() gets declared by <unistd.h>.
37436         * lib/unistd.in.h: Conditionally include getopt.h.
37437         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
37438         Set GNULIB_UNISTD_H_GETOPT.
37439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37440         GNULIB_UNISTD_H_GETOPT.
37441         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
37442
37443 2009-08-12  Bruno Haible  <bruno@clisp.org>
37444
37445         Clarify logic.
37446         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
37447         gl_replace_getopt instead of GETOPT_H.
37448
37449 2009-08-12  Bruno Haible  <bruno@clisp.org>
37450
37451         * m4/getopt.m4: Add comments.
37452
37453 2009-08-12  Bruno Haible  <bruno@clisp.org>
37454
37455         Disable multithread support by default on Cygwin 1.5.x.
37456         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
37457         set gl_use_threads=no if not specified otherwise.
37458
37459 2009-08-11  Bruno Haible  <bruno@clisp.org>
37460
37461         Avoid compilation error on NetBSD 5.0.
37462         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
37463         * tests/test-stdio.c: Likewise.
37464         * tests/test-stdlib.c: Likewise.
37465         * tests/test-string.c: Likewise.
37466         * tests/test-unistd.c: Likewise.
37467         Reported by Greg Troxel <gdt@ir.bbn.com>
37468         at <https://savannah.gnu.org/support/?106973>.
37469
37470 2009-08-11  Bruno Haible  <bruno@clisp.org>
37471
37472         * modules/dup2-tests (Depends-on): Remove close.
37473
37474         Undo 2009-07-19 commit.
37475         * modules/acl-tests (Depends-on): Remove close.
37476         * modules/binary-io-tests (Depends-on): Likewise.
37477         * modules/closein-tests (Depends-on): Likewise.
37478         * modules/flock-tests (Depends-on): Likewise.
37479         * modules/fsync-tests (Depends-on): Likewise.
37480         * modules/lseek-tests (Depends-on): Likewise.
37481         * modules/pipe-tests (Depends-on): Likewise.
37482         * modules/posix_spawn-tests (Depends-on): Likewise.
37483         * modules/posix_spawnp-tests (Depends-on): Likewise.
37484         * modules/stat-time-tests (Depends-on): Likewise.
37485         * modules/yesno-tests (Depends-on): Likewise.
37486
37487 2009-08-10  Bruno Haible  <bruno@clisp.org>
37488
37489         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
37490
37491 2009-08-10  Bruno Haible  <bruno@clisp.org>
37492
37493         Fix a gcc warning.
37494         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
37495
37496 2009-08-10  Bruno Haible  <bruno@clisp.org>
37497
37498         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
37499         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
37500         not only the first time.
37501         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
37502         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
37503         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
37504         is 1, not only the the first time.
37505
37506 2009-08-10  Bruno Haible  <bruno@clisp.org>
37507
37508         Make it possible to use module 'gethostname' without module 'close'.
37509         * lib/unistd.in.h (close): Evoke a link error only if
37510         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37511         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37512         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37513         * modules/unistd (Makefile.am): Substitute
37514         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37515         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
37516         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
37517         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
37518         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37519         * modules/sys_ioctl (Makefile.am): Substitute
37520         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37521         * modules/socket (configure.ac): On native Windows, set
37522         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
37523         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
37524         Reported by Sam Steingold <sds@gnu.org>.
37525
37526 2009-08-10  Bruno Haible  <bruno@clisp.org>
37527
37528         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
37529         * modules/ioctl (configure.ac): Likewise.
37530
37531 2009-08-10  Bruno Haible  <bruno@clisp.org>
37532
37533         Avoid collision between gnulib wrapper and libintl wrapper.
37534         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
37535         already defined in intl/printf.c.
37536         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
37537         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
37538
37539 2009-08-09  Bruno Haible  <bruno@clisp.org>
37540
37541         Make <sys/select.h> really self-contained, also on Solaris 10.
37542         * lib/sys_select.in.h: Include <string.h>.
37543         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
37544         Solaris 10 problem.
37545         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
37546         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
37547         Reported by Jim Meyering.
37548
37549 2009-08-09  Bruno Haible  <bruno@clisp.org>
37550
37551         Avoid warnings from 'aclocal' that are due to a use of macro name
37552         AM_XGETTEXT_OPTION that is not defined in automake.
37553         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
37554         automake.
37555         * modules/error (configure.ac): Likewise.
37556         * modules/propername (configure.ac): Likewise.
37557         * modules/vasprintf (configure.ac): Likewise.
37558         * modules/verror (configure.ac): Likewise.
37559         * modules/xprintf (configure.ac): Likewise.
37560         * modules/xvasprintf (configure.ac): Likewise.
37561
37562 2009-08-08  Bruno Haible  <bruno@clisp.org>
37563
37564         Avoid compilation error in C++ mode.
37565         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
37566         Reported by Sam Steingold <sds@gnu.org>.
37567
37568 2009-08-08  Bruno Haible  <bruno@clisp.org>
37569
37570         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
37571         for the various Unix platforms.
37572         * doc/posix-headers/limits.texi: Update platforms list regarding
37573         HOST_NAME_MAX.
37574         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37575
37576 2009-08-07  Jim Meyering  <meyering@redhat.com>
37577
37578         selinux-at: fix typo in a comment
37579         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
37580         Spotted by Paolo Bonzini.
37581
37582         selinux-at: remove redundant m4 code, add documentation
37583         * modules/selinux-at (configure.ac): Remove redundant code.
37584         LIB_SELINUX is already set via the dependent module, selinux-h.
37585         (Include): Add quotes around selinux-at.h.
37586         * lib/selinux-at.h: Add documentation.
37587         Reported by Bruno Haible in
37588         http://marc.info/?l=gnulib-bug&m=124958988300749
37589
37590 2009-08-07  Bruno Haible  <bruno@clisp.org>
37591
37592         Avoid link error on MacOS X 10.3 and 10.4.
37593         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
37594         on non-ELF systems.
37595         * lib/argp-pv.c (argp_program_version): Likewise.
37596         Reported by Simon Josefsson.
37597
37598 2009-08-07  Simon Josefsson  <simon@josefsson.org>
37599
37600         * tests/test-version-etc.sh: Use $EXEEXT.
37601
37602 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
37603
37604         update-copyright: update documentation to point to maint.mk
37605         * build-aux/update-copyright: Here.
37606
37607 2009-08-06  Jim Meyering  <meyering@redhat.com>
37608
37609         maint.mk: support update-copyright-local
37610         * top/maint.mk (update-copyright-local): Define place-holder.
37611         (update-copyright): Depend on $(update-copyright-local).
37612
37613 2009-08-06  Jim Meyering  <meyering@redhat.com>
37614
37615         selinux-at: new module
37616         Initially written for coreutils, this module will soon be
37617         used by findutils, too.
37618         * MODULES.html.sh [Misc]: Add selinux-at.
37619         * lib/selinux-at.h: New file, from coreutils.
37620         * lib/selinux-at.c: Likewise.
37621         * modules/selinux-at: Likewise.
37622         (License): Change from LGPL to GPL, since it depends
37623         on the GPL'd openat module.
37624
37625         doc: update README
37626         * README: Remove references to cogito.
37627         Remove cvs-repo-updating instructions from 2007.
37628         Don't imply that CVS is better if you have limited disk space.
37629
37630 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37631
37632         update-copyright: support C-style comments
37633         * build-aux/update-copyright: Implement and document.
37634         * tests/test-update-copyright.sh: Test.
37635
37636 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37637
37638         update-copyright: support omitted "(C)"
37639         * build-aux/update-copyright: Implement and document.  Also,
37640         allow variable whitespace before "(C)".
37641         * tests/test-update-copyright.sh: Test.
37642
37643 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37644
37645         update-copyright: don't trip on non-FSF copyright statements
37646         * build-aux/update-copyright: Fix so that the first correctly
37647         formatted FSF copyright statement is recognized no matter what
37648         appears before it.  Update documentation.
37649         * tests/test-update-copyright.sh: Test that.
37650
37651 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37652
37653         update-copyright: clean up code a little
37654         * build-aux/update-copyright: Append "_re" to the name of any
37655         variable holding a regular expression.
37656         Replace "old" and "new" with "stmt" in variable names.
37657         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
37658         handled correctly.
37659         Format code more consistently.
37660
37661 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
37662
37663         update-copyright-tests: improve portability
37664         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
37665         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
37666
37667 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37668
37669         update-copyright: support @copyright{} and &copy;
37670         * build-aux/update-copyright: Implement and document.
37671         * tests/test-update-copyright.sh: Test.
37672
37673 2009-08-04  Jim Meyering  <meyering@redhat.com>
37674
37675         update-copyright-tests: correctly test EOL=\r\n handling
37676         * tests/test-update-copyright.sh: Put \r at the end of some lines
37677         for the dos-eol tests.  Based on a patch by Joel E. Denny.
37678
37679         maint.mk: make update-copyright exclusion list more configurable
37680         * top/maint.mk (update-copyright): Default to excluding COPYING,
37681         but allow an override, in case someone does want to update that file.
37682
37683         maint.mk: don't update copyright date in COPYING
37684         * top/maint.mk (update-copyright): Exclude COPYING.
37685
37686         maint.mk: add a copyright-updating rule
37687         * top/maint.mk (update-copyright): New rule.
37688         Derived from coreutils/Makefile.am.
37689
37690         update-copyright: rename some variables
37691         * build-aux/update-copyright: Rename a few variables for clarity.
37692         Tweak syntax.  List Joel E. Denny as coauthor.
37693
37694 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
37695
37696         update-copyright: fix bug for 2-digit last year and add tests
37697         * build-aux/update-copyright: Fix bug.
37698         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
37699         specified.
37700         * modules/update-copyright-tests: New
37701         * tests/test-update-copyright.sh: New.
37702
37703 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37704
37705         update-copyright: handle leading tabs in line prefix
37706         * build-aux/update-copyright: Count leading tabs as 8 spaces
37707         when computing margin.  This helps with the formatting of
37708         ChangeLogs, for example.
37709         Fix documentation a little.
37710
37711 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37712
37713         update-copyright: support EOL=\r\n
37714         * build-aux/update-copyright: Implement that.
37715
37716 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
37717
37718         update-copyright: automatically format copyright statements
37719         * build-aux/update-copyright: Implement that.
37720         Also, be a little more predictable and safer by always failing
37721         when the full copyright format is not perfectly recognized as an
37722         unbroken whole.  Discussed at
37723         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
37724         Rewrite documentation.
37725
37726 2009-08-03  Bruno Haible  <bruno@clisp.org>
37727
37728         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
37729
37730 2009-08-02  Bruno Haible  <bruno@clisp.org>
37731
37732         Tests for module 'uname'.
37733         * modules/uname-tests: New file.
37734         * tests/test-uname.c: New file.
37735
37736         New module 'uname'.
37737         * lib/uname.c: New file.
37738         * m4/uname.m4: New file.
37739         * modules/uname: New file.
37740         * doc/posix-functions/uname.texi: Mention the new module.
37741
37742 2009-08-02  Bruno Haible  <bruno@clisp.org>
37743
37744         Tests for module 'sys_utsname'.
37745         * modules/sys_utsname-tests: New file.
37746         * tests/test-sys_utsname.c: New file.
37747
37748         New module 'sys_utsname'.
37749         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
37750         * m4/sys_utsname_h.m4: New file.
37751         * modules/sys_utsname: New file.
37752         * doc/posix-headers/sys_utsname.texi: Mention the new module.
37753
37754 2009-08-02  Bruno Haible  <bruno@clisp.org>
37755
37756         Implicitly initialize the sockets library.
37757         * lib/gethostname.c: Include sockets.h.
37758         (rpl_gethostname): Invoke gl_sockets_startup.
37759         * lib/socket.c: Include sockets.h.
37760         (rpl_socket): Invoke gl_sockets_startup.
37761         * modules/gethostname (Depends-on): Add sockets.
37762         * modules/socket (Depends-on): Likewise.
37763         * tests/test-poll.c: Don't include sockets.h.
37764         (main): Don't invoke gl_sockets_startup.
37765         * tests/test-select.c: Don't include sockets.h.
37766         (main): Don't invoke gl_sockets_startup.
37767
37768 2009-08-02  Bruno Haible  <bruno@clisp.org>
37769
37770         Allow multiple calls to gl_sockets_startup.
37771         * lib/sockets.c (initialized_sockets_version): New variable.
37772         (gl_sockets_startup): Do nothing if already called for this or a higher
37773         version.
37774         (gl_sockets_cleanup): Reset initialized_sockets_version.
37775
37776 2009-08-03  Simon Josefsson  <simon@josefsson.org>
37777
37778         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
37779         different project/version.
37780
37781 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
37782             Bruno Haible  <bruno@clisp.org>
37783
37784         Tests for module 'pipe-filter-gi'.
37785         * modules/pipe-filter-gi-tests: New file.
37786         * tests/test-pipe-filter-gi1.sh: New file.
37787         * tests/test-pipe-filter-gi1.c: New file.
37788         * tests/test-pipe-filter-gi2.sh: New file.
37789         * tests/test-pipe-filter-gi2-main.c: New file.
37790         * tests/test-pipe-filter-gi2-child.c: New file.
37791
37792         New module 'pipe-filter-gi'.
37793         * lib/pipe-filter-gi.c: New file.
37794         * modules/pipe-filter-gi: New file.
37795
37796 2009-08-02  Bruno Haible  <bruno@clisp.org>
37797             Paolo Bonzini  <bonzini@gnu.org>
37798
37799         Tests for module 'pipe-filter-ii'.
37800         * modules/pipe-filter-ii-tests: New file.
37801         * tests/test-pipe-filter-ii1.sh: New file.
37802         * tests/test-pipe-filter-ii1.c: New file.
37803         * tests/test-pipe-filter-ii2.sh: New file.
37804         * tests/test-pipe-filter-ii2-main.c: New file.
37805         * tests/test-pipe-filter-ii2-child.c: New file.
37806
37807         New module 'pipe-filter-ii'.
37808         * lib/pipe-filter.h: New file.
37809         * lib/pipe-filter-ii.c: New file.
37810         * lib/pipe-filter-aux.h: New file.
37811         * modules/pipe-filter-ii: New file.
37812
37813 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37814
37815         * lib/gc-libgcrypt.c: Change copyright to FSF.
37816         * lib/gc-gnulib.c: Likewise.
37817
37818 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
37819
37820         * lib/gethostname.c: Include limits.h.
37821
37822 2009-08-02  Simon Josefsson  <simon@josefsson.org>
37823             Bruno Haible  <bruno@clisp.org>
37824
37825         Ensure HOST_NAME_MAX as part of the gethostname module.
37826         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
37827         define also HOST_NAME_MAX.
37828         * tests/test-gethostname.c: Include <limits.h>.
37829         (main): Check also HOST_NAME_MAX.
37830         * doc/posix-headers/limits.texi: Document the mingw problem.
37831
37832 2009-08-02  Bruno Haible  <bruno@clisp.org>
37833
37834         * lib/gethostname.c (gethostname): Fix handling of large len argument.
37835         Add comments.
37836
37837 2009-03-31  Simon Josefsson  <simon@josefsson.org>
37838
37839         * lib/gethostname.c: Add Windows wrapper.
37840         * m4/gethostname.m4: Look for gethostname in -lws2_32.
37841         * modules/gethostname: Depend on sys_socket & errno, for also
37842         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
37843         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
37844
37845 2009-07-31  Jim Meyering  <meyering@redhat.com>
37846
37847         getloadavg: fix symbol name in comment
37848         * lib/getloadavg.c: Correct a typo I introduced when adding
37849         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
37850         Matt Kraai spotted the problem.
37851
37852 2009-07-29  Matt Kraai  <mkraai@beckman.com>
37853
37854         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
37855         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
37856         code also if ! defined N_NAME_POINTER.
37857         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
37858         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
37859         but the n_name member is a 12-byte array.
37860
37861 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
37862
37863         update-copyright: generalize comment handling
37864         * build-aux/update-copyright: Handle copyright statements
37865         within more comment styles.
37866         Document usage.
37867         Report any file with an external copyright holder or parse failure.
37868
37869 2009-07-29  Jim Meyering  <meyering@redhat.com>
37870
37871         mktime: correct setting of REPLACE_MKTIME
37872         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
37873
37874         update-copyright: new module
37875         * modules/update-copyright: New file.
37876         * build-aux/update-copyright: New file.
37877         * MODULES.html.sh (maint+release support): Add update-copyright.
37878
37879 2009-07-27  Bruno Haible  <bruno@clisp.org>
37880
37881         Fix compilation error when <ctime> is used and mktime is replaced.
37882         * lib/time.in.h (mktime): New declaration.
37883         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
37884         REPLACE_MKTIME instead of defining mktime in config.h.
37885         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
37886         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
37887         Reported by Ross McFarland <rwmcfa1@neces.com>.
37888
37889 2009-07-27  Bruno Haible  <bruno@clisp.org>
37890
37891         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
37892         Reported by Matt Kraai <mkraai@beckman.com>.
37893
37894 2009-07-25  Jim Meyering  <meyering@redhat.com>
37895
37896         maint.mk: avoid warnings about missing files
37897         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
37898         diagnostic when .prev-version does not exist.
37899         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
37900         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
37901         nonexistent cfg.mk.
37902         Suggestions from Simon Josefsson.
37903
37904 2009-07-25  Bruno Haible  <bruno@clisp.org>
37905
37906         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
37907         defined as macros. Needed on QNX 6.4.1.
37908         Reported by Matt Kraai <mkraai@beckman.com>.
37909
37910 2009-07-23  Jim Meyering  <meyering@redhat.com>
37911
37912         maint.mk: invoke "make dist" with a working value of XZ_OPT
37913         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
37914
37915 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
37916
37917         Make fseeko.c compile on QNX.
37918         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
37919
37920 2009-07-22  Peter Simons  <simons@cryp.to>
37921
37922         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
37923         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
37924         * lib/md4.h: Likewise.
37925         * lib/md5.h: Likewise.
37926         * lib/sha1.h: Likewise.
37927         * lib/sha256.h: Likewise.
37928         * lib/sha512.h: Likewise.
37929
37930         tests-sha1: don't assign literal string to 'char *' variable
37931         * tests/test-sha1.c (main): Declare locals with "const" to match
37932         attributes of the right hand side.
37933
37934 2009-07-21  Eric Blake  <ebb9@byu.net>
37935
37936         dup2: fix more mingw problems
37937         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
37938         fd to itself.
37939         * doc/posix-functions/dup2.texi (dup2): Document the bug.
37940         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
37941         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
37942         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
37943         care of mingw bugs.
37944
37945 2009-07-21  Jim Meyering  <meyering@redhat.com>
37946
37947         vc-list-files: avoid failure when /bin/sh is dash
37948         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
37949         On some Debian based systems, /bin/sh is a symlink to dash, and running
37950         this command would omit the "/" following each 'tests' prefix:
37951           dash -x build-aux/vc-list-files -C . tests
37952         That is because bash and dash work differently:
37953           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
37954           bash ok
37955           dash odd
37956
37957 2009-07-21  Eric Blake  <ebb9@byu.net>
37958
37959         dup2-tests: test previous patch
37960         * modules/dup2-tests: New file.
37961         * tests/test-dup2.c: Likewise.
37962         * tests/test-open.c (main): Avoid unspecified behavior.
37963         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
37964         test.
37965
37966         dup2: work around mingw and cygwin 1.5 bug
37967         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
37968         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37969         * modules/unistd (Makefile.am): Substitute it.
37970         * lib/unistd.in.h (dup2): Declare the replacement.
37971         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
37972         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
37973         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
37974         * modules/execute (Depends-on): Add dup2.
37975         * modules/fseterr (Depends-on): Likewise.
37976         * modules/pipe (Depends-on): Likewise.
37977         * modules/posix_spawn-internal (Depends-on): Likewise.
37978
37979 2009-07-21  Bruno Haible  <bruno@clisp.org>
37980
37981         * modules/.gitattributes: New file.
37982
37983 2009-07-20  Bruno Haible  <bruno@clisp.org>
37984
37985         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
37986         (main): Use it.
37987
37988 2009-07-20  Eric Blake  <ebb9@byu.net>
37989
37990         test-pipe: make a bit more robust.
37991         * tests/test-pipe.c (myerr): Allow error messages regardless of
37992         what we do to stderr.
37993         (test_pipe): Rearrange to avoid deadlock.
37994         (child_main): Try a larger read, to ensure we avoided deadlock.
37995         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
37996         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
37997         if misused.
37998
37999 2009-07-19  Jim Meyering  <meyering@redhat.com>
38000
38001         fts: avoid false-positive cycle-detection
38002         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
38003         for each new command line argument.
38004
38005 2009-07-19  Bruno Haible  <bruno@clisp.org>
38006
38007         Fix build error on mingw with the modules sys_select and unistd.
38008         * modules/acl-tests (Depends-on): Add close.
38009         * modules/binary-io-tests (Depends-on): Likewise.
38010         * modules/closein-tests (Depends-on): Likewise.
38011         * modules/flock-tests (Depends-on): Likewise.
38012         * modules/fsync-tests (Depends-on): Likewise.
38013         * modules/lseek-tests (Depends-on): Likewise.
38014         * modules/pipe-tests (Depends-on): Likewise.
38015         * modules/posix_spawn-tests (Depends-on): Likewise.
38016         * modules/posix_spawnp-tests (Depends-on): Likewise.
38017         * modules/stat-time-tests (Depends-on): Likewise.
38018         * modules/yesno-tests (Depends-on): Likewise.
38019
38020 2009-07-19  Bruno Haible  <bruno@clisp.org>
38021
38022         Unify conditionals.
38023         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
38024         macros, not at the compiler macros.
38025         * lib/pipe.c: Likewise.
38026         * lib/execute.c: Likewise.
38027         * lib/spawni.c: Likewise.
38028
38029 2009-07-19  Bruno Haible  <bruno@clisp.org>
38030
38031         Fix handling of closed stdin/stdout/stderr on mingw.
38032         * lib/w32spawn.h: Include unistd.h.
38033         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
38034         file descriptor with O_NOINHERIT flag.
38035         (fd_safer_noinherit): New function, based on fd-safer.c.
38036         (dup_safer_noinherit): New function, based on dup-safer.c.
38037         (undup_safer_noinherit): New function.
38038         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
38039         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
38040         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
38041         instead of fd_safer.
38042         * tests/test-pipe.c: Include <windows.h>.
38043         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
38044         result.
38045
38046         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
38047         from main.
38048         (test_pipe): Pass an extra argument for disambiguation.
38049         (main): Invoke parent_main or child_main.
38050
38051         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
38052         consistently.
38053
38054 2009-07-18  Eric Blake  <ebb9@byu.net>
38055
38056         test-pipe: fix mingw build
38057         * tests/test-pipe.c (main): Avoid fcntl on mingw.
38058
38059 2009-07-18  Bruno Haible  <bruno@clisp.org>
38060
38061         * modules/pipe-tests (Makefile.am): Fix typo.
38062
38063 2009-07-18  Eric Blake  <ebb9@byu.net>
38064
38065         error: fix mingw build
38066         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
38067         Reported by Bruno Haible.
38068
38069         error: avoid undefined use of stdout
38070         * lib/error.c (error, error_at_line): Check that fd 1 is open
38071         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
38072         is handling faults and the close_stdout module wants to report the
38073         detection of closed stdout as an error.
38074
38075 2009-07-17  Eric Blake  <ebb9@byu.net>
38076
38077         pipe: be robust in face of closed fds
38078         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
38079         should cause child to misbehave.
38080         * modules/pipe-tests: New module.
38081         * tests/test-pipe.c: New file.
38082         * tests/test-pipe.sh: New file.
38083         Reported by Akim Demaille.
38084
38085 2009-07-14  Bruno Haible  <bruno@clisp.org>
38086
38087         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
38088         Reported by anonymous kc.
38089
38090 2009-07-07  Jim Meyering  <meyering@redhat.com>
38091
38092         maint.mk: don't look for translatable strings in *.m4 or *.mk
38093         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
38094         when searching for translatable strings.
38095
38096 2009-07-05  Jim Meyering  <meyering@redhat.com>
38097
38098         remove superfluous parentheses in STREQ definition
38099         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
38100         * lib/getugroups.c (STREQ): Likewise.
38101         * lib/fnmatch.c (STREQ): Likewise.
38102         Spotted by Bruno Haible.
38103
38104 2009-07-04  Jim Meyering  <meyering@redhat.com>
38105
38106         argv-iter: new module
38107         * MODULES.html.sh: Add argv-iter.
38108         * lib/argv-iter.c, lib/argv-iter.h: New files.
38109         * modules/argv-iter: New file.
38110         * modules/argv-iter-tests: New file.
38111         * tests/test-argv-iter.c: Test it.
38112
38113 2009-07-04  Bruno Haible  <bruno@clisp.org>
38114
38115         Fix assertion.
38116         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
38117         contains more exact copies of a given entry than file2, leave the extra
38118         copies unpaired rather than aborting.
38119         Reported by Eric Blake.
38120
38121 2009-07-02  Bruno Haible  <bruno@clisp.org>
38122
38123         Speedup git-merge-changelog for git cherry-pick.
38124         * lib/git-merge-changelog.c (struct entries_mapping): New type.
38125         (entries_mapping_get): New function, extracted from compute_mapping.
38126         (entries_mapping_reverse_get): New function.
38127         (compute_mapping): Add a 'full' argument. Return the result in a
38128         'struct entries_mapping'.
38129         (main): Update. Access the mappings through entries_mapping_get.
38130         Reported by Eric Blake.
38131
38132 2009-07-02  Bruno Haible  <bruno@clisp.org>
38133
38134         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
38135         best_i.
38136
38137 2009-07-02  Bruno Haible  <bruno@clisp.org>
38138
38139         Speed up approximate search for matching ChangeLog entries.
38140         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
38141         argument. Call fstrcmp_bounded instead of fstrcmp.
38142         (compute_mapping, try_split_merged_entry, main): Update callers.
38143
38144 2009-07-02  Bruno Haible  <bruno@clisp.org>
38145
38146         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
38147
38148 2009-06-30  Bruno Haible  <bruno@clisp.org>
38149
38150         Reduce the number of uc_is_cased calls.
38151         * lib/unicase.h (casing_suffix_context_t): Add
38152         'first_char_except_ignorable' field.
38153         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
38154         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
38155         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
38156         Update initializer.
38157         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
38158         case-ignorable characters.
38159         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
38160         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
38161         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
38162         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
38163         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
38164
38165 2009-06-30  Bruno Haible  <bruno@clisp.org>
38166
38167         Tests for module 'unicase/ignorable'.
38168         * modules/unicase/ignorable-tests: New file.
38169         * tests/unicase/test-ignorable.c: New file, generated by
38170         gen-uni-tables.
38171
38172         Tests for module 'unicase/cased'.
38173         * modules/unicase/cased-tests: New file.
38174         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
38175         * tests/unicase/test-predicate-part1.h: New file, derived from
38176         tests/unictype/test-predicate-part1.h.
38177         * tests/unicase/test-predicate-part2.h: New file, same as
38178         tests/unictype/test-predicate-part2.h.
38179
38180         Fix evaluation of "Before C" condition of FINAL_SIGMA.
38181         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
38182         (output_casing_properties): New function.
38183         (main): Call it.
38184         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
38185         * lib/unicase/cased.c: Include unictype/bitmap.h.
38186         (uc_is_cased): Define through a bitmap lookup.
38187         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
38188         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
38189         (uc_is_case_ignorable): Define through a bitmap lookup.
38190         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
38191         lib/unictype/bitmap.h.
38192         (Depends-on): Add inline. Clean up.
38193         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
38194         lib/unictype/bitmap.h.
38195         (Depends-on): Add inline. Clean up.
38196         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
38197         recognition.
38198         * tests/unicase/test-u16-tolower.c (main): Likewise.
38199         * tests/unicase/test-u32-tolower.c (main): Likewise.
38200
38201 2009-06-30  Bruno Haible  <bruno@clisp.org>
38202
38203         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
38204         * lib/unicase/u16-casemap.c: Likewise.
38205         * lib/unicase/u32-casemap.c: Likewise.
38206
38207 2009-06-29  Bruno Haible  <bruno@clisp.org>
38208
38209         Define u32_casefold as a wrapper around u32_ct_casefold.
38210         * lib/unicase/u32-casefold.c: Update.
38211         * modules/unicase/u32-casefold (Depends-on): Add
38212         unicase/u32-ct-casefold, unicase/empty-prefix-context,
38213         unicase/empty-suffix-context. Clean up.
38214
38215         Define u16_casefold as a wrapper around u16_ct_casefold.
38216         * lib/unicase/u16-casefold.c: Update.
38217         * modules/unicase/u16-casefold (Depends-on): Add
38218         unicase/u16-ct-casefold, unicase/empty-prefix-context,
38219         unicase/empty-suffix-context. Clean up.
38220
38221         Define u8_casefold as a wrapper around u8_ct_casefold.
38222         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
38223         * lib/unicase/u8-casefold.c: Update.
38224         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
38225         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38226
38227         Define u32_totitle as a wrapper around u32_ct_totitle.
38228         * lib/unicase/u32-totitle.c: Update.
38229         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
38230         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38231
38232         Define u16_totitle as a wrapper around u16_ct_totitle.
38233         * lib/unicase/u16-totitle.c: Update.
38234         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
38235         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38236
38237         Define u8_totitle as a wrapper around u8_ct_totitle.
38238         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
38239         functions.
38240         (FUNC): Delegate to U_CT_TOTITLE.
38241         * lib/unicase/u8-totitle.c: Update.
38242         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
38243         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
38244
38245         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
38246         invocation.
38247         * modules/unicase/u32-tolower (Depends-on): Add
38248         unicase/empty-prefix-context, unicase/empty-suffix-context.
38249
38250         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
38251         invocation.
38252         * modules/unicase/u16-tolower (Depends-on): Add
38253         unicase/empty-prefix-context, unicase/empty-suffix-context.
38254
38255         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
38256         * modules/unicase/u8-tolower (Depends-on): Add
38257         unicase/empty-prefix-context, unicase/empty-suffix-context.
38258
38259         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
38260         invocation.
38261         * modules/unicase/u32-toupper (Depends-on): Add
38262         unicase/empty-prefix-context, unicase/empty-suffix-context.
38263
38264         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
38265         invocation.
38266         * modules/unicase/u16-toupper (Depends-on): Add
38267         unicase/empty-prefix-context, unicase/empty-suffix-context.
38268
38269         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
38270         * modules/unicase/u8-toupper (Depends-on): Add
38271         unicase/empty-prefix-context, unicase/empty-suffix-context.
38272
38273         New module 'unicase/u32-ct-casefold'.
38274         * lib/unicase/u32-ct-casefold.c: New file.
38275         * modules/unicase/u32-ct-casefold: New file.
38276
38277         New module 'unicase/u16-ct-casefold'.
38278         * lib/unicase/u16-ct-casefold.c: New file.
38279         * modules/unicase/u16-ct-casefold: New file.
38280
38281         New module 'unicase/u8-ct-casefold'.
38282         * lib/unicase/u8-ct-casefold.c: New file.
38283         * lib/unicase/u-ct-casefold.h: New file, derived from
38284         lib/unicase/u-casefold.h.
38285         * modules/unicase/u8-ct-casefold: New file.
38286
38287         New module 'unicase/u32-ct-totitle'.
38288         * lib/unicase/u32-ct-totitle.c: New file.
38289         * modules/unicase/u32-ct-totitle: New file.
38290
38291         New module 'unicase/u16-ct-totitle'.
38292         * lib/unicase/u16-ct-totitle.c: New file.
38293         * modules/unicase/u16-ct-totitle: New file.
38294
38295         New module 'unicase/u8-ct-totitle'.
38296         * lib/unicase/u8-ct-totitle.c: New file.
38297         * lib/unicase/u-ct-totitle.h: New file, derived from
38298         lib/unicase/u-totitle.h.
38299         * modules/unicase/u8-ct-totitle: New file.
38300
38301         New module 'unicase/u32-ct-tolower'.
38302         * lib/unicase/u32-ct-tolower.c: New file.
38303         * modules/unicase/u32-ct-tolower: New file.
38304
38305         New module 'unicase/u16-ct-tolower'.
38306         * lib/unicase/u16-ct-tolower.c: New file.
38307         * modules/unicase/u16-ct-tolower: New file.
38308
38309         New module 'unicase/u8-ct-tolower'.
38310         * lib/unicase/u8-ct-tolower.c: New file.
38311         * modules/unicase/u8-ct-tolower: New file.
38312
38313         New module 'unicase/u32-ct-toupper'.
38314         * lib/unicase/u32-ct-toupper.c: New file.
38315         * modules/unicase/u32-ct-toupper: New file.
38316
38317         New module 'unicase/u16-ct-toupper'.
38318         * lib/unicase/u16-ct-toupper.c: New file.
38319         * modules/unicase/u16-ct-toupper: New file.
38320
38321         New module 'unicase/u8-ct-toupper'.
38322         * lib/unicase/u8-ct-toupper.c: New file.
38323         * modules/unicase/u8-ct-toupper: New file.
38324
38325         Add context arguments to u*_casemap functions.
38326         * lib/unicase/unicasemap.h: Include unicase.h.
38327         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
38328         suffix_context arguments.
38329         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
38330         functions.
38331         (FUNC): Add prefix_context and suffix_context arguments. Use
38332         uc_is_cased and uc_is_case_ignorable.
38333         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
38334         * lib/unicase/u16-casemap.c: Likewise.
38335         * lib/unicase/u32-casemap.c: Likewise.
38336         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
38337         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38338         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
38339         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38340         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
38341         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
38342
38343         New module 'unicase/u32-suffix-context'.
38344         * lib/unicase/u32-suffix-context.c: New file.
38345         * modules/unicase/u32-suffix-context: New file.
38346
38347         New module 'unicase/u16-suffix-context'.
38348         * lib/unicase/u16-suffix-context.c: New file.
38349         * modules/unicase/u16-suffix-context: New file.
38350
38351         New module 'unicase/u8-suffix-context'.
38352         * lib/unicase/u8-suffix-context.c: New file.
38353         * lib/unicase/u-suffix-context.h: New file.
38354         * modules/unicase/u8-suffix-context: New file.
38355
38356         New module 'unicase/empty-suffix-context'.
38357         * lib/unicase/empty-suffix-context.c: New file.
38358         * modules/unicase/empty-suffix-context: New file.
38359
38360         New module 'unicase/u32-prefix-context'.
38361         * lib/unicase/u32-prefix-context.c: New file.
38362         * modules/unicase/u32-prefix-context: New file.
38363
38364         New module 'unicase/u16-prefix-context'.
38365         * lib/unicase/u16-prefix-context.c: New file.
38366         * modules/unicase/u16-prefix-context: New file.
38367
38368         New module 'unicase/u8-prefix-context'.
38369         * lib/unicase/u8-prefix-context.c: New file.
38370         * lib/unicase/u-prefix-context.h: New file.
38371         * lib/unicase/context.h: New file.
38372         * modules/unicase/u8-prefix-context: New file.
38373
38374         New module 'unicase/empty-prefix-context'.
38375         * lib/unicase/empty-prefix-context.c: New file.
38376         * modules/unicase/empty-prefix-context: New file.
38377
38378         New module 'unicase/ignorable'.
38379         * lib/unicase/ignorable.c: New file.
38380         * modules/unicase/ignorable: New file.
38381
38382         New module 'unicase/cased'.
38383         * lib/unicase/caseprop.h: New file.
38384         * lib/unicase/cased.c: New file.
38385         * modules/unicase/cased: New file.
38386
38387         New functions for case mapping of substrings.
38388         * lib/unicase.h (casing_prefix_context_t): New type.
38389         (unicase_empty_prefix_context): New variable.
38390         (u8_casing_prefix_context, u16_casing_prefix_context,
38391         u32_casing_prefix_context, u8_casing_prefixes_context,
38392         u16_casing_prefixes_context, u32_casing_prefixes_context): New
38393         declarations.
38394         (casing_suffix_context_t): New type.
38395         (unicase_empty_suffix_context): New variable.
38396         (u8_casing_suffix_context, u16_casing_suffix_context,
38397         u32_casing_suffix_context, u8_casing_suffixes_context,
38398         u16_casing_suffixes_context, u32_casing_suffixes_context,
38399         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
38400         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
38401         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
38402         declarations.
38403
38404 2009-06-28  Jim Meyering  <meyering@redhat.com>
38405
38406         boostrap: indent only with spaces
38407         * build-aux/bootstrap: Indent only with spaces, never TABs.
38408
38409         bootstrap: split long lines
38410         * build-aux/bootstrap: Keep line length < 80.
38411
38412         bootstrap: sync from coreutils
38413         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
38414         just as autoreconf does.  Verify a list of prerequisite
38415         package-name,version-number pairs if defined in bootstrap.conf.
38416         Refer to README-prereq, if prerequisites are not satisfied.
38417
38418 2009-06-27  Eric Blake  <ebb9@byu.net>
38419
38420         tests: add test for bogus NULL definition
38421         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
38422         * tests/test-stdlib.c: Likewise.
38423         * tests/test-string.c: Likewise.
38424         * tests/test-locale.c: Likewise.
38425         * tests/test-unistd.c: Likewise.
38426         * modules/stdio-tests (Depends-on): Add verify.
38427         * modules/stdlib-tests (Depends-on): Likewise.
38428         * modules/string-tests (Depends-on): Likewise.
38429         * modules/locale-tests (Depends-on): Likewise.
38430         * modules/unistd-tests (Depends-on): Likewise.
38431
38432 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
38433
38434         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
38435         self-explaining comment.
38436         * m4/selinux-selinux-h: Update serial.
38437         (gl_LIBSELINUX): New macro, adding a warning for missing development
38438         packages to code extracted from...
38439         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
38440         Add warning for missing development packages here, too.
38441
38442 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
38443
38444         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
38445
38446 2009-06-25  Eric Blake  <ebb9@byu.net>
38447
38448         version-etc: fix regression
38449         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
38450         gcc.
38451         (version_etc): Use it, to catch bugs with trailing NULL.
38452         * lib/version-etc.c (version_etc_arn): Delete unused argument.
38453         (version_etc_va): Fix logic bug.
38454         * modules/version-etc-tests: Add test.
38455         * tests/test-version-etc.c: New file.
38456         * tests/test-version-etc.sh: Likewise.
38457
38458 2009-06-25  Sam Steingold  <sds@gnu.org>
38459
38460         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
38461         mbtowc declaration.
38462
38463 2009-06-25  Eric Blake  <ebb9@byu.net>
38464
38465         fpurge: migrate into <stdio.h>
38466         * lib/fpurge.h: Delete...
38467         * lib/stdio.in.h (fpurge): ...and declare here, instead.
38468         * lib/fpurge.c (fpurge): Change declaring header.
38469         * modules/fpurge (Files): Drop deleted file.
38470         (Depends-on): Add stdio.
38471         (configure.ac): Set witness.
38472         * modules/stdio (Makefile.am): Support fpurge macros.
38473         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38474         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
38475         * lib/fflush.c: Update client.
38476         * tests/test-fpurge.c: Likewise.
38477         * NEWS: Mention the change.
38478
38479 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38480
38481         * lib/argp-version-etc.c (program_authors): Add const
38482         qualifier.
38483         * lib/version-etc.c: Fix typos in the comments.
38484         * modules/argp-version-etc: Depends on version-etc.
38485
38486 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38487
38488         argp-version-etc: new module.
38489
38490         * lib/argp-version-etc.c: New file.
38491         * lib/argp-version-etc.h: New file.
38492         * modules/argp-version-etc: New file.
38493         * modules/argp-version-etc-tests: New file.
38494         * tests/test-argp-version-etc.c: New test.
38495         * tests/test-argp-version-etc-1.sh: New test.
38496
38497 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38498
38499         Provide additional interfaces and documentation for version-etc
38500         module.
38501
38502         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
38503         interfaces.
38504         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
38505         prototypes.
38506
38507 2009-06-24  Bruno Haible  <bruno@clisp.org>
38508
38509         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
38510         HAVE_LIB${NAME} macro.
38511         Reported by Sam Steingold <sds@gnu.org>.
38512
38513 2009-06-23  Simon Josefsson  <simon@josefsson.org>
38514
38515         * modules/hash-tests (test_hash_LDADD): Link to libintl when
38516         needed.
38517
38518 2009-06-21  Bruno Haible  <bruno@clisp.org>
38519
38520         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
38521         work.
38522         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
38523         together with LIB${NAME}, LTLIB${NAME}.
38524         Reported by Sam Steingold <sds@gnu.org>.
38525
38526 2009-06-20  Jim Meyering  <meyering@redhat.com>
38527
38528         tests: make sc_require_test_exit_idiom more generic
38529         * top/maint.mk (Exit_witness_file): New overridable variable.
38530         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
38531         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
38532
38533 2009-06-19  Jim Meyering  <meyering@redhat.com>
38534
38535         hash: reverse order of src/dst parameters in an internal interface
38536         * lib/hash.c (transfer_entries): Reverse order of parameters to
38537         put DST before SRC.  Adjust callers.
38538
38539         tests: test-hash: avoid wholesale duplication
38540         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
38541         Instead, use a loop and add a single conditional.
38542
38543         tests: test-hash: allow seed selection via a command line argument
38544         * tests/test-hash.c (get_seed): New function.
38545         (main): Use it.
38546
38547 2009-06-19  Eric Blake  <ebb9@byu.net>
38548
38549         hash: avoid memory leak on allocation failure
38550         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
38551         failure.  Factor repeated algorithm...
38552         (transfer_entries): ...into new helper routine.
38553         (hash_delete): React to hash_rehash return value.
38554
38555         hash: reduce memory pressure in hash_rehash no-op case
38556         * lib/hash.c (next_prime): Avoid overflow.
38557         (hash_initialize): Factor bucket size computation...
38558         (compute_bucket_size): ...into new helper function.
38559         (hash_rehash): Use new function and open coding to reduce memory
38560         pressure, and avoid a memory leak in USE_OBSTACK code.
38561         Reported by Jim Meyering.
38562
38563 2009-06-18  Eric Blake  <ebb9@byu.net>
38564
38565         hash: make rotation more obvious
38566         * modules/hash (Depends-on): Add bitrotate and stdint.
38567         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
38568         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
38569         (SIZE_MAX): Rely on headers for definition.
38570         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
38571         (raw_hasher): Use rotr_sz.
38572         Suggested by Jim Meyering.
38573
38574         hash: fix memory leak in last patch
38575         * lib/hash.c (hash_rehash): Avoid memory leak.
38576
38577         hash: avoid no-op rehashing
38578         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
38579
38580         hash: provide default callback functions
38581         * lib/hash.c (raw_hasher, raw_comparator): New functions.
38582         (hash_initialize): Use them as defaults.
38583         * tests/test-hash.c (main): Test this.
38584
38585         hash: minor optimization
38586         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
38587         when possible.
38588         (hash_initialize): Document this promise.
38589         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
38590         * tests/test-hash.c (hash_compare_strings): Test this.
38591
38592 2009-06-18  Bruno Haible  <bruno@clisp.org>
38593
38594         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
38595         going to be replaced anyway.
38596
38597 2009-06-18  Bruno Haible  <bruno@clisp.org>
38598
38599         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
38600         in one place.
38601         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
38602         be replaced anyway.
38603
38604 2009-06-18  Eric Blake  <ebb9@byu.net>
38605
38606         hash: check for resize before insertion
38607         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
38608         threshold before insertion, so that a pathological hash_rehash
38609         that fills every bucket can still trigger another rehash.
38610
38611 2009-06-18  Jim Meyering  <meyering@redhat.com>
38612
38613         hash-tests: add a loop around the small tests
38614         * tests/test-hash.c (main): Repeat small tests with selected
38615         small initial table sizes.
38616
38617 2009-06-17  Eric Blake  <ebb9@byu.net>
38618
38619         hash: minor cleanups
38620         * lib/hash.h (hash_entry): Make opaque, by moving...
38621         * lib/hash.c (hash_entry): ...here.
38622         (hash_insert): Clarify restrictions on what can be inserted.
38623         (hash_get_next): Clarify when it is safe to remove an element
38624         during traversal.
38625         (check_tuning): Skip verification when tuning is known safe.
38626         (hash_initialize): Clarify restrictions on tuning.
38627
38628 2009-06-17  Jim Meyering  <jim@meyering.net>
38629         and Eric Blake  <ebb9@byu.net>
38630
38631         hash-tests: new module
38632         * modules/hash-tests: New file.
38633         * tests/test-hash.c: New file.
38634
38635 2009-06-17  Eric Blake  <ebb9@byu.net>
38636
38637         strstr-simple: document new module
38638         * MODULES.html.sh: Document new module.
38639
38640         strstr, strcasestr: replace on platforms with broken memchr
38641         * modules/strstr: Split into...
38642         * modules/strstr-simple: ...new module that does not care about
38643         performance, but does care about glibc bug.
38644         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
38645         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
38646         if platform memchr is broken, per Debian bug 521737.
38647         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
38648         memchr.
38649         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
38650         * doc/posix-functions/strstr.texi (strstr): Document the fix.
38651         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
38652         * modules/mountlist (Depends-on): Add strstr-simple.
38653         * modules/gen-uni-tables (Depends-on): Likewise.
38654         * modules/argz (Depends-on): Add strstr.
38655
38656 2009-06-17  Bruno Haible  <bruno@clisp.org>
38657
38658         * modules/posix_spawn-internal (Depends-on): Add errno.
38659
38660 2009-06-17  Bruno Haible  <bruno@clisp.org>
38661
38662         Define missing ESTALE on Interix 3.5.
38663         * lib/errno.in.h (ESTALE): Assign a value if missing.
38664         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
38665         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
38666         missing.
38667         * doc/posix-headers/errno.texi: Mention the Interix bug.
38668         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
38669
38670 2009-06-15  Eric Blake  <ebb9@byu.net>
38671
38672         memchr, memchr2: add valgrind exception
38673         * lib/memchr.valgrind: New file.
38674         * lib/memchr2.valgrind: New file.
38675         * modules/memchr (Files): Distribute valgrind file.
38676         * modules/memchr2 (Files): Likewise.
38677
38678         docs: memchr is no longer obsolete
38679         * MODULES.html.sh: Move memchr from obsolete to string.h section.
38680         * lib/string.in.h (memchr): Simplify logic.
38681
38682 2009-06-14  Jim Meyering  <meyering@redhat.com>
38683
38684         link-follow: fix the "checking..." message to not mention trailing slash
38685         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
38686         never considered trailing slashes.
38687
38688 2009-06-14  Bruno Haible  <bruno@clisp.org>
38689
38690         * m4/memchr.m4: Mention also the bug on IA-64.
38691         * doc/posix-functions/memchr.texi: Likewise.
38692
38693 2009-06-12  Eric Blake  <ebb9@byu.net>
38694
38695         memchr: detect broken x86_64 and alpha implementations
38696         * modules/memchr-tests (Depends-on): Move mmap detection...
38697         * modules/memchr (Depends-on): ...here.
38698         (configure.ac): Set indicator.
38699         * lib/string.in.h (memchr): Declare replacement.
38700         * modules/string (Makefile.am): Trigger replacement.
38701         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
38702         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
38703         bugs.
38704         * doc/posix-functions/memchr.texi (memchr): Document the bug.
38705         * modules/getpagesize (License): Relax license.
38706
38707 2009-06-11  Bruno Haible  <bruno@clisp.org>
38708
38709         * lib/idpriv.h: Add more references.
38710
38711 2009-06-08  Bruno Haible  <bruno@clisp.org>
38712
38713         Tests for module 'idpriv-droptemp'.
38714         * modules/idpriv-droptemp-tests: New file.
38715         * tests/test-idpriv-droptemp.sh: New file.
38716         * tests/test-idpriv-droptemp.su.sh: New file.
38717         * tests/test-idpriv-droptemp.c: New file.
38718
38719         New module 'idpriv-droptemp'.
38720         * lib/idpriv-droptemp.c: New file.
38721         * modules/idpriv-droptemp: New file.
38722
38723 2009-06-08  Bruno Haible  <bruno@clisp.org>
38724
38725         Tests for module 'idpriv-drop'.
38726         * modules/idpriv-drop-tests: New file.
38727         * tests/test-idpriv-drop.sh: New file.
38728         * tests/test-idpriv-drop.su.sh: New file.
38729         * tests/test-idpriv-drop.c: New file.
38730
38731         New module 'idpriv-drop'.
38732         * lib/idpriv.h: New file.
38733         * lib-idpriv-drop.c: New file.
38734         * m4/idpriv.m4: New file.
38735         * modules/idpriv-drop: New file.
38736
38737 2009-06-08  Bruno Haible  <bruno@clisp.org>
38738
38739         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
38740         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38741         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38742         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38743         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38744         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38745         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38746
38747 2009-06-08  Eric Blake  <ebb9@byu.net>
38748
38749         test-strstr: use memory fence, when possible
38750         * tests/test-strstr.c (main): Use memory fence, in order to be
38751         more likely to trigger Debian bug 521737.
38752         * modules/strstr-tests (Files): Pull in additional files.
38753
38754         memchr: no longer obsolete, for wider field testing
38755         * modules/memchr (Status, Notice): Delete, this module is no
38756         longer obsolete.
38757         * modules/vasnprintf (Depends-on): Add memchr.
38758
38759 2009-06-07  Jim Meyering  <meyering@redhat.com>
38760
38761         hash: declare some functions with the warn_unused_result attribute
38762         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
38763
38764 2009-06-07  Bruno Haible  <bruno@clisp.org>
38765
38766         * tests/test-alignof.c: Don't test int64_t if it does not exist.
38767         Reported by Eric Blake.
38768
38769 2009-06-06  Eric Blake  <ebb9@byu.net>
38770
38771         test-alignof: fix typo with long double
38772         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
38773         compiler error.
38774
38775 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
38776
38777         Escape non-texinfo { and }s.
38778         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
38779         markup error.
38780
38781 2009-06-04  Jim Meyering  <meyering@redhat.com>
38782
38783         gitlog-to-changelog: don't infloop on an empty commit log
38784         * build-aux/gitlog-to-changelog: Warn about an empty log message.
38785         Reported by Boris Petersen <transacid@centerim.org>.
38786
38787 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
38788
38789         version-etc: extend for packagers
38790         Add three new configure options, intended for packagers:
38791           --with-packager="packager name"
38792           --with-packager-version="packager-specific version"
38793           --with-packager-bug-reports="packager bug reporting"
38794         An example with coreutils:
38795           $ ./configure \
38796             --with-packager=Gentoo \
38797             --with-packager-bug-report=http://bugs.gentoo.org/ \
38798             --with-packager-version="patchset 1.6"
38799           $ ./src/ls --version | head -n2
38800           ls (GNU coreutils) 7.1-dirty
38801           Packaged by Gentoo (patchset 1.6)
38802         Note that the bug reporting info via --help doesn't show up because
38803         coreutils uses its own custom emit_bug_reporting_address() implementation
38804         in src/system.h.  If it didn't, it'd look like:
38805           $ ./src/ls --help | tail -n4
38806           Report bugs to <bug-coreutils@gnu.org>.
38807           Report Gentoo bugs to <http://bugs.gentoo.org/>.
38808           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
38809           General help using GNU software: <http://www.gnu.org/gethelp/>.
38810         * lib/version-etc.c: Print new information, if provided.
38811         * m4/version-etc.m4: New file.
38812         * modules/version-etc (Files): Add m4/version-etc.m4.
38813         (configure.ac): Add gl_VERSION_ETC.
38814
38815 2009-05-31  Bruno Haible  <bruno@clisp.org>
38816
38817         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
38818         and 'int64_t'.
38819         * modules/alignof-tests (Dependencies): Add stdint.
38820         Reported by Eric Blake.
38821
38822 2009-05-31  Bruno Haible  <bruno@clisp.org>
38823
38824         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
38825         restriction due to compiler bugs.
38826         Reported by Eric Blake.
38827
38828 2009-05-31  Simon Josefsson  <simon@josefsson.org>
38829             Bruno Haible  <bruno@clisp.org>
38830
38831         Fix test-alignof failure.
38832         * lib/alignof.h (alignof_slot): New macro.
38833         (alignof_type): New macro, with the same semantics as the previous
38834         'alignof'.
38835         (alignof): Alias to alignof_slot.
38836         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
38837         check that the results are usable as constant expressions.
38838
38839 2009-05-31  Bruno Haible  <bruno@clisp.org>
38840
38841         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
38842         * tests/test-memchr.c (main): Check that memchr does not read past the
38843         first occurrence of the byte.
38844         * tests/test-strstr.c (main): Update comment.
38845         Suggested by Eric Blake.
38846
38847 2009-05-30  Bruno Haible  <bruno@clisp.org>
38848
38849         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
38850         detail how to use dumpbin.
38851         Reported by David Byron <dbyron@dbyron.com>.
38852
38853 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38854
38855         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
38856
38857 2009-06-02  Simon Josefsson  <simon@josefsson.org>
38858
38859         * m4/manywarnings.m4: Add GCC 4.4 warnings.
38860
38861 2009-05-28  Bruno Haible  <bruno@clisp.org>
38862
38863         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
38864         build-aux/ files.
38865
38866 2009-05-28  Simon Josefsson  <simon@josefsson.org>
38867
38868         * gnulib-tool (func_import): Transform license on build-aux/ files too.
38869
38870 2009-05-27  Simon Josefsson  <simon@josefsson.org>
38871
38872         * gnulib-tool (sed_transform_main_lib_file)
38873         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
38874         regexps.
38875
38876 2009-05-26  Simon Josefsson  <simon@josefsson.org>
38877
38878         * tests/test-strstr.c: Add another self-test.
38879         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
38880         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
38881
38882 2009-05-23  Bruno Haible  <bruno@clisp.org>
38883
38884         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
38885         change.
38886
38887 2009-05-21  Bruno Haible  <bruno@clisp.org>
38888
38889         Simplify use of mode_t varargs.
38890         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
38891         uses 'mode_t' or 'int'.
38892         * lib/openat.c (openat): Likewise.
38893         * lib/open-safer.c (open_safer): Likewise.
38894         * m4/mode_t.m4: New file.
38895         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
38896         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
38897         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
38898         * modules/open (Files): Add m4/mode_t.m4.
38899         * modules/openat (Files): Likewise.
38900         * modules/fcntl-safer (Files): Likewise.
38901         Suggested by Eric Blake.
38902
38903 2009-05-21  Pádraig Brady  <P@draigbrady.com>
38904
38905         * doc/glibc-functions/fallocate.texi: New file.
38906         * doc/gnulib.texi: Include it.
38907
38908 2009-05-21  Eric Blake  <ebb9@byu.net>
38909             Bruno Haible  <bruno@clisp.org>
38910
38911         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
38912         invocations.
38913         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
38914
38915 2009-05-21  Eric Blake  <ebb9@byu.net>
38916             Bruno Haible  <bruno@clisp.org>
38917
38918         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
38919         include_next. Fix of 2008-11-20 commit.
38920         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
38921         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
38922         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
38923         NEXT_MATH_H.
38924         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
38925         instead of NEXT_MATH_H.
38926
38927 2009-05-21  Bruno Haible  <bruno@clisp.org>
38928
38929         Avoid redefinition warnings for SIZE_MAX.
38930         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
38931         Reported by Simon Josefsson.
38932
38933 2009-05-21  Bruno Haible  <bruno@clisp.org>
38934
38935         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
38936         AC_CACHE_VAL.
38937
38938 2009-05-20  Bruno Haible  <bruno@clisp.org>
38939
38940         Make zeroptr.h work on mingw.
38941         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
38942         mprotect.
38943         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
38944         * modules/memchr2-tests (configure.ac): Likewise.
38945         * modules/memcmp-tests (configure.ac): Likewise.
38946         * modules/memmem-tests (configure.ac): Likewise.
38947         * modules/memrchr-tests (configure.ac): Likewise.
38948         Reported by Simon Josefsson.
38949
38950 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38951
38952         * tests/test-glob.c: Include string.h for strcmp prototype.
38953
38954 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38955
38956         * modules/getdelim (Depends-on): Add explicit stdint, although it
38957         was implicitly already pulled in via realloc-posix.
38958         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
38959
38960 2009-05-20  Simon Josefsson  <simon@josefsson.org>
38961
38962         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
38963         G. Christensen" <tgc@jupiterrise.com>.
38964         * m4/sys_socket_h.m4: Check for sa_family_t.
38965         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
38966         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
38967         * tests/test-sys_socket.c: Check that sa_family_t works.
38968
38969 2009-05-18  Eric Blake  <ebb9@byu.net>
38970
38971         maint.mk: allow gnulib_dir in VPATH build
38972         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
38973
38974 2009-05-15  Jim Meyering  <meyering@redhat.com>
38975
38976         maint.mk: Give gnulib_dir a default definition.
38977         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
38978         Thus, most packages no longer need to specify this variable in cfg.mk
38979
38980 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
38981
38982         rename.m4: fix typos that would make non-mingw cross-configure fail
38983         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
38984
38985 2009-05-13  Eric Blake  <ebb9@byu.net>
38986
38987         mmap-anon: avoid out-of-order autoconf expansion
38988         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
38989         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
38990         * modules/memchr-tests (Depends-on): Add extensions.
38991         * modules/memchr2-tests (Depends-on): Add extensions.
38992         * modules/memcmp-tests (Depends-on): Add extensions.
38993         * modules/memmem-tests (Depends-on): Add extensions.
38994         * modules/memrchr-tests (Depends-on): Add extensions.
38995
38996 2009-05-13  Bruno Haible  <bruno@clisp.org>
38997
38998         Make some tests ISO C 99 compliant.
38999         * tests/zerosize-ptr.h: New file.
39000         * tests/test-memchr.c: Include zerosize-ptr.h.
39001         (main): Use a zero-size object pointer instead of NULL.
39002         * tests/test-memchr2.c: Include zerosize-ptr.h.
39003         (main): Use a zero-size object pointer instead of NULL.
39004         * tests/test-memcmp.c: Include zerosize-ptr.h.
39005         (main): Use a zero-size object pointer instead of NULL.
39006         * tests/test-memmem.c: Include zerosize-ptr.h.
39007         (main): Use a zero-size object pointer instead of NULL.
39008         * tests/test-memrchr.c: Include zerosize-ptr.h.
39009         (main): Use a zero-size object pointer instead of NULL.
39010         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
39011         m4/mmap-anon.m4.
39012         (Depends-on): Add getpagesize.
39013         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39014         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
39015         m4/mmap-anon.m4.
39016         (Depends-on): Add getpagesize.
39017         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39018         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
39019         m4/mmap-anon.m4.
39020         (Depends-on): Add getpagesize.
39021         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39022         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
39023         m4/mmap-anon.m4.
39024         (Depends-on): Add getpagesize.
39025         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39026         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
39027         m4/mmap-anon.m4.
39028         (Depends-on): Add getpagesize.
39029         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39030
39031 2009-05-12  Bruno Haible  <bruno@clisp.org>
39032
39033         Tests for module 'alignof'.
39034         * modules/alignof-tests: New file.
39035         * tests/test-alignof.c: New file.
39036
39037 2009-05-12  Bruno Haible  <bruno@clisp.org>
39038
39039         Fix alignof macro.
39040         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
39041         vendor compilers that are always correct.
39042
39043 2009-05-12  Bruno Haible  <bruno@clisp.org>
39044
39045         Make the MAP_ANONYMOUS detection work on HP-UX 11.
39046         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
39047         not whether its fully works.
39048
39049 2009-05-12  Bruno Haible  <bruno@clisp.org>
39050
39051         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
39052
39053 2009-05-12  Jim Meyering  <meyering@redhat.com>
39054
39055         * top/maint.mk: Adjust backslash alignment.
39056
39057 2009-05-11  Simon Josefsson  <simon@josefsson.org>
39058
39059         * top/maint.mk: Make $(srcdir)/build-aux configurable.
39060
39061 2009-05-11  Eric Blake  <ebb9@byu.net>
39062
39063         argp: avoid undefined behavior
39064         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
39065         macros.
39066
39067 2009-05-08  Simon Josefsson  <simon@josefsson.org>
39068
39069         * tests/test-vc-list-files-git.sh: Do git config of user.email and
39070         user.name to prevent git commit from complaining.
39071
39072 2009-05-10  Bruno Haible  <bruno@clisp.org>
39073
39074         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
39075         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
39076         it rewrites every file name only once.
39077         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
39078
39079 2009-05-08  Bruno Haible  <bruno@clisp.org>
39080
39081         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
39082         instead of 'max'.
39083
39084 2009-05-08  Simon Josefsson  <simon@josefsson.org>
39085
39086         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
39087         sockaddr_storage test.
39088
39089 2009-05-07  Simon Josefsson  <simon@josefsson.org>
39090
39091         * modules/sys_socket (Makefile.am): Substitute
39092         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
39093         * m4/sys_socket_h.m4: Check for sockaddr_storage.
39094         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
39095         * tests/test-sys_socket.c: Check sockaddr_storage.
39096
39097 2009-05-08  Bruno Haible  <bruno@clisp.org>
39098
39099         New module 'alignof'.
39100         * lib/alignof.h: New file.
39101         * modules/alignof: New file.
39102
39103 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39104             Bruno Haible  <bruno@clisp.org>
39105
39106         Fix test-file-has-acl on FreeBSD.
39107         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
39108         mask is implicitly added.
39109         * tests/test-file-has-acl.c: Include <signal.h>.
39110         (main): Terminate the test after 5 seconds.
39111         * modules/acl-tests (configure.ac): Check for alarm function.
39112
39113 2009-05-04  Bruno Haible  <bruno@clisp.org>
39114
39115         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
39116         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
39117         * modules/errno (configure.ac): Drop AC_REQUIRE.
39118         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
39119         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
39120
39121 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39122
39123         * modules/glob-tests: New module.
39124         * tests/test-glob.c: Add.
39125
39126 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39127
39128         * modules/fnmatch-tests: New module.
39129         * tests/test-fnmatch.c: Add.
39130
39131 2009-05-04  Eric Blake  <ebb9@byu.net>
39132
39133         maint: make the new no-submodule-changes rule VPATH-safe
39134         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
39135
39136 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39137             Bruno Haible  <bruno@clisp.org>
39138
39139         acl: Fix infinite loop on FreeBSD.
39140         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
39141         of return value from acl_get_entry.
39142         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
39143         Likewise.
39144
39145 2009-05-03  Bruno Haible  <bruno@clisp.org>
39146
39147         * lib/acl-internal.h (acl_entries): Clarify return value.
39148         * lib/acl_entries.c (acl_entries): Likewise.
39149
39150 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39151
39152         Bug fix in acl module.
39153         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
39154
39155 2009-05-03  Bruno Haible  <bruno@clisp.org>
39156
39157         Create gperf-generated file in the source dir, not in the build dir.
39158         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
39159         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
39160         * modules/unicase/locale-language (unicase/locale-languages.h):
39161         Likewise.
39162         * modules/unicase/special-casing (unicase/special-casing-table.h):
39163         Likewise.
39164         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
39165         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
39166         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
39167         Reported by Ralf Wildenhues.
39168
39169 2009-05-03  Bruno Haible  <bruno@clisp.org>
39170
39171         * modules/fnmatch (Description, configure.ac): Taken from
39172         fnmatch-posix.
39173         * modules/fnmatch-posix: Turn into a symbolic reference to the
39174         'fnmatch' module, and deprecate.
39175         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
39176
39177 2009-05-03  Bruno Haible  <bruno@clisp.org>
39178
39179         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
39180         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
39181         Reported by Ralf Wildenhues.
39182
39183 2009-05-04  Simon Josefsson  <simon@josefsson.org>
39184
39185         * m4/fnmatch.m4: Fix fnmatch re-define.
39186
39187 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39188
39189         priv-set: new module and tests; adapt write-any-file
39190         * lib/priv-set.c: New file.
39191         * lib/priv-set.h: New file.
39192         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
39193         * lib/write-any-file.c: Simplify by using priv-set module.
39194         * m4/priv-set.m4: New file.
39195         * modules/priv-set: New file.
39196         * modules/unlinkdir: Add dependency on priv-set module.
39197         * modules/write-any-file: Likewise.
39198
39199         Tests for module 'priv-set'.
39200         * modules/priv-set-tests: New file.
39201         * tests/test-priv-set.c: New file.
39202
39203 2009-05-03  Jim Meyering  <meyering@redhat.com>
39204             Bruno Haible  <bruno@clisp.org>
39205
39206         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
39207         use the converted UTF-8 variant of the name instead.
39208
39209 2009-05-03  Jim Meyering  <meyering@redhat.com>
39210
39211         tests: tighten some getdate tests
39212         * tests/test-getdate.c (main): Tighten tests: require equality,
39213         not just greater than.  Set TZ envvar to UTC0.
39214
39215 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
39216
39217         getdate: correctly interpret "next monday" when run on a Monday
39218         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
39219         that e.g., "next tues" (when run on a tuesday) results in a date
39220         that is one week in the future, and not today's date.
39221         I.e., add a week when the wday is the same as the current one.
39222         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
39223         and earlier by Martin Bernreuther and Jan Minář.
39224         * tests/test-getdate.c (main): Check that "next DAY" is always in
39225         the future and that "last DAY" is always in the past.
39226
39227 2009-05-02  Jim Meyering  <meyering@redhat.com>
39228
39229         build: ensure that a release build fails when a submodule is unclean
39230         * top/maint.mk (no-submodule-changes): New rule.
39231         (alpha beta major): Depend on it.
39232
39233 2009-05-02  Bruno Haible  <bruno@clisp.org>
39234
39235         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
39236         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
39237         shell variable gl_fnmatch_required to detect which variant is
39238         requested.
39239         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
39240         gl_FUNC_FNMATCH_POSIX.
39241         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
39242         exclude fnmatch-posix.
39243
39244 2009-05-02  Bruno Haible  <bruno@clisp.org>
39245
39246         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
39247         * modules/mbsrtowcs (License): Change to LGPLv2+.
39248         * modules/strnlen1 (License): Likewise.
39249         Reported by Simon Josefsson.
39250
39251 2009-05-02  Bruno Haible  <bruno@clisp.org>
39252
39253         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
39254         "cross".
39255         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
39256         gnulib-tool was called with option --source-base=lib.
39257
39258 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39259
39260         Use automake *-local hooks without commands, for extensibility.
39261         * modules/localcharset (Makefile.am): Rename install-exec-local
39262         rule to install-exec-localcharset, and make it a prerequisite of
39263         install-exec-local.  Likewise, rename the uninstall-local rule to
39264         uninstall-localcharset, and make it a prerequisite of the former.
39265
39266 2009-05-01  Bruno Haible  <bruno@clisp.org>
39267
39268         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
39269         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39270         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
39271         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
39272         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
39273         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39274         m4/locale-zh.m4, m4/codeset.m4.
39275
39276         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
39277         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
39278         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
39279         m4/locale-zh.m4.
39280
39281         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
39282         REPLACE_WCRTOMB if mbstate_t must be replaced.
39283         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
39284         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
39285
39286 2009-05-01  Bruno Haible  <bruno@clisp.org>
39287
39288         Avoid compiler warnings when redefining macros defined by <libintl.h>.
39289         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
39290         dngettext, dcngettext, textdomain, bindtextdomain,
39291         bind_textdomain_codeset): Undefine before redefining.
39292
39293 2009-04-30  Bruno Haible  <bruno@clisp.org>
39294
39295         Fix bug introduced on 2009-04-25.
39296         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
39297         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
39298         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
39299         is defined.
39300         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
39301         is defined.
39302         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
39303         is defined.
39304         Reported by Elbert_Pol <elbert.pol@gmail.com>.
39305
39306 2009-04-28  Bruno Haible  <bruno@clisp.org>
39307
39308         Comment tweaks.
39309         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
39310         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
39311         * lib/unicase.h (u*_casexfrm): Likewise.
39312         Reported by Paolo Bonzini.
39313
39314 2009-04-28  Bruno Haible  <bruno@clisp.org>
39315
39316         Fix a compilation error.
39317         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
39318         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
39319         Reported by Jim Meyering.
39320
39321 2009-04-27  Bruno Haible  <bruno@clisp.org>
39322
39323         New module 'libunistring'.
39324         * modules/libunistring: New file.
39325         * m4/libunistring.m4: New file.
39326         * MODULES.html.sh (Unicode string functions): Add it.
39327
39328 2009-04-27  Eric Blake  <ebb9@byu.net>
39329
39330         maint.mk: allow package-specific header to provide <config.h>
39331         * top/maint.mk (sc_require_config_h): New variable.
39332         (sc_require_config_h, sc_require_config_h_first): Use it.
39333
39334 2009-04-27  Simon Josefsson  <simon@josefsson.org>
39335
39336         * top/maint.mk (sc_avoid_if_before_free): Except
39337         useless-if-before-free script.
39338
39339 2009-04-27  Eric Blake  <ebb9@byu.net>
39340
39341         maintainer-makefile: depend on all required helper scripts
39342         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
39343         useless-if-before-free.
39344         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
39345         version, rather than assuming gnulib checkout is available.
39346         Reported by Simen Josefsson.
39347
39348 2009-04-26  Bruno Haible  <bruno@clisp.org>
39349
39350         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
39351         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
39352         "../" or "..".
39353
39354 2009-04-26  Bruno Haible  <bruno@clisp.org>
39355
39356         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
39357         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
39358         AC_LIB_HAVE_LINKFLAGS.
39359
39360 2009-04-26  Bruno Haible  <bruno@clisp.org>
39361
39362         Simplify calling convention of u*_conv_from_encoding.
39363         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
39364         u32_conv_from_encoding): Expect a resultbuf argument and return the
39365         result directly as a pointer.
39366         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
39367         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
39368         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
39369         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
39370         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
39371         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39372         Update.
39373         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
39374         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
39375         * lib/vasnprintf.c (VASNPRINTF): Update.
39376         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
39377         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
39378         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
39379         * NEWS: Mention the change.
39380
39381 2009-04-26  Bruno Haible  <bruno@clisp.org>
39382
39383         Simplify calling convention of u*_conv_to_encoding.
39384         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
39385         u32_conv_to_encoding): Expect a resultbuf argument and return the
39386         result directly as a pointer.
39387         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39388         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
39389         freeing scaled_offsets if mem_iconveha failed.
39390         * lib/unicase/u-casexfrm.h (FUNC): Update.
39391         * lib/uninorm/u-normxfrm.h (FUNC): Update.
39392         * lib/vasnprintf.c (VASNPRINTF): Update.
39393         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
39394         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
39395         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
39396         * NEWS: Mention the change.
39397
39398 2009-04-26  Bruno Haible  <bruno@clisp.org>
39399
39400         Avoid test failures on AIX and OSF/1.
39401         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
39402         malloc(0).
39403         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
39404         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
39405         Likewise.
39406         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
39407         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
39408         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
39409         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
39410         * doc/posix-functions/malloc.texi: Document the portability problem
39411         related to malloc(0).
39412
39413 2009-04-26  Bruno Haible  <bruno@clisp.org>
39414
39415         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
39416         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
39417         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
39418
39419 2009-04-25  Bruno Haible  <bruno@clisp.org>
39420
39421         Avoid link error when creating a namespace clean library.
39422         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
39423         as macro with arguments if already defined as an alias.
39424         * lib/signbitf.c (gl_signbitf): Don't undefine.
39425         * lib/signbitd.c (gl_signbitd): Don't undefine.
39426         * lib/signbitl.c (gl_signbitl): Don't undefine.
39427
39428 2009-04-25  Jim Meyering  <meyering@redhat.com>
39429
39430         vc-list-files: fix another quoting bug
39431         * build-aux/vc-list-files: Avoid sed backslash expansion
39432         of pathological directory names.
39433
39434 2009-04-25  Eric Blake  <ebb9@byu.net>
39435
39436         vc-list-files: fix shell quoting error
39437         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
39438         timestamp.
39439
39440 2009-04-25  Jim Meyering  <meyering@redhat.com>
39441
39442         vc-list-files: restore lost functionality with subdir argument
39443         * build-aux/vc-list-files: When given a non-"." sub-directory
39444         argument, substitute the $dir/ prefix back onto each resulting name.
39445         Otherwise, coreutils' root_tests check would fail.
39446
39447 2009-04-24  Eric Blake  <ebb9@byu.net>
39448
39449         vc-list-files: ignore git symlinks
39450         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
39451         than ls-files, to ignore git symlinks.
39452
39453         maint.mk: import improvements from m4
39454         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
39455         (move_if_change): Delete unused macro.
39456         (news-date-check, vc-diff-check): Support VPATH builds.
39457         (announcement): Likewise.  Split --bootstrap-tools list...
39458         (boostrap-tools): ...into separate list, which can be overridden
39459         in cfg.mk.
39460         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
39461         requiring dependency on useless-if-before-free module.
39462         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
39463         Support VPATH builds.
39464
39465 2009-04-24  Jim Meyering  <meyering@redhat.com>
39466
39467         maint.mk: remove coreutils-specific rules and variables
39468         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
39469         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
39470         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
39471
39472         maint.mk: remove obsolete rule
39473         * top/maint.mk (rel-check): Remove rule.
39474         (WGET, WGETFLAGS): Remove now-unused variables.
39475
39476 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39477
39478         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
39479         consistency.
39480
39481         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
39482         '$(PATH_SEPARATOR)' instead of ':'.
39483
39484 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39485
39486         * lib/getopt1.c (main): Use 'const' for static array.
39487
39488 2009-04-24  Simon Josefsson  <simon@josefsson.org>
39489
39490         * top/maint.mk: Sync with coreutils.
39491         * NEWS: Explain incompatibilities.
39492
39493 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
39494             Bruno Haible  <bruno@clisp.org>
39495
39496         Fix cross-compilation results.
39497         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
39498         statement, as third argument of AC_TRY_RUN.
39499         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
39500         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
39501         Likewise.
39502         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
39503         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
39504         Likewise.
39505         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
39506         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
39507         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
39508
39509 2009-04-20  Bruno Haible  <bruno@clisp.org>
39510
39511         Avoid test failure on mingw.
39512         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
39513
39514 2009-04-20  Bruno Haible  <bruno@clisp.org>
39515
39516         Avoid compilation error on mingw.
39517         * modules/localename-tests (Depends-on): Add locale.
39518
39519 2009-04-19  Bruno Haible  <bruno@clisp.org>
39520
39521         Support for building a shared library on Windows platforms.
39522         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
39523         (main): Test the presence of UNINORM_NFC here.
39524         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
39525         (main): Test the presence of UNINORM_NFD here.
39526         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
39527         (main): Test the presence of UNINORM_NFKC here.
39528         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
39529         (main): Test the presence of UNINORM_NFKD here.
39530
39531 2009-04-19  Bruno Haible  <bruno@clisp.org>
39532
39533         Avoid a compiler warning.
39534         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
39535         Change type of variable 'sequence'.
39536
39537 2009-04-19  Bruno Haible  <bruno@clisp.org>
39538
39539         * modules/configmake (Makefile.am): When the contents of configmake.h
39540         does not change, arrange to preserve its modification time.
39541
39542 2009-04-17  Simon Josefsson  <simon@josefsson.org>
39543
39544         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
39545         gettext domain.
39546
39547 2009-04-16  Jim Meyering  <meyering@redhat.com>
39548
39549         useless-if-before-free: improve conversion code
39550         * build-aux/useless-if-before-free: Adjust code-in-comment to match
39551         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
39552
39553 2009-04-14  Bruno Haible  <bruno@clisp.org>
39554
39555         * modules/fcntl (Depends-on): Add extensions.
39556         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
39557
39558 2009-04-12  Ben Pfaff  <blp@gnu.org>
39559
39560         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
39561         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
39562
39563 2009-03-20  Ben Pfaff  <blp@gnu.org>
39564
39565         Make rename replace existing destinations on Windows.
39566         * m4/rename.m4: Add test for Mingw.
39567         * lib/rename.c: Add rename replacement that uses MoveFileEx with
39568         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
39569         * doc/posix-functions/rename.texi: Document.
39570
39571 2009-04-10  Bruno Haible  <bruno@clisp.org>
39572
39573         New include file "iconveh.h".
39574         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
39575         * lib/striconveh.h: Include it.
39576         (enum iconv_ilseq_handler): Remove definition.
39577         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
39578         striconveh.h.
39579         * lib/striconveha.c: Include striconveh.h.
39580         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
39581         * modules/striconveh (Files): Add lib/iconveh.h.
39582         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
39583         lib/striconveh.h.
39584
39585 2009-04-10  Bruno Haible  <bruno@clisp.org>
39586
39587         * lib/uniconv.h: Update comment.
39588
39589 2009-04-10  Bruno Haible  <bruno@clisp.org>
39590
39591         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
39592         always.
39593         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
39594         * lib/unistr/u16-mbtouc-aux.c: Likewise.
39595         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
39596         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
39597         "unistring-notinline.h", so that the function gets defined always.
39598         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
39599         * lib/unistr/u8-uctomb.c: Likewise.
39600         * lib/unistr/u16-mbtouc.c: Likewise.
39601         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
39602         * lib/unistr/u16-uctomb.c: Likewise.
39603         * lib/unistr/u32-mbtouc.c: Likewise.
39604         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
39605         * lib/unistr/u32-uctomb.c: Likewise.
39606
39607 2009-04-10  Bruno Haible  <bruno@clisp.org>
39608
39609         Mark 'utime' obsolete.
39610         * modules/utime (Status, Notice): New sections.
39611         Suggested by Jim Meyering.
39612
39613         Fix cross-compile guess for utime test.
39614         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
39615         autoconf.
39616         * doc/posix-functions/utime.texi: Give more precisions.
39617         Reported by Jan <ipif@ymail.com>.
39618
39619 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
39620
39621         filevercmp: correct today's change
39622         * lib/filevercmp.c: Also handle coreutils' test inputs.
39623         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
39624
39625         Fix regression in 'filevercmp' module. Thanks Sven Joachim
39626         for reporting it.
39627         * lib/filevercmp.c: Special handle for "", "." and "..".
39628         * tests/test-filevercmp.c: Enlarge the set suite.
39629
39630 2009-04-07  Jim Meyering  <meyering@redhat.com>
39631
39632         useless-if-before-free: show how to remove braced useless free, too
39633         * build-aux/useless-if-before-free: still only in a comment, though.
39634
39635 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
39636
39637         maint.mk: import changes to syntax-check macros from coreutils
39638         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
39639         Use them in the relevant macros.
39640
39641 2009-04-06  Bruno Haible  <bruno@clisp.org>
39642
39643         Fix unportable use of bit-fields.
39644         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
39645         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
39646         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
39647
39648 2009-04-06  Bruno Haible  <bruno@clisp.org>
39649
39650         Avoid test failures on AIX and OSF/1.
39651         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
39652         that malloc(0) = NULL.
39653         * tests/unicase/test-u8-tolower.c (check): Likewise.
39654         * tests/unicase/test-u8-totitle.c (check): Likewise.
39655         * tests/unicase/test-u8-toupper.c (check): Likewise.
39656         * tests/unicase/test-u16-casefold.c (check): Likewise.
39657         * tests/unicase/test-u16-tolower.c (check): Likewise.
39658         * tests/unicase/test-u16-totitle.c (check): Likewise.
39659         * tests/unicase/test-u16-toupper.c (check): Likewise.
39660         * tests/unicase/test-u32-casefold.c (check): Likewise.
39661         * tests/unicase/test-u32-tolower.c (check): Likewise.
39662         * tests/unicase/test-u32-totitle.c (check): Likewise.
39663         * tests/unicase/test-u32-toupper.c (check): Likewise.
39664         * tests/uninorm/test-u8-nfc.c (check): Likewise.
39665         * tests/uninorm/test-u8-nfd.c (check): Likewise.
39666         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
39667         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
39668         * tests/uninorm/test-u16-nfc.c (check): Likewise.
39669         * tests/uninorm/test-u16-nfd.c (check): Likewise.
39670         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
39671         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
39672         * tests/uninorm/test-u32-nfc.c (check): Likewise.
39673         * tests/uninorm/test-u32-nfd.c (check): Likewise.
39674         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
39675         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
39676
39677 2009-04-05  Bruno Haible  <bruno@clisp.org>
39678
39679         Work around an autoconf limitation.
39680         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
39681         comment line if it would be longer than 3 KB.
39682
39683 2009-04-05  Bruno Haible  <bruno@clisp.org>
39684
39685         Avoid test failure with libiconv-1.13.
39686         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
39687         of the expected test results.
39688
39689 2009-04-05  Bruno Haible  <bruno@clisp.org>
39690
39691         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
39692         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
39693         that it should be installed.
39694
39695 2009-04-05  Bruno Haible  <bruno@clisp.org>
39696
39697         * gnulib-tool: New option --copy-file.
39698         (func_usage): Document it.
39699         (func_dest_tmpfilename): Moved out of func_import.
39700         (func_add_file, func_update_file): New functions, extracted from
39701         func_import.
39702         (func_import): Update.
39703
39704 2009-04-05  Karl Berry  <karl@gnu.org>
39705
39706         * README: prominently mention gnulib-tool.
39707         Rearrange sections so getting the code is near the top.
39708
39709 2009-04-05  Bruno Haible  <bruno@clisp.org>
39710
39711         * lib/unicase.h: Mention u*_cmp2.
39712         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39713         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
39714         * lib/unicase/ulc-casecmp.c: Likewise.
39715         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
39716         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
39717         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
39718         unistr/u8-cmp.
39719         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
39720         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
39721         unistr/u16-cmp.
39722         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
39723         unistr/u32-cmp.
39724
39725         * lib/uninorm.h: Mention u*_cmp2.
39726         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
39727         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
39728         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
39729         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
39730         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
39731         unistr/u8-cmp.
39732         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
39733         unistr/u16-cmp.
39734         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
39735         unistr/u32-cmp.
39736
39737         New module 'unistr/u32-cmp2'.
39738         * lib/unistr/u32-cmp2.c: New file.
39739         * modules/unistr/u32-cmp2: New file.
39740
39741         New module 'unistr/u16-cmp2'.
39742         * lib/unistr/u16-cmp2.c: New file.
39743         * modules/unistr/u16-cmp2: New file.
39744
39745         New module 'unistr/u8-cmp2'.
39746         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
39747         * lib/unistr/u8-cmp2.c: New file.
39748         * lib/unistr/u-cmp2.h: New file.
39749         * modules/unistr/u8-cmp2: New file.
39750
39751 2009-04-05  Bruno Haible  <bruno@clisp.org>
39752
39753         * lib/unictype.h (uc_property_is_valid): New macro.
39754         * tests/unictype/test-pr_byname.c (main): Use it.
39755
39756         * lib/unistr.h: Doc fixes.
39757         * lib/uniconv.h: Doc fixes.
39758         * lib/unictype.h: Doc fixes.
39759
39760 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
39761
39762         Port coreutils 7.2 to Solaris 8.
39763
39764         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
39765         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
39766         for Solaris 8.  This is a bit of a hack, as it means it's the
39767         caller's responsibility to add -lnsl if needed, but most likely it
39768         won't be needed since only getaddrinfo uses this and getaddrinfo
39769         isn't needed on Solaris 8.
39770
39771         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
39772         problem to Solaris 8 encountered with coreutils 7.2, which
39773         resulted in a message "fnmatch.c:292: warning: passing argument 4
39774         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
39775         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
39776
39777 2009-04-03  Simon Josefsson  <simon@josefsson.org>
39778
39779         * m4/ld-version-script.m4: Add FIXME comment.
39780
39781 2009-04-02  Simon Josefsson  <simon@josefsson.org>
39782
39783         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
39784         SOVERSION variable.
39785
39786 2009-04-02  Bruno Haible  <bruno@clisp.org>
39787
39788         * Makefile (info, html, dvi, pdf): Combine the rules.
39789         Suggested by Jim Meyering.
39790
39791 2009-04-01  Bruno Haible  <bruno@clisp.org>
39792
39793         * Makefile (info, html, dvi, pdf): New targets.
39794         Reported by Reuben Thomas <rrt@sc3d.org>.
39795
39796 2009-04-01  Bruno Haible  <bruno@clisp.org>
39797
39798         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
39799         can be put into PATH.
39800         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
39801
39802 2009-04-01  Bruno Haible  <bruno@clisp.org>
39803
39804         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
39805
39806 2009-04-01  Bruno Haible  <bruno@clisp.org>
39807
39808         Rename module 'visibility'.
39809         * modules/lib-symbol-visibility: Renamed from modules/visibility.
39810         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
39811         * doc/gnulib.texi: Update.
39812         * MODULES.html.sh (Misc): Update.
39813         * NEWS: Mention the change.
39814
39815 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39816
39817         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
39818         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
39819         Eric Blake <ebb9@byu.net> for review.
39820         * MODULES.html.sh: Add lib-msvc-compat.
39821         * doc/gnulib.texi: Link to new section.
39822         * m4/ld-output-def.m4: New file.
39823         * doc/ld-output-def.texi: New file.
39824
39825 2009-04-01  Simon Josefsson  <simon@josefsson.org>
39826
39827         Rename ld-version-script to lib-symbol-versions.  Suggested by
39828         Bruno Haible <bruno@clisp.org>.
39829         * modules/ld-version-script: Renamed to lib-symbol-versions.
39830         * doc/ld-version-script.texi: Fix module name.
39831         * MODULES.html.sh: Add lib-symbol-versions.
39832
39833 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39834
39835         * modules/u64-tests: New file.
39836         * tests/test-u64.c: New file.
39837
39838 2009-03-04  Simon Josefsson  <simon@josefsson.org>
39839
39840         * MODULES.html.sh: Mention u64.
39841         * modules/u64: New module.
39842         * modules/crypto/sha512: Depend on u64 module instead of providing
39843         u64.h.
39844
39845 2009-03-27  Eric Blake  <ebb9@byu.net>
39846
39847         test-strerror: make debugging EAI_SYSTEM easier
39848         * modules/getaddrinfo-tests (Depends-on): Add strerror.
39849         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
39850         failure was EAI_SYSTEM.
39851
39852 2009-03-25  Bruno Haible  <bruno@clisp.org>
39853
39854         Fix a problem with --enable-relocatable on Solaris 7.
39855         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
39856         since 2008-02-24.
39857
39858 2009-03-25  Eric Blake  <ebb9@byu.net>
39859
39860         test-sockets: avoid gcc warning
39861         * tests/test-sockets.c (main): Silence compiler warning.
39862
39863 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
39864
39865         New modules nproc, pthread, contributed by Glen Lenker.
39866
39867         * MODULES.html.sh: Add pthread, nproc.
39868         * lib/nproc.c: New file.
39869         * lib/nproc.h: New file.
39870         * lib/pthread.in.h: New file.
39871         * m4/pthread.m4: New file.
39872         * modules/nproc: New file.
39873         * modules/pthread: New file.
39874
39875 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39876
39877         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
39878         New variable.
39879
39880 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
39881
39882         filevercmp: handle simple~ and numbered.~3~ backup suffixes
39883         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
39884         * tests/test-filevercmp.c: Add tests for backup suffixes.
39885
39886 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39887
39888         * modules/stdlib (Depends-on): Add stdint, needed when defining
39889         struct random_data on, for example, HP-UX 10.20.  Reported by
39890         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39891
39892 2009-03-24  Simon Josefsson  <simon@josefsson.org>
39893
39894         * lib/readline.c (readline): Call fflush on stdout after printing
39895         prompt.
39896
39897 2009-03-20  Bruno Haible  <bruno@clisp.org>
39898
39899         Remove dependency from 'close' module to -lws2_32 on native Windows.
39900         * lib/close-hook.h: New file.
39901         * lib/close-hook.c: New file.
39902         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
39903         w32sock.h.
39904         (_gl_close_fd_maybe_socket): Remove function.
39905         (rpl_close): Invoke execute_all_close_hooks instead of
39906         _gl_close_fd_maybe_socket.
39907         * lib/sockets.c: Include close-hook.h, w32sock.h.
39908         (close_fd_maybe_socket): New function, essentially from lib/close.c.
39909         (close_sockets_hook): New variable.
39910         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
39911         (gl_sockets_cleanup): Unregister it.
39912         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
39913         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
39914         * modules/close-hook: New file.
39915         * modules/close (Files): Remove lib/w32sock.h.
39916         (Depends-on): Add close-hook.
39917         (Link): Remove section.
39918         * modules/sockets (Files): Add lib/w32sock.h.
39919         (Depends-on): Add close-hook.
39920         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
39921         invocation.
39922         * NEWS: Mention that LIB_CLOSE is gone.
39923
39924 2009-03-23  Eric Blake  <ebb9@byu.net>
39925
39926         signal-tests: test previous patch
39927         * tests/test-signal.c: New file.
39928         * modules/signal-tests: Likewise.
39929
39930         signal.h: always support 'volatile sig_atomic_t'
39931         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
39932         (gl_SIGNAL_H_DEFAULTS): Add a default.
39933         * modules/signal (Makefile.am): Substitute if needed.
39934         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
39935         users can blindly add volatile.
39936         * doc/posix-headers/signal.texi (signal.h): Document it.
39937         Reported by Matthew Woehlke.
39938
39939 2009-03-23  Jim Meyering  <meyering@redhat.com>
39940
39941         pathmax: PATH_MAX: use pathconf only when available
39942         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
39943         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
39944         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
39945         This avoids a link failure in a PSP cross-compilation environment
39946         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
39947
39948         * lib/vasnprintf.c (divide): Fix typo in comment.
39949
39950 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39951
39952         * gnulib-tool (func_filter_filelist): Fix comment.
39953
39954 2009-03-20  Bruno Haible  <bruno@clisp.org>
39955
39956         Make sockets.h self-contained.
39957         * lib/sockets.c: Include sockets.h first.
39958         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
39959
39960 2009-03-19  Eric Blake  <ebb9@byu.net>
39961
39962         doc: mention more functions added in cygwin 1.7.0
39963         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
39964         addition.
39965         * doc/posix-functions/log2f.texi: Likewise.
39966
39967 2009-03-19  Jim Meyering  <meyering@redhat.com>
39968
39969         fsusage: avoid syntax error due to statement-before-declaration
39970         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
39971         after all declarations.  Reported by Matthew Woehlke in
39972         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
39973
39974 2009-03-18  Eric Blake  <ebb9@byu.net>
39975
39976         build-aux/compile: sync from automake
39977         * build-aux/compile: New file, from automake.
39978         * config/srclist.txt: Mention build-aux/compile.
39979
39980 2009-03-17  Bruno Haible  <bruno@clisp.org>
39981
39982         * lib/git-merge-changelog.c: Fix typo in comment.
39983         Reported by Reuben Thomas <rrt@sc3d.org>.
39984
39985 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
39986
39987         * m4/regex.m4: update and improve help for
39988         --without-included-regex.
39989
39990 2009-03-17  Simon Josefsson  <simon@josefsson.org>
39991
39992         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
39993         failure on missing include files.
39994
39995 2009-03-17  Eric Blake  <ebb9@byu.net>
39996
39997         doc: mention more functions added in cygwin 1.7.0
39998         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
39999         addition.
40000         * doc/posix-functions/fwscanf.texi: Likewise.
40001         * doc/posix-functions/swprintf.texi: Likewise.
40002         * doc/posix-functions/swscanf.texi: Likewise.
40003         * doc/posix-functions/vfwprintf.texi: Likewise.
40004         * doc/posix-functions/vfwscanf.texi: Likewise.
40005         * doc/posix-functions/vswprintf.texi: Likewise.
40006         * doc/posix-functions/vswscanf.texi: Likewise.
40007         * doc/posix-functions/vwprintf.texi: Likewise.
40008         * doc/posix-functions/vwscanf.texi: Likewise.
40009         * doc/posix-functions/wcscasecmp.texi: Likewise.
40010         * doc/posix-functions/wcsdup.texi: Likewise.
40011         * doc/posix-functions/wcsftime.texi: Likewise.
40012         * doc/posix-functions/wcsncasecmp.texi: Likewise.
40013         * doc/posix-functions/wprintf.texi: Likewise.
40014         * doc/posix-functions/wscanf.texi: Likewise.
40015         * doc/glibc-functions/gethostbyname2.texi: Likewise.
40016
40017 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40018
40019         maint.mk: really add $(AM_MAKEFLAGS)
40020         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
40021         was inadvertently omitted in the last commit.
40022         Spotted by Bruno Haible.
40023
40024         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
40025         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
40026         $(AM_MAKEFLAGS)' rather than plain `make'.
40027
40028         gnulib-tool: execute $MAKE not make
40029         * gnulib-tool: Default $MAKE to 'make'.
40030         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
40031         than make.  Initialize $MAKE in the do-autobuild script.
40032
40033         gnulib-tool: use $MAKE not make in generated files
40034         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
40035         make, in generated files.  Initialize $MAKE in the do-autobuild
40036         script.
40037
40038         * top/GNUmakefile (_have-git-version-gen): Fix typo.
40039
40040         GNUmakefile: disable parallelism only for multiple, recursive targets
40041         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
40042         additions in the Makefile.
40043         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
40044         by Automake.
40045         (.NOTPARALLEL): Only disable parallel builds if multiple targets
40046         are listed on the command line and at least one of them is
40047         listed in $(ALL_RECURSIVE_TARGETS).
40048
40049 2009-03-14  Bruno Haible  <bruno@clisp.org>
40050
40051         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
40052         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
40053         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
40054         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
40055         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
40056         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
40057         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
40058         unistr/u8-uctomb.
40059         * modules/unistr/u8-strchr (Depends-on): Likewise.
40060         * modules/unistr/u8-strrchr (Depends-on): Likewise.
40061         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
40062         unistr/u16-uctomb.
40063         * modules/unistr/u16-strchr (Depends-on): Likewise.
40064         * modules/unistr/u16-strrchr (Depends-on): Likewise.
40065
40066 2009-03-12  Bruno Haible  <bruno@clisp.org>
40067
40068         Work around select() bug on Interix 3.5.
40069         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
40070         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
40071         * m4/select.m4: New file.
40072         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
40073         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
40074         * modules/select (Files): Add m4/select.m4.
40075         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
40076         * modules/nanosleep (Depends-on): Add select.
40077         * modules/poll (Depends-on): Likewise.
40078         * doc/posix-functions/select.texi: Mention the Interix bug.
40079         Reported by Markus Duft <mduft@gentoo.org>.
40080
40081         * lib/select.c: Renamed from lib/winsock-select.c.
40082         * modules/select (Files): Add lib/select.c, remove
40083         lib/winsock-select.c.
40084         (configure.ac): Update.
40085
40086 2009-03-12  Jim Meyering  <meyering@redhat.com>
40087
40088         avoid gcc warnings about unused macro definitions
40089         * lib/readtokens.c (STREQ): Remove unused definition.
40090         * lib/xmalloc.c (SIZE_MAX): Likewise.
40091         * lib/openat-die.c (N_): Likewise.
40092         * lib/mountlist.c (SIZE_MAX): Remove definition.
40093         Instead, include <stdint.h>.
40094         * lib/readutmp.c: Likewise.
40095         * modules/readutmp (Depends-on): Add stdint.
40096         * modules/mountlist (Depends-on): Add stdint.
40097         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
40098
40099 2009-03-10  Bruno Haible  <bruno@clisp.org>
40100
40101         Tests for module 'mbmemcasecoll'.
40102         * modules/mbmemcasecoll-tests: New file.
40103         * tests/test-mbmemcasecoll1.sh: New file.
40104         * tests/test-mbmemcasecoll2.sh: New file.
40105         * tests/test-mbmemcasecoll3.sh: New file.
40106         * tests/test-mbmemcasecoll.c: New file.
40107
40108         New module 'mbmemcasecoll'.
40109         * lib/mbmemcasecoll.h: New file.
40110         * lib/mbmemcasecoll.c: New file.
40111         * modules/mbmemcasecoll: New file.
40112
40113         * tests/test-mbmemcasecmp.h: New file, extracted from
40114         tests/test-mbmemcasecmp.c.
40115         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
40116         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
40117         (main): Update.
40118         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
40119
40120 2009-03-09  Bruno Haible  <bruno@clisp.org>
40121
40122         Tests for module 'mbmemcasecmp'.
40123         * modules/mbmemcasecmp-tests: New file.
40124         * tests/test-mbmemcasecmp1.sh: New file.
40125         * tests/test-mbmemcasecmp2.sh: New file.
40126         * tests/test-mbmemcasecmp3.sh: New file.
40127         * tests/test-mbmemcasecmp.c: New file.
40128
40129         New module 'mbmemcasecmp'.
40130         * lib/mbmemcasecmp.h: New file.
40131         * lib/mbmemcasecmp.c: New file.
40132         * modules/mbmemcasecmp: New file.
40133
40134 2009-03-09  Bruno Haible  <bruno@clisp.org>
40135
40136         Tests for module 'unicase/ulc-casecoll'.
40137         * modules/unicase/ulc-casecoll-tests: New file.
40138         * tests/unicase/test-ulc-casecoll1.sh: New file.
40139         * tests/unicase/test-ulc-casecoll2.sh: New file.
40140         * tests/unicase/test-ulc-casecoll.c: New file.
40141
40142         New module 'unicase/ulc-casecoll'.
40143         * lib/unicase.h (ulc_casecoll): New declaration.
40144         * lib/unicase/ulc-casecoll.c: New file.
40145         * modules/unicase/ulc-casecoll: New file.
40146
40147         New module 'unicase/ulc-casexfrm'.
40148         * lib/unicase.h (ulc_casexfrm): New declaration.
40149         * lib/unicase/ulc-casexfrm.c: New file.
40150         * modules/unicase/ulc-casexfrm: New file.
40151
40152 2009-03-09  Bruno Haible  <bruno@clisp.org>
40153
40154         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
40155         invocations.
40156
40157         * m4/mbscasecmp.m4: Remove file.
40158         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
40159         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
40160
40161         * m4/mbscasestr.m4: Remove file.
40162         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
40163         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
40164
40165         * m4/mbschr.m4: Remove file.
40166         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
40167         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
40168
40169         * m4/mbscspn.m4: Remove file.
40170         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
40171         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
40172
40173         * m4/mbslen.m4: Remove file.
40174         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
40175         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
40176
40177         * m4/mbsncasecmp.m4: Remove file.
40178         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
40179         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
40180
40181         * m4/mbsnlen.m4: Remove file.
40182         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
40183         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
40184
40185         * m4/mbspbrk.m4: Remove file.
40186         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
40187         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
40188
40189         * m4/mbspcasecmp.m4: Remove file.
40190         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
40191         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
40192
40193         * m4/mbsrchr.m4: Remove file.
40194         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
40195         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
40196
40197         * m4/mbssep.m4: Remove file.
40198         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
40199         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
40200
40201         * m4/mbsspn.m4: Remove file.
40202         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
40203         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
40204
40205         * m4/mbsstr.m4: Remove file.
40206         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
40207         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
40208
40209         * m4/mbstok_r.m4: Remove file.
40210         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
40211         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
40212
40213         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
40214
40215         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
40216         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
40217
40218         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
40219
40220 2009-03-08  Bruno Haible  <bruno@clisp.org>
40221
40222         Tests for module 'unicase/ulc-casecmp'.
40223         * modules/unicase/ulc-casecmp-tests: New file.
40224         * tests/unicase/test-ulc-casecmp1.sh: New file.
40225         * tests/unicase/test-ulc-casecmp2.sh: New file.
40226         * tests/unicase/test-ulc-casecmp.c: New file.
40227
40228         New module 'unicase/ulc-casecmp'.
40229         * lib/unicase.h (ulc_casecmp): New declaration.
40230         * lib/unicase/ulc-casecmp.c: New file.
40231         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
40232         'const SRC_UNIT *'.
40233         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
40234         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
40235         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
40236         * modules/unicase/ulc-casecmp: New file.
40237
40238         Tests for module 'unicase/u32-is-cased'.
40239         * modules/unicase/u32-is-cased-tests: New file.
40240         * tests/unicase/test-u32-is-cased.c: New file.
40241
40242         Tests for module 'unicase/u16-is-cased'.
40243         * modules/unicase/u16-is-cased-tests: New file.
40244         * tests/unicase/test-u16-is-cased.c: New file.
40245
40246         Tests for module 'unicase/u8-is-cased'.
40247         * modules/unicase/u8-is-cased-tests: New file.
40248         * tests/unicase/test-u8-is-cased.c: New file.
40249         * tests/unicase/test-is-cased.h: New file.
40250
40251         New module 'unicase/u32-is-cased'.
40252         * lib/unicase/u32-is-cased.c: New file.
40253         * modules/unicase/u32-is-cased: New file.
40254
40255         New module 'unicase/u16-is-cased'.
40256         * lib/unicase/u16-is-cased.c: New file.
40257         * modules/unicase/u16-is-cased: New file.
40258
40259         New module 'unicase/u8-is-cased'.
40260         * lib/unicase/u8-is-cased.c: New file.
40261         * lib/unicase/u-is-cased.h: New file.
40262         * modules/unicase/u8-is-cased: New file.
40263
40264         Tests for module 'unicase/u32-is-casefolded'.
40265         * modules/unicase/u32-is-casefolded-tests: New file.
40266         * tests/unicase/test-u32-is-casefolded.c: New file.
40267
40268         Tests for module 'unicase/u16-is-casefolded'.
40269         * modules/unicase/u16-is-casefolded-tests: New file.
40270         * tests/unicase/test-u16-is-casefolded.c: New file.
40271
40272         Tests for module 'unicase/u8-is-casefolded'.
40273         * modules/unicase/u8-is-casefolded-tests: New file.
40274         * tests/unicase/test-u8-is-casefolded.c: New file.
40275         * tests/unicase/test-is-casefolded.h: New file.
40276
40277         New module 'unicase/u32-is-casefolded'.
40278         * lib/unicase/u32-is-casefolded.c: New file.
40279         * modules/unicase/u32-is-casefolded: New file.
40280
40281         New module 'unicase/u16-is-casefolded'.
40282         * lib/unicase/u16-is-casefolded.c: New file.
40283         * modules/unicase/u16-is-casefolded: New file.
40284
40285         New module 'unicase/u8-is-casefolded'.
40286         * lib/unicase/u8-is-casefolded.c: New file.
40287         * modules/unicase/u8-is-casefolded: New file.
40288
40289         Tests for module 'unicase/u32-is-titlecase'.
40290         * modules/unicase/u32-is-titlecase-tests: New file.
40291         * tests/unicase/test-u32-is-titlecase.c: New file.
40292
40293         Tests for module 'unicase/u16-is-titlecase'.
40294         * modules/unicase/u16-is-titlecase-tests: New file.
40295         * tests/unicase/test-u16-is-titlecase.c: New file.
40296
40297         Tests for module 'unicase/u8-is-titlecase'.
40298         * modules/unicase/u8-is-titlecase-tests: New file.
40299         * tests/unicase/test-u8-is-titlecase.c: New file.
40300         * tests/unicase/test-is-titlecase.h: New file.
40301
40302         New module 'unicase/u32-is-titlecase'.
40303         * lib/unicase/u32-is-titlecase.c: New file.
40304         * modules/unicase/u32-is-titlecase: New file.
40305
40306         New module 'unicase/u16-is-titlecase'.
40307         * lib/unicase/u16-is-titlecase.c: New file.
40308         * modules/unicase/u16-is-titlecase: New file.
40309
40310         New module 'unicase/u8-is-titlecase'.
40311         * lib/unicase/u8-is-titlecase.c: New file.
40312         * modules/unicase/u8-is-titlecase: New file.
40313
40314         Tests for module 'unicase/u32-is-lowercase'.
40315         * modules/unicase/u32-is-lowercase-tests: New file.
40316         * tests/unicase/test-u32-is-lowercase.c: New file.
40317
40318         Tests for module 'unicase/u16-is-lowercase'.
40319         * modules/unicase/u16-is-lowercase-tests: New file.
40320         * tests/unicase/test-u16-is-lowercase.c: New file.
40321
40322         Tests for module 'unicase/u8-is-lowercase'.
40323         * modules/unicase/u8-is-lowercase-tests: New file.
40324         * tests/unicase/test-u8-is-lowercase.c: New file.
40325         * tests/unicase/test-is-lowercase.h: New file.
40326
40327         New module 'unicase/u32-is-lowercase'.
40328         * lib/unicase/u32-is-lowercase.c: New file.
40329         * modules/unicase/u32-is-lowercase: New file.
40330
40331         New module 'unicase/u16-is-lowercase'.
40332         * lib/unicase/u16-is-lowercase.c: New file.
40333         * modules/unicase/u16-is-lowercase: New file.
40334
40335         New module 'unicase/u8-is-lowercase'.
40336         * lib/unicase/u8-is-lowercase.c: New file.
40337         * modules/unicase/u8-is-lowercase: New file.
40338
40339         Tests for module 'unicase/u32-is-uppercase'.
40340         * modules/unicase/u32-is-uppercase-tests: New file.
40341         * tests/unicase/test-u32-is-uppercase.c: New file.
40342
40343         Tests for module 'unicase/u16-is-uppercase'.
40344         * modules/unicase/u16-is-uppercase-tests: New file.
40345         * tests/unicase/test-u16-is-uppercase.c: New file.
40346
40347         Tests for module 'unicase/u8-is-uppercase'.
40348         * modules/unicase/u8-is-uppercase-tests: New file.
40349         * tests/unicase/test-u8-is-uppercase.c: New file.
40350         * tests/unicase/test-is-uppercase.h: New file.
40351
40352         New module 'unicase/u32-is-uppercase'.
40353         * lib/unicase/u32-is-uppercase.c: New file.
40354         * modules/unicase/u32-is-uppercase: New file.
40355
40356         New module 'unicase/u16-is-uppercase'.
40357         * lib/unicase/u16-is-uppercase.c: New file.
40358         * modules/unicase/u16-is-uppercase: New file.
40359
40360         New module 'unicase/u8-is-uppercase'.
40361         * lib/unicase/u8-is-uppercase.c: New file.
40362         * modules/unicase/u8-is-uppercase: New file.
40363
40364         New module 'unicase/u32-is-invariant'.
40365         * lib/unicase/u32-is-invariant.c: New file.
40366         * modules/unicase/u32-is-invariant: New file.
40367
40368         New module 'unicase/u16-is-invariant'.
40369         * lib/unicase/u16-is-invariant.c: New file.
40370         * modules/unicase/u16-is-invariant: New file.
40371
40372         New module 'unicase/u8-is-invariant'.
40373         * lib/unicase/u8-is-invariant.c: New file.
40374         * lib/unicase/invariant.h: New file.
40375         * lib/unicase/u-is-invariant.h: New file.
40376         * modules/unicase/u8-is-invariant: New file.
40377
40378         Tests for module 'unicase/u32-casecoll'.
40379         * modules/unicase/u32-casecoll-tests: New file.
40380         * tests/unicase/test-u32-casecoll.c: New file.
40381
40382         Tests for module 'unicase/u16-casecoll'.
40383         * modules/unicase/u16-casecoll-tests: New file.
40384         * tests/unicase/test-u16-casecoll.c: New file.
40385
40386         Tests for module 'unicase/u8-casecoll'.
40387         * modules/unicase/u8-casecoll-tests: New file.
40388         * tests/unicase/test-u8-casecoll.c: New file.
40389
40390         New module 'unicase/u32-casecoll'.
40391         * lib/unicase/u32-casecoll.c: New file.
40392         * modules/unicase/u32-casecoll: New file.
40393
40394         New module 'unicase/u16-casecoll'.
40395         * lib/unicase/u16-casecoll.c: New file.
40396         * modules/unicase/u16-casecoll: New file.
40397
40398         New module 'unicase/u8-casecoll'.
40399         * lib/unicase/u8-casecoll.c: New file.
40400         * lib/unicase/u-casecoll.h: New file.
40401         * modules/unicase/u8-casecoll: New file.
40402
40403         New module 'unicase/u32-casexfrm'.
40404         * lib/unicase/u32-casexfrm.c: New file.
40405         * modules/unicase/u32-casexfrm: New file.
40406
40407         New module 'unicase/u16-casexfrm'.
40408         * lib/unicase/u16-casexfrm.c: New file.
40409         * modules/unicase/u16-casexfrm: New file.
40410
40411         New module 'unicase/u8-casexfrm'.
40412         * lib/unicase/u8-casexfrm.c: New file.
40413         * lib/unicase/u-casexfrm.h: New file.
40414         * modules/unicase/u8-casexfrm: New file.
40415
40416         Tests for module 'unicase/u32-casecmp'.
40417         * modules/unicase/u32-casecmp-tests: New file.
40418         * tests/unicase/test-u32-casecmp.c: New file.
40419
40420         Tests for module 'unicase/u16-casecmp'.
40421         * modules/unicase/u16-casecmp-tests: New file.
40422         * tests/unicase/test-u16-casecmp.c: New file.
40423
40424         Tests for module 'unicase/u8-casecmp'.
40425         * modules/unicase/u8-casecmp-tests: New file.
40426         * tests/unicase/test-u8-casecmp.c: New file.
40427         * tests/unicase/test-casecmp.h: New file.
40428
40429         New module 'unicase/u32-casecmp'.
40430         * lib/unicase/u32-casecmp.c: New file.
40431         * modules/unicase/u32-casecmp: New file.
40432
40433         New module 'unicase/u16-casecmp'.
40434         * lib/unicase/u16-casecmp.c: New file.
40435         * modules/unicase/u16-casecmp: New file.
40436
40437         New module 'unicase/u8-casecmp'.
40438         * lib/unicase/u8-casecmp.c: New file.
40439         * lib/unicase/u-casecmp.h: New file.
40440         * modules/unicase/u8-casecmp: New file.
40441
40442         Tests for module 'unicase/u32-casefold'.
40443         * modules/unicase/u32-casefold-tests: New file.
40444         * tests/unicase/test-u32-casefold.c: New file.
40445
40446         Tests for module 'unicase/u16-casefold'.
40447         * modules/unicase/u16-casefold-tests: New file.
40448         * tests/unicase/test-u16-casefold.c: New file.
40449
40450         Tests for module 'unicase/u8-casefold'.
40451         * modules/unicase/u8-casefold-tests: New file.
40452         * tests/unicase/test-u8-casefold.c: New file.
40453
40454         New module 'unicase/u32-casefold'.
40455         * lib/unicase/u32-casefold.c: New file.
40456         * modules/unicase/u32-casefold: New file.
40457
40458         New module 'unicase/u16-casefold'.
40459         * lib/unicase/u16-casefold.c: New file.
40460         * modules/unicase/u16-casefold: New file.
40461
40462         New module 'unicase/u8-casefold'.
40463         * lib/unicase/u8-casefold.c: New file.
40464         * lib/unicase/u-casefold.h: New file.
40465         * modules/unicase/u8-casefold: New file.
40466
40467         New module 'unicase/tocasefold'.
40468         * lib/unicase/casefold.h: New file.
40469         * lib/unicase/tocasefold.c: New file.
40470         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
40471         * modules/unicase/tocasefold: New file.
40472
40473         Tests for module 'unicase/u32-totitle'.
40474         * modules/unicase/u32-totitle-tests: New file.
40475         * tests/unicase/test-u32-totitle.c: New file.
40476
40477         Tests for module 'unicase/u16-totitle'.
40478         * modules/unicase/u16-totitle-tests: New file.
40479         * tests/unicase/test-u16-totitle.c: New file.
40480
40481         Tests for module 'unicase/u8-totitle'.
40482         * modules/unicase/u8-totitle-tests: New file.
40483         * tests/unicase/test-u8-totitle.c: New file.
40484
40485         New module 'unicase/u32-totitle'.
40486         * lib/unicase/u32-totitle.c: New file.
40487         * modules/unicase/u32-totitle: New file.
40488
40489         New module 'unicase/u16-totitle'.
40490         * lib/unicase/u16-totitle.c: New file.
40491         * modules/unicase/u16-totitle: New file.
40492
40493         New module 'unicase/u8-totitle'.
40494         * lib/unicase/u8-totitle.c: New file.
40495         * lib/unicase/u-totitle.h: New file.
40496         * modules/unicase/u8-totitle: New file.
40497
40498         Tests for module 'unicase/u32-tolower'.
40499         * modules/unicase/u32-tolower-tests: New file.
40500         * tests/unicase/test-u32-tolower.c: New file.
40501
40502         Tests for module 'unicase/u16-tolower'.
40503         * modules/unicase/u16-tolower-tests: New file.
40504         * tests/unicase/test-u16-tolower.c: New file.
40505
40506         Tests for module 'unicase/u8-tolower'.
40507         * modules/unicase/u8-tolower-tests: New file.
40508         * tests/unicase/test-u8-tolower.c: New file.
40509
40510         New module 'unicase/u32-tolower'.
40511         * lib/unicase/u32-tolower.c: New file.
40512         * modules/unicase/u32-tolower: New file.
40513
40514         New module 'unicase/u16-tolower'.
40515         * lib/unicase/u16-tolower.c: New file.
40516         * modules/unicase/u16-tolower: New file.
40517
40518         New module 'unicase/u8-tolower'.
40519         * lib/unicase/u8-tolower.c: New file.
40520         * modules/unicase/u8-tolower: New file.
40521
40522         Tests for module 'unicase/u32-toupper'.
40523         * modules/unicase/u32-toupper-tests: New file.
40524         * tests/unicase/test-u32-toupper.c: New file.
40525
40526         Tests for module 'unicase/u16-toupper'.
40527         * modules/unicase/u16-toupper-tests: New file.
40528         * tests/unicase/test-u16-toupper.c: New file.
40529
40530         Tests for module 'unicase/u8-toupper'.
40531         * modules/unicase/u8-toupper-tests: New file.
40532         * tests/unicase/test-u8-toupper.c: New file.
40533
40534         New module 'unicase/u32-toupper'.
40535         * lib/unicase/u32-toupper.c: New file.
40536         * modules/unicase/u32-toupper: New file.
40537
40538         New module 'unicase/u16-toupper'.
40539         * lib/unicase/u16-toupper.c: New file.
40540         * modules/unicase/u16-toupper: New file.
40541
40542         New module 'unicase/u8-toupper'.
40543         * lib/unicase/u8-toupper.c: New file.
40544         * modules/unicase/u8-toupper: New file.
40545
40546         New module 'unicase/u32-casemap'.
40547         * lib/unicase/u32-casemap.c: New file.
40548         * modules/unicase/u32-casemap: New file.
40549
40550         New module 'unicase/u16-casemap'.
40551         * lib/unicase/u16-casemap.c: New file.
40552         * modules/unicase/u16-casemap: New file.
40553
40554         New module 'unicase/u8-casemap'.
40555         * lib/unicase/unicasemap.h: New file.
40556         * lib/unicase/u8-casemap.c: New file.
40557         * lib/unicase/u-casemap.h: New file.
40558         * modules/unicase/u8-casemap: New file.
40559
40560         New module 'unicase/special-casing'.
40561         * lib/unicase/special-casing.h: New file.
40562         * lib/unicase/special-casing.c: New file.
40563         * lib/unicase/special-casing-table.gperf: New file, generated by
40564         gen-uni-tables.c.
40565         * modules/unicase/special-casing: New file.
40566
40567         Tests for module 'unicase/locale-language'.
40568         * modules/unicase/locale-language-tests: New file.
40569         * tests/unicase/test-locale-language.sh: New file.
40570         * tests/unicase/test-locale-language.c: New file.
40571
40572         New module 'unicase/locale-language'.
40573         * lib/unicase/locale-language.c: New file.
40574         * lib/unicase/locale-languages.gperf: New file.
40575         * modules/unicase/locale-language: New file.
40576
40577         Generate more tables for case conversion and case folding.
40578         * lib/gen-uni-tables.c (SCC_*): New enum items.
40579         (struct special_casing_rule): New type.
40580         (casing_rules, num_casing_rules, allocated_casing_rules): New
40581         variables.
40582         (add_casing_rule, fill_casing_rules): New functions.
40583         (struct casefold_rule): New type.
40584         (casefolding_rules, num_casefolding_rules,
40585         allocated_casefolding_rules): New variables.
40586         (fill_casefolding_rules): New function.
40587         (unicode_casefold): New variable.
40588         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
40589         sort_casing_rules, output_casing_rules): New functions.
40590         (main): Accept to more arguments: SpecialCasing.txt and
40591         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
40592         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
40593         Output mapping for casefolding.
40594
40595         * lib/unicase.h: Include stdbool.h, uninorm.h.
40596         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
40597         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
40598         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
40599         arguments.
40600         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
40601         resultp arguments.
40602         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
40603         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
40604         resultp arguments.
40605         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
40606         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
40607         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
40608         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
40609         declarations.
40610         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
40611
40612 2009-03-08  Bruno Haible  <bruno@clisp.org>
40613
40614         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40615         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
40616         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
40617         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40618
40619 2009-03-07  Bruno Haible  <bruno@clisp.org>
40620
40621         Adjust u*_normcmp, u*_normcoll API.
40622         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
40623         u16_normcoll, u32_normcoll): Change failure conventions.
40624         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
40625         errno and return -1.
40626         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
40627
40628 2009-03-07  Bruno Haible  <bruno@clisp.org>
40629
40630         Tests for module 'uninorm/u32-normcoll'.
40631         * modules/uninorm/u32-normcoll-tests: New file.
40632         * tests/uninorm/test-u32-normcoll.c: New file.
40633
40634         Tests for module 'uninorm/u16-normcoll'.
40635         * modules/uninorm/u16-normcoll-tests: New file.
40636         * tests/uninorm/test-u16-normcoll.c: New file.
40637
40638         Tests for module 'uninorm/u8-normcoll'.
40639         * modules/uninorm/u8-normcoll-tests: New file.
40640         * tests/uninorm/test-u8-normcoll.c: New file.
40641
40642 2009-03-07  Bruno Haible  <bruno@clisp.org>
40643
40644         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
40645         tests/uninorm/test-u32-normcmp.c.
40646         * tests/uninorm/test-u32-normcmp.c: Include it.
40647         (test_nonascii): New function, extracted from main. Add some more
40648         tests.
40649         (main): Invoke test_ascii and test_nonascii.
40650         * modules/uninorm/u32-normcmp-tests (Files): Add
40651         tests/uninorm/test-u32-normcmp.h.
40652         (Depends-on): Remove uninorm/u32-normcmp.
40653
40654         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
40655         tests/uninorm/test-u16-normcmp.c.
40656         * tests/uninorm/test-u16-normcmp.c: Include it.
40657         (test_nonascii): New function, extracted from main. Add some more
40658         tests.
40659         (main): Invoke test_ascii and test_nonascii.
40660         * modules/uninorm/u16-normcmp-tests (Files): Add
40661         tests/uninorm/test-u16-normcmp.h.
40662         (Depends-on): Remove uninorm/u16-normcmp.
40663
40664         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
40665         tests/uninorm/test-u8-normcmp.c.
40666         * tests/uninorm/test-u8-normcmp.c: Include it.
40667         (test_nonascii): New function, extracted from main. Add some more
40668         tests.
40669         (main): Invoke test_ascii and test_nonascii.
40670         * modules/uninorm/u8-normcmp-tests (Files): Add
40671         tests/uninorm/test-u8-normcmp.h.
40672         (Depends-on): Remove uninorm/u8-normcmp.
40673
40674 2009-03-07  Bruno Haible  <bruno@clisp.org>
40675
40676         New module 'uninorm/u32-normcoll'.
40677         * lib/uninorm/u32-normcoll.c: New file.
40678         * modules/uninorm/u32-normcoll: New file.
40679
40680         New module 'uninorm/u16-normcoll'.
40681         * lib/uninorm/u16-normcoll.c: New file.
40682         * modules/uninorm/u16-normcoll: New file.
40683
40684         New module 'uninorm/u8-normcoll'.
40685         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
40686         declarations.
40687         * lib/uninorm/u8-normcoll.c: New file.
40688         * lib/uninorm/u-normcoll.h: New file.
40689         * modules/uninorm/u8-normcoll: New file.
40690
40691         New module 'uninorm/u32-normxfrm'.
40692         * lib/uninorm/u32-normxfrm.c: New file.
40693         * modules/uninorm/u32-normxfrm: New file.
40694
40695         New module 'uninorm/u16-normxfrm'.
40696         * lib/uninorm/u16-normxfrm.c: New file.
40697         * modules/uninorm/u16-normxfrm: New file.
40698
40699         New module 'uninorm/u8-normxfrm'.
40700         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
40701         declarations.
40702         * lib/uninorm/u8-normxfrm.c: New file.
40703         * lib/uninorm/u-normxfrm.h: New file.
40704         * modules/uninorm/u8-normxfrm: New file.
40705
40706 2009-03-07  Bruno Haible  <bruno@clisp.org>
40707
40708         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
40709         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
40710         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
40711
40712 2009-03-07  Bruno Haible  <bruno@clisp.org>
40713
40714         New module 'memxfrm'.
40715         * lib/memxfrm.h: New file.
40716         * lib/memxfrm.c: New file.
40717         * modules/memxfrm: New file.
40718
40719 2009-03-07  Bruno Haible  <bruno@clisp.org>
40720
40721         New module 'memcmp2'.
40722         * lib/memcmp2.h: New file.
40723         * lib/memcmp2.c: New file.
40724         * modules/memcmp2: New file.
40725
40726 2009-03-07  Bruno Haible  <bruno@clisp.org>
40727
40728         Tests for module 'uninorm/decomposing-form'.
40729         * modules/uninorm/decomposing-form-tests: New file.
40730         * tests/uninorm/test-decomposing-form.c: New file.
40731
40732         New module 'uninorm/decomposing-form'.
40733         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
40734         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
40735         Add 'decomposing_variant' field.
40736         * lib/uninorm/decomposing-form.c: New file.
40737         * lib/uninorm/nfc.c (uninorm_nfc): Update.
40738         * lib/uninorm/nfd.c (uninorm_nfd): Update.
40739         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
40740         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
40741         * modules/uninorm/decomposing-form: New file.
40742         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
40743         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
40744
40745 2009-03-07  Bruno Haible  <bruno@clisp.org>
40746
40747         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
40748         strings.
40749
40750 2009-03-06  Bruno Haible  <bruno@clisp.org>
40751
40752         Tests for module 'uninorm/u32-normcmp'.
40753         * tests/uninorm/test-u32-normcmp.c: New file.
40754         * modules/uninorm/u32-normcmp-tests: New file.
40755
40756         Tests for module 'uninorm/u16-normcmp'.
40757         * tests/uninorm/test-u16-normcmp.c: New file.
40758         * modules/uninorm/u16-normcmp-tests: New file.
40759
40760         Tests for module 'uninorm/u8-normcmp'.
40761         * tests/uninorm/test-u8-normcmp.c: New file.
40762         * modules/uninorm/u8-normcmp-tests: New file.
40763
40764         New module 'uninorm/u32-normcmp'.
40765         * lib/uninorm/u32-normcmp.c: New file.
40766         * modules/uninorm/u32-normcmp: New file.
40767
40768         New module 'uninorm/u16-normcmp'.
40769         * lib/uninorm/u16-normcmp.c: New file.
40770         * modules/uninorm/u16-normcmp: New file.
40771
40772         New module 'uninorm/u8-normcmp'.
40773         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
40774         declarations.
40775         * lib/uninorm/u8-normcmp.c: New file.
40776         * lib/uninorm/u-normcmp.h: New file.
40777         * modules/uninorm/u8-normcmp: New file.
40778
40779 2009-03-06  Bruno Haible  <bruno@clisp.org>
40780
40781         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
40782         Reported by Eric Blake.
40783
40784 2009-03-06  Eric Blake  <ebb9@byu.net>
40785             Bruno Haible  <bruno@clisp.org>
40786
40787         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
40788         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
40789         condition.
40790         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40791         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
40792         condition.
40793         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
40794
40795 2009-03-06  Eric Blake  <ebb9@byu.net>
40796
40797         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
40798         to avoid compiler warnings.
40799         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
40800
40801 2009-03-05  Bruno Haible  <bruno@clisp.org>
40802
40803         * tests/test-ftell.c (main): Disable test beyond end of file on
40804         FreeMiNT.
40805         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40806
40807 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
40808
40809         * lib/filevercmp.c: Move hidden files up in ordering.
40810         * tests/test-filevercmp.c: Add tests for hidden files.
40811
40812 2009-03-04  Bruno Haible  <bruno@clisp.org>
40813
40814         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
40815         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
40816         AM_CFLAGS.
40817         Reported by Simon Josefsson.
40818
40819 2009-03-03  Bruno Haible  <bruno@clisp.org>
40820
40821         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
40822         Reported by Simon Josefsson.
40823
40824         * doc/ld-version-script.texi: Update node reference.
40825
40826 2009-03-03  Bruno Haible  <bruno@clisp.org>
40827
40828         * modules/visibility (License): Change to 'unlimited'.
40829         Suggested by Simon Josefsson.
40830
40831 2009-03-03  Jim Meyering  <meyering@redhat.com>
40832
40833         unlinkdir: cannot_unlink_dir may modify process state
40834         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
40835         it's neither thread-safe nor appropriate for use in a library.
40836
40837 2009-03-03  Eric Blake  <ebb9@byu.net>
40838
40839         test-closein: silence test under Darwin
40840         * tests/test-closein.sh: Ignore stderr from cat, since we don't
40841         care if it dies from EPIPE or EBADF.
40842
40843 2009-03-03  Bruno Haible  <bruno@clisp.org>
40844
40845         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
40846         earlier.
40847         * doc/visibility.texi: Fix @node and @section.
40848
40849 2009-03-03  Simon Josefsson  <simon@josefsson.org>
40850
40851         * doc/gnulib.texi: Link to sections for ld version script and
40852         visibility.
40853         * doc/visibility.texi: Add @node and @section.
40854         * modules/ld-version-script: New module.
40855         * m4/ld-version-script.m4: New file.
40856         * doc/ld-version-script.texi: New file.
40857
40858 2009-03-02  David Lutterkort  <lutter@redhat.com>
40859
40860         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
40861         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40862
40863 2009-03-02  Bruno Haible  <bruno@clisp.org>
40864
40865         * doc/visibility.texi: Mention libtool's -export-symbols option.
40866
40867 2009-03-02  Jim Meyering  <meyering@redhat.com>
40868
40869         announce-gen: new option: --no-print-checksums
40870         * build-aux/announce-gen (usage): Describe it.
40871         (print_checksums): Print a newline here, not in the [*] footnote.
40872         (main): Honor it.
40873
40874 2009-03-01  Bruno Haible  <bruno@clisp.org>
40875
40876         Use socklen_t in the native Windows replacements prototypes.
40877         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
40878         instead of 'int'.
40879         * lib/getsockopt.c (rpl_getsockopt): Likewise.
40880         * lib/setsockopt.c (rpl_setsockopt): Likewise.
40881         * modules/getsockopt (Depends-on): Add socklen.
40882         * modules/setsockopt (Depends-on): Add socklen.
40883
40884 2009-03-01  Bruno Haible  <bruno@clisp.org>
40885
40886         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
40887         least 4.2.
40888
40889 2009-03-01  Eric Blake  <ebb9@byu.net>
40890             Bruno Haible  <bruno@clisp.org>
40891
40892         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
40893         error messages.
40894         * lib/wait-process.c (wait_subprocess): Omit error message about
40895         deadly signal sent to the child of termsigp != NULL.
40896
40897 2009-03-01  Eric Blake  <ebb9@byu.net>
40898
40899         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
40900
40901 2009-03-01  Bruno Haible  <bruno@clisp.org>
40902
40903         Avoid a gcc warning.
40904         * tests/test-sched.c (b): Make global.
40905         Reported by Eric Blake.
40906
40907 2009-01-19  Martin Lambers  <marlam@marlam.de>
40908
40909         Provide POSIX semantics for socket timeout options on W32.
40910         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
40911         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
40912         * modules/setsockopt: Depend on sys_time module for struct timeval.
40913         * modules/getsockopt: Depend on sys_time module for struct timeval.
40914
40915 2009-03-01  Simon Josefsson  <simon@josefsson.org>
40916
40917         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
40918         __USE_GNU, for consistency with netdb.in.h.
40919         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40920
40921 2009-03-01  Bruno Haible  <bruno@clisp.org>
40922
40923         More support for FreeMiNT.
40924         * lib/fseeko.c (rpl_fseeko): Complete last commit.
40925         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40926
40927 2009-03-01  Bruno Haible  <bruno@clisp.org>
40928
40929         More support for FreeMiNT.
40930         * lib/fpurge.c (fpurge): Correct last commit.
40931         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40932
40933 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40934
40935         Fix unportable awk script in vc-list-files.
40936         * build-aux/vc-list-files: In the replacement awk script, use
40937         substr with a second argument of 1, not zero.
40938         Report by Simon Josefsson.
40939
40940 2009-02-28  Bruno Haible  <bruno@clisp.org>
40941
40942         More support for FreeMiNT.
40943         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
40944         to FreeMiNT today.
40945         * lib/fwriting.c (fwriting): Likewise.
40946         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
40947
40948 2009-02-28  Bruno Haible  <bruno@clisp.org>
40949
40950         * tests/test-freadseek.c (main): Disable test beyond end of file on
40951         FreeMiNT.
40952         * tests/test-ftello.c (main): Likewise.
40953         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
40954
40955 2009-02-28  Bruno Haible  <bruno@clisp.org>
40956
40957         Add tentative support for FreeMiNT.
40958         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
40959         * lib/fpurge.c (fpurge): Likewise.
40960         * lib/freadable.c (freadable): Likewise.
40961         * lib/freading.c (freading): Likewise.
40962         * lib/freadptr.c (freadptr): Likewise.
40963         * lib/freadseek.c (freadptrinc): Likewise.
40964         * lib/fseeko.c (rpl_fseeko): Likewise.
40965         * lib/fseterr.c (fseterr): Likewise.
40966         * lib/fwritable.c (fwritable): Likewise.
40967         * lib/fwriting.c (fwriting): Likewise.
40968         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
40969         Hourihane.
40970         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40971
40972 2009-02-28  Bruno Haible  <bruno@clisp.org>
40973
40974         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
40975         SIGCHLD.
40976         Reported by Jim Meyering.
40977
40978 2009-02-28  Bruno Haible  <bruno@clisp.org>
40979
40980         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
40981         Mention the results of these tests on various platforms.
40982         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
40983         order.
40984         * doc/posix-functions/printf.texi: Likewise.
40985         * doc/posix-functions/snprintf.texi: Likewise.
40986         * doc/posix-functions/sprintf.texi: Likewise.
40987         * doc/posix-functions/vfprintf.texi: Likewise.
40988         * doc/posix-functions/vprintf.texi: Likewise.
40989         * doc/posix-functions/vsnprintf.texi: Likewise.
40990         * doc/posix-functions/vsprintf.texi: Likewise.
40991         * doc/glibc-functions/obstack_printf.texi: Likewise.
40992         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
40993
40994 2009-02-28  Bruno Haible  <bruno@clisp.org>
40995
40996         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
40997         Reported by Loïc Minier <lool@dooz.org>.
40998
40999 2009-02-27  Bruno Haible  <bruno@clisp.org>
41000
41001         * gnulib-tool (func_import): Make the sed expression used to create the
41002         sed script for updating the .gitignore file POSIX compliant.
41003         Reported by Eric Blake.
41004
41005 2009-02-27  Bruno Haible  <bruno@clisp.org>
41006
41007         * gnulib-tool (sed): Don't alias as "sed --posix".
41008         Reported by Eric Blake.
41009
41010 2009-02-27  Bruno Haible  <bruno@clisp.org>
41011
41012         Avoid test link errors.
41013         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
41014         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
41015         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
41016         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
41017         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41018
41019 2009-02-27  Bruno Haible  <bruno@clisp.org>
41020
41021         Avoid spurious "(cached)" in configure output.
41022         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
41023         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
41024         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
41025         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
41026         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
41027         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
41028         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
41029         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
41030         Reported by Eric Blake.
41031
41032 2009-02-27  Eric Blake  <ebb9@byu.net>
41033
41034         printf: fix regression in previous patch
41035         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
41036
41037 2009-02-27  Bruno Haible  <bruno@clisp.org>
41038
41039         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
41040         value.
41041         * lib/stdint.in.h: Likewise.
41042         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
41043
41044 2009-02-27  Eric Blake  <ebb9@byu.net>
41045
41046         doc: mention more functions added in cygwin 1.7.0
41047         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
41048         addition.
41049         * doc/posix-functions/open_wmemstream.texi: Likewise.
41050         * doc/posix-functions/wcsnlen.texi: Likewise.
41051         * doc/posix-functions/wcsnrtombs.texi: Likewise.
41052         * doc/posix-functions/wcstod.texi: Likewise.
41053         * doc/posix-functions/wcstof.texi: Likewise.
41054         * doc/posix-functions/wcstoimax.texi: Likewise.
41055         * doc/posix-functions/wcstok.texi: Likewise.
41056         * doc/posix-functions/wcstoumax.texi: Likewise.
41057
41058         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
41059         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
41060         * doc/posix-functions/fprintf.texi: Update.
41061         * doc/posix-functions/printf.texi: Update.
41062         * doc/posix-functions/snprintf.texi: Update.
41063         * doc/posix-functions/sprintf.texi: Update.
41064         * doc/posix-functions/vfprintf.texi: Update.
41065         * doc/posix-functions/vprintf.texi: Update.
41066         * doc/posix-functions/vsnprintf.texi: Update.
41067         * doc/posix-functions/vsprintf.texi: Update.
41068         * doc/glibc-functions/obstack_printf.texi: Update.
41069         * doc/glibc-functions/obstack_vprintf.texi: Update.
41070
41071 2009-02-26  Eric Blake  <ebb9@byu.net>
41072
41073         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
41074         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
41075         compilation bug by using runtime conversion.
41076         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
41077         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
41078         * modules/ceill-tests (Files): Use nan.h.
41079         * modules/floorl-tests (Files): Likewise.
41080         * modules/frexpl-tests (Files): Likewise.
41081         * modules/isnanl-tests (Files): Likewise.
41082         * modules/ldexpl-tests (Files): Likewise.
41083         * modules/roundl-tests (Files): Likewise.
41084         * modules/truncl-tests (Files): Likewise.
41085         * tests/test-ceill.c (main): Use a working NaN.
41086         * tests/test-floorl.c (main): Likewise.
41087         * tests/test-frexpl.c (main): Likewise.
41088         * tests/test-isnan.c (test_long_double): Likewise.
41089         * tests/test-isnanl.h (main): Likewise.
41090         * tests/test-ldexpl.h (main): Likewise.
41091         * tests/test-roundl.h (main): Likewise.
41092         * tests/test-truncl.h (main): Likewise.
41093         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
41094
41095 2009-02-26  Eric Blake  <ebb9@byu.net>
41096             Bruno Haible  <bruno@clisp.org>
41097
41098         Work around a *printf bug with %ls on Solaris.
41099         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
41100         precision is specified, sprintf stops converting the wide string
41101         argument when the number of bytes that have been produced by this
41102         conversion equals or exceeds the precision.
41103         * doc/posix-functions/fprintf.texi: Update.
41104         * doc/posix-functions/printf.texi: Update.
41105         * doc/posix-functions/snprintf.texi: Update.
41106         * doc/posix-functions/sprintf.texi: Update.
41107         * doc/posix-functions/vfprintf.texi: Update.
41108         * doc/posix-functions/vprintf.texi: Update.
41109         * doc/posix-functions/vsnprintf.texi: Update.
41110         * doc/posix-functions/vsprintf.texi: Update.
41111         * doc/glibc-functions/obstack_printf.texi: Update.
41112         * doc/glibc-functions/obstack_vprintf.texi: Update.
41113
41114 2009-02-26  Eric Blake  <ebb9@byu.net>
41115
41116         stdlib: favor compiler check of random.h
41117         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
41118         to avoid an ObjC random.h installed by Swarm.
41119
41120 2009-02-26  Bruno Haible  <bruno@clisp.org>
41121
41122         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
41123         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
41124         Reported by Gary V. Vaughan <gary@gnu.org>.
41125
41126 2009-02-26  Bruno Haible  <bruno@clisp.org>
41127
41128         Fix *printf behaviour regarding the %ls directive.
41129         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
41130         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
41131         NEED_PRINTF_DIRECTIVE_LS.
41132         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
41133         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
41134         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41135         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
41136         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
41137         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
41138         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
41139         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41140         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41141         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41142         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41143         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
41144         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41145         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41146         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41147         * doc/posix-functions/fprintf.texi: Update.
41148         * doc/posix-functions/printf.texi: Update.
41149         * doc/posix-functions/snprintf.texi: Update.
41150         * doc/posix-functions/sprintf.texi: Update.
41151         * doc/posix-functions/vfprintf.texi: Update.
41152         * doc/posix-functions/vprintf.texi: Update.
41153         * doc/posix-functions/vsnprintf.texi: Update.
41154         * doc/posix-functions/vsprintf.texi: Update.
41155         * doc/glibc-functions/obstack_printf.texi: Update.
41156         * doc/glibc-functions/obstack_vprintf.texi: Update.
41157         Reported by Eric Blake.
41158
41159 2009-02-25  Bruno Haible  <bruno@clisp.org>
41160
41161         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
41162         with known value.
41163         Reported by Gary V. Vaughan <gary@gnu.org>.
41164
41165 2009-02-25  Bruno Haible  <bruno@clisp.org>
41166
41167         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
41168         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
41169         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
41170         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
41171         Reported by Gary V. Vaughan <gary@gnu.org>.
41172
41173 2009-02-25  Bruno Haible  <bruno@clisp.org>
41174
41175         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
41176         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
41177         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
41178         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
41179         Reported by Gary V. Vaughan <gary@gnu.org>.
41180
41181 2009-02-25  Eric Blake  <ebb9@byu.net>
41182
41183         tests: skip fseek/ftell tests if ungetc is broken
41184         * m4/ungetc.m4: New file.
41185         * modules/fseek-tests: Split test, so ungetc dependency is
41186         separate from rest of test.
41187         * modules/fseeko-tests: Likewise.
41188         * modules/ftell-tests: Likewise.
41189         * modules/ftello-tests: Likewise.
41190         * tests/test-fseek.c (main): Isolate ungetc dependency.
41191         * tests/test-fseeko.c (main): Likewise.
41192         * tests/test-ftell.c (main): Likewise.
41193         * tests/test-ftello.c (main): Likewise.
41194         * tests/test-fseek2.sh: New file.
41195         * tests/test-fseeko2.sh: Likewise.
41196         * tests/test-ftell2.sh: Likewise.
41197         * tests/test-ftello2.sh: Likewise.
41198
41199 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
41200
41201         test-getaddrinfo: fix usage of skip return code 77
41202         * tests/test-gettaddrinfo.c: Return skip code 77 only
41203         for first occurance of skip (4x77 is not 77)
41204
41205 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
41206
41207         strtod: avoid C99 decl-after-statement
41208         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
41209
41210 2009-02-24  Eric Blake  <ebb9@byu.net>
41211
41212         strtod: detect HP-UX 11.31 bug
41213         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
41214         Reported by Gary V. Vaughan.
41215
41216 2009-02-23  Bruno Haible  <bruno@clisp.org>
41217
41218         Fix invalid read past end of memory block.
41219         * lib/vasnprintf.c (DCHAR_SET): Define.
41220         (local_wcslen): Define only when needed.
41221         (local_strnlen, local_wcsnlen): New functions.
41222         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
41223         directives that involve a conversion ourselves.
41224         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
41225         wcsnlen, mbrtowc, wcrtomb.
41226         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
41227         * tests/test-vasprintf-posix.c (test_function): Likewise.
41228         * tests/test-snprintf-posix.h (test_function): Likewise.
41229         * tests/test-sprintf-posix.h (test_function): Likewise.
41230         Reported by Ben Pfaff <blp@cs.stanford.edu>.
41231
41232 2009-02-22  Bruno Haible  <bruno@clisp.org>
41233
41234         Implement new clarified decomposition of Hangul syllables.
41235         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
41236         of type LTV, return only a pairwise decomposition.
41237         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
41238         Likewise.
41239         * tests/uninorm/test-decomposition.c (main): Updated expected result.
41240         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
41241         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
41242
41243 2009-02-22  Bruno Haible  <bruno@clisp.org>
41244
41245         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
41246         zero-length results and shrink excess allocated memory.
41247         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
41248         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
41249         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
41250         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
41251         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
41252         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
41253         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
41254         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
41255         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
41256         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
41257         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
41258         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
41259
41260 2009-02-21  Bruno Haible  <bruno@clisp.org>
41261
41262         * doc/gnulib.texi: Include safe-alloc.texi earlier.
41263         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
41264         spaces after a period. Put a space between a macro name and its
41265         argument list. Trivial rewordings.
41266         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
41267         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
41268         (main): Return 0 explicitly.
41269
41270 2009-02-21  Bruno Haible  <bruno@clisp.org>
41271
41272         Tests for module 'uninorm/filter'.
41273         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
41274         * modules/uninorm/filter-tests: New file.
41275
41276         New module 'uninorm/filter'.
41277         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
41278         uninorm_filter_flush, uninorm_filter_free): New declarations.
41279         * lib/uninorm/uninorm-filter.c: New file.
41280         * modules/uninorm/filter: New file.
41281
41282 2009-02-21  Bruno Haible  <bruno@clisp.org>
41283
41284         Tests for module 'uninorm/nfkc'.
41285         * tests/uninorm/test-nfkc.c: New file.
41286         * tests/uninorm/test-u8-nfkc.c: New file.
41287         * tests/uninorm/test-u16-nfkc.c: New file.
41288         * tests/uninorm/test-u32-nfkc.c: New file.
41289         * tests/uninorm/test-u32-nfkc-big.sh: New file.
41290         * tests/uninorm/test-u32-nfkc-big.c: New file.
41291         * modules/uninorm/nfkc-tests: New file.
41292
41293         New module 'uninorm/nfkc'.
41294         * lib/uninorm/nfkc.c: New file.
41295         * modules/uninorm/nfkc: New file.
41296
41297         Tests for module 'uninorm/nfkd'.
41298         * tests/uninorm/test-nfkd.c: New file.
41299         * tests/uninorm/test-u8-nfkd.c: New file.
41300         * tests/uninorm/test-u16-nfkd.c: New file.
41301         * tests/uninorm/test-u32-nfkd.c: New file.
41302         * tests/uninorm/test-u32-nfkd-big.sh: New file.
41303         * tests/uninorm/test-u32-nfkd-big.c: New file.
41304         * modules/uninorm/nfkd-tests: New file.
41305
41306         New module 'uninorm/nfkd'.
41307         * lib/uninorm/nfkd.c: New file.
41308         * modules/uninorm/nfkd: New file.
41309
41310         Tests for module 'uninorm/nfc'.
41311         * tests/uninorm/test-nfc.c: New file.
41312         * tests/uninorm/test-u8-nfc.c: New file.
41313         * tests/uninorm/test-u16-nfc.c: New file.
41314         * tests/uninorm/test-u32-nfc.c: New file.
41315         * tests/uninorm/test-u32-nfc-big.sh: New file.
41316         * tests/uninorm/test-u32-nfc-big.c: New file.
41317         * modules/uninorm/nfc-tests: New file.
41318
41319         New module 'uninorm/nfc'.
41320         * lib/uninorm/nfc.c: New file.
41321         * modules/uninorm/nfc: New file.
41322
41323         Tests for module 'uninorm/nfd'.
41324         * tests/uninorm/test-nfd.c: New file.
41325         * tests/uninorm/test-u8-nfd.c: New file.
41326         * tests/uninorm/test-u16-nfd.c: New file.
41327         * tests/uninorm/test-u32-nfd.c: New file.
41328         * tests/uninorm/test-u32-nfd-big.sh: New file.
41329         * tests/uninorm/test-u32-nfd-big.c: New file.
41330         * tests/uninorm/test-u32-normalize-big.h: New file.
41331         * tests/uninorm/test-u32-normalize-big.c: New file.
41332         * tests/uninorm/NormalizationTest.txt: New file, created from
41333         Unicode 5.1.0 NormalizationTest.txt.
41334         * modules/uninorm/nfd-tests: New file.
41335
41336         New module 'uninorm/nfd'.
41337         * lib/uninorm/nfd.c: New file.
41338         * modules/uninorm/nfd: New file.
41339
41340         New module 'uninorm/u32-normalize'.
41341         * lib/uninorm/u32-normalize.c: New file.
41342         * modules/uninorm/u32-normalize: New file.
41343
41344         New module 'uninorm/u16-normalize'.
41345         * lib/uninorm/u16-normalize.c: New file.
41346         * modules/uninorm/u16-normalize: New file.
41347
41348         New module 'uninorm/u8-normalize'.
41349         * lib/uninorm/u8-normalize.c: New file.
41350         * lib/uninorm/normalize-internal.h: New file.
41351         * lib/uninorm/u-normalize-internal.h: New file.
41352         * modules/uninorm/u8-normalize: New file.
41353
41354         New module 'uninorm/decompose-internal'.
41355         * lib/uninorm/decompose-internal.c: New file.
41356         * modules/uninorm/decompose-internal: New file.
41357
41358         Tests for module 'uninorm/composition'.
41359         * tests/uninorm/test-composition.c: New file.
41360         * modules/uninorm/composition-tests: New file.
41361
41362         New module 'uninorm/composition'.
41363         * lib/uninorm/composition.c: New file.
41364         * lib/uninorm/composition-table.gperf: New file, generated by
41365         gen-uni-tables.
41366         * modules/uninorm/composition: New file.
41367
41368         Tests for module 'uninorm/compat-decomposition'.
41369         * tests/uninorm/test-compat-decomposition.c: New file.
41370         * modules/uninorm/compat-decomposition-tests: New file.
41371
41372         New module 'uninorm/compat-decomposition'.
41373         * lib/uninorm/decompose-internal.h: New file.
41374         * lib/uninorm/compat-decomposition.c: New file.
41375         * modules/uninorm/compat-decomposition: New file.
41376
41377         Tests for module 'uninorm/canonical-decomposition'.
41378         * tests/uninorm/test-canonical-decomposition.c: New file.
41379         * modules/uninorm/canonical-decomposition-tests: New file.
41380
41381         New module 'uninorm/canonical-decomposition'.
41382         * lib/uninorm/canonical-decomposition.c: New file.
41383         * modules/uninorm/canonical-decomposition: New file.
41384
41385         Tests for module 'uninorm/decomposition'.
41386         * tests/uninorm/test-decomposition.c: New file.
41387         * modules/uninorm/decomposition-tests: New file.
41388
41389         New module 'uninorm/decomposition'.
41390         * lib/uninorm/decomposition.c: New file.
41391         * modules/uninorm/decomposition: New file.
41392
41393         New module 'uninorm/decomposition-table'.
41394         * lib/uninorm/decomposition-table.h: New file.
41395         * lib/uninorm/decomposition-table.c: New file.
41396         * lib/uninorm/decomposition-table1.h: New file, generated by
41397         gen-uni-tables.
41398         * lib/uninorm/decomposition-table2.h: New file, generated by
41399         gen-uni-tables.
41400         * modules/uninorm/decomposition-table: New file.
41401
41402         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
41403         (UC_DECOMP_*): New enumeration items.
41404         (get_decomposition): New function.
41405         (struct decomp_table): New type.
41406         (output_decomposition, output_decomposition_tables): New functions.
41407         (unicode_composition_exclusions): New variable.
41408         (fill_composition_exclusions, debug_output_composition_tables): New
41409         functions.
41410         (main): Accept one more argument. Invoke fill_composition_exclusions.
41411         Output decomposition and composition tables.
41412
41413         New module 'uninorm/base'.
41414         * lib/uninorm.h: New file.
41415         * lib/unictype.h: Update comment.
41416         * modules/uninorm/base: New file.
41417
41418 2009-02-21  David Lutterkort  <lutter@redhat.com>
41419
41420         Tests for module 'safe-alloc'.
41421         * tests/test-safe-alloc.c: New file.
41422         * modules/safe-alloc-tests: New file.
41423
41424         New module 'safe-alloc'.
41425         * lib/safe-alloc.h: New file.
41426         * lib/safe-alloc.c: New file.
41427         * m4/safe-alloc.m4: New file.
41428         * modules/safe-alloc: New file.
41429         * doc/safe-alloc.texi: New file.
41430         * doc/gnulib.texi: Include it.
41431         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
41432         safe-alloc.
41433
41434 2009-02-18  Bruno Haible  <bruno@clisp.org>
41435
41436         Fix link error on non-glibc systems.
41437         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
41438         variable.
41439         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41440
41441 2009-02-18  Jim Meyering  <meyering@redhat.com>
41442
41443         fts: avoid used-uninitialized error due to recent change
41444         * lib/fts.c (fts_read): Guard uses of the new member,
41445         parent->fts_n_dirs_remaining, since it's not relevant for
41446         the parent of a directory specified on the command-line.
41447
41448 2009-02-17  James Youngman  <jay@gnu.org>
41449             Bruno Haible  <bruno@clisp.org>
41450
41451         * m4/include_next.m4: Reformulate comment.
41452
41453 2009-02-16  Jim Meyering  <meyering@redhat.com>
41454
41455         fts: add #if guards so that the fts_lgpl module still builds
41456         * lib/fts.c: Guard just-added hash-table-using parts with
41457         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
41458         Reported by Simon Josefsson.
41459
41460 2009-02-15  Bruno Haible  <bruno@clisp.org>
41461
41462         * modules/array-mergesort-tests: New file.
41463         * tests/test-array-mergesort.c: New file.
41464
41465         New module 'array-mergesort'.
41466         * modules/array-mergesort: New file.
41467         * lib/array-mergesort.h: New file.
41468
41469 2009-02-15  Bruno Haible  <bruno@clisp.org>
41470
41471         Fix 2009-02-07 commit.
41472         * lib/gen-uni-tables.c (output_predicate, output_category,
41473         output_combclass, output_bidi_category, output_decimal_digit,
41474         output_digit, output_numeric, output_mirror, output_scripts,
41475         output_ident_category, output_simple_mapping): Fix format directives.
41476         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
41477
41478 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
41479
41480         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
41481         fixes are available from IBM.
41482
41483 2009-02-13  Jim Meyering  <meyering@redhat.com>
41484
41485         fts: arrange not to stat non-directories in more cases
41486         This makes GNU find (when it doesn't need to stat each file)
41487         *much* more efficient at traversing reiserfs file systems.
41488         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
41489         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
41490         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
41491         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
41492         (leaf_optimization_applies): New function.
41493         (LCO_hash, LCO_compare): New helper functions.
41494         (link_count_optimize_ok): New function.
41495         (fts_stat): Initialize new member (if dir).
41496         (fts_read): Decrement parent's fts_n_dirs_remaining count if
41497         we've just stat'ed a directory.  Skip the stat call when possible.
41498         ---
41499         Note this AFS-related exchange:
41500         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
41501         and note find's pioctl call in find/fstype.c.
41502         But that is necessary only if you want to enable the
41503         optimization for AFS, and for now, I don't.
41504
41505         fts: move a function definition "up" (no semantic change)
41506         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
41507         "up" to precede upcoming use of a related function.
41508
41509 2009-02-11  Jim Meyering  <meyering@redhat.com>
41510
41511         fts: correct internal computation of nlinks (optimization-related)
41512         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
41513         whether the current entry is a directory, so don't test it.
41514
41515 2009-02-10  Bruno Haible  <bruno@clisp.org>
41516
41517         Tests for module 'uniwbrk/ulc-wordbreaks'.
41518         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
41519         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
41520         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
41521
41522         Tests for module 'uniwbrk/u32-wordbreaks'.
41523         * modules/uniwbrk/u32-wordbreaks-tests: New file.
41524         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
41525
41526         Tests for module 'uniwbrk/u16-wordbreaks'.
41527         * modules/uniwbrk/u16-wordbreaks-tests: New file.
41528         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
41529
41530         Tests for module 'uniwbrk/u8-wordbreaks'.
41531         * modules/uniwbrk/u8-wordbreaks-tests: New file.
41532         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
41533
41534 2009-02-10  Bruno Haible  <bruno@clisp.org>
41535
41536         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
41537         property.
41538         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
41539         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
41540         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
41541
41542 2009-02-10  Simon Josefsson  <simon@josefsson.org>
41543
41544         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
41545         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
41546
41547 2009-02-10  Bruno Haible  <bruno@clisp.org>
41548
41549         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
41550         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
41551         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
41552         * lib/unilbrk/u8-possible-linebreaks.c: Update.
41553         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
41554         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
41555
41556 2009-02-09  Simon Josefsson  <simon@josefsson.org>
41557
41558         * lib/sockets.h (gl_fd_to_handle): New function.
41559
41560         * tests/test-sockets.c: Call gl_fd_to_handle.
41561
41562 2009-02-09  Bruno Haible  <bruno@clisp.org>
41563
41564         * doc/havelib.texi: Document the conventions on bi-arch systems.
41565
41566 2009-02-08  Bruno Haible  <bruno@clisp.org>
41567
41568         Document the AC_LIB_LINKFLAGS macro.
41569         * doc/havelib.texi: New file, mostly written on 2005-05-24.
41570         * doc/gnulib.texi: Include it.
41571
41572 2009-02-08  Bruno Haible  <bruno@clisp.org>
41573
41574         Fix wrong order of sections, compared to TOC.
41575         * doc/gnulib.texi: Include relocatable-maint.texi after the
41576         "Regular expressions" node, not before.
41577
41578 2009-02-08  Bruno Haible  <bruno@clisp.org>
41579
41580         Tests for module 'unicase/totitle'.
41581         * modules/unicase/totitle-tests: New file.
41582
41583         Tests for module 'unicase/tolower'.
41584         * modules/unicase/tolower-tests: New file.
41585
41586         Tests for module 'unicase/toupper'.
41587         * modules/unicase/toupper-tests: New file.
41588         * tests/unicase/test-mapping-part1.h: New file.
41589         * tests/unicase/test-mapping-part2.h: New file.
41590
41591         New module 'unicase/totitle'.
41592         * modules/unicase/totitle: New file.
41593         * lib/unicase/totitle.c: New file.
41594
41595         New module 'unicase/tolower'.
41596         * modules/unicase/tolower: New file.
41597         * lib/unicase/tolower.c: New file.
41598
41599         New module 'unicase/toupper'.
41600         * modules/unicase/toupper: New file.
41601         * lib/unicase/toupper.c: New file.
41602         * lib/unicase/simple-mapping.h: New file.
41603
41604         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
41605         (mapping_table): New structure.
41606         (output_simple_mapping): New function.
41607         (main): Invoke output_simple_mapping_test and output_simple_mapping.
41608         * modules/gen-uni-tables (Description): Update.
41609         * lib/unicase/toupper.h: New file, automatically generated by
41610         gen-uni-tables.
41611         * lib/unicase/tolower.h: New file, automatically generated by
41612         gen-uni-tables.
41613         * lib/unicase/totitle.h: New file, automatically generated by
41614         gen-uni-tables.
41615         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
41616         gen-uni-tables.
41617         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
41618         gen-uni-tables.
41619         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
41620         gen-uni-tables.
41621
41622         New module 'unicase/base'.
41623         * modules/unicase/base: New file.
41624         * lib/unicase.h: New file.
41625
41626 2009-02-08  Bruno Haible  <bruno@clisp.org>
41627
41628         New module 'uniwbrk/ulc-wordbreaks'.
41629         * modules/uniwbrk/ulc-wordbreaks: New file.
41630         * lib/uniwbrk/ulc-wordbreaks.c: New file.
41631
41632         New module 'uniwbrk/u32-wordbreaks'.
41633         * modules/uniwbrk/u32-wordbreaks: New file.
41634         * lib/uniwbrk/u32-wordbreaks.c: New file.
41635
41636         New module 'uniwbrk/u16-wordbreaks'.
41637         * modules/uniwbrk/u16-wordbreaks: New file.
41638         * lib/uniwbrk/u16-wordbreaks.c: New file.
41639
41640         New module 'uniwbrk/u8-wordbreaks'.
41641         * modules/uniwbrk/u8-wordbreaks: New file.
41642         * lib/uniwbrk/u8-wordbreaks.c: New file.
41643         * lib/uniwbrk/u-wordbreaks.h: New file.
41644
41645         New module 'uniwbrk/table'.
41646         * modules/uniwbrk/table: New file.
41647         * lib/uniwbrk/wbrktable.h: New file.
41648         * lib/uniwbrk/wbrktable.c: New file.
41649
41650         New module 'uniwbrk/wordbreak-property'.
41651         * modules/uniwbrk/wordbreak-property: New file.
41652         * lib/uniwbrk/wordbreak-property.c: New file.
41653
41654         * lib/gen-uni-tables.c (WBP_*): New enum items.
41655         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
41656         (unicode_org_wbp): New variable.
41657         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
41658         New functions.
41659         (wbp_table): New structure.
41660         (output_wbp, output_wbrk_tables): New functions.
41661         (main): Accept additional argument. Invoke fill_org_wbp,
41662         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
41663         output_wbrk_tables.
41664         * modules/gen-uni-tables (Description): Update.
41665         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
41666         gen-uni-tables.
41667
41668         New module 'uniwbrk/base'.
41669         * modules/uniwbrk/base: New file.
41670         * lib/uniwbrk.h: New file.
41671
41672 2009-02-08  Bruno Haible  <bruno@clisp.org>
41673
41674         Update to Unicode 5.1.0.
41675         * lib/gen-uni-tables.c (is_property_alphabetic): Include
41676         U+2185..U+2188.
41677         (is_property_default_ignorable_code_point): Don't include characters
41678         of category Cc or Cs and not-a-characters.
41679         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
41680         U+0D79, U+109E, U+109F, U+A60C.
41681         * lib/unictype/bidi_of.h: Regenerated.
41682         * lib/unictype/blocks.h: Regenerated.
41683         * lib/unictype/categ_C.h: Regenerated.
41684         * lib/unictype/categ_Cf.h: Regenerated.
41685         * lib/unictype/categ_Cn.h: Regenerated.
41686         * lib/unictype/categ_L.h: Regenerated.
41687         * lib/unictype/categ_Ll.h: Regenerated.
41688         * lib/unictype/categ_Lm.h: Regenerated.
41689         * lib/unictype/categ_Lo.h: Regenerated.
41690         * lib/unictype/categ_Lu.h: Regenerated.
41691         * lib/unictype/categ_M.h: Regenerated.
41692         * lib/unictype/categ_Mc.h: Regenerated.
41693         * lib/unictype/categ_Me.h: Regenerated.
41694         * lib/unictype/categ_Mn.h: Regenerated.
41695         * lib/unictype/categ_N.h: Regenerated.
41696         * lib/unictype/categ_Nd.h: Regenerated.
41697         * lib/unictype/categ_Nl.h: Regenerated.
41698         * lib/unictype/categ_No.h: Regenerated.
41699         * lib/unictype/categ_P.h: Regenerated.
41700         * lib/unictype/categ_Pd.h: Regenerated.
41701         * lib/unictype/categ_Pe.h: Regenerated.
41702         * lib/unictype/categ_Pf.h: Regenerated.
41703         * lib/unictype/categ_Pi.h: Regenerated.
41704         * lib/unictype/categ_Po.h: Regenerated.
41705         * lib/unictype/categ_Ps.h: Regenerated.
41706         * lib/unictype/categ_S.h: Regenerated.
41707         * lib/unictype/categ_Sk.h: Regenerated.
41708         * lib/unictype/categ_Sm.h: Regenerated.
41709         * lib/unictype/categ_So.h: Regenerated.
41710         * lib/unictype/categ_of.h: Regenerated.
41711         * lib/unictype/combining.h: Regenerated.
41712         * lib/unictype/ctype_alnum.h: Regenerated.
41713         * lib/unictype/ctype_alpha.h: Regenerated.
41714         * lib/unictype/ctype_graph.h: Regenerated.
41715         * lib/unictype/ctype_lower.h: Regenerated.
41716         * lib/unictype/ctype_print.h: Regenerated.
41717         * lib/unictype/ctype_punct.h: Regenerated.
41718         * lib/unictype/ctype_upper.h: Regenerated.
41719         * lib/unictype/decdigit.h: Regenerated.
41720         * lib/unictype/digit.h: Regenerated.
41721         * lib/unictype/mirror.h: Regenerated.
41722         * lib/unictype/numeric.h: Regenerated.
41723         * lib/unictype/pr_alphabetic.h: Regenerated.
41724         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
41725         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
41726         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
41727         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
41728         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
41729         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
41730         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
41731         * lib/unictype/pr_combining.h: Regenerated.
41732         * lib/unictype/pr_dash.h: Regenerated.
41733         * lib/unictype/pr_decimal_digit.h: Regenerated.
41734         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
41735         * lib/unictype/pr_deprecated.h: Regenerated.
41736         * lib/unictype/pr_diacritic.h: Regenerated.
41737         * lib/unictype/pr_extender.h: Regenerated.
41738         * lib/unictype/pr_format_control.h: Regenerated.
41739         * lib/unictype/pr_grapheme_base.h: Regenerated.
41740         * lib/unictype/pr_grapheme_extend.h: Regenerated.
41741         * lib/unictype/pr_grapheme_link.h: Regenerated.
41742         * lib/unictype/pr_id_continue.h: Regenerated.
41743         * lib/unictype/pr_id_start.h: Regenerated.
41744         * lib/unictype/pr_ideographic.h: Regenerated.
41745         * lib/unictype/pr_ignorable_control.h: Regenerated.
41746         * lib/unictype/pr_lowercase.h: Regenerated.
41747         * lib/unictype/pr_math.h: Regenerated.
41748         * lib/unictype/pr_numeric.h: Regenerated.
41749         * lib/unictype/pr_other_alphabetic.h: Regenerated.
41750         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
41751         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
41752         * lib/unictype/pr_other_id_continue.h: Regenerated.
41753         * lib/unictype/pr_other_lowercase.h: Regenerated.
41754         * lib/unictype/pr_other_math.h: Regenerated.
41755         * lib/unictype/pr_punctuation.h: Regenerated.
41756         * lib/unictype/pr_sentence_terminal.h: Regenerated.
41757         * lib/unictype/pr_soft_dotted.h: Regenerated.
41758         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
41759         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
41760         * lib/unictype/pr_unified_ideograph.h: Regenerated.
41761         * lib/unictype/pr_uppercase.h: Regenerated.
41762         * lib/unictype/pr_xid_continue.h: Regenerated.
41763         * lib/unictype/pr_xid_start.h: Regenerated.
41764         * lib/unictype/pr_zero_width.h: Regenerated.
41765         * lib/unictype/scripts.h: Regenerated.
41766         * lib/unictype/scripts_byname.gperf: Regenerated.
41767         * lib/unictype/sy_java_ident.h: Regenerated.
41768         * lib/unilbrk/lbrkprop1.h: Regenerated.
41769         * lib/unilbrk/lbrkprop2.h: Regenerated.
41770         * tests/unictype/test-categ_C.c: Regenerated.
41771         * tests/unictype/test-categ_Cf.c: Regenerated.
41772         * tests/unictype/test-categ_Cn.c: Regenerated.
41773         * tests/unictype/test-categ_L.c: Regenerated.
41774         * tests/unictype/test-categ_Ll.c: Regenerated.
41775         * tests/unictype/test-categ_Lm.c: Regenerated.
41776         * tests/unictype/test-categ_Lo.c: Regenerated.
41777         * tests/unictype/test-categ_Lu.c: Regenerated.
41778         * tests/unictype/test-categ_M.c: Regenerated.
41779         * tests/unictype/test-categ_Mc.c: Regenerated.
41780         * tests/unictype/test-categ_Me.c: Regenerated.
41781         * tests/unictype/test-categ_Mn.c: Regenerated.
41782         * tests/unictype/test-categ_N.c: Regenerated.
41783         * tests/unictype/test-categ_Nd.c: Regenerated.
41784         * tests/unictype/test-categ_Nl.c: Regenerated.
41785         * tests/unictype/test-categ_No.c: Regenerated.
41786         * tests/unictype/test-categ_P.c: Regenerated.
41787         * tests/unictype/test-categ_Pd.c: Regenerated.
41788         * tests/unictype/test-categ_Pe.c: Regenerated.
41789         * tests/unictype/test-categ_Pf.c: Regenerated.
41790         * tests/unictype/test-categ_Pi.c: Regenerated.
41791         * tests/unictype/test-categ_Po.c: Regenerated.
41792         * tests/unictype/test-categ_Ps.c: Regenerated.
41793         * tests/unictype/test-categ_S.c: Regenerated.
41794         * tests/unictype/test-categ_Sk.c: Regenerated.
41795         * tests/unictype/test-categ_Sm.c: Regenerated.
41796         * tests/unictype/test-categ_So.c: Regenerated.
41797         * tests/unictype/test-ctype_alnum.c: Regenerated.
41798         * tests/unictype/test-ctype_alpha.c: Regenerated.
41799         * tests/unictype/test-ctype_graph.c: Regenerated.
41800         * tests/unictype/test-ctype_lower.c: Regenerated.
41801         * tests/unictype/test-ctype_print.c: Regenerated.
41802         * tests/unictype/test-ctype_punct.c: Regenerated.
41803         * tests/unictype/test-ctype_upper.c: Regenerated.
41804         * tests/unictype/test-decdigit.h: Regenerated.
41805         * tests/unictype/test-digit.h: Regenerated.
41806         * tests/unictype/test-numeric.h: Regenerated.
41807         * tests/unictype/test-pr_alphabetic.c: Regenerated.
41808         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
41809         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
41810         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
41811         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
41812         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
41813         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
41814         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
41815         * tests/unictype/test-pr_combining.c: Regenerated.
41816         * tests/unictype/test-pr_dash.c: Regenerated.
41817         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
41818         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
41819         * tests/unictype/test-pr_deprecated.c: Regenerated.
41820         * tests/unictype/test-pr_diacritic.c: Regenerated.
41821         * tests/unictype/test-pr_extender.c: Regenerated.
41822         * tests/unictype/test-pr_format_control.c: Regenerated.
41823         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
41824         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
41825         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
41826         * tests/unictype/test-pr_id_continue.c: Regenerated.
41827         * tests/unictype/test-pr_id_start.c: Regenerated.
41828         * tests/unictype/test-pr_ideographic.c: Regenerated.
41829         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
41830         * tests/unictype/test-pr_lowercase.c: Regenerated.
41831         * tests/unictype/test-pr_math.c: Regenerated.
41832         * tests/unictype/test-pr_numeric.c: Regenerated.
41833         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
41834         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
41835         Regenerated.
41836         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
41837         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
41838         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
41839         * tests/unictype/test-pr_other_math.c: Regenerated.
41840         * tests/unictype/test-pr_punctuation.c: Regenerated.
41841         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
41842         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
41843         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
41844         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
41845         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
41846         * tests/unictype/test-pr_uppercase.c: Regenerated.
41847         * tests/unictype/test-pr_xid_continue.c: Regenerated.
41848         * tests/unictype/test-pr_xid_start.c: Regenerated.
41849         * tests/unictype/test-pr_zero_width.c: Regenerated.
41850
41851         Update to Unicode 5.1.0.
41852         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
41853         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
41854         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
41855         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
41856         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
41857         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
41858         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
41859         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
41860         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
41861         (nonspacing_table_ind): Update.
41862         * tests/uniwidth/test-uc_width2.sh: Update expected result.
41863
41864         Update to Unicode 5.1.0.
41865         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
41866         code transform.
41867         * lib/uniname/uniname.c (unicode_character_name,
41868         unicode_name_character): Add the range 0x1Fxxx to the code transform.
41869         * lib/uniname/uninames.h: Regenerated.
41870         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
41871
41872 2009-02-07  Bruno Haible  <bruno@clisp.org>
41873
41874         Merge gen-ctype and gen-lbrk into a single program.
41875         * lib/gen-uni-tables.c: New file, incorporating
41876         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
41877         Add directory prefixes to the names of the generated files.
41878         * lib/unictype/gen-ctype.c: Remove file.
41879         * lib/unilbrk/gen-lbrk.c: Remove file.
41880         * modules/gen-uni-tables: New file.
41881         * modules/unictype/gen-ctype: Remove file.
41882         * modules/unilbrk/gen-lbrk: Remove file.
41883
41884 2009-02-07  Bruno Haible  <bruno@clisp.org>
41885
41886         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
41887
41888         New module 'unistr/u32-strcoll'.
41889         * modules/unistr/u32-strcoll: New file.
41890         * lib/unistr/u32-strcoll.c: New file.
41891
41892         New module 'unistr/u16-strcoll'.
41893         * modules/unistr/u16-strcoll: New file.
41894         * lib/unistr/u16-strcoll.c: New file.
41895
41896         New module 'unistr/u8-strcoll'.
41897         * modules/unistr/u8-strcoll: New file.
41898         * lib/unistr/u8-strcoll.c: New file.
41899         * lib/unistr/u-strcoll.h: New file.
41900
41901 2009-02-07  Bruno Haible  <bruno@clisp.org>
41902
41903         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
41904         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41905         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
41906         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
41907         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
41908         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
41909
41910 2009-02-07  Bruno Haible  <bruno@clisp.org>
41911
41912         Make 64-bit clean.
41913         * lib/unictype/gen-ctype.c (output_predicate, output_category,
41914         output_combclass, output_bidi_category, output_decimal_digit,
41915         output_digit, output_numeric, output_mirror, output_scripts,
41916         output_ident_category): Use proper width specifier in format strings.
41917
41918 2009-02-07  Bruno Haible  <bruno@clisp.org>
41919
41920         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
41921         failure behaviour.
41922
41923 2009-02-07  Jim Meyering  <meyering@redhat.com>
41924
41925         regex: avoid compilation failure with upcoming gcc-4.4
41926         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
41927         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
41928         "... error: integer overflow in preprocessor expression".
41929
41930 2009-02-05  Ben Pfaff  <blp@gnu.org>
41931
41932         Fix link errors on Windows when close module is used.
41933         * modules/close: Add $(LIB_CLOSE) to Link section.
41934         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
41935         $(LIB_CLOSE) on Windows.
41936
41937 2009-02-05  Jim Meyering  <meyering@redhat.com>
41938
41939         still avoid unused-parameter warnings, but do it cleanly
41940         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
41941         (get_fs_usage): Cast to void instead.
41942         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
41943         (dev_from_mount_options, read_file_system_list): Cast to void.
41944         Prompted by Bruno Haible.
41945
41946 2009-02-04  Jim Meyering  <meyering@redhat.com>
41947
41948         fsusage.c: correct copyright year
41949         * lib/fsusage.c: Reflect year in which the change is pushed into
41950
41951         avoid misc. warnings
41952         * lib/fsusage.c (UNUSED_PARAM): Define.
41953         (get_fs_usage): Mark parameter "disk" as unused.
41954         * lib/getugroups.c (getgrent): Use "void" in prototype.
41955         * lib/mountlist.c: Mark unused parameters.
41956         (read_file_system_list): Declare a local with "const".
41957         * lib/nanosleep.c (getnow): Declare static.
41958         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
41959
41960         dirfd: set errno upon failure
41961         * lib/dirfd.c: Include <errno.h>.
41962         Set errno to ENOTSUP when returning -1.
41963         * modules/dirfd (Depends-on): Add errno.
41964         Suggested by John Kodis <kodis@comcast.net>.
41965
41966 2009-02-01  Bruno Haible  <bruno@clisp.org>
41967
41968         Don't assume sizeof (long) >= sizeof (void *).
41969         * lib/memcmp.c: Include stdint.h.
41970         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
41971         srcp2 to 'const byte *'.
41972         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
41973         types to uintptr_t.
41974         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
41975         * modules/memcmp (Depends-on): Add stdint.
41976         Reported by Ozkan Sezer <sezeroz@gmail.com>.
41977
41978 2009-01-30  Eric Blake  <ebb9@byu.net>
41979
41980         fix more require-before-expand issues
41981         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
41982         expand, AC_PROG_AWK.
41983         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
41984
41985 2009-01-28  Eric Blake  <ebb9@byu.net>
41986
41987         version-etc: use consistent URL formatting
41988         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
41989         Improve formatting.  Use fputs for string without %.
41990
41991 2009-01-28  Jim Meyering  <meyering@redhat.com>
41992
41993         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
41994         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
41995         "underquoted definition of NAME" from autoconf-2.59.
41996
41997 2009-01-28  Bruno Haible  <bruno@clisp.org>
41998
41999         * doc/gnulib.texi: Add "Obsolete modules" to index.
42000
42001 2009-01-28  Jim Meyering  <meyering@redhat.com>
42002
42003         useless-if-before-free: recognize more variants
42004         * build-aux/useless-if-before-free: Also recognize e.g.,
42005         if (NULL != p) free (p);
42006
42007 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
42008
42009         test-getaddrinfo: skip (don't fail) this test when there's no network
42010         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
42011         on the presumption that it means you lack network access.
42012
42013 2009-01-26  Jim Meyering  <meyering@redhat.com>
42014
42015         fflush: avoid warnings on modern systems
42016         * lib/fflush.c (rpl_fflush): Move declarations of locals,
42017         pos and result, into scopes where they're used.
42018
42019 2009-01-26  Eric Blake  <ebb9@byu.net>
42020
42021         Silence warning reintroduced by recent extensions patch.
42022         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
42023         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
42024         autoconf.
42025
42026         Backport improved autoconf semantics of AC_DEFUN_ONCE.
42027         * m4/00gnulib.m4: New file.
42028         * gnulib-tool (func_get_filelist): Always use it.
42029         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
42030         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
42031
42032 2009-01-25  Bruno Haible  <bruno@clisp.org>
42033
42034         Make test-quotearg work on MacOS X and AIX.
42035         * tests/test-quotearg.sh: New file.
42036         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
42037         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
42038         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
42039         include <libintl.h>.
42040         (fake_locale): Remove variable.
42041         (gettext, dgettext, dcgettext): Remove functions.
42042         (main): Instead of setting a fake locale, set a real locale. Call
42043         textdomain and bindtextdomain.
42044         * modules/quotearg-tests (Files): Add the new files.
42045         (Depends-on): Add gettext, setenv, unsetenv.
42046         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
42047         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
42048         Augment TESTS_ENVIRONMENT.
42049
42050 2009-01-25  Bruno Haible  <bruno@clisp.org>
42051
42052         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
42053         fr_FR.ISO8859-1 locale on MacOS X.
42054         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
42055         ja_JP.eucJP locale on MacOS X.
42056         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
42057         zh_CN.GB18030 locale on MacOS X.
42058
42059 2009-01-25  Bruno Haible  <bruno@clisp.org>
42060
42061         Avoid link errors on MacOS X 10.3.
42062         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
42063         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
42064
42065 2009-01-25  Bruno Haible  <bruno@clisp.org>
42066
42067         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
42068         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
42069         * modules/pipe (Files): Remove m4/posix_spawn.m4.
42070         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
42071         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
42072         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
42073         posix_spawnattr_init, posix_spawnattr_setsigmask,
42074         posix_spawnattr_setflags, posix_spawnattr_destroy.
42075
42076         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
42077         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
42078         * modules/execute (Files): Remove m4/posix_spawn.m4.
42079         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
42080         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
42081         posix_spawnattr_init, posix_spawnattr_setsigmask,
42082         posix_spawnattr_setflags, posix_spawnattr_destroy.
42083
42084 2009-01-25  Bruno Haible  <bruno@clisp.org>
42085
42086         * lib/glthread/threadlib.c: Include <stdlib.h>.
42087
42088 2009-01-25  Bruno Haible  <bruno@clisp.org>
42089
42090         * lib/glthread/threadlib.c (dummy): New declaration.
42091
42092 2009-01-25  Bruno Haible  <bruno@clisp.org>
42093
42094         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
42095         multibyte characters also for the GB18030 encoding. Don't crash when
42096         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
42097
42098 2009-01-25  Bruno Haible  <bruno@clisp.org>
42099
42100         Avoid redefining 'struct random_data' on OSF/1 5.1.
42101         * lib/stdlib.in.h: Include <random.h> if it exists.
42102         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
42103         HAVE_RANDOM_H. Include <random.h> when testing whether
42104         'struct random_data' exists.
42105         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
42106
42107 2009-01-25  Bruno Haible  <bruno@clisp.org>
42108
42109         Don't install charset.alias on MacOS X >= 10.3.
42110         * lib/localcharset.c (DARWIN7): New macro.
42111         (get_charset_aliases): Hardcode the result for Darwin7.
42112         * modules/localcharset (install-exec-local): Don't install
42113         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
42114
42115 2009-01-25  Bruno Haible  <bruno@clisp.org>
42116
42117         Don't install charset.alias on mingw and Cygwin.
42118         * modules/localcharset (install-exec-local): Don't install
42119         charset.alias on mingw and Cygwin, if the file does not yet exist.
42120         The result for these platforms is hardcoded in localcharset.c.
42121
42122 2009-01-25  Bruno Haible  <bruno@clisp.org>
42123
42124         Make it possible again to use AC_GNU_SOURCE together with gnulib.
42125         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
42126         before requiring AC_USE_SYSTEM_EXTENSIONS.
42127
42128 2009-01-25  Jim Meyering  <meyering@redhat.com>
42129
42130         c-strtod: avoid warnings
42131         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
42132         "assignment discards qualifiers from pointer target type" warnings.
42133
42134 2009-01-24  Bruno Haible  <bruno@clisp.org>
42135
42136         Add support for non-UTF-8 locales on MacOS X.
42137         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
42138         canonical encodings. For Darwin 7 and newer, don't map traditional
42139         encodings to UTF-8.
42140         Reported by Vincent Lefevre <vincent@vinc17.org>
42141         at <http://savannah.gnu.org/bugs/?25235>.
42142
42143 2009-01-24  Bruno Haible  <bruno@clisp.org>
42144
42145         * doc/gnulib.texi (Obsolete modules): New section.
42146         Reported by Mike Frysinger <vapier@gentoo.org>.
42147
42148 2009-01-24  Bruno Haible  <bruno@clisp.org>
42149
42150         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
42151         (%.dvi): New rule.
42152
42153 2009-01-24  Bruno Haible  <bruno@clisp.org>
42154
42155         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
42156         Reported by Eric Blake.
42157
42158 2009-01-24  Bruno Haible  <bruno@clisp.org>
42159
42160         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
42161         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
42162         Reported by Gary V. Vaughan <gary@gnu.org>.
42163
42164 2009-01-24  Bruno Haible  <bruno@clisp.org>
42165
42166         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
42167
42168 2009-01-23  Bruno Haible  <bruno@clisp.org>
42169
42170         Make c-strtod, c-strtold usable in libraries.
42171         * lib/c-strtod.c: Include string.h instead of xalloc.h.
42172         (C_STRTOD): Call strdup instead of xstrdup.
42173         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
42174         * modules/c-strtold (Depends-on): Likewise.
42175         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
42176         * NEWS: Mention the change.
42177         Reported by Michael Gold <mgold@ncf.ca>.
42178
42179 2009-01-23  Jim Meyering  <meyering@redhat.com>
42180
42181         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
42182         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
42183         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
42184
42185 2009-01-23  Simon Josefsson  <simon@josefsson.org>
42186
42187         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
42188         GNU CoreUtils.
42189         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
42190         * modules/version-etc (Description): Update.
42191
42192 2009-01-22  Bruno Haible  <bruno@clisp.org>
42193
42194         Cache the C locale object.
42195         * lib/c-strtod.c (c_locale_cache): New variable.
42196         (c_locale): New function.
42197         (C_STRTOD): Use it, and don't call freelocale.
42198         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
42199         Suggested by Paolo Bonzini.
42200
42201 2009-01-21  Bruno Haible  <bruno@clisp.org>
42202
42203         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
42204         conditions other than overflow.
42205
42206 2009-01-21  Bruno Haible  <bruno@clisp.org>
42207
42208         * lib/c-strtod.c: Include errno.h.
42209         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
42210         value from STRTOD_L and STRTOD.
42211
42212 2009-01-21  Bruno Haible  <bruno@clisp.org>
42213         and Jim Meyering  <meyering@redhat.com>
42214
42215         nanosleep: skip configure test (fail it) for apple universal builds
42216         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
42217         universal builds, assume that nanosleep does not work.
42218         * modules/nanosleep (Depends-on): Add multiarch.
42219
42220         mktime: skip configure test (fail it) for apple universal builds
42221         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
42222         universal builds, assume that mktime does not work.
42223         * modules/mktime (Depends-on): Add multiarch.
42224
42225 2009-01-21  Eric Blake  <ebb9@byu.net>
42226
42227         multiarch: avoid expand-before-require warning
42228         * modules/multiarch (configure.ac): Require, rather than expand,
42229         gl_MULTIARCH.
42230         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
42231         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
42232         enforce that all clients require it.  Partial reversion of
42233         2008-12-29 patch.
42234
42235         error: avoid expand-before-require warning
42236         * modules/errno (configure.ac): Require, rather than expand,
42237         gl_HEADER_ERRNO_H.
42238         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
42239         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
42240         enforce that all clients require it.
42241
42242         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
42243         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
42244         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
42245         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
42246
42247 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
42248
42249         Revert:
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-20  Bruno Haible  <bruno@clisp.org>
42256
42257         Make the 'link' module link on Windows NT 4.
42258         * lib/link.c (_WIN32_WINNT): Don't define.
42259         (CreateHardLinkFuncType): New type.
42260         (CreateHardLinkFunc, initialized): New variables.
42261         (initialize): New function.
42262         (link): Invoke CreateHardLink indirectly through the function pointer.
42263
42264 2009-01-20  Bruno Haible  <bruno@clisp.org>
42265
42266         Fix compilation failure on mingw.
42267         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
42268
42269 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
42270
42271         * doc/c-strtod.texi: Mention a couple of restrictions.
42272
42273 2009-01-20  Jim Meyering  <meyering@redhat.com>
42274
42275         gettimeofday: move more declarations out of functions
42276         * lib/gettimeofday.c: Move extern declarations of tzset and
42277         gmtime out of containing functions.  Prompted by Bruno Haible.
42278
42279 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
42280
42281         regex: do not depend on obsolete modules.
42282         * modules/regex: Remove memcmp and memmove.
42283
42284 2009-01-19  Bruno Haible  <bruno@clisp.org>
42285
42286         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42287         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
42288         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42289         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
42290         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
42291
42292 2009-01-19  Bruno Haible  <bruno@clisp.org>
42293
42294         * tests/test-link.c: Include <errno.h>.
42295         (main): Exit with code 77 when a hard link cannot be created due to
42296         the file system.
42297         * tests/test-link.sh: Skip test when a hard link cannot be created due
42298         to the file system.
42299         Suggested by Eric Blake.
42300
42301 2009-01-19  Martin Lambers  <marlam@marlam.de>
42302
42303         * modules/link-tests: New file.
42304         * tests/test-link.sh: New file.
42305         * tests/test-link.c: New file.
42306
42307 2009-01-19  Eric Blake  <ebb9@byu.net>
42308
42309         doc: mention another function added in cygwin 1.7.0
42310         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
42311         Another new function in cygwin 1.7.
42312
42313 2009-01-19  Bruno Haible  <bruno@clisp.org>
42314
42315         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
42316         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
42317         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
42318         gl_BIGENDIAN, not AC_C_BIGENDIAN.
42319         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
42320         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
42321         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
42322         * m4/md4.m4 (gl_MD4): Likewise.
42323         * m4/md5.m4 (gl_MD5): Likewise.
42324         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
42325         * m4/sha1.m4 (gl_SHA1): Likewise.
42326         * m4/sha256.m4 (gl_SHA256): Likewise.
42327         * m4/sha512.m4 (gl_SHA512): Likewise.
42328
42329 2009-01-19  Bruno Haible  <bruno@clisp.org>
42330
42331         * modules/uniname/uniname-tests (Depends-on): Add progname.
42332         * tests/uniname/test-uninames.c: Include progname.h.
42333         (main): Call set_program_name.
42334
42335         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
42336         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
42337         (main): Call set_program_name.
42338
42339         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
42340         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
42341         (main): Call set_program_name.
42342
42343         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
42344         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
42345         (main): Call set_program_name.
42346
42347         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
42348         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
42349         (main): Call set_program_name.
42350
42351         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
42352         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
42353         (main): Call set_program_name.
42354
42355         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
42356         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
42357         (main): Call set_program_name.
42358
42359         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
42360         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
42361         (main): Call set_program_name.
42362
42363         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
42364         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
42365         (main): Call set_program_name.
42366
42367 2009-01-19  Eric Blake  <ebb9@byu.net>
42368
42369         test-unistd: test previous patch
42370         * tests/test-unistd.c: Test *_FILENO macros.
42371
42372         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
42373         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42374         Guarantee a definition.
42375         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
42376         * modules/unistd-safer (Depends-on): Add dependency on unistd.
42377         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
42378         * lib/dup-safer.c (STDERR_FILENO): Likewise.
42379         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42380         Likewise.
42381         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
42382         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
42383         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
42384         Likewise.
42385         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
42386         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
42387         (STDERR_FILENO): Likewise.
42388         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
42389         (STDERR_FILENO): Likewise.
42390         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
42391         (STDERR_FILENO): Likewise.
42392         Reported by Elbert Pol.
42393
42394 2009-01-19  Eric Blake  <ebb9@byu.net>
42395
42396         doc: mention more functions added in cygwin 1.7.0
42397         * doc/posix-functions/abort.texi (abort): Update wording related
42398         to cygwin.
42399         * doc/posix-functions/daylight.texi (daylight): Likewise.
42400         * doc/posix-functions/optarg.texi (optarg): Likewise.
42401         * doc/posix-functions/optarg.texi (opterr): Likewise.
42402         * doc/posix-functions/optarg.texi (optind): Likewise.
42403         * doc/posix-functions/optarg.texi (optopt): Likewise.
42404         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
42405         worked in 1.5.x, and was withdrawn in 1.7.
42406         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
42407         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
42408         cygwin versions.
42409         * doc/posix-functions/perror.texi (perror): Likewise.
42410         * doc/posix-functions/printf.texi (printf): Likewise.
42411         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
42412         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
42413         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
42414         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
42415         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
42416         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
42417         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
42418         Likewise.
42419         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
42420         Likewise.
42421         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
42422         this function.
42423         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
42424         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
42425         Likewise.
42426         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
42427         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
42428         * doc/posix-functions/confstr.texi (confstr): Likewise.
42429         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
42430         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
42431         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
42432         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
42433         * doc/posix-functions/fputws.texi (fputws): Likewise.
42434         * doc/posix-functions/fwide.texi (fwide): Likewise.
42435         * doc/posix-functions/getwc.texi (getwc): Likewise.
42436         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
42437         * doc/posix-functions/putwc.texi (putwc): Likewise.
42438         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
42439         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
42440         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
42441         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
42442         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
42443         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
42444         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
42445         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
42446         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
42447         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
42448         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
42449
42450 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42451
42452         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
42453         * lib/ioctl.c: Include <sys/ioctl.h>.
42454
42455 2009-01-19  Simon Josefsson  <simon@josefsson.org>
42456
42457         * modules/getdate-tests (Depends-on): Add progname.
42458         * tests/test-getdate.c: Use progname module, to avoid link errors
42459         on non-glibc systems.
42460
42461 2009-01-18  Simon Josefsson  <simon@josefsson.org>
42462
42463         * modules/filenamecat-tests (Depends-on): Add progname.
42464         * modules/fstrcmp-tests (Depends-on): Likewise.
42465
42466         * tests/test-filenamecat.c: Use progname module, to avoid link
42467         errors on non-glibc systems.
42468         * tests/test-fstrcmp.c: Likewise.
42469
42470 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
42471
42472         gettimeofday: avoid warning: nested extern declaration of 'localtime'
42473         * lib/gettimeofday.c: Move extern declaration out of function.
42474
42475 2009-01-18  Bruno Haible  <bruno@clisp.org>
42476
42477         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
42478         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
42479         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
42480
42481 2009-01-18  Bruno Haible  <bruno@clisp.org>
42482
42483         * lib/strftime.c (MEMPCPY): Remove unused macro.
42484         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
42485
42486 2009-01-18  Martin Lambers  <marlam@marlam.de>
42487
42488         New module 'link'.
42489         * lib/unistd.in.h (link): New declaration.
42490         * lib/link.c: New file.
42491         * m4/link.m4: New file.
42492         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
42493         HAVE_LINK.
42494         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
42495         * modules/link: New file.
42496         * doc/posix-functions/link.texi: Mention the new module.
42497
42498 2009-01-18  Bruno Haible  <bruno@clisp.org>
42499
42500         * tests/test-avltree_list.c (main): Call set_program_name.
42501         * tests/test-avltree_oset.c (main): Likewise.
42502         * tests/test-obstack-printf.c: Include progname.h.
42503         (main): Call set_program_name.
42504         * tests/test-quotearg.c: Include progname.h.
42505         (main): Call set_program_name.
42506         * tests/test-xmemdup0.c: Include progname.h.
42507         (main): Call set_program_name.
42508
42509 2009-01-18  Bruno Haible  <bruno@clisp.org>
42510
42511         New module 'alphasort'.
42512         * lib/dirent.in.h (alphasort): New declaration.
42513         * lib/alphasort.c: New file, from glibc with modifications.
42514         * m4/alphasort.m4: New file.
42515         * modules/alphasort: New file.
42516         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
42517         HAVE_ALPHASORT.
42518         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
42519         HAVE_ALPHASORT.
42520         * doc/posix-functions/alphasort.texi: Mention the new module and the
42521         portability problems.
42522
42523 2009-01-18  Bruno Haible  <bruno@clisp.org>
42524
42525         New module 'scandir'.
42526         * lib/dirent.in.h (scandir): New declaration.
42527         * lib/scandir.c: New file, from glibc with modifications.
42528         * m4/scandir.m4: New file.
42529         * modules/scandir: New file.
42530         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
42531         HAVE_SCANDIR.
42532         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
42533         HAVE_SCANDIR.
42534         * doc/posix-functions/scandir.texi: Mention the new module and the
42535         portability problems.
42536
42537 2009-01-17  Bruno Haible  <bruno@clisp.org>
42538
42539         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
42540         Update documentation.
42541         (func_remove_suffix): Escape all dots in the suffix. Update
42542         documentation.
42543         (func_filter_filelist): Update documentation.
42544         Reported by Ralf Wildenhues.
42545
42546 2009-01-17  Bruno Haible  <bruno@clisp.org>
42547
42548         * modules/dprintf-posix-tests: New file.
42549         * tests/test-dprintf-posix.sh: New file.
42550         * tests/test-dprintf-posix.c: New file.
42551
42552         New modules 'dprintf', 'dprintf-posix'.
42553         * lib/stdio.in.h (dprintf): New declaration.
42554         * lib/dprintf.c: New file.
42555         * m4/dprintf.m4: New file.
42556         * m4/dprintf-posix.m4: New file.
42557         * modules/dprintf: New file.
42558         * modules/dprintf-posix: New file.
42559         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
42560         HAVE_DPRINTF, REPLACE_DPRINTF.
42561         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
42562         HAVE_DPRINTF, REPLACE_DPRINTF.
42563         * doc/posix-functions/dprintf.texi: Mention the new modules.
42564
42565 2009-01-17  Bruno Haible  <bruno@clisp.org>
42566
42567         * modules/vdprintf-posix-tests: New file.
42568         * tests/test-vdprintf-posix.sh: New file.
42569         * tests/test-vdprintf-posix.c: New file.
42570
42571         New modules 'vdprintf', 'vdprintf-posix'.
42572         * lib/stdio.in.h (vdprintf): New declaration.
42573         * lib/vdprintf.c: New file.
42574         * m4/vdprintf.m4: New file.
42575         * m4/vdprintf-posix.m4: New file.
42576         * modules/vdprintf: New file.
42577         * modules/vdprintf-posix: New file.
42578         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
42579         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42580         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
42581         HAVE_VDPRINTF, REPLACE_VDPRINTF.
42582         * doc/posix-functions/vdprintf.texi: Mention the new modules.
42583
42584 2009-01-17  Bruno Haible  <bruno@clisp.org>
42585
42586         Fix replacement of fopen on mingw.
42587         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
42588         mingw.
42589
42590 2009-01-17  Bruno Haible  <bruno@clisp.org>
42591
42592         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
42593         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
42594
42595 2009-01-17  Bruno Haible  <bruno@clisp.org>
42596
42597         Avoid test-fflush2.sh failure on mingw.
42598         * tests/test-fflush2.c: Include binary-io.h.
42599         (main): Put standard input into binary mode.
42600         * modules/fflush-tests (Depends-on): Add binary-io.
42601
42602 2009-01-17  Bruno Haible  <bruno@clisp.org>
42603
42604         * lib/wchar.in.h: In another particular situation, include only the
42605         system's <wchar.h> file.
42606         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
42607         Reported by Albert Chin-A-Young <china@thewrittenword.com>
42608         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
42609
42610 2009-01-17  Bruno Haible  <bruno@clisp.org>
42611
42612         Support for stripping executables in --enable-relocatable.
42613         * build-aux/install-reloc: Expect one more argument, or an environment
42614         variable RELOC_STRIP_PROG. If set, strip the destination program and
42615         its wrapper.
42616         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
42617         RELOC_STRIP_PROG.
42618         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
42619         to set RELOCATABLE_STRIP.
42620         * NEWS: Mention the new Makefile requirement.
42621
42622 2009-01-17  Bruno Haible  <bruno@clisp.org>
42623
42624         * build-aux/install-reloc: Remove debugging information left over by
42625         C compiler on MacOS X.
42626
42627 2009-01-17  Bruno Haible  <bruno@clisp.org>
42628
42629         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
42630         * lib/progreloc.c (find_executable): Fix type of pointer passed to
42631         _NSGetExecutablePath.
42632
42633 2009-01-16  Jim Meyering  <meyering@redhat.com>
42634
42635         strerror: avoid warnings about discarding "const"
42636         * lib/strerror.c (rpl_strerror): Instead of returning a const
42637         string from each and every "case", use a variable, and add a single
42638         cast after the switch.
42639
42640 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
42641
42642         * lib/arpa_inet.in.h: Add extern "C" block for C++.
42643
42644 2009-01-16  Bruno Haible  <bruno@clisp.org>
42645
42646         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
42647         array initializer syntax that also works in C++ mode.
42648         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42649
42650 2009-01-16  Jim Meyering  <meyering@redhat.com>
42651
42652         poll: suppress a warning
42653         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
42654         to ignore "...unsigned expression < 0 is always false" warnings.
42655
42656 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
42657
42658         poll: remove declarations of unused variables
42659         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
42660         sockbuf and optlen.
42661
42662 2009-01-15  Bruno Haible  <bruno@clisp.org>
42663
42664         Make fflush-after-ungetc POSIX compliant on BSD systems.
42665         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
42666         (clear_ungetc_buffer): Implement also for other systems.
42667         (rpl_fflush): On glibc systems, invoke
42668         clear_ungetc_buffer_preserving_position. Otherwise, invoke
42669         clear_ungetc_buffer after fetching the stream's position, not before.
42670
42671 2009-01-15  Bruno Haible  <bruno@clisp.org>
42672
42673         Make fflush-after-ungetc POSIX compliant on glibc systems.
42674         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
42675         after ungetc.
42676         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
42677         (rpl_fflush): On glibc systems, simply call the system's fflush
42678         function after clearing the ungetc buffer.
42679         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
42680         Instead, lseek only to the end of file, then use the system's fseeko
42681         for the rest. On glibc systems, reset the EOF indicator bit.
42682
42683 2009-01-15  Jim Meyering  <meyering@redhat.com>
42684
42685         openmp.m4: revert quote-adding change, for portability to older autoconf
42686         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
42687         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
42688         Simon Josefsson noticed the problem when using autoconf-2.61.
42689
42690 2009-01-15  Bruno Haible  <bruno@clisp.org>
42691
42692         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
42693         * tests/test-fflush2.c (ASSERT): Always fail.
42694         (main): Add two tests for fflush() after ungetc(), taking into account
42695         the Austin Group's clarification.
42696         Suggested by Eric Blake.
42697
42698 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
42699
42700         mktime.m4: remove K&R-style function prototypes
42701         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
42702         for the Sun C++ compiler.
42703
42704 2009-01-14  Bruno Haible  <bruno@clisp.org>
42705
42706         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
42707         while including <wchar.h>.
42708         * lib/wchar.in.h: In two particular situations on HP-UX, include only
42709         the system's <wchar.h> file.
42710         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42711
42712 2009-01-14  Bruno Haible  <bruno@clisp.org>
42713
42714         * m4/csharp.m4: Don't mention gettext on the serial number line.
42715         * m4/csharpexec.m4: Likewise.
42716         * m4/eaccess.m4: Likewise.
42717         * m4/javaexec.m4: Likewise.
42718         * m4/sig_atomic_t.m4: Likewise.
42719         * m4/tmpdir.m4: Likewise.
42720         * m4/intldir.m4: Bump gettext version.
42721         * m4/lib-ld.m4: Likewise.
42722
42723 2009-01-14  Bruno Haible  <bruno@clisp.org>
42724
42725         * lib/progname.c (set_program_name): Add more comments.
42726         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
42727
42728 2009-01-14  Simon Josefsson  <simon@josefsson.org>
42729
42730         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
42731         were sys/stat.h does not define it.
42732
42733 2009-01-14  Jim Meyering  <meyering@redhat.com>
42734
42735         many *.m4 files: improve m4 quoting
42736         99% of this change was performed by running the following commands:
42737         git ls-files | grep '\.m4$' | xargs perl -pi \
42738           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
42739           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42740           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
42741           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
42742         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
42743         The remainder were to add Copyright dates, increment serial numbers,
42744         undo some changes in comments, exclude m4/intl.m4, and add quotes
42745         around the "1" in ",1" where the unusual spacing prohibited the
42746         above regexps from doing the job.  For more details, see
42747         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
42748         * m4/acl.m4: Modified.
42749         * m4/afs.m4: Likewise.
42750         * m4/alloca.m4: Likewise.
42751         * m4/argp.m4: Likewise.
42752         * m4/argz.m4: Likewise.
42753         * m4/atexit.m4: Likewise.
42754         * m4/bison-i18n.m4: Likewise.
42755         * m4/bison.m4: Likewise.
42756         * m4/byteswap.m4: Likewise.
42757         * m4/c-stack.m4: Likewise.
42758         * m4/c-strtod.m4: Likewise.
42759         * m4/calloc.m4: Likewise.
42760         * m4/canonicalize-lgpl.m4: Likewise.
42761         * m4/chown.m4: Likewise.
42762         * m4/clock_time.m4: Likewise.
42763         * m4/codeset.m4: Likewise.
42764         * m4/copy-file.m4: Likewise.
42765         * m4/csharp.m4: Likewise.
42766         * m4/csharpcomp.m4: Likewise.
42767         * m4/csharpexec.m4: Likewise.
42768         * m4/d-ino.m4: Likewise.
42769         * m4/d-type.m4: Likewise.
42770         * m4/dirfd.m4: Likewise.
42771         * m4/double-slash-root.m4: Likewise.
42772         * m4/eaccess.m4: Likewise.
42773         * m4/eealloc.m4: Likewise.
42774         * m4/environ.m4: Likewise.
42775         * m4/errno_h.m4: Likewise.
42776         * m4/euidaccess.m4: Likewise.
42777         * m4/execute.m4: Likewise.
42778         * m4/fatal-signal.m4: Likewise.
42779         * m4/fchdir.m4: Likewise.
42780         * m4/fcntl_h.m4: Likewise.
42781         * m4/fileblocks.m4: Likewise.
42782         * m4/filenamecat.m4: Likewise.
42783         * m4/findprog.m4: Likewise.
42784         * m4/flexmember.m4: Likewise.
42785         * m4/fnmatch.m4: Likewise.
42786         * m4/fopen.m4: Likewise.
42787         * m4/fpending.m4: Likewise.
42788         * m4/fprintf-posix.m4: Likewise.
42789         * m4/free.m4: Likewise.
42790         * m4/frexp.m4: Likewise.
42791         * m4/frexpl.m4: Likewise.
42792         * m4/fsusage.m4: Likewise.
42793         * m4/ftruncate.m4: Likewise.
42794         * m4/gc-camellia.m4: Likewise.
42795         * m4/gc-random.m4: Likewise.
42796         * m4/gc.m4: Likewise.
42797         * m4/getaddrinfo.m4: Likewise.
42798         * m4/getcwd-abort-bug.m4: Likewise.
42799         * m4/getcwd-path-max.m4: Likewise.
42800         * m4/getdate.m4: Likewise.
42801         * m4/getdomainname.m4: Likewise.
42802         * m4/getgroups.m4: Likewise.
42803         * m4/gethostname.m4: Likewise.
42804         * m4/gethrxtime.m4: Likewise.
42805         * m4/getline.m4: Likewise.
42806         * m4/getloadavg.m4: Likewise.
42807         * m4/getndelim2.m4: Likewise.
42808         * m4/getpass.m4: Likewise.
42809         * m4/gettext.m4: Likewise.
42810         * m4/gettime.m4: Likewise.
42811         * m4/gettimeofday.m4: Likewise.
42812         * m4/gnulib-common.m4: Likewise.
42813         * m4/group-member.m4: Likewise.
42814         * m4/host-os.m4: Likewise.
42815         * m4/iconv.m4: Likewise.
42816         * m4/iconv_open.m4: Likewise.
42817         * m4/inet_ntop.m4: Likewise.
42818         * m4/inet_pton.m4: Likewise.
42819         * m4/inline.m4: Likewise.
42820         * m4/intldir.m4: Likewise.
42821         * m4/intlmacosx.m4: Likewise.
42822         * m4/intmax.m4: Likewise.
42823         * m4/intmax_t.m4: Likewise.
42824         * m4/inttypes.m4: Likewise.
42825         * m4/inttypes_h.m4: Likewise.
42826         * m4/inttypes-pri.m4: Likewise.
42827         * m4/isapipe.m4: Likewise.
42828         * m4/isnand.m4: Likewise.
42829         * m4/isnanf.m4: Likewise.
42830         * m4/isnanl.m4: Likewise.
42831         * m4/javacomp.m4: Likewise.
42832         * m4/javaexec.m4: Likewise.
42833         * m4/jm-winsz1.m4: Likewise.
42834         * m4/jm-winsz2.m4: Likewise.
42835         * m4/lchown.m4: Likewise.
42836         * m4/lcmessage.m4: Likewise.
42837         * m4/ldexpl.m4: Likewise.
42838         * m4/lib-ld.m4: Likewise.
42839         * m4/lib-link.m4: Likewise.
42840         * m4/libsigsegv.m4: Likewise.
42841         * m4/link-follow.m4: Likewise.
42842         * m4/localcharset.m4: Likewise.
42843         * m4/locale-fr.m4: Likewise.
42844         * m4/locale-ja.m4: Likewise.
42845         * m4/locale-tr.m4: Likewise.
42846         * m4/locale-zh.m4: Likewise.
42847         * m4/lock.m4: Likewise.
42848         * m4/longlong.m4: Likewise.
42849         * m4/ls-mntd-fs.m4: Likewise.
42850         * m4/lstat.m4: Likewise.
42851         * m4/malloc.m4: Likewise.
42852         * m4/mathl.m4: Likewise.
42853         * m4/mbrtowc.m4: Likewise.
42854         * m4/mbstate_t.m4: Likewise.
42855         * m4/mbswidth.m4: Likewise.
42856         * m4/memchr.m4: Likewise.
42857         * m4/memcmp.m4: Likewise.
42858         * m4/memcpy.m4: Likewise.
42859         * m4/memmem.m4: Likewise.
42860         * m4/memmove.m4: Likewise.
42861         * m4/mempcpy.m4: Likewise.
42862         * m4/memrchr.m4: Likewise.
42863         * m4/memset.m4: Likewise.
42864         * m4/minmax.m4: Likewise.
42865         * m4/mkdir-slash.m4: Likewise.
42866         * m4/mkdtemp.m4: Likewise.
42867         * m4/mktime.m4: Likewise.
42868         * m4/mmap-anon.m4: Likewise.
42869         * m4/mountlist.m4: Likewise.
42870         * m4/nanosleep.m4: Likewise.
42871         * m4/nls.m4: Likewise.
42872         * m4/nocrash.m4: Likewise.
42873         * m4/open.m4: Likewise.
42874         * m4/openat.m4: Likewise.
42875         * m4/openmp.m4: Likewise.
42876         * m4/pathmax.m4: Likewise.
42877         * m4/perl.m4: Likewise.
42878         * m4/physmem.m4: Likewise.
42879         * m4/pipe.m4: Likewise.
42880         * m4/po.m4: Likewise.
42881         * m4/poll.m4: Likewise.
42882         * m4/posixtm.m4: Likewise.
42883         * m4/posixver.m4: Likewise.
42884         * m4/printf-frexp.m4: Likewise.
42885         * m4/printf-frexpl.m4: Likewise.
42886         * m4/printf-posix.m4: Likewise.
42887         * m4/printf-posix-rpl.m4: Likewise.
42888         * m4/printf.m4: Likewise.
42889         * m4/progtest.m4: Likewise.
42890         * m4/putenv.m4: Likewise.
42891         * m4/readline.m4: Likewise.
42892         * m4/readlink.m4: Likewise.
42893         * m4/readutmp.m4: Likewise.
42894         * m4/realloc.m4: Likewise.
42895         * m4/regex.m4: Likewise.
42896         * m4/relocatable.m4: Likewise.
42897         * m4/relocatable-lib.m4: Likewise.
42898         * m4/rename-dest-slash.m4: Likewise.
42899         * m4/rename.m4: Likewise.
42900         * m4/rmdir-errno.m4: Likewise.
42901         * m4/rmdir.m4: Likewise.
42902         * m4/roundf.m4: Likewise.
42903         * m4/roundl.m4: Likewise.
42904         * m4/rpmatch.m4: Likewise.
42905         * m4/save-cwd.m4: Likewise.
42906         * m4/selinux-selinux-h.m4: Likewise.
42907         * m4/setenv.m4: Likewise.
42908         * m4/settime.m4: Likewise.
42909         * m4/sig2str.m4: Likewise.
42910         * m4/sig_atomic_t.m4: Likewise.
42911         * m4/signalblocking.m4: Likewise.
42912         * m4/signbit.m4: Likewise.
42913         * m4/sigpipe.m4: Likewise.
42914         * m4/sockets.m4: Likewise.
42915         * m4/sockpfaf.m4: Likewise.
42916         * m4/st_dm_mode.m4: Likewise.
42917         * m4/stat-time.m4: Likewise.
42918         * m4/stdbool.m4: Likewise.
42919         * m4/stdint.m4: Likewise.
42920         * m4/stdint_h.m4: Likewise.
42921         * m4/stpcpy.m4: Likewise.
42922         * m4/stpncpy.m4: Likewise.
42923         * m4/strcase.m4: Likewise.
42924         * m4/strchrnul.m4: Likewise.
42925         * m4/strcspn.m4: Likewise.
42926         * m4/strdup.m4: Likewise.
42927         * m4/strftime.m4: Likewise.
42928         * m4/strndup.m4: Likewise.
42929         * m4/strnlen.m4: Likewise.
42930         * m4/strpbrk.m4: Likewise.
42931         * m4/strptime.m4: Likewise.
42932         * m4/strsep.m4: Likewise.
42933         * m4/strtod.m4: Likewise.
42934         * m4/strtoimax.m4: Likewise.
42935         * m4/strtok_r.m4: Likewise.
42936         * m4/strtol.m4: Likewise.
42937         * m4/strtoll.m4: Likewise.
42938         * m4/strtoul.m4: Likewise.
42939         * m4/strtoull.m4: Likewise.
42940         * m4/strtoumax.m4: Likewise.
42941         * m4/strverscmp.m4: Likewise.
42942         * m4/threadlib.m4: Likewise.
42943         * m4/timegm.m4: Likewise.
42944         * m4/tm_gmtoff.m4: Likewise.
42945         * m4/tmpdir.m4: Likewise.
42946         * m4/tmpfile.m4: Likewise.
42947         * m4/tzset.m4: Likewise.
42948         * m4/uintmax_t.m4: Likewise.
42949         * m4/unlinkdir.m4: Likewise.
42950         * m4/unlocked-io.m4: Likewise.
42951         * m4/uptime.m4: Likewise.
42952         * m4/userspec.m4: Likewise.
42953         * m4/utimbuf.m4: Likewise.
42954         * m4/utime.m4: Likewise.
42955         * m4/utimes-null.m4: Likewise.
42956         * m4/utimes.m4: Likewise.
42957         * m4/vararrays.m4: Likewise.
42958         * m4/vasnprintf.m4: Likewise.
42959         * m4/vfprintf-posix.m4: Likewise.
42960         * m4/vprintf-posix.m4: Likewise.
42961         * m4/wait-process.m4: Likewise.
42962         * m4/wchar_t.m4: Likewise.
42963         * m4/wint_t.m4: Likewise.
42964         * m4/write-any-file.m4: Likewise.
42965         * m4/yield.m4: Likewise.
42966
42967 2009-01-13  Bruno Haible  <bruno@clisp.org>
42968
42969         Avoid test-copy-file.sh failures when ACL support insufficient.
42970         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
42971         TESTS_ENVIRONMENT.
42972         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
42973         Reported by Jim Meyering.
42974
42975 2009-01-13  Bruno Haible  <bruno@clisp.org>
42976
42977         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
42978         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
42979         * modules/unistdio/u8-printf-parse (Files): Likewise.
42980         * modules/unistdio/u32-printf-parse (Files): Likewise.
42981         * modules/unistdio/ulc-printf-parse (Files): Likewise.
42982
42983 2009-01-13  Simon Josefsson  <simon@josefsson.org>
42984
42985         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
42986         and m4/inttypes_h.m4 too.
42987
42988 2009-01-12  Eric Blake  <ebb9@byu.net>
42989
42990         tests: IRIX 6.2 cc can't compile -0.0 into .data
42991         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
42992         rather than at compile-time.
42993         * tests/test-floorl.c (minus_zero): Likewise.
42994         * tests/test-frexpl.c (minus_zero): Likewise.
42995         * tests/test-isnan.c (minus_zerol): Likewise.
42996         * tests/test-isnanl.h (minus_zero): Likewise.
42997         * tests/test-ldexpl.c (minus_zero): Likewise.
42998         * tests/test-roundl.c (minus_zero): Likewise.
42999         * tests/test-signbit.c (minus_zerol): Likewise.
43000         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
43001         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
43002         * tests/test-truncl.c (minus_zero): Likewise.
43003         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
43004         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
43005         Reported by Tom G. Christensen and Nelson H. F. Beebe.
43006
43007 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43008
43009         regex: fix glibc bug 9697
43010         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
43011         handling.
43012
43013 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43014
43015         regex: fix glibc bug 697
43016         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
43017         being NULL also if there are no backreferences.
43018
43019 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43020
43021         regex: merge glibc changes
43022         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
43023         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
43024         re_string_skip_chars, re_string_reconstruct): Likewise.
43025         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
43026
43027 2009-01-07  Jim Meyering  <meyering@redhat.com>
43028
43029         poll: filter through cppi
43030         * lib/poll.c: Indent cpp directives to reflect nesting.
43031
43032 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
43033
43034         poll: don't return uninitialized
43035         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
43036
43037 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
43038
43039         avoid compile failure on AIX 6.1
43040         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
43041         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
43042
43043 2009-01-04  Jim Meyering  <meyering@redhat.com>
43044
43045         remove duplicate inclusion of <stdio.h>
43046         * tests/test-fprintf-posix.c: Likewise.
43047         * tests/test-printf-posix.c: Likewise.
43048         * tests/test-snprintf-posix.c: Likewise.
43049         * tests/test-sprintf-posix.c: Likewise.
43050         * tests/test-vasprintf-posix.c: Likewise.
43051         * tests/test-vfprintf-posix.c: Likewise.
43052         * tests/test-vprintf-posix.c: Likewise.
43053         * tests/test-vsnprintf-posix.c: Likewise.
43054         * tests/test-vsprintf-posix.c: Likewise.
43055
43056 2009-01-03  Jim Meyering  <meyering@redhat.com>
43057
43058         gnulib-tool: fix sed-based filtering
43059         * gnulib-tool (func_filter_filelist): Remove extra backslash
43060         in sed_fff_filter definition.
43061
43062 2009-01-02  Jim Meyering  <meyering@redhat.com>
43063
43064         strftime: avoid compilation failure on Solaris 2.6
43065         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
43066         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
43067         Don't #define mbrlen or mbsinit, since now they're guaranteed to
43068         be available.  Reported by Tom G. Christensen.  Details in
43069         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
43070
43071 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43072             Bruno Haible  <bruno@clisp.org>
43073
43074         Speed up gnulib-tool by doing more string processing through shell
43075         built-ins.
43076         * gnulib-tool (fast_func_append): New variable.
43077         (func_remove_prefix, func_remove_suffix): New functions.
43078         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
43079         (func_filter_filelist): New function.
43080         (func_get_dependencies): Use func_remove_suffix instead of sed.
43081         (func_get_automake_snippet): Use func_filter_filelist instead of a
43082         subshell and sed invocation.
43083
43084 2009-01-01  Bruno Haible  <bruno@clisp.org>
43085
43086         Fix a security bug.
43087         * gnulib-tool (func_import, import, update): Don't allow the characters
43088         '"', '$', '`', '\' in macro arguments that become part of commands that
43089         are evaluated.
43090
43091 2009-01-01  Bruno Haible  <bruno@clisp.org>
43092
43093         * gnulib-tool (func_reset_sigpipe): Add more comments.
43094
43095 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43096
43097         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
43098         func_emit_tests_Makefile_am, func_import): Abort loops early if we
43099         already know the answer.
43100
43101 2009-01-01  Jim Meyering  <meyering@redhat.com>
43102
43103         * lib/version-etc.c (version_etc_va): Update copyright year.
43104
43105 2008-12-30  Bruno Haible  <bruno@clisp.org>
43106
43107         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
43108         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
43109         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
43110
43111 2008-12-29  Eric Blake  <ebb9@byu.net>
43112
43113         multiarch: avoid autoconf AC_REQUIRE bug
43114         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
43115         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
43116         2.63 and older.
43117         Reported by Bruno Haible, and analyzed in
43118         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
43119
43120 2008-12-29  Bruno Haible  <bruno@clisp.org>
43121
43122         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
43123         files in subdirectories correctly.
43124         Reported by Ralf Wildenhues.
43125
43126 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43127
43128         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
43129         rather than 'join FILE -', for Solaris join.
43130
43131 2008-12-29  Bruno Haible  <bruno@clisp.org>
43132
43133         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
43134         quoting.
43135         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
43136         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
43137         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
43138         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
43139         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
43140         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
43141         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
43142         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
43143         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
43144         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
43145         * m4/nls.m4 (AM_NLS): Likewise.
43146         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
43147         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
43148         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
43149         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
43150         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
43151         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
43152         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
43153         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
43154         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
43155         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
43156         * m4/xsize.m4 (gl_XSIZE): Likewise.
43157         Suggested by Jim Meyering.
43158
43159 2008-11-17  Bruce Korb  <bkorb@gnu.org>
43160
43161         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
43162         * lib/parse-duration.c: use a switch instead of cascading if's.
43163
43164 2008-12-29  Eric Blake  <ebb9@byu.net>
43165
43166         wchar.h: supply WEOF on Irix 5.3
43167         * lib/wchar.in.h (wint_t): Also supply WEOF.
43168         * lib/wctype.in.h (wint_t): Likewise.
43169         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
43170         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
43171         Reported by Tom G. Christensen.
43172
43173 2008-12-26  Bruno Haible  <bruno@clisp.org>
43174
43175         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
43176         i486, i586, i686.
43177
43178 2008-12-26  Bruno Haible  <bruno@clisp.org>
43179
43180         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
43181
43182 2008-12-26  Bruno Haible  <bruno@clisp.org>
43183
43184         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
43185         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
43186         not __STDC_CONSTANT_MACROS.
43187         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
43188
43189 2008-12-25  Bruno Haible  <bruno@clisp.org>
43190
43191         Add support for universal builds to vasnprintf.
43192         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
43193         universal builds, guess no.
43194         * modules/vasnprintf-posix (Depends-on): Add multiarch.
43195         * modules/vasprintf-posix (Depends-on): Likewise.
43196         * modules/fprintf-posix (Depends-on): Likewise.
43197         * modules/vfprintf-posix (Depends-on): Likewise.
43198         * modules/snprintf-posix (Depends-on): Likewise.
43199         * modules/vsnprintf-posix (Depends-on): Likewise.
43200         * modules/sprintf-posix (Depends-on): Likewise.
43201         * modules/vsprintf-posix (Depends-on): Likewise.
43202         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43203         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43204         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43205         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43206         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43207         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43208         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43209
43210         Add support for universal builds to <inttypes.h>.
43211         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
43212         _SCNu64_PREFIX): In Apple
43213         universal builds, define directly, using _LP64.
43214         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
43215         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
43216         * modules/inttypes (Depends-on): Add multiarch.
43217         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
43218
43219         Add support for universal builds to <stdint.h>.
43220         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
43221         universal builds, define directly, using _LP64.
43222         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
43223         Apple universal builds, don't test for the size and suffix of ptrdiff_t
43224         and size_t.
43225         * modules/stdint (Depends-on): Add multiarch.
43226         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
43227
43228         New module 'multiarch'.
43229         * modules/multiarch: New file.
43230         * m4/multiarch.m4: New file.
43231
43232 2008-12-25  Bruno Haible  <bruno@clisp.org>
43233
43234         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
43235
43236 2008-12-25  Bruno Haible  <bruno@clisp.org>
43237
43238         * modules/btowc (License): Relicense under LGPLv2+.
43239         * modules/mbsinit (License): Likewise.
43240         * modules/mbrtowc (License): Likewise.
43241         * modules/wcrtomb (License): Likewise.
43242         * modules/streq (License): Likewise.
43243         Reported by David Lutterkort <lutter@redhat.com>.
43244
43245 2008-12-23  Bruno Haible  <bruno@clisp.org>
43246
43247         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
43248
43249 2008-12-23  Bruno Haible  <bruno@clisp.org>
43250
43251         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
43252         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
43253         GETADDRINFO_LIB, not in LIBS.
43254         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
43255         * modules/canon-host (Link): Likewise.
43256         * NEWS: Mention the change.
43257         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
43258         GETADDRINFO_LIB.
43259
43260 2008-12-22  Bruno Haible  <bruno@clisp.org>
43261
43262         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
43263         * doc/posix-functions/iswalpha_l.texi: Likewise.
43264         * doc/posix-functions/iswblank_l.texi: Likewise.
43265         * doc/posix-functions/iswcntrl_l.texi: Likewise.
43266         * doc/posix-functions/iswctype_l.texi: Likewise.
43267         * doc/posix-functions/iswdigit_l.texi: Likewise.
43268         * doc/posix-functions/iswgraph_l.texi: Likewise.
43269         * doc/posix-functions/iswlower_l.texi: Likewise.
43270         * doc/posix-functions/iswprint_l.texi: Likewise.
43271         * doc/posix-functions/iswpunct_l.texi: Likewise.
43272         * doc/posix-functions/iswspace_l.texi: Likewise.
43273         * doc/posix-functions/iswupper_l.texi: Likewise.
43274         * doc/posix-functions/iswxdigit_l.texi: Likewise.
43275         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
43276         * doc/posix-functions/open_wmemstream.texi: Likewise.
43277         * doc/posix-functions/swscanf.texi: Likewise.
43278         * doc/posix-functions/towctrans_l.texi: Likewise.
43279         * doc/posix-functions/towlower.texi: Likewise.
43280         * doc/posix-functions/towlower_l.texi: Likewise.
43281         * doc/posix-functions/towupper.texi: Likewise.
43282         * doc/posix-functions/towupper_l.texi: Likewise.
43283         * doc/posix-functions/vfwprintf.texi: Likewise.
43284         * doc/posix-functions/vfwscanf.texi: Likewise.
43285         * doc/posix-functions/vswscanf.texi: Likewise.
43286         * doc/posix-functions/vwprintf.texi: Likewise.
43287         * doc/posix-functions/vwscanf.texi: Likewise.
43288         * doc/posix-functions/wcpcpy.texi: Likewise.
43289         * doc/posix-functions/wcpncpy.texi: Likewise.
43290         * doc/posix-functions/wcscasecmp.texi: Likewise.
43291         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
43292         * doc/posix-functions/wcscoll_l.texi: Likewise.
43293         * doc/posix-functions/wcsdup.texi: Likewise.
43294         * doc/posix-functions/wcsncasecmp.texi: Likewise.
43295         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
43296         * doc/posix-functions/wcsnlen.texi: Likewise.
43297         * doc/posix-functions/wcsnrtombs.texi: Likewise.
43298         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
43299         * doc/posix-functions/wctrans_l.texi: Likewise.
43300         * doc/posix-functions/wctype_l.texi: Likewise.
43301         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
43302         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
43303         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
43304         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
43305         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
43306         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
43307         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
43308         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
43309         * doc/glibc-functions/wcschrnul.texi: Likewise.
43310         * doc/glibc-functions/wcsftime_l.texi: Likewise.
43311         * doc/glibc-functions/wcstod_l.texi: Likewise.
43312         * doc/glibc-functions/wcstof_l.texi: Likewise.
43313         * doc/glibc-functions/wcstol_l.texi: Likewise.
43314         * doc/glibc-functions/wcstold_l.texi: Likewise.
43315         * doc/glibc-functions/wcstoll_l.texi: Likewise.
43316         * doc/glibc-functions/wcstoq.texi: Likewise.
43317         * doc/glibc-functions/wcstoul_l.texi: Likewise.
43318         * doc/glibc-functions/wcstoull_l.texi: Likewise.
43319         * doc/glibc-functions/wcstouq.texi: Likewise.
43320         * doc/glibc-functions/wmempcpy.texi: Likewise.
43321
43322 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
43323             Eric Blake  <ebb9@byu.net>
43324             Paolo Bonzini  <bonzini@gnu.org>
43325             Bruno Haible  <bruno@clisp.org>
43326
43327         Make c-stack work on Haiku.
43328         * lib/c-stack.c (SA_ONSTACK): Define fallback.
43329         (c_stack_action): Use SA_ONSTACK flag.
43330
43331 2008-12-22  Bruno Haible  <bruno@clisp.org>
43332
43333         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
43334
43335 2008-12-22  Bruno Haible  <bruno@clisp.org>
43336
43337         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
43338         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
43339         being overridden.
43340         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
43341         New macros.
43342         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
43343         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
43344         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
43345         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
43346
43347 2008-12-22  Bruno Haible  <bruno@clisp.org>
43348
43349         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
43350         from test code.
43351
43352 2008-12-22  Eric Blake  <ebb9@byu.net>
43353
43354         Avoid gcc warnings on cygwin.
43355         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
43356         Avoid unused variable.
43357         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
43358         Likewise.
43359
43360 2008-12-22  Bruno Haible  <bruno@clisp.org>
43361
43362         Remove HAVE_MBRTOWC conditionals.
43363         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
43364         (mbscasecmp): Assume mbrtowc function.
43365         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
43366         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
43367         * lib/mbschr.c: Include mbuiter.h unconditionally.
43368         (mbschr): Assume mbrtowc function.
43369         * lib/mbscspn.c: Include mbuiter.h unconditionally.
43370         (mbscspn): Assume mbrtowc function.
43371         * lib/mbslen.c: Include mbuiter.h unconditionally.
43372         (mbslen): Assume mbrtowc function.
43373         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
43374         (mbsncasecmp): Assume mbrtowc function.
43375         * lib/mbsnlen.c: Include mbiter.h unconditionally.
43376         (mbsnlen): Assume mbrtowc function.
43377         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
43378         (mbspbrk): Assume mbrtowc function.
43379         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
43380         (mbspcasecmp): Assume mbrtowc function.
43381         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
43382         (mbsrchr): Assume mbrtowc function.
43383         * lib/mbssep.c: Include mbuiter.h unconditionally.
43384         (mbssep): Assume mbrtowc function.
43385         * lib/mbsspn.c: Include mbuiter.h unconditionally.
43386         (mbsspn): Assume mbrtowc function.
43387         * lib/mbsstr.c: Include mbuiter.h unconditionally.
43388         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
43389         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
43390         (mbstok_r): Assume mbrtowc function.
43391         * lib/propername.c: Include mbuiter.h unconditionally.
43392         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
43393         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
43394         (trim2): Assume mbrtowc function.
43395         * lib/mbswidth.c (mbsinit): Remove fallback definition.
43396         (mbsnwidth): Assume mbrtowc function.
43397         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
43398         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
43399         fallback definitions.
43400         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
43401
43402 2008-12-22  Bruno Haible  <bruno@clisp.org>
43403
43404         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
43405
43406 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
43407
43408         * modules/regex: Request emulations for the mb*/wc* functions we need.
43409         * m4/regex.m4: Don't look for those functions here.
43410         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
43411
43412 2008-12-22  Bruno Haible  <bruno@clisp.org>
43413
43414         * modules/fnmatch (Depends-on): Remove duplicated dependency.
43415
43416 2008-12-21  Bruno Haible  <bruno@clisp.org>
43417
43418         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
43419         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
43420         (Include): Remove conditionalization.
43421         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
43422         (Include): Remove conditionalization.
43423         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
43424         (Include): Remove conditionalization.
43425         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
43426         * m4/mbfile.m4 (gl_MBFILE): Likewise.
43427         * NEWS: Mention the change.
43428         Reported by Alan Hourihane <alanh@fairlite.co.uk>
43429         via Sergey Poznyakoff <gray@gnu.org.ua>.
43430
43431 2008-12-21  Bruno Haible  <bruno@clisp.org>
43432
43433         * MODULES.html.sh (Extended multibyte and wide character utilities
43434         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
43435         wcrtomb, wcsrtombs.
43436         (Support for systems lacking POSIX:2008): Add accept, bind, close,
43437         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
43438         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
43439         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
43440
43441 2008-12-21  Bruno Haible  <bruno@clisp.org>
43442
43443         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
43444
43445 2008-12-21  Bruno Haible  <bruno@clisp.org>
43446
43447         * modules/wcsnrtombs-tests: New file.
43448         * tests/test-wcsnrtombs1.sh: New file.
43449         * tests/test-wcsnrtombs2.sh: New file.
43450         * tests/test-wcsnrtombs3.sh: New file.
43451         * tests/test-wcsnrtombs4.sh: New file.
43452         * tests/test-wcsnrtombs.c: New file.
43453
43454         New module 'wcsnrtombs'.
43455         * lib/wchar.in.h (wcsnrtombs): New declaration.
43456         * lib/wcsnrtombs.c: New file.
43457         * lib/wcsrtombs-state.c: New file.
43458         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
43459         (internal_state): Remove variable.
43460         * m4/wcsnrtombs.m4: New file.
43461         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
43462         compilation units.
43463         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
43464         HAVE_WCSNRTOMBS.
43465         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
43466         HAVE_WCSNRTOMBS.
43467         * modules/wcsnrtombs: New file.
43468         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
43469         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
43470
43471 2008-12-21  Bruno Haible  <bruno@clisp.org>
43472
43473         * modules/wcsrtombs-tests: New file.
43474         * tests/test-wcsrtombs1.sh: New file.
43475         * tests/test-wcsrtombs2.sh: New file.
43476         * tests/test-wcsrtombs3.sh: New file.
43477         * tests/test-wcsrtombs4.sh: New file.
43478         * tests/test-wcsrtombs.c: New file.
43479
43480         New module 'wcsrtombs'.
43481         * lib/wchar.in.h (wcsrtombs): New declaration.
43482         * lib/wcsrtombs.c: New file.
43483         * m4/wcsrtombs.m4: New file.
43484         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
43485         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43486         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
43487         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
43488         * modules/wcsrtombs: New file.
43489         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
43490         bugs.
43491
43492 2008-12-21  Bruno Haible  <bruno@clisp.org>
43493
43494         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
43495         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
43496         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
43497         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
43498         if not correct.
43499         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
43500         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
43501         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43502         m4/locale-zh.m4, m4/codeset.m4.
43503         * doc/posix-functions/wcrtomb.texi: Document the bug.
43504
43505 2008-12-21  Bruno Haible  <bruno@clisp.org>
43506
43507         Work around a btowc() bug on IRIX 6.5.
43508         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
43509         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
43510         REPLACE_WTOBC if not.
43511         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
43512         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
43513         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
43514
43515 2008-12-21  Bruno Haible  <bruno@clisp.org>
43516
43517         * modules/wcrtomb-tests: New file.
43518         * tests/test-wcrtomb.sh: New file.
43519         * tests/test-wcrtomb.c: New file.
43520
43521         New module 'wcrtomb'.
43522         * lib/wchar.in.h (wcrtomb): New declaration.
43523         * lib/wcrtomb.c: New file.
43524         * m4/wcrtomb.m4: New file.
43525         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
43526         HAVE_WCRTOMB.
43527         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
43528         HAVE_WCRTOMB.
43529         * modules/wcrtomb: New file.
43530         * doc/posix-functions/wcrtomb.texi: Mention the new module.
43531
43532 2008-12-21  Bruno Haible  <bruno@clisp.org>
43533
43534         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
43535         * modules/mbsrtowcs (Files): Likewise.
43536         * modules/wctob (Files): Likewise.
43537         * modules/c-strcase-tests (Files): Likewise.
43538         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
43539         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
43540         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
43541         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
43542         * modules/vasnprintf-posix-tests (Files): Likewise.
43543
43544 2008-12-21  William Pursell  <bill.pursell@gmail.com>
43545
43546         gitlog-to-changelog: pass all command-line arguments to git-log
43547         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
43548         it is sometimes convenient to filter the commits in various ways.
43549         gitlog-to-changelog only allows --since to specify a start date,
43550         but git-log itself supports many other filtering mechanisms.
43551         At the moment, I want to filter by branch name.  Rather than
43552         adding a --branch option to gitlog-to-changelog, it seems more
43553         flexible to simply pass all options directly to git-log and let
43554         git do the work.  Notice that this effectively makes --since a
43555         redundant option for gitlog-to-changelog, but removing it would
43556         require current usage to change since calls would then require
43557         an additional '--'.
43558
43559 2008-12-21  Bruno Haible  <bruno@clisp.org>
43560
43561         * modules/mbsnrtowcs-tests: New file.
43562         * tests/test-mbsnrtowcs1.sh: New file.
43563         * tests/test-mbsnrtowcs2.sh: New file.
43564         * tests/test-mbsnrtowcs3.sh: New file.
43565         * tests/test-mbsnrtowcs4.sh: New file.
43566         * tests/test-mbsnrtowcs.c: New file.
43567
43568         New module 'mbsnrtowcs'.
43569         * lib/wchar.in.h (mbsnrtowcs): New declaration.
43570         * lib/mbsnrtowcs.c: New file.
43571         * lib/mbsrtowcs-state.c: New file.
43572         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
43573         (internal_state): Remove variable.
43574         * m4/mbsnrtowcs.m4: New file.
43575         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
43576         compilation units.
43577         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
43578         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43579         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
43580         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
43581         * modules/mbsnrtowcs: New file.
43582         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
43583         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
43584         portability problem.
43585
43586 2008-12-21  Bruno Haible  <bruno@clisp.org>
43587
43588         Work around mbsrtowcs bug.
43589         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
43590         (gl_FUNC_MBSRTOWCS): Invoke it.
43591         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43592         m4/locale-zh.m4.
43593         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
43594
43595 2008-12-21  Bruno Haible  <bruno@clisp.org>
43596
43597         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
43598
43599 2008-12-21  Bruno Haible  <bruno@clisp.org>
43600
43601         Update doc for AIX.
43602         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
43603         16-bit wchar_t type.
43604         * doc/posix-functions/btowc.texi: Likewise.
43605         * doc/posix-functions/fgetwc.texi: Likewise.
43606         * doc/posix-functions/fgetws.texi: Likewise.
43607         * doc/posix-functions/fputwc.texi: Likewise.
43608         * doc/posix-functions/fputws.texi: Likewise.
43609         * doc/posix-functions/fwide.texi: Likewise.
43610         * doc/posix-functions/fwprintf.texi: Likewise.
43611         * doc/posix-functions/fwscanf.texi: Likewise.
43612         * doc/posix-functions/getwchar.texi: Likewise.
43613         * doc/posix-functions/getwc.texi: Likewise.
43614         * doc/posix-functions/iswalnum.texi: Likewise.
43615         * doc/posix-functions/iswalpha.texi: Likewise.
43616         * doc/posix-functions/iswblank.texi: Likewise.
43617         * doc/posix-functions/iswcntrl.texi: Likewise.
43618         * doc/posix-functions/iswctype.texi: Likewise.
43619         * doc/posix-functions/iswdigit.texi: Likewise.
43620         * doc/posix-functions/iswgraph.texi: Likewise.
43621         * doc/posix-functions/iswlower.texi: Likewise.
43622         * doc/posix-functions/iswprint.texi: Likewise.
43623         * doc/posix-functions/iswpunct.texi: Likewise.
43624         * doc/posix-functions/iswspace.texi: Likewise.
43625         * doc/posix-functions/iswupper.texi: Likewise.
43626         * doc/posix-functions/iswxdigit.texi: Likewise.
43627         * doc/posix-functions/mbrtowc.texi: Likewise.
43628         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43629         * doc/posix-functions/mbstowcs.texi: Likewise.
43630         * doc/posix-functions/mbtowc.texi: Likewise.
43631         * doc/posix-functions/putwchar.texi: Likewise.
43632         * doc/posix-functions/putwc.texi: Likewise.
43633         * doc/posix-functions/swprintf.texi: Likewise.
43634         * doc/posix-functions/tolower.texi: Likewise.
43635         * doc/posix-functions/toupper.texi: Likewise.
43636         * doc/posix-functions/towctrans.texi: Likewise.
43637         * doc/posix-functions/ungetwc.texi: Likewise.
43638         * doc/posix-functions/vswprintf.texi: Likewise.
43639         * doc/posix-functions/wcrtomb.texi: Likewise.
43640         * doc/posix-functions/wcscat.texi: Likewise.
43641         * doc/posix-functions/wcschr.texi: Likewise.
43642         * doc/posix-functions/wcscmp.texi: Likewise.
43643         * doc/posix-functions/wcscoll.texi: Likewise.
43644         * doc/posix-functions/wcscpy.texi: Likewise.
43645         * doc/posix-functions/wcscspn.texi: Likewise.
43646         * doc/posix-functions/wcsftime.texi: Likewise.
43647         * doc/posix-functions/wcslen.texi: Likewise.
43648         * doc/posix-functions/wcsncat.texi: Likewise.
43649         * doc/posix-functions/wcsncmp.texi: Likewise.
43650         * doc/posix-functions/wcsncpy.texi: Likewise.
43651         * doc/posix-functions/wcspbrk.texi: Likewise.
43652         * doc/posix-functions/wcsrchr.texi: Likewise.
43653         * doc/posix-functions/wcsrtombs.texi: Likewise.
43654         * doc/posix-functions/wcsspn.texi: Likewise.
43655         * doc/posix-functions/wcsstr.texi: Likewise.
43656         * doc/posix-functions/wcstod.texi: Likewise.
43657         * doc/posix-functions/wcstof.texi: Likewise.
43658         * doc/posix-functions/wcstoimax.texi: Likewise.
43659         * doc/posix-functions/wcstok.texi: Likewise.
43660         * doc/posix-functions/wcstold.texi: Likewise.
43661         * doc/posix-functions/wcstoll.texi: Likewise.
43662         * doc/posix-functions/wcstol.texi: Likewise.
43663         * doc/posix-functions/wcstombs.texi: Likewise.
43664         * doc/posix-functions/wcstoull.texi: Likewise.
43665         * doc/posix-functions/wcstoul.texi: Likewise.
43666         * doc/posix-functions/wcstoumax.texi: Likewise.
43667         * doc/posix-functions/wcswidth.texi: Likewise.
43668         * doc/posix-functions/wcsxfrm.texi: Likewise.
43669         * doc/posix-functions/wctob.texi: Likewise.
43670         * doc/posix-functions/wctomb.texi: Likewise.
43671         * doc/posix-functions/wctrans.texi: Likewise.
43672         * doc/posix-functions/wctype.texi: Likewise.
43673         * doc/posix-functions/wcwidth.texi: Likewise.
43674         * doc/posix-functions/wmemchr.texi: Likewise.
43675         * doc/posix-functions/wmemcmp.texi: Likewise.
43676         * doc/posix-functions/wmemcpy.texi: Likewise.
43677         * doc/posix-functions/wmemmove.texi: Likewise.
43678         * doc/posix-functions/wmemset.texi: Likewise.
43679         * doc/posix-functions/wprintf.texi: Likewise.
43680         * doc/posix-functions/wscanf.texi: Likewise.
43681
43682 2008-12-21  Bruno Haible  <bruno@clisp.org>
43683
43684         Update doc for HP-UX 11.11.
43685         * doc/posix-functions/btowc.texi: Clarify that the function is missing
43686         in HP-UX version 11.00, not in all versions of HP-UX 11.
43687         * doc/posix-functions/fwide.texi: Likewise.
43688         * doc/posix-functions/fwprintf.texi: Likewise.
43689         * doc/posix-functions/fwscanf.texi: Likewise.
43690         * doc/posix-functions/inet_ntop.texi: Likewise.
43691         * doc/posix-functions/inet_pton.texi: Likewise.
43692         * doc/posix-functions/mbrlen.texi: Likewise.
43693         * doc/posix-functions/mbrtowc.texi: Likewise.
43694         * doc/posix-functions/mbsinit.texi: Likewise.
43695         * doc/posix-functions/mbsrtowcs.texi: Likewise.
43696         * doc/posix-functions/swprintf.texi: Likewise.
43697         * doc/posix-functions/swscanf.texi: Likewise.
43698         * doc/posix-functions/towctrans.texi: Likewise.
43699         * doc/posix-functions/vfwprintf.texi: Likewise.
43700         * doc/posix-functions/vswprintf.texi: Likewise.
43701         * doc/posix-functions/vwprintf.texi: Likewise.
43702         * doc/posix-functions/wcrtomb.texi: Likewise.
43703         * doc/posix-functions/wcsrtombs.texi: Likewise.
43704         * doc/posix-functions/wcsstr.texi: Likewise.
43705         * doc/posix-functions/wctob.texi: Likewise.
43706         * doc/posix-functions/wctrans.texi: Likewise.
43707         * doc/posix-functions/wmemchr.texi: Likewise.
43708         * doc/posix-functions/wmemcmp.texi: Likewise.
43709         * doc/posix-functions/wmemcpy.texi: Likewise.
43710         * doc/posix-functions/wmemmove.texi: Likewise.
43711         * doc/posix-functions/wmemset.texi: Likewise.
43712         * doc/posix-functions/wprintf.texi: Likewise.
43713         * doc/posix-functions/wscanf.texi: Likewise.
43714
43715 2008-12-21  Bruno Haible  <bruno@clisp.org>
43716
43717         Work around a portability problem.
43718         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
43719         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
43720
43721 2008-12-20  Bruno Haible  <bruno@clisp.org>
43722
43723         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
43724         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
43725         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
43726         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
43727         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
43728
43729         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
43730         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
43731         set.
43732         (GNULIB_defined_mbstate_t): New macro.
43733         (mbsinit): Redefine if REPLACE_MBSINIT is set.
43734         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
43735         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
43736         reuses the system's mbrtowc function but works around the bugs.
43737         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
43738         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
43739         macros.
43740         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
43741         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
43742         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
43743         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
43744         REPLACE_MBSINIT if mbsinit needs to be overridden.
43745         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
43746         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43747         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
43748         REPLACE_MBSINIT, REPLACE_MBRTOWC.
43749         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
43750         m4/locale-zh.m4.
43751         (Depends): Add mbsinit.
43752         * modules/mbsinit (Depends): Add mbrtowc.
43753         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
43754
43755 2008-12-20  Bruno Haible  <bruno@clisp.org>
43756
43757         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
43758         so that there are no conversion errors on AIX.
43759         * tests/test-mbsrtowcs.c (main): LIkewise.
43760
43761 2008-12-20  Bruno Haible  <bruno@clisp.org>
43762
43763         Work around wctob bug on Solaris <= 9.
43764         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
43765         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
43766         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
43767         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
43768         * modules/wctob (Files): Add m4/locale-fr.m4.
43769         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
43770
43771 2008-12-20  Bruno Haible  <bruno@clisp.org>
43772
43773         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
43774         /dev/null.
43775         * tests/test-select-in.sh: Likewise.
43776         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43777
43778 2008-12-20  Bruno Haible  <bruno@clisp.org>
43779
43780         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
43781         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
43782         Cygwin 1.5.x.
43783
43784 2008-12-20  Bruno Haible  <bruno@clisp.org>
43785
43786         Ensure mbstate_t is defined on HP-UX 11.11.
43787         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
43788         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
43789         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
43790         AC_USE_SYSTEM_EXTENSIONS.
43791         * modules/fnmatch (Depends-on): Add extensions.
43792         * modules/mbrlen (Depends-on): Likewise.
43793         * modules/mbrtowc (Depends-on): Likewise.
43794         * modules/mbsinit (Depends-on): Likewise.
43795         * modules/mbsrtowcs (Depends-on): Likewise.
43796         * modules/mbswidth (Depends-on): Likewise.
43797         * modules/quotearg (Depends-on): Likewise.
43798         * modules/strftime (Depends-on): Likewise.
43799
43800 2008-12-20  Bruno Haible  <bruno@clisp.org>
43801
43802         Ensure wctob is declared on IRIX 6.5.
43803         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
43804         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
43805         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
43806         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
43807         of HAVE_WCTOB.
43808         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
43809         HAVE_WCTOB.
43810         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
43811
43812 2008-12-19  Bruno Haible  <bruno@clisp.org>
43813
43814         * modules/mbsrtowcs-tests: New file.
43815         * tests/test-mbsrtowcs1.sh: New file.
43816         * tests/test-mbsrtowcs2.sh: New file.
43817         * tests/test-mbsrtowcs3.sh: New file.
43818         * tests/test-mbsrtowcs4.sh: New file.
43819         * tests/test-mbsrtowcs.c: New file.
43820
43821         New module 'mbsrtowcs'.
43822         * lib/wchar.in.h (mbsrtowcs): New declaration.
43823         * lib/mbsrtowcs.c: New file.
43824         * m4/mbsrtowcs.m4: New file.
43825         * modules/mbsrtowcs: New file.
43826         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
43827         HAVE_MBSRTOWCS.
43828         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
43829         HAVE_MBSRTOWCS.
43830         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
43831
43832 2008-12-19  Bruno Haible  <bruno@clisp.org>
43833
43834         New module 'mbrlen'.
43835         * lib/wchar.in.h (mbrlen): New declaration.
43836         * lib/mbrlen.c: New file.
43837         * m4/mbrlen.m4: New file.
43838         * modules/mbrlen: New file.
43839         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
43840         HAVE_MBRLEN.
43841         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
43842         HAVE_MBRLEN.
43843         * doc/posix-functions/mbrlen.texi: Document the new module.
43844
43845 2008-12-19  Bruno Haible  <bruno@clisp.org>
43846
43847         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
43848         * modules/mbrtowc (Depends-on): Add verify.
43849         Suggested by Paul Eggert.
43850
43851 2008-12-18  Bruno Haible  <bruno@clisp.org>
43852
43853         * modules/mbsinit-tests: New file.
43854         * tests/test-mbsinit.sh: New file.
43855         * tests/test-mbsinit.c: New file.
43856
43857 2008-12-18  Bruno Haible  <bruno@clisp.org>
43858
43859         * modules/mbrtowc-tests: New file.
43860         * tests/test-mbrtowc1.sh: New file.
43861         * tests/test-mbrtowc2.sh: New file.
43862         * tests/test-mbrtowc3.sh: New file.
43863         * tests/test-mbrtowc4.sh: New file.
43864         * tests/test-mbrtowc.c: New file.
43865
43866         New module 'mbrtowc'.
43867         * lib/wchar.in.h (mbstate_t): Override when the system does not have
43868         mbsinit and mbrtowc.
43869         (mbrtowc): New declaration.
43870         * lib/mbrtowc.c: New file.
43871         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
43872         * modules/mbrtowc: New file.
43873         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
43874         HAVE_MBRTOWC.
43875         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
43876         HAVE_MBRTOWC.
43877         * doc/posix-functions/mbrtowc.texi: Document the new module.
43878
43879 2008-12-18  Bruno Haible  <bruno@clisp.org>
43880
43881         New module 'wctob'.
43882         * lib/wchar.in.h (wctob): New declaration.
43883         * lib/wctob.c: New file.
43884         * m4/wctob.m4: New file.
43885         * modules/wctob: New file.
43886         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
43887         HAVE_WCTOB.
43888         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
43889         * doc/posix-functions/wctob.texi: Document the new module.
43890
43891 2008-12-18  Bruno Haible  <bruno@clisp.org>
43892
43893         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
43894         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
43895
43896 2008-12-18  Simon Josefsson  <simon@josefsson.org>
43897
43898         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
43899         G. Christensen" <tgc@jupiterrise.com>.
43900
43901         * lib/flock.c: Need to include errno.h.  Reported by "Tom
43902         G. Christensen" <tgc@jupiterrise.com>.
43903
43904         * lib/flock.c: Need to include string.h.  Reported by "Tom
43905         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
43906         <ebb9@byu.net>.
43907
43908 2008-12-18  Bruno Haible  <bruno@clisp.org>
43909
43910         * m4/locale-ja.m4: New file, from GNU gettext.
43911
43912 2008-12-17  Bruno Haible  <bruno@clisp.org>
43913
43914         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
43915         Suggested by Eric Blake.
43916
43917 2008-12-17  Bruno Haible  <bruno@clisp.org>
43918
43919         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
43920
43921 2008-12-17  Bruno Haible  <bruno@clisp.org>
43922
43923         * lib/mbsinit.c: Include verify.h. Verify an assumption.
43924         * modules/mbsinit (Depends-on): Add verify.
43925         Suggested by Paul Eggert.
43926
43927 2008-12-17  Bruno Haible  <bruno@clisp.org>
43928
43929         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
43930         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
43931         gl_FUNC_MBRTOWC.
43932         * m4/mbiter.m4 (gl_MBITER): LIkewise.
43933         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
43934         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
43935         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
43936         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
43937         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
43938         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
43939         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
43940         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
43941         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
43942         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
43943         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
43944         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
43945         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
43946         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
43947         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
43948         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
43949         * modules/trim (configure.ac): Likewise.
43950
43951 2008-12-17  Bruno Haible  <bruno@clisp.org>
43952
43953         * modules/btowc-tests: New file.
43954         * tests/test-btowc1.sh: New file.
43955         * tests/test-btowc2.sh: New file.
43956         * tests/test-btowc.c: New file.
43957
43958         New module 'btowc'.
43959         * lib/wchar.in.h (btowc): New declaration.
43960         * lib/btowc.c: New file.
43961         * m4/btowc.m4: New file.
43962         * modules/btowc: New file.
43963         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
43964         HAVE_BTOWC.
43965         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
43966         * doc/posix-functions/btowc.texi: Document the new module.
43967
43968 2008-12-17  Bruno Haible  <bruno@clisp.org>
43969
43970         New module 'mbsinit'.
43971         * lib/wchar.in.h (mbsinit): New declaration.
43972         * lib/mbsinit.c: New file.
43973         * m4/mbsinit.m4: New file.
43974         * modules/mbsinit: New file.
43975         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
43976         HAVE_MBSINIT.
43977         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
43978         HAVE_MBSINIT.
43979         * doc/posix-functions/mbsinit.texi: Document the new module.
43980
43981 2008-12-16  Bruno Haible  <bruno@clisp.org>
43982
43983         * lib/unistd.in.h: Add comment.
43984         * tests/test-environ.c: Don't include <stdlib.h>.
43985
43986 2008-12-16  Bruno Haible  <bruno@clisp.org>
43987
43988         * lib/parse-duration.h (parse_duration): Document return value
43989         convention.
43990         * lib/parse-duration.c: Include specification header first. Add
43991         comments.
43992         (_): Remove macro.
43993         (parse_year_month_day, parse_hour_minute_second): Move side effects
43994         outside of strchr call.
43995         (parse_non_iso8601): Move side effects outside of isspace call.
43996         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
43997         call.
43998
43999 2008-12-16  Bruno Haible  <bruno@clisp.org>
44000
44001         * tests/test-parse-duration.sh: Produce no output when the test
44002         succeeds.
44003
44004 2008-12-16  Bruno Haible  <bruno@clisp.org>
44005
44006         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
44007         expressions.
44008
44009 2008-12-15  Bruno Haible  <bruno@clisp.org>
44010
44011         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
44012         * doc/glibc-functions/flistxattr.texi: Likewise.
44013         * doc/glibc-functions/fopencookie.texi: Likewise.
44014         * doc/glibc-functions/fremovexattr.texi: Likewise.
44015         * doc/glibc-functions/fsetxattr.texi: Likewise.
44016         * doc/glibc-functions/getxattr.texi: Likewise.
44017         * doc/glibc-functions/lgetxattr.texi: Likewise.
44018         * doc/glibc-functions/listxattr.texi: Likewise.
44019         * doc/glibc-functions/llistxattr.texi: Likewise.
44020         * doc/glibc-functions/lremovexattr.texi: Likewise.
44021         * doc/glibc-functions/lsetxattr.texi: Likewise.
44022         * doc/glibc-functions/removexattr.texi: Likewise.
44023         * doc/glibc-functions/setxattr.texi: Likewise.
44024         * doc/posix-functions/open_memstream.texi: Likewise.
44025
44026 2008-12-15  Eric Blake  <ebb9@byu.net>
44027
44028         Update doc for cygwin 1.7.
44029         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
44030         functions.
44031         * doc/posix-functions/fchmodat.texi: Likewise.
44032         * doc/posix-functions/fchownat.texi: Likewise.
44033         * doc/posix-functions/fdopendir.texi: Likewise.
44034         * doc/posix-functions/fmemopen.texi: Likewise.
44035         * doc/posix-functions/freeaddrinfo.texi: Likewise.
44036         * doc/posix-functions/fstatat.texi: Likewise.
44037         * doc/posix-functions/futimens.texi: Likewise.
44038         * doc/posix-functions/gai_strerror.texi: Likewise.
44039         * doc/posix-functions/getaddrinfo.texi: Likewise.
44040         * doc/posix-functions/getnameinfo.texi: Likewise.
44041         * doc/posix-functions/if_freenameindex.texi: Likewise.
44042         * doc/posix-functions/if_indextoname.texi: Likewise.
44043         * doc/posix-functions/if_nameindex.texi: Likewise.
44044         * doc/posix-functions/if_nametoindex.texi: Likewise.
44045         * doc/posix-functions/insque.texi: Likewise.
44046         * doc/posix-functions/linkat.texi: Likewise.
44047         * doc/posix-functions/llrint.texi: Likewise.
44048         * doc/posix-functions/llrintf.texi: Likewise.
44049         * doc/posix-functions/llrintl.texi: Likewise.
44050         * doc/posix-functions/lockf.texi: Likewise.
44051         * doc/posix-functions/lrintl.texi: Likewise.
44052         * doc/posix-functions/mkdirat.texi: Likewise.
44053         * doc/posix-functions/mkfifoat.texi: Likewise.
44054         * doc/posix-functions/mknodat.texi: Likewise.
44055         * doc/posix-functions/mq_close.texi: Likewise.
44056         * doc/posix-functions/mq_getattr.texi: Likewise.
44057         * doc/posix-functions/mq_notify.texi: Likewise.
44058         * doc/posix-functions/mq_open.texi: Likewise.
44059         * doc/posix-functions/mq_receive.texi: Likewise.
44060         * doc/posix-functions/mq_send.texi: Likewise.
44061         * doc/posix-functions/mq_setattr.texi: Likewise.
44062         * doc/posix-functions/mq_timedreceive.texi: Likewise.
44063         * doc/posix-functions/mq_timedsend.texi: Likewise.
44064         * doc/posix-functions/mq_unlink.texi: Likewise.
44065         * doc/posix-functions/open_memstream.texi: Likewise.
44066         * doc/posix-functions/openat.texi: Likewise.
44067         * doc/posix-functions/posix_fadvise.texi: Likewise.
44068         * doc/posix-functions/posix_fallocate.texi: Likewise.
44069         * doc/posix-functions/posix_madvise.texi: Likewise.
44070         * doc/posix-functions/posix_memalign.texi: Likewise.
44071         * doc/posix-functions/posix_openpt.texi: Likewise.
44072         * doc/posix-functions/readlinkat.texi: Likewise.
44073         * doc/posix-functions/remque.texi: Likewise.
44074         * doc/posix-functions/renameat.texi: Likewise.
44075         * doc/posix-functions/rintl.texi: Likewise.
44076         * doc/posix-functions/sem_unlink.texi: Likewise.
44077         * doc/posix-functions/shm_open.texi: Likewise.
44078         * doc/posix-functions/shm_unlink.texi: Likewise.
44079         * doc/posix-functions/signgam.texi: Likewise.
44080         * doc/posix-functions/sigset.texi: Likewise.
44081         * doc/posix-functions/stpcpy.texi: Likewise.
44082         * doc/posix-functions/stpncpy.texi: Likewise.
44083         * doc/posix-functions/strerror.texi: Likewise.
44084         * doc/posix-functions/strtod.texi: Likewise.
44085         * doc/posix-functions/symlinkat.texi: Likewise.
44086         * doc/posix-functions/unlinkat.texi: Likewise.
44087         * doc/posix-functions/utimensat.texi: Likewise.
44088         * doc/glibc-functions/bindresvport.texi: Likewise.
44089         * doc/glibc-functions/dn_expand.texi: Likewise.
44090         * doc/glibc-functions/exp10.texi: Likewise.
44091         * doc/glibc-functions/exp10f.texi: Likewise.
44092         * doc/glibc-functions/fgetxattr.texi: Likewise.
44093         * doc/glibc-functions/flistxattr.texi: Likewise.
44094         * doc/glibc-functions/fopencookie.texi: Likewise.
44095         * doc/glibc-functions/freeifaddrs.texi: Likewise.
44096         * doc/glibc-functions/fremovexattr.texi: Likewise.
44097         * doc/glibc-functions/fsetxattr.texi: Likewise.
44098         * doc/glibc-functions/getifaddrs.texi: Likewise.
44099         * doc/glibc-functions/getxattr.texi: Likewise.
44100         * doc/glibc-functions/lgetxattr.texi: Likewise.
44101         * doc/glibc-functions/listxattr.texi: Likewise.
44102         * doc/glibc-functions/llistxattr.texi: Likewise.
44103         * doc/glibc-functions/lremovexattr.texi: Likewise.
44104         * doc/glibc-functions/lsetxattr.texi: Likewise.
44105         * doc/glibc-functions/pow10.texi: Likewise.
44106         * doc/glibc-functions/pow10f.texi: Likewise.
44107         * doc/glibc-functions/rcmd_af.texi: Likewise.
44108         * doc/glibc-functions/removexattr.texi: Likewise.
44109         * doc/glibc-functions/res_init.texi: Likewise.
44110         * doc/glibc-functions/res_mkquery.texi: Likewise.
44111         * doc/glibc-functions/res_query.texi: Likewise.
44112         * doc/glibc-functions/res_querydomain.texi: Likewise.
44113         * doc/glibc-functions/res_send.texi: Likewise.
44114         * doc/glibc-functions/rresvport_af.texi: Likewise.
44115         * doc/glibc-functions/setxattr.texi: Likewise.
44116         * doc/glibc-functions/strcasestr.texi: Likewise.
44117
44118 2008-12-15  Bruno Haible  <bruno@clisp.org>
44119
44120         Fix compilation error on OSF/1 4.0.
44121         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
44122         <sys/time.h>, simply delegate to the system header.
44123         Reported by Daniel Richard G. <oss@teragram.com>.
44124
44125 2008-12-15  Bruno Haible  <bruno@clisp.org>
44126
44127         * doc/posix-functions/openat.texi: Mention the 'openat' module.
44128         * doc/posix-functions/fchmodat.texi: Likewise.
44129         * doc/posix-functions/fchownat.texi: Likewise.
44130         * doc/posix-functions/fdopendir.texi: Likewise.
44131         * doc/posix-functions/fstatat.texi: Likewise.
44132         * doc/posix-functions/mkdirat.texi: Likewise.
44133         * doc/posix-functions/unlinkat.texi: Likewise.
44134
44135 2008-12-14  Bruno Haible  <bruno@clisp.org>
44136
44137         Update doc for POSIX:2008.
44138         * doc/posix-functions/faccessat.texi: New file.
44139         * doc/posix-functions/fchmodat.texi: New file.
44140         * doc/posix-functions/fchownat.texi: New file.
44141         * doc/posix-functions/fdopendir.texi: New file.
44142         * doc/posix-functions/fstatat.texi: New file.
44143         * doc/posix-functions/futimens.texi: New file.
44144         * doc/posix-functions/linkat.texi: New file.
44145         * doc/posix-functions/mkdirat.texi: New file.
44146         * doc/posix-functions/mkfifoat.texi: New file.
44147         * doc/posix-functions/mknodat.texi: New file.
44148         * doc/posix-functions/open_wmemstream.texi: New file.
44149         * doc/posix-functions/openat.texi: New file.
44150         * doc/posix-functions/psiginfo.texi: New file.
44151         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
44152         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
44153         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
44154         * doc/posix-functions/readlinkat.texi: New file.
44155         * doc/posix-functions/renameat.texi: New file.
44156         * doc/posix-functions/strerror_l.texi: New file.
44157         * doc/posix-functions/symlinkat.texi: New file.
44158         * doc/posix-functions/unlinkat.texi: New file.
44159         * doc/posix-functions/utimensat.texi: New file.
44160         * doc/gnulib.texi (Function Substitutes): Add these subsections.
44161
44162 2008-12-14  Bruno Haible  <bruno@clisp.org>
44163
44164         Update doc for POSIX:2008.
44165         * doc/posix-functions/alphasort.texi: Renamed from
44166         doc/glibc-functions/alphasort.texi.
44167         * doc/posix-functions/dirfd.texi: Renamed from
44168         doc/glibc-functions/dirfd.texi.
44169         * doc/posix-functions/dprintf.texi: Renamed from
44170         doc/glibc-functions/dprintf.texi.
44171         * doc/posix-functions/duplocale.texi: Renamed from
44172         doc/glibc-functions/duplocale.texi.
44173         * doc/posix-functions/fexecve.texi: Renamed from
44174         doc/glibc-functions/fexecve.texi.
44175         * doc/posix-functions/fmemopen.texi: Renamed from
44176         doc/glibc-functions/fmemopen.texi.
44177         * doc/posix-functions/freelocale.texi: Renamed from
44178         doc/glibc-functions/freelocale.texi.
44179         * doc/posix-functions/getdate_err.texi: Renamed from
44180         doc/glibc-functions/getdate_err.texi.
44181         * doc/posix-functions/isalnum_l.texi: Renamed from
44182         doc/glibc-functions/isalnum_l.texi.
44183         * doc/posix-functions/isalpha_l.texi: Renamed from
44184         doc/glibc-functions/isalpha_l.texi.
44185         * doc/posix-functions/isblank_l.texi: Renamed from
44186         doc/glibc-functions/isblank_l.texi.
44187         * doc/posix-functions/iscntrl_l.texi: Renamed from
44188         doc/glibc-functions/iscntrl_l.texi.
44189         * doc/posix-functions/isdigit_l.texi: Renamed from
44190         doc/glibc-functions/isdigit_l.texi.
44191         * doc/posix-functions/isgraph_l.texi: Renamed from
44192         doc/glibc-functions/isgraph_l.texi.
44193         * doc/posix-functions/islower_l.texi: Renamed from
44194         doc/glibc-functions/islower_l.texi.
44195         * doc/posix-functions/isprint_l.texi: Renamed from
44196         doc/glibc-functions/isprint_l.texi.
44197         * doc/posix-functions/ispunct_l.texi: Renamed from
44198         doc/glibc-functions/ispunct_l.texi.
44199         * doc/posix-functions/isspace_l.texi: Renamed from
44200         doc/glibc-functions/isspace_l.texi.
44201         * doc/posix-functions/isupper_l.texi: Renamed from
44202         doc/glibc-functions/isupper_l.texi.
44203         * doc/posix-functions/iswalnum_l.texi: Renamed from
44204         doc/glibc-functions/iswalnum_l.texi.
44205         * doc/posix-functions/iswalpha_l.texi: Renamed from
44206         doc/glibc-functions/iswalpha_l.texi.
44207         * doc/posix-functions/iswblank_l.texi: Renamed from
44208         doc/glibc-functions/iswblank_l.texi.
44209         * doc/posix-functions/iswcntrl_l.texi: Renamed from
44210         doc/glibc-functions/iswcntrl_l.texi.
44211         * doc/posix-functions/iswctype_l.texi: Renamed from
44212         doc/glibc-functions/iswctype_l.texi.
44213         * doc/posix-functions/iswdigit_l.texi: Renamed from
44214         doc/glibc-functions/iswdigit_l.texi.
44215         * doc/posix-functions/iswgraph_l.texi: Renamed from
44216         doc/glibc-functions/iswgraph_l.texi.
44217         * doc/posix-functions/iswlower_l.texi: Renamed from
44218         doc/glibc-functions/iswlower_l.texi.
44219         * doc/posix-functions/iswprint_l.texi: Renamed from
44220         doc/glibc-functions/iswprint_l.texi.
44221         * doc/posix-functions/iswpunct_l.texi: Renamed from
44222         doc/glibc-functions/iswpunct_l.texi.
44223         * doc/posix-functions/iswspace_l.texi: Renamed from
44224         doc/glibc-functions/iswspace_l.texi.
44225         * doc/posix-functions/iswupper_l.texi: Renamed from
44226         doc/glibc-functions/iswupper_l.texi.
44227         * doc/posix-functions/iswxdigit_l.texi: Renamed from
44228         doc/glibc-functions/iswxdigit_l.texi.
44229         * doc/posix-functions/isxdigit_l.texi: Renamed from
44230         doc/glibc-functions/isxdigit_l.texi.
44231         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
44232         doc/glibc-functions/mbsnrtowcs.texi.
44233         * doc/posix-functions/mkdtemp.texi: Renamed from
44234         doc/glibc-functions/mkdtemp.texi.
44235         * doc/posix-functions/newlocale.texi: Renamed from
44236         doc/glibc-functions/newlocale.texi.
44237         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
44238         doc/glibc-functions/nl_langinfo_l.texi.
44239         * doc/posix-functions/open_memstream.texi: Renamed from
44240         doc/glibc-functions/open_memstream.texi.
44241         * doc/posix-functions/opterr.texi: Renamed from
44242         doc/glibc-functions/opterr.texi.
44243         * doc/posix-functions/optind.texi: Renamed from
44244         doc/glibc-functions/optind.texi.
44245         * doc/posix-functions/optopt.texi: Renamed from
44246         doc/glibc-functions/optopt.texi.
44247         * doc/posix-functions/psignal.texi: Renamed from
44248         doc/glibc-functions/psignal.texi.
44249         * doc/posix-functions/scandir.texi: Renamed from
44250         doc/glibc-functions/scandir.texi.
44251         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
44252         doc/glibc-functions/sched_get_priority_min.texi.
44253         * doc/posix-functions/signgam.texi: Renamed from
44254         doc/glibc-functions/signgam.texi.
44255         * doc/posix-functions/stpcpy.texi: Renamed from
44256         doc/glibc-functions/stpcpy.texi.
44257         * doc/posix-functions/stpncpy.texi: Renamed from
44258         doc/glibc-functions/stpncpy.texi.
44259         * doc/posix-functions/strcasecmp_l.texi: Renamed from
44260         doc/glibc-functions/strcasecmp_l.texi.
44261         * doc/posix-functions/strcoll_l.texi: Renamed from
44262         doc/glibc-functions/strcoll_l.texi.
44263         * doc/posix-functions/strfmon_l.texi: Renamed from
44264         doc/glibc-functions/strfmon_l.texi.
44265         * doc/posix-functions/strftime_l.texi: Renamed from
44266         doc/glibc-functions/strftime_l.texi.
44267         * doc/posix-functions/strncasecmp_l.texi: Renamed from
44268         doc/glibc-functions/strncasecmp_l.texi.
44269         * doc/posix-functions/strndup.texi: Renamed from
44270         doc/glibc-functions/strndup.texi.
44271         * doc/posix-functions/strnlen.texi: Renamed from
44272         doc/glibc-functions/strnlen.texi.
44273         * doc/posix-functions/strsignal.texi: Renamed from
44274         doc/glibc-functions/strsignal.texi.
44275         * doc/posix-functions/strxfrm_l.texi: Renamed from
44276         doc/glibc-functions/strxfrm_l.texi.
44277         * doc/posix-functions/timer_gettime.texi: Renamed from
44278         doc/glibc-functions/timer_gettime.texi.
44279         * doc/posix-functions/tolower_l.texi: Renamed from
44280         doc/glibc-functions/tolower_l.texi.
44281         * doc/posix-functions/toupper_l.texi: Renamed from
44282         doc/glibc-functions/toupper_l.texi.
44283         * doc/posix-functions/towctrans_l.texi: Renamed from
44284         doc/glibc-functions/towctrans_l.texi.
44285         * doc/posix-functions/towlower_l.texi: Renamed from
44286         doc/glibc-functions/towlower_l.texi.
44287         * doc/posix-functions/towupper_l.texi: Renamed from
44288         doc/glibc-functions/towupper_l.texi.
44289         * doc/posix-functions/uselocale.texi: Renamed from
44290         doc/glibc-functions/uselocale.texi.
44291         * doc/posix-functions/vdprintf.texi: Renamed from
44292         doc/glibc-functions/vdprintf.texi.
44293         * doc/posix-functions/wcpcpy.texi:
44294         Renamed from doc/glibc-functions/wcpcpy.texi.
44295         * doc/posix-functions/wcpncpy.texi: Renamed from
44296         doc/glibc-functions/wcpncpy.texi.
44297         * doc/posix-functions/wcscasecmp.texi: Renamed from
44298         doc/glibc-functions/wcscasecmp.texi.
44299         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
44300         doc/glibc-functions/wcscasecmp_l.texi.
44301         * doc/posix-functions/wcscoll_l.texi: Renamed from
44302         doc/glibc-functions/wcscoll_l.texi.
44303         * doc/posix-functions/wcsdup.texi: Renamed from
44304         doc/glibc-functions/wcsdup.texi.
44305         * doc/posix-functions/wcsncasecmp.texi: Renamed from
44306         doc/glibc-functions/wcsncasecmp.texi.
44307         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
44308         doc/glibc-functions/wcsncasecmp_l.texi.
44309         * doc/posix-functions/wcsnlen.texi: Renamed from
44310         doc/glibc-functions/wcsnlen.texi.
44311         * doc/posix-functions/wcsnrtombs.texi: Renamed from
44312         doc/glibc-functions/wcsnrtombs.texi.
44313         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
44314         doc/glibc-functions/wcsxfrm_l.texi.
44315         * doc/posix-functions/wctrans_l.texi: Renamed from
44316         doc/glibc-functions/wctrans_l.texi.
44317         * doc/posix-functions/wctype_l.texi: Renamed from
44318         doc/glibc-functions/wctype_l.texi.
44319         * doc/gnulib.texi (Function Substitutes): Add these subsections.
44320         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
44321         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
44322         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
44323         these subsections.
44324         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
44325         Remove sections.
44326
44327 2008-12-14  Bruno Haible  <bruno@clisp.org>
44328
44329         Update doc for POSIX:2008.
44330         * doc/posix-functions/*.texi: Update URL of POSIX specification.
44331
44332 2008-12-14  Bruno Haible  <bruno@clisp.org>
44333
44334         Update doc for POSIX:2008.
44335         * doc/pastposix-functions/bcmp.texi: Renamed from
44336         doc/posix-functions/bcmp.texi.
44337         * doc/pastposix-functions/bcopy.texi: Renamed from
44338         doc/posix-functions/bcopy.texi.
44339         * doc/pastposix-functions/bsd_signal.texi: Renamed from
44340         doc/posix-functions/bsd_signal.texi.
44341         * doc/pastposix-functions/bzero.texi: Renamed from
44342         doc/posix-functions/bzero.texi.
44343         * doc/pastposix-functions/ecvt.texi: Renamed from
44344         doc/posix-functions/ecvt.texi.
44345         * doc/pastposix-functions/fcvt.texi: Renamed from
44346         doc/posix-functions/fcvt.texi.
44347         * doc/pastposix-functions/ftime.texi: Renamed from
44348         doc/posix-functions/ftime.texi.
44349         * doc/pastposix-functions/gcvt.texi: Renamed from
44350         doc/posix-functions/gcvt.texi.
44351         * doc/pastposix-functions/getcontext.texi: Renamed from
44352         doc/posix-functions/getcontext.texi.
44353         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
44354         doc/posix-functions/gethostbyaddr.texi.
44355         * doc/pastposix-functions/gethostbyname.texi: Renamed from
44356         doc/posix-functions/gethostbyname.texi.
44357         * doc/pastposix-functions/getwd.texi: Renamed from
44358         doc/posix-functions/getwd.texi.
44359         * doc/pastposix-functions/h_errno.texi: Renamed from
44360         doc/posix-functions/h_errno.texi.
44361         * doc/pastposix-functions/index.texi: Renamed from
44362         doc/posix-functions/index.texi.
44363         * doc/pastposix-functions/makecontext.texi: Renamed from
44364         doc/posix-functions/makecontext.texi.
44365         * doc/pastposix-functions/mktemp.texi: Renamed from
44366         doc/posix-functions/mktemp.texi.
44367         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
44368         doc/posix-functions/pthread_attr_getstackaddr.texi.
44369         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
44370         doc/posix-functions/pthread_attr_setstackaddr.texi.
44371         * doc/pastposix-functions/rindex.texi: Renamed from
44372         doc/posix-functions/rindex.texi.
44373         * doc/pastposix-functions/scalb.texi: Renamed from
44374         doc/posix-functions/scalb.texi.
44375         * doc/pastposix-functions/setcontext.texi: Renamed from
44376         doc/posix-functions/setcontext.texi.
44377         * doc/pastposix-functions/swapcontext.texi: Renamed from
44378         doc/posix-functions/swapcontext.texi.
44379         * doc/pastposix-functions/ualarm.texi: Renamed from
44380         doc/posix-functions/ualarm.texi.
44381         * doc/pastposix-functions/usleep.texi: Renamed from
44382         doc/posix-functions/usleep.texi.
44383         * doc/pastposix-functions/vfork.texi: Renamed from
44384         doc/posix-functions/vfork.texi.
44385         * doc/pastposix-functions/wcswcs.texi: Renamed from
44386         doc/posix-functions/wcswcs.texi.
44387         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
44388         (Function Substitutes): Update.
44389
44390 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44391
44392         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
44393         m4/strerror.m4.
44394
44395 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44396             Bruno Haible  <bruno@clisp.org>
44397
44398         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
44399
44400 2008-12-13  Bruno Haible  <bruno@clisp.org>
44401
44402         * modules/strtoull (Depends-on): Remove unistd.
44403
44404 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44405
44406         * modules/strtoull (Depends-on): Add stdlib.
44407
44408 2008-12-11  Simon Josefsson  <simon@josefsson.org>
44409
44410         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
44411
44412 2008-12-10  Jim Meyering  <meyering@redhat.com>
44413
44414         gl_ASSERT: don't say assertions are disabled when they're not
44415         * m4/assert.m4 (gl_ASSERT): Do not make configure report
44416         "checking whether to enable assertions... no", when they are in
44417         fact enabled.  This is solely a bug in the output of configure.
44418         In spite of saying "no", NDEBUG was not defined in that case.
44419         Also, as noted by Eric Blake, leave assertions enabled upon
44420         --enable-assert=INVALID.
44421
44422 2008-12-10  Bruno Haible  <bruno@clisp.org>
44423
44424         Change MODULES.html to refer to POSIX:2008 where possible.
44425         * MODULES.html.sh (POSIX2008_URL): New variable.
44426         (posix_headers): Remove sys/timeb, ucontext.
44427         (posix2001_headers): New variable.
44428         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
44429         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
44430         index, makecontext, mktemp, pthread_attr_getstackaddr,
44431         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
44432         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
44433         (posix2001_functions): New variable.
44434         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
44435         otherwise.
44436
44437 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44438
44439         add missing include to parse-duration.c
44440         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
44441         * modules/parse-duration (Depends-on): Add xalloc.
44442
44443         fix sed script reading maint.mk
44444         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
44445         (syntax-check-rules): Use it.
44446
44447 2008-12-09  Bruno Haible  <bruno@clisp.org>
44448
44449         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
44450         MacOS X 10.4/PowerPC.
44451         Reported by Simon Josefsson.
44452
44453 2008-12-08  Jim Meyering  <meyering@redhat.com>
44454
44455         work around mingw's lack of some S_IF definitions
44456         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
44457         Reported by Simon Josefsson.
44458
44459 2008-12-08  Bruno Haible  <bruno@clisp.org>
44460
44461         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
44462         applied to variables. Needed on MacOS X 10.4/PowerPC.
44463         Reported by Simon Josefsson.
44464
44465 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
44466         and Eric Blake  <ebb9@byu.net>
44467
44468         assert: honor --enable-assert
44469         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
44470         order to honor --enable-assert, rather than treating it as a
44471         synonym for --disable-assert.
44472
44473 2008-12-08  Jim Meyering  <meyering@redhat.com>
44474
44475         * lib/posixtm.c: Remove now-useless declaration of mktime.
44476
44477         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
44478
44479 2008-12-07  Bruno Haible  <bruno@clisp.org>
44480
44481         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
44482         test_once): Mark functions as static.
44483         * tests/test-tls.c (test_tls): Likewise.
44484
44485 2008-12-07  Bruno Haible  <bruno@clisp.org>
44486
44487         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
44488         iconv_register_autodetect.
44489
44490 2008-12-07  Jim Meyering  <meyering@redhat.com>
44491
44492         posixtm.c: avoid a warning
44493         * lib/posixtm.c (posixtime): Don't initialize tm0.
44494         It's no longer needed to placate gcc4's -Wuninitialized,
44495         and the attempt to placate would elicit a new warning.
44496
44497         unicodeio.c: mark unused parameters
44498         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44499         (fallback_failure_callback): Likewise.
44500
44501 2008-12-07  Bruno Haible  <bruno@clisp.org>
44502
44503         * gnulib-tool (func_create_testdir): When building the tests
44504         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
44505         Reported by Simon Josefsson.
44506
44507 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44508
44509         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
44510
44511 2008-12-06  Bruno Haible  <bruno@clisp.org>
44512
44513         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
44514         Suggested by Eric Blake.
44515
44516 2008-12-06  Bruno Haible  <bruno@clisp.org>
44517
44518         Fix a c-stack test failure on MacOS X.
44519         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
44520         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
44521         handler for SIGBUS as well.
44522         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
44523         install a signal handler for SIGBUS as well.
44524         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
44525
44526 2008-12-06  Bruno Haible  <bruno@clisp.org>
44527
44528         Advocacy documentation.
44529         * doc/gnulib-intro.texi (Benefits): New section.
44530         * doc/gnulib.texi: Update.
44531
44532 2008-12-06  Bruno Haible  <bruno@clisp.org>
44533
44534         Document the 'manywarnings' module.
44535         * doc/manywarnings.texi: New file.
44536         * doc/gnulib.texi: Include it.
44537
44538 2008-12-05  Eric Blake  <ebb9@byu.net>
44539
44540         tests: silence some gcc warnings
44541         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
44542         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
44543         type mismatches.
44544
44545 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44546             Bruno Haible  <bruno@clisp.org>
44547
44548         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
44549
44550 2008-11-29  Jim Meyering  <meyering@redhat.com>
44551
44552         unicodeio.c: mark unused parameters
44553         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
44554         (fallback_failure_callback): Likewise.
44555
44556         fts: fix a thinko
44557         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
44558         (set_stat_type): Return S_IF*-valued "type" directly.
44559         Prompted by James Youngman's spotting a related bug.
44560         Confirmed by further testing through find.
44561
44562         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
44563         * lib/fts.c (D_TYPE): Define.
44564         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
44565         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
44566         (s_ifmt_shift_bits): New function.
44567         (set_stat_type): New function.
44568         (fts_build): When not calling fts_stat, call set_stat_type
44569         to propagate dirent.d_type info to fts_read caller.
44570         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
44571         fts_statp->st_mode type information may be valid.
44572
44573 2008-11-28  Simon Josefsson  <simon@josefsson.org>
44574
44575         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
44576         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
44577         <sds@gnu.org>.
44578
44579 2008-11-20  Bruno Haible  <bruno@clisp.org>
44580
44581         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
44582         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
44583         INCLUDE_NEXT.
44584         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
44585         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
44586         * modules/math (Makefile.am): Substitute
44587         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
44588         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44589
44590 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
44591             Bruno Haible  <bruno@clisp.org>
44592
44593         * lib/stdint.in.h: Define all type macros so that their expansion is
44594         a single typedef'ed token. Fixes a compilation failure in Boost which
44595         does "using ::int8_t;".
44596
44597 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44598
44599         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
44600         gl_MANYWARN_ALL_GCC.
44601         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
44602         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
44603         * modules/manywarnings: New file.
44604         * MODULES.html.sh: Mention manywarnings module.
44605
44606 2008-11-18  Bruno Haible  <bruno@clisp.org>
44607
44608         * doc/gnulib-tool.texi (Unit tests): New section.
44609
44610 2008-11-18  Simon Josefsson  <simon@josefsson.org>
44611
44612         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
44613         paths like 'lib/po/foo.po'.
44614
44615 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44616
44617         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
44618         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
44619
44620 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44621
44622         * m4/warnings.m4: Use CPPFLAGS to really check whether the
44623         parameter works.
44624
44625 2008-11-17  Simon Josefsson  <simon@josefsson.org>
44626
44627         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
44628
44629 2008-11-17  Bruce Korb  <bkorb@gnu.org>
44630
44631         * modules/parse-duration-tests: New file.
44632         * tests/test-parse-duration.sh: New file.
44633         * tests/test-parse-duration.c: New file.
44634
44635         New module 'parse-duration'.
44636         * lib/parse-duration.h: New file.
44637         * lib/parse-duration.c: New file.
44638         * modules/parse-duration: New file.
44639
44640 2008-11-17  Bruno Haible  <bruno@clisp.org>
44641
44642         * tests/test-select-out.sh: Comment out the first pipe test.
44643         Reported by Simon Josefsson.
44644
44645 2008-11-17  Bruno Haible  <bruno@clisp.org>
44646
44647         * modules/getaddrinfo (Depends-on): Add servent, hostent.
44648         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
44649         gl_HOSTENT.
44650
44651 2008-11-17  Bruno Haible  <bruno@clisp.org>
44652
44653         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
44654         -lnetwork and -lnet. Needed for Haiku and BeOS.
44655
44656 2008-11-16  Bruno Haible  <bruno@clisp.org>
44657
44658         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
44659
44660 2008-11-16  Bruno Haible  <bruno@clisp.org>
44661
44662         Avoid test failure on Haiku.
44663         * tests/test-fsync.c: Include <errno.h>.
44664         (main): Don't require that fsync (0) fails.
44665
44666 2008-11-15  Bruno Haible  <bruno@clisp.org>
44667
44668         New module 'hostent'.
44669         * modules/hostent: New file.
44670         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
44671
44672 2008-11-15  Bruno Haible  <bruno@clisp.org>
44673
44674         New module 'servent'.
44675         * modules/servent: New file.
44676         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
44677
44678 2008-11-15  Bruno Haible  <bruno@clisp.org>
44679
44680         Avoid generating same test program with two different rules.
44681         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
44682         test-frexp to test-frexp-nolibm.
44683         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
44684         test-frexpl to test-frexpl-nolibm.
44685
44686 2008-11-15  Bruno Haible  <bruno@clisp.org>
44687
44688         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
44689         $(FREXPL_LIBM).
44690
44691 2008-11-15  Bruno Haible  <bruno@clisp.org>
44692
44693         * lib/netdb.in.h: Activate the definitions also when the system's
44694         <netdb.h> has 'struct addrinfo'.
44695         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
44696         EAI_OVERFLOW or AI_NUMERICSERV.
44697         * doc/posix-headers/netdb.texi: Document the problem.
44698
44699 2008-11-15  Bruno Haible  <bruno@clisp.org>
44700
44701         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
44702
44703         Make the 'sched' module work on platforms where <sched.h> exists but
44704         is incomplete (such as Haiku).
44705         * lib/sched.in.h; Include the system's <sched.h> if it exists.
44706         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
44707         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
44708         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
44709         HAVE_STRUCT_SCHED_PARAM.
44710         * modules/sched (Depends-on): Add include_next.
44711         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
44712         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
44713         * doc/posix-headers/sched.texi: Document the issue.
44714
44715 2008-11-13  Jim Meyering  <meyering@redhat.com>
44716
44717         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
44718         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
44719         test would fail due to the difference in the Report bugs to ...
44720         line.  The expected address is empty, "<>", while the actual
44721         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
44722
44723 2008-11-12  Bruno Haible  <bruno@clisp.org>
44724
44725         lstat: don't compile lstat.c on systems lacking lstat
44726         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
44727         which don't have lstat; this is handled by lib/sys_stat.in.h already.
44728         Reported by Daniel P. Berrange via Jim Meyering.
44729
44730 2008-11-12  Jim Meyering  <meyering@redhat.com>
44731
44732         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
44733
44734 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44735
44736         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
44737         instead.
44738
44739 2008-11-12  Bruno Haible  <bruno@clisp.org>
44740
44741         * lib/unicodeio.c: Include unistr.h.
44742         (utf8_wctomb): Remove function.
44743         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
44744
44745 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44746
44747         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
44748         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
44749         <bruno@clisp.org>.
44750         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
44751
44752 2008-11-12  Simon Josefsson  <simon@josefsson.org>
44753
44754         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
44755         * doc/gnulib.texi: Add section for warnings.
44756
44757 2008-11-11  Bruno Haible  <bruno@clisp.org>
44758
44759         * lib/sockets.h: Add a comment.
44760
44761 2008-11-11  Karl Berry  <karl@gnu.org>
44762
44763         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
44764
44765 2008-11-11  Eric Blake  <ebb9@byu.net>
44766
44767         fdl.texi: avoid git symlinks
44768         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
44769
44770 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44771
44772         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
44773
44774 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44775
44776         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
44777         (gl_WARN_ADD): Substitute $2 if literal.
44778
44779 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44780
44781         * m4/warning.m4: Remove.
44782
44783 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
44784
44785         * m4/warnings.m4: Almost complete rewrite. :-)
44786
44787 2008-11-10  Simon Josefsson  <simon@josefsson.org>
44788
44789         * modules/warnings: New module.
44790         * m4/warnings.m4: New file.
44791         * MODULES.html.sh: Mention warnings module.
44792         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
44793         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44794
44795 2008-11-10  Eric Blake  <ebb9@byu.net>
44796
44797         fdl.texi: make a symlink to the latest version
44798         * doc/standards.texi: Revert today's earlier change.
44799         * doc/fdl-1.2.texi: Rename from old fdl.texi...
44800         * doc/fdl.texi: ...and replace this with a symlink to the newer
44801         fdl-1.3.texi.
44802
44803 2008-11-10  Bruno Haible  <bruno@clisp.org>
44804
44805         * tests/test-select-fd.c (main): Accept the result file name as fourth
44806         argument.
44807         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
44808         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
44809
44810 2008-11-10  Bruno Haible  <bruno@clisp.org>
44811
44812         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
44813         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
44814         as autoconf-substituted macros.
44815         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
44816         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
44817         gl_NETDB_H_DEFAULTS. Set these variables.
44818         * modules/netdb (Makefile.am): Substitute these variables.
44819
44820 2008-11-10  Eric Blake  <ebb9@byu.net>
44821
44822         standards.texi: include correct file for FDL 1.3
44823         * doc/standards.texi (GNU Free Documentation License): Change
44824         include file to pull in FDL 1.3, not 1.2.
44825
44826         fdl.texi: revert accidental change to license
44827         * doc/fdl.texi: This is FDL 1.2, not 1.3.
44828
44829 2008-11-10  Bruno Haible  <bruno@clisp.org>
44830
44831         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
44832         cross-compiling guesses also when the native compile gives no result.
44833
44834 2008-11-10  Bruno Haible  <bruno@clisp.org>
44835
44836         * lib/spawni.c (__spawni): Force variable into the stack.
44837
44838 2008-11-10  Bruno Haible  <bruno@clisp.org>
44839
44840         Add support for Haiku.
44841         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
44842         glibc and BeOS, but also on Haiku.
44843         * lib/fpurge.c (fpurge): Likewise.
44844         * lib/freadable.c (freadable): Likewise.
44845         * lib/freadahead.c (freadahead): Likewise.
44846         * lib/freading.c (freading): Likewise.
44847         * lib/freadptr.c (freadptr): Likewise.
44848         * lib/freadseek.c (freadptrinc): Likewise.
44849         * lib/fseeko.c (rpl_fseeko): Likewise.
44850         * lib/fseterr.c (fseterr): Likewise.
44851         * lib/fwritable.c (fwritable): Likewise.
44852         * lib/fwriting.c (fwriting): Likewise.
44853         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
44854
44855 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44856
44857         * lib/config.charset: Treat Haiku like BeOS.
44858
44859 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
44860
44861         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
44862         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
44863
44864 2008-11-08  Bruno Haible  <bruno@clisp.org>
44865
44866         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
44867         AC_CACHE_CHECK.
44868
44869 2008-11-08  Bruno Haible  <bruno@clisp.org>
44870
44871         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
44872
44873 2008-11-08  Bruno Haible  <bruno@clisp.org>
44874
44875         * tests/test-select-fd.c: New file.
44876         * tests/test-select-in.sh: New file.
44877         * tests/test-select-out.sh: New file.
44878         * tests/test-select-stdin.c: New file.
44879         * modules/select-tests (Files): Add the new files.
44880         (Depends-on): Add gettimeofday.
44881         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
44882         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
44883         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
44884
44885 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
44886             Bruno Haible  <bruno@clisp.org>
44887
44888         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
44889
44890 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
44891
44892         * build-aux/pmccabe2html: Added support for C++ source files.
44893
44894 2008-11-05  Ben Pfaff  <blp@gnu.org>
44895
44896         Fix lib/close.c build on Windows.
44897         * modules/close (Files): Add lib/w32sock.h.
44898
44899 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
44900
44901         Accept Bison's NEWS format.
44902         * build-aux/announce-gen (print_news_deltas): Tweak
44903         $re_prefix.
44904
44905 2008-11-04  Bruno Haible  <bruno@clisp.org>
44906
44907         * modules/random_r (Maintainer): Add glibc.
44908
44909 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44910
44911         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
44912         by karl@freefriends.org (Karl Berry).
44913         * doc/alloca.texi: Likewise.
44914         * doc/c-ctype.texi: Likewise.
44915         * doc/c-strcase.texi: Likewise.
44916         * doc/c-strcaseeq.texi: Likewise.
44917         * doc/c-strcasestr.texi: Likewise.
44918         * doc/c-strstr.texi: Likewise.
44919         * doc/c-strtod.texi: Likewise.
44920         * doc/c-strtold.texi: Likewise.
44921         * doc/ctime.texi: Likewise.
44922         * doc/error.texi: Likewise.
44923         * doc/fdl.texi: Likewise.
44924         * doc/gcd.texi: Likewise.
44925         * doc/getdate.texi: Likewise.
44926         * doc/gnulib-intro.texi: Likewise.
44927         * doc/gnulib-tool.texi: Likewise.
44928         * doc/gnulib.texi: Likewise.
44929         * doc/inet_ntoa.texi: Likewise.
44930         * doc/maintain.texi: Likewise.
44931         * doc/make-stds.texi: Likewise.
44932         * doc/quote.texi: Likewise.
44933         * doc/regexprops-generic.texi: Likewise.
44934         * doc/standards.texi: Likewise.
44935         * doc/verify.texi: Likewise.
44936         * doc/visibility.texi: Likewise.
44937         * doc/gnulib.texi (GNU Free Documentation License): Include
44938         fdl-1.3.texi instead of fdl.texi.
44939
44940 2008-11-04  Simon Josefsson  <simon@josefsson.org>
44941
44942         * doc/fdl-1.3.texi: New file, from
44943         <http://www.gnu.org/licenses/fdl-1.3.texi>.
44944         * modules/fdl-1.3: Add.
44945         * MODULES.html.sh: Add fdl-1.3.
44946
44947 2008-11-03  Bruno Haible  <bruno@clisp.org>
44948
44949         Make determination of absolute name of header file work with AIX xlc.
44950         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
44951         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
44952         preprocessing.
44953         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44954         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
44955
44956 2008-11-03  Simon Josefsson  <simon@josefsson.org>
44957
44958         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
44959         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
44960         <ludo@gnu.org>.
44961
44962 2008-11-02  Bruno Haible  <bruno@clisp.org>
44963
44964         Mark 'strpbrk' obsolete.
44965         * modules/strpbrk (Status, Notice): New sections.
44966         * modules/strtok_r (Depends-on): Add strpbrk.
44967
44968 2008-11-02  Bruno Haible  <bruno@clisp.org>
44969
44970         Mark 'strdup' obsolete.
44971         * modules/strdup (Status, Notice): New sections.
44972         * modules/findprog (Depends-on): Add strdup.
44973         * modules/getaddrinfo (Depends-on): Likewise.
44974         * modules/localename (Depends-on): Likewise.
44975         * modules/relocatable-lib (Depends-on): Likewise.
44976         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
44977         * modules/relocatable-prog (Depends-on): Likewise.
44978         * modules/trim (Depends-on): Likewise.
44979         * modules/unictype/gen-ctype (Depends-on): Likewise.
44980         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
44981
44982 2008-11-02  Bruno Haible  <bruno@clisp.org>
44983
44984         Mark 'strcspn' obsolete.
44985         * modules/strcspn (Status, Notice): New sections.
44986
44987 2008-11-02  Bruno Haible  <bruno@clisp.org>
44988
44989         Mark 'rmdir' obsolete.
44990         * modules/rmdir (Status, Notice): New sections.
44991         * modules/clean-temp (Depends-on): Add rmdir.
44992         * modules/openat (Depends-on): Likewise.
44993
44994 2008-11-02  Bruno Haible  <bruno@clisp.org>
44995
44996         Mark 'raise' obsolete.
44997         * modules/raise (Status, Notice): New sections.
44998         (Include): Specify <signal.h>.
44999         * modules/stdio (Depends-on): Add raise.
45000         * modules/write (Depends-on): Likewise.
45001
45002 2008-11-02  Bruno Haible  <bruno@clisp.org>
45003
45004         Mark 'memset' obsolete.
45005         * modules/memset (Status, Notice): New sections.
45006
45007 2008-11-02  Bruno Haible  <bruno@clisp.org>
45008
45009         Mark 'memmove' obsolete.
45010         * modules/memmove (Status, Notice): New sections.
45011         * modules/argp (Depends-on): Add memmove.
45012         * modules/argz (Depends-on): Likewise.
45013         * modules/canonicalize (Depends-on): Likewise.
45014         * modules/canonicalize-lgpl (Depends-on): Likewise.
45015         * modules/fts (Depends-on): Likewise.
45016         * modules/getcwd (Depends-on): Likewise.
45017         * modules/human (Depends-on): Likewise.
45018         * modules/regex (Depends-on): Likewise.
45019         * modules/striconveh (Depends-on): Likewise.
45020         * modules/trim (Depends-on): Likewise.
45021         * modules/unistr/u8-move (Depends-on): Likewise.
45022         * modules/unistr/u16-move (Depends-on): Likewise.
45023         * modules/unistr/u32-move (Depends-on): Likewise.
45024
45025 2008-11-02  Bruno Haible  <bruno@clisp.org>
45026
45027         Mark 'memcpy' obsolete.
45028         * modules/memcpy (Status, Notice): New sections.
45029
45030 2008-11-02  Bruno Haible  <bruno@clisp.org>
45031
45032         Mark 'memcmp' obsolete.
45033         * modules/memcmp (Status, Notice): New sections.
45034         * modules/argmatch (Depends-on): Add memchr.
45035         * modules/backupfile (Depends-on): Likewise.
45036         * modules/c-strcasestr (Depends-on): Likewise.
45037         * modules/crypto/des (Depends-on): Likewise.
45038         * modules/csharpcomp (Depends-on): Likewise.
45039         * modules/fnmatch (Depends-on): Likewise.
45040         * modules/git-merge-changelog (Depends-on): Likewise.
45041         * modules/isnand (Depends-on): Likewise.
45042         * modules/isnand-nolibm (Depends-on): Likewise.
45043         * modules/isnanf (Depends-on): Likewise.
45044         * modules/isnanf-nolibm (Depends-on): Likewise.
45045         * modules/isnanl (Depends-on): Likewise.
45046         * modules/isnanl-nolibm (Depends-on): Likewise.
45047         * modules/mbchar (Depends-on): Likewise.
45048         * modules/memcoll (Depends-on): Likewise.
45049         * modules/quotearg (Depends-on): Likewise.
45050         * modules/regex (Depends-on): Likewise.
45051         * modules/relocatable-prog (Depends-on): Likewise.
45052         * modules/same (Depends-on): Likewise.
45053         * modules/signbit (Depends-on): Likewise.
45054         * modules/strcasestr-simple (Depends-on): Likewise.
45055         * modules/unictype/gen-ctype (Depends-on): Likewise.
45056         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
45057         * modules/uniname/uniname (Depends-on): Likewise.
45058         * modules/unistr/u8-cmp (Depends-on): Likewise.
45059
45060 2008-11-02  Bruno Haible  <bruno@clisp.org>
45061
45062         Mark 'memchr' obsolete.
45063         * modules/memchr (Status, Notice): New sections.
45064         * modules/argp (Depends-on): Add memchr.
45065         * modules/base64 (Depends-on): Likewise.
45066         * modules/c-strcasestr (Depends-on): Likewise.
45067         * modules/chdir-long (Depends-on): Likewise.
45068         * modules/fnmatch (Depends-on): Likewise.
45069         * modules/getsubopt (Depends-on): Likewise.
45070         * modules/git-merge-changelog (Depends-on): Likewise.
45071         * modules/glob (Depends-on): Likewise.
45072         * modules/strcasestr-simple (Depends-on): Likewise.
45073         * modules/strnlen (Depends-on): Likewise.
45074
45075 2008-11-02  Bruno Haible  <bruno@clisp.org>
45076
45077         Mark 'atexit' obsolete.
45078         * modules/atexit (Status, Notice): New sections.
45079         * modules/chdir-long (Depends-on): Add atexit.
45080         * modules/wait-process (Depends-on): Likewise.
45081
45082 2008-11-02  Bruno Haible  <bruno@clisp.org>
45083
45084         * gnulib-tool: New option --with-obsolete.
45085         (func_usage): Document it.
45086         (func_modules_transitive_closure): Drop obsolete dependencies if
45087         incobsolete is not true.
45088         (func_import): Read and save the incobsolete variable to the cache.
45089
45090 2008-11-02  Bruno Haible  <bruno@clisp.org>
45091
45092         * modules/TEMPLATE-EXTENDED: New field 'Status'.
45093         * gnulib-tool: New option --extract-status.
45094         (func_usage): Document it.
45095         (sed_extract_prog): Recognize it.
45096         (func_get_status): New function.
45097
45098 2008-10-30  Simon Josefsson  <simon@josefsson.org>
45099
45100         * modules/sockets (License): Change from LGPL to LGPLv2+.
45101
45102 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45103
45104         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
45105
45106 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45107
45108         * MODULES.html.sh (Support for systems lacking POSIX:2001):
45109         Mention times and sys_times.
45110         * modules/sys_times, modules/sys_times-tests: New modules.
45111         * modules/times, modules/times-tests: Likewise
45112         * m4/sys_times_h.m4: New file.
45113         * lib/sys_times.in.h: Likewise
45114         * lib/times.c: Likewise.
45115         * tests/test-sys_times.c: Likewise.
45116         * tests/test-times.c: Likewise.
45117         * doc/posix-headers/sys_times.texi: Update.
45118         * doc/posix-functions/times.texi: Update.
45119
45120 2008-10-28  Jim Meyering  <meyering@redhat.com>
45121
45122         * modules/tempname (Depends-on): Add lstat.
45123
45124         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
45125
45126 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45127
45128         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
45129         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
45130         using idiom used elsewhere in gnulib.
45131
45132 2008-10-27  Jim Meyering  <meyering@redhat.com>
45133
45134         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
45135
45136 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45137
45138         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
45139         TESTS_ENVIRONMENT, for shell scripts that needs to call built
45140         programs.
45141         * tests/test-argp-2.sh: Use $EXEEXT when needed.
45142
45143 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45144
45145         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
45146
45147 2008-10-27  Bruno Haible  <bruno@clisp.org>
45148
45149         * tests/test-lstat.c: Include <stdio.h>.
45150
45151 2008-10-27  Simon Josefsson  <simon@josefsson.org>
45152
45153         * modules/lstat-tests: New module.
45154         * tests/test-lstat.c: New file.
45155
45156 2008-10-26  Jim Meyering  <meyering@redhat.com>
45157
45158         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
45159
45160 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45161             Bruno Haible  <bruno@clisp.org>
45162
45163         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
45164         * modules/configmake (Include): Add a note that the include must come
45165         after all system headers.
45166         * lib/javaversion.c: Include configmake.h after all other includes.
45167
45168 2008-10-26  Bruno Haible  <bruno@clisp.org>
45169
45170         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
45171         HAVE_STRUCT_RANDOM_DATA to 1.
45172         (gl_STDLIB_H): Simplify.
45173
45174 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45175
45176         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
45177         substitute HAVE_STRUCT_RANDOM_DATA.
45178         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
45179         random_data.
45180         * modules/stdlib (Makefile.am): Substitute
45181         HAVE_STRUCT_RANDOM_DATA.
45182
45183 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45184
45185         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
45186         * doc/gnulib-intro.texi (Copyright): Likewise.
45187
45188 2008-10-26  Simon Josefsson  <simon@josefsson.org>
45189
45190         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
45191         findings.
45192
45193 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
45194             Bruno Haible  <bruno@clisp.org>
45195
45196         * lib/unistd.in.h: Include <winsock2.h>.
45197         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
45198         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
45199         Provide dummy declarations.
45200         (gethostname): Override.
45201         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
45202         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
45203         gl_PREREQ_SYS_H_WINSOCK2.
45204         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
45205         * doc/posix-functions/gethostname.texi: More details.
45206
45207 2008-10-25  Bruno Haible  <bruno@clisp.org>
45208
45209         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
45210         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
45211         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
45212
45213         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
45214         here ...
45215         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
45216         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
45217         gl_UNISTD_H_DEFAULTS.
45218
45219 2008-10-25  Eric Blake  <ebb9@byu.net>
45220
45221         signbit: avoid spurious compiler failure
45222         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
45223         declarations inside function.
45224
45225 2008-10-24  Simon Josefsson  <simon@josefsson.org>
45226             Bruno Haible  <bruno@clisp.org>
45227
45228         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
45229         * modules/random_r (Depends-on): Add stdint.
45230
45231 2008-10-24  Bruno Haible  <bruno@clisp.org>
45232
45233         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
45234         Eggert.
45235         * modules/strerror (License): Likewise.
45236
45237 2008-10-24  Jim Meyering  <meyering@redhat.com>
45238
45239         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
45240         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
45241
45242 2008-10-24  Eric Blake  <ebb9@byu.net>
45243
45244         getgroups: fix compilation when getgroups is available
45245         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
45246         but with <config.h> override of getgroups disabled.
45247
45248 2008-10-24  Simon Josefsson  <simon@josefsson.org>
45249
45250         * doc/gnulib.texi (Header files): Add note about C++ problems.
45251         Explained by Bruno Haible <bruno@clisp.org>.
45252
45253 2008-10-23  Bruno Haible  <bruno@clisp.org>
45254
45255         Define a dummy SA_NODEFER macro on Interix.
45256         * lib/signal.in.h (SA_NODEFER): Define fallback.
45257         Reported by Aleksey Cheusov <cheusov@tut.by> via
45258         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
45259
45260 2008-10-23  Bruno Haible  <bruno@clisp.org>
45261
45262         * modules/freadahead (License): Change to LGPLv2+.
45263         Suggested by Simon Josefsson.
45264
45265 2008-10-23  Jim Meyering  <meyering@redhat.com>
45266
45267         random_r: new module
45268         * modules/random_r: New file.
45269         * m4/random_r.m4: New file.
45270         * lib/random_r.c: New file, from glibc.
45271         * modules/random_r-tests: New file.
45272         * tests/test-random_r.c: New file.
45273         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
45274          Declare.
45275         (RAND_MAX): Define.
45276         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
45277         * modules/stdlib: Substitute them, too.
45278         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
45279         * doc/glibc-functions/initstate_r.texi: Mention the new module.
45280         * doc/glibc-functions/random_r.texi: Likewise.
45281         * doc/glibc-functions/setstate_r.texi: Likewise.
45282         * doc/glibc-functions/srandom_r.texi: Likewise.
45283         * config/srclist.txt: Mention it.
45284
45285 2008-10-23  David Lutterkort  <lutter@redhat.com>
45286
45287         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
45288         link requirement
45289
45290 2008-10-23  Jim Meyering  <meyering@redhat.com>
45291
45292         selinux-h: mark parameters of stub functions as intentionally unused
45293         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
45294         * lib/se-context.in.h: Likewise.
45295
45296 2008-10-22  Simon Josefsson  <simon@josefsson.org>
45297
45298         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
45299
45300 2008-10-22  Simon Josefsson  <simon@josefsson.org>
45301
45302         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
45303
45304 2008-10-22  Eric Blake  <ebb9@byu.net>
45305
45306         glthread/thread: avoid compiler warning
45307         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
45308         Add unreachable abort to silence compiler.
45309
45310 2008-10-22  Eric Blake  <ebb9@byu.net>
45311
45312         netdb: also supply struct addrinfo for cygwin 1.5.x
45313         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
45314         older cygwin.
45315         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
45316         cygwin.
45317         * doc/posix-headers/netdb.texi (netdb.h): Document this.
45318
45319 2008-10-22  Bruno Haible  <bruno@clisp.org>
45320
45321         * users.txt: Update entry about pspp.
45322
45323 2008-10-21  Bruno Haible  <bruno@clisp.org>
45324
45325         Simplification.
45326         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
45327         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
45328
45329         Simplification.
45330         * lib/ioctl.c (ioctl): Don't undefine.
45331         * lib/socket.c (socket): Don't undefine.
45332
45333         Remove unused module indicator macros.
45334         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
45335         GNULIB_$1 as a C macro.
45336
45337         * doc/posix-functions/close.texi: Undo last change.
45338         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
45339         Windows platforms.
45340
45341 2008-10-21  Bruno Haible  <bruno@clisp.org>
45342
45343         Add gethostname() declaration to <unistd.h>.
45344         * lib/unistd.in.h (gethostname): New declaration.
45345         * lib/gethostname.c: Include <unistd.h>.
45346         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
45347         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
45348         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
45349         and HAVE_GETHOSTNAME.
45350         * modules/gethostname (Depends-on): Add unistd.
45351         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45352         (Include): Specify <unistd.h>.
45353         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
45354         HAVE_GETHOSTNAME.
45355         * tests/test-gethostname.c: Include <unistd.h> first.
45356
45357 2008-10-21  Bruno Haible  <bruno@clisp.org>
45358
45359         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
45360         * modules/select-tests (Depends-on): Likewise.
45361         Reported by Simon Josefsson.
45362
45363 2008-10-21  Simon Josefsson  <simon@josefsson.org>
45364
45365         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
45366         * lib/accept.c: New file, based on winsock.c.
45367         * lib/bind.c: New file, based on winsock.c.
45368         * lib/connect.c: New file, based on winsock.c.
45369         * lib/getpeername.c: New file, based on winsock.c.
45370         * lib/getsockname.c: New file, based on winsock.c.
45371         * lib/getsockopt.c: New file, based on winsock.c.
45372         * lib/ioctl.c: New file, based on winsock.c.
45373         * lib/listen.c: New file, based on winsock.c.
45374         * lib/recv.c: New file, based on winsock.c.
45375         * lib/recvfrom.c: New file, based on winsock.c.
45376         * lib/send.c: New file, based on winsock.c.
45377         * lib/sendto.c: New file, based on winsock.c.
45378         * lib/setsockopt.c: New file, based on winsock.c.
45379         * lib/shutdown.c: New file, based on winsock.c.
45380         * lib/socket.c: New file, based on winsock.c.
45381         * lib/w32sock.h: New file, based on winsock.c.
45382         * lib/winsock.c: Remove file.
45383         * modules/accept: Likewise.
45384         * modules/bind: Likewise.
45385         * modules/connect: Likewise.
45386         * modules/getpeername: Likewise.
45387         * modules/getsockname: Likewise.
45388         * modules/getsockopt: Likewise.
45389         * modules/ioctl: Likewise.
45390         * modules/listen: Likewise.
45391         * modules/recv: Likewise.
45392         * modules/recvfrom: Likewise.
45393         * modules/send: Likewise.
45394         * modules/sendto: Likewise.
45395         * modules/setsockopt: Likewise.
45396         * modules/shutdown: Likewise.
45397         * modules/socket: Use socket.c instead of winsock.c.
45398         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
45399         * doc/posix-functions/accept.texi: Doc fix.
45400         * doc/posix-functions/bind.texi: Doc fix.
45401         * doc/posix-functions/close.texi: Doc fix.
45402         * doc/posix-functions/connect.texi: Doc fix.
45403         * doc/posix-functions/getpeername.texi: Doc fix.
45404         * doc/posix-functions/getsockname.texi: Doc fix.
45405         * doc/posix-functions/getsockopt.texi: Doc fix.
45406         * doc/posix-functions/ioctl.texi: Doc fix.
45407         * doc/posix-functions/listen.texi: Doc fix.
45408         * doc/posix-functions/recv.texi: Doc fix.
45409         * doc/posix-functions/recvfrom.texi: Doc fix.
45410         * doc/posix-functions/send.texi: Doc fix.
45411         * doc/posix-functions/sendto.texi: Doc fix.
45412         * doc/posix-functions/setsockopt.texi: Doc fix.
45413         * doc/posix-functions/shutdown.texi: Doc fix.
45414         * doc/posix-functions/socket.texi: Doc fix.
45415
45416 2008-10-20  Bruno Haible  <bruno@clisp.org>
45417
45418         Take into account the role of SIGABRT_COMPAT on Windows 2008.
45419         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
45420         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
45421         as an alias for SIGABRT.
45422         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
45423         (sigaction): Map it to SIGABRT.
45424         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
45425
45426 2008-10-20  Bruno Haible  <bruno@clisp.org>
45427
45428         * lib/fts.c: Don't include lstat.h.
45429         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
45430
45431         Move the lstat() declaration to <sys/stat.h>.
45432         * lib/lstat.h: Remove file.
45433         * lib/sys_stat.in.h: Add special invocation convention.
45434         (lstat): New declaration.
45435         * lib/lstat.c (orig_lstat): New function.
45436         (rpl_lstat): Use orig_lstat instead of lstat.
45437         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
45438         AC_C_INLINE. Set REPLACE_LSTAT.
45439         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
45440         and REPLACE_LSTAT.
45441         * modules/lstat (Files): Remove lib/lstat.h.
45442         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45443         (Include): Specify <sys/stat.h> instead of lstat.h.
45444         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
45445         REPLACE_LSTAT.
45446         * NEWS: Mention the change.
45447
45448 2008-10-20  Bruno Haible  <bruno@clisp.org>
45449
45450         * modules/posix_spawn-tests: New file.
45451         * tests/test-posix_spawn3.c: New file.
45452
45453 2008-10-20  Bruno Haible  <bruno@clisp.org>
45454
45455         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
45456         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45457         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
45458         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
45459         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
45460
45461 2008-10-20  Bruno Haible  <bruno@clisp.org>
45462
45463         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
45464         of posix_spawn on AIX 5.3.
45465
45466 2008-10-20  Bruno Haible  <bruno@clisp.org>
45467
45468         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
45469
45470 2008-10-20  Bruno Haible  <bruno@clisp.org>
45471
45472         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
45473         of AC_LANG_PROGRAM.
45474
45475 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45476
45477         * lib/netdb.in.h: Don't define GNU specific constants until they
45478         are supported or needed.  Reported by Bruno Haible
45479         <bruno@clisp.org>.
45480
45481 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45482
45483         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
45484
45485 2008-10-20  Simon Josefsson  <simon@josefsson.org>
45486
45487         * lib/getaddrinfo.h: Remove file.
45488         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
45489         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
45490         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
45491         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
45492         * modules/netdb: Substitute GNULIB_GETADDRINFO.
45493         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
45494         * tests/test-getaddrinfo.c: Likewise.
45495         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
45496         * NEWS: Mention change.
45497
45498 2008-10-19  Bruno Haible  <bruno@clisp.org>
45499
45500         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
45501
45502 2008-10-19  Bruno Haible  <bruno@clisp.org>
45503
45504         * lib/wait-process.c: Include simply <sys/wait.h>.
45505         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
45506         WIFSTOPPED): Remove fallback definitions.
45507         * modules/wait-process (Depends-on): Add sys_wait.
45508
45509         New module 'sys_wait'.
45510         * modules/sys_wait: New file.
45511         * lib/sys_wait.in.h: New file, partially copied from
45512         lib/wait-process.c.
45513         * m4/sys_wait_h.m4: New file.
45514         * doc/posix-headers/sys_wait.texi: Mention the new module.
45515
45516 2008-10-19  Bruno Haible  <bruno@clisp.org>
45517
45518         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
45519
45520 2008-10-19  Bruno Haible  <bruno@clisp.org>
45521
45522         Assume that waitpid() fills an 'int' status, not a 'union wait'.
45523         * lib/wait-process.c (WAIT_T): Remove type.
45524         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
45525         (wait_subprocess): Update.
45526
45527 2008-10-19  Bruno Haible  <bruno@clisp.org>
45528
45529         New module 'atoll'.
45530         * modules/atoll: New file.
45531         * lib/stdlib.in.h (atoll): New declaration.
45532         * lib/atoll.c: New file, from glibc with modifications.
45533         * m4/atoll.m4: New file.
45534         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
45535         HAVE_ATOLL.
45536         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
45537         * doc/posix-functions/atoll.texi: Mention the new module.
45538
45539 2008-10-19  Bruno Haible  <bruno@clisp.org>
45540
45541         Add strtoull() declaration to <stdlib.h>.
45542         * lib/stdlib.in.h (strtoull): New declaration.
45543         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45544         Set HAVE_STRTOULL.
45545         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
45546         HAVE_STRTOULL.
45547         * modules/strtoull (Depends-on): Add stdlib.
45548         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45549         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
45550         HAVE_STRTOULL.
45551
45552 2008-10-19  Bruno Haible  <bruno@clisp.org>
45553
45554         Add strtoll() declaration to <stdlib.h>.
45555         * lib/stdlib.in.h (strtoll): New declaration.
45556         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
45557         Set HAVE_STRTOLL.
45558         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
45559         HAVE_STRTOLL.
45560         * modules/strtoll (Depends-on): Add stdlib.
45561         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45562         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
45563
45564 2008-10-19  Bruno Haible  <bruno@clisp.org>
45565
45566         * modules/bcopy (Depends-on): Add strings.
45567         (Include): Specify <strings.h>.
45568
45569 2008-10-19  Bruno Haible  <bruno@clisp.org>
45570
45571         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
45572
45573 2008-10-19  Bruno Haible  <bruno@clisp.org>
45574
45575         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
45576         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
45577         mingw.
45578
45579 2008-10-19  Bruno Haible  <bruno@clisp.org>
45580
45581         * lib/atanl.c: Don't include isnanl.h.
45582         * lib/cosl.c: Likewise.
45583         * lib/ldexpl.c: Likewise.
45584         * lib/logl.c: Likewise.
45585         * lib/sinl.c: Likewise.
45586         * lib/sqrtl.c: Likewise.
45587         * lib/tanl.c: Likewise.
45588
45589         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
45590         * lib/isnanf.h: Remove file.
45591         * lib/isnand.h: Remove file.
45592         * lib/isnanl.h: Remove file.
45593         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
45594         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
45595         macros.
45596         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
45597         HAVE_ISNANF, don't define it as a C macro.
45598         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
45599         HAVE_ISNAND, don't define it as a C macro.
45600         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
45601         HAVE_ISNANL, don't define it as a C macro.
45602         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
45603         HAVE_ISNAN[FDL].
45604         * modules/isnanf (Files): Remove lib/isnanf.h.
45605         (Depends-on): Add math.
45606         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45607         (Include): Specify <math.h> instead of isnanf.h.
45608         * modules/isnand (Files): Remove lib/isnand.h.
45609         (Depends-on): Add math.
45610         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45611         (Include): Specify <math.h> instead of isnand.h.
45612         * modules/isnanl (Files): Remove lib/isnanl.h.
45613         (Depends-on): Add math.
45614         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
45615         (Include): Specify <math.h> instead of isnanl.h.
45616         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
45617         HAVE_ISNAN[FDL].
45618         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
45619         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
45620         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
45621         * NEWS: Mention the change.
45622
45623 2008-10-18  Bruno Haible  <bruno@clisp.org>
45624
45625         Add getusershell(), setusershell(), endusershell() declarations to
45626         <unistd.h>.
45627         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
45628         declarations.
45629         * lib/getusershell.c: Include unistd.h.
45630         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
45631         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45632         HAVE_GETUSERSHELL.
45633         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
45634         and HAVE_GETUSERSHELL.
45635         * modules/getusershell (Depends-on): Add unistd, extensions.
45636         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45637         (Include): Specify <unistd.h>.
45638         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
45639         HAVE_GETUSERSHELL.
45640
45641 2008-10-18  Bruno Haible  <bruno@clisp.org>
45642
45643         Add a getloadavg() declaration to <stdlib.h>.
45644         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
45645         getloadavg declaration.
45646         (getloadavg): New declaration.
45647         * lib/getloadavg.c: Include <stdlib.h> first.
45648         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
45649         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
45650         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
45651         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
45652         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45653         * modules/getloadavg (Depends-on): Add stdlib, extensions.
45654         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45655         (Include): Specify <stdlib.h>.
45656         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
45657         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
45658
45659 2008-10-18  Bruno Haible  <bruno@clisp.org>
45660
45661         * lib/dirchownmod.c: Don't include lchmod.h.
45662
45663         Move the lchmod() declaration to <sys/stat.h>.
45664         * lib/lchmod.h: Remove file.
45665         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
45666         (lchmod): New declaration, moved here from lib/lchown.h.
45667         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
45668         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
45669         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
45670         and HAVE_LCHMOD.
45671         * modules/lchmod (Files): Remove lib/lchmod.h.
45672         (Depends-on): Add sys_stat, extensions.
45673         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
45674         (Include): Specify <sys/stat.h> instead of lchmod.h.
45675         * modules/sys_stat (Depends-on): Add link-warning.
45676         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
45677         definition of GL_LINK_WARNING.
45678         * NEWS: Mention the change.
45679
45680 2008-10-18  Bruno Haible  <bruno@clisp.org>
45681
45682         * lib/fchdir.c: Don't include dirfd.h.
45683         * lib/fts.c: Likewise.
45684         * lib/getcwd.c: Likewise.
45685         * lib/glob.c: Likewise.
45686
45687         Move the dirfd() declaration to <dirent.h>.
45688         * lib/dirfd.h: Remove file.
45689         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
45690         (dirfd): New declaration.
45691         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
45692         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
45693         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
45694         HAVE_DECL_DIRFD.
45695         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
45696         HAVE_DECL_DIRFD.
45697         * modules/dirfd (Files): Remove lib/dirfd.h.
45698         (Depends-on): Add dirent, extensions.
45699         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
45700         (Include): Specify <dirent.h> instead of dirfd.h.
45701         * modules/dirent (Depends-on): Add link-warning.
45702         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
45703         definition of GL_LINK_WARNING.
45704         * NEWS: Mention the change.
45705
45706 2008-10-18  Bruno Haible  <bruno@clisp.org>
45707
45708         Move the euidaccess() declaration to <unistd.h>.
45709         * lib/euidaccess.h: Remove file.
45710         * lib/unistd.in.h (euidaccess): New declaration.
45711         * lib/euidaccess.c: Don't include euidaccess.h.
45712         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
45713         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
45714         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
45715         and HAVE_EUIDACCESS.
45716         * modules/euidaccess (Files): Remove lib/euidaccess.h.
45717         (Depends-on): Add unistd.
45718         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45719         (Include): Specify <unistd.h> instead of euidaccess.h.
45720         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
45721         HAVE_EUIDACCESS.
45722         * NEWS: Mention the change.
45723
45724 2008-10-18  Bruno Haible  <bruno@clisp.org>
45725
45726         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
45727
45728         Move the getdomainname() declaration to <unistd.h>.
45729         * lib/getdomainname.h: Remove file.
45730         * lib/unistd.in.h (getdomainname): New declaration.
45731         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
45732         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
45733         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
45734         HAVE_GETDOMAINNAME.
45735         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45736         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
45737         * modules/getdomainname (Files): Remove lib/getdomainname.h.
45738         (Depends-on): Add unistd, extensions.
45739         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45740         (Includes): Specify <unistd.h> instead of getdomainname.h.
45741         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
45742         HAVE_GETDOMAINNAME.
45743         * NEWS: Mention the change.
45744
45745 2008-10-18  Bruno Haible  <bruno@clisp.org>
45746
45747         * modules/dirent: New file.
45748         * m4/dirent_h.m4: New file.
45749         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
45750         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
45751         * modules/fchdir (Files): Remove lib/dirent.in.h.
45752         (Depends-on): Add dirent.
45753         (Makefile.am): Move rules to modules/dirent.
45754         * doc/posix-headers/dirent.texi: Mention the new module.
45755
45756 2008-10-18  Bruno Haible  <bruno@clisp.org>
45757
45758         Avoid -Wunused-parameter warnings in public gnulib header files.
45759         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
45760         macro.
45761         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
45762
45763 2008-10-18  Bruno Haible  <bruno@clisp.org>
45764
45765         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
45766         * doc/glibc-functions/error.texi: Mention the module 'error'.
45767         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
45768         * doc/glibc-functions/getdomainname.texi: Mention the module
45769         'getdomainname'.
45770         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
45771         * doc/glibc-functions/getpagesize.texi: Mention the module
45772         'getpagesize'.
45773         * doc/glibc-functions/getusershell.texi: Mention the module
45774         'getusershell'.
45775         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
45776         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
45777         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
45778         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
45779         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
45780         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
45781         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
45782         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
45783         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
45784         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
45785         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
45786         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
45787         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
45788         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
45789
45790 2008-10-17  Bruno Haible  <bruno@clisp.org>
45791
45792         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
45793         HP-UX and IRIX, use -0.0L.
45794         * tests/test-ceill.c (minus_zero): Likewise.
45795         * tests/test-floorl.c (minus_zero): Likewise.
45796         * tests/test-frexpl.c (minus_zero): Likewise.
45797         * tests/test-isnan.c (minus_zerol): Likewise.
45798         * tests/test-isnanl.h (minus_zero): Likewise.
45799         * tests/test-ldexpl.c (minus_zero): Likewise.
45800         * tests/test-roundl.c (minus_zero): Likewise.
45801         * tests/test-signbit.c (minus_zerol): Likewise.
45802         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
45803         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
45804         * tests/test-truncl.c (minus_zero): Likewise.
45805         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
45806         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
45807         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
45808         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
45809
45810 2008-10-17  Bruno Haible  <bruno@clisp.org>
45811
45812         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
45813         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
45814         that it gets activated only for gcc >= 3.0.
45815         * lib/dirent.in.h: Likewise.
45816         * lib/errno.in.h: Likewise.
45817         * lib/fcntl.in.h: Likewise.
45818         * lib/float.in.h: Likewise.
45819         * lib/iconv.in.h: Likewise.
45820         * lib/inttypes.in.h: Likewise.
45821         * lib/locale.in.h: Likewise.
45822         * lib/math.in.h: Likewise.
45823         * lib/netdb.in.h: Likewise.
45824         * lib/netinet_in.in.h: Likewise.
45825         * lib/search.in.h: Likewise.
45826         * lib/signal.in.h: Likewise.
45827         * lib/spawn.in.h: Likewise.
45828         * lib/stdarg.in.h: Likewise.
45829         * lib/stdint.in.h: Likewise.
45830         * lib/stdio.in.h: Likewise.
45831         * lib/stdlib.in.h: Likewise.
45832         * lib/string.in.h: Likewise.
45833         * lib/strings.in.h: Likewise.
45834         * lib/sys_file.in.h: Likewise.
45835         * lib/sys_ioctl.in.h: Likewise.
45836         * lib/sys_select.in.h: Likewise.
45837         * lib/sys_socket.in.h: Likewise.
45838         * lib/sys_stat.in.h: Likewise.
45839         * lib/sys_time.in.h: Likewise.
45840         * lib/sysexits.in.h: Likewise.
45841         * lib/time.in.h: Likewise.
45842         * lib/unistd.in.h: Likewise.
45843         * lib/wchar.in.h: Likewise.
45844         * lib/wctype.in.h: Likewise.
45845         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45846
45847 2008-10-17  Jim Meyering  <meyering@redhat.com>
45848
45849         ignore-value: don't depend on inline module
45850         * modules/ignore-value (Depends-on): Remove 'inline'.
45851         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
45852         Suggestion from Bruno Haible.
45853
45854 2008-10-17  Bruno Haible  <bruno@clisp.org>
45855
45856         New implementation of condition variables for Win32.
45857         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
45858         (gl_linked_waitqueue_t): New type.
45859         (gl_cond_t): Use it.
45860         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
45861         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
45862         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
45863         (glthread_cond_init_func, glthread_cond_wait_func,
45864         glthread_cond_timedwait_func, glthread_cond_signal_func,
45865         glthread_cond_broadcast_func, glthread_cond_destroy_func):
45866         Reimplemented on the basis of gl_linked_waitqueue_t.
45867         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
45868         gl_waitqueue_t.
45869         (gl_rwlock_t): Update.
45870         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
45871
45872 2008-10-17  Simon Josefsson  <simon@josefsson.org>
45873
45874         * modules/recvfrom (Depends-on): Add dependency on getpeername.
45875         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45876
45877 2008-10-17  Jim Meyering  <meyering@redhat.com>
45878
45879         ignore-value: new module
45880         * modules/ignore-value: New file.
45881         * lib/ignore-value.h: New file.
45882         * MODULES.html.sh (Compiler warning management): New section,
45883         just for this module.  More to come.
45884
45885 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
45886
45887         open-safer.c: avoid 'signed and unsigned in conditional...' warning
45888         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
45889         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
45890
45891 2008-10-16  Jim Meyering  <meyering@redhat.com>
45892
45893         openat-die.c: avoid 'no previous prototype' warning
45894         * lib/openat-die.c: Include "openat.h".
45895         Reported by Reuben Thomas <rrt@sc3d.org>.
45896
45897 2008-10-16  Simon Josefsson  <simon@josefsson.org>
45898
45899         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
45900         * lib/netdb.in.h: Fix typo.
45901         Reported by Bruno Haible  <bruno@clisp.org>
45902
45903         * lib/netdb.in.h: Include sys/socket.h for platforms without
45904         netdb.h, to get structures like hostent on MinGW.
45905         * modules/netdb (Depends-on): Add sys_socket.
45906
45907 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45908
45909         * modules/netdb, modules/netdb-tests: New file.
45910         * m4/netdb_h.m4: New file.
45911         * lib/netdb.in.h: Add, currently just an empty file pending
45912         definitions.
45913         * tests/test-netdb.c: New file.
45914         * doc/posix-headers/netdb.texi: Mention that we replace it if
45915         needed.
45916         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45917         netdb.
45918
45919 2008-10-15  Simon Josefsson  <simon@josefsson.org>
45920
45921         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
45922         with code.
45923
45924 2008-10-13  Bruno Haible  <bruno@clisp.org>
45925
45926         * lib/glthread/cond.c (glthread_cond_wait_func,
45927         glthread_cond_timedwait_func): Add a comment.
45928
45929 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45930
45931         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
45932         * tests/test-select.c: Likewise,
45933
45934 2008-10-13  Bruno Haible  <bruno@clisp.org>
45935
45936         * lib/glthread/cond.c (glthread_cond_wait_func,
45937         glthread_cond_timedwait_func): Fix variable name.
45938         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
45939
45940 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
45941
45942         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
45943         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
45944         struct sockaddr.sa_len.
45945         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
45946
45947 2008-10-13  Simon Josefsson  <simon@josefsson.org>
45948
45949         * build-aux/pmccabe2html: Add css and css_url parameters.
45950
45951 2008-10-12  Bruno Haible  <bruno@clisp.org>
45952
45953         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
45954         calling aclx_get.
45955         Reported by Rainer Tammer <tammer@tammer.net>.
45956
45957 2008-10-12  Bruno Haible  <bruno@clisp.org>
45958
45959         Use msvcrt aware primitives for creation/termination of Win32 threads.
45960         * lib/glthread/thread.c: Include <process.h>.
45961         (glthread_create_func): Use _beginthreadex instead of CreateThread.
45962         (wrapper_func): Update signature.
45963         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
45964
45965 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45966             Bruno Haible  <bruno@clisp.org>
45967
45968         Provide a Win32 implementation of the 'cond' module.
45969         * lib/glthread/cond.h [USE_WIN32]: New implementation.
45970         * lib/glthread/cond.c (glthread_cond_init_func,
45971         glthread_cond_wait_func, glthread_cond_timedwait_func,
45972         glthread_cond_signal_func, glthread_cond_broadcast_func,
45973         glthread_cond_destroy_func) [USE_WIN32]: New functions.
45974         * modules/cond (Dependencies): Add gettimeofday.
45975
45976 2008-10-11  Bruno Haible  <bruno@clisp.org>
45977
45978         Make sleep work on older versions of mingw.
45979         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
45980         only whether it exists.
45981         * doc/posix-functions/sleep.texi: Mention the problem with older
45982         versions of mingw.
45983
45984 2008-10-11  Bruno Haible  <bruno@clisp.org>
45985
45986         New module 'shutdown'.
45987         * modules/shutdown: New file.
45988         * lib/sys_socket.in.h (shutdown): New declaration.
45989         * lib/winsock.c (shutdown): New function.
45990         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45991         GNULIB_SHUTDOWN.
45992         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
45993         * doc/posix-functions/shutdown.texi: Document the new module.
45994
45995 2008-10-11  Jim Meyering  <meyering@redhat.com>
45996
45997         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
45998
45999 2008-10-11  Bruno Haible  <bruno@clisp.org>
46000
46001         New module 'fclose'.
46002         * modules/fclose: New file.
46003         * lib/stdio.in.h (fclose): New declaration.
46004         * lib/fclose.c: New file.
46005         * m4/fclose.m4: New file.
46006         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
46007         REPLACE_FCLOSE.
46008         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
46009         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
46010         REPLACE_FCLOSE.
46011         * modules/close (Depends-on): fclose.
46012         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
46013
46014 2008-10-11  Bruno Haible  <bruno@clisp.org>
46015
46016         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
46017         set errno and don't call _close.
46018
46019 2008-10-10  Bruno Haible  <bruno@clisp.org>
46020
46021         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
46022         ACL, not afterwards. Fixes test failure on Cygwin.
46023
46024 2008-10-09  Ben Pfaff  <blp@gnu.org>
46025
46026         * build-aux/announce-gen: Fix gnulib version related part of usage
46027         message.  Die with a useful error message if no tarballs are
46028         found.
46029
46030 2008-10-10  Jim Meyering  <meyering@redhat.com>
46031
46032         bootstrap: use git's --depth=N option only if it's supported
46033         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
46034         recognize the --depth option.  Reported by Pádraig Brady.
46035
46036 2008-10-09  Bruno Haible  <bruno@clisp.org>
46037
46038         New module 'ioctl'.
46039         * modules/ioctl: New file.
46040         * lib/sys_socket.in.h (ioctl): Remove declaration.
46041         * lib/winsock.c: Include <sys/ioctl.h>.
46042         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
46043         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
46044         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
46045         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
46046         * doc/posix-functions/ioctl.texi: Mention the new module.
46047
46048 2008-10-09  Bruno Haible  <bruno@clisp.org>
46049
46050         New module 'sys_ioctl'.
46051         * lib/sys_ioctl.in.h: New file.
46052         * m4/sys_ioctl_h.m4: New file.
46053         * modules/sys_ioctl: New file.
46054         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
46055
46056 2008-10-09  Bruno Haible  <bruno@clisp.org>
46057
46058         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
46059         * lib/winsock.c: Include <stdarg.h>.
46060         (rpl_ioctl): Change to second argument 'int' and then varargs.
46061
46062 2008-10-09  Bruno Haible  <bruno@clisp.org>
46063
46064         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
46065         when the sys_socket module is present and the system has <winsock2.h>.
46066
46067 2008-10-09  Bruno Haible  <bruno@clisp.org>
46068
46069         * doc/posix-functions/close.texi: Mention module 'close' instead of
46070         module 'sys_socket'.
46071
46072 2008-10-09  Bruno Haible  <bruno@clisp.org>
46073
46074         * doc/glibc-headers/sys_ioctl.texi: New file.
46075         * doc/gnulib.texi: Include it.
46076
46077 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46078             Bruno Haible  <bruno@clisp.org>
46079
46080         Combine the two replacements of 'close'.
46081         * lib/sys_socket.in.h (close): Define to a reminder to include
46082         <unistd.h>.
46083         (_gl_close_fd_maybe_socket): New declaration.
46084         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
46085         * lib/winsock.c (close): Remove undefinition.
46086         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
46087         needed for the gnulib module 'close'.
46088         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
46089         define to an error symbol or to a warning, if suitable.
46090         * lib/close.c: Include <sys/socket.h>.
46091         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
46092         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
46093         UNISTD_H_HAVE_WINSOCK2_H.
46094         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
46095         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46096         UNISTD_H_HAVE_WINSOCK2_H.
46097         * modules/sys_socket (Files): Add m4/unistd_h.m4.
46098         (configure.ac): Set a module indicator.
46099         (Makefile.am): Substitute GNULIB_CLOSE.
46100         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
46101         * modules/poll-tests (Depends-on): Add close.
46102         * modules/select-tests (Depends-on): Likewise.
46103
46104 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46105             Bruno Haible  <bruno@clisp.org>
46106
46107         New module 'close'.
46108         * modules/close: New file.
46109         * lib/unistd.in.h (close): Move declaration out of the
46110         FCHDIR_REPLACEMENT scope.
46111         (_gl_unregister_fd): New declaration.
46112         * lib/close.c: New file.
46113         * lib/fchdir.c (rpl_close): Remove function.
46114         * m4/close.m4: New file.
46115         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
46116         close.
46117         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
46118         REPLACE_CLOSE.
46119         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
46120         REPLACE_CLOSE.
46121         * modules/fchdir (Depends-on): Add close.
46122
46123 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46124             Bruno Haible  <bruno@clisp.org>
46125
46126         * lib/fcntl.in.h (open): Simplify conditionals.
46127         (_gl_register_fd): New declaration.
46128         * lib/fchdir.c (rpl_open): Remove function.
46129         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
46130         also.
46131         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
46132         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
46133         open.
46134
46135 2008-10-09  Jim Meyering  <meyering@redhat.com>
46136
46137         GNUmakefile: use the more name-space-friendly "_version"
46138         * top/GNUmakefile (_dummy): Update.
46139         (_version): Rename from "version".
46140
46141 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46142             Bruno Haible  <bruno@clisp.org>
46143
46144         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
46145         rpl_close.
46146         (_gl_register_fd): New function, extracted from rpl_open.
46147         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
46148         (rpl_open, rpl_opendir): Use _gl_register_fd.
46149
46150 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46151
46152         Fix organization of 'open' replacement.
46153         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
46154         (gl_FUNC_OPEN): Use it.
46155         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
46156
46157 2008-10-08  Bruno Haible  <bruno@clisp.org>
46158
46159         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
46160
46161 2008-10-08  Simon Josefsson  <simon@josefsson.org>
46162
46163         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
46164         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
46165         listen).
46166
46167 2008-10-08  Eric Blake  <ebb9@byu.net>
46168
46169         GNUmakefile: add 'make version' target
46170         * top/GNUmakefile (_curr-ver): Split version update rules...
46171         (version): ...into a target.
46172
46173 2008-10-07  Bruno Haible  <bruno@clisp.org>
46174
46175         Use a more portable replacement expression for -0.0L.
46176         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
46177         instead of -0.0L. Fix m4 quotation.
46178
46179         * tests/test-signbit.c: Include <float.h>.
46180         (minus_zero): New variable.
46181         (test_signbitl): Use minus_zero instead of -zero.
46182         * modules/signbit-tests (Depends-on): Add float.
46183
46184         * tests/test-ceill.c: Include <float.h>.
46185         (zero): Remove variable.
46186         (minus_zero): New variable.
46187         (main): Use minus_zero instead of -zero.
46188         * modules/ceill-tests (Depends-on): Add float.
46189
46190         * tests/test-floorl.c: Include <float.h>.
46191         (zero): Remove variable.
46192         (minus_zero): New variable.
46193         (main): Use minus_zero instead of -zero.
46194         * modules/floorl-tests (Depends-on): Add float.
46195
46196         * tests/test-roundl.c: Include <float.h>.
46197         (zero): Remove variable.
46198         (minus_zero): New variable.
46199         (main): Use minus_zero instead of -zero.
46200         * modules/roundl-tests (Depends-on): Add float.
46201
46202         * tests/test-truncl.c: Include <float.h>.
46203         (zero): Remove variable.
46204         (minus_zero): New variable.
46205         (main): Use minus_zero instead of -zero.
46206         * modules/truncl-tests (Depends-on): Add float.
46207
46208         * tests/test-frexpl.c (zero): Remove variable.
46209         (minus_zero): New variable.
46210         (main): Use minus_zero instead of -zero.
46211         * modules/frexpl-tests (Depends-on): Add float.
46212
46213         * tests/test-isnan.c (zerol): Remove variable.
46214         (minus_zerol): New variable.
46215         (test_long_double): Use minus_zerol instead of -zerol.
46216         * modules/isnan-tests (Depends-on): Add float.
46217
46218         * tests/test-isnanl.h (zero): Remove variable.
46219         (minus_zero): New variable.
46220         (main): Use minus_zero instead of -zero.
46221         * modules/isnanl-nolibm-tests (Depends-on): Add float.
46222         * modules/isnanl-tests (Depends-on): Add float.
46223
46224         * tests/test-ldexpl.c (zero): Remove variable.
46225         (minus_zero): New variable.
46226         (main): Use minus_zero instead of -zero.
46227         * modules/ldexpl-tests (Depends-on): Add float.
46228
46229         * tests/test-snprintf-posix.h (zerol): Remove variable.
46230         (minus_zerol): New variable.
46231         (test_function): Use minus_zerol instead of -zerol.
46232         * modules/snprintf-posix-tests (Depends-on): Add float.
46233         * modules/vsnprintf-posix-tests (Depends-on): Add float.
46234
46235         * tests/test-sprintf-posix.h (zerol): Remove variable.
46236         (minus_zerol): New variable.
46237         (test_function): Use minus_zerol instead of -zerol.
46238         * modules/sprintf-posix-tests (Depends-on): Add float.
46239         * modules/vsprintf-posix-tests (Depends-on): Add float.
46240
46241         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
46242         (minus_zerol): New variable.
46243         (test_function): Use minus_zerol instead of -zerol.
46244         * modules/vasnprintf-posix-tests (Depends-on): Add float.
46245
46246         * tests/test-vasprintf-posix.c (zerol): Remove variable.
46247         (minus_zerol): New variable.
46248         (test_function): Use minus_zerol instead of -zerol.
46249         * modules/vasprintf-posix-tests (Depends-on): Add float.
46250
46251 2008-10-07  Simon Josefsson  <simon@josefsson.org>
46252
46253         * MODULES.html.sh (Support for building documentation): Mention
46254         pmccabe2html.  Sort entries.
46255
46256         Add pmccabe2html module, from gnupdf.
46257         * build-aux/pmccabe.css: New file.
46258         * build-aux/pmccabe2html: New file.
46259         * m4/pmccabe2html.m4: New file.
46260         * modules/pmccabe2html: New file.
46261
46262 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
46263
46264         flock: new module
46265         * MODULES.html.sh: Add to list of modules.
46266         * lib/flock.c: flock implementation for Windows and Unix systems
46267         which have fcntl.
46268         * doc/glibc-functions/flock.texi: Update documentation.
46269         * lib/sys_file.in.h: <sys/file.h> header file.
46270         * m4/flock.m4: M4 macros.
46271         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
46272         * modules/flock: flock module.
46273         * modules/flock-tests: flock tests module.
46274         * modules/sys_file: sys/file.h module.
46275         * tests/test-flock.c: test suite for flock.
46276
46277 2008-10-06  Jim Meyering  <meyering@redhat.com>
46278
46279         bootstrap: check for LT_INIT more portably still ;-)
46280         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
46281         Spotted by Bruno Haible.
46282
46283 2008-10-06  Eric Blake  <ebb9@byu.net>
46284
46285         test-signbit: avoid tripping Irix cc bug on -0.0L
46286         * tests/test-signbit.c (minus_zerol): Delete, and replace with
46287         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
46288         entire testsuite consistent and avoids an Irix 6.2 bug.
46289
46290 2008-10-05  Bruno Haible  <bruno@clisp.org>
46291             Jim Meyering  <jim@meyering.net>
46292
46293         Add an option for ignoring EPIPE during close_stdout.
46294         * lib/closeout.h: Include <stdbool.h>.
46295         (close_stdout_set_ignore_EPIPE): New declaration.
46296         * lib/closeout.c: Include <stdbool.h>.
46297         (ignore_EPIPE): New variable.
46298         (close_stdout_set_ignore_EPIPE): New function.
46299         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
46300         * lib/close-stream.c (close_stream): Mention the possible EPIPE
46301         failure.
46302         * modules/closeout (Depends-on): Add stdbool.
46303
46304 2008-10-05  Bruno Haible  <bruno@clisp.org>
46305
46306         * modules/accept: New file.
46307         * modules/bind: New file.
46308         * modules/connect: New file.
46309         * modules/getpeername: New file.
46310         * modules/getsockname: New file.
46311         * modules/getsockopt: New file.
46312         * modules/listen: New file.
46313         * modules/recv: New file.
46314         * modules/recvfrom: New file.
46315         * modules/send: New file.
46316         * modules/sendto: New file.
46317         * modules/setsockopt: New file.
46318         * modules/socket: New file.
46319         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
46320         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
46321         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
46322         the particular module is requested. Add a link warning when the
46323         particular module is not requested.
46324         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
46325         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
46326         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
46327         the particular module is requested.
46328         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
46329         gl_SYS_SOCKET_H_DEFAULTS): New macros.
46330         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
46331         * modules/sys_socket (Depends-on): Add link-warning.
46332         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
46333         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
46334         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
46335         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
46336         GL_LINK_WARNING.
46337         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
46338         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
46339         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
46340         * doc/posix-functions/getpeername.texi: Mention the new module
46341         'getpeername'.
46342         * doc/posix-functions/getsockname.texi: Mention the new module
46343         'getsockname'.
46344         * doc/posix-functions/getsockopt.texi: Mention the new module
46345         'getsockopt'.
46346         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
46347         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
46348         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
46349         * doc/posix-functions/send.texi: Mention the new module 'send'.
46350         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
46351         * doc/posix-functions/setsockopt.texi: Mention the new module
46352         'setsockopt'.
46353         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
46354         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
46355         listen, connect, accept.
46356         * modules/select-tests (Depends-on): Likewise.
46357
46358 2008-10-05  Bruno Haible  <bruno@clisp.org>
46359
46360         * lib/winsock.c (strerror): Remove unused #undef.
46361         (rpl_close): Remove unused local variable.
46362
46363         * modules/sys_socket (Depends-on); Add errno.
46364
46365 2008-10-05  Bruno Haible  <bruno@clisp.org>
46366
46367         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
46368         (select): Add a link warning when the 'select' module is not used.
46369         * modules/sys_select (Depends-on): Add link-warning.
46370         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
46371         Suggested by Paolo Bonzini.
46372
46373 2008-10-05  Jim Meyering  <meyering@redhat.com>
46374
46375         bootstrap: check for LT_INIT more portably
46376         * build-aux/bootstrap: Avoid using grep -E, since it's not
46377         portable enough.  Suggestion from Bruno Haible.
46378
46379 2008-10-05  Bruno Haible  <bruno@clisp.org>
46380
46381         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
46382         as being fixed by gnulib.
46383
46384 2008-10-05  Bruno Haible  <bruno@clisp.org>
46385
46386         * modules/select-tests: New file, mostly copied from
46387         modules/sys_select-tests.
46388         * tests/test-select.c: New file, mostly copied from
46389         tests/test-sys_select.c.
46390         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
46391         * modules/sys_select-tests (Depends-on): Remove all dependencies.
46392         (Makefile.am): Remove test_sys_select_LDADD.
46393
46394         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
46395         to an undefined symbol, for an error message.
46396         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
46397         (gl_SYS_SELECT_H_DEFAULTS): New macro.
46398         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
46399         winsock-select.c here.
46400         * modules/sys_select (Files): Remove lib/winsock-select.c.
46401         (Depends-on): Remove alloca.
46402         (Makefile.am): Substitute GNULIB_SELECT.
46403         * modules/select: New file.
46404         * doc/posix-functions/select.texi: Update.
46405
46406 2008-10-05  Bruno Haible  <bruno@clisp.org>
46407
46408         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
46409         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
46410         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
46411         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
46412         getdtablesize.
46413         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
46414         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
46415
46416 2008-10-05  Bruno Haible  <bruno@clisp.org>
46417
46418         * modules/getdtablesize-tests: New file.
46419         * tests/test-getdtablesize.c: New file.
46420
46421         New module 'getdtablesize'.
46422         * lib/unistd.in.h (getdtablesize): New declaration.
46423         * lib/getdtablesize.c: New file.
46424         * m4/getdtablesize.m4: New file.
46425         * modules/getdtablesize: New file.
46426         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46427         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
46428         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
46429         HAVE_GETDTABLESIZE.
46430         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
46431
46432 2008-10-05  Bruno Haible  <bruno@clisp.org>
46433
46434         * modules/sched (Makefile.am): Fix typo.
46435         Reported by Simon Josefsson.
46436
46437 2008-10-05  Jim Meyering  <meyering@redhat.com>
46438
46439         bootstrap: check for LT_INIT, too
46440         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
46441         are deprecated.  Suggestion from Ralf Wildenhues.
46442
46443 2008-10-05  Bruno Haible  <bruno@clisp.org>
46444
46445         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
46446         overriding them by ours.
46447         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
46448
46449 2008-10-05  Jim Meyering  <meyering@redhat.com>
46450
46451         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
46452         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
46453         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
46454
46455 2008-10-04  Bruno Haible  <bruno@clisp.org>
46456
46457         * modules/dup2 (License): Change to LGPLv2+.
46458         * modules/sleep (License): Likewise.
46459         * modules/perror (License): Likewise.
46460         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
46461         Blake.
46462         * modules/signal (License): Likewise.
46463         * modules/sigprocmask (License): Likewise.
46464         * modules/raise (License): Change to LGPLv2+, with approval by Jim
46465         Meyering.
46466
46467 2008-10-04  Bruno Haible  <bruno@clisp.org>
46468
46469         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
46470         Reported by Rainer Tammer <tammer@tammer.net>.
46471
46472 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
46473             Bruno Haible  <bruno@clisp.org>
46474
46475         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
46476         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
46477         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
46478
46479 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
46480
46481         filevercmp: new module
46482         * lib/filevercmp.h: New function filevercmp comparing version strings.
46483         * lib/filevercmp.c: Implementation of filevercmp function.
46484         * modules/filevercmp: Module metadata.
46485         * tests/test-filevercmp.c: Unit test for new module.
46486         * modules/filevercmp-tests: Unit test metadata.
46487         * MODULES.html.sh: Add filevercmp module.
46488
46489 2008-10-03  Bruno Haible  <bruno@clisp.org>
46490
46491         * lib/c-ctype.h: Add comment.
46492         Reported by Jim Meyering.
46493
46494 2008-10-02  Bruno Haible  <bruno@clisp.org>
46495
46496         * modules/posix_spawn-internal (Depends-on): Add 'open'.
46497
46498 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46499
46500         * build-aux/bootstrap: Allow renaming bootstrap, and change the
46501         name of bootstrap.conf accordingly.
46502
46503 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46504
46505         * build-aux/bootstrap: Install git-merge-changelog configuration
46506         items into .gitconfig if needed.
46507
46508 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
46509
46510         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
46511         git repository, and initialize/update it accordingly.
46512
46513 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
46514
46515         * modules/fsync-tests: New file.
46516         * tests/test-fsync.c: New file.
46517
46518         New module 'fsync'.
46519         * lib/fsync.c: New file.
46520         * m4/fsync.m4: New file.
46521         * modules/fsync: New file.
46522         * lib/unistd.in.h (fsync): New declaration.
46523         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
46524         GNULIB_FSYNC and HAVE_FSYNC.
46525         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
46526         * MODULES.html.sh (posix_functions): Add fsync.
46527         * doc/posix-functions/fsync.texi: Mention the new module.
46528
46529 2008-10-02  Jim Meyering  <meyering@redhat.com>
46530
46531         fts.c: sync with similar code from coreutils' remove.c
46532         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
46533         Guard also with "#if defined __linux__", since for now at least,
46534         this code is Linux-kernel-specific.
46535
46536 2008-10-02  Jim Meyering  <meyering@redhat.com>
46537
46538         fts: bug fixes
46539         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
46540         Include <sys/vfs.h>, not <sys/statfs.h>.
46541
46542         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
46543         Include <sys/vfs.h>, not <sys/statfs.h>.
46544
46545 2008-10-01  Bruno Haible  <bruno@clisp.org>
46546
46547         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
46548         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
46549         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
46550         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
46551         * doc/posix-functions/posix_spawnp.texi: Likewise.
46552         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
46553         whether posix_spawn actually works.
46554         * m4/pipe.m4 (gl_PIPE): Likewise.
46555         * modules/execute (Files): Add m4/posix_spawn.m4.
46556         * modules/pipe (Files): Add m4/posix_spawn.m4.
46557         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
46558
46559 2008-10-01  Jim Meyering  <meyering@redhat.com>
46560
46561         remove trailing spaces
46562         * NEWS: Likewise.
46563         * lib/poll.c (poll): Likewise.
46564         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
46565         * lib/winsock.c (rpl_close): Likewise.
46566         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
46567         * modules/yield: Likewise.
46568         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
46569         * tests/test-sys_select.c (connect_to_socket): Likewise.
46570
46571         fts.c: adjust a new interface to be more generally useful
46572         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
46573         (fts_build): Adjust caller.
46574
46575 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46576
46577         * modules/cond-tests: New file.
46578         * tests/test-cond.c: New file.
46579
46580 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46581             Bruno Haible  <bruno@clisp.org>
46582
46583         * modules/cond (Dependencies): Add errno, time.
46584         * lib/glthread/cond.h: Include <time.h>.
46585         (gl_cond_define, gl_cond_define_initialized): Use the same definition
46586         across platforms.
46587
46588 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46589             Bruno Haible  <bruno@clisp.org>
46590
46591         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
46592
46593 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46594             Bruno Haible  <bruno@clisp.org>
46595
46596         * modules/tls-tests (Depends-on): Add thread, yield.
46597         (configure.ac): Remove all checks.
46598         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
46599         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46600         gl_thread_self): Remove definitions. Include glthread/thread.h and
46601         glthread/yield.h instead.
46602         (test_tls): Pass an additional NULL argument to gl_thread_join.
46603
46604 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46605             Bruno Haible  <bruno@clisp.org>
46606
46607         * modules/lock-tests (Depends-on): Add thread, yield.
46608         (configure.ac): Remove all checks.
46609         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
46610         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
46611         gl_thread_self): Remove definitions. Include glthread/thread.h and
46612         glthread/yield.h instead.
46613         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
46614         additional NULL argument to gl_thread_join.
46615
46616 2008-09-30  Bruno Haible  <bruno@clisp.org>
46617
46618         Fix the Win32 implementation of the 'thread' module.
46619         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
46620         pointer type.
46621         (gl_thread_self): Invoke gl_thread_self_func.
46622         (gl_thread_self_func): New declaration.
46623         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
46624         (do_init_self_key, init_self_key): New functions.
46625         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
46626         Remove some fields.
46627         (running_threads, running_lock): Remove variables.
46628         (get_current_thread_handle): New function.
46629         (gl_thread_self_func, wrapper_func, glthread_create_func,
46630         glthread_join_func, gl_thread_exit_func): Largely rewritten and
46631         simplified.
46632
46633 2008-09-30  Bruno Haible  <bruno@clisp.org>
46634
46635         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
46636         files.
46637
46638 2008-09-30  Jim Meyering  <meyering@redhat.com>
46639
46640         fts.m4: correct the test for statfs.f_type
46641         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
46642         when checking for statfs.f_type.
46643
46644 2008-09-15  Simon Josefsson  <simon@josefsson.org>
46645
46646         tests: avoid some compiler warnings
46647         * tests/test-memchr.c (main): Pass NULL indirectly.
46648         * tests/test-getdate.c (main): Remove unused variable 'ret'.
46649
46650 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
46651
46652         getdate.y: disallow countable dayshifts like "4 yesterday ago"
46653         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
46654         exactly specified dayshifts.
46655         (dayshift): New rule.
46656         (rel): Add dayshift.
46657         (relative_time_table) [tomorrow, yesterday, today, now]:
46658         Use tDAY_SHIFT in place of tDAY_UNIT.
46659         * tests/test-getdate.c: Add tests for now-disallowed countable
46660         dayshifts, e.g., "4 yesterday ago".
46661
46662 2008-09-29  Bruno Haible  <bruno@clisp.org>
46663
46664         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
46665         * tests/test-posix_spawn1.in.sh: Renamed from
46666         tests/test-posix_spawn.in.sh.
46667         * tests/test-posix_spawn2.c: New file.
46668         * tests/test-posix_spawn2.in.sh: New file.
46669         * modules/posix_spawnp-tests (Files): Update.
46670         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
46671
46672 2008-09-29  Bruno Haible  <bruno@clisp.org>
46673
46674         Propagate effects of putenv/setenv/unsetenv to child processes.
46675         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
46676         * lib/pipe.c (create_pipe): Likewise.
46677
46678 2008-09-29  Bruno Haible  <bruno@clisp.org>
46679
46680         Enable use of shell scripts as executables in mingw.
46681         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
46682         run the program as a shell script.
46683         * lib/pipe.c (create_pipe): Likewise.
46684         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
46685         resulting array.
46686
46687 2008-09-29  Eric Blake  <ebb9@byu.net>
46688
46689         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
46690
46691 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
46692
46693         * doc/posix-functions/accept.texi: Update mingw problems.
46694         * doc/posix-functions/bind.texi: Update mingw problems.
46695         * doc/posix-functions/close.texi: Update mingw problems.
46696         * doc/posix-functions/connect.texi: Update mingw problems.
46697         * doc/posix-functions/getpeername.texi: Update mingw problems.
46698         * doc/posix-functions/getsockname.texi: Update mingw problems.
46699         * doc/posix-functions/getsockopt.texi: Update mingw problems.
46700         * doc/posix-functions/ioctl.texi: Update mingw problems.
46701         * doc/posix-functions/listen.texi: Update mingw problems.
46702         * doc/posix-functions/recv.texi: Update mingw problems.
46703         * doc/posix-functions/recvfrom.texi: Update mingw problems.
46704         * doc/posix-functions/select.texi: Update mingw problems.
46705         * doc/posix-functions/send.texi: Update mingw problems.
46706         * doc/posix-functions/sendto.texi: Update mingw problems.
46707         * doc/posix-functions/setsockopt.texi: Update mingw problems.
46708         * doc/posix-functions/socket.texi: Update mingw problems.
46709
46710 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
46711             Bruno Haible  <bruno@clisp.org>
46712
46713         * lib/sys_select.in.h: Include sys/time.h.
46714         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
46715         * modules/sys_select: Depend on sys_time.
46716         * tests/test-sys_select.c: Test that sys/select.h defines struct
46717         timeval fully.
46718
46719 2008-09-29  Bruno Haible  <bruno@clisp.org>
46720
46721         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
46722         * lib/sys_select.in.h: Likewise.
46723
46724 2008-09-29  Bruno Haible  <bruno@clisp.org>
46725
46726         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
46727
46728 2008-09-29  Bruno Haible  <bruno@clisp.org>
46729
46730         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
46731         Set LIBSOCKET instead of augmenting LIBS.
46732         * modules/sockets (Link): New section.
46733         * modules/sockets-tests (test_sockets_LDADD): New variable.
46734         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
46735         * modules/poll-tests (test_poll_LDADD): New variable.
46736         * NEWS: Document the change.
46737
46738 2008-09-29  Bruno Haible  <bruno@clisp.org>
46739
46740         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
46741         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
46742         ARPA_INET_H directly.
46743         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46744
46745 2008-09-28  Bruno Haible  <bruno@clisp.org>
46746
46747         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
46748         from gl_HEADER_SYS_SOCKET.
46749         (gl_HEADER_SYS_SOCKET): Invoke it.
46750         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46751
46752 2008-09-28  Bruno Haible  <bruno@clisp.org>
46753
46754         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
46755         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
46756         Needed on OSF/1 4.0.
46757
46758 2008-09-28  Bruno Haible  <bruno@clisp.org>
46759
46760         Override open more carefully.
46761         * lib/open.c (orig_open): New function.
46762         (rpl_open): Use orig_open instead of open.
46763         * lib/fcntl.in.h: Add special invocation convention.
46764         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
46765         (gl_FUNC_OPEN): Invoke it.
46766
46767         Override freopen more carefully.
46768         * lib/freopen.c (orig_freopen): New function.
46769         (rpl_freopen): Use orig_freopen instead of freopen.
46770         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
46771         (gl_FUNC_FREOPEN): Invoke it.
46772
46773         Override fopen more carefully.
46774         * lib/fopen.c (orig_fopen): New function.
46775         (rpl_fopen): Use orig_fopen instead of fopen.
46776         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
46777         (gl_FUNC_FOPEN): Invoke it.
46778         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
46779
46780 2008-09-28  Bruno Haible  <bruno@clisp.org>
46781
46782         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
46783         SIGPIPE.
46784
46785 2008-09-28  Bruno Haible  <bruno@clisp.org>
46786
46787         * tests/test-sigaction.c (handler, main): Disable the check whether
46788         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
46789         glibc systems with LinuxThreads.
46790
46791 2008-09-28  Bruno Haible  <bruno@clisp.org>
46792
46793         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
46794
46795         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
46796         with AIX xlc.
46797         * lib/fcntl.in.h (open): Likewise.
46798         Reported by Rainer Tammer <tammer@tammer.net>.
46799
46800 2008-09-28  Bruno Haible  <bruno@clisp.org>
46801
46802         * modules/posix_spawnp-tests: New file.
46803         * tests/test-posix_spawn.c: New file.
46804         * tests/test-posix_spawn.in.sh: New file.
46805
46806         New module 'posix_spawnp'.
46807         * modules/posix_spawnp: New file.
46808         * lib/spawnp.c: New file, from GNU libc with modifications.
46809         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
46810
46811         New module 'posix_spawn'.
46812         * modules/posix_spawn: New file.
46813         * lib/spawn.c: New file, from GNU libc with modifications.
46814         * doc/posix-functions/posix_spawn.texi: Mention the new module.
46815
46816         New module 'posix_spawnattr_destroy'.
46817         * modules/posix_spawnattr_destroy: New file.
46818         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
46819         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
46820         module.
46821
46822         New module 'posix_spawnattr_setsigmask'.
46823         * modules/posix_spawnattr_setsigmask: New file.
46824         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
46825         modifications.
46826         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
46827         new module.
46828
46829         New module 'posix_spawnattr_getsigmask'.
46830         * modules/posix_spawnattr_getsigmask: New file.
46831         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
46832         modifications.
46833         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
46834         new module.
46835
46836         New module 'posix_spawnattr_setsigdefault'.
46837         * modules/posix_spawnattr_setsigdefault: New file.
46838         * lib/spawnattr_setdefault.c: New file, from GNU libc with
46839         modifications.
46840         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
46841         new module.
46842
46843         New module 'posix_spawnattr_getsigdefault'.
46844         * modules/posix_spawnattr_getsigdefault: New file.
46845         * lib/spawnattr_getdefault.c: New file, from GNU libc with
46846         modifications.
46847         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
46848         new module.
46849
46850         New module 'posix_spawnattr_setschedpolicy'.
46851         * modules/posix_spawnattr_setschedpolicy: New file.
46852         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
46853         modifications.
46854         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
46855         new module.
46856
46857         New module 'posix_spawnattr_getschedpolicy'.
46858         * modules/posix_spawnattr_getschedpolicy: New file.
46859         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
46860         modifications.
46861         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
46862         new module.
46863
46864         New module 'posix_spawnattr_setschedparam'.
46865         * modules/posix_spawnattr_setschedparam: New file.
46866         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
46867         modifications.
46868         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
46869         new module.
46870
46871         New module 'posix_spawnattr_getschedparam'.
46872         * modules/posix_spawnattr_getschedparam: New file.
46873         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
46874         modifications.
46875         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
46876         new module.
46877
46878         New module 'posix_spawnattr_setpgroup'.
46879         * modules/posix_spawnattr_setpgroup: New file.
46880         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
46881         modifications.
46882         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
46883         module.
46884
46885         New module 'posix_spawnattr_getpgroup'.
46886         * modules/posix_spawnattr_getpgroup: New file.
46887         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
46888         modifications.
46889         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
46890         module.
46891
46892         New module 'posix_spawnattr_setflags'.
46893         * modules/posix_spawnattr_setflags: New file.
46894         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
46895         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
46896         module.
46897
46898         New module 'posix_spawnattr_getflags'.
46899         * modules/posix_spawnattr_getflags: New file.
46900         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
46901         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
46902         module.
46903
46904         New module 'posix_spawnattr_init'.
46905         * modules/posix_spawnattr_init: New file.
46906         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
46907         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
46908         module.
46909
46910         New module 'posix_spawn_file_actions_destroy'.
46911         * modules/posix_spawn_file_actions_destroy: New file.
46912         * lib/spawn_faction_destroy.c: New file, from GNU libc with
46913         modifications.
46914         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
46915         the new module.
46916
46917         New module 'posix_spawn_file_actions_addopen'.
46918         * modules/posix_spawn_file_actions_addopen: New file.
46919         * lib/spawn_faction_addopen.c: New file, from GNU libc with
46920         modifications.
46921         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
46922         the new module.
46923
46924         New module 'posix_spawn_file_actions_adddup2'.
46925         * modules/posix_spawn_file_actions_adddup2: New file.
46926         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
46927         modifications.
46928         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
46929         the new module.
46930
46931         New module 'posix_spawn_file_actions_addclose'.
46932         * modules/posix_spawn_file_actions_addclose: New file.
46933         * lib/spawn_faction_addclose.c: New file, from GNU libc with
46934         modifications.
46935         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
46936         the new module.
46937
46938         New module 'posix_spawn_file_actions_init'.
46939         * modules/posix_spawn_file_actions_init: New file.
46940         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
46941         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
46942         new module.
46943
46944         New module 'posix_spawn-internal'.
46945         * modules/posix_spawn-internal: New file.
46946         * lib/spawn_int.h: New file, from GNU libc with modifications.
46947         * lib/spawni.c: New file, from GNU libc with modifications.
46948         * m4/posix_spawn.m4: New file.
46949
46950         New module 'spawn'.
46951         * modules/spawn: New file.
46952         * lib/spawn.in.h: New file, from GNU libc with modifications.
46953         * m4/spawn_h.m4: New file.
46954         * doc/posix-headers/spawn.texi: Mention the new module.
46955
46956 2008-09-28  Bruno Haible  <bruno@clisp.org>
46957
46958         * modules/sched-tests: New file.
46959         * tests/test-sched.c: New file.
46960
46961         New module 'sched'.
46962         * modules/sched: New file.
46963         * lib/sched.in.h: New file.
46964         * m4/sched_h.m4: New file.
46965         * doc/posix-headers/sched.texi: Mention the new module.
46966
46967 2008-09-27  Eric Blake  <ebb9@byu.net>
46968
46969         Fix previous patch, and tweak references to $0.
46970         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
46971         (func_version, func_gnulib_dir): Don't call this program
46972         gnulib-tool.
46973         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
46974         with using $0 in function.
46975         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
46976         (func_fatal_error): Reuse the name the user invoked us with.
46977
46978 2008-09-27  Bruno Haible  <bruno@clisp.org>
46979
46980         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
46981         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
46982         (gl_ICONV_H): Not here.
46983         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
46984         instead of assigning ICONV_H directly.
46985
46986         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
46987         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
46988         WCHAR_H directly.
46989
46990 2008-09-27  Bruno Haible  <bruno@clisp.org>
46991
46992         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
46993         * modules/arpa_inet (Depends-on): Add link-warning.
46994         (Makefile.am): Insert the definition of GL_LINK-WARNING.
46995         * modules/unistd (Makefile.am): Likewise.
46996
46997 2008-09-26  Bruno Haible  <bruno@clisp.org>
46998
46999         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
47000         variables.
47001         (func_version): Essentially copied from gnulib-tool.
47002         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
47003         func_readlink): Copied from gnulib-tool.
47004
47005 2008-09-26  Bruno Haible  <bruno@clisp.org>
47006
47007         * gnulib-tool (func_version): Change directory to $gnulib_dir before
47008         invoking git-version-gen.
47009
47010 2008-09-26  Bruno Haible  <bruno@clisp.org>
47011
47012         * posix-modules: Update to directory names changed on 2008-01-19.
47013         Remove commas in output before splitting into words. No more need to
47014         avoid 'ftruncate' since 2007-02-19.
47015
47016 2008-09-26  Bruno Haible  <bruno@clisp.org>
47017
47018         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
47019
47020 2008-09-26  Bruno Haible  <bruno@clisp.org>
47021
47022         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
47023         * modules/fwriteerror (Depends-on): Add errno.
47024
47025 2008-09-26  Bruno Haible  <bruno@clisp.org>
47026
47027         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
47028         * tests/test-vc-list-files-cvs.sh: Likewise.
47029
47030 2008-09-26  Bruno Haible  <bruno@clisp.org>
47031
47032         * doc/posix-headers/sys_resource.texi: Reorder items.
47033
47034 2008-09-26  Jim Meyering  <meyering@redhat.com>
47035
47036         fts: tweak inode comparison function
47037         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
47038         inode numbers, as documented.
47039
47040         fts: sort dirent entries on inode number before traversing
47041         This avoids a quadratic, seek-related performance penalty when
47042         operating on a directory containing many entries (measurable at 10k;
47043         3.5 hours at 2 million entries with a cold cache) on certain types
47044         of file systems, including ext3 and ext4, but not tmpfs.
47045         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
47046         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
47047         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
47048         (fs_handles_readdir_ordered_dirents_efficiently): New function.
47049         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
47050         (fts_build): Set the stat.st_ino member from D_INO.
47051         If it is likely to be useful, sort dirent entries on inode number.
47052
47053         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
47054         and the struct statfs.f_type member.
47055         * modules/fts (Depends-on): Add d-ino.
47056
47057 2008-09-26  Bruno Haible  <bruno@clisp.org>
47058
47059         * modules/sigpipe-die (Depends-on): Add sigpipe.
47060
47061         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
47062         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
47063         and GNULIB_STDIO_H_SIGPIPE are set.
47064         * lib/stdio-write.c: New file.
47065         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
47066         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47067         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47068         REPLACE_STDIO_WRITE_FUNCS.
47069         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
47070         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47071         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47072         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
47073         * modules/stdio (Files): Add lib/stdio-write.c.
47074         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
47075         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47076         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47077         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
47078         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
47079         REPLACE_FPRINTF_POSIX.
47080         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
47081         REPLACE_PRINTF_POSIX.
47082         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
47083         REPLACE_VFPRINTF_POSIX.
47084         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
47085         REPLACE_VPRINTF_POSIX.
47086         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
47087         SIGPIPE issue.
47088         * doc/posix-functions/fputc.texi: Likewise.
47089         * doc/posix-functions/fputs.texi: Likewise.
47090         * doc/posix-functions/fwrite.texi: Likewise.
47091         * doc/posix-functions/printf.texi: Likewise.
47092         * doc/posix-functions/putc.texi: Likewise.
47093         * doc/posix-functions/putchar.texi: Likewise.
47094         * doc/posix-functions/puts.texi: Likewise.
47095         * doc/posix-functions/vfprintf.texi: Likewise.
47096         * doc/posix-functions/vprintf.texi: Likewise.
47097
47098         * modules/safe-write (Depends-on): Add write.
47099
47100         * modules/sigpipe-tests: New file.
47101         * tests/test-sigpipe.c: New file.
47102         * tests/test-sigpipe.sh: New file.
47103
47104         * modules/write: New file.
47105         * lib/unistd.in.h: Include <sys/types.h>.
47106         (write): New declaration.
47107         * lib/write.c: New file.
47108         * m4/write.m4: New file.
47109         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47110         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
47111         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
47112         GNULIB_WRITE, REPLACE_WRITE.
47113         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
47114         and the SIGPIPE issue.
47115
47116         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
47117         (raise): New declaration.
47118         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
47119         (ext_signal): New function.
47120         (rpl_raise): New function.
47121         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
47122         GNULIB_SIGNAL_H_SIGPIPE.
47123         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
47124         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
47125
47126         * modules/sigpipe: New file.
47127         * m4/sigpipe.m4: New file.
47128
47129 2008-09-25  Derek Price  <derek@ximbiot.com>
47130             Bruno Haible  <bruno@clisp.org>
47131
47132         * gnulib-tool (func_import): Report all license incompatibilities, not
47133         just the first one.
47134
47135 2008-09-25  Bruno Haible  <bruno@clisp.org>
47136
47137         * gnulib-tool (func_import): When computing the edits, consider not
47138         only the Makefile.ams that exist but also those that will be generated.
47139
47140 2008-09-25  Simon Josefsson  <simon@josefsson.org>
47141
47142         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
47143         fixes gnulib-tool --test warning about duplicate dependency.
47144
47145 2008-09-25  Bruno Haible  <bruno@clisp.org>
47146
47147         * gnulib-tool: Don't ask the user to perform edits in the generated
47148         Makefile.ams.
47149         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
47150         apply to the Makefile.am being generated.
47151         (func_emit_tests_Makefile_am): Execute edits that apply to the
47152         Makefile.am being generated.
47153         (func_import): Setup list of Makefile.am edits before emitting the
47154         Makefile.ams, not at the end.
47155         (func_create_testdir): Update.
47156         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47157
47158 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47159
47160         * gnulib-tool (func_import): Store the --tests-base option in the
47161         comment in gnulib-cache.m4.
47162
47163 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
47164
47165         * NEWS: Document increased portability that sys_select now provides.
47166
47167         * lib/sys_select.in.h: Install select wrapper.
47168         * lib/sys_socket.in.h: Use more descriptive name when there is no
47169         select wrapper.
47170         * lib/winsock-select.c: New.
47171         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
47172         Require gl_HEADER_SYS_SOCKET.
47173         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
47174         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
47175         * tests/test-sys_select.c: Add functional tests.
47176
47177 2008-09-24  Eric Blake  <ebb9@byu.net>
47178
47179         open, fopen: close fd leak in last patch
47180         * lib/open.c (rpl_open): Close fd before returning error.
47181         * lib/fopen.c (rpl_fopen): Close fd before returning error.
47182         * doc/posix-functions/open.texi (open): Document that Irix also
47183         has the bug.
47184         * doc/posix-functions/fopen.texi (fopen): Likewise.
47185         Reported by Paolo Bonzini.
47186
47187 2008-09-24  Bruno Haible  <bruno@clisp.org>
47188
47189         Ensure that a filename ending in a slash cannot be used to access a
47190         non-directory.
47191         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
47192         to check whether it's really a directory.
47193         * lib/fopen.c: Include fcntl.h, unistd.h.
47194         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
47195         and fdopen().
47196         * modules/fopen (Depends-on): Add unistd.
47197         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
47198         * tests/test-fopen.c (main): Likewise.
47199         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
47200         * doc/posix-functions/fopen.texi: Likewise.
47201         Reported by Eric Blake.
47202
47203 2008-09-23  Eric Blake  <ebb9@byu.net>
47204
47205         c-stack: avoid compiler optimizations when provoking overflow
47206         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
47207         recursion harder to optimize, to ensure a stack overflow occurs.
47208         * tests/test-c-stack.c (recurse): Likewise.
47209         Borrowed from libsigsegv.
47210
47211         c-stack: work around Irix sigaltstack bug
47212         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
47213         whether sigaltstack uses wrong end of stack_t (copied in part from
47214         libsigsegv).
47215         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
47216         Irix bug, without requiring an over-allocation.
47217         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
47218         bug.
47219
47220         fopen: document mingw bug on directories
47221         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
47222         not allowing a stream visiting a directory, even though reading
47223         from such a stream is not portable.
47224
47225 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47226
47227         * lib/poll.c: Rewrite.
47228         * modules/poll: Depend on alloca.
47229
47230 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47231
47232         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
47233         instead define prototypes for a full set of wrappers.  Ensure
47234         that Cygwin does not use the compatibility code, which is only
47235         for MinGW.
47236         * lib/winsock.c: New.
47237         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
47238         * modules/sys_socket: Add lib/winsock.c.
47239
47240         * modules/poll-tests: Add errno and perror.
47241         * tests/test-poll.c: Use ioctl, not ioctlsocket.
47242
47243 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
47244
47245         * tests/test-poll.c: Downgrade minimum needed Winsock version.
47246
47247 2008-09-23  Bruno Haible  <bruno@clisp.org>
47248
47249         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
47250         * doc/glibc-functions/*: Likewise.
47251
47252 2008-09-23  Simon Josefsson  <simon@josefsson.org>
47253
47254         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
47255         success.
47256
47257 2008-09-22  Eric Blake  <ebb9@byu.net>
47258             Bruno Haible  <bruno@clisp.org>
47259
47260         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
47261         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
47262         supply %A but mishandle pseudo-NaN.
47263         Reported by Simon Josefsson.
47264
47265 2008-09-21  Bruno Haible  <bruno@clisp.org>
47266
47267         * tests/test-lock.c (main): Tweak skip message.
47268         * tests/test-tls.c (main): Likewise.
47269
47270 2008-09-21  Bruno Haible  <bruno@clisp.org>
47271
47272         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
47273         whether 'struct sigaction' has sa_sigaction here...
47274         (gl_PREREQ_SIG_HANDLER_H): ... not here.
47275         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
47276
47277 2008-09-21  Bruno Haible  <bruno@clisp.org>
47278
47279         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
47280         section.
47281         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
47282         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
47283         the new section.
47284         (Support for obsolete systems lacking POSIX:2001): New section.
47285         (String handling <string.h>): Move strdup to the new section.
47286         Suggested by Simon Josefsson and Paolo Bonzini.
47287
47288 2008-09-21  Bruno Haible  <bruno@clisp.org>
47289
47290         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
47291         exponents in %e and %g results on 'long double'. Needed for mingw's
47292         improved *printf functions.
47293         * tests/test-vasprintf-posix.c (test_function): Likewise.
47294         * tests/test-snprintf-posix.h (test_function): Likewise.
47295         * tests/test-sprintf-posix.h (test_function): Likewise.
47296         Reported by Eric Blake.
47297
47298 2008-09-21  Bruno Haible  <bruno@clisp.org>
47299
47300         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
47301         * tests/test-sprintf-posix.h (test_function): Likewise.
47302
47303 2008-09-21  Bruno Haible  <bruno@clisp.org>
47304
47305         * modules/getpass (Depends-on): Add strdup-posix.
47306
47307         New module 'strdup-posix'.
47308         * modules/strdup-posix: New file.
47309         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
47310         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
47311         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
47312         REPLACE_STRDUP.
47313         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
47314         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
47315         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47316         strdup-posix.
47317
47318         * modules/strdup (Depends-on): Remove malloc-posix.
47319
47320 2008-09-20  Bruno Haible  <bruno@clisp.org>
47321
47322         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
47323         Wildenhues.
47324
47325 2008-09-20  Bruno Haible  <bruno@clisp.org>
47326
47327         Ensure that wint_t gets defined on IRIX 5.3.
47328         * lib/wchar.in.h (wint_t): Define if not defined by the system.
47329         * lib/wctype.in.h (wint_t): Likewise.
47330         (__wctype_wint_t): Remove type.
47331         (isw*): Use wint_t instead of __wctype_wint_t.
47332         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
47333         * modules/wchar (Files): Add m4/wint_t.m4.
47334         (Makefile.am): Substitute HAVE_WINT_T.
47335         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
47336         * tests/test-wctype.c: Check that wint_t is defined.
47337         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
47338         * doc/posix-headers/wctype.texi: Likewise.
47339         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47340
47341 2008-09-18  Bruno Haible  <bruno@clisp.org>
47342
47343         * gnulib-tool (func_exit): Update comment.
47344
47345 2008-09-18  Simon Josefsson  <simon@josefsson.org>
47346
47347         * modules/getaddrinfo (Depends-on): Remove strdup, this module
47348         assumes strdup exists and does not depend on strdup to return
47349         ENOMEM on out of memory conditions.
47350
47351 2008-09-18  Bruno Haible  <bruno@clisp.org>
47352
47353         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
47354         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
47355         digits for the exponent.
47356
47357 2008-09-18  Jim Meyering  <meyering@redhat.com>
47358             Bruno Haible  <bruno@clisp.org>
47359
47360         * lib/vasnprintf.c (decimal_point_char): Define also if
47361         NEED_PRINTF_INFINITE_LONG_DOUBLE.
47362
47363 2008-09-16  Bruno Haible  <bruno@clisp.org>
47364         and Eric Blake  <ebb9@byu.net>
47365
47366         vasnprintf: support Irix 5.3
47367         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
47368         that mishandle long double infinity.
47369         Reported by Tom G. Christensen.
47370
47371 2008-09-16  Bruno Haible  <bruno@clisp.org>
47372
47373         * doc/glibc-functions/scandir.texi: Mention the function is missing on
47374         Solaris 9.
47375         * doc/glibc-functions/alphasort.texi: Likewise.
47376         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
47377
47378 2008-09-16  Jim Meyering  <meyering@redhat.com>
47379
47380         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
47381         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
47382         a umask modification leak out of a subshell.  Otherwise, the
47383         opensolaris /bin/sh would be accepted and thus cause unwarranted
47384         failures in the coreutils test suite.
47385
47386 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
47387
47388         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
47389         to succeed.
47390
47391 2008-09-16  Jim Meyering  <meyering@redhat.com>
47392
47393         avoid spurious test failure when library is built without ACL support
47394         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
47395         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
47396         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
47397         * tests/test-copy-acl.sh: Likewise.
47398
47399 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47400
47401         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
47402         based on character occurrence counts.
47403
47404 2008-09-15  Eric Blake  <ebb9@byu.net>
47405
47406         tests: avoid some compiler warnings
47407         * tests/test-memchr.c (main): Pass NULL indirectly.
47408         * tests/test-closein.c (main): Avoid unused variable.
47409
47410 2008-09-15  Bruno Haible  <bruno@clisp.org>
47411
47412         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
47413         are missing on OpenBSD 4.0 individually.
47414         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47415
47416 2008-09-15  Bruno Haible  <bruno@clisp.org>
47417
47418         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
47419         * doc/posix-functions/strerror.texi: Mention also Cygwin.
47420         * doc/posix-functions/perror.texi: Likewise.
47421         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
47422         is missing.
47423         Reported by Eric Blake.
47424
47425         * lib/errno.in.h: Use replacement values >= 2000.
47426         Reported by Eric Blake.
47427
47428 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47429
47430         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
47431         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
47432         limit.
47433         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
47434         compareseq was aborted.
47435
47436 2008-09-14  Bruno Haible  <bruno@clisp.org>
47437
47438         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
47439         yvec_edit_count.
47440         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
47441         (fstrcmp_bounded): Simplify result computation accordingly.
47442
47443 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47444
47445         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
47446         (fstrcmp): Define in terms of fstrcmp_bounded.
47447         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
47448         lower_bound argument.
47449         Return quickly if the result is certainly < lower_bound.
47450         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
47451
47452 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47453
47454         * lib/diffseq.h (EARLY_ABORT): New macro.
47455         (compareseq): Change return type to bool. Return true when EARLY_ABORT
47456         evaluates to true.
47457
47458 2008-09-14  Bruno Haible  <bruno@clisp.org>
47459
47460         * modules/perror-tests: New file.
47461         * tests/test-perror.sh: New file.
47462         * tests/test-perror.c: New file.
47463
47464         New module 'perror'.
47465         * lib/stdio.in.h (perror): New declaration.
47466         * lib/perror.c: New file.
47467         * m4/perror.m4: New file.
47468         * modules/perror: New file.
47469         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
47470         * doc/posix-functions/perror.texi: Mention the perror module.
47471         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
47472         REPLACE_PERROR.
47473         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
47474         REPLACE_PERROR.
47475
47476 2008-09-14  Bruno Haible  <bruno@clisp.org>
47477
47478         * modules/stdio (Makefile.am): Reorder to match the order in
47479         lib/stdio.in.h.
47480         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47481
47482 2008-09-13  Bruno Haible  <bruno@clisp.org>
47483
47484         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
47485
47486 2008-09-13  Bruno Haible  <bruno@clisp.org>
47487
47488         Extend strerror to cover the added errno values.
47489         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
47490         (rpl_strerror): Provide error messages for the added errno values and
47491         for the WSA* values.
47492         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
47493         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
47494         strerror.
47495         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
47496         * modules/strerror (Depends-on): Add errno.
47497         * doc/posix-functions/strerror.texi: Document the change.
47498         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
47499         and EOVERFLOW.
47500
47501 2008-09-13  Bruno Haible  <bruno@clisp.org>
47502
47503         * modules/EOVERFLOW: Remove file.
47504         * m4/eoverflow.m4: Remove file.
47505         * modules/EOVERFLOW-tests: Remove file.
47506         * tests/test-EOVERFLOW.c: Remove file.
47507         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
47508         * modules/ftell (Depends-on): Likewise.
47509         * modules/getdelim (Depends-on): Likewise.
47510         * modules/getugroups (Depends-on): Likewise.
47511         * modules/poll (Depends-on): Likewise.
47512         * modules/snprintf (Depends-on): Likewise.
47513         * modules/sprintf-posix (Depends-on): Likewise.
47514         * modules/vasnprintf (Depends-on): Likewise.
47515         * modules/vasprintf (Depends-on): Likewise.
47516         * modules/vfprintf-posix (Depends-on): Likewise.
47517         * modules/vsnprintf (Depends-on): Likewise.
47518         * modules/vsprintf-posix (Depends-on): Likewise.
47519         * modules/xvasprintf (Depends-on): Likewise.
47520         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47521         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
47522         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
47523         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
47524         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47525         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
47526         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
47527         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
47528         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47529         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
47530         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
47531         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
47532         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47533         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
47534         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
47535         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
47536         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47537         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
47538         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
47539         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
47540         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47541         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
47542         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
47543         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
47544         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
47545         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47546         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
47547         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
47548         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
47549         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
47550         * MODULES.html.sh: Remove EOVERFLOW.
47551         * NEWS: Mention the change.
47552
47553 2008-09-13  Bruno Haible  <bruno@clisp.org>
47554
47555         * modules/errno-tests: New file.
47556         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
47557
47558         * lib/errno.in.h: New file.
47559         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
47560         * modules/errno: New file.
47561         * doc/posix-headers/errno.texi: Update documentation.
47562         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
47563
47564 2008-09-13  Bruno Haible  <bruno@clisp.org>
47565
47566         * tests/test-poll.c: Use #if for native Windows, rather than testing
47567         __MSVCRT__.
47568
47569 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47570             Bruno Haible  <bruno@clisp.org>
47571
47572         * lib/glob.c: Don't include <pwd.h> on native Windows.
47573         (WINDOWS32): New macro.
47574         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
47575
47576 2008-09-13  Bruno Haible  <bruno@clisp.org>
47577
47578         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
47579         (ETIMEDOUT): Remove macro.
47580         (glthread_cond_timedwait_multithreaded): New declaration.
47581         (glthread_cond_timedwait): Use it.
47582         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
47583         (glthread_cond_timedwait_multithreaded): New function.
47584
47585 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47586
47587         * modules/poll-tests: Do not check for io.h.
47588         * tests/test-poll.c: Check for __MSVCRT__ instead.
47589
47590 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47591
47592         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
47593         * modules/poll-tests: Add inet_pton, stdbool, sockets.
47594         * tests/test-poll.c: Use them.  Use _pipe on Windows.
47595
47596 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
47597
47598         * modules/poll-tests: New.
47599         * tests/test-poll.c: New.
47600
47601 2008-09-12  Eric Blake  <ebb9@byu.net>
47602
47603         frexp: test for NetBSD failure on -0.0
47604         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
47605         not all, bugs from NetBSD 3.0 have been fixed.
47606         * doc/posix-functions/frexp.texi (frexp): Document bug.
47607         Reported by Thomas Klausner.
47608
47609         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
47610         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
47611         literal -0.0.
47612         Reported by Jonathan C. Patschke <jp@centtech.com>.
47613
47614 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47615
47616         * lib/glthread/cond.h: Use dummy implementation also if
47617         USE_WIN32_THREADS.
47618
47619 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47620
47621         * modules/fnmatch-posix (License): Change to LGPLv2+.
47622         * modules/fnmatch-gnu (License): Likewise.
47623
47624 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47625
47626         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
47627
47628 2008-09-11  Jim Meyering  <meyering@redhat.com>
47629
47630         * users.txt: Add gtk-vnc.
47631
47632 2008-09-08  Simon Josefsson  <simon@josefsson.org>
47633
47634         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
47635         rotate amounts.
47636
47637         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
47638         required for 16-bit and 8-bit rotates.
47639         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
47640         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
47641         UINT8_MAX instead of hard-coded constants.
47642         Suggested by Paul Eggert.
47643
47644 2008-09-07  Bruno Haible  <bruno@clisp.org>
47645
47646         * tests/test-striconveh.c (main): Check behaviour when converting from
47647         UTF-7.
47648
47649         Make striconveh work better with stateful encodings.
47650         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
47651         that iconv does not increment the inptr when returning -1/EINVAL.
47652
47653 2008-09-07  Bruno Haible  <bruno@clisp.org>
47654
47655         * build-aux/config.rpath: Update according to libtool-2.2.6.
47656         * build-aux/config.libpath: Likewise.
47657
47658 2008-09-06  Bruno Haible  <bruno@clisp.org>
47659
47660         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
47661         * lib/freadptr.c (freadptr): Likewise.
47662         * lib/freadseek.c (freadptrinc): Likewise.
47663         Reported by Simon Josefsson.
47664
47665 2008-09-06  Bruno Haible  <bruno@clisp.org>
47666
47667         * modules/freadptr (License): Change to LGPLv2+.
47668         * modules/freadseek (License): Likewise.
47669         Suggested by Eric Blake.
47670
47671         * modules/memchr2 (License): Change to LGPLv2+.
47672         Approved by Eric Blake.
47673
47674 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47675             Bruno Haible  <bruno@clisp.org>
47676
47677         Make gnulib-tool work with native 'sed' on AIX.
47678         * gnulib-tool (sed_noop): New variable.
47679         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
47680         func_add_or_update, func_create_testdir): Use it to initialize sed
47681         script variables.
47682         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47683
47684 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
47685             Bruno Haible  <bruno@clisp.org>
47686
47687         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
47688         also works after #include directives.
47689
47690 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
47691
47692         getdate.y: reject an out-of-range timezone value
47693         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
47694         the range [-24...+24].  When specified with only one or two digits,
47695         * tests/test-getdate.c: Tests for the fix.
47696         * doc/getdate.texi: Document this change.
47697
47698 2008-09-03  Bruno Haible  <bruno@clisp.org>
47699
47700         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
47701
47702 2008-09-02  Simon Josefsson  <simon@josefsson.org>
47703
47704         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
47705         <bruce.korb@gmail.com> with ideas from Ben Pfaff
47706         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
47707         Blake <ebb9@byu.net>.
47708
47709         * tests/test-bitrotate.c: Add more test vectors.
47710
47711 2008-09-02  Eric Blake  <ebb9@byu.net>
47712
47713         vasnprintf-posix: handle large precision via %.*d
47714         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
47715         when handling it ourselves.
47716         * tests/test-vasnprintf-posix.c (test_function): Add test.
47717         * tests/test-snprintf-posix.h (test_function): Likewise.
47718         * tests/test-sprintf-posix.h (test_function): Likewise.
47719         * tests/test-vasprintf-posix.c (test_function): Likewise.
47720         Reported by Alain Guibert.
47721
47722 2008-09-01  Eric Blake  <ebb9@byu.net>
47723
47724         c-stack: make configure-time check more robust
47725         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
47726         successful sigaction call.
47727         Reported by Tom G. Christensen.
47728
47729 2008-09-01  Bruno Haible  <bruno@clisp.org>
47730
47731         New module 'findprog-lgpl'.
47732         * modules/findprog-lgpl: New file.
47733         * lib/findprog-lgpl.c: New file.
47734         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
47735         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
47736         to decide whether to use strdup or xstrdup, concatenated_filename or
47737         xconcatenated_filename.
47738
47739 2008-09-01  Bruno Haible  <bruno@clisp.org>
47740
47741         Split module 'concat-filename' into 'concat-filename' (LGPL) and
47742         'xconcat-filename' (GPL).
47743         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
47744         (License): Change to LGPLv2+.
47745         * modules/xconcat-filename: New file.
47746         * lib/concat-filename.h (concatenated_filename): Change specification.
47747         (xconcatenated_filename): New declaration.
47748         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
47749         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
47750         memory situations.
47751         * lib/xconcat-filename.c: New file.
47752         * NEWS: Mention the change.
47753         * lib/findprog.c: Include concat-filename.h, not filename.h.
47754         (find_in_path): Use xconcatenated_filename instead of
47755         concatenated_filename.
47756         * lib/javacomp.c: Include concat-filename.h, not filename.h.
47757         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
47758         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
47759         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
47760         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
47761         instead of concatenated_filename.
47762         * lib/javaexec.c: Include concat-filename.h, not filename.h.
47763         (execute_java_class): Use xconcatenated_filename instead of
47764         concatenated_filename.
47765         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
47766         * modules/javacomp (Depends-on): Likewise.
47767         * modules/javaexec (Depends-on): Likewise.
47768
47769 2008-09-01  Bruno Haible  <bruno@clisp.org>
47770
47771         Split module 'filename' into 'filename' and 'concat-filename'.
47772         * modules/filename: Keep only lib/filename.h.
47773         (License): Change to LGPLv2+.
47774         * modules/concat-filename: New file, extracted from modules/filename.
47775         * lib/filename.h (concatenated_filename): Remove declaration.
47776         * lib/concat-filename.h: New file, extracted from lib/filename.h.
47777         * lib/concat-filename.c: Include concat-filename.h.
47778         * NEWS: Mention the change.
47779
47780 2008-09-01  Simon Josefsson  <simon@josefsson.org>
47781
47782         * lib/bitrotate.h (rotl8, rotr8): Add.
47783
47784         * modules/bitrotate (configure.ac): Need
47785         AC_REQUIRE([AC_C_INLINE]).
47786         (Description): Mention stdint.h.  Reported by Bruno Haible
47787         <bruno@clisp.org>.
47788
47789         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
47790         Paolo Bonzini <bonzini@gnu.org>.
47791
47792 2008-08-31  Bruno Haible  <bruno@clisp.org>
47793
47794         Assume Solaris specific bi-arch conventions on Solaris systems.
47795         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
47796         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
47797         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
47798         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
47799         like acl_libdirstem.
47800         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
47801         acl_libdirstem.
47802         * NEWS: Mention the change.
47803         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
47804
47805 2008-08-31  Jim Meyering  <meyering@redhat.com>
47806
47807         * lib/strftime.h: Add comments describing the two added arguments.
47808
47809         remove duplicate #include directives
47810         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
47811         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
47812
47813 2008-08-31  Bruno Haible  <bruno@clisp.org>
47814
47815         New module 'sigpipe-die'.
47816         * modules/sigpipe-die: New file.
47817         * lib/sigpipe-die.h: New file.
47818         * lib/sigpipe-die.c: New file.
47819         * MODULES.html.sh (Signal handling): Add sigpipe-die.
47820
47821 2008-08-31  Bruno Haible  <bruno@clisp.org>
47822
47823         Don't override previously installed signal handlers.
47824         * lib/fatal-signal.c (saved_sigactions): New variable.
47825         (uninstall_handlers): Reset the signal to the saved handler, not
47826         to SIG_DFL (except when ignored).
47827         (install_handlers): Save the previous handlers.
47828
47829 2008-08-30  Bruno Haible  <bruno@clisp.org>
47830
47831         * gnulib-tool (func_reset_sigpipe): New function.
47832         (func_get_automake_snippet, func_modules_transitive_closure,
47833         func_import): Invoke it before a join command that reads from stdin,
47834         to avoid "echo: write error: Broken pipe" error messages on stderr.
47835         Reported by Sam Steingold <sds@gnu.org>.
47836
47837 2008-08-30  Bruno Haible  <bruno@clisp.org>
47838
47839         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
47840         Code copied from m4/open.m4.
47841         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
47842         access and the filename ends in a slash. Code copied from lib/open.c.
47843         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
47844         * tests/test-fopen.c (main): Check against bug with trailing slash.
47845
47846 2008-08-29  Bruno Haible  <bruno@clisp.org>
47847
47848         Avoid some "gcc -pedantic" warnings.
47849         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
47850         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
47851         * lib/dirent.in.h: Likewise.
47852         * lib/fcntl.in.h: Likewise.
47853         * lib/float.in.h: Likewise.
47854         * lib/iconv.in.h: Likewise.
47855         * lib/inttypes.in.h: Likewise.
47856         * lib/locale.in.h: Likewise.
47857         * lib/math.in.h: Likewise.
47858         * lib/netinet_in.in.h: Likewise.
47859         * lib/search.in.h: Likewise.
47860         * lib/signal.in.h: Likewise.
47861         * lib/stdarg.in.h: Likewise.
47862         * lib/stdint.in.h: Likewise.
47863         * lib/stdio.in.h: Likewise.
47864         * lib/stdlib.in.h: Likewise.
47865         * lib/string.in.h: Likewise.
47866         * lib/strings.in.h: Likewise.
47867         * lib/sys_select.in.h: Likewise.
47868         * lib/sys_socket.in.h: Likewise.
47869         * lib/sys_stat.in.h: Likewise.
47870         * lib/sys_time.in.h: Likewise.
47871         * lib/sysexits.in.h: Likewise.
47872         * lib/time.in.h: Likewise.
47873         * lib/unistd.in.h: Likewise.
47874         * lib/wchar.in.h: Likewise.
47875         * lib/wctype.in.h: Likewise.
47876         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
47877         * modules/fchdir (Makefile.am): Likewise.
47878         * modules/fcntl (Makefile.am): Likewise.
47879         * modules/float (Makefile.am): Likewise.
47880         * modules/iconv_open (Makefile.am): Likewise.
47881         * modules/inttypes (Makefile.am): Likewise.
47882         * modules/locale (Makefile.am): Likewise.
47883         * modules/math (Makefile.am): Likewise.
47884         * modules/netinet_in (Makefile.am): Likewise.
47885         * modules/search (Makefile.am): Likewise.
47886         * modules/signal (Makefile.am): Likewise.
47887         * modules/stdarg (Makefile.am): Likewise.
47888         * modules/stdint (Makefile.am): Likewise.
47889         * modules/stdio (Makefile.am): Likewise.
47890         * modules/stdlib (Makefile.am): Likewise.
47891         * modules/string (Makefile.am): Likewise.
47892         * modules/strings (Makefile.am): Likewise.
47893         * modules/sys_select (Makefile.am): Likewise.
47894         * modules/sys_socket (Makefile.am): Likewise.
47895         * modules/sys_stat (Makefile.am): Likewise.
47896         * modules/sys_time (Makefile.am): Likewise.
47897         * modules/sysexits (Makefile.am): Likewise.
47898         * modules/time (Makefile.am): Likewise.
47899         * modules/unistd (Makefile.am): Likewise.
47900         * modules/wchar (Makefile.am): Likewise.
47901         * modules/wctype (Makefile.am): Likewise.
47902         Reported by Reuben Thomas <rrt@sc3d.org>.
47903
47904 2008-08-29  Bruno Haible  <bruno@clisp.org>
47905
47906         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
47907         any more.
47908
47909 2008-08-29  Simon Josefsson  <simon@josefsson.org>
47910
47911         * MODULES.html.sh (Misc): Add bitrotate.
47912
47913         * modules/bitrotate: New file.
47914
47915         * lib/bitrotate.h: New file.
47916
47917         * modules/bitrotate-tests: New file.
47918
47919         * tests/test-bitrotate.c: New file.
47920
47921         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
47922         on the bitrotate module.
47923
47924         * lib/arctwo.c: Use new bitrotate module.
47925
47926 2008-08-29  Jim Meyering  <meyering@redhat.com>
47927
47928         bootstrap: merge changes from coreutils
47929         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
47930         of copied files.  Remove a kludge, now that this is fixed.
47931         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
47932         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
47933         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
47934
47935 2008-08-29  Bruno Haible  <bruno@clisp.org>
47936
47937         * MODULES.html.sh: Remove --cvs-urls option.
47938
47939 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
47940
47941         maint.mk: adjust to file name change
47942         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
47943
47944 2008-08-28  Jim Meyering  <meyering@redhat.com>
47945
47946         * modules/getndelim2 (License): Relicense to LGPLv2+.
47947         Approved by Richard Stallman for the version of 1995, and by
47948         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
47949
47950 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
47951
47952         * lib/getdelim.c (flockfile, funlockfile): Make all of them
47953         dummy if one is not available.  Do not touch them if
47954         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
47955         (getc_maybe_unlocked): New.
47956         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
47957
47958 2008-08-26  Eric Blake  <ebb9@byu.net>
47959
47960         doc/INSTALL: resync from autoconf
47961         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
47962         (INSTALL_PRELUDE): Delete; this is done more efficiently by
47963         moving...
47964         * install.texi [!autoconf]: ...here.  Resync from autoconf.
47965         * INSTALL: Regenerate.
47966         * INSTALL.ISO: New file.
47967         * INSTALL.UTF-8: Likewise.
47968
47969 2008-08-26  Jim Meyering  <meyering@redhat.com>
47970
47971         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
47972         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
47973         these definitions conditional, so that they may be overridden, too.
47974
47975 2008-08-26  Bruno Haible  <bruno@clisp.org>
47976
47977         Generate INSTALL file variants with prettier quotes.
47978         * doc/Makefile (INSTALL_PRELUDE): New macro.
47979         (INSTALL): Use it.
47980         (INSTALL.ISO, INSTALL.UTF-8): New rules.
47981
47982 2008-08-26  Bruno Haible  <bruno@clisp.org>
47983
47984         Run makeinfo in an English locale.
47985         * doc/Makefile (MAKEINFO): New variable.
47986
47987 2008-08-26  Bruno Haible  <bruno@clisp.org>
47988
47989         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
47990         Suggested by Eric Blake.
47991
47992 2008-08-25  Bruno Haible  <bruno@clisp.org>
47993
47994         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
47995
47996 2008-08-25  Eric Blake  <ebb9@byu.net>
47997
47998         c-stack: test that stack overflow can be caught
47999         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
48000         that platform allows handling stack overflow; at least OS/2 EMX
48001         has sigaltstack, but crashes before transferring control to
48002         handler on stack overflow.
48003         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
48004         check for HAVE_STACK_OVERFLOW_HANDLING.
48005         Reported by Elbert Pol.
48006
48007 2008-08-25  Bruno Haible  <bruno@clisp.org>
48008
48009         * doc/posix-functions/strftime.texi: Fix description of strftime
48010         module.
48011
48012 2008-08-24  Bruno Haible  <bruno@clisp.org>
48013
48014         * tests/uniwidth/test-uc_width2.c: New file.
48015         * tests/uniwidth/test-uc_width2.sh: New file.
48016         * modules/uniwidth/width-tests (Files): Add the new files.
48017         (TESTS): Add uniwidth/test-uc_width2.sh.
48018         (TESTS_ENVIRONMENT): New variable.
48019         (check_PROGRAMS): Add test-uc_width2.
48020         (test_uc_width2_SOURCES): New variable.
48021
48022         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
48023         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
48024         not 0x00AB.
48025         Reported by Alexander V. Lukyanov <lav@netis.ru>.
48026
48027 2008-08-22  Eric Blake  <ebb9@byu.net>
48028
48029         test-lock, test-tls: mention why a test is skipped
48030         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
48031         skipped.
48032         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
48033
48034         count-one-bits: relax license
48035         * modules/count-one-bits (License): Relicense to LGPLv2+.
48036         Suggested by Ludovic Courtès, approved by Ben Pfaff.
48037
48038 2008-08-22  Andreas Schwab  <schwab@suse.de>
48039
48040         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
48041         Remove spurious space in assignment.
48042
48043 2008-08-21  Simon Josefsson  <simon@josefsson.org>
48044
48045         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
48046         Paul Eggert <eggert@CS.UCLA.EDU>.
48047
48048 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
48049
48050         * modules/gettext: Add m4/threadlib.m4.
48051
48052 2008-08-19  Eric Blake  <ebb9@byu.net>
48053
48054         test-c-stack: fix compilation failure on FreeBSD 5.0
48055         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
48056         headers before <sys/resource.h>.
48057         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
48058         the bug.
48059         Reported by Nelson H. F. Beebe.
48060
48061         strverscmp: migrate from "strverscmp.h" to <string.h>
48062         * modules/string (Makefile.am): Add new hooks.
48063         * modules/strverscmp (Files): Remove strverscmp.h.
48064         (Depends-on): Add string.
48065         (configure.ac): Add indicator.
48066         (Include): Mention new header.
48067         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
48068         defaults.
48069         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
48070         results.
48071         * lib/strverscmp.h: Delete.
48072         * lib/string.in.h (strverscmp): Provide declaration, when needed.
48073         * tests/test-strverscmp.c (includes): Adjust client.
48074         * lib/check-version.c (includes): Likewise.
48075         * NEWS: Document the change.
48076
48077         strverscmp: add unit test
48078         * modules/strverscmp-tests: New file.
48079         * tests/test-strverscmp.c: Likewise.
48080
48081 2008-08-19  Simon Josefsson  <simon@josefsson.org>
48082
48083         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
48084         regarding Windows crypto stuff, from Mono.
48085
48086 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
48087
48088         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
48089         if present, for intel RND.  Return error on failures.
48090
48091 2008-08-18  Ben Pfaff  <blp@gnu.org>
48092
48093         gitlog-to-changelog: give better diagnostic for failed pipe-open
48094         * build-aux/gitlog-to-changelog: Improve error message: suggest
48095         that the version of Git may be too old.
48096
48097 2008-08-18  Simon Josefsson  <simon@josefsson.org>
48098
48099         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
48100         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
48101
48102 2008-08-18  Bruno Haible  <bruno@clisp.org>
48103
48104         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
48105         pthread_in_use().
48106
48107 2008-08-18  Bruno Haible  <bruno@clisp.org>
48108
48109         * lib/glthread/threadlib.c: Include <pthread.h>.
48110
48111 2008-08-18  Bruno Haible  <bruno@clisp.org>
48112
48113         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
48114         glthread_recursive_lock_* macros.
48115         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
48116         Fix syntax error.
48117
48118 2008-08-18  Bruno Haible  <bruno@clisp.org>
48119
48120         * lib/glthread/thread.c: Avoid forcing a context switch right after
48121         thread creation.
48122
48123 2008-08-17  Bruno Haible  <bruno@clisp.org>
48124
48125         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
48126         * lib/glthread/thread.h: Provide Win32 specific implementation.
48127         * modules/thread (Files): Add lib/glthread/thread.c.
48128         (Depends-on): Add lock.
48129         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
48130
48131 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48132
48133         New module 'yield'.
48134         * modules/yield: New file.
48135         * lib/glthread/yield.h: New file.
48136         * m4/yield.m4: New file.
48137         * MODULES.html.sh (Multithreading): Add yield.
48138
48139 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48140
48141         New module 'thread'.
48142         * modules/thread: New file.
48143         * lib/glthread/thread.h: New file.
48144         * m4/thread.m4: New file.
48145         * MODULES.html.sh (Multithreading): Add thread.
48146
48147 2008-08-17  Bruno Haible  <bruno@clisp.org>
48148
48149         * lib/glthread/lock.h: Include <stdlib.h> always.
48150         * lib/glthread/tls.h: Likewise.
48151         * lib/glthread/cond.h: Likewise.
48152
48153 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48154
48155         New module 'cond'.
48156         * modules/cond: New file.
48157         * lib/glthread/cond.h: New file.
48158         * lib/glthread/cond.c: New file.
48159         * m4/cond.m4: New file.
48160         * MODULES.html.sh (Multithreading): Add cond.
48161
48162 2008-08-16  Eric Blake  <ebb9@byu.net>
48163
48164         c-stack: fix regression on Irix 5.3 from 2008-06-21
48165         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
48166         sa_sigaction...
48167         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
48168         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
48169         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
48170         * modules/signal (Makefile.am): Use the value.
48171         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
48172         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
48173         * doc/posix-headers/signal.texi (signal.h): Document this
48174         portability issue.
48175         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
48176         Reported by Tom G. Christensen.
48177
48178 2008-08-17  Bruno Haible  <bruno@clisp.org>
48179
48180         New module 'threadlib'.
48181         * modules/threadlib: New file.
48182         * lib/glthread/threadlib.c: New file, extracted from
48183         lib/glthread/lock.c.
48184         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
48185         functions.
48186         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
48187         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
48188         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
48189         macros.
48190         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
48191         (gl_DISABLE_THREADS): Remove macro.
48192         * modules/lock (Files): Remove build-aux/config.rpath.
48193         (Depends-on): Remove havelib. Add threadlib.
48194         (configure.ac-early): Remove section.
48195         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
48196         * modules/tls (Depends-on): Remove lock. Add threadlib.
48197         (Link): New section, copied from threadlib.
48198         * MODULES.html.sh (Multithreading): Add threadlib.
48199
48200 2008-08-14  Bruno Haible  <bruno@clisp.org>
48201
48202         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
48203         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
48204         glthread_rwlock_unlock, glthread_rwlock_destroy,
48205         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
48206         glthread_recursive_lock_destroy): Define as macros always.
48207         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
48208         glthread_lock_lock.
48209         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
48210         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
48211         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
48212         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
48213         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
48214         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
48215         (glthread_recursive_lock_lock_func): Renamed from
48216         glthread_recursive_lock_lock.
48217         (glthread_recursive_lock_unlock_func): Renamed from
48218         glthread_recursive_lock_unlock.
48219         (glthread_recursive_lock_destroy_func): Renamed from
48220         glthread_recursive_lock_destroy.
48221
48222 2008-08-14  Bruno Haible  <bruno@clisp.org>
48223
48224         * lib/glthread/lock.h: Renamed from lib/lock.h.
48225         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
48226         * lib/glthread/tls.h: Renamed from lib/tls.h.
48227         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
48228         * lib/fstrcmp.c: Update includes.
48229         * lib/strsignal.c: Update includes.
48230         * modules/lock (Files, Makefile.am): Update.
48231         (Include): Change to "glthread/lock.h".
48232         * modules/tls (Files, Makefile.am): Update.
48233         (Include): Change to "glthread/tls.h".
48234         * tests/test-lock.c: Update includes.
48235         * tests/test-tls.c: Update includes.
48236         * NEWS: Mention the renamed header files.
48237
48238 2008-08-11  Jim Meyering  <meyering@redhat.com>
48239
48240         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
48241
48242 2008-08-11  Eric Blake  <ebb9@byu.net>
48243
48244         test-c-stack: avoid C99-ism
48245         * tests/test-c-stack.c (main): Fix whitespace, move declaration
48246         before statement.
48247         Reported by Alain Guibert.
48248
48249 2008-08-10  Jim Meyering  <meyering@redhat.com>
48250
48251         ensure that return value of uinttostr et al are not ignored
48252         * lib/inttostr.h (__GNUC_PREREQ): Define.
48253         (__attribute_warn_unused_result__): Define.
48254         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
48255
48256 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
48257
48258         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
48259         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
48260
48261 2008-08-07  Jim Meyering  <meyering@redhat.com>
48262
48263         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
48264
48265         * modules/mkstemp (License): Relicense under LGPLv2+.
48266         * modules/tempname (License): Likewise.
48267
48268 2008-08-06  Bruno Haible  <bruno@clisp.org>
48269
48270         * lib/poll.c (poll): Further micro-optimization.
48271
48272 2008-08-06  Jim Meyering  <meyering@redhat.com>
48273
48274         inet_pton.c: use locale-independent tolower
48275         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
48276         (inet_pton6): Use c_tolower rather than tolower.
48277         * modules/inet_pton (Depends-on): Add c-ctype.
48278
48279 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
48280
48281         * lib/poll.c (poll): Avoid division when timeout is 0, cache
48282         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
48283
48284 2008-08-06  Jim Meyering  <meyering@redhat.com>
48285
48286         * modules/inet_pton (License): Relicense under LGPLv2+.
48287
48288 2008-08-03  Bruno Haible  <bruno@clisp.org>
48289
48290         Additional non-aborting API for lock and tls.
48291         * lib/lock.h: Include <errno.h>.
48292         (glthread_lock_init): New macro/function.
48293         (gl_lock_init): Define as wrapper around glthread_lock_init.
48294         (glthread_lock_lock): New macro/function.
48295         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
48296         (glthread_lock_unlock): New macro/function.
48297         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
48298         (glthread_lock_destroy): New macro/function.
48299         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
48300         (glthread_rwlock_init): New macro/function.
48301         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
48302         (glthread_rwlock_rdlock): New macro/function.
48303         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
48304         (glthread_rwlock_wrlock): New macro/function.
48305         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
48306         (glthread_rwlock_unlock): New macro/function.
48307         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
48308         (glthread_rwlock_destroy): New macro/function.
48309         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
48310         (glthread_recursive_lock_init): New macro/function.
48311         (gl_recursive_lock_init): Define as wrapper around
48312         glthread_recursive_lock_init.
48313         (glthread_recursive_lock_lock): New macro/function.
48314         (gl_recursive_lock_lock): Define as wrapper around
48315         glthread_recursive_lock_lock.
48316         (glthread_recursive_lock_unlock): New macro/function.
48317         (gl_recursive_lock_unlock): Define as wrapper around
48318         glthread_recursive_lock_unlock.
48319         (glthread_recursive_lock_destroy): New macro/function.
48320         (gl_recursive_lock_destroy): Define as wrapper around
48321         glthread_recursive_lock_destroy.
48322         (glthread_once): New macro/function.
48323         (gl_once): Define as wrapper around glthread_once.
48324         Update function declarations.
48325         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
48326         glthread_rwlock_init. Return error code.
48327         (glthread_rwlock_rdlock_multithreaded): Renamed from
48328         glthread_rwlock_rdlock. Return error code.
48329         (glthread_rwlock_wrlock_multithreaded): Renamed from
48330         glthread_rwlock_wrlock. Return error code.
48331         (glthread_rwlock_unlock_multithreaded): Renamed from
48332         glthread_rwlock_unlock. Return error code.
48333         (glthread_rwlock_destroy_multithreaded): Renamed from
48334         glthread_rwlock_destroy. Return error code.
48335         (glthread_recursive_lock_init_multithreaded): Renamed from
48336         glthread_recursive_lock_init. Return error code.
48337         (glthread_recursive_lock_lock_multithreaded): Renamed from
48338         glthread_recursive_lock_lock. Return error code.
48339         (glthread_recursive_lock_unlock_multithreaded): Renamed from
48340         glthread_recursive_lock_unlock. Return error code.
48341         (glthread_recursive_lock_destroy_multithreaded): Renamed from
48342         glthread_recursive_lock_destroy. Return error code.
48343         (glthread_once_call): Make static.
48344         (glthread_once_multithreaded): Renamed from glthread_once.
48345         * lib/tls.h: Include <errno.h>.
48346         (glthread_tls_key_init): New macro/function.
48347         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
48348         (glthread_tls_set): New macro/function.
48349         (gl_tls_set): Define as wrapper around glthread_tls_set.
48350         (glthread_tls_key_destroy): New macro/function.
48351         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
48352         Update function declarations.
48353         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
48354         glthread_tls_get.
48355         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
48356
48357 2008-08-04  Eric Blake  <ebb9@byu.net>
48358
48359         gnumakefile: use space, not TAB, outside of targets
48360         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
48361
48362 2008-08-02  Jim Meyering  <meyering@redhat.com>
48363
48364         getdate.y: avoid locale-dependent date parsing failure
48365         In Turkish locales, getdate would fail to recognize keywords
48366         containing a lowercase "i".  The solution is not to rely on
48367         locale-sensitive case-conversion.
48368         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
48369         (lookup_word): Use c_toupper in place of toupper.
48370         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
48371         Reported by Vefa Bicakci <bicave@superonline.com> in
48372         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
48373         * modules/getdate (Depends-on): Add c-ctype.
48374
48375 2008-08-02  Bruno Haible  <bruno@clisp.org>
48376
48377         * gnulib-tool (func_import): When updating or creating a .gitignore
48378         file, prepend each added line with a slash, and ignore leading slashes
48379         from the existing lines.
48380         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
48381
48382 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48383
48384         Portability fix for GNU make 3.79.1.
48385         * top/GNUmakefile: Avoid 'else COND', which older GNU make
48386         versions do not understand.
48387
48388 2008-08-01  Bruno Haible  <bruno@clisp.org>
48389
48390         Work around bug of HP-UX 10.20 cc with -0.0 literal.
48391         * tests/test-isnanf.h (zero): New variable.
48392         (main): Avoid literal -0.0f.
48393         * tests/test-isnand.h (zero): New variable.
48394         (main): Avoid literal -0.0.
48395         * tests/test-isnanl.h (zero): New variable.
48396         (main): Avoid literal -0.0L.
48397         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
48398         (test_float, test_double, test_long_double): Avoid literals -0.0f,
48399         -0.0, -0.0L.
48400         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
48401         (test_signbitd): Avoid literal -0.0.
48402         (test_signbitl): Avoid literal -0.0L.
48403         * tests/test-ceilf1.c (zero): New variable.
48404         (main): Avoid literal -0.0f.
48405         * tests/test-ceill.c (zero): New variable.
48406         (main): Avoid literal -0.0L.
48407         * tests/test-floorf1.c (zero): New variable.
48408         (main): Avoid literal -0.0f.
48409         * tests/test-floorl.c (zero): New variable.
48410         (main): Avoid literal -0.0L.
48411         * tests/test-roundf1.c (zero): New variable.
48412         (main): Avoid literal -0.0f.
48413         * tests/test-round1.c (zero): New variable.
48414         (main): Avoid literal -0.0.
48415         * tests/test-roundl.c (zero): New variable.
48416         (main): Avoid literal -0.0L.
48417         * tests/test-truncf1.c (zero): New variable.
48418         (main): Avoid literal -0.0f.
48419         * tests/test-trunc1.c (zero): New variable.
48420         (main): Avoid literal -0.0.
48421         * tests/test-truncl.c (zero): New variable.
48422         (main): Avoid literal -0.0L.
48423         * tests/test-frexp.c (zero): New variable.
48424         (main): Avoid literal -0.0.
48425         * tests/test-frexpl.c (zero): New variable.
48426         (main): Avoid literal -0.0L.
48427         * tests/test-ldexpl.c (zero): New variable.
48428         (main): Avoid literal -0.0L.
48429         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48430         (zerod, zerol): New variables.
48431         (test_function): Avoid literals -0.0, -0.0L.
48432         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
48433         (zerod, zerol): New variables.
48434         (test_function): Avoid literals -0.0, -0.0L.
48435         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48436         (zerod, zerol): New variables.
48437         (test_function): Avoid literals -0.0, -0.0L.
48438         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
48439         (zerod, zerol): New variables.
48440         (test_function): Avoid literals -0.0, -0.0L.
48441         * tests/test-strtod.c (zero): New variable.
48442         (main): Avoid literal -0.0.
48443         Reported by Jonathan C. Patschke <jp@centtech.com>.
48444
48445 2008-07-31  Jim Meyering  <meyering@redhat.com>
48446
48447         sha256.h: correct definition of SHA224_DIGEST_SIZE
48448         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
48449         Reported by Paulie Pena IV <paulie4@gmail.com>.
48450         Define as 224 / 8, rather than as a literal.
48451         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
48452         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
48453         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
48454
48455 2008-07-31  Bruno Haible  <bruno@clisp.org>
48456
48457         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
48458         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
48459         Reported by Jonathan Patschke <jp@centtech.com>.
48460
48461 2008-07-31  Bruno Haible  <bruno@clisp.org>
48462
48463         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
48464         Reported by Paolo Bonzini <bonzini@gnu.org>.
48465
48466 2008-07-30  Eric Blake  <ebb9@byu.net>
48467
48468         test-strtod: allow compilation without -lm
48469         * tests/test-strtod.c (main): Avoid link dependence on fabs.
48470         Reported by Dennis Clarke <blastwave@gmail.com>.
48471
48472 2008-07-28  Jim Meyering  <meyering@redhat.com>
48473
48474         bootstrap: work also when there are no .po files in po/
48475         * build-aux/bootstrap (update_po_files): Complete the change
48476         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
48477
48478 2008-07-27  Jim Meyering  <meyering@redhat.com>
48479
48480         * users.txt: Add zile.
48481
48482 2008-07-26  Ben Pfaff  <blp@gnu.org>
48483
48484         Add missing dependencies on new m4/exponent[fdl].m4 files.
48485         * modules/isnanf-nolibm: Add m4/exponentf.m4.
48486         * modules/isnand-nolibm: Add m4/exponentd.m4.
48487         * modules/isnanl-nolibm: Add m4/exponentl.m4.
48488         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
48489         m4/isnan[fdl].m4, because the macros actually used moved.
48490         Reported by Jim Meyering.
48491
48492 2008-07-14  Ben Pfaff  <blp@gnu.org>
48493
48494         Add isinf module.
48495         * lib/isinf.c: New file.
48496         * lib/math.in.h: Define isinf macro if we have decided to replace
48497         it.
48498         * m4/isinf.m4: New file.
48499         * m4/math_h.m4: Initialize and substitute variables for isinf
48500         module.
48501         * modules/isinf: New file.
48502         * modules/isinf-tests: New file.
48503         * modules/math: Add substitutions for new module.
48504         * tests/test-isinf.c: New file.
48505         * doc/posix-functions/isinf.texi: Mention new module.
48506         * MODULES.html.sh: Mention new module.
48507
48508 2008-07-14  Ben Pfaff  <blp@gnu.org>
48509
48510         Factor out some macros for use by additional modules.
48511         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
48512         exponentf.m4.
48513         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
48514         exponentd.m4.
48515         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
48516         file exponentl.m4.
48517         * m4/exponentf.m4: New file.
48518         * m4/exponentd.m4: New file.
48519         * m4/exponentl.m4: New file.
48520         * modules/isnanf: Use new file m4/exponentf.m4.
48521         * modules/isnand: Use new file m4/exponentd.m4.
48522         * modules/isnanl: Use new file m4/exponentl.m4.
48523
48524 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
48525
48526         mktime.c: normalize tp->tm_isdst value to -1/0/1.
48527         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
48528         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
48529         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
48530
48531         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
48532         readlink on platforms without PATH_MAX.
48533
48534 2008-07-21  Eric Blake  <ebb9@byu.net>
48535
48536         Warn, not fail, on stale version.
48537         * top/GNUmakefile (_curr-ver): Tone down previous patch.
48538
48539         Don't allow installation with stale devel version number.
48540         * top/GNUmakefile (_is-install-target): New macro.
48541         (_curr-ver): Forbid installation with stale version number.
48542
48543 2008-07-20  Bruno Haible  <bruno@clisp.org>
48544
48545         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
48546         TESTS_ENVIRONMENT.
48547         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
48548
48549 2008-07-20  Bruno Haible  <bruno@clisp.org>
48550
48551         * lib/c-stack.h (c_stack_action): Add documentation.
48552         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
48553
48554 2008-07-20  Bruno Haible  <bruno@clisp.org>
48555
48556         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
48557         * modules/readlink (License): Likewise.
48558
48559 2008-07-17  Eric Blake  <ebb9@byu.net>
48560
48561         * modules/c-stack (Link): Fix typo.
48562
48563         Make c-stack use libsigsegv, when available.
48564         * modules/c-stack (Depends-on): Add libsigsegv.
48565         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
48566         needed.
48567         * lib/c-stack.c (SIGSTKSZ): Define fallback.
48568         (segv_handler, overflow_handler, c_stack_action)
48569         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
48570         implementation when libsigsegv is available, but only when using
48571         the library is necessary.
48572         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
48573         comment, explaining why XSI check fails on Linux.
48574         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
48575         * tests/test-c-stack2.sh: Tweak skip message.
48576         * NEWS: Document new link-time requirements.
48577
48578 2008-07-16  Eric Blake  <ebb9@byu.net>
48579
48580         c-stack: Expose false positives when not using libsigsegv.
48581         * modules/c-stack-tests (Files): Expand test.
48582         * tests/test-c-stack.c (main): Add means to conditionally trigger
48583         non-overflow SIGSEGV.
48584         * tests/test-c-stack2.sh: New file.
48585
48586 2008-07-14  Bruno Haible  <bruno@clisp.org>
48587
48588         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
48589         Reported by Eric Blake.
48590
48591 2008-07-14  Sam Steingold  <sds@gnu.org>
48592             Bruno Haible  <bruno@clisp.org>
48593
48594         New module libsigsegv.
48595         * modules/libsigsegv: New file.
48596         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
48597         modifications.
48598         * MODULES.html.sh (Signal handling): New section.
48599
48600 2008-07-14  Bruno Haible  <bruno@clisp.org>
48601
48602         * modules/unictype/ctype-* (Description): Add the word "function".
48603         Improves the resulting doc in MODULES.html.
48604
48605 2008-07-12  Ben Pfaff  <blp@gnu.org>
48606
48607         Add longlong module.
48608         * modules/longlong: New file.
48609
48610 2008-07-12  Bruno Haible  <bruno@clisp.org>
48611
48612         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
48613         to empty.
48614
48615 2008-07-10  Ben Pfaff  <blp@gnu.org>
48616
48617         Add isnan module.
48618         * doc/posix-functions/isnan.texi: Mention new module.
48619         * lib/math.in.h: Define isnan macro if we have decided to replace
48620         it.
48621         * m4/isnan.m4: New file.
48622         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
48623         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
48624         also.
48625         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
48626         redundancy.
48627         * m4/math_h.m4: Initialize and substitute variables for isnan
48628         module.
48629         * modules/isnan: New file.
48630         * modules/isnan-tests: New file.
48631         * modules/math: Add substitutions for new module.
48632         * tests/test-isnan.c: New file.
48633         * MODULES.html.sh: Mention new module.
48634
48635 2008-07-10  Ben Pfaff  <blp@gnu.org>
48636
48637         Add isnanf module.
48638         * lib/isnanf.m4: New file.
48639         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
48640         (gl_HAVE_ISNANF_IN_LIBM): New macro.
48641         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
48642         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
48643         * modules/isnanf: New file.
48644         * modules/isnanf-tests: New file.
48645         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
48646         files.
48647         * tests/test-isnanf-nolibm.c: factored most of its contents into
48648         new file tests/test-isnanf.h.
48649         * tests/test-isnanf.h: New file.
48650         * tests/test-isnanf.c: New file.
48651         * MODULES.html.sh: Mention new module.
48652         * doc/glibc-functions/isnanf.texi: Mention new module.
48653
48654 2008-07-10  Ben Pfaff  <blp@gnu.org>
48655
48656         Add isnand module.
48657         * lib/isnand.h: New file.
48658         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
48659         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
48660         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
48661         functionality also.
48662         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
48663         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
48664         (gl_HAVE_ISNAND_IN_LIBM): New macro.
48665         * modules/isnand: New file.
48666         * modules/isnand-tests: New file.
48667         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
48668         files.
48669         * tests/test-isnand-nolibm.c: factored most of its contents into
48670         new file tests/test-isnand.h.
48671         * tests/test-isnand.h: New file.
48672         * tests/test-isnand.c: New file.
48673         * MODULES.html.sh: Mention new module.
48674
48675 2008-07-10  Ben Pfaff  <blp@gnu.org>
48676
48677         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
48678         * lib/isnand.h: Rename lib/isnand-nolibm.h.
48679         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
48680         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
48681         * modules/isnanf-nolibm: Update references to renamed files.
48682         * modules/isnand-nolibm: Likewise.
48683         * modules/isnanf-nolibm-tests: Likewise.
48684         * modules/isnand-nolibm-tests: Likewise.
48685         * lib/frexp.c: Likewise.
48686         * lib/isfinite.c: Likewise.
48687         * lib/signbitd.c: Likewise.
48688         * lib/signbitf.c: Likewise.
48689         * lib/vasnprintf.c: Likewise.
48690         * tests/test-ceilf1.c: Likewise.
48691         * tests/test-ceilf2.c: Likewise.
48692         * tests/test-floorf1.c: Likewise.
48693         * tests/test-floorf2.c: Likewise.
48694         * tests/test-frexp.c: Likewise.
48695         * tests/test-round1.c: Likewise.
48696         * tests/test-round2.c: Likewise.
48697         * tests/test-roundf1.c: Likewise.
48698         * tests/test-strtod.c: Likewise.
48699         * tests/test-trunc1.c: Likewise.
48700         * tests/test-trunc2.c: Likewise.
48701         * tests/test-truncf1.c: Likewise.
48702         * tests/test-truncf2.c: Likewise.
48703         * NEWS: Mention the renamed header files.
48704
48705 2008-07-11  Jim Meyering  <meyering@redhat.com>
48706
48707         vc-list-files: make the last-resort awk code more portable
48708         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
48709         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
48710         does not support it.
48711
48712 2008-07-10  Eric Blake  <ebb9@byu.net>
48713
48714         Work with tar's bootstrap.
48715         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
48716         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
48717         an m4 comment.
48718
48719 2008-07-09  Jim Meyering  <meyering@redhat.com>
48720
48721         posix-shell.m4: fix typo that made this test malfunction
48722         * m4/posix-shell.m4: Remove capitalization in variable name.
48723
48724 2008-07-08  Bruno Haible  <bruno@clisp.org>
48725
48726         * m4/onceonly.m4: Update comments.
48727         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48728
48729 2008-07-04  Jim Meyering  <meyering@redhat.com>
48730
48731         * users.txt: Add vc-dwim.
48732         (bison, coreutils): Use the gitweb URL.
48733
48734 2008-07-03  Jim Meyering  <meyering@redhat.com>
48735
48736         * users.txt: Add libffcall.  From Sam Steingold.
48737
48738 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
48739
48740         getdate.y: do not ignore TZ with relative day, month or year offset
48741         * lib/getdate.y (get_date): Move the tz-handling block to follow the
48742         relative-date-handling, since otherwise, the latter would clobber the
48743         sole output (an updated Start value) of the tz-handling block.
48744         * tests/test-getdate.c: Tests for the fix
48745
48746 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48747
48748         Recognize 'foo_LIBRARIES += libgnu.a'.
48749         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
48750         makefile snippet has already specified an installation location,
48751         also using '+='.
48752
48753 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
48754
48755         getdate.y: factor out common actions
48756         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
48757         Use them in place of open-coded actions.
48758
48759 2008-07-01  Simon Josefsson  <simon@josefsson.org>
48760
48761         Add self-test for getdate module.
48762         * modules/getdate-tests: New file.
48763         * tests/test-getdate.c: New file.
48764
48765 2008-06-29  Bruno Haible  <bruno@clisp.org>
48766
48767         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
48768         .gitignore.
48769         Reported by Sylvain Beucler <beuc@beuc.net>.
48770
48771 2008-06-29  Bruno Haible  <bruno@clisp.org>
48772
48773         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
48774         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
48775
48776 2008-06-29  Bruno Haible  <bruno@clisp.org>
48777
48778         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
48779         EXTRA_DIST.
48780         Reported by Sylvain Beucler <beuc@beuc.net>.
48781
48782 2008-06-26  Jim Meyering  <meyering@redhat.com>
48783
48784         make several modules depend on the "open" module
48785         This provides slightly increased consistency when opening-for-write
48786         the name of a non-directory spelled with a trailing slash.
48787         * modules/chdir-safer: Likewise.
48788         * modules/chown: Likewise.
48789         * modules/clean-temp: Likewise.
48790         * modules/copy-file: Likewise.
48791         * modules/fchdir: Likewise.
48792         * modules/fcntl-safer: Likewise.
48793         * modules/pipe: Likewise.
48794         * modules/utime: Likewise.
48795         Prompted by Eric Blake and Bruno Haible.
48796
48797 2008-06-24  Andreas Schwab  <schwab@suse.de>
48798
48799         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
48800         literals can be used as initializers for global variables.
48801
48802 2008-06-23  Eric Blake  <ebb9@byu.net>
48803
48804         Make gnulib-cache.m4 easier to diff.
48805         * gnulib-tool (func_import): Allow newlines when reading cached
48806         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
48807
48808 2008-06-23  Bruno Haible  <bruno@clisp.org>
48809
48810         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
48811         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
48812         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
48813         m4/signalblocking.m4.
48814         (gl_PREREQ_SIGACTION): Don't invoke it.
48815         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
48816         gl_PREREQ_SIG_HANDLER_H.
48817         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
48818         Don't check for sigaction here.
48819
48820 2008-06-23  Bruno Haible  <bruno@clisp.org>
48821
48822         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
48823         (install_handlers): Don't set the SA_RESETHAND flag.
48824
48825 2008-06-23  Bruno Haible  <bruno@clisp.org>
48826
48827         * m4/sigaction.m4: Comment fixes.
48828         * lib/signal.in.h: Likewise.
48829
48830 2008-06-23  Eric Blake  <ebb9@byu.net>
48831
48832         Fix typo.
48833         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
48834
48835         Avoid SA_ namespace.
48836         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
48837         Reported by Ralf Wildenhues.
48838
48839         Avoid test failure due to SA_RESTORER.
48840         * tests/test-sigaction.c (SA_MASK): New macro.
48841         (main): Avoid failing due to extension flags being set.
48842         Reported by Jim Meyering.
48843
48844         Revert use of sig-handler.h in sigprocmask.c.
48845         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
48846         it requires the existence of struct sigaction.
48847         * lib/sigprocmask.c (handler_t): Restore typedef.
48848         (rpl_signal, old_handlers): Use local type.
48849
48850 2008-06-22  Bruno Haible  <bruno@clisp.org>
48851
48852         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
48853         conditionally.
48854         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48855
48856 2008-06-22  Bruno Haible  <bruno@clisp.org>
48857
48858         * doc/posix-functions/siginterrupt.texi: Move note.
48859
48860         * lib/signal.in.h (SA_RESTART): New macro.
48861         * lib/sigaction.c: Update comment.
48862
48863         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
48864
48865         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
48866         (gl_PREREQ_SIGPROCMASK): Invoke it.
48867         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
48868
48869         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
48870
48871         * lib/sigprocmask.c: Update a comment.
48872
48873 2008-06-21  Eric Blake  <ebb9@byu.net>
48874
48875         Use sigaction module rather than signal().
48876         * modules/c-stack (Depends-on): Add sigaction.
48877         * modules/fatal-signal (Depends-on): Likewise.
48878         * modules/nanosleep (Depends-on): Likewise.
48879         * modules/sigprocmask (Files): Add sig-handler.h.
48880         * modules/sigaction (Files): Likewise.
48881         * lib/sig-handler.h (get_handler): New file, suggested by Paul
48882         Eggert.
48883         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
48884         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
48885         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
48886         (init_fatal_signals): Likewise.
48887         * lib/nanosleep.c (rpl_nanosleep): Likewise.
48888         (siginterrupt): Delete fallback.
48889         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
48890         instead.
48891         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
48892         siginterrupt.
48893
48894         New module sigaction, for mingw.
48895         * modules/sigaction: New module...
48896         * modules/sigaction-tests: ...and its test.
48897         * m4/sigaction.m4: New file.
48898         * lib/sigaction.c: Likewise.
48899         * tests/test-sigaction.c: Likewise.
48900         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
48901         * modules/signal (Makefile.am): Likewise.
48902         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
48903         needed.
48904         * doc/posix-headers/signal.texi (signal.h): Mention provided
48905         types.
48906         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
48907         that sigaction is preferable.
48908         * doc/posix-functions/sigaction.texi (sigaction): Mention new
48909         module.
48910         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48911         sigaction.
48912
48913         Improve robustness of sigprocmask by overriding signal.
48914         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
48915         is in use.
48916         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
48917         (SIGKILL, SIGSTOP): Provide fallbacks.
48918         (rpl_signal): Implement.
48919         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
48920         signal can be called inside handlers.
48921
48922         Fix nanosleep module on mingw.
48923         * modules/nanosleep (Depends-on): Add sys_select.
48924         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
48925
48926         Fix licensing of sigprocmask.
48927         * modules/raise (License): Relicense as LGPL.
48928
48929 2008-06-21  Bruno Haible  <bruno@clisp.org>
48930
48931         * lib/propername.c (proper_name_utf8): Don't use the transliterated
48932         result if it contains question marks.
48933         Reported by Michael Geng <linux@michaelgeng.de>.
48934
48935 2008-06-19  Bruno Haible  <bruno@clisp.org>
48936
48937         Fix CVS-ism.
48938         * doc/gnulib.texi: Include updated-stamp.texi.
48939         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
48940         (updated-stamp.texi): New rule.
48941         (gnulib.info): Depend on it.
48942         * doc/.gitignore: Add updated-stamp.texi.
48943         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
48944
48945 2008-06-19  Bruno Haible  <bruno@clisp.org>
48946
48947         * doc/Makefile (gnulib.info): Update and simplify dependencies.
48948         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48949
48950 2008-06-19  Eric Blake  <ebb9@byu.net>
48951
48952         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
48953         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
48954         Reported by Stepan Kasal.
48955
48956 2008-06-18  Bruno Haible  <bruno@clisp.org>
48957
48958         * lib/fatal-signal.c (init_fatal_signals): Add comment.
48959         Reported by Eric Blake.
48960
48961 2008-06-18  Eric Blake  <ebb9@byu.net>
48962
48963         Work around cygwin 1.5.25 strsignal bug.
48964         * tests/test-strsignal.c: Allow for const char *.
48965         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
48966
48967 2008-06-18  Simon Josefsson  <simon@josefsson.org>
48968
48969         * users.txt: Update URL to article and add author/date
48970         information.
48971
48972 2008-06-17  Bruno Haible  <bruno@clisp.org>
48973
48974         New macro gl_DISABLE_THREADS.
48975         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
48976         if the user did not pass --enable-threads or --disable-threads option.
48977         (gl_DISABLE_THREADS): New macro.
48978         Reported by Eric Blake <ebb9@byu.net>.
48979
48980 2008-06-17  Bruno Haible  <bruno@clisp.org>
48981
48982         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
48983         when the macro ignores it.
48984         Based on a patch by Eric Blake <ebb9@byu.net>.
48985
48986 2008-06-17  Bruno Haible  <bruno@clisp.org>
48987
48988         * modules/tls (License): Change to LGPLv2+.
48989         Reported by Eric Blake.
48990
48991 2008-06-17  Eric Blake  <ebb9@byu.net>
48992
48993         Simplify c-stack prerequisites.
48994         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
48995         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
48996         no longer requires <ucontext.h> to exist.  Optimize setrlimit
48997         check.
48998         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
48999         <sys/resource.h>.
49000
49001         Move c-stack test into testsuite.
49002         * modules/c-stack-tests: New file.
49003         * lib/c-stack.c [DEBUG]: Move test program...
49004         * tests/test-c-stack.c: ...into this new file.  Skip rather than
49005         fail test if sigaltstack is lacking.
49006         * tests/test-c-stack.sh: New driver file.
49007
49008 2008-06-16  Eric Blake  <ebb9@byu.net>
49009
49010         Use raise module consistently.
49011         * modules/fatal-signal (Depends-on): Add raise.
49012         * modules/sigprocmask (Depends-on): Likewise.
49013         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
49014         * lib/sigprocmask.c (sigprocmask): Likewise.
49015         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
49016         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
49017
49018         Fix compliance bug in sigpending.
49019         * lib/sigprocmask.c (sigpending): Return pending array via
49020         parameter, not return value.
49021
49022 2008-06-14  Eric Blake  <ebb9@byu.net>
49023
49024         Improve obstack-printf test code.
49025         * tests/test-obstack-printf.c (test_function): Fix comment, and
49026         simplify usage of obstack_* in macros.  Add a test for coverage.
49027         Reported by Bruno Haible.
49028
49029 2008-06-14  Bruno Haible  <bruno@clisp.org>
49030
49031         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
49032         array size as a constant, not as a const variable.
49033         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
49034         AC_USE_SYSTEM_EXTENSIONS.
49035         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
49036         Test whether the obstack_printf function actually exists.
49037         * modules/obstack-printf (Depends-on): Add extensions.
49038         (Include): Remove obstack.h.
49039         * modules/obstack-printf-posix (Depends-on): Add extensions.
49040         (Include): Remove obstack.h.
49041
49042 2008-06-13  Eric Blake  <ebb9@byu.net>
49043
49044         Add obstack-printf and obstack-printf-posix modules.
49045         * modules/obstack-printf: New file.
49046         * modules/obstack-printf-posix: Likewise.
49047         * MODULES.html.sh (Misc): Mention them.
49048         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
49049         Likewise.
49050         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
49051         Likewise.
49052         * modules/stdio (Makefile.am): Accomodate new modules.
49053         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49054         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
49055         Declare.
49056         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
49057         functions.
49058         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
49059         (gl_REPLACE_OBSTACK_PRINTF): New macros
49060         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
49061         * tests/test-obstack-printf.c: New file.
49062         * modules/obstack-printf-tests: Likewise.
49063         * modules/obstack-printf-posix-tests: Likewise.
49064
49065 2008-06-11  Bruno Haible  <bruno@clisp.org>
49066
49067         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
49068         * lib/open.c: Include errno.h.
49069         (open): Fail when attempting to write to a file that has a trailing
49070         slash.
49071         * tests/test-open.c (main): Test against trailing slash bug.
49072         * doc/posix-functions/open.texi: Mention the trailing slash bug.
49073
49074 2008-06-10  Bruno Haible  <bruno@clisp.org>
49075
49076         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
49077         for $? to work inside the trap command, with various /bin/sh-s.
49078         * tests/test-vc-list-files-cvs.sh: Likewise.
49079
49080 2008-06-10  Bruno Haible  <bruno@clisp.org>
49081
49082         * lib/acl-internal.h: Don't include gettext.h here.
49083         * lib/set-mode-acl.c: Include gettext.h here.
49084         * lib/copy-acl.c: Likewise.
49085
49086 2008-06-10  Bruno Haible  <bruno@clisp.org>
49087
49088         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
49089         * lib/wait-process.c (wait_subprocess): Likewise.
49090         * lib/execute.h (execute): Add termsigp argument.
49091         * lib/execute.c (execute): Likewise.
49092         * lib/csharpcomp.c (compile_csharp_using_pnet,
49093         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
49094         * lib/csharpexec.c (execute_csharp_using_pnet,
49095         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
49096         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
49097         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
49098         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
49099         is_jikes_present): Update.
49100         * lib/javaexec.c (execute_java_class): Update.
49101         * lib/javaversion.c (execute_and_read_line): Update.
49102         * NEWS: Document the changes.
49103         Reported by Eric Blake.
49104
49105 2008-06-10  Eric Blake  <ebb9@byu.net>
49106
49107         Add missing include.
49108         * tests/test-strstr.c (includes): Add <signal.h>.
49109         * tests/test-strcasestr.c (includes): Likewise.
49110         * tests/test-memmem.c (includes): Likewise.
49111
49112 2008-06-10  Bruno Haible  <bruno@clisp.org>
49113
49114         * lib/wait-process.c (wait_subprocess): Add an assertion.
49115
49116 2008-06-10  Bruno Haible  <bruno@clisp.org>
49117
49118         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
49119
49120 2008-06-10  Bruno Haible  <bruno@clisp.org>
49121
49122         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
49123         using alarm().
49124         * tests/test-strcasestr.c (main): Likewise.
49125         * tests/test-strstr.c (main): Likewise.
49126
49127 2008-06-09  Bruno Haible  <bruno@clisp.org>
49128
49129         Work around the Solaris 10 ACE ACLs ABI change.
49130         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
49131         declare if ACL_NO_TRIVIAL is present.
49132         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
49133         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
49134         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
49135         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
49136         define if ACL_NO_TRIVIAL is present.
49137         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
49138         and use the current ABI.
49139         (file_has_acl): Use same #if condition as elsewhere.
49140         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
49141         in use, and use the current ABI.
49142         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
49143         Reported by Jim Meyering.
49144
49145 2008-06-09  Eric Blake  <ebb9@byu.net>
49146
49147         Work around environments that (stupidly) ignore SIGALRM.
49148         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
49149         before using alarm().
49150         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49151         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49152         Reported by Ian Beckwith <ianb@erislabs.net>.
49153
49154         Produce autobuild blurb earlier in log.
49155         * modules/autobuild (configure.ac-early): Move AB_INIT here.
49156
49157 2008-06-09  Jim Meyering  <meyering@redhat.com>
49158         and Ondřej Vašík  <ovasik@redhat.com>
49159
49160         utimens.c: correct kernel bug work-around
49161         Ondřej Vašík found that the invalid return value of 280 indicates
49162         failure, not success, and the kernel bug we're trying to work
49163         around affects not just the utimensat call, but also the fallback
49164         futimens call.
49165         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
49166         not success.
49167         [HAVE_FUTIMENS]: Use the same work-around, here.
49168
49169 2008-06-09  Jim Meyering  <meyering@redhat.com>
49170
49171         add more guards around definition of ACE_-related code
49172         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
49173         ALLOW and ACE_OWNER are also defined.
49174
49175 2008-06-08  Bruno Haible  <bruno@clisp.org>
49176
49177         * lib/acl-internal.h: Add me as co-author.
49178         * lib/file-has-acl.c: Likewise.
49179         * lib/set-mode-acl.c: Likewise.
49180         * lib/copy-acl.c: Likewise.
49181
49182 2008-06-08  Bruno Haible  <bruno@clisp.org>
49183
49184         Add support for AIX ACLs.
49185         * lib/acl-internal.h (acl_nontrivial): New declaration.
49186         * lib/file-has-acl.c (acl_nontrivial): New function.
49187         (file_has_acl): Add implementation using AIX 4 ACL API.
49188         * lib/set-mode-acl.c (qset_acl): Likewise.
49189         * lib/copy-acl.c (qcopy_acl): Likewise.
49190
49191 2008-06-08  Bruno Haible  <bruno@clisp.org>
49192
49193         Add support for HP-UX ACLs.
49194         * lib/acl-internal.h (acl_nontrivial): New declaration.
49195         * lib/file-has-acl.c (acl_nontrivial): New function.
49196         (file_has_acl): Add implementation using HP-UX 11 ACL API.
49197         * lib/set-mode-acl.c (qset_acl): Likewise.
49198         * lib/copy-acl.c (qcopy_acl): Likewise.
49199
49200 2008-06-08  Bruno Haible  <bruno@clisp.org>
49201
49202         Add support for Cygwin ACLs.
49203         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
49204         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
49205         the chmod_or_fchmod call.
49206         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
49207
49208 2008-06-08  Bruno Haible  <bruno@clisp.org>
49209
49210         Fix bug with setuid modes in Solaris 10+ code.
49211         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
49212         succeeded, when the mode contains some special bits.
49213
49214 2008-06-08  Bruno Haible  <bruno@clisp.org>
49215
49216         Add support for Solaris 7..10 ACLs.
49217         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
49218         declarations.
49219         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
49220         functions.
49221         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
49222         * lib/set-mode-acl.c (qset_acl): Likewise.
49223         * lib/copy-acl.c (qcopy_acl): Likewise.
49224
49225 2008-06-08  Bruno Haible  <bruno@clisp.org>
49226
49227         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
49228         declaration.
49229         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
49230         (acl_access_nontrivial): Remove MacOS X case.
49231         (file_has_acl): Use acl_extended_nontrivial.
49232         * lib/copy-acl.c (qcopy_acl): Likewise.
49233
49234 2008-06-08  Bruno Haible  <bruno@clisp.org>
49235
49236         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
49237
49238 2008-06-08  Jim Meyering  <meyering@redhat.com>
49239
49240         * modules/acl (Maintainer): Add Bruno Haible.
49241
49242 2008-06-07  Bruno Haible  <bruno@clisp.org>
49243
49244         Improve support for Tru64 ACLs.
49245         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
49246         ACL on OSF/1.
49247
49248 2008-06-07  Bruno Haible  <bruno@clisp.org>
49249
49250         Add support for MacOS X ACLs.
49251         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
49252         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
49253         * lib/set-mode-acl.c (qset_acl): Likewise.
49254         * lib/copy-acl.c (qcopy_acl): Likewise.
49255
49256 2008-06-07  Bruno Haible  <bruno@clisp.org>
49257
49258         Fix memory leak introduced on 2008-05-22.
49259         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
49260         use.
49261
49262 2008-06-07  Bruno Haible  <bruno@clisp.org>
49263
49264         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
49265         to construct an empty ACL.
49266
49267 2008-06-07  Bruno Haible  <bruno@clisp.org>
49268
49269         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
49270         precisely.
49271         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
49272
49273 2008-06-07  Bruno Haible  <bruno@clisp.org>
49274
49275         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
49276         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
49277
49278 2008-06-07  Bruno Haible  <bruno@clisp.org>
49279
49280         * doc/posix-functions/_setjmp.texi: Explain the use of this function
49281         regardless of POSIX.
49282         * doc/posix-functions/_longjmp.texi: Likewise.
49283         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
49284         SystemV platform in this case.
49285
49286 2008-06-06  Eric Blake  <ebb9@byu.net>
49287
49288         Document abort() bugs.
49289         * doc/posix-functions/abort.texi (abort): Mention anomalies.
49290
49291         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
49292         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
49293         sigsetjmp.
49294         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
49295         siglongjmp, but only as a macro.
49296         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
49297         is obsolete.
49298         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
49299
49300         Tweak documentation to cover cygwin argz bugs.
49301         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
49302         argz bug fix; no code change needed since no cygwin releases
49303         occurred between the last fix and the bug being tested.
49304         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
49305         module and recently fixed cygwin bugs.
49306         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
49307         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
49308         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
49309         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
49310         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
49311         Likewise.
49312         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
49313         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
49314         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
49315         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
49316         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
49317         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
49318         Likewise.
49319
49320         Avoid gcc warning on cygwin.
49321         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
49322         !ACL_NO_TRIVIAL]: Avoid unused variable.
49323
49324 2008-06-05  Eric Blake  <ebb9@byu.net>
49325
49326         Be tolerant of UNKNOWN version in gnulib-tool test dir.
49327         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
49328         git-version-gen fails to come up with a version.
49329         Reported by Simon Josefsson.
49330
49331 2008-06-05  Jim Meyering  <meyering@redhat.com>
49332             Paul Eggert  <eggert@cs.ucla.edu>
49333
49334         utimens.c: work around a probable Linux kernel bug
49335         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
49336         appears to be a kernel bug that causes utimensat to return 280
49337         instead of 0, indicating success.
49338
49339 2008-06-04  Bruno Haible  <bruno@clisp.org>
49340
49341         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
49342         2008-06-01 commit.
49343
49344 2008-06-04  Bruno Haible  <bruno@clisp.org>
49345
49346         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
49347         * lib/file-has-acl.c (acl_access_nontrivial): New function.
49348         (file_has_acl): Use it. Save errno afterwards.
49349         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
49350
49351 2008-06-03  Bruno Haible  <bruno@clisp.org>
49352
49353         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
49354         draft code. Simplify #ifs.
49355         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
49356         Put Solaris code after POSIX-draft code. Fix comments regarding
49357         Solaris 10, HP-UX. Mention Cygwin.
49358         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
49359
49360 2008-06-03  Eric Blake  <ebb9@byu.net>
49361
49362         Provide fallback for older kernels.
49363         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
49364         Provide runtime fallback if kernel lacks support.
49365         Reported by Mike Frysinger.
49366
49367 2008-06-02  Bruno Haible  <bruno@clisp.org>
49368
49369         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
49370         it exists.
49371
49372 2008-06-02  Bruno Haible  <bruno@clisp.org>
49373
49374         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
49375         * lib/copy-acl.c (qcopy_acl): Update comment.
49376
49377 2008-06-02  Bruno Haible  <bruno@clisp.org>
49378
49379         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
49380         like ACL APIs.
49381
49382 2008-06-02  Bruno Haible  <bruno@clisp.org>
49383
49384         * tests/test-file-has-acl.sh: Use different code for Cygwin.
49385         * tests/test-set-mode-acl.sh: Likewise.
49386         * tests/test-copy-acl.sh: Likewise.
49387         * tests/test-copy-file.sh: Likewise.
49388
49389 2008-06-02  Bruno Haible  <bruno@clisp.org>
49390
49391         * tests/test-file-has-acl.sh: Remove unused code.
49392
49393 2008-06-01  Bruno Haible  <bruno@clisp.org>
49394
49395         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
49396         (copy_acl): Just a wrapper around qcopy_acl that emits the error
49397         messages.
49398         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
49399
49400 2008-06-01  Bruno Haible  <bruno@clisp.org>
49401
49402         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
49403         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
49404         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
49405         APIs.
49406         * modules/acl-tests (configure.ac): Remove tests now contained in
49407         m4/acl.m4.
49408
49409 2008-06-02  Jim Meyering  <meyering@redhat.com>
49410
49411         announce-gen: use a better key-server host name
49412         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
49413         it may be more consistently reliable.  Suggested by Werner Koch
49414         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
49415
49416 2008-06-01  Bruno Haible  <bruno@clisp.org>
49417
49418         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
49419         Reported by Voroskoi Andras <voroskoi@gmail.com>.
49420
49421 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
49422
49423         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
49424
49425 2008-06-01  Bruno Haible  <bruno@clisp.org>
49426
49427         New ACL tests.
49428         * tests/test-file-has-acl.sh: New file.
49429         * tests/test-file-has-acl.c: New file.
49430         * tests/test-set-mode-acl.sh: New file.
49431         * tests/test-set-mode-acl.c: New file.
49432         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
49433         * tests/test-copy-acl.c: New file.
49434         * modules/acl-tests: New file, based on modules/copy-file-tests.
49435         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
49436         (Depends-on): Add acl-tests.
49437         (configure.ac): Remove checks.
49438         (Makefile.am): Don't create test-sameacls program here any more.
49439
49440 2008-06-01  Bruno Haible  <bruno@clisp.org>
49441
49442         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
49443         * tests/test-sameacls.c: Include progname.h.
49444         (main): Invoke set_program_name. Portability fixes for MacOS X,
49445         Solaris, HP-UX.
49446
49447 2008-06-01  Bruno Haible  <bruno@clisp.org>
49448
49449         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
49450         function.
49451         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
49452
49453 2008-06-01  Bruno Haible  <bruno@clisp.org>
49454
49455         * modules/rpmatch (Depends-on): Add strdup.
49456
49457 2008-06-01  Bruno Haible  <bruno@clisp.org>
49458
49459         * lib/pipe.c: Include unistd-safer.h.
49460         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
49461         * modules/pipe (Depends-on): Add unistd-safer.
49462
49463 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49464
49465         * modules/autobuild (configure.ac): Call AB_INIT.
49466
49467 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49468
49469         * tests/test-getaddrinfo.c: Don't print debug messages by default.
49470         Suggested by Bruno Haible <bruno@clisp.org>.
49471
49472 2008-05-30  Simon Josefsson  <simon@josefsson.org>
49473
49474         * tests/test-base64.c: Cast size_t to unsigned long when invoking
49475         printf.  Use %lu instead of %d.  Reported by Bruno Haible
49476         <bruno@clisp.org>.
49477
49478 2008-05-29  Eric Blake  <ebb9@byu.net>
49479
49480         Prefer new POSIX 200x interfaces over futimesat.
49481         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
49482         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
49483         when available.
49484         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
49485
49486 2008-05-28  Bruno Haible  <bruno@clisp.org>
49487
49488         * modules/stpcpy (License): Change to LGPLv2+.
49489         Requested by David Lutterkort <dlutter@redhat.com>.
49490
49491 2008-05-27  Bruno Haible  <bruno@clisp.org>
49492
49493         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
49494         current mingw.
49495         Reported by Jose E. Marchesi <jemarch@gnu.org>.
49496
49497 2008-05-27  Bruno Haible  <bruno@clisp.org>
49498
49499         * modules/iconv_open (Link): New section, from module 'iconv'.
49500         * modules/striconv (Link): Likewise.
49501         * modules/striconveh (Link): Likewise.
49502         * modules/xstriconv (Link): Likewise.
49503         * modules/unicodeio (Link): Likewise.
49504         * modules/propername (Link): Likewise.
49505         Reported by Jim Meyering.
49506
49507 2008-05-26  Jim Meyering  <meyering@redhat.com>
49508
49509         sha256: do not artificially restrict buffer length to be < 2^32
49510         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
49511         uint32_t to size_t.
49512         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
49513         to match.
49514
49515         avoid unaligned access errors, e.g., on sparc
49516         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
49517         direct access through a possibly-unaligned uint64* pointer.
49518         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
49519         direct access through a possibly-unaligned uint32* pointer.
49520         Prompted by this patch from Tom "spot" Callaway:
49521         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
49522
49523         sha512.c: fix typo in comment
49524         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
49525
49526 2008-05-25  Bruno Haible  <bruno@clisp.org>
49527
49528         * lib/set-mode-acl.c: Renamed from lib/acl.c.
49529         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
49530         (Makefile.am): Update lib_SOURCES.
49531
49532 2008-05-25  Bruno Haible  <bruno@clisp.org>
49533
49534         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
49535
49536 2008-05-25  Jim Meyering  <meyering@redhat.com>
49537
49538         useless-if-before-free: freed expr may have white-space differences
49539         * build-aux/useless-if-before-free: Recognize cases in which the
49540         freed expression differs from the tested one in embedded white
49541         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
49542         $1 was used, so we can't make any regexp shy.  Improved tests now
49543         detect this.
49544
49545         useless-if-before-free: accept white space in the expression.
49546         * build-aux/useless-if-before-free: For now, any white space
49547         in the expression must be identical in the free argument.
49548
49549         useless-if-before-free: efficiency tweak
49550         * build-aux/useless-if-before-free: Make the expression-matching
49551         regexp "shy".
49552         Make the *outer* regexp shy, not the expr-matching one.
49553
49554         update code-in-comment to accept cast of free arg
49555         * build-aux/useless-if-before-free: Update regexp.
49556
49557 2008-05-25  Bruno Haible  <bruno@clisp.org>
49558
49559         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
49560         * modules/copy-file-tests (Files, Makefile.am): Update.
49561         * tests/test-copy-file.c (func_test_copy): Update.
49562
49563 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
49564
49565         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
49566
49567 2008-05-23  Bruno Haible  <bruno@clisp.org>
49568
49569         Improve support for ACLs on OSF/1.
49570         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
49571         Remove fallback for unknown flavors of ACLs.
49572
49573 2008-05-22  Bruno Haible  <bruno@clisp.org>
49574
49575         Add support for ACLs on OSF/1.
49576         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
49577         replacements.
49578         (acl_free_text): New macro fallback.
49579         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
49580         acl_free.
49581         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
49582         acl_free_text function. Require AC_C_INLINE.
49583
49584 2008-05-22  Bruno Haible  <bruno@clisp.org>
49585
49586         Make copy_acl work on MacOS X 10.5.
49587         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
49588         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
49589         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
49590         If MODE_INSIDE_ACL, don't assume that every system has the same text
49591         representation for ACLs as FreeBSD.
49592         * lib/copy-acl.c (copy_acl): Add support for platforms with
49593         !MODE_INSIDE_ACL.
49594         * lib/file-has-acl.c (file_has_acl): Likewise.
49595         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
49596         FreeBSD, MacOS X, or IRIX, respectively.
49597
49598 2008-05-22  Bruno Haible  <bruno@clisp.org>
49599
49600         * lib/acl.h: Don't include <sys/acl.h>.
49601         (GETACLCNT): Move fallback to lib/acl-internal.h.
49602         * lib/acl-internal.h: Include <sys/acl.h> here.
49603         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
49604
49605 2008-05-22  Bruno Haible  <bruno@clisp.org>
49606
49607         Split off copy_acl function to separate file.
49608         * lib/copy-acl.c: New file, extracted from lib/acl.c.
49609         * lib/acl.c (copy_acl): Moved function to separate file.
49610         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
49611         * modules/acl (Files): Add lib/copy-acl.c.
49612         (Makefiles.am): Augment lib_SOURCES.
49613
49614 2008-05-22  Bruno Haible  <bruno@clisp.org>
49615
49616         * modules/copy-file-tests: New file.
49617         * tests/test-copy-file.sh: New file.
49618         * tests/test-copy-file.c: New file.
49619         * tests/test-copy-file-sameacls.c: New file.
49620
49621 2008-05-22  Eric Blake  <ebb9@byu.net>
49622
49623         Avoid gcc warning.
49624         * tests/test-memcmp.c (main): Pass NULL indirectly.
49625
49626 2008-05-21  Bruno Haible  <bruno@clisp.org>
49627
49628         Add reference doc about ACLs.
49629         * doc/acl-resources.txt: New file.
49630         * doc/acl-cygwin.txt: New file.
49631
49632 2008-05-21  Bruno Haible  <bruno@clisp.org>
49633
49634         Avoid one more warning from gcc.
49635         * lib/vasnprintf.c (IF_LINT): Update comments.
49636         (VASNPRINTF): Use it also for the 'prefix' array initializer.
49637
49638 2008-05-21  Jim Meyering  <meyering@redhat.com>
49639
49640         avoid a warning from gcc
49641         * lib/vasnprintf.c (IF_LINT): Define.
49642         (scale10_round_decimal_long_double):
49643         Use it to avoid a "may be used uninitialized" warning.
49644         (scale10_round_decimal_double): Likewise.
49645
49646 2008-05-21  Simon Josefsson  <simon@josefsson.org>
49647
49648         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
49649         declared.
49650
49651 2008-05-20  Bruno Haible  <bruno@clisp.org>
49652
49653         * tests/test-memcmp.c (main): Test also the sign of the result. Test
49654         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
49655
49656 2008-05-20  Simon Josefsson  <simon@josefsson.org>
49657
49658         * modules/memcmp-tests: New file.
49659         * tests/test-memcmp.c: New file.
49660
49661 2008-05-19  Bruno Haible  <bruno@clisp.org>
49662
49663         * modules/propername (Notice, configure.ac): Put quoted "..." into
49664         --keyword option.
49665         * lib/propername.h: Update comments accordingly.
49666         Reported by Eric Blake.
49667
49668 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
49669
49670         * modules/getpass-gnu (Depends-on): Add fseeko.
49671
49672 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49673
49674         * modules/base64-tests: New file.
49675
49676 2008-05-19  Bo Borgerson <gigabo@gmail.com>
49677
49678         * lib/base64.c (base64_decode_ctx): If a decode context structure
49679         was passed in use it to ignore newlines.  If a context structure
49680         was _not_ passed in, continue to treat newlines as garbage (this
49681         is the historical behavior).  Formerly base64_decode.
49682         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49683         takes a decode context structure.
49684         * lib/base64.h (base64_decode): Macro for four-argument calls.
49685         (base64_decode_alloc): Likewise.
49686         * lib/base64.c (base64_decode_ctx): If a decode context structure
49687         was passed in use it to ignore newlines.  If a context structure
49688         was _not_ passed in, continue to treat newlines as garbage (this
49689         is the historical behavior).  Formerly base64_decode.
49690         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
49691         takes a decode context structure.
49692         * lib/base64.h (base64_decode): Macro for four-argument calls.
49693         (base64_decode_alloc): Likewise.
49694
49695 2008-05-19  Jim Meyering  <meyering@redhat.com>
49696
49697         avoid a warning from gcc
49698         * lib/trim.c (IF_LINT): Define.
49699         (trim2): Use it to avoid a "may be used uninitialized" warning.
49700
49701         Fix doc typo.
49702         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
49703
49704 2008-05-19  Bruno Haible  <bruno@clisp.org>
49705
49706         * doc/glibc-functions/getpass.texi: Document limits of other
49707         implementations.
49708
49709 2008-05-19  Simon Josefsson  <simon@josefsson.org>
49710             Bruno Haible <bruno@clisp.org>
49711
49712         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
49713
49714 2008-05-18  Bruno Haible  <bruno@clisp.org>
49715
49716         * modules/propername: New file, from GNU gettext.
49717         * lib/propername.h: New file, from GNU gettext.
49718         * lib/propername.c: New file, from GNU gettext.
49719         * MODULES.html.sh (Internationalization functions): Add propername.
49720
49721 2008-05-16  Jim Meyering  <meyering@redhat.com>
49722             Bruno Haible  <bruno@clisp.org>
49723
49724         Avoid some warnings from "gcc -Wshadow".
49725         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
49726
49727 2008-05-15  Eric Blake  <ebb9@byu.net>
49728
49729         Extend previous patch to cygwin 1.7.0.
49730         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
49731         fast implementation in cygwin >= 1.7.0.
49732         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49733         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49734
49735 2008-05-15  Bruno Haible  <bruno@clisp.org>
49736
49737         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
49738         implementation in glibc >= 2.9.
49739         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
49740         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49741
49742 2008-05-15  Bruno Haible  <bruno@clisp.org>
49743
49744         * MODULES.html.sh (Internationalization functions): Remove linebreak.
49745         (Unicode string functions): Add unilbrk/*.
49746         Reported by Karl Berry.
49747
49748 2008-05-15  Eric Blake  <ebb9@byu.net>
49749
49750         Fix violation of <stdbool.h> replacement in regex.
49751         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
49752         * lib/regexec.c (re_search_internal): Likewise.
49753         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
49754
49755 2008-05-15  Jim Meyering  <meyering@redhat.com>
49756
49757         avoid distracting test output when git or cvs is not found
49758         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
49759         * tests/test-vc-list-files-git.sh: Likewise.
49760
49761 2008-05-15  Eric Blake  <ebb9@byu.net>
49762
49763         Glibc finally accepted the memmem speedup code, bugzilla #5514.
49764         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
49765         glibc version.
49766         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
49767         * doc/posix-functions/strstr.texi (strstr): Likewise.
49768         * lib/str-two-way.h (MAX): Sychronize with glibc.
49769
49770 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
49771
49772         * lib/regcomp.c (optimize_utf8): Add a note on why we test
49773         opr.ctx_type.
49774         (calc_first): Initialize constraint field.
49775         (duplicate_node_closure): Use it instead of special casing ANCHORS.
49776         Fix grammar.
49777         (duplicate_node): Merge constraint field for all node types.
49778         (calc_eclosure_iter): Look at constraint field for all node types.
49779         * lib/regex_internal.c (create_cd_newstate): Don't look at
49780         opr.ctx_type.
49781
49782 2008-05-14  Bruno Haible  <bruno@clisp.org>
49783
49784         Help GCC to do better code generation.
49785         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
49786         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
49787         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
49788         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
49789         Declare with attribute 'malloc' if supported.
49790
49791 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
49792
49793         use "echo STR|wc -c" rather than unportable "expr length STR"
49794         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
49795         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
49796
49797 2008-05-14  Jim Meyering  <meyering@redhat.com>
49798
49799         use dd ibs=$n count=1 ... rather than less-portable head -c$n
49800         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
49801         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
49802         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
49803         via Collin Lasse.
49804
49805 2008-05-14  Eric Blake  <ebb9@byu.net>
49806
49807         Avoid quadratic growth in gl_LIBSOURCES.
49808         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
49809         Suggested by Bruno Haible.
49810
49811         Test xmemdup0.
49812         * modules/xmemdup0-tests: New file.
49813         * tests/test-xmemdup0.c: Likewise.
49814
49815 2008-05-13  Eric Blake  <ebb9@byu.net>
49816
49817         Split xmemdup0 into its own module.
49818         * modules/xmemdup0: New file.
49819         * lib/xmemdup0.h: Likewise.
49820         * lib/xmemdup0.c: Likewise.
49821         * MODULES.html.sh (Memory management functions): Add xmemdup0.
49822         * lib/xalloc.h (xmemdup0): Remove.
49823         * lib/xmalloc.c (xmemdup0): Likewise.
49824
49825 2008-05-13  Eric Blake  <ebb9@byu.net>
49826             Bruno Haible  <bruno@clisp.org>
49827
49828         Reduce number of forks required during autoconf.
49829         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
49830         and gl_LIBSOURCES_DIR.
49831         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
49832         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
49833         m4_syscmd per file.
49834         <m4_foreach_w>: Move...
49835         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
49836
49837 2008-05-13  Eric Blake  <ebb9@byu.net>
49838
49839         * gnulib-tool: Fix various comment typos.
49840
49841 2008-05-12  Bruno Haible  <bruno@clisp.org>
49842
49843         Tailor the linebreaking algorithm.
49844         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
49845
49846 2008-05-12  Bruno Haible  <bruno@clisp.org>
49847
49848         Update to Unicode 5.0.0.
49849         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49850         LBP_JV, LBP_JT. Redistribute values.
49851         (unilbrk_table): Change size.
49852         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
49853         Unicode TR#14 rev. 22.
49854         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
49855         LBP_JV, LBP_JT. Redistribute values.
49856         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
49857         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
49858         Update.
49859         * lib/unilbrk/lbrkprop1.h: Regenerated.
49860         * lib/unilbrk/lbrkprop2.h: Regenerated.
49861         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
49862         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
49863         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
49864         Likewise.
49865         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
49866         Likewise.
49867         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
49868         result.
49869         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
49870         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
49871         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
49872         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
49873         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
49874         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
49875
49876 2008-05-11  Bruno Haible  <bruno@clisp.org>
49877
49878         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
49879
49880 2008-05-11  Bruno Haible  <bruno@clisp.org>
49881
49882         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
49883         * modules/unilbrk/gen-lbrk: New file.
49884
49885 2008-05-11  Bruno Haible  <bruno@clisp.org>
49886
49887         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
49888         * m4/sha512.m4 (gl_SHA512): Likewise.
49889
49890 2008-05-11  Jim Meyering  <meyering@redhat.com>
49891
49892         New modules: crypto/sha256, crypto/sha512 (from coreutils)
49893         * modules/crypto/sha256: New file.
49894         * modules/crypto/sha512: Likewise.
49895         * lib/sha256.c: Likewise.
49896         * lib/sha256.h: Likewise.
49897         * lib/sha512.c: Likewise.
49898         * lib/sha512.h: Likewise.
49899         * lib/u64.h: Likewise.
49900         * m4/sha256.m4: Likewise.
49901         * m4/sha512.m4: Likewise.
49902         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
49903
49904 2008-05-10  Bruno Haible  <bruno@clisp.org>
49905
49906         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
49907         (Input/Output <stdio.h>): Add xprintf.
49908         (Signal handling <signal.h>): Add strsignal.
49909         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
49910         (Core language properties): Add func.
49911         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
49912         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
49913         strings.
49914         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
49915         (Input/output): New section.
49916         (File system functions): Add openat-die, stat-macros.
49917         (Networking functions): Add sockets.
49918         (Unicode string functions): Add unictype/*.
49919         (Support for building libraries and executables): Add gperf.
49920         (Support for building documentation): Add agpl-3.0.
49921         (Misc): Add nocrash.
49922
49923 2008-05-10  Bruno Haible  <bruno@clisp.org>
49924
49925         * modules/unictype/gen-ctype: New file.
49926
49927 2008-05-10  Jim Meyering  <meyering@redhat.com>
49928
49929         Make chdir-safer.c more efficient on a system with no symlinks.
49930         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
49931         also if ELOOP is zero.  Suggested by Bruno Haible.
49932
49933         Make chdir-safer.c slightly safer.
49934         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
49935         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
49936
49937         Avoid compile failure on systems without ELOOP (like mingw).
49938         * lib/chdir-safer.c (ELOOP): Define if not already defined.
49939         Reported by Bruno Haible.
49940
49941 2008-05-10  Bruno Haible  <bruno@clisp.org>
49942
49943         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
49944         (is_utf8_encoding): Use a case-insensitive comparison.
49945         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
49946         streq.
49947
49948 2008-05-10  Bruno Haible  <bruno@clisp.org>
49949
49950         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
49951         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
49952         * lib/unilbrk/ulc-common.h (iconv_string_length,
49953         iconv_string_keeping_offsets): Remove declarations.
49954         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
49955         Don't include <iconv.h>, streq.h, xsize.h.
49956         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
49957         conversion.
49958         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
49959         <iconv.h>, streq.h, xsize.h.
49960         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
49961         conversion.
49962         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
49963         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
49964         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
49965         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
49966
49967 2008-05-10  Bruno Haible  <bruno@clisp.org>
49968
49969         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
49970         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
49971
49972         * modules/unilbrk/u32-width-linebreaks-tests: New file.
49973         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
49974
49975         * modules/unilbrk/u16-width-linebreaks-tests: New file.
49976         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
49977
49978         * modules/unilbrk/u8-width-linebreaks-tests: New file.
49979         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
49980
49981         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
49982         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
49983
49984         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
49985         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
49986
49987         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
49988         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
49989
49990         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
49991         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
49992
49993 2008-05-10  Bruno Haible  <bruno@clisp.org>
49994
49995         Split up 'linebreak' module.
49996         * lib/unilbrk.h: New file, based on lib/linebreak.h.
49997         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
49998         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
49999         modifications.
50000         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
50001         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
50002         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
50003         lib/linebreak.c.
50004         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
50005         lib/linebreak.c.
50006         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
50007         lib/linebreak.c.
50008         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
50009         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
50010         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
50011         lib/linebreak.c.
50012         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
50013         lib/linebreak.c.
50014         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
50015         lib/linebreak.c.
50016         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
50017         lib/linebreak.c.
50018         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
50019         lib/linebreak.c.
50020         * modules/unilbrk/base: New file.
50021         * modules/unilbrk/tables: New file.
50022         * modules/unilbrk/u8-possible-linebreaks: New file.
50023         * modules/unilbrk/u16-possible-linebreaks: New file.
50024         * modules/unilbrk/u32-possible-linebreaks: New file.
50025         * modules/unilbrk/ulc-common: New file.
50026         * modules/unilbrk/ulc-possible-linebreaks: New file.
50027         * modules/unilbrk/u8-width-linebreaks: New file.
50028         * modules/unilbrk/u16-width-linebreaks: New file.
50029         * modules/unilbrk/u32-width-linebreaks: New file.
50030         * modules/unilbrk/ulc-width-linebreaks: New file.
50031         * lib/linebreak.h: Remove file.
50032         * lib/linebreak.c: Remove file.
50033         * m4/linebreak.m4: Remove file.
50034         * modules/linebreak: Remove file.
50035         * NEWS: Mention the changes.
50036
50037 2008-05-09  Eric Blake  <ebb9@byu.net>
50038
50039         Add xmemdup0.
50040         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
50041         implementation.
50042         * lib/xmalloc.c (xmemdup0): New C implementation.
50043
50044 2008-05-08  Bruno Haible  <bruno@clisp.org>
50045
50046         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
50047
50048 2008-05-07  Eric Blake  <ebb9@byu.net>
50049
50050         Support cross-compilation of <wctype.h>.
50051         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
50052         AC_CACHE_CHECK.
50053
50054 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
50055
50056         * build-aux/vc-list-files: Add support for bzr.
50057
50058 2008-05-03  Jim Meyering  <meyering@redhat.com>
50059
50060         avoid failed assertion with tight malloc
50061         * tests/test-getndelim2.c: Correct an off-by-one assertion.
50062
50063 2008-05-03  Simon Josefsson  <simon@josefsson.org>
50064
50065         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
50066         are needed from arpa/inet.h.
50067         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
50068         Reported by Bruno Haible.
50069
50070 2008-05-02  Jim Meyering  <meyering@redhat.com>
50071
50072         avoid compilation error on FreeBSD 6
50073         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
50074
50075 2008-05-01  Jim Meyering  <meyering@redhat.com>
50076
50077         useless-if-before-free: correct --help's exit status description
50078         * build-aux/useless-if-before-free (usage): Like grep, exit 0
50079         for one or more matches, etc.  Reported by Bruno Haible.
50080
50081         vc-list-files: make the stand-alone gnulib test work
50082         * modules/vc-list-files-tests (configure.ac):
50083         Define and AC_SUBST abs_aux_dir.
50084         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
50085         $(abs_top_srcdir) to each script and having each of them
50086         duplicate the work of setting PATH, set PATH here, using
50087         the new variable, abs_aux_dir instead.
50088         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
50089         * tests/test-vc-list-files-git.sh: Likewise.
50090         Reported by Bruno Haible.
50091
50092 2008-05-01  Bruno Haible  <bruno@clisp.org>
50093
50094         * lib/getndelim2.c (getndelim2): Fix newsize computation during
50095         reallocation. Rename 'done' to 'found_delimiter'.
50096
50097 2008-05-01  Jim Meyering  <meyering@redhat.com>
50098
50099         vc-list-files: accommodate /bin/sh like the one from Solaris 10
50100         * build-aux/vc-list-files: Use `...`, not $(...).
50101
50102 2008-04-30  Jim Meyering  <meyering@redhat.com>
50103
50104         add tests for vc-list-files
50105         * modules/vc-list-files-tests: New module.
50106         * tests/test-vc-list-files-cvs.sh: New file.
50107         * tests/test-vc-list-files-git.sh: New file.
50108
50109         avoid a warning from gcc
50110         * lib/getndelim2.c (IF_LINT): Define.
50111         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
50112
50113         vc-list-files: work properly with build-aux/cvsu, too
50114         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
50115         to all cvs-based clauses.
50116
50117         vc-list-files: work properly in the CVS+awk case, too
50118         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
50119
50120         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
50121         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
50122         take more than one file argument, so .  Add quotes, just in case $dir
50123         ever contains a shell meta-character.  Prompted by Soren Hansen in
50124         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
50125
50126 2008-04-29  Eric Blake  <ebb9@byu.net>
50127
50128         Optimize getndelim2 to use block operations when possible.
50129         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
50130         freadseek, and memchr2.
50131         * lib/getndelim2.c (getndelim2): Use them for block reads.
50132
50133 2008-04-29  Bruno Haible  <bruno@clisp.org>
50134
50135         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
50136         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50137         * modules/inet_ntop (Depends-on): Add extensions.
50138         * modules/inet_pton (Depends-on): Likewise.
50139         Reported by Simon Josefsson.
50140
50141 2008-04-29  Jim Meyering  <meyering@redhat.com>
50142
50143         When the is more than one match in a block, match all of them.
50144         * build-aux/useless-if-before-free: Iterate through each block
50145         until there are no more matches.
50146
50147         Fix broken useless-if-before-free script.
50148         * build-aux/useless-if-before-free: Fix typo: missing "?" after
50149         the expression to match cast of argument to free-like function.
50150
50151 2008-04-29  Eric Blake  <ebb9@byu.net>
50152
50153         Use new header.
50154         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
50155
50156 2008-04-29  Jim Meyering  <meyering@redhat.com>
50157
50158         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
50159         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
50160         by gnulib to exist and to declare e.g., inet_ntop.
50161         Don't include "inet_ntop.h", now removed.
50162
50163         * m4/arpa_inet_h.m4: Remove trailing blanks.
50164
50165 2008-04-29  Eric Blake  <ebb9@byu.net>
50166
50167         Silence valgrind on safe reads beyond potential array bounds.
50168         * lib/rawmemchr.valgrind: New file.
50169         * lib/strchrnul.valgrind: Likewise.
50170         * modules/rawmemchr (Files): Distribute new file.
50171         * modules/strchrnul (Files): Likewise.
50172         Suggested by Bruno Haible.
50173
50174 2008-04-29  Bruno Haible  <bruno@clisp.org>
50175
50176         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
50177         (inet_ntop, inet_pton): Change portability warning's wording.
50178         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
50179         Invoke gl_CHECK_NEXT_HEADERS.
50180         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
50181         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
50182         set ARPA_INET_H.
50183         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50184         * modules/arpa_inet (Description): No longer only for systems that
50185         lack it.
50186         (Depends-on): Add include_next.
50187         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
50188         HAVE_ARPA_INET_H.
50189
50190 2008-04-29  Jim Meyering  <meyering@redhat.com>
50191
50192         * modules/mkdir (License): Re-license as LGPLv2+.
50193
50194 2008-04-29  Bruno Haible  <bruno@clisp.org>
50195
50196         * modules/rawmemchr (Maintainer): Set to Eric.
50197         * modules/strchrnul (Maintainer): Likewise.
50198
50199 2008-04-29  Simon Josefsson  <simon@josefsson.org>
50200
50201         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
50202         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
50203
50204         * modules/arpa_inet (arpa/inet.h): Use them.
50205
50206 2008-04-28  Eric Blake  <ebb9@byu.net>
50207
50208         Test getndelim2.
50209         * modules/getndelim2-tests: New file.
50210         * tests/test-getndelim2.c: Likewise.
50211         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
50212         stream.
50213         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
50214
50215         * MODULES.html.sh: Document new module.
50216
50217 2008-04-20  Bruno Haible  <bruno@clisp.org>
50218
50219         * lib/c-stack.c (die): Use raise.
50220         * modules/c-stack (Depends-on): Add raise.
50221
50222 2008-04-28  Bruno Haible  <bruno@clisp.org>
50223
50224         Expect rpmatch to be declared.
50225         * lib/yesno.c (rpmatch): Remove declaration.
50226
50227         Declare rpmatch.
50228         * lib/stdlib.in.h (rpmatch): New declaration.
50229         * lib/rpmatch.c: Include <stdlib.h> first.
50230         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
50231         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
50232         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
50233         HAVE_RPMATCH.
50234         * modules/rpmatch (Depends-on): Add stdlib, extensions.
50235         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50236         (Include): Set to <stdlib.h>.
50237         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
50238         HAVE_RPMATCH.
50239         * NEWS: Document the change.
50240
50241 2008-04-28  Bruno Haible  <bruno@clisp.org>
50242
50243         Change rpmatch to use nl_langinfo when appropriate.
50244         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
50245         (N_): New macro.
50246         (localized_pattern): New function/macro.
50247         (try): Remove match, nomatch arguments. Copy the pattern into safe
50248         memory before caching it.
50249         (rpmatch): Use localized_pattern. Add translator comments.
50250         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
50251         Suggested by Eric Blake.
50252         * modules/rpmatch (Depends-on): Add stdbool.
50253
50254 2008-04-28  Eric Blake  <ebb9@byu.net>
50255
50256         Add rawmemchr module, matching glibc.
50257         * modules/string (Makefile.am): New indicator.
50258         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
50259         * lib/string.in.h (rawmemchr): Declare when appropriate.
50260         * modules/rawmemchr: New file.
50261         * m4/rawmemchr.m4: Likewise.
50262         * lib/rawmemchr.c: Likewise.
50263         * modules/rawmemchr-tests: Likewise.
50264         * tests/test-rawmemchr.c: Likewise.
50265         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
50266         module.
50267         * modules/strchrnul (Depends-on): Add rawmemchr.
50268         * lib/strchrnul.c (strchrnul): Optimize a corner case.
50269
50270         Whitespace cleanup.
50271         * tests/test-strchrnul.c: Reindent.
50272         * lib/strchrnul.c: Likewise.
50273
50274         Optimize and test strchrnul.
50275         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
50276         * modules/strchrnul-tests: New file.
50277         * tests/test-strchrnul.c: Likewise.
50278
50279         Remove intprops dependency.
50280         * modules/memchr (Depends-on): Remove intprops.
50281         * modules/memrchr (Depends-on): Likewise.
50282         * modules/memchr2 (Depends-on): Likewise.
50283         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
50284         * lib/memrchr.c (__memrchr): Likewise.
50285         * lib/memrchr2.c (memchr2): Likewise.
50286         Reported by Simon Josefsson.
50287
50288 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50289
50290         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
50291         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50292
50293 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50294
50295         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
50296
50297         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
50298
50299         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
50300
50301         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
50302         declarations.
50303         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
50304
50305         * m4/inet_pton.m4: Don't check for header files.
50306
50307         * m4/inet_ntop.m4: Don't check for header files.
50308
50309 2008-04-28  Simon Josefsson  <simon@josefsson.org>
50310
50311         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
50312         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
50313         trigger for cygwin).
50314         Reported by Bruno Haible  <bruno@clisp.org>.
50315
50316 2008-04-28  Bruno Haible  <bruno@clisp.org>
50317
50318         * doc/posix-functions/strdup.texi: Mention mingw problem.
50319
50320 2008-04-27  Bruno Haible  <bruno@clisp.org>
50321
50322         * modules/stat-time-tests (Depends-on): Add sleep.
50323         * tests/test-stat-time.c (force_unlink): New function.
50324         (cleanup): Use it.
50325         (test_mtime): Remove the ctime related tests.
50326         (test_ctime): New function, containing the ctime related tests.
50327         (main): Call test_ctime, except on native Windows platforms.
50328
50329 2008-04-27  Bruno Haible  <bruno@clisp.org>
50330
50331         * lib/rpmatch.c (rpmatch): Add some comments.
50332         Reported by James Youngman <jay@gnu.org>.
50333
50334 2008-04-27  Bruno Haible  <bruno@clisp.org>
50335
50336         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
50337         quiet NaNs.
50338
50339 2008-04-27  Bruno Haible  <bruno@clisp.org>
50340
50341         Make test-yesno.sh work on mingw.
50342         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
50343         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
50344         (main): Set stdin to binary mode.
50345         * modules/yesno-tests (Depends-on): Add binary-io.
50346
50347 2008-04-27  Bruno Haible  <bruno@clisp.org>
50348
50349         Fix 'isfinite' on x86, x86_64, ia64 platforms.
50350         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
50351         argument that lie outside the IEEE 854 domain.
50352         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
50353         (gl_ISFINITE): Use it.
50354         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
50355
50356 2008-04-27  Bruno Haible  <bruno@clisp.org>
50357
50358         Allow local renaming in config.h.
50359         * lib/memrchr.c (memrchr): Don't undefine outside libc.
50360
50361 2008-04-27  Bruno Haible  <bruno@clisp.org>
50362
50363         * lib/memchr.c (__memchr): Change type of 'i'.
50364         * lib/memchr2.c (memchr2): Likewise.
50365
50366 2008-04-26  Eric Blake  <ebb9@byu.net>
50367         and Bruno Haible  <bruno@clisp.org>
50368
50369         Optimize and test memrchr.
50370         * modules/memrchr (Depends-on): Add intprops.
50371         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
50372         * modules/memrchr-tests: New file.
50373         * tests/test-memrchr.c: New file.
50374
50375 2008-04-26  Bruno Haible  <bruno@clisp.org>
50376
50377         Add tentative support for DragonFly BSD.
50378         * lib/stdio-impl.h: Add macros for DragonFly BSD.
50379         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
50380         fp.
50381         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50382         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
50383         * lib/fpurge.c (fpurge): Likewise.
50384         * lib/freadable.c (freaadable): Likewise.
50385         * lib/freadahead.c (freadahead): Likewise.
50386         * lib/freading.c (freading): Likewise.
50387         * lib/freadptr.c (freadptr): Likewise.
50388         * lib/freadseek.c (freadptrinc): Likewise.
50389         * lib/fseeko.c (fseeko): Likewise.
50390         * lib/fseterr.c (fseterr): Likewise.
50391         * lib/fwritable.c (fwritable): Likewise.
50392         * lib/fwriting.c (fwriting): Likewise.
50393
50394 2008-04-26  Bruno Haible  <bruno@clisp.org>
50395
50396         * lib/stdio-impl.h: New file.
50397         * lib/fbufmode.c: Include stdio-impl.h.
50398         (fbufmode): Use fp_, remove redundant #defines.
50399         * lib/fflush.c: Include stdio-impl.h.
50400         (clear_ungetc_buffer): Remove redundant #defines.
50401         * lib/fpurge.c: Include stdio-impl.h.
50402         (fpurge): Remove redundant #defines.
50403         * lib/freadable.c: Include stdio-impl.h.
50404         (freadable): Remove redundant #defines.
50405         * lib/freadahead.c: Include stdio-impl.h.
50406         (freadahead): Remove redundant #defines.
50407         * lib/freading.c: Include stdio-impl.h.
50408         (freading): Remove redundant #defines.
50409         * lib/freadptr.c: Include stdio-impl.h.
50410         (freadptr): Remove redundant #defines.
50411         * lib/freadseek.c: Include stdio-impl.h.
50412         (freadptrinc): Remove redundant #defines.
50413         * lib/fseeko.c: Include stdio-impl.h.
50414         (rpl_fseeko): Remove redundant #defines.
50415         * lib/fseterr.c: Include stdio-impl.h.
50416         (fseterr): Remove redundant #defines.
50417         * lib/fwritable.c: Include stdio-impl.h.
50418         (fwritable: Remove redundant #defines.
50419         * lib/fwriting.c: Include stdio-impl.h.
50420         (fwriting): Remove redundant #defines.
50421         * modules/fbufmode (Files): Add lib/stdio-impl.h.
50422         * modules/fflush (Files): Likewise.
50423         * modules/fpurge (Files): Likewise.
50424         * modules/freadable (Files): Likewise.
50425         * modules/freadahead (Files): Likewise.
50426         * modules/freading (Files): Likewise.
50427         * modules/freadptr (Files): Likewise.
50428         * modules/freadseek (Files): Likewise.
50429         * modules/fseeko (Files): Likewise.
50430         * modules/fseterr (Files): Likewise.
50431         * modules/fwritable (Files): Likewise.
50432         * modules/fwriting (Files): Likewise.
50433
50434 2008-04-26  Bruno Haible  <bruno@clisp.org>
50435
50436         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
50437         restore_seek_optimization, update_fpos_cache): New functions, extracted
50438         from rpl_fflush.
50439         (rpl_fflush): Use them.
50440         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
50441         (gl_REPLACE_FFLUSH): Use it.
50442
50443 2008-04-26  Bruno Haible  <bruno@clisp.org>
50444
50445         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
50446         on Solaris.
50447         * tests/test-xstrtoimax.sh: Likewise.
50448         * tests/test-xstrtoumax.sh: Likewise.
50449         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50450
50451 2008-04-26  Bruno Haible  <bruno@clisp.org>
50452
50453         * modules/memchr-tests: New file.
50454         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
50455
50456 2008-04-26  Eric Blake  <ebb9@byu.net>
50457             Bruno Haible  <bruno@clisp.org>
50458
50459         * lib/memchr.c: Include intprops.h.
50460         (__memchr): Optimize parallel detection of matching bytes. Rename local
50461         variables. Add explanatory comments.
50462
50463 2008-04-26  Bruno Haible  <bruno@clisp.org>
50464
50465         Fix module 'memchr', broken since 2000-10-28.
50466         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
50467
50468 2008-04-26  Bruno Haible  <bruno@clisp.org>
50469
50470         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
50471         comments.
50472
50473 2008-04-25  Eric Blake  <ebb9@byu.net>
50474
50475         Use native fstatat on cygwin 1.7.0.
50476         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
50477         first.
50478
50479 2008-04-23  Eric Blake  <ebb9@byu.net>
50480
50481         Improve memchr2 performance.
50482         * lib/memchr2.c (memchr2): Further optimize parallel detection of
50483         NUL bytes.
50484         * modules/memchr2 (Depends-on): Use intprops.h.
50485
50486 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50487
50488         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
50489         an inline function instead of a CPP macro.  Patch by Ben Pfaff
50490         <blp@cs.stanford.edu>.
50491
50492 2008-04-23  Simon Josefsson  <simon@josefsson.org>
50493
50494         * lib/arpa_inet.in.h: New file.
50495
50496         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
50497         (Makefile.am): Sed in substitute header file.
50498
50499         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
50500         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
50501
50502         * modules/inet_ntop (configure.ac): Use
50503         gl_ARPA_INET_MODULE_INDICATOR.
50504
50505         * modules/inet_pton (configure.ac): Use
50506         gl_ARPA_INET_MODULE_INDICATOR.
50507
50508 2008-04-22  Jim Meyering  <meyering@redhat.com>
50509
50510         * modules/verify (License): Re-license as LGPLv2+.
50511
50512 2008-04-22  Simon Josefsson  <simon@josefsson.org>
50513
50514         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
50515         parameter to void* as per POSIX standard (MinGW uses char*).
50516
50517 2008-04-21  Bruno Haible  <bruno@clisp.org>
50518
50519         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
50520         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
50521         Define to replacements if REPLACE_ISWCNTRL is 1.
50522         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
50523         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
50524         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
50525         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
50526         what it fixes.
50527         * doc/posix-functions/iswalpha.texi: Likewise.
50528         * doc/posix-functions/iswblank.texi: Likewise.
50529         * doc/posix-functions/iswcntrl.texi: Likewise.
50530         * doc/posix-functions/iswdigit.texi: Likewise.
50531         * doc/posix-functions/iswgraph.texi: Likewise.
50532         * doc/posix-functions/iswlower.texi: Likewise.
50533         * doc/posix-functions/iswprint.texi: Likewise.
50534         * doc/posix-functions/iswpunct.texi: Likewise.
50535         * doc/posix-functions/iswspace.texi: Likewise.
50536         * doc/posix-functions/iswupper.texi: Likewise.
50537         * doc/posix-functions/iswxdigit.texi: Likewise.
50538         Reported by Alain Guibert.
50539
50540 2008-04-21  Bruno Haible  <bruno@clisp.org>
50541
50542         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
50543         Patch by Alain Guibert.
50544
50545 2008-04-21  Bruno Haible  <bruno@clisp.org>
50546
50547         Fix test failures on mingw.
50548         * tests/test-xstrtol.c (print_no_progname): New function.
50549         (main): Install it in error_print_progname hook.
50550         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
50551         * tests/test-xstrtoimax.sh: Likewise.
50552         * tests/test-xstrtoumax.sh: Likewise.
50553
50554 2008-04-21  Bruno Haible  <bruno@clisp.org>
50555
50556         Fix test failure on mingw.
50557         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
50558
50559 2008-04-21  Bruno Haible  <bruno@clisp.org>
50560
50561         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
50562         Actually assign a value.
50563
50564 2008-04-20  Bruno Haible  <bruno@clisp.org>
50565
50566         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
50567         take 2.
50568         * lib/canonicalize.c (canonicalize_file_name): Elide if the
50569         'canonicalize-lgpl' module is also used.
50570         * lib/canonicalize-lgpl.c: Undo last change.
50571         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
50572
50573 2008-04-20  Bruno Haible  <bruno@clisp.org>
50574
50575         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
50576         config.h. Provide _mkdir based fallback for mingw.
50577         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
50578         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
50579         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
50580         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
50581         rather than defining mkdir in config.h.
50582         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
50583         (gl_SYS_STAT_H_DEFAULTS): New macro.
50584         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
50585         HAVE_IO_H any more.
50586         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
50587         HAVE_DECL_MKDIR and HAVE_IO_H.
50588
50589 2008-04-20  Bruno Haible  <bruno@clisp.org>
50590
50591         * lib/isapipe.c: Port to native Windows platforms.
50592
50593 2008-04-20  Bruno Haible  <bruno@clisp.org>
50594
50595         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
50596
50597 2008-04-21  Eric Blake  <ebb9@byu.net>
50598
50599         Work around preprocessors that don't handle UINTMAX_MAX.
50600         * lib/memchr2.c (memchr2): Avoid embedded #if.
50601         Reported by Alain Guibert, fix suggested by Bruno Haible.
50602
50603 2008-04-21  Simon Josefsson  <simon@josefsson.org>
50604
50605         * doc/posix-functions/strftime.texi (strftime): Explain better
50606         Windows incompatibility.  Suggested by Micah Cowan
50607         <micah@cowan.name>.
50608
50609 2008-04-20  Bruno Haible  <bruno@clisp.org>
50610
50611         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
50612         unistr/u8-mblen.
50613
50614 2008-04-20  Bruno Haible  <bruno@clisp.org>
50615
50616         Fix test failure on platforms with non-GNU iconv.
50617         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
50618         (U_TO_U8): Use it, rather than u16_to_u8.
50619         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
50620         units at the end of the input string.
50621         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
50622
50623 2008-04-20  Bruno Haible  <bruno@clisp.org>
50624
50625         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
50626         when the resulting length is 0.
50627         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
50628
50629 2008-04-20  Bruno Haible  <bruno@clisp.org>
50630
50631         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
50632         works.
50633         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
50634
50635 2008-04-20  Bruno Haible  <bruno@clisp.org>
50636
50637         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
50638         * modules/tsearch-tests (configure.ac): Test for initstate function.
50639
50640 2008-04-20  Bruno Haible  <bruno@clisp.org>
50641
50642         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
50643         for nlink_t if missing.
50644         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
50645
50646 2008-04-19  Bruno Haible  <bruno@clisp.org>
50647
50648         Work around snprintf bug on Linux libc5.
50649         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
50650         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50651         gl_SNPRINTF_SIZE1.
50652         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50653         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
50654         that test failed.
50655         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
50656         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
50657         * modules/snprintf (Files): Add m4/printf.m4.
50658         * modules/vsnprintf (Files): Likewise.
50659         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
50660         * doc/posix-functions/vsnprintf.texi: Likewise.
50661
50662 2008-04-19  Bruno Haible  <bruno@clisp.org>
50663
50664         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
50665         from 0.0058 to less than 10^-7.
50666
50667 2008-04-19  Bruno Haible  <bruno@clisp.org>
50668
50669         Fix rounding when a precision is given.
50670         * lib/vasnprintf.c (is_borderline): New function.
50671         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
50672         9...9x.
50673         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
50674         %e, %g.
50675         * tests/test-vasprintf-posix.c (test_function): Likewise.
50676         * tests/test-snprintf-posix.h (test_function): Likewise.
50677         * tests/test-sprintf-posix.h (test_function): Likewise.
50678         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
50679         * tests/test-printf-posix.h (test_function): Likewise.
50680         * tests/test-printf-posix.output: Update.
50681         Reported by John Darrington <john@darrington.wattle.id.au> via
50682         Ben Pfaff <blp@cs.stanford.edu>.
50683
50684 2008-04-18  Simon Josefsson  <simon@josefsson.org>
50685
50686         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
50687         Suggested by Bruno Haible <bruno@clisp.org>.
50688
50689 2008-04-17  Bruno Haible  <bruno@clisp.org>
50690
50691         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
50692         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
50693         implementation.
50694         Patch by Bruce Merry <bmerry@gmail.com>.
50695
50696 2008-04-17  Simon Josefsson  <simon@josefsson.org>
50697
50698         * doc/posix-functions/strftime.texi (strftime): Mention that %e
50699         doesn't work under Windows.
50700
50701 2008-04-16  Bruno Haible  <bruno@clisp.org>
50702
50703         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
50704         New macros.
50705         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
50706         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
50707         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
50708         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
50709         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
50710         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
50711         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
50712         macros.
50713         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
50714         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
50715         Northern Sotho, Uighur.
50716
50717 2008-04-16  Bruno Haible  <bruno@clisp.org>
50718
50719         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
50720         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
50721         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
50722         Reported by Daniel Bergström <daniel@octocode.com>.
50723
50724 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
50725             Bruno Haible  <bruno@clisp.org>
50726
50727         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
50728         function.
50729         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
50730         New functions, mostly extracted from gl_locale_name_default.
50731         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
50732
50733 2008-04-16  Eric Blake  <ebb9@byu.net>
50734
50735         Adjust strtod detection to catch glibc 2.7 bug.
50736         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
50737         Reported by John Gatewood Ham.
50738
50739 2008-04-16  Bruno Haible  <bruno@clisp.org>
50740
50741         Add tentative support for Linux libc5.
50742         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
50743         * lib/fpurge.c (fpurge): Likewise.
50744         * lib/freadable.c (freadable): Likewise.
50745         * lib/freadahead.c (freadahead): Likewise.
50746         * lib/freading.c (freading): Likewise.
50747         * lib/freadptr.c (freadptr): Likewise.
50748         * lib/freadseek.c (freadptrinc): Likewise.
50749         * lib/fseeko.c (rpl_fseeko): Likewise.
50750         * lib/fseterr.c (fseterr): Likewise.
50751         * lib/fwritable.c (fwritable): Likewise.
50752         * lib/fwriting.c (fwriting): Likewise.
50753         Reported by Alain Guibert <alguibert+bts@free.fr>.
50754
50755 2008-04-15  Bruno Haible  <bruno@clisp.org>
50756
50757         * modules/mathl (configure.ac): Define module indicator.
50758
50759 2008-04-15  Bruno Haible  <bruno@clisp.org>
50760
50761         * lib/logl.c (logl): Remove unused variables.
50762
50763 2008-04-15  Bruno Haible  <bruno@clisp.org>
50764
50765         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
50766         fails.
50767
50768 2008-04-15  Bruno Haible  <bruno@clisp.org>
50769
50770         * lib/trim.c (trim2): Fix argument of isspace() macro.
50771
50772 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
50773
50774         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
50775         to 0.
50776         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
50777
50778 2008-04-14  Bruno Haible  <bruno@clisp.org>
50779
50780         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
50781         AC_LANG_PROGRAM argument.
50782         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
50783         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
50784         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
50785         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
50786         * m4/math_h.m4 (gl_MATH_H): Likewise.
50787         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
50788         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50789         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
50790         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
50791         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
50792         * m4/regex.m4 (gl_REGEX): Likewise.
50793         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
50794         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
50795         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50796         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
50797         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
50798         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50799         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50800         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
50801
50802 2008-04-14  Jim Meyering  <meyering@redhat.com>
50803
50804         test-strtod: fix typos: s/abs/fabs/
50805         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
50806
50807 2008-04-13  Bruno Haible  <bruno@clisp.org>
50808
50809         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
50810         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
50811         module is also used and while not building the reloc-wrapper.
50812
50813 2008-04-13  Bruno Haible  <bruno@clisp.org>
50814
50815         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
50816
50817 2008-04-13  Bruno Haible  <bruno@clisp.org>
50818
50819         Fix AIX compilation failure introduced on 2008-04-02.
50820         * tests/test-frexp.c (exp): Undefine before redefining.
50821         * tests/test-frexpl.c (exp): Likewise.
50822
50823 2008-04-13  Bruno Haible  <bruno@clisp.org>
50824
50825         Work around a HP-UX stdio bug.
50826         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
50827         * tests/test-ftello.c (main): Likewise.
50828         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
50829         * doc/posix-functions/ftello.texi: Likewise.
50830
50831 2008-04-13  Bruno Haible  <bruno@clisp.org>
50832
50833         Make test-signbit pass on HP-UX/hppa.
50834         * tests/test-signbit.c (minus_zerol): New variable.
50835         (test_signbitl): Use it.
50836
50837 2008-04-13  Bruno Haible  <bruno@clisp.org>
50838
50839         Make truncl work on OSF/1 4.0.
50840         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
50841         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50842         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
50843         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
50844         HAVE_DECL_TRUNCL.
50845         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
50846         HAVE_DECL_TRUNCL.
50847         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
50848
50849 2008-04-13  Bruno Haible  <bruno@clisp.org>
50850
50851         * lib/unictype.h: Remove trailing comma from enumeration definitions.
50852
50853 2008-04-13  Bruno Haible  <bruno@clisp.org>
50854
50855         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
50856         expression, so as to avoid HP-UX 11 cc compiler bug.
50857
50858 2008-04-13  Bruno Haible  <bruno@clisp.org>
50859
50860         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
50861
50862 2008-04-13  Bruno Haible  <bruno@clisp.org>
50863
50864         * lib/git-merge-changelog.c: Remove empty declaration outside of
50865         functions.
50866
50867 2008-04-13  Bruno Haible  <bruno@clisp.org>
50868
50869         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
50870
50871 2008-04-13  Bruno Haible  <bruno@clisp.org>
50872
50873         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
50874         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
50875         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
50876         also if it exists but lacks definitions of the SHUT_* macros.
50877         * modules/sys_socket (Description): Update.
50878         Reported by Elbert Pol <e.pol@chello.nl>.
50879
50880 2008-04-13  Bruno Haible  <bruno@clisp.org>
50881
50882         * lib/localcharset.c (OS2): Don't redefine if already defined.
50883         Reported by Elbert Pol <e.pol@chello.nl>.
50884
50885 2008-04-13  Bruno Haible  <bruno@clisp.org>
50886
50887         * lib/binary-io.h [__EMX__]: Include <io.h>.
50888         Reported by Elbert Pol <e.pol@chello.nl>.
50889
50890 2008-04-12  Bruno Haible  <bruno@clisp.org>
50891
50892         * lib/fpucw.h: Enable the definitions also for x86_64.
50893         Needed for NetBSD/x86_64.
50894         Reported by Thomas Klausner <tk@giga.or.at>.
50895
50896 2008-04-12  Bruno Haible  <bruno@clisp.org>
50897
50898         * tests/test-strtod.c: Include isnand.h.
50899         (main): Use isnand instead of isnan.
50900         Reported by Jim Meyering.
50901
50902 2008-04-12  Bruno Haible  <bruno@clisp.org>
50903
50904         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
50905         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
50906
50907 2008-04-12  Jim Meyering  <meyering@redhat.com>
50908
50909         * m4/math_h.m4 (gl_MATH_H): Fix typos.
50910
50911 2008-04-12  Bruno Haible  <bruno@clisp.org>
50912
50913         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
50914         Reported by Elbert Pol <e.pol@chello.nl>.
50915
50916 2008-04-12  Eric Blake  <ebb9@byu.net>
50917
50918         Work around Solaris 10 math.h bug.
50919         * m4/math_h.m4 (gl_MATH_H): Check for bug.
50920         (gl_MATH_H_DEFAULTS): Set up default.
50921         * modules/math (Makefile.am): Replace new indicators.
50922         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
50923         * tests/test-math.c (main): Test this.
50924         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
50925         * doc/posix-headers/math.texi (math.h): Mention bug.
50926         Reported by Nelson H. F. Beebe and Jim Meyering.
50927
50928 2008-04-11  Bruno Haible  <bruno@clisp.org>
50929
50930         Adapt to future versions of Apple GCC.
50931         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
50932         Reported by Peter O'Gorman <peter@pogma.com>.
50933
50934 2008-04-11  Bruno Haible  <bruno@clisp.org>
50935
50936         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
50937
50938 2008-04-11  Bruno Haible  <bruno@clisp.org>
50939
50940         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
50941
50942         * modules/getaddrinfo-tests (Makefile.am): Define
50943         test_getaddrinfo_LDADD.
50944
50945 2008-04-11  Bruno Haible  <bruno@clisp.org>
50946
50947         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
50948         (init): Fix syntax error.
50949         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
50950         is declared.
50951
50952 2008-04-11  Bruno Haible  <bruno@clisp.org>
50953
50954         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
50955         * modules/glob (Depends-on): Add stdbool.
50956
50957 2008-04-11  Bruno Haible  <bruno@clisp.org>
50958
50959         * lib/trim.c: Include <string.h>.
50960
50961 2008-04-11  Eric Blake  <ebb9@byu.net>
50962
50963         Avoid compile failure on OS/2.
50964         * lib/regex_internal.h (internal_function): Disable optimization
50965         on OS/2 (__EMX__), where it caused compiler error.
50966         Reported by Elbert Pol.
50967
50968 2008-04-11  Bruno Haible  <bruno@clisp.org>
50969
50970         Flush the standard error stream before aborting. Needed on mingw.
50971         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
50972         * tests/test-array_list.c (ASSERT): Likewise.
50973         * tests/test-array_oset.c (ASSERT): Likewise.
50974         * tests/test-avltree_list.c (ASSERT): Likewise.
50975         * tests/test-avltree_oset.c (ASSERT): Likewise.
50976         * tests/test-avltreehash_list.c (ASSERT): Likewise.
50977         * tests/test-binary-io.c (ASSERT): Likewise.
50978         * tests/test-byteswap.c (ASSERT): Likewise.
50979         * tests/test-c-ctype.c (ASSERT): Likewise.
50980         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
50981         * tests/test-c-strcasestr.c (ASSERT): Likewise.
50982         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
50983         * tests/test-c-strstr.c (ASSERT): Likewise.
50984         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
50985         * tests/test-canonicalize.c (ASSERT): Likewise.
50986         * tests/test-carray_list.c (ASSERT): Likewise.
50987         * tests/test-ceilf1.c (ASSERT): Likewise.
50988         * tests/test-ceilf2.c (ASSERT): Likewise.
50989         * tests/test-ceill.c (ASSERT): Likewise.
50990         * tests/test-count-one-bits.c (ASSERT): Likewise.
50991         * tests/test-fbufmode.c (ASSERT): Likewise.
50992         * tests/test-fflush2.c (ASSERT): Likewise.
50993         * tests/test-floorf1.c (ASSERT): Likewise.
50994         * tests/test-floorf2.c (ASSERT): Likewise.
50995         * tests/test-floorl.c (ASSERT): Likewise.
50996         * tests/test-fopen.c (ASSERT): Likewise.
50997         * tests/test-fpending.c (ASSERT): Likewise.
50998         * tests/test-fprintf-posix.c (ASSERT): Likewise.
50999         * tests/test-fpurge.c (ASSERT): Likewise.
51000         * tests/test-freadable.c (ASSERT): Likewise.
51001         * tests/test-freadahead.c (ASSERT): Likewise.
51002         * tests/test-freading.c (ASSERT): Likewise.
51003         * tests/test-freadptr.c (ASSERT): Likewise.
51004         * tests/test-freadptr2.c (ASSERT): Likewise.
51005         * tests/test-freadseek.c (ASSERT): Likewise.
51006         * tests/test-freopen.c (ASSERT): Likewise.
51007         * tests/test-frexp.c (ASSERT): Likewise.
51008         * tests/test-frexpl.c (ASSERT): Likewise.
51009         * tests/test-fseek.c (ASSERT): Likewise.
51010         * tests/test-fseeko.c (ASSERT): Likewise.
51011         * tests/test-fstrcmp.c (ASSERT): Likewise.
51012         * tests/test-ftell.c (ASSERT): Likewise.
51013         * tests/test-ftello.c (ASSERT): Likewise.
51014         * tests/test-func.c (ASSERT): Likewise.
51015         * tests/test-fwritable.c (ASSERT): Likewise.
51016         * tests/test-fwriting.c (ASSERT): Likewise.
51017         * tests/test-getdelim.c (ASSERT): Likewise.
51018         * tests/test-getline.c (ASSERT): Likewise.
51019         * tests/test-i-ring.c (ASSERT): Likewise.
51020         * tests/test-iconv-utf.c (ASSERT): Likewise.
51021         * tests/test-iconv.c (ASSERT): Likewise.
51022         * tests/test-isfinite.c (ASSERT): Likewise.
51023         * tests/test-isnand.c (ASSERT): Likewise.
51024         * tests/test-isnanf.c (ASSERT): Likewise.
51025         * tests/test-isnanl.h (ASSERT): Likewise.
51026         * tests/test-ldexpl.c (ASSERT): Likewise.
51027         * tests/test-linked_list.c (ASSERT): Likewise.
51028         * tests/test-linkedhash_list.c (ASSERT): Likewise.
51029         * tests/test-localename.c (ASSERT): Likewise.
51030         * tests/test-lseek.c (ASSERT): Likewise.
51031         * tests/test-mbscasecmp.c (ASSERT): Likewise.
51032         * tests/test-mbscasestr1.c (ASSERT): Likewise.
51033         * tests/test-mbscasestr2.c (ASSERT): Likewise.
51034         * tests/test-mbscasestr3.c (ASSERT): Likewise.
51035         * tests/test-mbscasestr4.c (ASSERT): Likewise.
51036         * tests/test-mbschr.c (ASSERT): Likewise.
51037         * tests/test-mbscspn.c (ASSERT): Likewise.
51038         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
51039         * tests/test-mbspbrk.c (ASSERT): Likewise.
51040         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
51041         * tests/test-mbsrchr.c (ASSERT): Likewise.
51042         * tests/test-mbsspn.c (ASSERT): Likewise.
51043         * tests/test-mbsstr1.c (ASSERT): Likewise.
51044         * tests/test-mbsstr2.c (ASSERT): Likewise.
51045         * tests/test-mbsstr3.c (ASSERT): Likewise.
51046         * tests/test-memchr2.c (ASSERT): Likewise.
51047         * tests/test-memmem.c (ASSERT): Likewise.
51048         * tests/test-open.c (ASSERT): Likewise.
51049         * tests/test-printf-frexp.c (ASSERT): Likewise.
51050         * tests/test-printf-frexpl.c (ASSERT): Likewise.
51051         * tests/test-printf-posix.c (ASSERT): Likewise.
51052         * tests/test-quotearg.c (ASSERT): Likewise.
51053         * tests/test-rbtree_list.c (ASSERT): Likewise.
51054         * tests/test-rbtree_oset.c (ASSERT): Likewise.
51055         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
51056         * tests/test-round1.c (ASSERT): Likewise.
51057         * tests/test-roundf1.c (ASSERT): Likewise.
51058         * tests/test-roundl.c (ASSERT): Likewise.
51059         * tests/test-signbit.c (ASSERT): Likewise.
51060         * tests/test-sleep.c (ASSERT): Likewise.
51061         * tests/test-snprintf-posix.c (ASSERT): Likewise.
51062         * tests/test-snprintf.c (ASSERT): Likewise.
51063         * tests/test-sprintf-posix.c (ASSERT): Likewise.
51064         * tests/test-stat-time.c (ASSERT): Likewise.
51065         * tests/test-strcasestr.c (ASSERT): Likewise.
51066         * tests/test-strerror.c (ASSERT): Likewise.
51067         * tests/test-striconv.c (ASSERT): Likewise.
51068         * tests/test-striconveh.c (ASSERT): Likewise.
51069         * tests/test-striconveha.c (ASSERT): Likewise.
51070         * tests/test-strsignal.c (ASSERT): Likewise.
51071         * tests/test-strstr.c (ASSERT): Likewise.
51072         * tests/test-strtod.c (ASSERT): Likewise.
51073         * tests/test-trunc1.c (ASSERT): Likewise.
51074         * tests/test-trunc2.c (ASSERT): Likewise.
51075         * tests/test-truncf1.c (ASSERT): Likewise.
51076         * tests/test-truncf2.c (ASSERT): Likewise.
51077         * tests/test-truncl.c (ASSERT): Likewise.
51078         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
51079         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
51080         * tests/test-vasnprintf.c (ASSERT): Likewise.
51081         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
51082         * tests/test-vasprintf.c (ASSERT): Likewise.
51083         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
51084         * tests/test-vprintf-posix.c (ASSERT): Likewise.
51085         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
51086         * tests/test-vsnprintf.c (ASSERT): Likewise.
51087         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
51088         * tests/test-wcwidth.c (ASSERT): Likewise.
51089         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
51090         * tests/test-xprintf-posix.c (ASSERT): Likewise.
51091         * tests/test-xvasprintf.c (ASSERT): Likewise.
51092         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
51093         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
51094         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
51095         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
51096         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
51097         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
51098         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
51099         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
51100         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
51101         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
51102         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
51103         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
51104         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
51105         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
51106         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
51107         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
51108         * tests/unictype/test-block_list.c (ASSERT): Likewise.
51109         * tests/unictype/test-block_of.c (ASSERT): Likewise.
51110         * tests/unictype/test-block_test.c (ASSERT): Likewise.
51111         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
51112         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
51113         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
51114         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
51115         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
51116         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
51117         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
51118         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
51119         * tests/unictype/test-combining.c (ASSERT): Likewise.
51120         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
51121         * tests/unictype/test-digit.c (ASSERT): Likewise.
51122         * tests/unictype/test-mirror.c (ASSERT): Likewise.
51123         * tests/unictype/test-numeric.c (ASSERT): Likewise.
51124         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
51125         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
51126         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
51127         * tests/unictype/test-scripts.c (ASSERT): Likewise.
51128         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
51129         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
51130         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
51131         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
51132         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
51133         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
51134         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
51135         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
51136         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
51137         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
51138         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
51139         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
51140         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
51141         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
51142         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
51143         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
51144         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
51145         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
51146         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
51147         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
51148         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
51149         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
51150         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
51151         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
51152         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
51153         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
51154         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
51155         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
51156         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
51157         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
51158         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
51159         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
51160         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
51161         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
51162         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
51163         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
51164         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
51165         Reported by Eric Blake.
51166
51167 2008-04-11  Bruno Haible  <bruno@clisp.org>
51168
51169         * lib/wchar.in.h: Tweak comment.
51170
51171 2008-04-11  Bruno Haible  <bruno@clisp.org>
51172
51173         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
51174         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
51175         gl_COMMON.
51176         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
51177
51178 2008-04-11  Bruno Haible  <bruno@clisp.org>
51179
51180         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
51181
51182 2008-04-11  Simon Josefsson  <simon@josefsson.org>
51183
51184         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
51185         of attempting to use non-existing /dev/*random.  Based on patch
51186         from Adam Strzelecki <ono@java.pl> in
51187         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
51188
51189 2008-04-08  Bruno Haible  <bruno@clisp.org>
51190
51191         Add tentative support for emx+gcc.
51192         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
51193         * lib/fpurge.c (fpurge): Likewise.
51194         * lib/freadable.c (freadable): Likewise.
51195         * lib/freadahead.c (freadahead): Likewise.
51196         * lib/freading.c (freading): Likewise.
51197         * lib/freadptr.c (freadptr): Likewise.
51198         * lib/freadseek.c (freadptrinc): Likewise.
51199         * lib/fseeko.c (rpl_fseeko): Likewise.
51200         * lib/fseterr.c (fseterr): Likewise.
51201         * lib/fwritable.c (fwritable): Likewise.
51202         * lib/fwriting.c (fwriting): Likewise.
51203         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
51204
51205 2008-04-09  Eric Blake  <ebb9@byu.net>
51206
51207         Avoid some autoconf warnings.
51208         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
51209         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
51210         * m4/afs.m4 (gl_AFS): Likewise.
51211         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
51212         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
51213         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51214         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
51215         (gl_INTEGER_TYPE_SUFFIX): Likewise.
51216         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
51217         (AC_CHECK_DECLS_ONCE): Likewise.
51218         Rename file...
51219         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
51220         gnulib-tool requires autoconf 2.59 or better.
51221         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
51222
51223 2008-04-08  Eric Blake  <ebb9@byu.net>
51224
51225         Use 'git describe --match' if present (added in git 1.5.5).
51226         * build-aux/git-version-gen: Limit result to tags that match 'v*'
51227         if possible.
51228
51229 2008-04-08  Bruno Haible  <bruno@clisp.org>
51230
51231         Add tentative support for OpenServer.
51232         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
51233         _ptr, _cnt.
51234         * lib/fpurge.c (fpurge): Likewise.
51235         * lib/freadable.c (freadable): Likewise.
51236         * lib/freadahead.c (freadahead): Likewise.
51237         * lib/freading.c (freading): Likewise.
51238         * lib/freadptr.c (freadptr): Likewise.
51239         * lib/freadseek.c (freadptrinc): Likewise.
51240         * lib/fseeko.c (rpl_fseeko): Likewise.
51241         * lib/fseterr.c (fseterr): Likewise.
51242         * lib/fwritable.c (fwritable): Likewise.
51243         * lib/fwriting.c (fwriting): Likewise.
51244         Reported by Roger Cornelius <rac@tenzing.org> and
51245         Brian K. White <brian@aljex.com>.
51246
51247 2008-04-06  Jim Meyering  <meyering@redhat.com>
51248
51249         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
51250
51251 2008-04-06  Bruno Haible  <bruno@clisp.org>
51252
51253         Avoid possible error with non-ASCII bytes in UTF-8 locales.
51254         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
51255         * tests/test-printf-posix.sh: Likewise.
51256         * tests/test-vfprintf-posix.sh: Likewise.
51257         * tests/test-vprintf-posix.sh: Likewise.
51258         * tests/test-xprintf-posix.sh: Likewise.
51259
51260 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51261
51262         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
51263         hide error from 'ls', needed on OS/2.
51264         Report by Elbert Pol <elbert.pol@gmail.com>.
51265
51266 2008-04-04  Eric Blake  <ebb9@byu.net>
51267
51268         Make test-fseeko.c failures meaningful.
51269         * tests/test-fseeko.c: Print line number on failure.
51270         * tests/test-fseek.c: Likewise.
51271         Reported by Nelson H. F. Beebe.
51272
51273         Improve strtod bug detection check.
51274         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
51275         required for Solaris 10.
51276         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
51277
51278 2008-04-04  Bruno Haible  <bruno@clisp.org>
51279
51280         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
51281         by m4/setenv.m4.
51282
51283 2008-04-03  Eric Blake  <ebb9@byu.net>
51284
51285         Ensure sane .version contents.
51286         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
51287         version string.
51288         * build-aux/git-version-gen: Improve documentation.
51289
51290         Make GNU make output nicer.
51291         * top/GNUmakefile [!_have-Makefile]: Add dependency on
51292         MAKECMDGOALS to enforce message for all command line targets.  Set
51293         srcdir for use in maint.mk.
51294
51295         Another maintainer tweak.
51296         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
51297         a target that regenerates version.
51298
51299 2008-04-03  Jim Meyering  <meyering@redhat.com>
51300
51301         vc-list-files: don't cause coreutils "make po-check" failure
51302         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
51303
51304 2008-04-03  Eric Blake  <ebb9@byu.net>
51305
51306         Allow VPATH usage of vc-list-files.
51307         * build-aux/vc-list-files (scriptversion): Add timestamp.
51308         (options): Add --help, --version, -C.
51309         (CVS): Support installed cvsu.
51310
51311 2008-04-02  Bruno Haible  <bruno@clisp.org>
51312
51313         Avoid some "statement with no effect" warnings from gcc.
51314         * tests/test-wctype.c (main): Explicitly ignore unused values.
51315         Reported by Jim Meyering.
51316
51317 2008-04-02  Jim Meyering  <meyering@redhat.com>
51318
51319         Avoid some warnings from "gcc -Wshadow".
51320         * tests/test-frexp.c (exp): Define to a different identifier.
51321         * tests/test-frexpl.c (exp): Likewise.
51322
51323 2008-04-03  Jim Meyering  <meyering@redhat.com>
51324
51325         bootstrap: remove dangling *.[ch] symlinks from lib
51326         * build-aux/bootstrap [dangling symlink removal]: Move find's
51327         -depth option to precede all others, to avoid a warning.
51328         Remove *.[ch] files too, and from "$source_base" (usually lib/).
51329
51330 2008-04-02  Bruno Haible  <bruno@clisp.org>
51331
51332         Avoid some warnings from "gcc -Wshadow".
51333         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
51334         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
51335         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
51336         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
51337         Reported by Jim Meyering.
51338
51339 2008-04-01  Bruno Haible  <bruno@clisp.org>
51340
51341         Fix test to work on IRIX 6.5 with cc.
51342         * tests/test-math.c (numeric_equal): New function.
51343         (main): Use it.
51344
51345 2008-04-01  Bruno Haible  <bruno@clisp.org>
51346
51347         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
51348
51349 2008-04-01  Bruno Haible  <bruno@clisp.org>
51350
51351         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
51352         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51353         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
51354         (Depends-on): Remove math.
51355
51356         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
51357         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51358         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
51359         (Depends-on): Remove math.
51360
51361         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
51362         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51363         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
51364         (Depends-on): Remove math.
51365         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
51366         (Depends-on): Remove math.
51367
51368         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
51369         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
51370         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
51371         (Depends-on): Remove math.
51372         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
51373         (Depends-on): Remove math.
51374
51375         * tests/test-round1.c: Include nan.h.
51376         (main): Use NaNd instead of NAN.
51377         * modules/round-tests (Files): Add tests/nan.h.
51378
51379         * tests/test-trunc1.c: Include nan.h.
51380         (main): Use NaNd instead of NAN.
51381         * modules/trunc-tests (Files): Add tests/nan.h.
51382
51383         * tests/test-roundf1.c: Include nan.h.
51384         (main): Use NaNf instead of NAN.
51385         * modules/roundf-tests (Files): Add tests/nan.h.
51386
51387         * tests/test-truncf1.c: Include nan.h.
51388         (main): Use NaNf instead of NAN.
51389         * modules/truncf-tests (Files): Add tests/nan.h.
51390
51391         * tests/test-ceilf1.c: Include nan.h.
51392         (main): Use NaNf instead of NAN.
51393         * modules/ceilf-tests (Files): Add tests/nan.h.
51394
51395         * tests/test-floorf1.c: Include nan.h.
51396         (main): Use NaNf instead of NAN.
51397         * modules/floorf-tests (Files): Add tests/nan.h.
51398
51399         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
51400         (main): Use NaNf instead of NAN.
51401         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
51402
51403         * tests/test-isnand.c: Include nan.h instead of <math.h>.
51404         (main): Use NaNd instead of NAN.
51405         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
51406
51407         * tests/test-frexp.c: Include nan.h.
51408         (main): Use NaNd instead of NAN.
51409         * modules/frexp-tests (Files): Add tests/nan.h.
51410
51411         * lib/isnan.c: Don't include <math.h>.
51412         (FUNC): Don't use NAN macro.
51413         * modules/isnand-nolibm (Depends-on): Remove math.
51414         * modules/isnanf-nolibm (Depends-on): Remove math.
51415         * modules/isnanl (Depends-on): Remove math.
51416         * modules/isnanl-nolibm (Depends-on): Remove math.
51417
51418         * tests/nan.h: New file.
51419
51420 2008-04-01  Eric Blake  <ebb9@byu.net>
51421
51422         Fix typos.
51423         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
51424         values to be the right type.
51425
51426         For now, cater to gnulib strtod inaccuracies.
51427         * tests/test-strtod.c (main): Allow 1-ulp error on expected
51428         fractional results.  While not as nice from a QoI perspective, it
51429         is a quicker patch than correctly implementing decimal to binary
51430         rounding.
51431
51432 2008-03-31  Eric Blake  <ebb9@byu.net>
51433
51434         Guarantee a definition of NAN.
51435         * lib/math.in.h (NAN): Define if missing.
51436         * tests/test-math.c (main): Test it.
51437         * doc/posix-headers/math.texi (math.h): Document this.
51438         * lib/isnan.c (rpl_isnand): Use it.
51439         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
51440         * tests/test-floorf1.c (NaN): Likewise.
51441         * tests/test-frexp.c (NaN): Likewise.
51442         * tests/test-isnand.c (NaN): Likewise.
51443         * tests/test-isnanf.c (NaN): Likewise.
51444         * tests/test-round1.c (NaN): Likewise.
51445         * tests/test-roundf1.c (NaN): Likewise.
51446         * tests/test-snprintf-posix.h (NaN): Likewise.
51447         * tests/test-sprintf-posix.h (NaN): Likewise.
51448         * tests/test-trunc1.c (NaN): Likewise.
51449         * tests/test-truncf1.c (NaN): Likewise.
51450         * tests/test-vasnprintf-posix.c (NaN): Likewise.
51451         * tests/test-vasprintf-posix.c (NaN): Likewise.
51452         * modules/isnand-nolibm (Depends-on): Add math.
51453         * modules/isnanf-nolibm (Depends-on): Likewise.
51454         * modules/isnanl (Depends-on): Likewise.
51455         * modules/isnanl-nolibm (Depends-on): Likewise.
51456         * modules/snprintf-posix-tests (Depends-on): Likewise.
51457         * modules/sprintf-posix-tests (Depends-on): Likewise.
51458         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
51459         * modules/vsprintf-posix-tests (Depends-on): Likewise.
51460         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
51461         * modules/vasprintf-posix-tests (Depends-on): Likewise.
51462
51463 2008-03-31  Bruno Haible  <bruno@clisp.org>
51464
51465         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
51466         * doc/posix-functions/strtod.texi: Likewise.
51467
51468 2008-03-31  Bruno Haible  <bruno@clisp.org>
51469
51470         * tests/test-strtod.c (main): Don't use C99 syntax.
51471
51472 2008-03-31  Bruno Haible  <bruno@clisp.org>
51473
51474         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
51475         Reported by Eric Blake.
51476
51477 2008-03-31  Jim Meyering  <meyering@redhat.com>
51478
51479         Don't compare actual signbit return values.
51480         * tests/test-strtod.c (main): Rather, compare only their
51481         zero/non-zero nature.
51482
51483 2008-03-31  Eric Blake  <ebb9@byu.net>
51484
51485         More strtod documentation.
51486         * doc/posix-functions/strtod.texi (strtod): Interpret more test
51487         failures as distinct bugs.
51488
51489 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
51490
51491         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
51492         Problem reported by Erik Benada in
51493         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
51494
51495 2008-03-30  Bruno Haible  <bruno@clisp.org>
51496
51497         * tests/test-strtod.c: Add comments about which assertion fails on which
51498         platform.
51499         * doc/posix-functions/strtod.texi: Add info about many more platforms.
51500
51501 2008-03-30  Eric Blake  <ebb9@byu.net>
51502
51503         Test signbit behavior on zeros.
51504         * tests/test-signbit.c (test_signbitf): Add tests for zero.
51505         (test_signbitd, test_signbitl): Likewise.
51506
51507         More strtod touchups.
51508         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
51509         sign of negative underflow, for now.  Use .5, not .1.
51510         * doc/posix-functions/strtod.texi (strtod): Mention these
51511         limitations.
51512         Reported by Jim Meyering.
51513
51514 2008-03-30  Bruno Haible  <bruno@clisp.org>
51515
51516         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
51517         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
51518
51519 2008-03-30  Bruno Haible  <bruno@clisp.org>
51520
51521         Avoid failure when attempting to return empty iconv results on some
51522         platforms.
51523         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
51524         allocation, don't report ENOMEM when the resulting string is empty.
51525
51526 2008-03-30  Bruno Haible  <bruno@clisp.org>
51527
51528         Fix buffer overrun.
51529         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
51530         Don't consider the width for tmp_length. Check count against tmp_length
51531         before doing the padding. Ensure enough allocation during padding.
51532
51533 2008-03-30  Eric Blake  <ebb9@byu.net>
51534
51535         strtod touchups.
51536         * lib/strtod.c (strtod): Avoid compiler warnings.
51537         Reported by Jim Meyering.
51538
51539 2008-03-30  Bruno Haible  <bruno@clisp.org>
51540
51541         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
51542         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
51543         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
51544         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
51545         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
51546         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
51547         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
51548         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
51549
51550         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
51551         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
51552         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
51553         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
51554         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
51555         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
51556         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
51557         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
51558
51559         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
51560         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
51561         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
51562         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
51563         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
51564         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
51565         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
51566         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
51567
51568         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
51569         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
51570
51571         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
51572         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
51573
51574         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
51575         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
51576
51577         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
51578         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
51579         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
51580
51581         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
51582         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
51583         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
51584
51585         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
51586         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
51587         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
51588
51589         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
51590         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
51591         * modules/vasprintf (Depends-on): Add EOVERFLOW.
51592
51593         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
51594         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
51595         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
51596         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
51597         (Depends-on): Add EOVERFLOW.
51598         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
51599         (Depends-on): Add EOVERFLOW.
51600         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51601         (Depends-on): Add EOVERFLOW.
51602         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
51603         (Depends-on): Add EOVERFLOW.
51604         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51605         (Depends-on): Add EOVERFLOW.
51606         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
51607         (Depends-on): Add EOVERFLOW.
51608         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51609         (Depends-on): Add EOVERFLOW.
51610         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
51611         (Depends-on): Add EOVERFLOW.
51612
51613         * lib/sprintf.c (EOVERFLOW): Remove fallback.
51614         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
51615         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
51616
51617         * lib/snprintf.c (EOVERFLOW): Remove fallback.
51618         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
51619         * modules/snprintf (Depends-on): Add EOVERFLOW.
51620
51621         * lib/poll.c (EOVERFLOW): Remove fallback.
51622         * modules/poll (Depends-on): Add EOVERFLOW.
51623
51624         * lib/getugroups.c (EOVERFLOW): Remove fallback.
51625         * modules/getugroups (Depends-on): Add EOVERFLOW.
51626
51627         * lib/getdelim.c (EOVERFLOW): Remove fallback.
51628         * modules/getdelim (Depends-on): Add EOVERFLOW.
51629
51630         * lib/ftell.c (EOVERFLOW): Remove fallback.
51631         * modules/ftell (Depends-on): Add EOVERFLOW.
51632
51633         * lib/fprintf.c (EOVERFLOW): Remove fallback.
51634         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
51635         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
51636
51637         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
51638
51639         * modules/EOVERFLOW-tests: New file.
51640         * tests/test-EOVERFLOW.c: New file.
51641
51642         * modules/EOVERFLOW: New file.
51643         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
51644
51645 2008-03-30  Bruno Haible  <bruno@clisp.org>
51646
51647         Fix bug introduced on 2007-06-10.
51648         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
51649         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
51650
51651 2008-03-30  Bruno Haible  <bruno@clisp.org>
51652
51653         Improve freadseek's efficiency after ungetc.
51654         * lib/freadseek.c: Include freadahead.h.
51655         (freadptrinc): New function, extracted from freadseek.
51656         (freadseek): Use it in a loop. Use freadahead to determine the number
51657         of loop iterations.
51658         * modules/freadseek (Depends-on): Add freadahead.
51659         (configure.ac): Require AC_C_INLINE.
51660
51661 2008-03-30  Bruno Haible  <bruno@clisp.org>
51662
51663         * lib/freadseek.c (freadseek): Don't ignore the return value of
51664         freadptr.
51665
51666 2008-03-29  Eric Blake  <ebb9@byu.net>
51667
51668         Add hex float support.
51669         * modules/strtod (Depends-on): Add c-ctype.
51670         (Link): Mention POW_LIB.
51671         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
51672         whitespace between 'e' and exponent.
51673         * tests/test-strtod.c (main): Enable hex float tests.
51674         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
51675         now provides.
51676
51677         Document various strtod bugs, with some fixes.
51678         * doc/posix-functions/strtod.texi (strtod): Document bugs with
51679         "-0x", "inf", "nan", and hex constants.
51680         * doc/posix-functions/atof.texi (atof): Likewise.
51681         * modules/stdlib (Makefile.am): Support strtod.
51682         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
51683         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
51684         detect additional strtod bugs.
51685         * lib/stdlib.in.h (rpl_strtod): Add declarations.
51686         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
51687         bool where appropriate.  Parse 'inf' and 'nan'.
51688         * tests/test-strtod.c: New file.
51689         * modules/strtod (Depends-on): Add stdbool, stdlib.
51690         (configure.ac): Turn on module indicator.
51691         * modules/strtod-tests: New module.
51692
51693 2008-03-29  Eric Blake  <ebb9@byu.net>
51694
51695         Fix ftell on mingw.
51696         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
51697         * modules/ftell-tests (Depends-on): Add binary-io.
51698         * modules/ftello-tests (Depends-on): Likewise.
51699         * tests/test-ftell.c (main): Enhance test to cover behavior after
51700         ungetc.  Enforce binary mode.
51701         * tests/test-ftello.c (main): Likewise.
51702
51703         Pass test-freadseek on cygwin.
51704         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
51705         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
51706         ungetc buffer.
51707
51708         * tests/test-fflush2.c (main): Fix typo.
51709
51710 2008-03-29  Bruno Haible  <bruno@clisp.org>
51711
51712         * tests/test-fflush2.c (main): Temporarily disable the contents of
51713         this test.
51714         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
51715         Reported by Eric Blake.
51716
51717 2008-03-28  Simon Josefsson  <simon@josefsson.org>
51718
51719         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
51720         (GC_SHA224_DIGEST_SIZE): Add.
51721
51722         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
51723         (gc_hash_digest_length): Likewise.
51724         (gc_hash_buffer): Likewise.
51725
51726 2008-03-25  Bruno Haible  <bruno@clisp.org>
51727
51728         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
51729         detail which gettext release to use.
51730         Reported by Simon Josefsson.
51731
51732 2008-03-26  Jim Meyering  <meyering@redhat.com>
51733
51734         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
51735         * modules/gnumakefile (clean-GNUmakefile): Also, use
51736         test ... && ... || : syntax rather than if-then ... fi.
51737
51738         gnumakefile: Don't double-quote-expand $(VPATH) value.
51739         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
51740
51741 2008-03-24  Eric Blake  <ebb9@byu.net>
51742
51743         Alter GNUmakefile to install into top directory.
51744         * modules/maintainer-makefile: Split, and add dependency...
51745         * modules/gnumakefile: to this new module.
51746         * build-aux/GNUmakefile: Move...
51747         * top/GNUmakefile: ...here.
51748         * build-aux/maint.mk: Move...
51749         * top/maint.mk: ...here.
51750         * MODULES.html.sh (Support for maintaining...): Document new
51751         module.
51752
51753 2008-03-23  Bruno Haible  <bruno@clisp.org>
51754
51755         * gnulib-tool: New options --vc-files, --no-vc-files.
51756         (func_usage): Document them.
51757         (vc_files): New variable.
51758         (func_import): Consider vc_files.
51759         (func_create_testdir): Set vc_files to empty.
51760         Suggested by Jim Meyering and Karl Berry.
51761
51762 2008-03-23  Bruno Haible  <bruno@clisp.org>
51763
51764         Fix regex compilation error on HP-UX 11.
51765         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
51766         * modules/regex (Files): Add m4/mbstate_t.m4.
51767         Reported by Ton Voon <ton.voon@altinity.com>.
51768
51769 2008-03-23  Bruno Haible  <bruno@clisp.org>
51770
51771         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
51772
51773 2008-03-23  Eric Blake  <ebb9@byu.net>
51774             Bruno Haible  <bruno@clisp.org>
51775
51776         Install files from top/ in the destination directory.
51777         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
51778         augmentation also for the files from top/.
51779         (func_import, func_create_testdir): Rewrite file names:
51780         top/filename -> filename.
51781
51782 2008-03-23  Bruno Haible  <bruno@clisp.org>
51783
51784         Tweak "gnulib --version" output.
51785         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
51786
51787 2008-03-23  Bruno Haible  <bruno@clisp.org>
51788
51789         Tweak "gnulib --version" output.
51790         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
51791         rather than contents of ChangeLog, when possible.
51792
51793 2008-03-21  Eric Blake  <ebb9@byu.net>
51794
51795         More --version tweaks.
51796         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
51797         date of last ChangeLog entry.
51798
51799 2008-03-21  Jim Meyering  <meyering@redhat.com>
51800
51801         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
51802
51803 2008-03-20  Eric Blake  <ebb9@byu.net>
51804
51805         VPATH fix.
51806         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
51807
51808 2008-03-20  Simon Josefsson  <simon@josefsson.org>
51809
51810         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
51811         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
51812
51813 2008-03-20  Eric Blake  <ebb9@byu.net>
51814
51815         Sync GNUmakefile with coreutils.
51816         * build-aux/GNUmakefile (have-Makefile): Rename...
51817         (_have-Makefile): ...to this, for namespace consideration.
51818         (GNUmakefile.cfg): Include, if present.
51819         (_autoreconf): Define a default.
51820         (_is-dist-target): New rule for rebuilds to pick up intra-release
51821         version.
51822         (maint-cfg.mk): Rename...
51823         (cfg.mk): ...to this.
51824
51825 2008-03-18  Jim Meyering  <meyering@redhat.com>
51826
51827         New script and module: mktempd
51828         * MODULES.html.sh (maint+release support): Add mktempd.
51829         * build-aux/mktempd: New file.
51830         * modules/mktempd: New file.
51831
51832 2008-03-15  Jim Meyering  <meyering@redhat.com>
51833
51834         Undo last change.
51835         * lib/sha1.c, lib/md5.c: 63 != ~63.
51836         Reported by Andreas Schwab.
51837
51838         sha1.c, md5.c: Hoist a redundant expression.
51839         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
51840         "ctx->buflen" only once, before calling *_process_block.
51841         * lib/md5.c (md5_process_bytes): Likewise.
51842
51843 2008-03-14  Eric Blake  <ebb9@byu.net>
51844
51845         Bump copyright year in files generated by gnulib-tool.
51846         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
51847         gnulib-tool, rather than hard-coding it.
51848
51849         Fix 'gnulib-tool --version' output to work with git.
51850         * gnulib-tool (func_gnulib_dir): New function, extracted from...
51851         (startup): ...here.
51852         (func_version): Use it to invoke git-version-gen, rather than
51853         relying on CVS keyword expansion.  Modernize wording.
51854         (cvsdatestamp, last_checkin_date, version): Kill unused
51855         variables.
51856
51857 2008-03-12  Jim Meyering  <meyering@redhat.com>
51858
51859         Recognize optional cast of the argument to free.
51860         * build-aux/useless-if-before-free: Update regexps.
51861
51862         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
51863
51864 2008-03-11  Bruno Haible  <bruno@clisp.org>
51865
51866         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
51867         by a single package.
51868         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
51869         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
51870         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
51871         Reported by Sam Steingold <sds@gnu.org>.
51872
51873 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51874
51875         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
51876         repositories.
51877
51878 2008-03-11  Bruno Haible  <bruno@clisp.org>
51879
51880         Avoid conflicts between local macro definitions.
51881         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
51882         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
51883
51884 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
51885             Bruno Haible  <bruno@clisp.org>
51886
51887         Make va_copy work with some version of xlc on AIX 5.1.
51888         * lib/stdarg.in.h: New file.
51889         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
51890         On AIX, use a <stdarg.h> file substitute.
51891         * modules/stdarg (Files): Add lib/stdarg.in.h.
51892         (Depends-on): Add include_next.
51893         (Makefile.am): Build a stdarg.h substitute if requested.
51894         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
51895
51896 2008-03-10  Bruno Haible  <bruno@clisp.org>
51897
51898         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
51899         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51900         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
51901
51902 2008-03-10  Bruno Haible  <bruno@clisp.org>
51903
51904         * modules/stdlib (Depends-on): Add include_next, remove
51905         absolute-header.
51906
51907 2008-03-09  Bruno Haible  <bruno@clisp.org>
51908
51909         * lib/freadahead.h (freadahead): Document more precisely.
51910         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
51911         the sum of both buffer sizes.
51912         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
51913         * NEWS: Document the change.
51914
51915 2008-03-09  Bruno Haible  <bruno@clisp.org>
51916
51917         Extend freadptr to return also the buffer size.
51918         * lib/freadptr.h (freadptr): Add sizep argument.
51919         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
51920         (freadptr): Add sizep argument. Determine buffer size like freadahead
51921         does.
51922         * tests/test-freadptr.c: Don't include freadahead.h.
51923         (main): Adapt for new calling convention of freadptr.
51924         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
51925         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
51926         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
51927         tests/test-freadptr2.sh.
51928         (Depends): Remove freadahead.
51929         (TESTS): Add test-freadptr2.sh.
51930         (check_PROGRAMS): Add test-freadptr2.
51931
51932 2008-03-09  Bruno Haible  <bruno@clisp.org>
51933
51934         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
51935         Report and solution by Simon Josefsson.
51936
51937 2008-03-06  Bruno Haible  <bruno@clisp.org>
51938
51939         Make fflush after ungetc work on BSD platforms.
51940         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
51941         * tests/test-fflush2.c: New file.
51942         * tests/test-fflush2.sh: New file.
51943         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
51944         tests/test-fflush2.c.
51945         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
51946         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
51947
51948 2008-03-06  Eric Blake  <ebb9@byu.net>
51949
51950         Likewise for ftello.
51951         * modules/ftello (Dependencies): Add extensions.
51952         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
51953
51954 2008-03-06  Bruno Haible  <bruno@clisp.org>
51955
51956         * modules/fseeko (Dependencies): Add extensions.
51957         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
51958         Needed on glibc systems.
51959
51960 2008-03-06  Bruno Haible  <bruno@clisp.org>
51961
51962         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
51963         email address.
51964         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51965
51966 2008-03-06  Bruno Haible  <bruno@clisp.org>
51967
51968         * users.txt: Add libgnupdf.
51969
51970 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
51971
51972         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
51973         (Header File Substitutes, Function Substitutes,
51974         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
51975         (Build robot for gnulib): Fix typo.
51976
51977 2008-03-06  Bruno Haible  <bruno@clisp.org>
51978
51979         * doc/gnulib-tool.texi (VCS Issues): Small updates.
51980         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51981
51982 2008-03-06  Bruno Haible  <bruno@clisp.org>
51983
51984         * doc/func.texi: New file, extracted from doc/gnulib.texi.
51985         * doc/gnulib.texi: Include it.
51986
51987 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51988
51989         * modules/func (License): Change license to unlimited; there was
51990         no LGPL parts in the module anyway.
51991
51992 2008-03-06  Simon Josefsson  <simon@josefsson.org>
51993
51994         * modules/__func__: Renamed to modules/func.
51995         * modules/__func__-tests: Renamed to modules/func-tests.
51996         * tests/test-__func__.c: Renamed to tests/test-func.c.
51997         * m4/__func__.m4: Renamed to m4/func.m4.
51998         * doc/gnulib.texi (__func__): Section renamed to func.
51999         Suggested by Eric Blake <ebb9@byu.net>.
52000
52001 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52002
52003         * doc/gnulib.texi (__func__): Use C99 terminology when talking
52004         about __func__.  Make example self-contained.  Suggested by Eric
52005         Blake <ebb9@byu.net>.
52006
52007         * tests/test-__func__.c (main): Avoid extraneous () around __func.
52008         Suggested by Eric Blake <ebb9@byu.net>.
52009
52010 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52011
52012         * modules/__func__: New file.
52013         * modules/__func__-tests: New file.
52014         * tests/test-__func__.c: New file.
52015         * m4/__func__.m4: New file.
52016         * doc/gnulib.texi (__func__): Document __func__ module.
52017
52018 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52019
52020         * modules/byteswap (License): Re-license as LGPLv2+.
52021
52022 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52023
52024         * doc/Makefile: Add pdf target.
52025
52026 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52027
52028         * modules/inline (License): Use 'unlimited', since there are only
52029         *.m4 files in this module.
52030
52031 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
52032             Bruno Haible  <bruno@clisp.org>
52033
52034         Add support for HP C 7.1 on OpenVMS 8.3.
52035         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
52036
52037 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
52038
52039         Update VMS specifics.
52040         * lib/getopt.c [VMS]: Remove include of unixlib.h.
52041
52042 2008-03-02  Jim Meyering  <meyering@redhat.com>
52043
52044         Remove the last dependency on the "free" module.
52045         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
52046         Reported by Bob Proulx.
52047
52048         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
52049
52050         Remove useless "if" tests before free.  Deprecate "free" module.
52051         * doc/posix-functions/free.texi: Mention that this
52052         module is no longer useful.
52053         * modules/free (Notice): Say this module is obsolete.
52054         * modules/readutmp (Depends-on): Remove free.
52055         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
52056         * lib/putenv.c (putenv): Likewise.
52057         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
52058         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
52059         * tests/test-c-strcasestr.c (main): Likewise.
52060         * tests/test-c-strstr.c (main): Likewise.
52061         * tests/test-mbscasestr1.c (main): Likewise.
52062         * tests/test-mbscasestr2.c (main): Likewise.
52063         * tests/test-mbsstr1.c (main): Likewise.
52064         * tests/test-mbsstr2.c (main): Likewise.
52065         * tests/test-memmem.c (main): Likewise.
52066         * tests/test-strcasestr.c (main): Likewise.
52067         * tests/test-striconv.c (main): Likewise.
52068         * tests/test-striconveh.c (main): Likewise.
52069         * tests/test-striconveha.c (main): Likewise.
52070         * tests/test-strstr.c (main): Likewise.
52071
52072         * build-aux/git-version-gen: Adjust a comment and the Usage string.
52073
52074         bootstrap: sync from coreutils again
52075         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
52076
52077 2008-03-01  Jim Meyering  <meyering@redhat.com>
52078
52079         bootstrap: sync from coreutils
52080         * build-aux/bootstrap (update_po_files): Copy a .po file into place
52081         also when the target doesn't exist.
52082
52083 2008-03-01  Eric Blake  <ebb9@byu.net>
52084
52085         Fix bugs in last patch.
52086         * lib/memchr2.c (memchr2): Fix typo.
52087         * tests/test-memchr2.c: Test previous bug, and don't use GNU
52088         extension.
52089         Reported by Bruce Korb.
52090
52091         New module 'memchr2'.
52092         * modules/memchr2: New file.
52093         * modules/memchr2-tests: Likewise.
52094         * lib/memchr2.h: Likewise.
52095         * lib/memchr2.c: Likewise, based on memchr.c.
52096         * tests/test-memchr2.c: New test.
52097         * MODULES.html.sh (String handling): Add memchr2.
52098
52099 2008-02-29  Bruno Haible  <bruno@clisp.org>
52100
52101         * modules/freadseek-tests: New file.
52102         * tests/test-freadseek.sh: New file.
52103         * tests/test-freadseek.c: New file.
52104
52105         New module 'freadseek'.
52106         * modules/freadseek: New file.
52107         * lib/freadseek.h: New file.
52108         * lib/freadseek.c: New file.
52109         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
52110
52111 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
52112
52113         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
52114         wydawca.
52115
52116         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
52117         program_invocation_name and program_invocation_short_name are
52118         present.
52119
52120 2008-02-28  Bruno Haible  <bruno@clisp.org>
52121
52122         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
52123         * tests/test-freadptr.sh: Also test non-seekable stdin.
52124
52125 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
52126
52127         * build-aux/bootstrap (source_base, m4_base)
52128         (doc_base, tests_base): New variables.
52129         (gnulib_tool_options): Do not hardcode base directories, use
52130         the above variables instead.
52131
52132 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
52133
52134         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
52135
52136 2008-02-28  Bruno Haible  <bruno@clisp.org>
52137
52138         * modules/freadptr-tests: New file.
52139         * tests/test-freadptr.sh: New file.
52140         * tests/test-freadptr.c: New file.
52141
52142         New module 'freadptr'.
52143         * modules/freadptr: New file.
52144         * lib/freadptr.h: New file.
52145         * lib/freadptr.c: New file.
52146         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
52147
52148 2008-02-26  Karl Berry  <karl@freefriends.org>
52149
52150         Sync from Libtool:
52151         * libltdl/argz.c (argz_add, argz_count): New functions.
52152         * libltdl/argz.in.h: Declare them.
52153         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
52154
52155 2008-02-22  Bruno Haible  <bruno@clisp.org>
52156
52157         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
52158         is a pointer type.  Needed for HP-UX 10.
52159         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
52160         * doc/posix-functions/gmtime_r.texi: Likewise.
52161         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
52162
52163 2008-02-24  Bruno Haible  <bruno@clisp.org>
52164
52165         * modules/environ-tests: New file.
52166         * tests/test-environ.c: New file.
52167
52168         New module 'environ'.
52169         * modules/environ: New file.
52170         * lib/unistd.in.h (environ): New declaration.
52171         * m4/environ.m4: New file.
52172         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
52173         after use.
52174         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
52175         HAVE_DECL_ENVIRON.
52176         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
52177         HAVE_DECL_ENVIRON.
52178         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
52179         wrong claim that 'environ' is missing on some systems.
52180         * modules/execute (Depends-on): Add environ.
52181         * lib/execute.c (environ): Remove fallback declaration.
52182         * modules/pipe (Depends-on): Add environ.
52183         * lib/pipe.c (environ): Remove fallback declaration.
52184         * modules/setenv (Depends-on): Add environ.
52185         * lib/setenv.c (environ): Remove fallback declaration.
52186         * modules/unsetenv (Depends-on): Add environ.
52187         * lib/unsetenv.c (environ): Remove fallback declaration.
52188         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
52189         m4/environ.m4.
52190         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
52191         (gl_PREREQ_UNSETENV): Likewise.
52192
52193 2008-02-24  Bruno Haible  <bruno@clisp.org>
52194
52195         * doc/posix-functions/environ.texi: Document the MacOS X problem.
52196
52197 2008-02-20  Bob Proulx  <bob@proulx.com>
52198
52199         Enable use of older two part flavor 'git describe'.
52200         * build-aux/git-version-gen: If using the older two part flavor of
52201         git version then recreate the third part now present in the
52202         newer three part flavor of git describe.
52203
52204 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
52205
52206         * lib/fts.c (fts_build): Typo correction to comment.
52207
52208 2008-02-17  Bruno Haible  <bruno@clisp.org>
52209
52210         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
52211         generating no-op conflicts.
52212
52213 2008-02-17  Bruno Haible  <bruno@clisp.org>
52214
52215         Speed up by 10%.
52216         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
52217         result_entries, rather than an index-based loop.
52218
52219 2008-02-17  Bruno Haible  <bruno@clisp.org>
52220
52221         Speed up by 25%.
52222         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
52223         'hashcode_cached'.
52224         (entry_create): New function.
52225         (entry_hashcode): Use the cached hashcode if possible.
52226         (read_changelog_file, try_split_merged_entry): Use entry_create.
52227
52228 2008-02-17  Bruno Haible  <bruno@clisp.org>
52229
52230         Speed up from O(n^2) to O(n) for long ChangeLog files.
52231         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
52232         (read_changelog_file): Change implementation of entries_reversed list
52233         to rbtreehash.
52234         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
52235
52236 2008-02-17  Bruno Haible  <bruno@clisp.org>
52237
52238         New option --split-merged-entry.
52239         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
52240         (find_paragraph_end, try_split_merged_entry): New functions.
52241         (long_options): Add option --split-merged-entry.
52242         (usage): Document option --split-merged-entry.
52243         (main): Implement option --split-merged-entry.
52244         Reported by Eric Blake.
52245
52246 2008-02-17  Bruno Haible  <bruno@clisp.org>
52247
52248         * lib/git-merge-changelog.c: Include c-strstr.h.
52249         (main): Support the "git pull --rebase" situation.
52250         * modules/git-merge-changelog (Depends-on): Add c-strstr.
52251         Reported by Eric Blake.
52252
52253 2008-02-16  Eric Blake  <ebb9@byu.net>
52254
52255         Avoid doubling \ in common case of "c-maybe" quoting style.
52256         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
52257         eliding outer quotes.
52258         * lib/quotearg.h: Document this.
52259         * tests/test-quotearg.c (result_strings, inputs, results_g)
52260         (flag_results, locale_results): Test it by adding a new string to
52261         each test group.
52262         (compare_strings): Test new string.
52263
52264 2008-02-13  Eric Blake  <ebb9@byu.net>
52265
52266         Avoid trigraph quoting in default output.
52267         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
52268         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
52269         unless explicitly requested.
52270         * tests/test-quotearg.c (flag_results, main): Add additional tests.
52271
52272 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
52273
52274         Don't rely on signed integer overflowing to negative value.
52275         * lib/getugroups.c (getugroups): Include <limits.h>.
52276         Instead, compare against INT_MAX, and increment only if the test passes.
52277
52278 2008-02-13  Jim Meyering  <meyering@redhat.com>
52279         and Eric Blake  <ebb9@byu.net>
52280
52281         Avoid shadowing warning and compile errors on Linux.
52282         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
52283         forwarding macros on Linux.
52284         (dcgettext): Define a stub, for Linux.
52285         (results_g, main): Avoid warnings.
52286
52287 2008-02-12  Eric Blake  <ebb9@byu.net>
52288
52289         Silence warning in last patch.
52290         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
52291
52292         Quotearg part 4: add tests, fix c-maybe colon quoting.
52293         * lib/quotearg.h: Improve documentation.
52294         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
52295         escapes when adding outer quotes.  When quoting trigraphs, use
52296         valid C notation.  When quoting NUL, omit extra characters if next
52297         character is not digit.  Alter prototype.
52298         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
52299         callers.
52300         * modules/quotearg-tests: New module.
52301         * tests/test-quotearg.c: New test.
52302
52303 2008-02-07  Eric Blake  <ebb9@byu.net>
52304
52305         Quotearg part 3: add flag to control outer quote elision.
52306         * lib/quotearg.h (c_maybe_quoting_style): New style.
52307         (enum quoting_flags): Better documentation of flags.
52308         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
52309         c-maybe style.
52310         (quotearg_buffer_restyled): Handle new flag to elide outer
52311         quotes.
52312
52313         Quotearg part 2: add flag that can control NUL elision.
52314         * lib/quotearg.h (set_quoting_flags): New prototype.
52315         * lib/quotearg.c (struct quoting_options): Add flag field.
52316         (set_quoting_flags): New function.
52317         (quotearg_buffer_restyled): Add flags parameter.
52318         (quotearg_alloc_mem): Set the flag if length cannot be returned.
52319         (quotearg_n_options): Set the flag, since length cannot be
52320         returned.
52321         (quoting_options_from_style): Default flags correctly.
52322
52323         Quotearg part 1: more wrappers, restore quotearg_char state.
52324         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
52325         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
52326         (quotearg_colon_mem): New wrappers.
52327         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
52328         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
52329         functions.
52330         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
52331         (quotearg_colon_mem): New functions.
52332
52333 2008-02-11  Bruno Haible  <bruno@clisp.org>
52334
52335         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
52336         library in the current directory: it does not work with parallel make.
52337         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52338
52339 2008-02-11  Bruno Haible  <bruno@clisp.org>
52340
52341         * .gitattributes: New file.
52342
52343 2008-02-11  Jim Meyering  <meyering@redhat.com>
52344
52345         useless-if-before-free: Fix reversed exit values.
52346         * build-aux/useless-if-before-free: Use correct values
52347         for EXIT_MATCH and EXIT_NO_MATCH.
52348
52349         * build-aux/useless-if-before-free: Close stdout carefully.
52350
52351 2008-02-10  Bruno Haible  <bruno@clisp.org>
52352
52353         New module 'git-merge-changelog'.
52354         * modules/git-merge-changelog: New file.
52355         * lib/git-merge-changelog.c: New file.
52356
52357 2008-02-10  Jim Meyering  <meyering@redhat.com>
52358
52359         useless-if-before-free: New option: --list (-l).
52360
52361         useless-if-before-free: Don't exit immediately upon open failure.
52362         * build-aux/useless-if-before-free: Exit 2 for errors.
52363         Upon failure to open a file, don't exit immediately.
52364         Rather, just warn and continue with any remaining files.
52365
52366 2008-02-10  Bruno Haible  <bruno@clisp.org>
52367
52368         New abstract list operation 'node_set_value'.
52369         * lib/gl_list.h (gl_list_node_set_value): New function.
52370         (struct gl_list_implementation): New field node_set_value.
52371         * lib/gl_list.c (gl_list_node_set_value): New function.
52372         * lib/gl_array_list.c (gl_array_node_set_value): New function.
52373         (gl_array_list_implementation): Update.
52374         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
52375         (gl_carray_list_implementation): Update.
52376         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
52377         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
52378         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
52379         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
52380         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
52381         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
52382         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
52383         Update.
52384         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
52385         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
52386         (gl_sublist_list_implementation): Update.
52387
52388 2008-02-10  Bruno Haible  <bruno@clisp.org>
52389
52390         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
52391         Needed when ELEMENT is #defined to 'some_type *'.
52392
52393 2008-02-10  Jim Meyering  <meyering@redhat.com>
52394
52395         New script and module: useless-if-before-free
52396         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
52397         * build-aux/useless-if-before-free: New file.
52398         * modules/useless-if-before-free: New file.
52399
52400         * build-aux/gitlog-to-changelog: Use committer date, not author date.
52401
52402         xstrtol_error: Fix typo.
52403         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
52404         s/exit_failure/exit_status/.
52405
52406 2008-02-09  Jim Meyering  <meyering@redhat.com>
52407
52408         New script and module: gitlog-to-changelog
52409         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
52410         * modules/gitlog-to-changelog: New file.
52411         * build-aux/gitlog-to-changelog: New file.
52412
52413 2008-02-08  Jim Meyering  <meyering@redhat.com>
52414
52415         Avoid two "parameter unused" warnings.
52416         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
52417         Mark "st" as used.
52418
52419         Use "git COMMAND", not "git-COMMAND".
52420         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
52421         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
52422         * build-aux/git-version-gen: Use "git status", not "git-status".
52423
52424 2008-02-07  Bruno Haible  <bruno@clisp.org>
52425
52426         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
52427         Avoids a crash on Windows Vista.
52428         Reported by Adam Strzelecki <ono@java.pl> via
52429         Simon Josefsson <simon@josefsson.org>.
52430
52431 2008-02-06  Bruno Haible  <bruno@clisp.org>
52432
52433         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
52434         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
52435         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
52436         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
52437         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
52438         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
52439         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
52440         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
52441         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52442         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52443         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52444         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52445         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52446         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52447         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52448         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
52449         left-adjust flag.
52450         * tests/test-snprintf-posix.h (test_function): Likewise.
52451         * tests/test-sprintf-posix.h (test_function): Likewise.
52452         * tests/test-vasprintf-posix.c (test_function): Likewise.
52453         * doc/posix-functions/fprintf.texi: Update.
52454         * doc/posix-functions/printf.texi: Update.
52455         * doc/posix-functions/snprintf.texi: Update.
52456         * doc/posix-functions/sprintf.texi: Update.
52457         * doc/posix-functions/vfprintf.texi: Update.
52458         * doc/posix-functions/vprintf.texi: Update.
52459         * doc/posix-functions/vsnprintf.texi: Update.
52460         * doc/posix-functions/vsprintf.texi: Update.
52461         Reported by Peter Fales <psfales@alcatel-lucent.com>.
52462
52463 2008-02-06  Bruno Haible  <bruno@clisp.org>
52464
52465         Fix bug introduced on 2008-01-26.
52466         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
52467
52468 2008-02-06  Bruno Haible  <bruno@clisp.org>
52469
52470         Fix bug introduced on 2007-06-10.
52471         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
52472         !NEED_PRINTF_FLAG_ZERO.
52473
52474 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
52475
52476         getloadavg: use libperfstat on AIX5
52477         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
52478
52479 2008-02-03  Bruno Haible  <bruno@clisp.org>
52480
52481         * lib/diffseq.h: Add comments about required #includes.
52482         Reported by Michael Biggs <gnulib@doubleplum.net>.
52483
52484 2008-02-01  Bruno Haible  <bruno@clisp.org>
52485
52486         * users.txt: Add gnuit.
52487
52488 2008-01-31  Bruno Haible  <bruno@clisp.org>
52489
52490         * lib/md4.c (set_uint32): Mark as inline.
52491         * lib/md5.c (set_uint32): Likewise.
52492         * lib/sha1.c (set_uint32): Likewise.
52493         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
52494         * m4/md5.m4 (gl_MD5): Likewise.
52495         * m4/sha1.m4 (gl_SHA1): Likewise.
52496
52497 2008-01-31  Jim Meyering  <meyering@redhat.com>
52498
52499         Use "sizeof VAR", rather than a literal "4".
52500         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
52501         * lib/md4.c (md4_read_ctx): Likewise.
52502         * lib/sha1.c (sha1_read_ctx): Likewise.
52503
52504 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52505
52506         * tests/test-sha1.c: New file, based on test-md5.c.
52507
52508         * modules/crypto/sha1-tests: New file.
52509
52510 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52511
52512         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
52513
52514 2008-01-31  Jim Meyering  <meyering@redhat.com>
52515
52516         Prefer "sizeof v" over the equivalent "4".
52517         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
52518         * lib/md5.c (set_uint32): Likewise.
52519         * lib/sha1.c (set_uint32): Likewise.
52520
52521 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52522
52523         * lib/sha1.c (set_uint32): Mark function as static.
52524
52525 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52526
52527         md2: clarify comments to say that alignment is not required.
52528         * lib/md2.h: Remove warning about alignment in comment.
52529         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
52530         never been required.
52531
52532 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52533
52534         md4: adapt alignment constraint fix from sha1.
52535         * lib/md4.c (set_uint32): New function, from sha1.c
52536         (md4_read_ctx): Use it.
52537         (md4_finish_ctx): Doc fix.
52538         * lib/md4.h: Doc fix.
52539
52540 2008-01-31  Simon Josefsson  <simon@josefsson.org>
52541
52542         md5: adapt alignment constraint fix from sha1.
52543         * lib/md5.c (set_uint32): New function, from sha1.c
52544         (md5_read_ctx): Use it.
52545         (md5_finish_ctx): Doc fix.
52546         * lib/md5.h: Doc fix.
52547
52548 2008-01-30  Peter Palfrader  <weasel@debian.org>
52549
52550         sha1: remove the result buffer alignment constraint
52551         * lib/sha1.c (set_uint32): New function.
52552         (sha1_read_ctx): Rewrite to remove the result buffer alignment
52553         constraint.
52554         (sha1_finish_ctx): Remove comment warning about alignment constraint.
52555         * lib/sha1.h: Likewise.
52556
52557 2008-01-30  Andreas Schwab  <schwab@suse.de>
52558             Bruno Haible  <bruno@clisp.org>
52559
52560         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
52561         correct definition of LDBL_MIN_EXP.
52562
52563 2008-01-30  Karl Berry  <karl@gnu.org>
52564
52565         * config/srclist-update: try to preserve x bit on updates.
52566         * config/srclistvars.sh: update for karl.
52567
52568 2008-01-29  Jim Meyering  <meyering@redhat.com>
52569
52570         vasnprintf.c: Avoid warning about unused label
52571         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
52572         "overflow" label definition and associated code with the
52573         same cpp condition that guards the sole use of that label.
52574
52575 2008-01-26  Bruno Haible  <bruno@clisp.org>
52576
52577         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
52578         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
52579         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
52580         * lib/isnanl-nolibm.h (isnanl): Likewise.
52581         Reported by Paul Eggert <eggert@cs.ucla.edu>.
52582
52583 2008-01-26  Bruno Haible  <bruno@clisp.org>
52584
52585         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
52586         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
52587
52588 2008-01-26  Bruno Haible  <bruno@clisp.org>
52589
52590         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
52591         GCC >= 4.0 built-in.
52592         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
52593
52594 2008-01-26  Bruno Haible  <bruno@clisp.org>
52595
52596         Rename isnan, applicable to 'double' only, to isnand.
52597         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
52598         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
52599         (configure.ac): Update.
52600         (Include): Replace "isnan.h" with "isnand.h".
52601         * m4/isnand.m4: Renamed from m4/isnan.m4.
52602         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
52603         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
52604         instead of isnan.c.
52605         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
52606         instead of HAVE_ISNAN_IN_LIBC.
52607         (isnand): Renamed from isnan.
52608         * lib/isnand.c: New file.
52609         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
52610         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
52611         (Makefile.am): Update.
52612         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
52613         Include isnand.h instead of isnan.h.
52614         (main): Test isnand instead of isnan.
52615         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
52616         isnan-nolibm.
52617         * modules/frexp (Depends-on): Likewise.
52618         * modules/frexp-tests (Depends-on): Likewise.
52619         * modules/frexp-nolibm (Depends-on): Likewise.
52620         * modules/frexp-nolibm-tests (Depends-on): Likewise.
52621         * modules/isfinite (Depends-on): Likewise.
52622         * modules/round-tests (Depends-on): Likewise.
52623         * modules/signbit (Depends-on): Likewise.
52624         * modules/signbit-tests (Depends-on): Likewise.
52625         * modules/snprintf-posix (Depends-on): Likewise.
52626         * modules/sprintf-posix (Depends-on): Likewise.
52627         * modules/trunc-tests (Depends-on): Likewise.
52628         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52629         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52630         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52631         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52632         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52633         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52634         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52635         * modules/vasnprintf-posix (Depends-on): Likewise.
52636         * modules/vasprintf-posix (Depends-on): Likewise.
52637         * modules/vfprintf-posix (Depends-on): Likewise.
52638         * modules/vsnprintf-posix (Depends-on): Likewise.
52639         * modules/vsprintf-posix (Depends-on): Likewise.
52640         * lib/frexp.c: Include isnand.h instead of isnan.h.
52641         (ISNAN): Set to isnand instead of isnan.
52642         * lib/isfinite.c: Include isnand.h instead of isnan.h.
52643         (gl_isfinited): Use isnand instead of isnan.
52644         * lib/signbitd.c: Include isnand.h instead of isnan.h.
52645         (gl_signbitd): Use isnand instead of isnan.
52646         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
52647         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
52648         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
52649         (main): Use isnand instead of isnan.
52650         * tests/test-round1.c: Include isnand.h.
52651         (main): Use isnand instead of isnan.
52652         * tests/test-round2.c: Include isnand.h instead of isnan.h.
52653         (ISNAN): Set to isnand instead of isnan.
52654         * tests/test-trunc1.c: Include isnand.h.
52655         (main): Use isnand instead of isnan.
52656         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
52657         (equal): Use isnand instead of isnan.
52658         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
52659         isnand-nolibm.
52660         * NEWS: Mention the change.
52661
52662 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
52663             Bruno Haible  <bruno@clisp.org>
52664
52665         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
52666         the GCC builtins for signbits are present and set
52667         REPLACE_SIGNBIT_USING_GCC if so.
52668         * lib/math.in.h (signbit): Define using GCC builtins if
52669         REPLACE_SIGNBIT_USING_GCC is set.
52670         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
52671         REPLACE_SIGNBIT_USING_GCC.
52672         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
52673
52674 2008-01-25  Jim Meyering  <meyering@redhat.com>
52675
52676         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
52677         * lib/poll.c: Include <config.h>, not "config.h".
52678         * tests/test-getaddrinfo.c: Likewise.
52679
52680 2008-01-25  Simon Josefsson  <simon@josefsson.org>
52681
52682         * modules/sockets-tests: New file.
52683
52684 2008-01-24  Simon Josefsson  <simon@josefsson.org>
52685
52686         * modules/sockets: New module, can be used to call WSA_Startup and
52687         WSA_Cleanup when needed.
52688
52689         * lib/sockets.h, lib/sockets.c: New files.
52690
52691         * m4/sockets.m4: New file.
52692
52693         * tests/test-sockets.c: New file.
52694
52695 2008-01-19  Bruno Haible  <bruno@clisp.org>
52696
52697         * doc/posix-headers: Renamed from doc/headers.
52698         * doc/posix-functions: Renamed from doc/functions.
52699         * doc/gnulib.texi: Update.
52700
52701 2008-01-19  Bruno Haible  <bruno@clisp.org>
52702
52703         * doc/glibc-functions/strcasestr.texi: Include contents of
52704         doc/functions/strcasestr.texi, fixing the list of platforms.
52705         * doc/functions/strcasestr.texi: Remove file.
52706
52707 2008-01-19  Bruno Haible  <bruno@clisp.org>
52708
52709         * doc/glibc-functions/memmem.texi: Include contents of
52710         doc/functions/memmem.texi.
52711         * doc/functions/memmem.texi: Remove file.
52712
52713 2008-01-18  Bruno Haible  <bruno@clisp.org>
52714
52715         * doc/glibc-functions/*.texi: New files.
52716         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
52717         to use the new files.
52718
52719 2008-01-17  Bruno Haible  <bruno@clisp.org>
52720
52721         * tests/test-gethostname.c (main): Fix printf statement.
52722
52723 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52724
52725         * modules/gethostname-tests: New file.
52726
52727         * tests/test-gethostname.c: New file.
52728
52729 2008-01-17  Simon Josefsson  <simon@josefsson.org>
52730
52731         * lib/gethostname.c: Include string.h unconditionally, strncpy is
52732         used by the UNAME case.  Reported by Bruno Haible
52733         <bruno@clisp.org>.
52734
52735 2008-01-17  Eric Blake  <ebb9@byu.net>
52736
52737         Convert c-strcasestr to be more efficient.
52738         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
52739         (Depends-on): Add c-strcase, remove malloca, strnlen.
52740         * tests/test-c-strcasestr.c (main): Enhance test.
52741         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
52742
52743 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
52744
52745         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
52746         Use it in creating po/Makevars.
52747
52748 2008-01-15  Simon Josefsson  <simon@josefsson.org>
52749
52750         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
52751         Applications that requires it should initialize libgcrypt
52752         manually.
52753
52754 2008-01-16  Simon Josefsson  <simon@josefsson.org>
52755
52756         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
52757
52758 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
52759
52760         Fix problem with getdate on mingw32 reported by Simon Josefsson
52761         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
52762         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
52763         tzname", when deciding whether to declare tzname.
52764         * lib/strftime.c (tzname): Likewise.
52765
52766 2008-01-15  Bruno Haible  <bruno@clisp.org>
52767
52768         Work around a MacOS X 10.5 bug in frexpl().
52769         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
52770         * doc/functions/frexpl.texi: Document the bug.
52771         Reported by Elias Pipping <pipping@gentoo.org>.
52772
52773 2008-01-14  Eric Blake  <ebb9@byu.net>
52774
52775         Touch up previous patch.
52776         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
52777         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
52778
52779         Convert strcasestr module to use Two-Way algorithm.
52780         * modules/strcasestr-simple: New module, based on the old
52781         strcasestr, but with Two-Way rather than KMP.
52782         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
52783         * lib/string.in.h (rpl_strcasestr): Declare.
52784         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
52785         performance.
52786         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
52787         * modules/string (Makefile.am): Support strcasestr.
52788         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
52789         * modules/strcasestr-tests (Depends-on): Check for alarm.
52790         * tests/test-strcasestr.c: Augment test.
52791         * lib/str-two-way.h: Clean up stray macro.
52792         * NEWS: Document new module.
52793         * MODULES.html.sh (string handling): Likewise.
52794         * doc/functions/strcasestr.texi: New file.
52795         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
52796         here, since it is not a POSIX function.
52797
52798 2008-01-14  Colin Watson  <cjwatson@debian.org>
52799             Bruno Haible  <bruno@clisp.org>
52800
52801         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
52802         works fine; if not, set REPLACE_STRSIGNAL.
52803         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
52804         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52805         REPLACE_STRSIGNAL.
52806         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
52807         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
52808         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
52809
52810 2008-01-14  Bruno Haible  <bruno@clisp.org>
52811
52812         * modules/strsignal (Include): Change to <string.h>.
52813
52814 2008-01-14  Colin Watson  <cjwatson@debian.org>
52815
52816         * modules/argp (Notice): Add a notice recommending to change
52817         XGETTEXT_OPTIONS.
52818         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
52819
52820 2008-01-13  Colin Watson  <cjwatson@debian.org>
52821
52822         * modules/strsignal-tests: New file.
52823         * tests/test-strsignal.c: New file.
52824
52825         * lib/strsignal.c: New file, from glibc with modifications.
52826         * lib/siglist.h: New file, from glibc with modifications.
52827         * lib/string.in.h (strsignal): New declaration.
52828         * m4/strsignal.m4: New file.
52829         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52830         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
52831         * modules/strsignal: New file.
52832         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
52833         HAVE_DECL_STRSIGNAL.
52834
52835 2008-01-13  Bruno Haible  <bruno@clisp.org>
52836
52837         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
52838         locale encoding is not ASCII. Needed for OpenBSD 4.0.
52839         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
52840         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
52841
52842 2008-01-13  Bruno Haible  <bruno@clisp.org>
52843
52844         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
52845         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
52846         * lib/argp.h (__attribute__): Likewise.
52847         * lib/c-stack.c (__attribute__): Likewise.
52848         * lib/error.h (__attribute__): Likewise.
52849         * lib/fts.c (__attribute__): Likewise.
52850         * lib/openat.h (__attribute__): Likewise.
52851         * lib/stdio.in.h (__attribute__): Likewise.
52852         * lib/string.in.h (__attribute__): Likewise.
52853         * lib/utimens.c (__attribute__): Likewise.
52854         * lib/vasnprintf.h (__attribute__): Likewise.
52855         * lib/xalloc.h (__attribute__): Likewise.
52856         * lib/xprintf.h (__attribute__): Likewise.
52857         * lib/xstrtol.h (__attribute__): Likewise.
52858         * lib/xvasprintf.h (__attribute__): Likewise.
52859
52860 2008-01-12  Bruno Haible  <bruno@clisp.org>
52861
52862         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
52863         * doc/glibc-headers/a.out.texi: New file.
52864         * doc/glibc-headers/aliases.texi: New file.
52865         * doc/glibc-headers/alloca.texi: New file.
52866         * doc/glibc-headers/ar.texi: New file.
52867         * doc/glibc-headers/argp.texi: New file.
52868         * doc/glibc-headers/argz.texi: New file.
52869         * doc/glibc-headers/byteswap.texi: New file.
52870         * doc/glibc-headers/crypt.texi: New file.
52871         * doc/glibc-headers/endian.texi: New file.
52872         * doc/glibc-headers/envz.texi: New file.
52873         * doc/glibc-headers/err.texi: New file.
52874         * doc/glibc-headers/error.texi: New file.
52875         * doc/glibc-headers/execinfo.texi: New file.
52876         * doc/glibc-headers/fpu_control.texi: New file.
52877         * doc/glibc-headers/fstab.texi: New file.
52878         * doc/glibc-headers/fts.texi: New file.
52879         * doc/glibc-headers/getopt.texi: New file.
52880         * doc/glibc-headers/ieee754.texi: New file.
52881         * doc/glibc-headers/ifaddrs.texi: New file.
52882         * doc/glibc-headers/libintl.texi: New file.
52883         * doc/glibc-headers/mcheck.texi: New file.
52884         * doc/glibc-headers/mntent.texi: New file.
52885         * doc/glibc-headers/obstack.texi: New file.
52886         * doc/glibc-headers/paths.texi: New file.
52887         * doc/glibc-headers/printf.texi: New file.
52888         * doc/glibc-headers/pty.texi: New file.
52889         * doc/glibc-headers/resolv.texi: New file.
52890         * doc/glibc-headers/shadow.texi: New file.
52891         * doc/glibc-headers/sysexits.texi: New file.
52892         * doc/glibc-headers/ttyent.texi: New file.
52893
52894 2008-01-12  Jim Meyering  <meyering@redhat.com>
52895
52896         announce-gen: emit Gnulib's git-based version string.
52897         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
52898         New option --gnulib-version=V, where V is expected to be
52899         the output of running git describe in the gnulib directory.
52900         (get_tool_versions): Request feedback on xdelta.  I suspect it's
52901         not useful, and plan to stop publishing an xdelta file with each
52902         coreutils release.
52903
52904         * build-aux/announce-gen: Also check for lzma-compressed files.
52905
52906 2008-01-11  Bruno Haible  <bruno@clisp.org>
52907
52908         * tests/test-memmem.c (main): Increase maximum allowed time.
52909         * tests/test-strstr.c (main): Likewise.
52910
52911 2008-01-11  Bruno Haible  <bruno@clisp.org>
52912
52913         * doc/functions/memmem.texi: Add more precisions about platforms.
52914         * doc/functions/strstr.texi: Likewise.
52915
52916 2008-01-10  Eric Blake  <ebb9@byu.net>
52917
52918         * m4/strstr.m4: Delete cruft from copy-n-paste.
52919         Reported by Bruno Haible.
52920
52921 2008-01-10  Bruno Haible  <bruno@clisp.org>
52922
52923         Make c-strstr rely on strstr.
52924         * lib/c-strstr.c: Don't include str-kmp.h.
52925         (c_strstr): Define in terms of strstr.
52926         * modules/c-strstr (Files): Remove lib/str-kmp.h.
52927         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
52928
52929 2008-01-10  Bruno Haible  <bruno@clisp.org>
52930
52931         * doc/gnulib.texi (String Functions in C Locale): New section.
52932         * doc/c-ctype.texi: New file.
52933         * doc/c-strcase.texi: New file.
52934         * doc/c-strcaseeq.texi: New file.
52935         * doc/c-strcasestr.texi: New file.
52936         * doc/c-strstr.texi: New file.
52937         * doc/c-strtod.texi: New file.
52938         * doc/c-strtold.texi: New file.
52939
52940 2008-01-10  Eric Blake  <ebb9@byu.net>
52941
52942         * lib/relocatable.h: Fix a comment.
52943
52944 2008-01-10  Eric Blake  <ebb9@byu.net>
52945
52946         Share two-way algorithm.
52947         * lib/str-two-way.h: New file, merged from...
52948         * lib/memmem.c: ...here...
52949         * lib/strstr.c: ...and here.
52950         * modules/memmem (Files): Use it.
52951         * modules/strstr (Files): Likewise.
52952
52953         Avoid quadratic strstr implementations.
52954         * lib/strstr.c: New file.
52955         * m4/strstr.m4: Likewise.
52956         * modules/strstr: Likewise.
52957         * modules/strstr-tests: Likewise.
52958         * tests/test-strstr.c: Likewise.
52959         * lib/string.in.h (rpl_strstr): Declare.
52960         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
52961         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
52962         * modules/string (Makefile.am): Likewise.
52963         * MODULES.html.sh (string handling): Mention new module.
52964         * doc/functions/strstr.texi (strstr): Document the bug.
52965
52966 2008-01-10  Bruno Haible  <bruno@clisp.org>
52967
52968         * lib/relocatable.h (relocate): State whether result is freshly
52969         allocated or not.
52970         * lib/relocatable.c (relocate): Return a freshly allocated string
52971         instead of a pointer to a privately held string.
52972         Reported by Sylvain Beucler <beuc@gnu.org>.
52973
52974 2008-01-10  Colin Watson  <cjwatson@debian.org>
52975
52976         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
52977         s/S_ISNLK/S_ISLNK/.
52978
52979 2008-01-09  Bruno Haible  <bruno@clisp.org>
52980
52981         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
52982         and other files.
52983         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
52984         if it's only a guess.
52985         * modules/memmem: Simplify by depending on memmem-simple.
52986
52987 2008-01-09  Bruno Haible  <bruno@clisp.org>
52988
52989         Work around OpenBSD 4.0 tdelete() bug.
52990         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
52991         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
52992         macros and don't redefine the enum values.
52993         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
52994         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
52995         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
52996
52997 2008-01-09  Bruno Haible  <bruno@clisp.org>
52998
52999         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
53000         (main): Don't perform the tests if setlocale did not install a UTF-8
53001         locale. Needed on OpenBSD 4.0.
53002         * modules/wcwidth-tests (Depends-on): Add localcharset.
53003
53004 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53005
53006         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
53007         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
53008         * NEWS: announce this.
53009         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
53010
53011 2008-01-09  Simon Josefsson  <simon@josefsson.org>
53012         and Eric Blake  <ebb9@byu.net>
53013
53014         Add memmem-simple module.
53015         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
53016         (gl_FUNC_MEMMEM): Separate performance from presence checks.
53017         * modules/memmem-simple: New file.
53018         * modules/memmem (Description): Tweak.
53019         * MODULES.html.sh (string handling): Mention new module.
53020         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
53021         addressed by memmem-simple.
53022         * NEWS: Document the difference.
53023
53024 2008-01-09  Eric Blake  <ebb9@byu.net>
53025
53026         Give gcc some memmem optimization hints.
53027         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
53028         (strcasestr): Declare as pure.
53029         * modules/memmem (Maintainer): Claim my implementation.
53030
53031 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53032
53033         Support AIX 6.1 and higher.
53034         * build-aux/config.libpath: Likewise.
53035         * build-aux/config.rpath: Likewise.
53036
53037 2008-01-08  Jim Meyering  <meyering@redhat.com>
53038             Bruno Haible  <bruno@clisp.org>
53039
53040         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
53041         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
53042         Reported by Peter Fales in
53043         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
53044
53045 2008-01-08  Bruno Haible  <bruno@clisp.org>
53046
53047         * modules/unictype/category-of (Depends-on): Add
53048         unictype/category-none.
53049         * modules/unictype/category-and-tests (Depends-on): Add
53050         unictype/category-{L,N,Lu,Nd}.
53051         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
53052         * modules/unictype/category-or-tests (Depends-on): Add
53053         unictype/category-{L,N}.
53054         * modules/unictype/category-name-tests (Depends-on): Add
53055         unictype/category-{Z,Nl}.
53056         Reported by Simon Josefsson.
53057
53058 2008-01-08  Bruno Haible  <bruno@clisp.org>
53059
53060         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
53061         convention better.
53062         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
53063         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
53064         Reported by Peter Miller <millerp@canb.auug.org.au>.
53065
53066 2008-01-08  Eric Blake  <ebb9@byu.net>
53067
53068         Rewrite memmem to guarantee linear complexity without malloc.
53069         * lib/memmem.c (memmem): Use Two-Way rather than
53070         Knuth-Morris-Pratt, to allow O(1) space usage.
53071         (critical_factorization, two_way_short_needle)
53072         (two_way_long_needle): New functions.
53073         (knuth_morris_pratt): Delete.
53074         * modules/memmem (Depends-on): No longer need malloca or stdbool.
53075         Add stdint.
53076         * tests/test-memmem.c (main): Add tests for periodic needle and
53077         sublinear performance.
53078         * doc/functions/memmem.texi (memmem): Document other deficiencies
53079         in cygwin and older glibc.
53080
53081 2008-01-08  Bruno Haible  <bruno@clisp.org>
53082
53083         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
53084         augmentation.
53085
53086 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
53087
53088         Add a configure time option: --disable-acl.
53089         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
53090         AC_ARG_ENABLE(acl).
53091
53092 2008-01-06  Simon Josefsson  <simon@josefsson.org>
53093
53094         * tests/test-localename.c: Don't include obsolete "setenv.h".
53095
53096         * modules/localename-tests (Depends-on): Need unsetenv.
53097
53098 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53099
53100         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
53101
53102 2008-01-06  Colin Watson  <cjwatson@debian.org>
53103
53104         * users.txt: Add man-db.
53105
53106 2008-01-07  Bruno Haible  <bruno@clisp.org>
53107
53108         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
53109         previous section name.
53110
53111 2008-01-07  Bruno Haible  <bruno@clisp.org>
53112
53113         * lib/progname.c (set_program_name): Don't strip off a leading
53114         "lt-" prefix outside a .libs directory.
53115         Suggested by Paul Eggert.
53116
53117 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
53118             Bruno Haible  <bruno@clisp.org>
53119
53120         Improve memory cleanup in 'relocatable' module.
53121         * lib/relocatable.h (compute_curr_prefix): Change return type to
53122         'char *'.
53123         * lib/relocatable.c (compute_curr_prefix): Change return type to
53124         'char *'. Free curr_installdir after use.
53125         (relocate): Free curr_prefix_better after use.
53126         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
53127
53128 2008-01-01  Bruno Haible  <bruno@clisp.org>
53129
53130         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
53131         failure on older glibc systems.
53132         Reported by Peter Fales <psfales@alcatel-lucent.com>.
53133
53134 2008-01-05  Eric Blake  <ebb9@byu.net>
53135
53136         Avoid quadratic system memmem.
53137         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
53138         Reported by Ralf Wildenhues.
53139
53140         Fix memmem test for mingw.
53141         * modules/memmem-tests (configure.ac): Check for alarm.
53142         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
53143         it.
53144         * doc/functions/memmem.texi: New file.
53145         * doc/gnulib.texi (Function Substitutes): Add memmem.
53146         Reported by Bruno Haible.
53147
53148 2008-01-04  Bruno Haible  <bruno@clisp.org>
53149
53150         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
53151         Require gl_HEADER_STRINGS_H_DEFAULTS, not
53152         gl_HEADER_STRING_H_DEFAULTS.
53153
53154 2008-01-04  Eric Blake  <ebb9@byu.net>
53155
53156         Shorten duration of memmem test.
53157         * tests/test-memmem.c (main): Use alarm to declare failure if test
53158         is taking too long.
53159         Reported by Ralf Wildenhues.
53160
53161 2007-12-21  Simon Josefsson  <simon@josefsson.org>
53162
53163         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
53164         string, needed by strerror.
53165
53166 2008-01-03  Colin Watson  <cjwatson@debian.org>
53167             Bruno Haible  <bruno@clisp.org>
53168
53169         * doc/gnulib-tool.texi (Localization): New section.
53170
53171 2008-01-02  Bruno Haible  <bruno@clisp.org>
53172
53173         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
53174         variables to 'unsigned char *' type.
53175         Reported by Paul Eggert.
53176
53177 2008-01-02  Jim Meyering  <jim@meyering.net>
53178
53179         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
53180
53181 2007-12-31  Jim Meyering  <jim@meyering.net>
53182
53183         Avoid use of private FTS type name.
53184         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
53185
53186 2007-12-30  Karl Berry  <karl@gnu.org>
53187
53188         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
53189         work around defect in Texinfo and/or the standalone Info browser.
53190
53191 2007-12-30  Bruno Haible  <bruno@clisp.org>
53192
53193         Unify 5 copies of the KMP code.
53194         * lib/str-kmp.h: New file.
53195         * lib/c-strcasestr.c: Include str-kmp.h.
53196         (knuth_morris_pratt): Remove function.
53197         (c_strcasestr): Update.
53198         * lib/c-strstr.c: Include str-kmp.h.
53199         (knuth_morris_pratt): Remove function.
53200         (c_strcasestr): Update.
53201         * lib/mbscasestr.c: Include str-kmp.h.
53202         (knuth_morris_pratt_unibyte): Remove function.
53203         * lib/mbsstr.c: Include str-kmp.h.
53204         (knuth_morris_pratt_unibyte): Remove function.
53205         * lib/strcasestr.c: Include str-kmp.h.
53206         (knuth_morris_pratt): Remove function.
53207         (strcasestr): Update.
53208         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
53209         * modules/c-strstr (Files): Likewise.
53210         * modules/mbscasestr (Files): Likewise.
53211         * modules/mbsstr (Files): Likewise.
53212         * modules/strcasestr (Files): Likewise.
53213         Suggested by Paul Eggert.
53214
53215 2007-12-30  Bruno Haible  <bruno@clisp.org>
53216
53217         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
53218         defined.
53219
53220 2007-12-30  Bruno Haible  <bruno@clisp.org>
53221
53222         * lib/xmalloca.h: Include xalloc.h.
53223         (xnmalloca): New macro.
53224
53225 2007-12-30  Bruno Haible  <bruno@clisp.org>
53226
53227         * lib/malloca.h (nmalloca): New macro.
53228         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
53229         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
53230         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
53231         knuth_morris_pratt_multibyte): Likewise.
53232         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
53233         knuth_morris_pratt_multibyte): Likewise.
53234         * lib/memmem.c (knuth_morris_pratt): Likewise.
53235         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
53236
53237 2007-12-25  Bruno Haible  <bruno@clisp.org>
53238
53239         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
53240         * lib/glob.c: Don't include openat.h.
53241         (link_exists2_p): Add back the code that deals with the
53242         !GLOB_ALTDIRFUNC case.
53243         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
53244         let it do the filename concatenation.
53245         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
53246         * modules/glob (Depends-on): Remove openat.
53247
53248 2007-12-31  Bruno Haible  <bruno@clisp.org>
53249
53250         * modules/dirfd (License): Change to LGPLv2+.
53251         Approved by Jim Meyering.
53252
53253 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
53254
53255         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
53256         when multiplying M by sizeof (size_t).
53257
53258 2007-12-10  Martin Lambers  <marlam@marlam.de>
53259
53260         Override getpagesize on mingw.
53261         * lib/getpagesize.c: New file.
53262         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
53263         * modules/getpagesize (Files): Add lib/getpagesize.c.
53264         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
53265         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53266         REPLACE_GETPAGESIZE.
53267         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
53268
53269 2007-12-25  Bruno Haible  <bruno@clisp.org>
53270
53271         * modules/localcharset (Notice): New field.
53272         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
53273         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
53274
53275 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
53276             Bruno Haible  <bruno@clisp.org>
53277
53278         Avoid using the syntax symbol() in formatted documentation.
53279         * MODULES.html.sh (func_module): When replacing symbol() with a
53280         hyperlink, remove the parentheses. Show an error if some remain.
53281         Recognize and render the '...' syntax.
53282         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
53283         Rework. Add paragraph about GCC's inlining.
53284         * doc/alloca.texi: Likewise.
53285         * doc/error.texi: Remove parentheses from symbol reference.
53286         * doc/gnulib-intro.texi: Likewise.
53287         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
53288         * modules/fnmatch (Description): Reword to say "the ... function".
53289         * modules/full-read (Description): Likewise.
53290         * modules/full-write (Description): Likewise.
53291         * modules/safe-read (Description): Likewise.
53292         * modules/safe-write (Description): Likewise.
53293         * modules/strchrnul (Description): Likewise.
53294         * modules/trim (Description): Likewise.
53295         * modules/error (Description): Remove parentheses from symbol
53296         references.
53297         * modules/verror (Description): Likewise.
53298         Reported by Karl Berry.
53299
53300 2007-12-25  Bruno Haible  <bruno@clisp.org>
53301
53302         Fixup after 2007-10-16 commit.
53303         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
53304
53305 2007-12-24  Bruno Haible  <bruno@clisp.org>
53306
53307         Make --enable-relocatable work with DESTDIR.
53308         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
53309         to compute installdir from destprog.
53310         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
53311         also set the RELOC_DESTDIR variable.
53312         Reported by Левашев Иван <octagram@bluebottle.com>.
53313
53314 2007-12-24  Bruno Haible  <bruno@clisp.org>
53315
53316         Fix link error due to xalloc_die().
53317         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
53318         of xreadlink.
53319         * lib/relocwrapper.c: Update comments.
53320         * build-aux/install-reloc: Remove xreadlink.c from file list.
53321         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
53322         xreadlink.c.
53323         Reported by Левашев Иван <octagram@bluebottle.com>.
53324
53325 2007-12-24  Bruno Haible  <bruno@clisp.org>
53326
53327         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
53328         * lib/setenv.h: Remove file.
53329         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
53330         lib/setenv.h.
53331         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
53332         (Depends-on): Add stdlib.
53333         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
53334         gl_FUNC_UNSETENV.
53335         (Include): Replace setenv.h with <stdlib.h>.
53336         * modules/unsetenv: New file.
53337         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
53338         * lib/unsetenv.c: Include <stdlib.h> first.
53339         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
53340         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
53341         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
53342         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
53343         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
53344         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53345         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
53346         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
53347         * doc/functions/unsetenv.texi: Update.
53348         * modules/xsetenv (Depends-on): Add unsetenv.
53349         * modules/getdate (Depends-on): Likewise.
53350         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
53351         * lib/xsetenv.c: Don't include setenv.h.
53352         * lib/getdate.y: Likewise.
53353         * lib/relocwrapper.c: Likewise.
53354         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
53355         (Depends-on): Add stdlib.
53356         * NEWS: Mention the changes.
53357         Reported by Левашев Иван <octagram@bluebottle.com>.
53358
53359 2007-12-23  Bruno Haible  <bruno@clisp.org>
53360
53361         * lib/memmem.c (memmem): Use lowercase variable names. Tab
53362         indentation.
53363
53364 2007-12-23  Bruno Haible  <bruno@clisp.org>
53365
53366         * lib/c-strcasestr.c: Add more comments.
53367         * lib/c-strstr.c: Likewise.
53368         * lib/mbscasestr.c: Likewise.
53369         * lib/mbsstr.c: Likewise.
53370         * lib/strcasestr.c: Likewise.
53371         * lib/memmem.c: Likewise.
53372
53373 2007-12-23  Bruno Haible  <bruno@clisp.org>
53374
53375         * tests/test-memmem.c: Include <string.h> first.
53376
53377 2007-12-22  Bruno Haible  <bruno@clisp.org>
53378
53379         * gnulib-tool (func_create_testdir): Change $auxdir while generating
53380         the contents of $testsbase.
53381         Reported by Ralf Wildenhues.
53382
53383 2007-12-22  Bruno Haible  <bruno@clisp.org>
53384
53385         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
53386         two variables local_ldadd_before, local_ldadd_last.
53387
53388 2007-12-20  Eric Blake  <ebb9@byu.net>
53389
53390         Work around circular library issue when cross-compiling.
53391         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
53392         that progname.o does not need to pull in rpl_memcmp.
53393
53394 2007-12-19  Eric Blake  <ebb9@byu.net>
53395
53396         Fix memmem to avoid O(n^2) worst-case complexity.
53397         * lib/memmem.c (knuth_morris_pratt): New function.
53398         (memmem): Use it if first few naive iterations fail.
53399         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
53400         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
53401         * modules/memchr (License): Likewise.
53402         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
53403         malloca.
53404         * tests/test-memmem.c: Rewrite, borrowing ideas from
53405         test-mbsstr1.c; the old version wouldn't even compile!
53406         * modules/memmem-tests: New file.
53407         * lib/string.in.h (rpl_memmem): Add declaration.
53408         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
53409         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
53410         REPLACE_MEMMEM.
53411
53412 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
53413
53414         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
53415         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
53416         before any system include files, and undef after them all.  This
53417         should fix a problem on VMS reported by John E. Malmberg in
53418         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
53419
53420 2007-12-17  Eric Blake  <ebb9@byu.net>
53421
53422         Revert addition of verify, for BSD/OS.
53423         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
53424         can't handle large files, for the sake of obsolete platforms.
53425         * modules/fseeko (Depends-on): Remove verify.
53426         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
53427         * doc/functions/ftello.texi (ftello): Likewise.
53428         * doc/functions/fgetpos.texi (fgetpos): Likewise.
53429         Reported by Larry Jones.
53430
53431 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
53432
53433         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
53434         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
53435
53436 2007-12-17  Jim Meyering  <meyering@redhat.com>
53437
53438         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
53439         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
53440         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
53441         * modules/getcwd (Depends-on): Add openat.
53442         Reported by Petr Salinger.
53443
53444 2007-12-17  Bruno Haible  <bruno@clisp.org>
53445
53446         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
53447         avoid a segmentation fault of the configure test on x86_64 systems.
53448
53449 2007-12-15  Jim Meyering  <meyering@redhat.com>
53450
53451         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
53452
53453 2007-12-13  Eric Blake  <ebb9@byu.net>
53454
53455         Another fseek test.
53456         * tests/test-fseek.c (main): Also test ungetc handling.
53457         * tests/test-fseeko.c (main): Likewise.
53458         * modules/fseeko (Depends-on): Add verify.
53459         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
53460         large.
53461         Reported by Larry Jones.
53462
53463         Fix fseeko on mingw.
53464         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
53465         seek.
53466
53467         Beef up fseek tests.
53468         * tests/test-fseek.c (main): Also test eof handling.
53469         * tests/test-fseeko.c (main): Likewise.
53470         Reported by Larry Jones.
53471
53472 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
53473
53474         Fix fseeko on BSD-based platforms.
53475         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
53476         successful seek.
53477
53478 2007-12-12  Eric Blake  <ebb9@byu.net>
53479
53480         Allow circular dependency of separate libtests.a
53481         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
53482         when use_libtests.
53483
53484 2007-12-11  Eric Blake  <ebb9@byu.net>
53485
53486         Fix bug with -0.0L in previous patch.
53487         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
53488         * tests/test-isnan.c (main): Also test on zeroes.
53489         * tests/test-isnanf.c (main): Likewise.
53490         * tests/test-isnanl.h (main): Likewise.
53491
53492         Detect pseudo-denormals on x86 even when cross-compiling.
53493         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
53494         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
53495         invalid bit patterns that happen to satisfy ==.
53496
53497         Avoid link failures with separate libtests.a.
53498         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
53499         last, to satisfy circular dependencies.
53500
53501 2007-12-11  Eric Blake  <ebb9@byu.net>
53502         and Bruno Haible  <bruno@clisp.org>
53503
53504         Fix OpenBSD 4.0 <float.h> handling of long double.
53505         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
53506         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
53507         * doc/headers/float.texi (float.h): Document OpenBSD bug.
53508
53509 2007-12-11  Jim Meyering  <meyering@redhat.com>
53510
53511         * users.txt: Add libvirt.
53512
53513         Support versions of autoconf prior to 2.59c.
53514         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
53515         if it is not already defined.
53516
53517 2007-12-09  Bruno Haible  <bruno@clisp.org>
53518
53519         Let 'gnulib-tool --import' collect sources needed for the tests in
53520         tests/ rather than in lib/.
53521         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
53522         argument. If true, add rules to generate libtests.a, and put libtests.a
53523         into $(LDADD). Consider source files in subdirectories and set
53524         uses_subdirs.
53525         (func_emit_initmacro_start, func_emit_initmacro_end,
53526         func_emit_initmacro_done): Pass all arguments explicitly.
53527         (func_import): Determine two module lists main_modules,
53528         testsrelated_modules. Determine use_libtests. Determine two variables
53529         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
53530         instead of just sed_transform_lib_file. Determine two variables
53531         main_files and testsrelated_files. Compute 'files' as the union of
53532         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
53533         func_add_or_update. In the generated gnulib-comp.m4, collect the
53534         object files for tests/ in different variables than those for lib/.
53535         Substitute LIBTESTS_LIBDEPS.
53536         (func_create_testdir): Combine the uses_subdirs results from
53537         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
53538
53539 2007-12-09  Bruno Haible  <bruno@clisp.org>
53540
53541         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
53542         the build-aux directory.
53543
53544 2007-12-09  Bruno Haible  <bruno@clisp.org>
53545
53546         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
53547         introduced on 2006-09-09.
53548
53549 2007-12-07  Jim Meyering  <meyering@redhat.com>
53550
53551         Let these macros work also with autoconf-2.59.
53552         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
53553         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
53554         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53555
53556 2007-12-06  Jim Meyering  <meyering@redhat.com>
53557
53558         Avoid a configure-time syntax error in gl_FUNC_ACL.
53559         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
53560         function in each branch, before testing the cache variable.
53561
53562 2007-12-04  Eric Blake  <ebb9@byu.net>
53563
53564         Make scripts executable.
53565         * build-aux/config.guess: Add execute permissions.
53566         * build-aux/config.sub: Likewise.
53567         * build-aux/gendocs.sh: Likewise.
53568
53569         Fix frexp on mingw.
53570         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
53571         cross-compiling.
53572         * doc/functions/frexp.texi (frexp): Document the bug.
53573
53574         Make cygwin fseeko check more reliable.
53575         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
53576         version numbers, rather than unrelated feature check.
53577         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
53578         * doc/functions/ftello.texi (ftello): Likewise.
53579         Reported by Bruno Haible.
53580
53581         * m4/strerror.m4: Bump version number.
53582
53583 2007-12-03  Bruno Haible  <bruno@clisp.org>
53584
53585         * doc/functions/mprotect.texi: Mention the mingw problem.
53586
53587 2007-12-03  Eric Blake  <ebb9@byu.net>
53588
53589         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
53590         REPLACE_STRERROR is initialized before this macro.
53591
53592 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
53593
53594         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
53595         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
53596         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
53597         put -lsec in even for programs other than 'ls'.  This fixes a problem
53598         for gettext reported by Bruno Haible in
53599         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
53600         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
53601         Add support for Solaris 10.  This isn't efficient, but should get the
53602         job done for now.
53603
53604 2007-12-03  James Youngman  <jay@gnu.org>
53605
53606         * doc/regexprops-generic.texi: change "an close-group" to "a
53607         close-group" and "illegal" to "not allowed".
53608
53609 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53610
53611         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
53612         pr_byname.h. Needed for the rare case when the maintainer has done
53613         "make maintainer-clean" in the source directory and then attempts a
53614         build outside the source directory.
53615         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
53616         scripts_byname.h.
53617
53618 2007-12-02  Martin Lambers <marlam@marlam.de>
53619             Bruno Haible  <bruno@clisp.org>
53620
53621         * lib/getpagesize.h: Remove file.
53622         * lib/unistd.in.h: Include declaration of getpagesize here.
53623         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
53624         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
53625         HAVE_SYS_PARAM_H.
53626         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
53627         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53628         * modules/getpagesize (Files): Remove lib/getpagesize.h.
53629         (Depends-on): Add unistd.
53630         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53631         (Include): Use <unistd.h> instead of getpagesize.h.
53632         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
53633         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
53634         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
53635         gl_GETPAGESIZE invocation, already handled by module dependency.
53636         * lib/pagealign_alloc.c: Don't include getpagesize.h.
53637
53638 2007-12-02  Bruno Haible  <bruno@clisp.org>
53639
53640         * modules/strings-tests: New file.
53641         * tests/test-strings.c: New file.
53642
53643         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
53644         * lib/strings.in.h: New file.
53645         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
53646         * m4/strings_h.m4: New file.
53647         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
53648         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
53649         * modules/strings: New file.
53650         * modules/string (Makefile.am): Update.
53651         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
53652         Reported by Karl Berry.
53653
53654 2007-12-01  Eric Blake  <ebb9@byu.net>
53655
53656         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
53657         accomodate fix in cygwin 1.5.25.
53658
53659 2007-12-01  Jim Meyering  <meyering@redhat.com>
53660
53661         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
53662         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
53663         that would inhibit utf8-optimization of a regexp containing line-
53664         or buffer-anchors, e.g., `^', `$'.
53665
53666 2007-11-30  Bruno Haible  <bruno@clisp.org>
53667
53668         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
53669         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
53670         glthread_recursive_lock_init.
53671         * lib/lock.c (glthread_recursive_lock_init)
53672         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
53673         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53674
53675 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
53676
53677         New function qset_acl, like set_acl but with syscall semantics.
53678         * lib/acl.h (qset_acl): New decl.
53679         * lib/acl.c (qset_acl): New function.
53680         (set_acl): Use new function.  Use more-consistent diagnostics.
53681
53682 2007-11-28  Jim Meyering  <meyering@redhat.com>
53683
53684         * modules/physmem (License): Change from GPL to LGPLv2+.
53685
53686 2007-11-26  Bruno Haible  <bruno@clisp.org>
53687
53688         * lib/vasnprintf.c (decode_long_double): Don't abort if the
53689         'long double' type has excess precision.
53690         Reported by Jim Meyering in
53691         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
53692
53693 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53694
53695         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
53696         Sync from <http://gnu.org/licenses>.
53697         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
53698         with license text from same location.
53699         * doc/maintain.texi, doc/standards.texi:  Sync from
53700         <http://savannah.gnu.org/projects/gnustandards>.
53701
53702 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
53703         and Jim Meyering  <meyering@redhat.com>
53704
53705         Adjust getdate' grammar to accept a slightly more regular language.
53706         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
53707         Before, the former was rejected.
53708         * lib/getdate.y (digits_to_date_time): New function, factored
53709         out of ...
53710         (number): ...here.  Just call digits_to_date_time.
53711         (hybrid): New non-terminal to handle an <unsigned number,
53712         signed relative offset> sequence consistently.
53713
53714 2007-11-18  Jim Meyering  <meyering@redhat.com>
53715
53716         Pull my changes from coreutils:
53717         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
53718         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
53719         use of $gnulib_tool_option_extras, so that it's separated from the
53720         preceding argument.
53721
53722         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
53723         * build-aux/bootstrap (cp_mark_as_generated): Create any required
53724         parent destination directories before copying a file into place.
53725
53726 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
53727
53728         bootstrap: work also with 4-argument variant of AC_INIT
53729         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
53730
53731 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
53732
53733         Port test-getaddrinfo to Solaris.
53734         Problem reported by Bruno Haible in
53735         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
53736         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
53737         explanation of setting 'hints'.
53738         Don't reject an implementation merely because it returns EAI_SERVICE.
53739         (EAI_SERVICE): Define to 0 if not defined.
53740
53741 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53742
53743         The license of gnu-make and posix-shell is now "GPLed build tool".
53744         * modules/gnu-make (License): Likewise.
53745         * modules/posix-shell (License): Likewise.
53746
53747         New module posix-shell, for determining a POSIX shell
53748         or perhaps something that is close enough to a POSIX shell.
53749         * m4/posix-shell.m4: New file.
53750         * modules/posix-shell: New file.
53751
53752         * MODULES.html.sh: Mention new module.
53753
53754         New module gnu-make, for determining whether we're using GNU Make.
53755         * m4/gnu-make.m4: New file.
53756         * modules/gnu-make: New file.
53757         * MODULES.html.sh: Mention new module.
53758
53759 2007-11-14  Jim Meyering  <meyering@redhat.com>
53760
53761         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
53762         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
53763         use this macro to create a function _definition_.
53764         Remove useless "#undef ARGMATCH_DIE".
53765
53766 2007-11-14  Bruno Haible  <bruno@clisp.org>
53767
53768         * lib/config.charset: Update for OpenBSD 4.1.
53769         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
53770
53771 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
53772
53773         Document 64-bit #if problems in stdint.texi.
53774         * doc/headers/stdint.texi (stdint.h): Mention problems with
53775         64-bit-#if, and how to work around them.
53776
53777         Don't insist on 'long long int' support in the preprocessor.  It
53778         breaks too many things.  For example, PRIdMAX still uses a 'long
53779         long int' format with the latest Sun compiler, even though
53780         HAVE_LONG_LONG_INT isn't defined due to that compiler's
53781         preprocessor problem.  This causes the latest coreutils to dump
53782         core on Solaris 10 sparc with the Sun C compiler.
53783         Instead, fix the 2007-10-16 problem in a different way, by evaluating
53784         the troublesome expressions at configure-time, not at #if-time.
53785         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
53786         preprocessor.
53787         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
53788         compile-time C checks, done at 'configure'-time.
53789         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
53790         * modules/inttypes (Makefile): Substitute the new symbols that
53791         gl_INTTYPES_H now generates.
53792         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
53793
53794 2007-11-12  Bruno Haible  <bruno@clisp.org>
53795
53796         Tests for Unicode character classification functions.
53797
53798         * modules/unictype/bidicategory-byname-tests: New file.
53799         * modules/unictype/bidicategory-name-tests: New file.
53800         * modules/unictype/bidicategory-of-tests: New file.
53801         * modules/unictype/bidicategory-test-tests: New file.
53802         * modules/unictype/block-list-tests: New file.
53803         * modules/unictype/block-of-tests: New file.
53804         * modules/unictype/block-test-tests: New file.
53805         * modules/unictype/category-C-tests: New file.
53806         * modules/unictype/category-Cc-tests: New file.
53807         * modules/unictype/category-Cf-tests: New file.
53808         * modules/unictype/category-Cn-tests: New file.
53809         * modules/unictype/category-Co-tests: New file.
53810         * modules/unictype/category-Cs-tests: New file.
53811         * modules/unictype/category-L-tests: New file.
53812         * modules/unictype/category-Ll-tests: New file.
53813         * modules/unictype/category-Lm-tests: New file.
53814         * modules/unictype/category-Lo-tests: New file.
53815         * modules/unictype/category-Lt-tests: New file.
53816         * modules/unictype/category-Lu-tests: New file.
53817         * modules/unictype/category-M-tests: New file.
53818         * modules/unictype/category-Mc-tests: New file.
53819         * modules/unictype/category-Me-tests: New file.
53820         * modules/unictype/category-Mn-tests: New file.
53821         * modules/unictype/category-N-tests: New file.
53822         * modules/unictype/category-Nd-tests: New file.
53823         * modules/unictype/category-Nl-tests: New file.
53824         * modules/unictype/category-No-tests: New file.
53825         * modules/unictype/category-P-tests: New file.
53826         * modules/unictype/category-Pc-tests: New file.
53827         * modules/unictype/category-Pd-tests: New file.
53828         * modules/unictype/category-Pe-tests: New file.
53829         * modules/unictype/category-Pf-tests: New file.
53830         * modules/unictype/category-Pi-tests: New file.
53831         * modules/unictype/category-Po-tests: New file.
53832         * modules/unictype/category-Ps-tests: New file.
53833         * modules/unictype/category-S-tests: New file.
53834         * modules/unictype/category-Sc-tests: New file.
53835         * modules/unictype/category-Sk-tests: New file.
53836         * modules/unictype/category-Sm-tests: New file.
53837         * modules/unictype/category-So-tests: New file.
53838         * modules/unictype/category-Z-tests: New file.
53839         * modules/unictype/category-Zl-tests: New file.
53840         * modules/unictype/category-Zp-tests: New file.
53841         * modules/unictype/category-Zs-tests: New file.
53842         * modules/unictype/category-and-not-tests: New file.
53843         * modules/unictype/category-and-tests: New file.
53844         * modules/unictype/category-byname-tests: New file.
53845         * modules/unictype/category-name-tests: New file.
53846         * modules/unictype/category-none-tests: New file.
53847         * modules/unictype/category-of-tests: New file.
53848         * modules/unictype/category-or-tests: New file.
53849         * modules/unictype/category-test-withtable-tests: New file.
53850         * modules/unictype/combining-class-tests: New file.
53851         * modules/unictype/ctype-alnum-tests: New file.
53852         * modules/unictype/ctype-alpha-tests: New file.
53853         * modules/unictype/ctype-blank-tests: New file.
53854         * modules/unictype/ctype-cntrl-tests: New file.
53855         * modules/unictype/ctype-digit-tests: New file.
53856         * modules/unictype/ctype-graph-tests: New file.
53857         * modules/unictype/ctype-lower-tests: New file.
53858         * modules/unictype/ctype-print-tests: New file.
53859         * modules/unictype/ctype-punct-tests: New file.
53860         * modules/unictype/ctype-space-tests: New file.
53861         * modules/unictype/ctype-upper-tests: New file.
53862         * modules/unictype/ctype-xdigit-tests: New file.
53863         * modules/unictype/decimal-digit-tests: New file.
53864         * modules/unictype/digit-tests: New file.
53865         * modules/unictype/mirror-tests: New file.
53866         * modules/unictype/numeric-tests: New file.
53867         * modules/unictype/property-alphabetic-tests: New file.
53868         * modules/unictype/property-ascii-hex-digit-tests: New file.
53869         * modules/unictype/property-bidi-arabic-digit-tests: New file.
53870         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
53871         * modules/unictype/property-bidi-block-separator-tests: New file.
53872         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
53873         * modules/unictype/property-bidi-common-separator-tests: New file.
53874         * modules/unictype/property-bidi-control-tests: New file.
53875         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
53876         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
53877         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
53878         * modules/unictype/property-bidi-european-digit-tests: New file.
53879         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
53880         * modules/unictype/property-bidi-left-to-right-tests: New file.
53881         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
53882         * modules/unictype/property-bidi-other-neutral-tests: New file.
53883         * modules/unictype/property-bidi-pdf-tests: New file.
53884         * modules/unictype/property-bidi-segment-separator-tests: New file.
53885         * modules/unictype/property-bidi-whitespace-tests: New file.
53886         * modules/unictype/property-byname-tests: New file.
53887         * modules/unictype/property-combining-tests: New file.
53888         * modules/unictype/property-composite-tests: New file.
53889         * modules/unictype/property-currency-symbol-tests: New file.
53890         * modules/unictype/property-dash-tests: New file.
53891         * modules/unictype/property-decimal-digit-tests: New file.
53892         * modules/unictype/property-default-ignorable-code-point-tests: New file.
53893         * modules/unictype/property-deprecated-tests: New file.
53894         * modules/unictype/property-diacritic-tests: New file.
53895         * modules/unictype/property-extender-tests: New file.
53896         * modules/unictype/property-format-control-tests: New file.
53897         * modules/unictype/property-grapheme-base-tests: New file.
53898         * modules/unictype/property-grapheme-extend-tests: New file.
53899         * modules/unictype/property-grapheme-link-tests: New file.
53900         * modules/unictype/property-hex-digit-tests: New file.
53901         * modules/unictype/property-hyphen-tests: New file.
53902         * modules/unictype/property-id-continue-tests: New file.
53903         * modules/unictype/property-id-start-tests: New file.
53904         * modules/unictype/property-ideographic-tests: New file.
53905         * modules/unictype/property-ids-binary-operator-tests: New file.
53906         * modules/unictype/property-ids-trinary-operator-tests: New file.
53907         * modules/unictype/property-ignorable-control-tests: New file.
53908         * modules/unictype/property-iso-control-tests: New file.
53909         * modules/unictype/property-join-control-tests: New file.
53910         * modules/unictype/property-left-of-pair-tests: New file.
53911         * modules/unictype/property-line-separator-tests: New file.
53912         * modules/unictype/property-logical-order-exception-tests: New file.
53913         * modules/unictype/property-lowercase-tests: New file.
53914         * modules/unictype/property-math-tests: New file.
53915         * modules/unictype/property-non-break-tests: New file.
53916         * modules/unictype/property-not-a-character-tests: New file.
53917         * modules/unictype/property-numeric-tests: New file.
53918         * modules/unictype/property-other-alphabetic-tests: New file.
53919         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
53920         * modules/unictype/property-other-grapheme-extend-tests: New file.
53921         * modules/unictype/property-other-id-continue-tests: New file.
53922         * modules/unictype/property-other-id-start-tests: New file.
53923         * modules/unictype/property-other-lowercase-tests: New file.
53924         * modules/unictype/property-other-math-tests: New file.
53925         * modules/unictype/property-other-uppercase-tests: New file.
53926         * modules/unictype/property-paired-punctuation-tests: New file.
53927         * modules/unictype/property-paragraph-separator-tests: New file.
53928         * modules/unictype/property-pattern-syntax-tests: New file.
53929         * modules/unictype/property-pattern-white-space-tests: New file.
53930         * modules/unictype/property-private-use-tests: New file.
53931         * modules/unictype/property-punctuation-tests: New file.
53932         * modules/unictype/property-quotation-mark-tests: New file.
53933         * modules/unictype/property-radical-tests: New file.
53934         * modules/unictype/property-sentence-terminal-tests: New file.
53935         * modules/unictype/property-soft-dotted-tests: New file.
53936         * modules/unictype/property-space-tests: New file.
53937         * modules/unictype/property-terminal-punctuation-tests: New file.
53938         * modules/unictype/property-test-tests: New file.
53939         * modules/unictype/property-titlecase-tests: New file.
53940         * modules/unictype/property-unassigned-code-value-tests: New file.
53941         * modules/unictype/property-unified-ideograph-tests: New file.
53942         * modules/unictype/property-uppercase-tests: New file.
53943         * modules/unictype/property-variation-selector-tests: New file.
53944         * modules/unictype/property-white-space-tests: New file.
53945         * modules/unictype/property-xid-continue-tests: New file.
53946         * modules/unictype/property-xid-start-tests: New file.
53947         * modules/unictype/property-zero-width-tests: New file.
53948         * modules/unictype/scripts-tests: New file.
53949         * modules/unictype/syntax-c-ident-tests: New file.
53950         * modules/unictype/syntax-c-whitespace-tests: New file.
53951         * modules/unictype/syntax-java-ident-tests: New file.
53952         * modules/unictype/syntax-java-whitespace-tests: New file.
53953         * tests/unictype/test-bidi_byname.c: New file.
53954         * tests/unictype/test-bidi_name.c: New file.
53955         * tests/unictype/test-bidi_of.c: New file.
53956         * tests/unictype/test-bidi_test.c: New file.
53957         * tests/unictype/test-block_list.c: New file.
53958         * tests/unictype/test-block_of.c: New file.
53959         * tests/unictype/test-block_test.c: New file.
53960         * tests/unictype/test-categ_and.c: New file.
53961         * tests/unictype/test-categ_and_not.c: New file.
53962         * tests/unictype/test-categ_byname.c: New file.
53963         * tests/unictype/test-categ_name.c: New file.
53964         * tests/unictype/test-categ_none.c: New file.
53965         * tests/unictype/test-categ_of.c: New file.
53966         * tests/unictype/test-categ_or.c: New file.
53967         * tests/unictype/test-categ_test_withtable.c: New file.
53968         * tests/unictype/test-combining.c: New file.
53969         * tests/unictype/test-decdigit.c: New file.
53970         * tests/unictype/test-digit.c: New file.
53971         * tests/unictype/test-mirror.c: New file.
53972         * tests/unictype/test-numeric.c: New file.
53973         * tests/unictype/test-pr_byname.c: New file.
53974         * tests/unictype/test-pr_test.c: New file.
53975         * tests/unictype/test-predicate-part1.h: New file.
53976         * tests/unictype/test-predicate-part2.h: New file.
53977         * tests/unictype/test-scripts.c: New file.
53978         * tests/unictype/test-sy_c_ident.c: New file.
53979         * tests/unictype/test-sy_java_ident.c: New file.
53980
53981         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
53982         for Unicode 5.0.0.
53983         * tests/unictype/test-categ_Cc.c: Likewise.
53984         * tests/unictype/test-categ_Cf.c: Likewise.
53985         * tests/unictype/test-categ_Cn.c: Likewise.
53986         * tests/unictype/test-categ_Co.c: Likewise.
53987         * tests/unictype/test-categ_Cs.c: Likewise.
53988         * tests/unictype/test-categ_L.c: Likewise.
53989         * tests/unictype/test-categ_Ll.c: Likewise.
53990         * tests/unictype/test-categ_Lm.c: Likewise.
53991         * tests/unictype/test-categ_Lo.c: Likewise.
53992         * tests/unictype/test-categ_Lt.c: Likewise.
53993         * tests/unictype/test-categ_Lu.c: Likewise.
53994         * tests/unictype/test-categ_M.c: Likewise.
53995         * tests/unictype/test-categ_Mc.c: Likewise.
53996         * tests/unictype/test-categ_Me.c: Likewise.
53997         * tests/unictype/test-categ_Mn.c: Likewise.
53998         * tests/unictype/test-categ_N.c: Likewise.
53999         * tests/unictype/test-categ_Nd.c: Likewise.
54000         * tests/unictype/test-categ_Nl.c: Likewise.
54001         * tests/unictype/test-categ_No.c: Likewise.
54002         * tests/unictype/test-categ_P.c: Likewise.
54003         * tests/unictype/test-categ_Pc.c: Likewise.
54004         * tests/unictype/test-categ_Pd.c: Likewise.
54005         * tests/unictype/test-categ_Pe.c: Likewise.
54006         * tests/unictype/test-categ_Pf.c: Likewise.
54007         * tests/unictype/test-categ_Pi.c: Likewise.
54008         * tests/unictype/test-categ_Po.c: Likewise.
54009         * tests/unictype/test-categ_Ps.c: Likewise.
54010         * tests/unictype/test-categ_S.c: Likewise.
54011         * tests/unictype/test-categ_Sc.c: Likewise.
54012         * tests/unictype/test-categ_Sk.c: Likewise.
54013         * tests/unictype/test-categ_Sm.c: Likewise.
54014         * tests/unictype/test-categ_So.c: Likewise.
54015         * tests/unictype/test-categ_Z.c: Likewise.
54016         * tests/unictype/test-categ_Zl.c: Likewise.
54017         * tests/unictype/test-categ_Zp.c: Likewise.
54018         * tests/unictype/test-categ_Zs.c: Likewise.
54019         * tests/unictype/test-ctype_alnum.c: Likewise.
54020         * tests/unictype/test-ctype_alpha.c: Likewise.
54021         * tests/unictype/test-ctype_blank.c: Likewise.
54022         * tests/unictype/test-ctype_cntrl.c: Likewise.
54023         * tests/unictype/test-ctype_digit.c: Likewise.
54024         * tests/unictype/test-ctype_graph.c: Likewise.
54025         * tests/unictype/test-ctype_lower.c: Likewise.
54026         * tests/unictype/test-ctype_print.c: Likewise.
54027         * tests/unictype/test-ctype_punct.c: Likewise.
54028         * tests/unictype/test-ctype_space.c: Likewise.
54029         * tests/unictype/test-ctype_upper.c: Likewise.
54030         * tests/unictype/test-ctype_xdigit.c: Likewise.
54031         * tests/unictype/test-decdigit.h: Likewise.
54032         * tests/unictype/test-digit.h: Likewise.
54033         * tests/unictype/test-numeric.h: Likewise.
54034         * tests/unictype/test-pr_alphabetic.c: Likewise.
54035         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
54036         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
54037         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
54038         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
54039         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
54040         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
54041         * tests/unictype/test-pr_bidi_control.c: Likewise.
54042         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
54043         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
54044         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
54045         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
54046         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
54047         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
54048         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
54049         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
54050         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
54051         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
54052         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
54053         * tests/unictype/test-pr_combining.c: Likewise.
54054         * tests/unictype/test-pr_composite.c: Likewise.
54055         * tests/unictype/test-pr_currency_symbol.c: Likewise.
54056         * tests/unictype/test-pr_dash.c: Likewise.
54057         * tests/unictype/test-pr_decimal_digit.c: Likewise.
54058         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
54059         * tests/unictype/test-pr_deprecated.c: Likewise.
54060         * tests/unictype/test-pr_diacritic.c: Likewise.
54061         * tests/unictype/test-pr_extender.c: Likewise.
54062         * tests/unictype/test-pr_format_control.c: Likewise.
54063         * tests/unictype/test-pr_grapheme_base.c: Likewise.
54064         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
54065         * tests/unictype/test-pr_grapheme_link.c: Likewise.
54066         * tests/unictype/test-pr_hex_digit.c: Likewise.
54067         * tests/unictype/test-pr_hyphen.c: Likewise.
54068         * tests/unictype/test-pr_id_continue.c: Likewise.
54069         * tests/unictype/test-pr_id_start.c: Likewise.
54070         * tests/unictype/test-pr_ideographic.c: Likewise.
54071         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
54072         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
54073         * tests/unictype/test-pr_ignorable_control.c: Likewise.
54074         * tests/unictype/test-pr_iso_control.c: Likewise.
54075         * tests/unictype/test-pr_join_control.c: Likewise.
54076         * tests/unictype/test-pr_left_of_pair.c: Likewise.
54077         * tests/unictype/test-pr_line_separator.c: Likewise.
54078         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
54079         * tests/unictype/test-pr_lowercase.c: Likewise.
54080         * tests/unictype/test-pr_math.c: Likewise.
54081         * tests/unictype/test-pr_non_break.c: Likewise.
54082         * tests/unictype/test-pr_not_a_character.c: Likewise.
54083         * tests/unictype/test-pr_numeric.c: Likewise.
54084         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
54085         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
54086         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
54087         * tests/unictype/test-pr_other_id_continue.c: Likewise.
54088         * tests/unictype/test-pr_other_id_start.c: Likewise.
54089         * tests/unictype/test-pr_other_lowercase.c: Likewise.
54090         * tests/unictype/test-pr_other_math.c: Likewise.
54091         * tests/unictype/test-pr_other_uppercase.c: Likewise.
54092         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
54093         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
54094         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
54095         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
54096         * tests/unictype/test-pr_private_use.c: Likewise.
54097         * tests/unictype/test-pr_punctuation.c: Likewise.
54098         * tests/unictype/test-pr_quotation_mark.c: Likewise.
54099         * tests/unictype/test-pr_radical.c: Likewise.
54100         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
54101         * tests/unictype/test-pr_soft_dotted.c: Likewise.
54102         * tests/unictype/test-pr_space.c: Likewise.
54103         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
54104         * tests/unictype/test-pr_titlecase.c: Likewise.
54105         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
54106         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
54107         * tests/unictype/test-pr_uppercase.c: Likewise.
54108         * tests/unictype/test-pr_variation_selector.c: Likewise.
54109         * tests/unictype/test-pr_white_space.c: Likewise.
54110         * tests/unictype/test-pr_xid_continue.c: Likewise.
54111         * tests/unictype/test-pr_xid_start.c: Likewise.
54112         * tests/unictype/test-pr_zero_width.c: Likewise.
54113         * tests/unictype/test-sy_c_whitespace.c: Likewise.
54114         * tests/unictype/test-sy_java_whitespace.c: Likewise.
54115
54116 2007-11-12  Bruno Haible  <bruno@clisp.org>
54117
54118         Unicode character classification functions.
54119         * lib/unictype.h: New file.
54120         * modules/unictype/base: New file.
54121         * modules/unictype/category-L: New file.
54122         * modules/unictype/category-Lu: New file.
54123         * modules/unictype/category-Ll: New file.
54124         * modules/unictype/category-Lt: New file.
54125         * modules/unictype/category-Lm: New file.
54126         * modules/unictype/category-Lo: New file.
54127         * modules/unictype/category-M: New file.
54128         * modules/unictype/category-Mn: New file.
54129         * modules/unictype/category-Mc: New file.
54130         * modules/unictype/category-Me: New file.
54131         * modules/unictype/category-N: New file.
54132         * modules/unictype/category-Nd: New file.
54133         * modules/unictype/category-Nl: New file.
54134         * modules/unictype/category-No: New file.
54135         * modules/unictype/category-P: New file.
54136         * modules/unictype/category-Pc: New file.
54137         * modules/unictype/category-Pd: New file.
54138         * modules/unictype/category-Ps: New file.
54139         * modules/unictype/category-Pe: New file.
54140         * modules/unictype/category-Pi: New file.
54141         * modules/unictype/category-Pf: New file.
54142         * modules/unictype/category-Po: New file.
54143         * modules/unictype/category-S: New file.
54144         * modules/unictype/category-Sm: New file.
54145         * modules/unictype/category-Sc: New file.
54146         * modules/unictype/category-Sk: New file.
54147         * modules/unictype/category-So: New file.
54148         * modules/unictype/category-Z: New file.
54149         * modules/unictype/category-Zs: New file.
54150         * modules/unictype/category-Zl: New file.
54151         * modules/unictype/category-Zp: New file.
54152         * modules/unictype/category-C: New file.
54153         * modules/unictype/category-Cc: New file.
54154         * modules/unictype/category-Cf: New file.
54155         * modules/unictype/category-Cs: New file.
54156         * modules/unictype/category-Co: New file.
54157         * modules/unictype/category-Cn: New file.
54158         * modules/unictype/category-or: New file.
54159         * modules/unictype/category-of: New file.
54160         * modules/unictype/category-test: New file.
54161         * modules/unictype/category-test-withtable: New file.
54162         * modules/unictype/category-byname: New file.
54163         * modules/unictype/category-none: New file.
54164         * modules/unictype/category-and: New file.
54165         * modules/unictype/category-and-not: New file.
54166         * modules/unictype/category-name: New file.
54167         * modules/unictype/combining-class: New file.
54168         * modules/unictype/category-all: New file.
54169         * modules/unictype/bidicategory-all: New file.
54170         * modules/unictype/bidicategory-byname: New file.
54171         * modules/unictype/bidicategory-name: New file.
54172         * modules/unictype/bidicategory-of: New file.
54173         * modules/unictype/bidicategory-test: New file.
54174         * modules/unictype/decimal-digit: New file.
54175         * modules/unictype/digit: New file.
54176         * modules/unictype/numeric: New file.
54177         * modules/unictype/mirror: New file.
54178         * modules/unictype/property-white-space: New file.
54179         * modules/unictype/property-alphabetic: New file.
54180         * modules/unictype/property-other-alphabetic: New file.
54181         * modules/unictype/property-not-a-character: New file.
54182         * modules/unictype/property-default-ignorable-code-point: New file.
54183         * modules/unictype/property-other-default-ignorable-code-point: New
54184         file.
54185         * modules/unictype/property-deprecated: New file.
54186         * modules/unictype/property-logical-order-exception: New file.
54187         * modules/unictype/property-variation-selector: New file.
54188         * modules/unictype/property-private-use: New file.
54189         * modules/unictype/property-unassigned-code-value: New file.
54190         * modules/unictype/property-uppercase: New file.
54191         * modules/unictype/property-other-uppercase: New file.
54192         * modules/unictype/property-lowercase: New file.
54193         * modules/unictype/property-other-lowercase: New file.
54194         * modules/unictype/property-titlecase: New file.
54195         * modules/unictype/property-soft-dotted: New file.
54196         * modules/unictype/property-id-start: New file.
54197         * modules/unictype/property-other-id-start: New file.
54198         * modules/unictype/property-id-continue: New file.
54199         * modules/unictype/property-other-id-continue: New file.
54200         * modules/unictype/property-xid-start: New file.
54201         * modules/unictype/property-xid-continue: New file.
54202         * modules/unictype/property-pattern-white-space: New file.
54203         * modules/unictype/property-pattern-syntax: New file.
54204         * modules/unictype/property-join-control: New file.
54205         * modules/unictype/property-grapheme-base: New file.
54206         * modules/unictype/property-grapheme-extend: New file.
54207         * modules/unictype/property-other-grapheme-extend: New file.
54208         * modules/unictype/property-grapheme-link: New file.
54209         * modules/unictype/property-bidi-control: New file.
54210         * modules/unictype/property-bidi-left-to-right: New file.
54211         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
54212         * modules/unictype/property-bidi-arabic-right-to-left: New file.
54213         * modules/unictype/property-bidi-european-digit: New file.
54214         * modules/unictype/property-bidi-eur-num-separator: New file.
54215         * modules/unictype/property-bidi-eur-num-terminator: New file.
54216         * modules/unictype/property-bidi-arabic-digit: New file.
54217         * modules/unictype/property-bidi-common-separator: New file.
54218         * modules/unictype/property-bidi-block-separator: New file.
54219         * modules/unictype/property-bidi-segment-separator: New file.
54220         * modules/unictype/property-bidi-whitespace: New file.
54221         * modules/unictype/property-bidi-non-spacing-mark: New file.
54222         * modules/unictype/property-bidi-boundary-neutral: New file.
54223         * modules/unictype/property-bidi-pdf: New file.
54224         * modules/unictype/property-bidi-embedding-or-override: New file.
54225         * modules/unictype/property-bidi-other-neutral: New file.
54226         * modules/unictype/property-hex-digit: New file.
54227         * modules/unictype/property-ascii-hex-digit: New file.
54228         * modules/unictype/property-ideographic: New file.
54229         * modules/unictype/property-unified-ideograph: New file.
54230         * modules/unictype/property-radical: New file.
54231         * modules/unictype/property-ids-binary-operator: New file.
54232         * modules/unictype/property-ids-trinary-operator: New file.
54233         * modules/unictype/property-zero-width: New file.
54234         * modules/unictype/property-space: New file.
54235         * modules/unictype/property-non-break: New file.
54236         * modules/unictype/property-iso-control: New file.
54237         * modules/unictype/property-format-control: New file.
54238         * modules/unictype/property-dash: New file.
54239         * modules/unictype/property-hyphen: New file.
54240         * modules/unictype/property-punctuation: New file.
54241         * modules/unictype/property-line-separator: New file.
54242         * modules/unictype/property-paragraph-separator: New file.
54243         * modules/unictype/property-quotation-mark: New file.
54244         * modules/unictype/property-sentence-terminal: New file.
54245         * modules/unictype/property-terminal-punctuation: New file.
54246         * modules/unictype/property-currency-symbol: New file.
54247         * modules/unictype/property-math: New file.
54248         * modules/unictype/property-other-math: New file.
54249         * modules/unictype/property-paired-punctuation: New file.
54250         * modules/unictype/property-left-of-pair: New file.
54251         * modules/unictype/property-combining: New file.
54252         * modules/unictype/property-composite: New file.
54253         * modules/unictype/property-decimal-digit: New file.
54254         * modules/unictype/property-numeric: New file.
54255         * modules/unictype/property-diacritic: New file.
54256         * modules/unictype/property-extender: New file.
54257         * modules/unictype/property-ignorable-control: New file.
54258         * modules/unictype/property-test: New file.
54259         * modules/unictype/property-byname: New file.
54260         * modules/unictype/property-all: New file.
54261         * modules/unictype/scripts: New file.
54262         * modules/unictype/scripts-all: New file.
54263         * modules/unictype/block-of: New file.
54264         * modules/unictype/block-test: New file.
54265         * modules/unictype/block-list: New file.
54266         * modules/unictype/block-all: New file.
54267         * modules/unictype/syntax-c-whitespace: New file.
54268         * modules/unictype/syntax-java-whitespace: New file.
54269         * modules/unictype/syntax-c-ident: New file.
54270         * modules/unictype/syntax-java-ident: New file.
54271         * modules/unictype/ctype-alnum: New file.
54272         * modules/unictype/ctype-alpha: New file.
54273         * modules/unictype/ctype-cntrl: New file.
54274         * modules/unictype/ctype-digit: New file.
54275         * modules/unictype/ctype-graph: New file.
54276         * modules/unictype/ctype-lower: New file.
54277         * modules/unictype/ctype-print: New file.
54278         * modules/unictype/ctype-punct: New file.
54279         * modules/unictype/ctype-space: New file.
54280         * modules/unictype/ctype-upper: New file.
54281         * modules/unictype/ctype-xdigit: New file.
54282         * modules/unictype/ctype-blank: New file.
54283         * lib/unictype/bidi_byname.c: New file.
54284         * lib/unictype/bidi_name.c: New file.
54285         * lib/unictype/bidi_of.c: New file.
54286         * lib/unictype/bidi_test.c: New file.
54287         * lib/unictype/bitmap.h: New file.
54288         * lib/unictype/block_test.c: New file.
54289         * lib/unictype/blocks.c: New file.
54290         * lib/unictype/categ_C.c: New file.
54291         * lib/unictype/categ_Cc.c: New file.
54292         * lib/unictype/categ_Cf.c: New file.
54293         * lib/unictype/categ_Cn.c: New file.
54294         * lib/unictype/categ_Co.c: New file.
54295         * lib/unictype/categ_Cs.c: New file.
54296         * lib/unictype/categ_L.c: New file.
54297         * lib/unictype/categ_Ll.c: New file.
54298         * lib/unictype/categ_Lm.c: New file.
54299         * lib/unictype/categ_Lo.c: New file.
54300         * lib/unictype/categ_Lt.c: New file.
54301         * lib/unictype/categ_Lu.c: New file.
54302         * lib/unictype/categ_M.c: New file.
54303         * lib/unictype/categ_Mc.c: New file.
54304         * lib/unictype/categ_Me.c: New file.
54305         * lib/unictype/categ_Mn.c: New file.
54306         * lib/unictype/categ_N.c: New file.
54307         * lib/unictype/categ_Nd.c: New file.
54308         * lib/unictype/categ_Nl.c: New file.
54309         * lib/unictype/categ_No.c: New file.
54310         * lib/unictype/categ_P.c: New file.
54311         * lib/unictype/categ_Pc.c: New file.
54312         * lib/unictype/categ_Pd.c: New file.
54313         * lib/unictype/categ_Pe.c: New file.
54314         * lib/unictype/categ_Pf.c: New file.
54315         * lib/unictype/categ_Pi.c: New file.
54316         * lib/unictype/categ_Po.c: New file.
54317         * lib/unictype/categ_Ps.c: New file.
54318         * lib/unictype/categ_S.c: New file.
54319         * lib/unictype/categ_Sc.c: New file.
54320         * lib/unictype/categ_Sk.c: New file.
54321         * lib/unictype/categ_Sm.c: New file.
54322         * lib/unictype/categ_So.c: New file.
54323         * lib/unictype/categ_Z.c: New file.
54324         * lib/unictype/categ_Zl.c: New file.
54325         * lib/unictype/categ_Zp.c: New file.
54326         * lib/unictype/categ_Zs.c: New file.
54327         * lib/unictype/categ_and.c: New file.
54328         * lib/unictype/categ_and_not.c: New file.
54329         * lib/unictype/categ_byname.c: New file.
54330         * lib/unictype/categ_name.c: New file.
54331         * lib/unictype/categ_none.c: New file.
54332         * lib/unictype/categ_of.c: New file.
54333         * lib/unictype/categ_or.c: New file.
54334         * lib/unictype/categ_test.c: New file.
54335         * lib/unictype/combining.c: New file.
54336         * lib/unictype/ctype_alnum.c: New file.
54337         * lib/unictype/ctype_alpha.c: New file.
54338         * lib/unictype/ctype_blank.c: New file.
54339         * lib/unictype/ctype_cntrl.c: New file.
54340         * lib/unictype/ctype_digit.c: New file.
54341         * lib/unictype/ctype_graph.c: New file.
54342         * lib/unictype/ctype_lower.c: New file.
54343         * lib/unictype/ctype_print.c: New file.
54344         * lib/unictype/ctype_punct.c: New file.
54345         * lib/unictype/ctype_space.c: New file.
54346         * lib/unictype/ctype_upper.c: New file.
54347         * lib/unictype/ctype_xdigit.c: New file.
54348         * lib/unictype/decdigit.c: New file.
54349         * lib/unictype/digit.c: New file.
54350         * lib/unictype/identsyntaxmap.h: New file.
54351         * lib/unictype/mirror.c: New file.
54352         * lib/unictype/numeric.c: New file.
54353         * lib/unictype/pr_alphabetic.c: New file.
54354         * lib/unictype/pr_ascii_hex_digit.c: New file.
54355         * lib/unictype/pr_bidi_arabic_digit.c: New file.
54356         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
54357         * lib/unictype/pr_bidi_block_separator.c: New file.
54358         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
54359         * lib/unictype/pr_bidi_common_separator.c: New file.
54360         * lib/unictype/pr_bidi_control.c: New file.
54361         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
54362         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
54363         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
54364         * lib/unictype/pr_bidi_european_digit.c: New file.
54365         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
54366         * lib/unictype/pr_bidi_left_to_right.c: New file.
54367         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
54368         * lib/unictype/pr_bidi_other_neutral.c: New file.
54369         * lib/unictype/pr_bidi_pdf.c: New file.
54370         * lib/unictype/pr_bidi_segment_separator.c: New file.
54371         * lib/unictype/pr_bidi_whitespace.c: New file.
54372         * lib/unictype/pr_byname.c: New file.
54373         * lib/unictype/pr_byname.gperf: New file.
54374         * lib/unictype/pr_combining.c: New file.
54375         * lib/unictype/pr_composite.c: New file.
54376         * lib/unictype/pr_currency_symbol.c: New file.
54377         * lib/unictype/pr_dash.c: New file.
54378         * lib/unictype/pr_decimal_digit.c: New file.
54379         * lib/unictype/pr_default_ignorable_code_point.c: New file.
54380         * lib/unictype/pr_deprecated.c: New file.
54381         * lib/unictype/pr_diacritic.c: New file.
54382         * lib/unictype/pr_extender.c: New file.
54383         * lib/unictype/pr_format_control.c: New file.
54384         * lib/unictype/pr_grapheme_base.c: New file.
54385         * lib/unictype/pr_grapheme_extend.c: New file.
54386         * lib/unictype/pr_grapheme_link.c: New file.
54387         * lib/unictype/pr_hex_digit.c: New file.
54388         * lib/unictype/pr_hyphen.c: New file.
54389         * lib/unictype/pr_id_continue.c: New file.
54390         * lib/unictype/pr_id_start.c: New file.
54391         * lib/unictype/pr_ideographic.c: New file.
54392         * lib/unictype/pr_ids_binary_operator.c: New file.
54393         * lib/unictype/pr_ids_trinary_operator.c: New file.
54394         * lib/unictype/pr_ignorable_control.c: New file.
54395         * lib/unictype/pr_iso_control.c: New file.
54396         * lib/unictype/pr_join_control.c: New file.
54397         * lib/unictype/pr_left_of_pair.c: New file.
54398         * lib/unictype/pr_line_separator.c: New file.
54399         * lib/unictype/pr_logical_order_exception.c: New file.
54400         * lib/unictype/pr_lowercase.c: New file.
54401         * lib/unictype/pr_math.c: New file.
54402         * lib/unictype/pr_non_break.c: New file.
54403         * lib/unictype/pr_not_a_character.c: New file.
54404         * lib/unictype/pr_numeric.c: New file.
54405         * lib/unictype/pr_other_alphabetic.c: New file.
54406         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
54407         * lib/unictype/pr_other_grapheme_extend.c: New file.
54408         * lib/unictype/pr_other_id_continue.c: New file.
54409         * lib/unictype/pr_other_id_start.c: New file.
54410         * lib/unictype/pr_other_lowercase.c: New file.
54411         * lib/unictype/pr_other_math.c: New file.
54412         * lib/unictype/pr_other_uppercase.c: New file.
54413         * lib/unictype/pr_paired_punctuation.c: New file.
54414         * lib/unictype/pr_paragraph_separator.c: New file.
54415         * lib/unictype/pr_pattern_syntax.c: New file.
54416         * lib/unictype/pr_pattern_white_space.c: New file.
54417         * lib/unictype/pr_private_use.c: New file.
54418         * lib/unictype/pr_punctuation.c: New file.
54419         * lib/unictype/pr_quotation_mark.c: New file.
54420         * lib/unictype/pr_radical.c: New file.
54421         * lib/unictype/pr_sentence_terminal.c: New file.
54422         * lib/unictype/pr_soft_dotted.c: New file.
54423         * lib/unictype/pr_space.c: New file.
54424         * lib/unictype/pr_terminal_punctuation.c: New file.
54425         * lib/unictype/pr_test.c: New file.
54426         * lib/unictype/pr_titlecase.c: New file.
54427         * lib/unictype/pr_unassigned_code_value.c: New file.
54428         * lib/unictype/pr_unified_ideograph.c: New file.
54429         * lib/unictype/pr_uppercase.c: New file.
54430         * lib/unictype/pr_variation_selector.c: New file.
54431         * lib/unictype/pr_white_space.c: New file.
54432         * lib/unictype/pr_xid_continue.c: New file.
54433         * lib/unictype/pr_xid_start.c: New file.
54434         * lib/unictype/pr_zero_width.c: New file.
54435         * lib/unictype/scripts.c: New file.
54436         * lib/unictype/sy_c_ident.c: New file.
54437         * lib/unictype/sy_c_whitespace.c: New file.
54438         * lib/unictype/sy_java_ident.c: New file.
54439         * lib/unictype/sy_java_whitespace.c: New file.
54440
54441         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
54442         Unicode 5.0.0.
54443         * lib/unictype/blocks.h: Likewise.
54444         * lib/unictype/categ_C.h: Likewise.
54445         * lib/unictype/categ_Cc.h: Likewise.
54446         * lib/unictype/categ_Cf.h: Likewise.
54447         * lib/unictype/categ_Cn.h: Likewise.
54448         * lib/unictype/categ_Co.h: Likewise.
54449         * lib/unictype/categ_Cs.h: Likewise.
54450         * lib/unictype/categ_L.h: Likewise.
54451         * lib/unictype/categ_Ll.h: Likewise.
54452         * lib/unictype/categ_Lm.h: Likewise.
54453         * lib/unictype/categ_Lo.h: Likewise.
54454         * lib/unictype/categ_Lt.h: Likewise.
54455         * lib/unictype/categ_Lu.h: Likewise.
54456         * lib/unictype/categ_M.h: Likewise.
54457         * lib/unictype/categ_Mc.h: Likewise.
54458         * lib/unictype/categ_Me.h: Likewise.
54459         * lib/unictype/categ_Mn.h: Likewise.
54460         * lib/unictype/categ_N.h: Likewise.
54461         * lib/unictype/categ_Nd.h: Likewise.
54462         * lib/unictype/categ_Nl.h: Likewise.
54463         * lib/unictype/categ_No.h: Likewise.
54464         * lib/unictype/categ_P.h: Likewise.
54465         * lib/unictype/categ_Pc.h: Likewise.
54466         * lib/unictype/categ_Pd.h: Likewise.
54467         * lib/unictype/categ_Pe.h: Likewise.
54468         * lib/unictype/categ_Pf.h: Likewise.
54469         * lib/unictype/categ_Pi.h: Likewise.
54470         * lib/unictype/categ_Po.h: Likewise.
54471         * lib/unictype/categ_Ps.h: Likewise.
54472         * lib/unictype/categ_S.h: Likewise.
54473         * lib/unictype/categ_Sc.h: Likewise.
54474         * lib/unictype/categ_Sk.h: Likewise.
54475         * lib/unictype/categ_Sm.h: Likewise.
54476         * lib/unictype/categ_So.h: Likewise.
54477         * lib/unictype/categ_Z.h: Likewise.
54478         * lib/unictype/categ_Zl.h: Likewise.
54479         * lib/unictype/categ_Zp.h: Likewise.
54480         * lib/unictype/categ_Zs.h: Likewise.
54481         * lib/unictype/categ_of.h: Likewise.
54482         * lib/unictype/combining.h: Likewise.
54483         * lib/unictype/ctype_alnum.h: Likewise.
54484         * lib/unictype/ctype_alpha.h: Likewise.
54485         * lib/unictype/ctype_blank.h: Likewise.
54486         * lib/unictype/ctype_cntrl.h: Likewise.
54487         * lib/unictype/ctype_digit.h: Likewise.
54488         * lib/unictype/ctype_graph.h: Likewise.
54489         * lib/unictype/ctype_lower.h: Likewise.
54490         * lib/unictype/ctype_print.h: Likewise.
54491         * lib/unictype/ctype_punct.h: Likewise.
54492         * lib/unictype/ctype_space.h: Likewise.
54493         * lib/unictype/ctype_upper.h: Likewise.
54494         * lib/unictype/ctype_xdigit.h: Likewise.
54495         * lib/unictype/decdigit.h: Likewise.
54496         * lib/unictype/digit.h: Likewise.
54497         * lib/unictype/mirror.h: Likewise.
54498         * lib/unictype/numeric.h: Likewise.
54499         * lib/unictype/pr_alphabetic.h: Likewise.
54500         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
54501         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
54502         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
54503         * lib/unictype/pr_bidi_block_separator.h: Likewise.
54504         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
54505         * lib/unictype/pr_bidi_common_separator.h: Likewise.
54506         * lib/unictype/pr_bidi_control.h: Likewise.
54507         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
54508         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
54509         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
54510         * lib/unictype/pr_bidi_european_digit.h: Likewise.
54511         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
54512         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
54513         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
54514         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
54515         * lib/unictype/pr_bidi_pdf.h: Likewise.
54516         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
54517         * lib/unictype/pr_bidi_whitespace.h: Likewise.
54518         * lib/unictype/pr_combining.h: Likewise.
54519         * lib/unictype/pr_composite.h: Likewise.
54520         * lib/unictype/pr_currency_symbol.h: Likewise.
54521         * lib/unictype/pr_dash.h: Likewise.
54522         * lib/unictype/pr_decimal_digit.h: Likewise.
54523         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
54524         * lib/unictype/pr_deprecated.h: Likewise.
54525         * lib/unictype/pr_diacritic.h: Likewise.
54526         * lib/unictype/pr_extender.h: Likewise.
54527         * lib/unictype/pr_format_control.h: Likewise.
54528         * lib/unictype/pr_grapheme_base.h: Likewise.
54529         * lib/unictype/pr_grapheme_extend.h: Likewise.
54530         * lib/unictype/pr_grapheme_link.h: Likewise.
54531         * lib/unictype/pr_hex_digit.h: Likewise.
54532         * lib/unictype/pr_hyphen.h: Likewise.
54533         * lib/unictype/pr_id_continue.h: Likewise.
54534         * lib/unictype/pr_id_start.h: Likewise.
54535         * lib/unictype/pr_ideographic.h: Likewise.
54536         * lib/unictype/pr_ids_binary_operator.h: Likewise.
54537         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
54538         * lib/unictype/pr_ignorable_control.h: Likewise.
54539         * lib/unictype/pr_iso_control.h: Likewise.
54540         * lib/unictype/pr_join_control.h: Likewise.
54541         * lib/unictype/pr_left_of_pair.h: Likewise.
54542         * lib/unictype/pr_line_separator.h: Likewise.
54543         * lib/unictype/pr_logical_order_exception.h: Likewise.
54544         * lib/unictype/pr_lowercase.h: Likewise.
54545         * lib/unictype/pr_math.h: Likewise.
54546         * lib/unictype/pr_non_break.h: Likewise.
54547         * lib/unictype/pr_not_a_character.h: Likewise.
54548         * lib/unictype/pr_numeric.h: Likewise.
54549         * lib/unictype/pr_other_alphabetic.h: Likewise.
54550         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
54551         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
54552         * lib/unictype/pr_other_id_continue.h: Likewise.
54553         * lib/unictype/pr_other_id_start.h: Likewise.
54554         * lib/unictype/pr_other_lowercase.h: Likewise.
54555         * lib/unictype/pr_other_math.h: Likewise.
54556         * lib/unictype/pr_other_uppercase.h: Likewise.
54557         * lib/unictype/pr_paired_punctuation.h: Likewise.
54558         * lib/unictype/pr_paragraph_separator.h: Likewise.
54559         * lib/unictype/pr_pattern_syntax.h: Likewise.
54560         * lib/unictype/pr_pattern_white_space.h: Likewise.
54561         * lib/unictype/pr_private_use.h: Likewise.
54562         * lib/unictype/pr_punctuation.h: Likewise.
54563         * lib/unictype/pr_quotation_mark.h: Likewise.
54564         * lib/unictype/pr_radical.h: Likewise.
54565         * lib/unictype/pr_sentence_terminal.h: Likewise.
54566         * lib/unictype/pr_soft_dotted.h: Likewise.
54567         * lib/unictype/pr_space.h: Likewise.
54568         * lib/unictype/pr_terminal_punctuation.h: Likewise.
54569         * lib/unictype/pr_titlecase.h: Likewise.
54570         * lib/unictype/pr_unassigned_code_value.h: Likewise.
54571         * lib/unictype/pr_unified_ideograph.h: Likewise.
54572         * lib/unictype/pr_uppercase.h: Likewise.
54573         * lib/unictype/pr_variation_selector.h: Likewise.
54574         * lib/unictype/pr_white_space.h: Likewise.
54575         * lib/unictype/pr_xid_continue.h: Likewise.
54576         * lib/unictype/pr_xid_start.h: Likewise.
54577         * lib/unictype/pr_zero_width.h: Likewise.
54578         * lib/unictype/scripts.h: Likewise.
54579         * lib/unictype/scripts_byname.gperf: Likewise.
54580         * lib/unictype/sy_c_ident.h: Likewise.
54581         * lib/unictype/sy_c_whitespace.h: Likewise.
54582         * lib/unictype/sy_java_ident.h: Likewise.
54583         * lib/unictype/sy_java_whitespace.h: Likewise.
54584
54585         * lib/unictype/Makefile: New file.
54586         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
54587         glibc.
54588         * lib/unictype/3level.h: New file, copied from glibc.
54589         * lib/unictype/3levelbit.h: New file.
54590
54591 2007-11-11  Bruno Haible  <bruno@clisp.org>
54592
54593         * modules/gperf: New file.
54594         * modules/iconv_open (Depends-on): Add it.
54595         (Makefile.am): Remove the GPERF definition.
54596
54597 2007-11-11  Bruno Haible  <bruno@clisp.org>
54598
54599         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
54600         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
54601
54602 2007-11-11  Bruno Haible  <bruno@clisp.org>
54603
54604         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
54605         (usage): Remove function.
54606
54607 2007-11-11  Bruno Haible  <bruno@clisp.org>
54608
54609         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
54610         gl_FUNC_CEILF_LIBS.
54611         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
54612         gl_FUNC_CEIL_LIBS.
54613         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
54614         gl_FUNC_CEILL_LIBS.
54615         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
54616         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
54617         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
54618
54619 2007-11-11  Bruno Haible  <bruno@clisp.org>
54620
54621         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
54622         roundf were declared but do not exist on functions.
54623         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
54624         roundl were declared but do not exist on functions.
54625         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
54626         HAVE_FLOORL_AND_CEILL, respectively.
54627         Needed for Sun C on Solaris 10.
54628
54629 2007-11-11  Bruno Haible  <bruno@clisp.org>
54630
54631         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
54632         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
54633         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
54634         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
54635         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
54636         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
54637         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
54638         HAVE_DECL_ROUNDF.
54639         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
54640         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
54641         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
54642         of HAVE_DECL_ROUND*.
54643         * modules/math (Makefile.am): Update.
54644
54645 2007-11-10  Bruno Haible  <bruno@clisp.org>
54646
54647         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
54648         ptrdiff_t as m4/intl.m4.
54649
54650 2007-11-10  Jim Meyering  <meyering@redhat.com>
54651
54652         Avoid link failure for the argmatch test.
54653         * tests/test-argmatch.c (usage): Define function to avoid a link
54654         failure: argmatch_die requires a usage function.
54655
54656 2007-11-09  Bruno Haible  <bruno@clisp.org>
54657
54658         * doc/functions/snprintf.texi: Mention BeOS deficiency.
54659         * doc/functions/vsnprintf.texi: Likewise.
54660         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
54661         with a size argument < 2.
54662
54663 2007-11-09  Bruno Haible  <bruno@clisp.org>
54664
54665         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
54666         buffer. Fixes an inefficiency introduced on 2007-11-03.
54667
54668 2007-11-09  Bruno Haible  <bruno@clisp.org>
54669
54670         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
54671         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
54672
54673 2007-11-08  Jim Meyering  <meyering@redhat.com>
54674
54675         Change cache variable name prefix "jm_" to "gl_" everywhere.
54676         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
54677         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
54678         * m4/uptime.m4: s/gl_/jm_/
54679
54680 2007-11-07  Bruno Haible  <bruno@clisp.org>
54681
54682         Update to GNU gettext 0.17.
54683         * m4/intl.m4: Update to GNU gettext 0.17.
54684         * m4/po.m4: Likewise.
54685         * modules/gettext (Files): Remove m4/ulonglong.m4.
54686         (configure.ac): Require gettext infrastructure from version 0.17.
54687
54688 2007-11-06  Bruno Haible  <bruno@clisp.org>
54689
54690         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
54691         symbolic values are not defined in a public header.
54692         * lib/freadable.c (freadable) [QNX]: Likewise.
54693         * lib/freadahead.c (freadahead) [QNX]: Likewise.
54694         * lib/freading.c (freading) [QNX]: Likewise.
54695         * lib/fseterr.c (fseterr) [QNX]: Likewise.
54696         * lib/fwritable.c (fwritable) [QNX]: Likewise.
54697         * lib/fwriting.c (fwriting) [QNX]: Likewise.
54698         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
54699         Reported by Alain Magloire.
54700
54701         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
54702
54703 2007-11-05  Bruno Haible  <bruno@clisp.org>
54704
54705         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
54706         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
54707         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
54708         Reported by Eric Blake.
54709
54710 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54711             Bruno Haible  <bruno@clisp.org>
54712
54713         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
54714         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
54715         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
54716         (malloc): Undefine also before including <stdlib.h>.
54717         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
54718         Needed on OSF/1 4.0.
54719
54720 2007-11-05  Jim Meyering  <meyering@redhat.com>
54721
54722         git-version-gen: sync from coreutils.
54723         * build-aux/git-version-gen: Add comments.
54724         Change the first '-' to '.' in the snapshot version string,
54725         e.g., 6.9-377-08144 -> 6.9.377-08144
54726         Remove first parameter.
54727         Don't declare a version "-dirty" merely because a time
54728         stamp has changed.
54729
54730 2007-11-04  Bruno Haible  <bruno@clisp.org>
54731
54732         * lib/lock.h: Protect all macro definitions containing an 'if'
54733         statement through a "do { ... } while (0)".
54734         * lib/tls.h: Likewise.
54735
54736 2007-11-04  Bruno Haible  <bruno@clisp.org>
54737
54738         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
54739
54740 2007-11-04  Bruno Haible  <bruno@clisp.org>
54741
54742         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
54743         * modules/fprintf-posix (Depends-on): Add nocrash.
54744         * modules/snprintf-posix (Depends-on): Likewise.
54745         * modules/sprintf-posix (Depends-on): Likewise.
54746         * modules/vasnprintf-posix (Depends-on): Likewise.
54747         * modules/vasprintf-posix (Depends-on): Likewise.
54748         * modules/vfprintf-posix (Depends-on): Likewise.
54749         * modules/vsnprintf-posix (Depends-on): Likewise.
54750         * modules/vsprintf-posix (Depends-on): Likewise.
54751         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54752         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54753         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54754         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54755         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54756         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54757         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54758
54759 2007-11-04  Bruno Haible  <bruno@clisp.org>
54760
54761         * modules/nocrash: New file.
54762         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
54763         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
54764
54765 2007-11-04  Bruno Haible  <bruno@clisp.org>
54766
54767         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
54768         precision handling.
54769         * tests/test-vasprintf-posix.c (test_function): Likewise.
54770         * tests/test-snprintf-posix.h (test_function): Likewise.
54771         * tests/test-sprintf-posix.h (test_function): Likewise.
54772
54773         Fix *printf behaviour for large precisions on mingw and BeOS.
54774         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
54775         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
54776         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
54777         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54778         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54779         gl_PRINTF_PRECISION and test its result. Invoke
54780         gl_PREREQ_VASNPRINTF_PRECISION.
54781         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54782         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54783         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54784         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54785         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54786         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54787         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54788         * doc/functions/fprintf.texi: Update.
54789         * doc/functions/printf.texi: Update.
54790         * doc/functions/snprintf.texi: Update.
54791         * doc/functions/sprintf.texi: Update.
54792         * doc/functions/vfprintf.texi: Update.
54793         * doc/functions/vprintf.texi: Update.
54794         * doc/functions/vsnprintf.texi: Update.
54795         * doc/functions/vsprintf.texi: Update.
54796
54797 2007-11-04  Bruno Haible  <bruno@clisp.org>
54798
54799         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
54800
54801 2007-11-04  Bruno Haible  <bruno@clisp.org>
54802
54803         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
54804         Reported by Sylvain Beucler <beuc@gnu.org>.
54805
54806 2007-11-03  Bruno Haible  <bruno@clisp.org>
54807
54808         * tests/test-fprintf-posix2.sh: New file.
54809         * tests/test-fprintf-posix2.c: New file.
54810         * modules/fprintf-posix-tests (Files): Add them.
54811         (TESTS): Add test-fprintf-posix2.sh.
54812         (configure.ac): Check for getrlimit and setrlimit.
54813         (check_PROGRAMS): Add test-fprintf-posix2.
54814
54815         * tests/test-printf-posix2.sh: New file.
54816         * tests/test-printf-posix2.c: New file.
54817         * modules/printf-posix-tests (Files): Add them.
54818         (TESTS): Add test-printf-posix2.sh.
54819         (configure.ac): Check for getrlimit and setrlimit.
54820         (check_PROGRAMS): Add test-printf-posix2.
54821
54822         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
54823         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
54824         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
54825         (decode_double): New function, copied from decode_long_double.
54826         (scale10_round_decimal_decoded): New function, extracted from
54827         scale10_round_decimal_long_double.
54828         (scale10_round_decimal_long_double): Use it.
54829         (scale10_round_decimal_double): New function.
54830         (floorlog10): New function.
54831         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
54832         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
54833         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54834         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54835         gl_PRINTF_ENOMEM and test its result. Invoke
54836         gl_PREREQ_VASNPRINTF_ENOMEM.
54837         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54838         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54839         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54840         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54841         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54842         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54843         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54844         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
54845         * modules/snprintf-posix (Depends-on): Likewise.
54846         * modules/sprintf-posix (Depends-on): Likewise.
54847         * modules/vasnprintf-posix (Depends-on): Likewise.
54848         * modules/vasprintf-posix (Depends-on): Likewise.
54849         * modules/vfprintf-posix (Depends-on): Likewise.
54850         * modules/vsnprintf-posix (Depends-on): Likewise.
54851         * modules/vsprintf-posix (Depends-on): Likewise.
54852         * doc/functions/fprintf.texi: Update.
54853         * doc/functions/printf.texi: Update.
54854         * doc/functions/snprintf.texi: Update.
54855         * doc/functions/sprintf.texi: Update.
54856         * doc/functions/vfprintf.texi: Update.
54857         * doc/functions/vprintf.texi: Update.
54858         * doc/functions/vsnprintf.texi: Update.
54859         * doc/functions/vsprintf.texi: Update.
54860
54861 2007-11-03  Bruno Haible  <bruno@clisp.org>
54862
54863         * modules/frexp-nolibm-tests: New file.
54864
54865         * modules/frexp-nolibm: New file.
54866         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
54867
54868 2007-11-03  Bruno Haible  <bruno@clisp.org>
54869
54870         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
54871         value is C99 compliant.
54872         Needed for OSF/1 5.1.
54873
54874 2007-11-03  Bruno Haible  <bruno@clisp.org>
54875
54876         Fix out-of-memory handling of vasnprintf.
54877         * lib/printf-parse.c: Include <errno.h>.
54878         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
54879         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
54880         is already set.
54881
54882 2007-11-02  Eric Blake  <ebb9@byu.net>
54883
54884         Fix tests on cygwin.
54885         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
54886
54887 2007-11-01  Bruno Haible  <bruno@clisp.org>
54888
54889         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
54890         warning.
54891         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
54892         needed for POSIX compatibility.
54893
54894 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
54895
54896         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
54897         for compatibility with GNU.
54898
54899 2007-11-01  Bruno Haible  <bruno@clisp.org>
54900
54901         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
54902         (putenv): Renamed from rpl_putenv. Change argument type from
54903         'const char *' to 'char *'.
54904         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
54905         of defining putenv in config.h, just set REPLACE_PUTENV.
54906         * modules/putenv (Depends-on): Add stdlib.
54907         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54908         (Include): Use <stdlib.h>.
54909         * lib/stdlib.in.h (putenv): New declaration.
54910         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
54911         REPLACE_PUTENV.
54912         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
54913         REPLACE_PUTENV.
54914         Needed for MacOS X 10.5.0.
54915         Reported by Peter O'Gorman <peter@pogma.com>.
54916
54917 2007-11-01  Jim Meyering  <meyering@redhat.com>
54918
54919         Treat an empty date string exactly like "0".
54920         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
54921         if the remaining date string (to be parsed) is empty, use "0".
54922         Reported by Mischa Molhoek and discussed in this thread:
54923         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
54924
54925 2007-10-31  Bruno Haible  <bruno@clisp.org>
54926
54927         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
54928         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
54929         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
54930         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
54931         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
54932         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
54933
54934 2007-10-31  Bruno Haible  <bruno@clisp.org>
54935
54936         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
54937         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
54938         (AC_TYPE_LONG_LONG_INT): Use it.
54939         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
54940         it as well.
54941         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
54942         to m4/longlong.m4.
54943         * modules/stdint (Files): Remove m4/ulonglong.m4.
54944         * modules/strtoull (Files): Use m4/longlong.m4 instead of
54945         m4/ulonglong.m4.
54946         * modules/strtoumax (Files): Likewise.
54947
54948 2007-10-30  Bruno Haible  <bruno@clisp.org>
54949
54950         * modules/xvasprintf-posix: New file.
54951         Suggested by Eric Blake.
54952
54953 2007-10-30  Bruno Haible  <bruno@clisp.org>
54954
54955         * modules/xprintf-posix-tests: New file.
54956         * tests/test-xprintf-posix.sh: New file.
54957         * tests/test-xprintf-posix.c: New file.
54958         * tests/test-xfprintf-posix.c: New file.
54959
54960         * modules/xprintf-posix: New file.
54961
54962 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54963
54964         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
54965         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
54966         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
54967
54968 2007-10-29  Bruno Haible  <bruno@clisp.org>
54969
54970         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
54971         contain the special marker '_cv_'.
54972         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
54973         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
54974         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
54975         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
54976         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
54977         Reported by Ralf Wildenhues.
54978
54979 2007-10-29  Bruno Haible  <bruno@clisp.org>
54980
54981         * gnulib-tool (func_import): When --lgpl is not specified, set
54982         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
54983         GPLv3.
54984         Reported by Simon Josefsson.
54985
54986 2007-10-28  Bruno Haible  <bruno@clisp.org>
54987
54988         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
54989         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
54990         HAVE_DECL_ISFINITE.
54991         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
54992         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
54993         HAVE_DECL_ISFINITE.
54994
54995 2007-10-28  Bruno Haible  <bruno@clisp.org>
54996
54997         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
54998         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
54999
55000 2007-10-28  Bruno Haible  <bruno@clisp.org>
55001
55002         Fix link errors with Sun C 5.0 on Solaris 10.
55003         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
55004         function is declared but not present in the compiler's libm.
55005         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
55006         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
55007         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
55008         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
55009         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
55010         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
55011         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
55012         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
55013         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
55014         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
55015         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
55016         HAVE_DECL_FLOORL.
55017
55018 2007-10-28  Bruno Haible  <bruno@clisp.org>
55019
55020         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
55021         gl_FUNC_FLOORL. Cache the result.
55022         (gl_FUNC_FLOORL): Use it.
55023         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
55024         gl_FUNC_CEILL. Cache the result.
55025         (gl_FUNC_CEILL): Use it.
55026
55027         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
55028         gl_FUNC_FLOOR. Cache the result.
55029         (gl_FUNC_FLOOR): Use it.
55030         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
55031         gl_FUNC_CEIL. Cache the result.
55032         (gl_FUNC_CEIL): Use it.
55033
55034         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
55035         gl_FUNC_FLOORF. Cache the result.
55036         (gl_FUNC_FLOORF): Use it.
55037         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
55038         gl_FUNC_CEILF. Cache the result.
55039         (gl_FUNC_CEILF): Use it.
55040
55041 2007-10-28  Bruno Haible  <bruno@clisp.org>
55042
55043         * gnulib-tool: Allow specifying the LGPL version number through
55044         --lgpl=2 or --lgpl=3.
55045         (func_usage): Document --lgpl with argument.
55046         Handle --lgpl=... arguments.
55047         (func_import): Recognize also gl_LGPL calls with an argument. When
55048         --lgpl=2 is used and the module's license is just LGPL, report an
55049         error. Set sed_transform_lib_file according to the lgpl variable. In
55050         the generated files, use --lgpl or gl_LGPL invocations with argument,
55051         if necessary.
55052         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
55053         an LGPv2+ license.
55054         * doc/gnulib-tool.texi (Modified imports): Update explanation of
55055         gl_LGPL macro.
55056
55057 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55058             Bruno Haible  <bruno@clisp.org>
55059
55060         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
55061         (u16_uctomb_aux): Likewise.
55062         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
55063         !HAVE_INLINE.
55064         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
55065
55066 2007-10-28  Bruno Haible  <bruno@clisp.org>
55067
55068         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
55069         Invoke AM_GETTEXT_OPTION if it exists.
55070         * modules/vasprintf: Likewise.
55071         * modules/verror: Likewise.
55072         * modules/xprintf: Likewise.
55073         * modules/xvasprintf: Likewise.
55074
55075 2007-10-27  Ben Pfaff  <blp@gnu.org>
55076
55077         * lib/math.in.h: Define isfinite macro and prototypes for
55078         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
55079         implementations.
55080         * m4/math_h.m4: New substitutions for isfinite module.
55081         * lib/isfinite.c: New file.
55082         * m4/isfinite.m4: New file.
55083         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
55084         * modules/isfinite: New file.
55085         * modules/isfinite-tests: New file.
55086         * tests/tests-isfinite.c: New file.
55087         * doc/functions/isfinite.texi: Mention isfinite module.
55088         * MODULES.html.sh: Mention new module.
55089
55090 2007-10-27  Ben Pfaff  <blp@gnu.org>
55091
55092         Ralf Wildenhues reported that Tru64 4.0D declares the round
55093         functions but does not have definitions.
55094         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
55095         cannot be found in any library, set the output variable to
55096         "missing" instead of "".
55097         * m4/round.m4: Also use our substitute if we cannot find round in
55098         any library, even if it is declared.
55099         * m4/roundf.m4: Likewise for roundf.
55100         * m4/roundl.m4: Likewise for roundl.
55101         * lib/math.in.h: Undefine roundf, round, roundl before defining
55102         their replacements, to allow for hypothetical systems where these
55103         may be defined as macros but not available in libraries.
55104
55105 2007-10-27  Bruno Haible  <bruno@clisp.org>
55106
55107         * doc/gnulib.texi: Invoke @firstparagraphindent.
55108         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
55109         changes in gnulib.
55110         (Source changes): New section.
55111
55112 2007-10-26  Bruno Haible  <bruno@clisp.org>
55113
55114         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
55115         borrowed from autoconf.
55116
55117 2007-10-26  Bruno Haible  <bruno@clisp.org>
55118
55119         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
55120         strerror returned the empty string. Needed on HP-UX 11.00.
55121
55122 2007-10-24  Micah Cowan  <micah@cowan.name>
55123
55124         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
55125         * build-aux/bootstrap: Remove support for now-unnecessary option,
55126         --cvs-user, and envvars CVS_USER, CVS_RSH.
55127
55128 2007-10-24  Jim Meyering  <meyering@redhat.com>
55129
55130         Avoid diagnostics from sha1sum when there is no cached checksum.
55131         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
55132         if the po.s1 file hasn't been created yet.
55133
55134         * build-aux/bootstrap: Sync from coreutils:
55135         2007-10-24  Jim Meyering  <meyering@redhat.com>
55136         Get gnulib from the git repository, not from an obsolete cvs one.
55137         * build-aux/bootstrap: Suggestion from Micah Cowan.
55138         2007-10-04  Jim Meyering  <jim@meyering.net>
55139         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
55140         (update_po_files): Work also when there are no .po files in po/.
55141
55142 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
55143
55144         * README: Append ".git" to git and cg examples.
55145         Problem reported by Benoit Sigoure.
55146
55147 2007-10-23  Micah Cowan  <micah@cowan.name>
55148
55149         * users.txt: Add wget.
55150
55151 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55152
55153         Fix linking of some unistdio tests on FreeBSD.
55154         * modules/unistdio/u16-vsnprintf-tests
55155         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
55156         * modules/unistdio/u16-vsprintf-tests
55157         (test_u16_vsnprintf1_LDADD): Likewise.
55158         * modules/unistdio/u32-vsnprintf-tests
55159         (test_u32_vsnprintf1_LDADD): Likewise.
55160         * modules/unistdio/u32-vsprintf-tests
55161         (test_u32_vsprintf1_LDADD): Likewise.
55162         * modules/unistdio/u8-vsnprintf-tests
55163         (test_u8_vsnprintf1_LDADD): Likewise.
55164         * modules/unistdio/u8-vsprintf-tests
55165         (test_u8_vsprintf1_LDADD): Likewise.
55166         * modules/unistdio/ulc-vsnprintf-tests
55167         (test_ulc_vsnprintf1_LDADD): Likewise.
55168         * modules/unistdio/ulc-vsprintf-tests
55169         (test_ulc_vsprintf1_LDADD): Likewise.
55170
55171         Fix linking of some uniconv tests on FreeBSD.
55172         * modules/uniconv/u16-conv-from-enc-tests
55173         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
55174         * modules/uniconv/u16-conv-to-enc-tests
55175         (test_u16_conv_to_enc_LDADD): Likewise.
55176         * modules/uniconv/u16-strconv-from-enc-tests
55177         (test_u16_strconv_from_enc_LDADD): Likewise.
55178         * modules/uniconv/u16-strconv-to-enc-tests
55179         (test_u16_strconv_to_enc_LDADD): Likewise.
55180         * modules/uniconv/u32-conv-from-enc-tests
55181         (test_u32_conv_from_enc_LDADD): Likewise.
55182         * modules/uniconv/u32-conv-to-enc-tests
55183         (test_u32_conv_to_enc_LDADD): Likewise.
55184         * modules/uniconv/u32-strconv-from-enc-tests
55185         (test_u32_strconv_from_enc_LDADD): Likewise.
55186         * modules/uniconv/u32-strconv-to-enc-tests
55187         (test_u32_strconv_to_enc_LDADD): Likewise.
55188         * modules/uniconv/u8-conv-from-enc-tests
55189         (test_u8_conv_from_enc_LDADD): Likewise.
55190         * modules/uniconv/u8-conv-to-enc-tests
55191         (test_u8_conv_to_enc_LDADD): Likewise.
55192         * modules/uniconv/u8-strconv-from-enc-tests
55193         (test_u8_strconv_from_enc_LDADD): Likewise.
55194         * modules/uniconv/u8-strconv-to-enc-tests
55195         (test_u8_strconv_to_enc_LDADD): Likewise.
55196
55197 2007-10-22  Bruno Haible  <bruno@clisp.org>
55198
55199         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
55200         size.
55201
55202 2007-10-22  Eric Blake  <ebb9@byu.net>
55203
55204         Tweak x*printf documentation.
55205         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
55206         variable name and comments.
55207         Suggested by Bruno Haible.
55208
55209 2007-10-22  Bruno Haible  <bruno@clisp.org>
55210
55211         * lib/acl.c (copy_acl): Fix file name in comment.
55212
55213 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55214
55215         Fix Tru64 problem with stdbool.h.
55216         * lib/stdbool.in.h (false, true):
55217         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
55218         Don't declare as an enum in this situation; it runs afoul of Tru64.
55219         Problem reported by Steven M. Schweda in
55220         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
55221
55222 2007-10-22  Eric Blake  <ebb9@byu.net>
55223
55224         Also wrap vf?printf.
55225         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
55226         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
55227         (xvprintf, xvfprintf): New functions.
55228
55229 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55230
55231         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
55232         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
55233
55234         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
55235         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
55236
55237 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
55238
55239         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
55240         by Bruno Haible.
55241
55242 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55243
55244         * lib/getloadavg.c
55245         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
55246         Undef `sys' after including sys/table.h, for Tru64 4.0D.
55247
55248         * tests/test-i-ring.c: Work for C89.
55249
55250 2007-10-22  Bruno Haible  <bruno@clisp.org>
55251
55252         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
55253         -1u, in preprocessor expression, so that we don't test for the bug
55254         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
55255         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
55256
55257 2007-10-22  Eric Blake  <ebb9@byu.net>
55258
55259         * tests/test-yesno.sh: Silence stderr during test.
55260
55261 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55262
55263         * modules/crypto/gc-camellia: New file.
55264
55265         * m4/gc-camellia.m4: New file.
55266
55267         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
55268
55269         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
55270
55271 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55272
55273         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
55274         --help to stdout.  Reported by sms@antinode.org (Steven
55275         M. Schweda).
55276
55277 2007-10-22  Simon Josefsson  <simon@josefsson.org>
55278
55279         * users.txt: Fix link to libksba.
55280
55281 2007-10-21  Ben Pfaff  <blp@gnu.org>
55282
55283         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
55284         round.c roundf implementation that depends on floorf and ceilf to
55285         be tested unconditionally.
55286
55287 2007-10-21  Ben Pfaff  <blp@gnu.org>
55288
55289         * m4/check-libm-func.m4: Removed.
55290         * m4/check-math-lib.m4: New file.
55291         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
55292         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
55293         definition and lack of AC_LIBOBJ([roundf]).
55294         * m4/roundl.m4: Ditto, and similarly for roundl.
55295         * modules/round: Reference new m4 file.
55296         * modules/roundf: Ditto.
55297         * modules/roundl: Ditto.
55298         * tests/test-round2.c (main): Use ROUND instead of round.
55299         Bug report from Bruno Haible.
55300
55301 2007-10-21  Bruno Haible  <bruno@clisp.org>
55302
55303         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
55304         context.
55305
55306 2007-10-21  Bruno Haible  <bruno@clisp.org>
55307
55308         * tests/test-wcwidth.c (main): Allow negative result for some control
55309         characters.
55310
55311         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
55312         Needed on OSF/1 5.1.
55313
55314 2007-10-21  Bruno Haible  <bruno@clisp.org>
55315
55316         * tests/test-floorf1.c: Include isnanf.h.
55317         (main): Use isnanf() instead of isnan().
55318         * tests/test-ceilf1.c: Include isnanf.h.
55319         (main): Use isnanf() instead of isnan().
55320         * tests/test-truncf1.c: Include isnanf.h.
55321         (main): Use isnanf() instead of isnan().
55322         * tests/test-roundf1.c: Include isnanf.h.
55323         (main): Use isnanf() instead of isnan().
55324
55325 2007-10-21  Eric Blake  <ebb9@byu.net>
55326
55327         * users.txt: Update URL for m4.
55328
55329 2007-10-21  Bruno Haible  <bruno@clisp.org>
55330
55331         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
55332
55333 2007-10-21  Bruno Haible  <bruno@clisp.org>
55334
55335         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
55336         Git's management files if the CVS files are not present.
55337
55338 2007-10-20  Bruno Haible  <bruno@clisp.org>
55339
55340         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
55341         gcc-3.4.x.
55342
55343 2007-10-20  Ben Pfaff  <blp@gnu.org>
55344
55345         * lib/math.in.h: Declare round, roundf, roundl if we are providing
55346         implementations.
55347         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
55348         * lib/round.c: New file.
55349         * lib/roundf.c: New file.
55350         * lib/roundl.c: New file.
55351         * m4/round.m4: New file.
55352         * m4/roundf.m4: New file.
55353         * m4/roundl.m4: New file.
55354         * m4/check-libm-func-m4: New file.
55355         * modules/math: Replace round, roundf, roundl related @VARS@ in
55356         math.in.h.
55357         * modules/round: New file.
55358         * modules/round-tests: New file.
55359         * modules/roundf: New file.
55360         * modules/roundf-tests: New file.
55361         * modules/roundl: New file.
55362         * modules/roundl-tests: New file.
55363         * tests/test-round1.c: New file.
55364         * tests/test-round2.c: New file.
55365         * tests/test-roundf1.c: New file.
55366         * tests/test-roundf2.c: New file.
55367         * tests/test-roundl.c: New file.
55368         * doc/functions/round.texi: Mention round module.
55369         * doc/functions/roundf.texi: Mention roundf module.
55370         * doc/functions/roundl.texi: Mention roundl module.
55371         * MODULES.html.sh: Mention new modules.
55372         Thanks to Bruno Haible for suggestions.
55373
55374 2007-10-20  Jim Meyering  <meyering@redhat.com>
55375
55376         * lib/xprintf.c: Include <config.h> unconditionally.
55377
55378         Change xprintf's license to GPL.
55379         * modules/xprintf (License): s/LGPL/GPL/, since this module
55380         depends on modules (exit and exitfail) which are GPL.
55381         Suggestion from Bruno Haible.
55382
55383         xprintf fixes.
55384         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
55385         Use a clearer diagnostic.
55386         Patch from Bruno Haible.
55387
55388 2007-10-20  Bruno Haible  <bruno@clisp.org>
55389
55390         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
55391         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
55392         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55393
55394 2007-10-20  Bruno Haible  <bruno@clisp.org>
55395
55396         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
55397         precision in the comparison result > x - 1 or similar.
55398         * tests/test-ceilf2.c (correct_result_p): Likewise.
55399         * tests/test-truncf2.c (correct_result_p): Likewise.
55400         * tests/test-trunc2.c (correct_result_p): Likewise.
55401         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55402
55403 2007-10-20  Bruno Haible  <bruno@clisp.org>
55404
55405         * modules/ceil: New file.
55406         * m4/ceil.m4: New file.
55407         * doc/functions/ceil.texi: Mention the 'ceil' module.
55408
55409 2007-10-20  Bruno Haible  <bruno@clisp.org>
55410
55411         * modules/floor: New file.
55412         * m4/floor.m4: New file.
55413         * doc/functions/floor.texi: Mention the 'floor' module.
55414
55415 2007-10-20  Bruno Haible  <bruno@clisp.org>
55416
55417         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
55418         of %a.
55419         * modules/floorf-tests (Depends-on): Likewise.
55420         * modules/truncf-tests (Depends-on): Likewise.
55421         * modules/trunc-tests (Depends-on): Likewise.
55422         Reported by Ben Pfaff.
55423
55424 2007-10-19  Jim Meyering  <meyering@redhat.com>
55425
55426         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
55427         Don't bother testing specific errno values.  Just test ferror.
55428
55429         New module: xprintf
55430         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
55431
55432 2007-10-19  Bruno Haible  <bruno@clisp.org>
55433
55434         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
55435         syntax.
55436         * modules/javaexec (Makefile.am): Likewise.
55437         * modules/relocatable-prog (Makefile.am): Likewise.
55438         Suggested by Jim Meyering.
55439
55440 2007-10-18  Bruno Haible  <bruno@clisp.org>
55441
55442         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
55443         Reported by Jim Meyering.
55444
55445 2007-10-18  Eric Blake  <ebb9@byu.net>
55446
55447         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
55448
55449 2007-10-18  Bruno Haible  <bruno@clisp.org>
55450
55451         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
55452         the format string into writable memory. Needed in Fortify conditions.
55453
55454 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
55455             Bruno Haible  <bruno@clisp.org>
55456
55457         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
55458         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
55459         * modules/trim (Depends-on): Add mbchar.
55460         (configure.ac): Add gl_FUNC_MBRTOWC.
55461         (Makefile.am): Augment lib_SOURCES.
55462
55463 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
55464
55465         Modify glob.c to use fstatat and dirfd, to simplify it.
55466         Suggested by Eric Blake.
55467         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
55468         Don't include <stdbool.h>; not used.
55469         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
55470         (link_exists_p): Simplify implementation, since we can now assume
55471         dirfd and fstatat.
55472         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
55473
55474 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55475
55476         * gnulib-tool (func_get_dependencies): Fix sed script to
55477         match only tests.
55478
55479 2007-10-17  Bruno Haible  <bruno@clisp.org>
55480
55481         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
55482         allow locale names without encoding suffix.
55483         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
55484         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
55485
55486 2007-10-16  Bruno Haible  <bruno@clisp.org>
55487
55488         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
55489         * lib/getgroups.c (getgroups): Likewise.
55490         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
55491
55492 2007-10-16  Bruno Haible  <bruno@clisp.org>
55493
55494         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
55495         * modules/malloc-posix (License): Likewise.
55496         * modules/realloc-posix (License): Likewise.
55497         * modules/calloc-posix (License): Likewise.
55498         * modules/intprops (License): Change from GPL to LGPL, with
55499         Paul Eggert's approval.
55500
55501 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55502
55503         Merge glibc changes into lib/glob.c.
55504
55505         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
55506         2007-10-15 04:59:03 UTC.  Here are the changes:
55507
55508         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
55509
55510         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
55511
55512         * lib/glob.c: Add some branch prediction throughout.
55513
55514         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
55515
55516         [BZ #5103]
55517         * lib/glob.c (glob): Recognize patterns starting \/.
55518
55519         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
55520
55521         [BZ #3996]
55522         * lib/glob.c (attribute_hidden): Define if not defined.
55523         (glob): Unescape dirname, filename or username when needed and not
55524         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
55525         is NULL.  Handle unescaped [ in pattern without closing ].
55526         Don't pass GLOB_CHECK down to recursive glob for directories.
55527         (__glob_pattern_type): New function.
55528         (__glob_pattern_p): Implement using __glob_pattern_type.
55529         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
55530         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
55531         Remove unreachable code.
55532
55533         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
55534
55535         * lib/glob.c (glob_in_dir): Add some comments and asserts to
55536         explain why there are no leaks.
55537
55538         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
55539
55540         [BZ #3253]
55541         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
55542         time, rather allocate increasingly bigger arrays of pointers, if
55543         possible with alloca, if too large with malloc.
55544
55545 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
55546
55547         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
55548         Problem reported by H.Merijn Brand in
55549         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
55550         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
55551         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
55552
55553 2007-10-15  Bruno Haible  <bruno@clisp.org>
55554
55555         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
55556         with explicit rpl_ prefix.
55557         * lib/fopen.c (fopen): Likewise.
55558         * lib/freopen.c (freopen): Likewise.
55559         * lib/iconv.c (iconv): Likewise.
55560         * lib/iconv_close.c (iconv_close): Likewise.
55561
55562 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55563
55564         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
55565
55566 2007-10-15  Bruno Haible  <bruno@clisp.org>
55567
55568         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
55569         <stddef.h> instead of <stdlib.h> since we only need NULL.
55570         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55571
55572 2007-10-15  Bruno Haible  <bruno@clisp.org>
55573
55574         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
55575         Replace paragraph talking about LIBOBJS.
55576         Reported by Colin Watson <cjwatson@debian.org>.
55577
55578 2007-10-15  Bruno Haible  <bruno@clisp.org>
55579
55580         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
55581         <stdlib.h> before using NULL.
55582
55583 2007-10-15  Simon Josefsson  <simon@josefsson.org>
55584
55585         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
55586         Reported by Albert Chin <china@thewrittenword.com>.
55587
55588 2007-10-14  Bruno Haible  <bruno@clisp.org>
55589
55590         * modules/iconv_open-utf-tests: New file.
55591         * tests/test-iconv-utf.c: New file.
55592
55593         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
55594         * modules/iconv_open-utf: New file.
55595         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
55596         (iconv, iconv_close): New declarations.
55597         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
55598         be defined.
55599         (iconv_open): Add special handling of conversion between UTF-8 and
55600         UTF-{16,32}{BE,LE}.
55601         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
55602         * lib/iconv_close.c: New file.
55603         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
55604         gl_FUNC_ICONV_OPEN.
55605         (gl_FUNC_ICONV_OPEN): Use it.
55606         (gl_FUNC_ICONV_OPEN_UTF): New macro.
55607         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
55608         and REPLACE_ICONV_UTF.
55609         * modules/iconv_open (Depends-on): Add c-strcase.
55610         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
55611         ICONV_CONST.
55612         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
55613
55614 2007-10-13  Albert Chin  <china@thewrittenword.com>
55615             Bruno Haible  <bruno@clisp.org>
55616
55617         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
55618         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
55619
55620 2007-10-13  Bruno Haible  <bruno@clisp.org>
55621
55622         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
55623         defined, use the ISO C99 inline semantics.
55624         * lib/argp.h (ARGP_EI): Likewise.
55625
55626 2007-10-13  Bruno Haible  <bruno@clisp.org>
55627
55628         Handle 'inline' change in gcc 4.3.0.
55629         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
55630         argp_fmtstream_write, argp_fmtstream_set_lmargin,
55631         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
55632         argp_fmtstream_point): Disable 'extern' declaration if the function
55633         definition is going to be provided inline.
55634         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
55635         semantics, not the ISO C99 inline semantics.
55636         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
55637         'extern' declaration if the function definition is going to be provided
55638         inline.
55639         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
55640         the GNU C inline semantics, not the ISO C99 inline semantics. With
55641         GCC 4.2, avoid a warning.
55642
55643 2007-10-13  Bruno Haible  <bruno@clisp.org>
55644
55645         * lib/freading.h (freading): Enable the use of __freading for
55646         glibc >= 2.7.
55647         * lib/freading.c (freading): Likewise.
55648
55649 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
55650
55651         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
55652         "warning: C99 inline functions are not supported; using GNU89".
55653
55654 2007-10-12  Bruno Haible  <bruno@clisp.org>
55655
55656         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
55657         of 2.
55658         * tests/test-ceilf2.c: New file.
55659         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
55660
55661         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
55662         * modules/ceilf-tests: Update.
55663
55664 2007-10-12  Bruno Haible  <bruno@clisp.org>
55665
55666         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
55667         of 2.
55668         * tests/test-floorf2.c: New file.
55669         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
55670
55671         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
55672         * modules/floorf-tests: Update.
55673
55674 2007-10-12  Bruno Haible  <bruno@clisp.org>
55675
55676         * tests/test-trunc2.c: New file.
55677         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
55678
55679         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
55680         * modules/trunc-tests: Update.
55681
55682 2007-10-12  Bruno Haible  <bruno@clisp.org>
55683
55684         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
55685         of 2.
55686         * tests/test-truncf2.c: New file.
55687         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
55688
55689         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
55690         * modules/truncf-tests: Update.
55691
55692 2007-10-11  Eric Blake  <ebb9@byu.net>
55693
55694         Don't claim strerror is broken on Interix.
55695         * doc/functions/strerror.texi (strerror): Known broken systems are
55696         now Solaris 8, and not Interix.
55697         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
55698         Interix on cross-compile.
55699         Reported by Martin Koeppe in
55700         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
55701
55702 2007-10-11  Bruno Haible  <bruno@clisp.org>
55703
55704         * modules/i-ring-tests: New file.
55705         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
55706         instead of assert.
55707
55708 2007-10-11  Bruno Haible  <bruno@clisp.org>
55709
55710         * modules/filenamecat-tests: New file.
55711         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
55712         * lib/filenamecat.c: Remove test code.
55713
55714 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
55715
55716         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
55717
55718         * lib/strerror.c: Include <string.h> always, to test interface,
55719         and to remove the need for the dummy.
55720         Include intprops.h to compute width instead of doing it ourselves
55721         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
55722         (strerror): Define it to return NULL if there's no system strerror.
55723         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
55724         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
55725         ancient pre-strerror Unix systems well any more.  Saying "unknown
55726         system error" is enough.
55727         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
55728         simpler strerror.c implementation.
55729         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
55730         Simplify the tests to reflect the simpler strerror implementation.
55731         * modules/strerror (Depends-on): Add intprops.
55732
55733 2007-10-09  Eric Blake  <ebb9@byu.net>
55734
55735         Silence test-fpending.
55736         * modules/fpending-tests (Files): Add wrapper script.
55737         * tests/test-fpending.sh: New file.
55738
55739 2007-10-09  Bruno Haible  <bruno@clisp.org>
55740
55741         * MODULES.html.sh (func_module): Don't create a hyperlink for
55742         function names like 'printf_frexp'.
55743         (Misc): Add crc, memxor.
55744         (Characteristics of floating types): New section.
55745         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
55746         isnanf-nolibm, signbit, trunc, truncf, truncl.
55747         (Enhancements for ISO C 99 functions): New subsection Input/output.
55748         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
55749         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
55750         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
55751         (Compatibility checks for POSIX:2001 functions): Add clock-time.
55752         (Enhancements for POSIX:2001 functions): Add chdir-long.
55753         (File system functions): Add areadlink, chdir-safer, read-file.
55754         Remove cycle-check.
55755         (File system as inode set): New section.
55756         (Date and time): Add gethrxtime.
55757         (Multithreading): Add openmp.
55758         (Internationalization functions): Add localename.
55759         (Unicode string functions): Add unistr/u*-mbsnlen.
55760         (Support for maintaining and releasing projects): Add git-version-gen.
55761         (Lone files): Remove directories.
55762
55763 2007-10-08  Ben Pfaff  <blp@gnu.org>
55764
55765         * lib/xmalloca.h: Fix typo in comment.
55766
55767 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55768
55769         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
55770         when avoiding problems with integer overflow.  Use a portable test
55771         instead.
55772
55773 2007-10-08  Simon Josefsson  <simon@josefsson.org>
55774
55775         * modules/dummy (License): Change to LGPLv2+.
55776         * modules/float (License): Likewise
55777         * modules/realloc (License): Likewise
55778         * modules/stdlib (License): Likewise
55779
55780 2007-10-07  Bruno Haible  <bruno@clisp.org>
55781
55782         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
55783         * floor.c (TWO_MANT_DIG): Likewise.
55784         * ceil.c (TWO_MANT_DIG): Likewise.
55785         Reported by Ben Pfaff.
55786
55787 2007-10-07  Bruno Haible  <bruno@clisp.org>
55788
55789         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
55790         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
55791         * lib/frexp.c (FUNC): Likewise.
55792         * lib/printf-frexp.h (printf_frexp): Likewise.
55793         * lib/printf-frexpl.h (printf_frexpl): Likewise.
55794         * lib/printf-frexp.c (FUNC): Likewise.
55795         Suggested by Jim Meyering.
55796
55797 2007-10-07  Jim Meyering  <meyering@redhat.com>
55798
55799         Make xnanosleep's integer overflow test more robust.
55800         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
55801         so that gcc-4.3.0 doesn't optimize away this test for overflow.
55802
55803 2007-10-07  Bruno Haible  <bruno@clisp.org>
55804
55805         * NEWS: Mention the license change.
55806
55807         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
55808         abbreviations in the modules files.
55809
55810         Change copyright notice from GPLv2+ to GPLv3+.
55811         * README: Change copyright notice.
55812         * MODULES.html.sh: Likewise.
55813         * build-aux/bootstrap.conf: Likewise.
55814         * build-aux/config.libpath: Likewise.
55815         * build-aux/csharpcomp.sh.in: Likewise.
55816         * build-aux/csharpexec.sh.in: Likewise.
55817         * build-aux/install-reloc: Likewise.
55818         * build-aux/javacomp.sh.in: Likewise.
55819         * build-aux/javaexec.sh.in: Likewise.
55820         * build-aux/ldd.sh.in: Likewise.
55821         * build-aux/reloc-ldflags: Likewise.
55822         * build-aux/relocatable.sh.in: Likewise.
55823         * build-aux/x-to-1.in: Likewise.
55824         * check-module: Likewise.
55825         * config/srclistvars.sh: Likewise.
55826         * gnulib-tool: Likewise.
55827         * lib/acl-internal.h: Likewise.
55828         * lib/acl.c: Likewise.
55829         * lib/acl.h: Likewise.
55830         * lib/acl_entries.c: Likewise.
55831         * lib/areadlink-with-size.c: Likewise.
55832         * lib/areadlink.c: Likewise.
55833         * lib/areadlink.h: Likewise.
55834         * lib/argmatch.c: Likewise.
55835         * lib/argmatch.h: Likewise.
55836         * lib/argp-ba.c: Likewise.
55837         * lib/argp-eexst.c: Likewise.
55838         * lib/argp-fmtstream.c: Likewise.
55839         * lib/argp-fmtstream.h: Likewise.
55840         * lib/argp-fs-xinl.c: Likewise.
55841         * lib/argp-help.c: Likewise.
55842         * lib/argp-namefrob.h: Likewise.
55843         * lib/argp-parse.c: Likewise.
55844         * lib/argp-pin.c: Likewise.
55845         * lib/argp-pv.c: Likewise.
55846         * lib/argp-pvh.c: Likewise.
55847         * lib/argp-xinl.c: Likewise.
55848         * lib/argp.h: Likewise.
55849         * lib/at-func.c: Likewise.
55850         * lib/atanl.c: Likewise.
55851         * lib/backupfile.c: Likewise.
55852         * lib/backupfile.h: Likewise.
55853         * lib/basename.c: Likewise.
55854         * lib/binary-io.h: Likewise.
55855         * lib/byteswap.in.h: Likewise.
55856         * lib/c-stack.c: Likewise.
55857         * lib/c-stack.h: Likewise.
55858         * lib/c-strcasestr.c: Likewise.
55859         * lib/c-strcasestr.h: Likewise.
55860         * lib/c-strstr.c: Likewise.
55861         * lib/c-strstr.h: Likewise.
55862         * lib/c-strtod.c: Likewise.
55863         * lib/calloc.c: Likewise.
55864         * lib/canon-host.c: Likewise.
55865         * lib/canon-host.h: Likewise.
55866         * lib/canonicalize-lgpl.c: Likewise.
55867         * lib/canonicalize.c: Likewise.
55868         * lib/canonicalize.h: Likewise.
55869         * lib/ceil.c: Likewise.
55870         * lib/ceilf.c: Likewise.
55871         * lib/ceill.c: Likewise.
55872         * lib/chdir-long.c: Likewise.
55873         * lib/chdir-long.h: Likewise.
55874         * lib/chdir-safer.c: Likewise.
55875         * lib/chdir-safer.h: Likewise.
55876         * lib/chown.c: Likewise.
55877         * lib/classpath.c: Likewise.
55878         * lib/classpath.h: Likewise.
55879         * lib/clean-temp.c: Likewise.
55880         * lib/clean-temp.h: Likewise.
55881         * lib/cloexec.c: Likewise.
55882         * lib/close-stream.c: Likewise.
55883         * lib/closein.c: Likewise.
55884         * lib/closein.h: Likewise.
55885         * lib/closeout.c: Likewise.
55886         * lib/closeout.h: Likewise.
55887         * lib/concat-filename.c: Likewise.
55888         * lib/copy-file.c: Likewise.
55889         * lib/copy-file.h: Likewise.
55890         * lib/count-one-bits.h: Likewise.
55891         * lib/crc.c: Likewise.
55892         * lib/crc.h: Likewise.
55893         * lib/creat-safer.c: Likewise.
55894         * lib/csharpcomp.c: Likewise.
55895         * lib/csharpcomp.h: Likewise.
55896         * lib/csharpexec.c: Likewise.
55897         * lib/csharpexec.h: Likewise.
55898         * lib/cycle-check.c: Likewise.
55899         * lib/cycle-check.h: Likewise.
55900         * lib/diacrit.c: Likewise.
55901         * lib/diacrit.h: Likewise.
55902         * lib/diffseq.h: Likewise.
55903         * lib/dirchownmod.c: Likewise.
55904         * lib/dirent.in.h: Likewise.
55905         * lib/dirfd.c: Likewise.
55906         * lib/dirfd.h: Likewise.
55907         * lib/dirname.c: Likewise.
55908         * lib/dirname.h: Likewise.
55909         * lib/dummy.c: Likewise.
55910         * lib/dup-safer.c: Likewise.
55911         * lib/dup2.c: Likewise.
55912         * lib/eealloc.h: Likewise.
55913         * lib/error.c: Likewise.
55914         * lib/error.h: Likewise.
55915         * lib/euidaccess.c: Likewise.
55916         * lib/exclude.c: Likewise.
55917         * lib/exclude.h: Likewise.
55918         * lib/execute.c: Likewise.
55919         * lib/execute.h: Likewise.
55920         * lib/exitfail.c: Likewise.
55921         * lib/exitfail.h: Likewise.
55922         * lib/expl.c: Likewise.
55923         * lib/fatal-signal.c: Likewise.
55924         * lib/fatal-signal.h: Likewise.
55925         * lib/fbufmode.c: Likewise.
55926         * lib/fbufmode.h: Likewise.
55927         * lib/fchdir.c: Likewise.
55928         * lib/fchmodat.c: Likewise.
55929         * lib/fchownat.c: Likewise.
55930         * lib/fcntl--.h: Likewise.
55931         * lib/fcntl-safer.h: Likewise.
55932         * lib/fcntl.in.h: Likewise.
55933         * lib/fd-safer.c: Likewise.
55934         * lib/fflush.c: Likewise.
55935         * lib/file-has-acl.c: Likewise.
55936         * lib/file-set.c: Likewise.
55937         * lib/file-type.c: Likewise.
55938         * lib/file-type.h: Likewise.
55939         * lib/fileblocks.c: Likewise.
55940         * lib/filemode.c: Likewise.
55941         * lib/filemode.h: Likewise.
55942         * lib/filename.h: Likewise.
55943         * lib/filenamecat.c: Likewise.
55944         * lib/filenamecat.h: Likewise.
55945         * lib/findprog.c: Likewise.
55946         * lib/findprog.h: Likewise.
55947         * lib/float.in.h: Likewise.
55948         * lib/floor.c: Likewise.
55949         * lib/floorf.c: Likewise.
55950         * lib/floorl.c: Likewise.
55951         * lib/fopen-safer.c: Likewise.
55952         * lib/fopen.c: Likewise.
55953         * lib/fpending.c: Likewise.
55954         * lib/fpending.h: Likewise.
55955         * lib/fprintf.c: Likewise.
55956         * lib/fprintftime.h: Likewise.
55957         * lib/fpucw.h: Likewise.
55958         * lib/fpurge.c: Likewise.
55959         * lib/fpurge.h: Likewise.
55960         * lib/freadable.c: Likewise.
55961         * lib/freadable.h: Likewise.
55962         * lib/freadahead.c: Likewise.
55963         * lib/freadahead.h: Likewise.
55964         * lib/freading.c: Likewise.
55965         * lib/freading.h: Likewise.
55966         * lib/free.c: Likewise.
55967         * lib/freopen.c: Likewise.
55968         * lib/frexp.c: Likewise.
55969         * lib/frexpl.c: Likewise.
55970         * lib/fseek.c: Likewise.
55971         * lib/fseterr.c: Likewise.
55972         * lib/fseterr.h: Likewise.
55973         * lib/fstatat.c: Likewise.
55974         * lib/fstrcmp.c: Likewise.
55975         * lib/fstrcmp.h: Likewise.
55976         * lib/fsusage.c: Likewise.
55977         * lib/fsusage.h: Likewise.
55978         * lib/ftell.c: Likewise.
55979         * lib/ftello.c: Likewise.
55980         * lib/fts-cycle.c: Likewise.
55981         * lib/fts.c: Likewise.
55982         * lib/fts_.h: Likewise.
55983         * lib/full-read.c: Likewise.
55984         * lib/full-read.h: Likewise.
55985         * lib/full-write.c: Likewise.
55986         * lib/full-write.h: Likewise.
55987         * lib/fwritable.c: Likewise.
55988         * lib/fwritable.h: Likewise.
55989         * lib/fwriteerror.c: Likewise.
55990         * lib/fwriteerror.h: Likewise.
55991         * lib/fwriting.c: Likewise.
55992         * lib/fwriting.h: Likewise.
55993         * lib/gcd.c: Likewise.
55994         * lib/gcd.h: Likewise.
55995         * lib/getcwd.c: Likewise.
55996         * lib/getdate.h: Likewise.
55997         * lib/getdate.y: Likewise.
55998         * lib/getdomainname.c: Likewise.
55999         * lib/getdomainname.h: Likewise.
56000         * lib/getgroups.c: Likewise.
56001         * lib/gethostname.c: Likewise.
56002         * lib/gethrxtime.c: Likewise.
56003         * lib/gethrxtime.h: Likewise.
56004         * lib/getloadavg.c: Likewise.
56005         * lib/getndelim2.c: Likewise.
56006         * lib/getndelim2.h: Likewise.
56007         * lib/getnline.c: Likewise.
56008         * lib/getnline.h: Likewise.
56009         * lib/getopt.c: Likewise.
56010         * lib/getopt.in.h: Likewise.
56011         * lib/getopt1.c: Likewise.
56012         * lib/getopt_int.h: Likewise.
56013         * lib/getpagesize.h: Likewise.
56014         * lib/getsubopt.c: Likewise.
56015         * lib/gettime.c: Likewise.
56016         * lib/getugroups.c: Likewise.
56017         * lib/getugroups.h: Likewise.
56018         * lib/getusershell.c: Likewise.
56019         * lib/gl_anyavltree_list1.h: Likewise.
56020         * lib/gl_anyavltree_list2.h: Likewise.
56021         * lib/gl_anyhash_list1.h: Likewise.
56022         * lib/gl_anyhash_list2.h: Likewise.
56023         * lib/gl_anylinked_list1.h: Likewise.
56024         * lib/gl_anylinked_list2.h: Likewise.
56025         * lib/gl_anyrbtree_list1.h: Likewise.
56026         * lib/gl_anyrbtree_list2.h: Likewise.
56027         * lib/gl_anytree_list1.h: Likewise.
56028         * lib/gl_anytree_list2.h: Likewise.
56029         * lib/gl_anytree_oset.h: Likewise.
56030         * lib/gl_anytreehash_list1.h: Likewise.
56031         * lib/gl_anytreehash_list2.h: Likewise.
56032         * lib/gl_array_list.c: Likewise.
56033         * lib/gl_array_list.h: Likewise.
56034         * lib/gl_array_oset.c: Likewise.
56035         * lib/gl_array_oset.h: Likewise.
56036         * lib/gl_avltree_list.c: Likewise.
56037         * lib/gl_avltree_list.h: Likewise.
56038         * lib/gl_avltree_oset.c: Likewise.
56039         * lib/gl_avltree_oset.h: Likewise.
56040         * lib/gl_avltreehash_list.c: Likewise.
56041         * lib/gl_avltreehash_list.h: Likewise.
56042         * lib/gl_carray_list.c: Likewise.
56043         * lib/gl_carray_list.h: Likewise.
56044         * lib/gl_linked_list.c: Likewise.
56045         * lib/gl_linked_list.h: Likewise.
56046         * lib/gl_linkedhash_list.c: Likewise.
56047         * lib/gl_linkedhash_list.h: Likewise.
56048         * lib/gl_list.c: Likewise.
56049         * lib/gl_list.h: Likewise.
56050         * lib/gl_oset.c: Likewise.
56051         * lib/gl_oset.h: Likewise.
56052         * lib/gl_rbtree_list.c: Likewise.
56053         * lib/gl_rbtree_list.h: Likewise.
56054         * lib/gl_rbtree_oset.c: Likewise.
56055         * lib/gl_rbtree_oset.h: Likewise.
56056         * lib/gl_rbtreehash_list.c: Likewise.
56057         * lib/gl_rbtreehash_list.h: Likewise.
56058         * lib/gl_sublist.c: Likewise.
56059         * lib/gl_sublist.h: Likewise.
56060         * lib/group-member.c: Likewise.
56061         * lib/group-member.h: Likewise.
56062         * lib/hard-locale.c: Likewise.
56063         * lib/hard-locale.h: Likewise.
56064         * lib/hash-pjw.c: Likewise.
56065         * lib/hash-pjw.h: Likewise.
56066         * lib/hash-triple.c: Likewise.
56067         * lib/hash.c: Likewise.
56068         * lib/hash.h: Likewise.
56069         * lib/human.c: Likewise.
56070         * lib/human.h: Likewise.
56071         * lib/i-ring.c: Likewise.
56072         * lib/i-ring.h: Likewise.
56073         * lib/idcache.c: Likewise.
56074         * lib/imaxabs.c: Likewise.
56075         * lib/imaxdiv.c: Likewise.
56076         * lib/inet_pton.c: Likewise.
56077         * lib/inet_pton.h: Likewise.
56078         * lib/intprops.h: Likewise.
56079         * lib/inttostr.c: Likewise.
56080         * lib/inttostr.h: Likewise.
56081         * lib/inttypes.in.h: Likewise.
56082         * lib/isapipe.c: Likewise.
56083         * lib/isdir.c: Likewise.
56084         * lib/isnan.c: Likewise.
56085         * lib/isnan.h: Likewise.
56086         * lib/isnanf.c: Likewise.
56087         * lib/isnanf.h: Likewise.
56088         * lib/isnanl-nolibm.h: Likewise.
56089         * lib/isnanl.c: Likewise.
56090         * lib/isnanl.h: Likewise.
56091         * lib/javacomp.c: Likewise.
56092         * lib/javacomp.h: Likewise.
56093         * lib/javaexec.c: Likewise.
56094         * lib/javaexec.h: Likewise.
56095         * lib/javaversion.c: Likewise.
56096         * lib/javaversion.h: Likewise.
56097         * lib/javaversion.java: Likewise.
56098         * lib/lbrkprop.h: Likewise.
56099         * lib/lchmod.h: Likewise.
56100         * lib/lchown.c: Likewise.
56101         * lib/ldexpl.c: Likewise.
56102         * lib/linebreak.c: Likewise.
56103         * lib/linebreak.h: Likewise.
56104         * lib/linebuffer.c: Likewise.
56105         * lib/linebuffer.h: Likewise.
56106         * lib/locale.in.h: Likewise.
56107         * lib/logl.c: Likewise.
56108         * lib/long-options.c: Likewise.
56109         * lib/long-options.h: Likewise.
56110         * lib/lstat.c: Likewise.
56111         * lib/lstat.h: Likewise.
56112         * lib/math.in.h: Likewise.
56113         * lib/mbchar.c: Likewise.
56114         * lib/mbchar.h: Likewise.
56115         * lib/mbfile.h: Likewise.
56116         * lib/mbiter.h: Likewise.
56117         * lib/mbscasecmp.c: Likewise.
56118         * lib/mbscasestr.c: Likewise.
56119         * lib/mbschr.c: Likewise.
56120         * lib/mbscspn.c: Likewise.
56121         * lib/mbslen.c: Likewise.
56122         * lib/mbsncasecmp.c: Likewise.
56123         * lib/mbsnlen.c: Likewise.
56124         * lib/mbspbrk.c: Likewise.
56125         * lib/mbspcasecmp.c: Likewise.
56126         * lib/mbsrchr.c: Likewise.
56127         * lib/mbssep.c: Likewise.
56128         * lib/mbsspn.c: Likewise.
56129         * lib/mbsstr.c: Likewise.
56130         * lib/mbstok_r.c: Likewise.
56131         * lib/mbswidth.c: Likewise.
56132         * lib/mbswidth.h: Likewise.
56133         * lib/mbuiter.h: Likewise.
56134         * lib/memcasecmp.c: Likewise.
56135         * lib/memcasecmp.h: Likewise.
56136         * lib/memchr.c: Likewise.
56137         * lib/memcmp.c: Likewise.
56138         * lib/memcoll.c: Likewise.
56139         * lib/memcoll.h: Likewise.
56140         * lib/memcpy.c: Likewise.
56141         * lib/memrchr.c: Likewise.
56142         * lib/mkancesdirs.c: Likewise.
56143         * lib/mkdir-p.c: Likewise.
56144         * lib/mkdir-p.h: Likewise.
56145         * lib/mkdir.c: Likewise.
56146         * lib/mkdirat.c: Likewise.
56147         * lib/mkdtemp.c: Likewise.
56148         * lib/mkstemp-safer.c: Likewise.
56149         * lib/mkstemp.c: Likewise.
56150         * lib/modechange.c: Likewise.
56151         * lib/modechange.h: Likewise.
56152         * lib/mountlist.c: Likewise.
56153         * lib/mountlist.h: Likewise.
56154         * lib/mpsort.c: Likewise.
56155         * lib/nanosleep.c: Likewise.
56156         * lib/obstack.c: Likewise.
56157         * lib/obstack.h: Likewise.
56158         * lib/open-safer.c: Likewise.
56159         * lib/open.c: Likewise.
56160         * lib/openat-die.c: Likewise.
56161         * lib/openat-priv.h: Likewise.
56162         * lib/openat-proc.c: Likewise.
56163         * lib/openat.c: Likewise.
56164         * lib/openat.h: Likewise.
56165         * lib/pagealign_alloc.c: Likewise.
56166         * lib/pagealign_alloc.h: Likewise.
56167         * lib/physmem.c: Likewise.
56168         * lib/physmem.h: Likewise.
56169         * lib/pipe-safer.c: Likewise.
56170         * lib/pipe.c: Likewise.
56171         * lib/pipe.h: Likewise.
56172         * lib/posixtm.c: Likewise.
56173         * lib/posixtm.h: Likewise.
56174         * lib/posixver.c: Likewise.
56175         * lib/printf-frexp.c: Likewise.
56176         * lib/printf-frexp.h: Likewise.
56177         * lib/printf-frexpl.c: Likewise.
56178         * lib/printf-frexpl.h: Likewise.
56179         * lib/printf.c: Likewise.
56180         * lib/progname.c: Likewise.
56181         * lib/progname.h: Likewise.
56182         * lib/progreloc.c: Likewise.
56183         * lib/putenv.c: Likewise.
56184         * lib/quote.c: Likewise.
56185         * lib/quote.h: Likewise.
56186         * lib/quotearg.c: Likewise.
56187         * lib/quotearg.h: Likewise.
56188         * lib/raise.c: Likewise.
56189         * lib/readline.c: Likewise.
56190         * lib/readline.h: Likewise.
56191         * lib/readlink.c: Likewise.
56192         * lib/readtokens.c: Likewise.
56193         * lib/readtokens.h: Likewise.
56194         * lib/readtokens0.c: Likewise.
56195         * lib/readtokens0.h: Likewise.
56196         * lib/readutmp.c: Likewise.
56197         * lib/readutmp.h: Likewise.
56198         * lib/realloc.c: Likewise.
56199         * lib/relocwrapper.c: Likewise.
56200         * lib/rename-dest-slash.c: Likewise.
56201         * lib/rename.c: Likewise.
56202         * lib/rmdir.c: Likewise.
56203         * lib/rpmatch.c: Likewise.
56204         * lib/safe-read.c: Likewise.
56205         * lib/safe-read.h: Likewise.
56206         * lib/safe-write.c: Likewise.
56207         * lib/safe-write.h: Likewise.
56208         * lib/same-inode.h: Likewise.
56209         * lib/same.c: Likewise.
56210         * lib/same.h: Likewise.
56211         * lib/save-cwd.c: Likewise.
56212         * lib/save-cwd.h: Likewise.
56213         * lib/savedir.c: Likewise.
56214         * lib/savedir.h: Likewise.
56215         * lib/savewd.c: Likewise.
56216         * lib/savewd.h: Likewise.
56217         * lib/search.in.h: Likewise.
56218         * lib/setenv.c: Likewise.
56219         * lib/setenv.h: Likewise.
56220         * lib/settime.c: Likewise.
56221         * lib/sh-quote.c: Likewise.
56222         * lib/sh-quote.h: Likewise.
56223         * lib/sig2str.c: Likewise.
56224         * lib/sig2str.h: Likewise.
56225         * lib/signal.in.h: Likewise.
56226         * lib/signbitd.c: Likewise.
56227         * lib/signbitf.c: Likewise.
56228         * lib/signbitl.c: Likewise.
56229         * lib/sigprocmask.c: Likewise.
56230         * lib/sincosl.c: Likewise.
56231         * lib/sleep.c: Likewise.
56232         * lib/sprintf.c: Likewise.
56233         * lib/sqrtl.c: Likewise.
56234         * lib/stat-time.h: Likewise.
56235         * lib/stdio--.h: Likewise.
56236         * lib/stdio-safer.h: Likewise.
56237         * lib/stdlib--.h: Likewise.
56238         * lib/stdlib-safer.h: Likewise.
56239         * lib/stdlib.in.h: Likewise.
56240         * lib/stpcpy.c: Likewise.
56241         * lib/stpncpy.c: Likewise.
56242         * lib/strchrnul.c: Likewise.
56243         * lib/strcspn.c: Likewise.
56244         * lib/strerror.c: Likewise.
56245         * lib/strftime.c: Likewise.
56246         * lib/strftime.h: Likewise.
56247         * lib/striconveh.c: Likewise.
56248         * lib/striconveh.h: Likewise.
56249         * lib/striconveha.c: Likewise.
56250         * lib/striconveha.h: Likewise.
56251         * lib/stripslash.c: Likewise.
56252         * lib/strnlen1.c: Likewise.
56253         * lib/strnlen1.h: Likewise.
56254         * lib/strtod.c: Likewise.
56255         * lib/strtoimax.c: Likewise.
56256         * lib/strtok_r.c: Likewise.
56257         * lib/strtol.c: Likewise.
56258         * lib/strtoll.c: Likewise.
56259         * lib/strtoul.c: Likewise.
56260         * lib/strtoull.c: Likewise.
56261         * lib/sysexits.in.h: Likewise.
56262         * lib/tempname.c: Likewise.
56263         * lib/tempname.h: Likewise.
56264         * lib/timespec.h: Likewise.
56265         * lib/tls.c: Likewise.
56266         * lib/tls.h: Likewise.
56267         * lib/tmpdir.c: Likewise.
56268         * lib/tmpdir.h: Likewise.
56269         * lib/tmpfile-safer.c: Likewise.
56270         * lib/tmpfile.c: Likewise.
56271         * lib/trigl.c: Likewise.
56272         * lib/trigl.h: Likewise.
56273         * lib/trim.c: Likewise.
56274         * lib/trim.h: Likewise.
56275         * lib/trunc.c: Likewise.
56276         * lib/truncf.c: Likewise.
56277         * lib/truncl.c: Likewise.
56278         * lib/tsearch.c: Likewise.
56279         * lib/unicodeio.c: Likewise.
56280         * lib/unicodeio.h: Likewise.
56281         * lib/unistd--.h: Likewise.
56282         * lib/unistd-safer.h: Likewise.
56283         * lib/unistdio/ulc-fprintf.c: Likewise.
56284         * lib/unistdio/ulc-vfprintf.c: Likewise.
56285         * lib/unlinkdir.c: Likewise.
56286         * lib/unlinkdir.h: Likewise.
56287         * lib/unlocked-io.h: Likewise.
56288         * lib/unsetenv.c: Likewise.
56289         * lib/userspec.c: Likewise.
56290         * lib/utime.c: Likewise.
56291         * lib/utimecmp.c: Likewise.
56292         * lib/utimecmp.h: Likewise.
56293         * lib/utimens.c: Likewise.
56294         * lib/verify.h: Likewise.
56295         * lib/verror.c: Likewise.
56296         * lib/verror.h: Likewise.
56297         * lib/version-etc-fsf.c: Likewise.
56298         * lib/version-etc.c: Likewise.
56299         * lib/version-etc.h: Likewise.
56300         * lib/vfprintf.c: Likewise.
56301         * lib/vprintf.c: Likewise.
56302         * lib/vsprintf.c: Likewise.
56303         * lib/w32spawn.h: Likewise.
56304         * lib/wait-process.c: Likewise.
56305         * lib/wait-process.h: Likewise.
56306         * lib/wcwidth.c: Likewise.
56307         * lib/write-any-file.c: Likewise.
56308         * lib/xalloc-die.c: Likewise.
56309         * lib/xalloc.h: Likewise.
56310         * lib/xasprintf.c: Likewise.
56311         * lib/xgetcwd.c: Likewise.
56312         * lib/xgetcwd.h: Likewise.
56313         * lib/xgetdomainname.c: Likewise.
56314         * lib/xgetdomainname.h: Likewise.
56315         * lib/xgethostname.c: Likewise.
56316         * lib/xmalloc.c: Likewise.
56317         * lib/xmalloca.c: Likewise.
56318         * lib/xmalloca.h: Likewise.
56319         * lib/xmemcoll.c: Likewise.
56320         * lib/xnanosleep.c: Likewise.
56321         * lib/xreadlink.c: Likewise.
56322         * lib/xreadlink.h: Likewise.
56323         * lib/xsetenv.c: Likewise.
56324         * lib/xsetenv.h: Likewise.
56325         * lib/xstriconv.c: Likewise.
56326         * lib/xstriconv.h: Likewise.
56327         * lib/xstrndup.c: Likewise.
56328         * lib/xstrndup.h: Likewise.
56329         * lib/xstrtod.c: Likewise.
56330         * lib/xstrtod.h: Likewise.
56331         * lib/xstrtol-error.c: Likewise.
56332         * lib/xstrtol.c: Likewise.
56333         * lib/xstrtol.h: Likewise.
56334         * lib/xtime.h: Likewise.
56335         * lib/xvasprintf.c: Likewise.
56336         * lib/xvasprintf.h: Likewise.
56337         * lib/yesno.c: Likewise.
56338         * lib/yesno.h: Likewise.
56339         * posix-modules: Likewise.
56340         * tests/test-alloca-opt.c: Likewise.
56341         * tests/test-arcfour.c: Likewise.
56342         * tests/test-arctwo.c: Likewise.
56343         * tests/test-argmatch.c: Likewise.
56344         * tests/test-argp-2.sh: Likewise.
56345         * tests/test-argp.c: Likewise.
56346         * tests/test-arpa_inet.c: Likewise.
56347         * tests/test-array_list.c: Likewise.
56348         * tests/test-array_oset.c: Likewise.
56349         * tests/test-atexit.c: Likewise.
56350         * tests/test-avltree_list.c: Likewise.
56351         * tests/test-avltree_oset.c: Likewise.
56352         * tests/test-avltreehash_list.c: Likewise.
56353         * tests/test-base64.c: Likewise.
56354         * tests/test-binary-io.c: Likewise.
56355         * tests/test-byteswap.c: Likewise.
56356         * tests/test-c-ctype.c: Likewise.
56357         * tests/test-c-strcasecmp.c: Likewise.
56358         * tests/test-c-strcasestr.c: Likewise.
56359         * tests/test-c-strncasecmp.c: Likewise.
56360         * tests/test-c-strstr.c: Likewise.
56361         * tests/test-canonicalize-lgpl.c: Likewise.
56362         * tests/test-canonicalize.c: Likewise.
56363         * tests/test-carray_list.c: Likewise.
56364         * tests/test-ceilf.c: Likewise.
56365         * tests/test-ceill.c: Likewise.
56366         * tests/test-count-one-bits.c: Likewise.
56367         * tests/test-crc.c: Likewise.
56368         * tests/test-dirname.c: Likewise.
56369         * tests/test-fbufmode.c: Likewise.
56370         * tests/test-fcntl.c: Likewise.
56371         * tests/test-fflush.c: Likewise.
56372         * tests/test-floorf.c: Likewise.
56373         * tests/test-floorl.c: Likewise.
56374         * tests/test-fopen.c: Likewise.
56375         * tests/test-fprintf-posix.c: Likewise.
56376         * tests/test-fprintf-posix.h: Likewise.
56377         * tests/test-fpurge.c: Likewise.
56378         * tests/test-freadable.c: Likewise.
56379         * tests/test-freadahead.c: Likewise.
56380         * tests/test-freading.c: Likewise.
56381         * tests/test-freopen.c: Likewise.
56382         * tests/test-frexp.c: Likewise.
56383         * tests/test-frexpl.c: Likewise.
56384         * tests/test-fseek.c: Likewise.
56385         * tests/test-fseeko.c: Likewise.
56386         * tests/test-fseterr.c: Likewise.
56387         * tests/test-fstrcmp.c: Likewise.
56388         * tests/test-ftell.c: Likewise.
56389         * tests/test-ftello.c: Likewise.
56390         * tests/test-fwritable.c: Likewise.
56391         * tests/test-fwriting.c: Likewise.
56392         * tests/test-getaddrinfo.c: Likewise.
56393         * tests/test-getpass.c: Likewise.
56394         * tests/test-gettimeofday.c: Likewise.
56395         * tests/test-hmac-md5.c: Likewise.
56396         * tests/test-hmac-sha1.c: Likewise.
56397         * tests/test-iconv.c: Likewise.
56398         * tests/test-iconvme.c: Likewise.
56399         * tests/test-inttypes.c: Likewise.
56400         * tests/test-isnan.c: Likewise.
56401         * tests/test-isnanf.c: Likewise.
56402         * tests/test-isnanl-nolibm.c: Likewise.
56403         * tests/test-isnanl.c: Likewise.
56404         * tests/test-isnanl.h: Likewise.
56405         * tests/test-ldexpl.c: Likewise.
56406         * tests/test-linked_list.c: Likewise.
56407         * tests/test-linkedhash_list.c: Likewise.
56408         * tests/test-locale.c: Likewise.
56409         * tests/test-localename.c: Likewise.
56410         * tests/test-lock.c: Likewise.
56411         * tests/test-lseek.c: Likewise.
56412         * tests/test-malloca.c: Likewise.
56413         * tests/test-math.c: Likewise.
56414         * tests/test-mbscasecmp.c: Likewise.
56415         * tests/test-mbscasestr1.c: Likewise.
56416         * tests/test-mbscasestr2.c: Likewise.
56417         * tests/test-mbscasestr3.c: Likewise.
56418         * tests/test-mbscasestr4.c: Likewise.
56419         * tests/test-mbschr.c: Likewise.
56420         * tests/test-mbscspn.c: Likewise.
56421         * tests/test-mbsncasecmp.c: Likewise.
56422         * tests/test-mbspbrk.c: Likewise.
56423         * tests/test-mbspcasecmp.c: Likewise.
56424         * tests/test-mbsrchr.c: Likewise.
56425         * tests/test-mbsspn.c: Likewise.
56426         * tests/test-mbsstr1.c: Likewise.
56427         * tests/test-mbsstr2.c: Likewise.
56428         * tests/test-mbsstr3.c: Likewise.
56429         * tests/test-md5.c: Likewise.
56430         * tests/test-memmem.c: Likewise.
56431         * tests/test-netinet_in.c: Likewise.
56432         * tests/test-open.c: Likewise.
56433         * tests/test-printf-frexp.c: Likewise.
56434         * tests/test-printf-frexpl.c: Likewise.
56435         * tests/test-printf-posix.c: Likewise.
56436         * tests/test-printf-posix.h: Likewise.
56437         * tests/test-rbtree_list.c: Likewise.
56438         * tests/test-rbtree_oset.c: Likewise.
56439         * tests/test-rbtreehash_list.c: Likewise.
56440         * tests/test-read-file.c: Likewise.
56441         * tests/test-rijndael.c: Likewise.
56442         * tests/test-search.c: Likewise.
56443         * tests/test-signbit.c: Likewise.
56444         * tests/test-sleep.c: Likewise.
56445         * tests/test-snprintf-posix.c: Likewise.
56446         * tests/test-snprintf-posix.h: Likewise.
56447         * tests/test-snprintf.c: Likewise.
56448         * tests/test-sprintf-posix.c: Likewise.
56449         * tests/test-sprintf-posix.h: Likewise.
56450         * tests/test-stat-time.c: Likewise.
56451         * tests/test-stdbool.c: Likewise.
56452         * tests/test-stdint.c: Likewise.
56453         * tests/test-stdio.c: Likewise.
56454         * tests/test-stdlib.c: Likewise.
56455         * tests/test-stpncpy.c: Likewise.
56456         * tests/test-strcasestr.c: Likewise.
56457         * tests/test-striconv.c: Likewise.
56458         * tests/test-striconveh.c: Likewise.
56459         * tests/test-striconveha.c: Likewise.
56460         * tests/test-string.c: Likewise.
56461         * tests/test-sys_select.c: Likewise.
56462         * tests/test-sys_socket.c: Likewise.
56463         * tests/test-sys_stat.c: Likewise.
56464         * tests/test-sys_time.c: Likewise.
56465         * tests/test-sysexits.c: Likewise.
56466         * tests/test-time.c: Likewise.
56467         * tests/test-tls.c: Likewise.
56468         * tests/test-trunc.c: Likewise.
56469         * tests/test-truncf.c: Likewise.
56470         * tests/test-truncl.c: Likewise.
56471         * tests/test-unistd.c: Likewise.
56472         * tests/test-vasnprintf-posix.c: Likewise.
56473         * tests/test-vasnprintf-posix2.c: Likewise.
56474         * tests/test-vasnprintf.c: Likewise.
56475         * tests/test-vasprintf-posix.c: Likewise.
56476         * tests/test-vasprintf.c: Likewise.
56477         * tests/test-verify.c: Likewise.
56478         * tests/test-vfprintf-posix.c: Likewise.
56479         * tests/test-vprintf-posix.c: Likewise.
56480         * tests/test-vsnprintf-posix.c: Likewise.
56481         * tests/test-vsnprintf.c: Likewise.
56482         * tests/test-vsprintf-posix.c: Likewise.
56483         * tests/test-wchar.c: Likewise.
56484         * tests/test-wctype.c: Likewise.
56485         * tests/test-wcwidth.c: Likewise.
56486         * tests/test-xstrtol.c: Likewise.
56487         * tests/test-xvasprintf.c: Likewise.
56488         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
56489         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
56490         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
56491         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
56492         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
56493         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
56494         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
56495         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
56496         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
56497         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
56498         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
56499         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
56500         * tests/uniname/test-uninames.c: Likewise.
56501         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
56502         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
56503         * tests/unistdio/test-u16-printf1.h: Likewise.
56504         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
56505         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
56506         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
56507         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
56508         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
56509         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
56510         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
56511         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
56512         * tests/unistdio/test-u32-printf1.h: Likewise.
56513         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
56514         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
56515         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
56516         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
56517         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
56518         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
56519         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
56520         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
56521         * tests/unistdio/test-u8-printf1.h: Likewise.
56522         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
56523         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
56524         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
56525         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
56526         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
56527         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
56528         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
56529         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
56530         * tests/unistdio/test-ulc-printf1.h: Likewise.
56531         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
56532         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
56533         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
56534         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
56535         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
56536         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
56537         * tests/uniwidth/test-u16-strwidth.c: Likewise.
56538         * tests/uniwidth/test-u16-width.c: Likewise.
56539         * tests/uniwidth/test-u32-strwidth.c: Likewise.
56540         * tests/uniwidth/test-u32-width.c: Likewise.
56541         * tests/uniwidth/test-u8-strwidth.c: Likewise.
56542         * tests/uniwidth/test-u8-width.c: Likewise.
56543         * tests/uniwidth/test-uc_width.c: Likewise.
56544         * config/srclist-update: Likewise.
56545         (fixlicense): Update to GPLv3+.
56546
56547         Change copyright notice from LGPLv2.1+ to LGPLv3+.
56548         * tests/test-tsearch.c: Change copyright notice.
56549
56550         Change copyright notice from LGPLv2.0+ to LGPLv3+.
56551         * lib/c-strcaseeq.h: Change copyright notice.
56552         * lib/streq.h: Likewise.
56553         * lib/uniconv.h: Likewise.
56554         * lib/uniconv/u-conv-from-enc.h: Likewise.
56555         * lib/uniconv/u-conv-to-enc.h: Likewise.
56556         * lib/uniconv/u-strconv-from-enc.h: Likewise.
56557         * lib/uniconv/u-strconv-to-enc.h: Likewise.
56558         * lib/uniconv/u16-conv-from-enc.c: Likewise.
56559         * lib/uniconv/u16-conv-to-enc.c: Likewise.
56560         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
56561         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
56562         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
56563         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
56564         * lib/uniconv/u32-conv-from-enc.c: Likewise.
56565         * lib/uniconv/u32-conv-to-enc.c: Likewise.
56566         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
56567         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
56568         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
56569         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
56570         * lib/uniconv/u8-conv-from-enc.c: Likewise.
56571         * lib/uniconv/u8-conv-to-enc.c: Likewise.
56572         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
56573         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
56574         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
56575         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
56576         * lib/uniname.h: Likewise.
56577         * lib/uniname/uniname.c: Likewise.
56578         * lib/unistdio.h: Likewise.
56579         * lib/unistdio/u-asnprintf.h: Likewise.
56580         * lib/unistdio/u-asprintf.h: Likewise.
56581         * lib/unistdio/u-printf-args.c: Likewise.
56582         * lib/unistdio/u-printf-args.h: Likewise.
56583         * lib/unistdio/u-printf-parse.h: Likewise.
56584         * lib/unistdio/u-snprintf.h: Likewise.
56585         * lib/unistdio/u-sprintf.h: Likewise.
56586         * lib/unistdio/u-vasprintf.h: Likewise.
56587         * lib/unistdio/u-vsnprintf.h: Likewise.
56588         * lib/unistdio/u-vsprintf.h: Likewise.
56589         * lib/unistdio/u16-asnprintf.c: Likewise.
56590         * lib/unistdio/u16-asprintf.c: Likewise.
56591         * lib/unistdio/u16-printf-parse.c: Likewise.
56592         * lib/unistdio/u16-snprintf.c: Likewise.
56593         * lib/unistdio/u16-sprintf.c: Likewise.
56594         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
56595         * lib/unistdio/u16-u16-asprintf.c: Likewise.
56596         * lib/unistdio/u16-u16-snprintf.c: Likewise.
56597         * lib/unistdio/u16-u16-sprintf.c: Likewise.
56598         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
56599         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
56600         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
56601         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
56602         * lib/unistdio/u16-vasnprintf.c: Likewise.
56603         * lib/unistdio/u16-vasprintf.c: Likewise.
56604         * lib/unistdio/u16-vsnprintf.c: Likewise.
56605         * lib/unistdio/u16-vsprintf.c: Likewise.
56606         * lib/unistdio/u32-asnprintf.c: Likewise.
56607         * lib/unistdio/u32-asprintf.c: Likewise.
56608         * lib/unistdio/u32-printf-parse.c: Likewise.
56609         * lib/unistdio/u32-snprintf.c: Likewise.
56610         * lib/unistdio/u32-sprintf.c: Likewise.
56611         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
56612         * lib/unistdio/u32-u32-asprintf.c: Likewise.
56613         * lib/unistdio/u32-u32-snprintf.c: Likewise.
56614         * lib/unistdio/u32-u32-sprintf.c: Likewise.
56615         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
56616         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
56617         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
56618         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
56619         * lib/unistdio/u32-vasnprintf.c: Likewise.
56620         * lib/unistdio/u32-vasprintf.c: Likewise.
56621         * lib/unistdio/u32-vsnprintf.c: Likewise.
56622         * lib/unistdio/u32-vsprintf.c: Likewise.
56623         * lib/unistdio/u8-asnprintf.c: Likewise.
56624         * lib/unistdio/u8-asprintf.c: Likewise.
56625         * lib/unistdio/u8-printf-parse.c: Likewise.
56626         * lib/unistdio/u8-snprintf.c: Likewise.
56627         * lib/unistdio/u8-sprintf.c: Likewise.
56628         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
56629         * lib/unistdio/u8-u8-asprintf.c: Likewise.
56630         * lib/unistdio/u8-u8-snprintf.c: Likewise.
56631         * lib/unistdio/u8-u8-sprintf.c: Likewise.
56632         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
56633         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
56634         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
56635         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
56636         * lib/unistdio/u8-vasnprintf.c: Likewise.
56637         * lib/unistdio/u8-vasprintf.c: Likewise.
56638         * lib/unistdio/u8-vsnprintf.c: Likewise.
56639         * lib/unistdio/u8-vsprintf.c: Likewise.
56640         * lib/unistdio/ulc-asnprintf.c: Likewise.
56641         * lib/unistdio/ulc-asprintf.c: Likewise.
56642         * lib/unistdio/ulc-printf-parse.c: Likewise.
56643         * lib/unistdio/ulc-snprintf.c: Likewise.
56644         * lib/unistdio/ulc-sprintf.c: Likewise.
56645         * lib/unistdio/ulc-vasnprintf.c: Likewise.
56646         * lib/unistdio/ulc-vasprintf.c: Likewise.
56647         * lib/unistdio/ulc-vsnprintf.c: Likewise.
56648         * lib/unistdio/ulc-vsprintf.c: Likewise.
56649         * lib/unistr.h: Likewise.
56650         * lib/unistr/u-cpy-alloc.h: Likewise.
56651         * lib/unistr/u-cpy.h: Likewise.
56652         * lib/unistr/u-endswith.h: Likewise.
56653         * lib/unistr/u-move.h: Likewise.
56654         * lib/unistr/u-set.h: Likewise.
56655         * lib/unistr/u-startswith.h: Likewise.
56656         * lib/unistr/u-stpcpy.h: Likewise.
56657         * lib/unistr/u-stpncpy.h: Likewise.
56658         * lib/unistr/u-strcat.h: Likewise.
56659         * lib/unistr/u-strcpy.h: Likewise.
56660         * lib/unistr/u-strcspn.h: Likewise.
56661         * lib/unistr/u-strdup.h: Likewise.
56662         * lib/unistr/u-strlen.h: Likewise.
56663         * lib/unistr/u-strncat.h: Likewise.
56664         * lib/unistr/u-strncpy.h: Likewise.
56665         * lib/unistr/u-strnlen.h: Likewise.
56666         * lib/unistr/u-strpbrk.h: Likewise.
56667         * lib/unistr/u-strspn.h: Likewise.
56668         * lib/unistr/u-strstr.h: Likewise.
56669         * lib/unistr/u-strtok.h: Likewise.
56670         * lib/unistr/u16-check.c: Likewise.
56671         * lib/unistr/u16-chr.c: Likewise.
56672         * lib/unistr/u16-cmp.c: Likewise.
56673         * lib/unistr/u16-cpy-alloc.c: Likewise.
56674         * lib/unistr/u16-cpy.c: Likewise.
56675         * lib/unistr/u16-endswith.c: Likewise.
56676         * lib/unistr/u16-mblen.c: Likewise.
56677         * lib/unistr/u16-mbsnlen.c: Likewise.
56678         * lib/unistr/u16-mbtouc-aux.c: Likewise.
56679         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
56680         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
56681         * lib/unistr/u16-mbtouc.c: Likewise.
56682         * lib/unistr/u16-mbtoucr.c: Likewise.
56683         * lib/unistr/u16-move.c: Likewise.
56684         * lib/unistr/u16-next.c: Likewise.
56685         * lib/unistr/u16-prev.c: Likewise.
56686         * lib/unistr/u16-set.c: Likewise.
56687         * lib/unistr/u16-startswith.c: Likewise.
56688         * lib/unistr/u16-stpcpy.c: Likewise.
56689         * lib/unistr/u16-stpncpy.c: Likewise.
56690         * lib/unistr/u16-strcat.c: Likewise.
56691         * lib/unistr/u16-strchr.c: Likewise.
56692         * lib/unistr/u16-strcmp.c: Likewise.
56693         * lib/unistr/u16-strcpy.c: Likewise.
56694         * lib/unistr/u16-strcspn.c: Likewise.
56695         * lib/unistr/u16-strdup.c: Likewise.
56696         * lib/unistr/u16-strlen.c: Likewise.
56697         * lib/unistr/u16-strmblen.c: Likewise.
56698         * lib/unistr/u16-strmbtouc.c: Likewise.
56699         * lib/unistr/u16-strncat.c: Likewise.
56700         * lib/unistr/u16-strncmp.c: Likewise.
56701         * lib/unistr/u16-strncpy.c: Likewise.
56702         * lib/unistr/u16-strnlen.c: Likewise.
56703         * lib/unistr/u16-strpbrk.c: Likewise.
56704         * lib/unistr/u16-strrchr.c: Likewise.
56705         * lib/unistr/u16-strspn.c: Likewise.
56706         * lib/unistr/u16-strstr.c: Likewise.
56707         * lib/unistr/u16-strtok.c: Likewise.
56708         * lib/unistr/u16-to-u32.c: Likewise.
56709         * lib/unistr/u16-to-u8.c: Likewise.
56710         * lib/unistr/u16-uctomb-aux.c: Likewise.
56711         * lib/unistr/u16-uctomb.c: Likewise.
56712         * lib/unistr/u32-check.c: Likewise.
56713         * lib/unistr/u32-chr.c: Likewise.
56714         * lib/unistr/u32-cmp.c: Likewise.
56715         * lib/unistr/u32-cpy-alloc.c: Likewise.
56716         * lib/unistr/u32-cpy.c: Likewise.
56717         * lib/unistr/u32-endswith.c: Likewise.
56718         * lib/unistr/u32-mblen.c: Likewise.
56719         * lib/unistr/u32-mbsnlen.c: Likewise.
56720         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
56721         * lib/unistr/u32-mbtouc.c: Likewise.
56722         * lib/unistr/u32-mbtoucr.c: Likewise.
56723         * lib/unistr/u32-move.c: Likewise.
56724         * lib/unistr/u32-next.c: Likewise.
56725         * lib/unistr/u32-prev.c: Likewise.
56726         * lib/unistr/u32-set.c: Likewise.
56727         * lib/unistr/u32-startswith.c: Likewise.
56728         * lib/unistr/u32-stpcpy.c: Likewise.
56729         * lib/unistr/u32-stpncpy.c: Likewise.
56730         * lib/unistr/u32-strcat.c: Likewise.
56731         * lib/unistr/u32-strchr.c: Likewise.
56732         * lib/unistr/u32-strcmp.c: Likewise.
56733         * lib/unistr/u32-strcpy.c: Likewise.
56734         * lib/unistr/u32-strcspn.c: Likewise.
56735         * lib/unistr/u32-strdup.c: Likewise.
56736         * lib/unistr/u32-strlen.c: Likewise.
56737         * lib/unistr/u32-strmblen.c: Likewise.
56738         * lib/unistr/u32-strmbtouc.c: Likewise.
56739         * lib/unistr/u32-strncat.c: Likewise.
56740         * lib/unistr/u32-strncmp.c: Likewise.
56741         * lib/unistr/u32-strncpy.c: Likewise.
56742         * lib/unistr/u32-strnlen.c: Likewise.
56743         * lib/unistr/u32-strpbrk.c: Likewise.
56744         * lib/unistr/u32-strrchr.c: Likewise.
56745         * lib/unistr/u32-strspn.c: Likewise.
56746         * lib/unistr/u32-strstr.c: Likewise.
56747         * lib/unistr/u32-strtok.c: Likewise.
56748         * lib/unistr/u32-to-u16.c: Likewise.
56749         * lib/unistr/u32-to-u8.c: Likewise.
56750         * lib/unistr/u32-uctomb.c: Likewise.
56751         * lib/unistr/u8-check.c: Likewise.
56752         * lib/unistr/u8-chr.c: Likewise.
56753         * lib/unistr/u8-cmp.c: Likewise.
56754         * lib/unistr/u8-cpy-alloc.c: Likewise.
56755         * lib/unistr/u8-cpy.c: Likewise.
56756         * lib/unistr/u8-endswith.c: Likewise.
56757         * lib/unistr/u8-mblen.c: Likewise.
56758         * lib/unistr/u8-mbsnlen.c: Likewise.
56759         * lib/unistr/u8-mbtouc-aux.c: Likewise.
56760         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
56761         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
56762         * lib/unistr/u8-mbtouc.c: Likewise.
56763         * lib/unistr/u8-mbtoucr.c: Likewise.
56764         * lib/unistr/u8-move.c: Likewise.
56765         * lib/unistr/u8-next.c: Likewise.
56766         * lib/unistr/u8-prev.c: Likewise.
56767         * lib/unistr/u8-set.c: Likewise.
56768         * lib/unistr/u8-startswith.c: Likewise.
56769         * lib/unistr/u8-stpcpy.c: Likewise.
56770         * lib/unistr/u8-stpncpy.c: Likewise.
56771         * lib/unistr/u8-strcat.c: Likewise.
56772         * lib/unistr/u8-strchr.c: Likewise.
56773         * lib/unistr/u8-strcmp.c: Likewise.
56774         * lib/unistr/u8-strcpy.c: Likewise.
56775         * lib/unistr/u8-strcspn.c: Likewise.
56776         * lib/unistr/u8-strdup.c: Likewise.
56777         * lib/unistr/u8-strlen.c: Likewise.
56778         * lib/unistr/u8-strmblen.c: Likewise.
56779         * lib/unistr/u8-strmbtouc.c: Likewise.
56780         * lib/unistr/u8-strncat.c: Likewise.
56781         * lib/unistr/u8-strncmp.c: Likewise.
56782         * lib/unistr/u8-strncpy.c: Likewise.
56783         * lib/unistr/u8-strnlen.c: Likewise.
56784         * lib/unistr/u8-strpbrk.c: Likewise.
56785         * lib/unistr/u8-strrchr.c: Likewise.
56786         * lib/unistr/u8-strspn.c: Likewise.
56787         * lib/unistr/u8-strstr.c: Likewise.
56788         * lib/unistr/u8-strtok.c: Likewise.
56789         * lib/unistr/u8-to-u16.c: Likewise.
56790         * lib/unistr/u8-to-u32.c: Likewise.
56791         * lib/unistr/u8-uctomb-aux.c: Likewise.
56792         * lib/unistr/u8-uctomb.c: Likewise.
56793         * lib/unitypes.h: Likewise.
56794         * lib/uniwidth.h: Likewise.
56795         * lib/uniwidth/cjk.h: Likewise.
56796         * lib/uniwidth/u16-strwidth.c: Likewise.
56797         * lib/uniwidth/u16-width.c: Likewise.
56798         * lib/uniwidth/u32-strwidth.c: Likewise.
56799         * lib/uniwidth/u32-width.c: Likewise.
56800         * lib/uniwidth/u8-strwidth.c: Likewise.
56801         * lib/uniwidth/u8-width.c: Likewise.
56802         * lib/uniwidth/width.c: Likewise.
56803
56804 2007-10-07  Bruno Haible  <bruno@clisp.org>
56805
56806         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
56807         The file is still under LGPL (see modules/inttypes).
56808
56809 2007-10-06  Bruno Haible  <bruno@clisp.org>
56810
56811         * modules/trunc (Dependencies): Add 'extensions'.
56812         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
56813         Reported by Ben Pfaff <blp@gnu.org>.
56814
56815 2007-10-06  Bruno Haible  <bruno@clisp.org>
56816
56817         * modules/freopen-tests: New file.
56818         * tests/test-freopen.c: New file.
56819
56820         * modules/fopen-tests: New file.
56821         * tests/test-fopen.c: New file.
56822
56823         * modules/fopen: New file.
56824         * lib/fopen.c: New file.
56825         * m4/fopen.m4: New file.
56826         * modules/freopen: New file.
56827         * lib/freopen.c: New file.
56828         * m4/freopen.m4: New file.
56829         * lib/stdio.in.h (fopen, freopen): New declarations.
56830         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
56831         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56832         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
56833         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
56834         * doc/functions/fopen.texi: Mention the 'fopen' module.
56835         * doc/functions/freopen.texi: Mention the 'freopen' module.
56836
56837 2007-10-06  Bruno Haible  <bruno@clisp.org>
56838
56839         * modules/open-tests: New file.
56840         * tests/test-open.c: New file.
56841
56842         * modules/open: New file.
56843         * lib/open.c: New file.
56844         * m4/open.m4: New file.
56845         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
56846         lib/open.c does.
56847         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
56848         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
56849         macros.
56850         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
56851         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
56852         REPLACE_OPEN.
56853         * doc/functions/open.texi: Mention the 'open' module.
56854
56855 2007-10-04  Bruno Haible  <bruno@clisp.org>
56856
56857         * modules/ceill-tests: New file.
56858         * tests/test-ceill.c: New file.
56859
56860         * modules/ceill: New file.
56861         * lib/ceill.c: Replace entire file.
56862         * m4/ceill.m4: New file.
56863         * lib/math.in.h (ceill): Replace declaration.
56864         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
56865         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
56866         * doc/functions/ceill.texi: Mention the 'ceill' module.
56867         * modules/mathl (Files): Remove lib/ceill.c.
56868         (Depends-on): Add ceill.
56869
56870 2007-10-04  Bruno Haible  <bruno@clisp.org>
56871
56872         * modules/ceilf-tests: New file.
56873         * tests/test-ceilf.c: New file.
56874
56875         * modules/ceilf: New file.
56876         * lib/ceil.c: New file.
56877         * lib/ceilf.c: New file.
56878         * m4/ceilf.m4: New file.
56879         * lib/math.in.h (ceilf): New declaration.
56880         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
56881         HAVE_DECL_CEILF.
56882         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
56883         HAVE_DECL_CEILF.
56884         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
56885
56886 2007-10-04  Bruno Haible  <bruno@clisp.org>
56887
56888         * modules/floorl-tests: New file.
56889         * tests/test-floorl.c: New file.
56890
56891         * modules/floorl: New file.
56892         * lib/floorl.c: Replace entire file.
56893         * m4/floorl.m4: New file.
56894         * lib/math.in.h (floorl): Replace declaration.
56895         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
56896         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
56897         * doc/functions/floorl.texi: Mention the 'floorl' module.
56898         * modules/mathl (Files): Remove lib/floorl.c.
56899         (Depends-on): Add floorl.
56900
56901 2007-10-04  Bruno Haible  <bruno@clisp.org>
56902
56903         * modules/floorf-tests: New file.
56904         * tests/test-floorf.c: New file.
56905
56906         * modules/floorf: New file.
56907         * lib/floor.c: New file.
56908         * lib/floorf.c: New file.
56909         * m4/floorf.m4: New file.
56910         * lib/math.in.h (floorf): New declaration.
56911         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
56912         HAVE_DECL_FLOORF.
56913         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
56914         HAVE_DECL_FLOORF.
56915         * doc/functions/floorf.texi: Mention the 'floorf' module.
56916
56917 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
56918             Bruno Haible  <bruno@clisp.org>
56919
56920         Advertise for the Git server instead of the CVS server.
56921         * doc/gnulib-intro.texi (Steady Development): Mention the Git
56922         repository instead of the CVS one.
56923         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
56924         about all VCS systems generically.
56925         * doc/gnulib.texi (Introduction): Capitalize `Git'.
56926
56927 2007-10-04  Bruno Haible  <bruno@clisp.org>
56928
56929         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
56930         means.
56931         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
56932
56933 2007-10-04  Bruno Haible  <bruno@clisp.org>
56934
56935         * modules/truncl-tests: New file.
56936         * tests/test-truncl.c: New file.
56937
56938         * modules/truncl: New file.
56939         * lib/truncl.c: New file.
56940         * m4/truncl.m4: New file.
56941         * lib/math.in.h (truncl): New declaration.
56942         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
56943         HAVE_DECL_TRUNCL.
56944         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
56945         HAVE_DECL_TRUNCL.
56946         * doc/functions/truncl.texi: Mention the 'truncl' module.
56947
56948 2007-10-04  Bruno Haible  <bruno@clisp.org>
56949
56950         * modules/truncf-tests: New file.
56951         * tests/test-truncf.c: New file.
56952
56953         * modules/truncf: New file.
56954         * lib/trunc.c: Make paramerizable through USE_* macros.
56955         * lib/truncf.c: New file.
56956         * m4/truncf.m4: New file.
56957         * lib/math.in.h (truncf): New declaration.
56958         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
56959         HAVE_DECL_TRUNCF.
56960         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
56961         HAVE_DECL_TRUNCF.
56962         * doc/functions/truncf.texi: Mention the 'truncf' module.
56963
56964 2007-10-03  Bruno Haible  <bruno@clisp.org>
56965
56966         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56967         augmentation also for tests modules.
56968         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
56969         * modules/atexit-tests (Makefile.am): Likewise.
56970         * modules/binary-io-tests (Makefile.am): Likewise.
56971         * modules/c-strcase-tests (Makefile.am): Likewise.
56972         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
56973         * modules/canonicalize-tests (Makefile.am): Likewise.
56974         * modules/closein-tests (Makefile.am): Likewise.
56975         * modules/fprintf-posix-tests (Makefile.am): Likewise.
56976         * modules/freadahead-tests (Makefile.am): Likewise.
56977         * modules/fseek-tests (Makefile.am): Likewise.
56978         * modules/fseeko-tests (Makefile.am): Likewise.
56979         * modules/ftell-tests (Makefile.am): Likewise.
56980         * modules/ftello-tests (Makefile.am): Likewise.
56981         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
56982         * modules/isnanl-tests (Makefile.am): Likewise.
56983         * modules/lseek-tests (Makefile.am): Likewise.
56984         * modules/mbscasecmp-tests (Makefile.am): Likewise.
56985         * modules/mbscasestr-tests (Makefile.am): Likewise.
56986         * modules/mbschr-tests (Makefile.am): Likewise.
56987         * modules/mbscspn-tests (Makefile.am): Likewise.
56988         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
56989         * modules/mbspbrk-tests (Makefile.am): Likewise.
56990         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
56991         * modules/mbsrchr-tests (Makefile.am): Likewise.
56992         * modules/mbsspn-tests (Makefile.am): Likewise.
56993         * modules/mbsstr-tests (Makefile.am): Likewise.
56994         * modules/printf-posix-tests (Makefile.am): Likewise.
56995         * modules/snprintf-posix-tests (Makefile.am): Likewise.
56996         * modules/sprintf-posix-tests (Makefile.am): Likewise.
56997         * modules/tsearch-tests (Makefile.am): Likewise.
56998         * modules/uniname/uniname-tests (Makefile.am): Likewise.
56999         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
57000         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
57001         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
57002         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
57003         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
57004         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
57005         * modules/vprintf-posix-tests (Makefile.am): Likewise.
57006         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
57007         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
57008         * modules/xstrtoimax-tests (Makefile.am): Likewise.
57009         * modules/xstrtol-tests (Makefile.am): Likewise.
57010         * modules/xstrtoumax-tests (Makefile.am): Likewise.
57011         * modules/yesno-tests (Makefile.am): Likewise.
57012
57013 2007-10-03  Bruno Haible  <bruno@clisp.org>
57014
57015         * modules/trunc-tests: New file.
57016         * tests/test-trunc.c: New file.
57017
57018         * modules/trunc: New file.
57019         * lib/trunc.c: New file.
57020         * m4/trunc.m4: New file.
57021         * lib/math.in.h (trunc): New declaration.
57022         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
57023         HAVE_DECL_TRUNC.
57024         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
57025         HAVE_DECL_TRUNC.
57026         * doc/functions/trunc.texi: Mention the 'trunc' module.
57027
57028 2007-10-03  Bruno Haible  <bruno@clisp.org>
57029
57030         * tests/test-fpending.c: New file, mostly copied
57031         from coreutils/lib/t-fpending.c.
57032         * modules/fpending-tests: New file.
57033
57034 2007-10-03  Bruno Haible  <bruno@clisp.org>
57035
57036         Port the stdio extensions to QNX (untested).
57037         * lib/fseterr.c (fseterr): Add support for QNX.
57038         * lib/fbufmode.c (fbufmode): Likewise.
57039         * lib/freadable.c (freadable): Likewise.
57040         * lib/fwritable.c (fwritable): Likewise.
57041         * lib/freading.c (freading): Likewise.
57042         * lib/fwriting.c (fwriting): Likewise.
57043         * lib/freadahead.c (freadahed): Likewise.
57044         * lib/fpurge.c (fpurge): Likewise.
57045         * lib/fseeko.c (rpl_fseeko): Likewise.
57046
57047 2007-10-03  Bruno Haible  <bruno@clisp.org>
57048             Jim Meyering  <jim@meyering.net>
57049             Eric Blake  <ebb9@byu.net>
57050
57051         * doc/relocatable.texi: Use @command instead of @program.
57052
57053 2007-10-02  Jim Meyering  <jim@meyering.net>
57054
57055         Perform one more "_.h" -> ".in.h" substitution.
57056         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
57057         instead of unistd_.h here, too.
57058
57059 2007-10-01  Bruno Haible  <bruno@clisp.org>
57060
57061         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
57062         Needed for the alloca-opt module.
57063
57064 2007-09-30  Bruno Haible  <bruno@clisp.org>
57065
57066         * lib/alloca.in.h: Renamed from lib/alloca_.h.
57067         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
57068         alloca_.h.
57069         * lib/argz.in.h: Renamed from lib/argz_.h.
57070         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
57071         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
57072         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
57073         byteswap_.h.
57074         * lib/dirent.in.h: Renamed from lib/dirent_.h.
57075         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
57076         dirent_.h.
57077         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
57078         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
57079         fcntl_.h.
57080         * lib/float.in.h: Renamed from lib/float_.h.
57081         * modules/float (Files, Makefile.am): Use float.in.h instead of
57082         float_.h.
57083         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
57084         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
57085         fnmatch_.h.
57086         * lib/getopt.in.h: Renamed from lib/getopt_.h.
57087         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
57088         getopt_.h.
57089         * lib/glob.in.h: Renamed from lib/glob_.h.
57090         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
57091         * lib/iconv.in.h: Renamed from lib/iconv_.h.
57092         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
57093         iconv_.h.
57094         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
57095         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
57096         inttypes_.h.
57097         * lib/locale.in.h: Renamed from lib/locale_.h.
57098         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
57099         locale_.h.
57100         * lib/math.in.h: Renamed from lib/math_.h.
57101         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
57102         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
57103         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
57104         of netinet_in_.h. Add dependency.
57105         * lib/poll.in.h: Renamed from lib/poll_.h.
57106         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
57107         * lib/search.in.h: Renamed from lib/search_.h.
57108         * modules/search (Files, Makefile.am): Use search.in.h instead of
57109         search_.h.
57110         * lib/signal.in.h: Renamed from lib/signal_.h.
57111         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
57112         _signal.h.
57113         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
57114         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
57115         stdbool_.h.
57116         * lib/stdint.in.h: Renamed from lib/stdint_.h.
57117         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
57118         stdint_.h.
57119         * lib/stdio.in.h: Renamed from lib/stdio_.h.
57120         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
57121         stdio_.h.
57122         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
57123         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
57124         stdlib_.h.
57125         * lib/string.in.h: Renamed from lib/string_.h.
57126         * modules/string (Files, Makefile.am): Use string.in.h instead of
57127         string_.h.
57128         * doc/gnulib-tool.texi (Initial import): Update.
57129         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
57130         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
57131         of sys_select_.h. Add dependency.
57132         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
57133         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
57134         of sys_socket_.h.
57135         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
57136         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
57137         sys_stat_.h.
57138         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
57139         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
57140         sys_time_.h.
57141         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
57142         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
57143         sysexits_.h.
57144         * lib/time.in.h: Renamed from lib/time_.h.
57145         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
57146         * lib/unistd.in.h: Renamed from lib/unistd_.h.
57147         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
57148         unistd_.h.
57149         * lib/wchar.in.h: Renamed from lib/wchar_.h.
57150         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
57151         wchar_.h.
57152         * lib/wctype.in.h: Renamed from lib/wctype_.h.
57153         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
57154         wctype_.h.
57155         * build-aux/bootstrap (slurp): Update.
57156         * lib/.cppi-disable: Update.
57157
57158 2007-09-30  Bruno Haible  <bruno@clisp.org>
57159
57160         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
57161         Needed on BeOS.
57162
57163 2007-09-30  Bruno Haible  <bruno@clisp.org>
57164
57165         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
57166
57167 2007-09-29  Bruno Haible  <bruno@clisp.org>
57168
57169         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
57170
57171 2007-09-29  Bruno Haible  <bruno@clisp.org>
57172
57173         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
57174         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
57175         * build-aux/install-reloc: Compile also areadlink.c.
57176         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
57177
57178 2007-09-29  Bruno Haible  <bruno@clisp.org>
57179
57180         * gnulib-tool (func_emit_initmacro_done): Indentation.
57181
57182 2007-09-29  Bruno Haible  <bruno@clisp.org>
57183
57184         * README: Add CVS checkout update instructions.
57185         Info from Bob Proulx <bob@proulx.com>.
57186
57187 2007-09-28  Eric Blake  <ebb9@byu.net>
57188
57189         Provide move-if-change.
57190         * build-aux/move-if-change: New file, based on best practice
57191         rather than any canonical upstream location.
57192
57193 2007-09-28  Jim Meyering  <jim@meyering.net>
57194
57195         Fix canonicalize loop-detection corner case.
57196         Do not attempt to stat the symlink values stored via seen_triple.
57197         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
57198         on linux-2.6.18, (but not 2.6.22).
57199         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
57200         triple_compare.  The former compares dev,ino,filename, while the latter
57201         would actually stat dirname(filename) when dev and ino were equal.
57202         * lib/hash-triple.c: Install <string.h>.
57203         (STREQ): Define.
57204         (triple_compare_ino_str): New function.
57205         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
57206
57207 2007-09-28  Eric Blake  <ebb9@byu.net>
57208
57209         Enforce that AC_REPLACE_FUNCS files exist.
57210         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
57211         override check for typos.
57212
57213         Fix test-closein on Solaris 10.
57214         * tests/test-closein.c (main): Don't assume stdin can be inherited
57215         closed on all systems.
57216         * tests/test-closein.sh: Likewise.
57217         Reported by Piotr Tarnowski.
57218
57219 2007-09-28  Jim Meyering  <jim@meyering.net>
57220
57221         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
57222
57223 2007-09-27  Jim Meyering  <jim@meyering.net>
57224
57225         canonicalize: Avoid a false-positive cycle failure.
57226         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
57227         Sort.  Remove cycle-check.
57228         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
57229         not cycle-check.h.
57230         (seen_triple): New function.
57231         (canonicalize_filename_mode): Use it instead of cycle-check.
57232         * tests/test-canonicalize.c: Add a test for this bug.
57233         * tests/test-canonicalize.sh: Set up and run the test.
57234
57235         New module, file-set, from coreutils.
57236         * modules/file-set: Define it.
57237         * lib/file-set.c, lib/file-set.h: Implement.
57238
57239         New module, hash-triple, from coreutils.
57240         * modules/hash-triple: Define it.
57241         * lib/hash-triple.c, lib/hash-triple.h: Implement.
57242
57243 2007-09-25  Eric Blake  <ebb9@byu.net>
57244
57245         Fix strerror on Interix.
57246         * lib/string_.h (strerror): Declare replacement.
57247         * doc/functions/strerror.texi (strerror): Document the Interix
57248         shortcoming.
57249         * modules/string (Makefile.am): Support new hooks.
57250         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
57251         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
57252         gl_FUNC_STRERROR_SEPARATE.
57253         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
57254         * lib/strerror.c (rpl_strerror): Provide replacement.
57255         * modules/strerror (Depends-on): Add string.
57256         (configure.ac): Detect use of module.
57257         * tests/test-strerror.c: New file.
57258         * modules/strerror-tests: New test module.
57259         * modules/argp (Depends-on): Add strerror.
57260         * modules/error (Depends-on): Likewise.
57261         Reported by Martin Koeppe.
57262
57263 2007-09-24  Bruno Haible  <bruno@clisp.org>
57264
57265         * README: Update git instructions.
57266
57267 2007-09-24  Eric Blake  <ebb9@byu.net>
57268
57269         Revert fpending breakage from 2007-09-08.
57270         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
57271         __fpending.c.
57272
57273 2007-09-24  Jim Meyering  <jim@meyering.net>
57274
57275         filenamecat.c: Add a test.
57276         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
57277         showing how the function works when DIR is the empty string.
57278
57279 2007-09-21  Simon Josefsson  <simon@josefsson.org>
57280
57281         * tests/test-canonicalize.sh: Turn on executable bit.
57282
57283 2007-09-19  Eric Blake  <ebb9@byu.net>
57284
57285         * README: Update CVS instructions.
57286
57287 2007-09-18  Bruno Haible  <bruno@clisp.org>
57288
57289         * modules/areadlink: New file.
57290         * lib/areadlink.h (areadlink): New declaration.
57291         * lib/areadlink.c: New file, based on lib/xreadlink.c.
57292
57293 2007-09-17  Jim Meyering  <jim@meyering.net>
57294
57295         * lib/savewd.c (ESTALE) [!defined]: Define.
57296         Reported to be required on Interix by Martin Koeppe.
57297
57298 2007-09-17  Bruno Haible  <bruno@clisp.org>
57299
57300         * gnulib-tool (func_version): Use $version.
57301
57302 2007-09-16  Bruno Haible  <bruno@clisp.org>
57303
57304         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
57305         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
57306         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
57307         Reported by Greg Schafer <gschafer@zip.com.au>.
57308
57309 2007-09-15  Bruno Haible  <bruno@clisp.org>
57310
57311         * gnulib-tool (sed): Try a little harder to make bash understand the
57312         alias.
57313         Reported by Bruce Korb <bruce.korb@gmail.com>.
57314
57315 2007-09-13  Eric Blake  <ebb9@byu.net>
57316
57317         * ChangeLog: Remove conflict markers.
57318
57319 2007-09-13  Simon Josefsson  <simon@josefsson.org>
57320
57321         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
57322         Reported by Bruno Haible <bruno@clisp.org>.
57323
57324 2007-09-12  Bruno Haible  <bruno@clisp.org>
57325
57326         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
57327         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
57328         is not defined.
57329
57330 2007-09-12  Eric Blake  <ebb9@byu.net>
57331
57332         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
57333         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
57334         Autoconf definition.
57335         * modules/euidaccess (Depends-on): Add extensions, for
57336         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
57337         * modules/fnmatch (Depends-on): Likewise.
57338         * modules/getaddrinfo (Depends-on): Likewise.
57339         * modules/getdelim (Depends-on): Likewise.
57340         * modules/getline (Depends-on): Likewise.
57341         * modules/getsubopt (Depends-on): Likewise.
57342         * modules/gettext (Depends-on): Likewise.
57343         * modules/group-member (Depends-on): Likewise.
57344         * modules/mbchar (Depends-on): Likewise.
57345         * modules/memmem (Depends-on): Likewise.
57346         * modules/mempcpy (Depends-on): Likewise.
57347         * modules/memrchr (Depends-on): Likewise.
57348         * modules/pagealign_alloc (Depends-on): Likewise.
57349         * modules/readutmp (Depends-on): Likewise.
57350         * modules/stpcpy (Depends-on): Likewise.
57351         * modules/stpncpy (Depends-on): Likewise.
57352         * modules/strchrnul (Depends-on): Likewise.
57353         * modules/strndup (Depends-on): Likewise.
57354         * modules/strsep (Depends-on): Likewise.
57355         * modules/strverscmp (Depends-on): Likewise.
57356         * modules/vasprintf (Depends-on): Likewise.
57357         * modules/wcwidth (Depends-on): Likewise.
57358         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
57359         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
57360         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
57361         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
57362         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
57363         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57364         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
57365         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
57366         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
57367         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
57368         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57369         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
57370         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
57371         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
57372         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
57373         * m4/readutmp.m4 (gl_READUTMP): Likewise.
57374         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
57375         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
57376         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
57377         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
57378         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57379         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
57380         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
57381         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
57382         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
57383         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
57384         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
57385         so that lock.m4 can be used in gettext without extensions module.
57386
57387 2007-09-11  Bruno Haible  <bruno@clisp.org>
57388
57389         * m4/isc-posix.m4: Remove file.
57390         Suggested by Eric Blake.
57391
57392 2007-09-11  Eric Blake  <ebb9@byu.net>
57393
57394         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
57395
57396 2007-09-10  Bruno Haible  <bruno@clisp.org>
57397
57398         * posix-modules: Fix typo in error message.
57399         Reported by Matt <mkraai@beckman.com>.
57400
57401 2007-09-09  Bruno Haible  <bruno@clisp.org>
57402
57403         * doc/functions/getdelim.texi: Update list of platforms lacking the
57404         function.
57405         * doc/functions/getline.texi: Likewise.
57406
57407 2007-09-09  Jim Meyering  <jim@meyering.net>
57408
57409         * lib/hash.c (hash_initialize): Detect calloc failure.
57410         Reported by Bruno Haible.
57411
57412 2007-09-09  Bruno Haible  <bruno@clisp.org>
57413
57414         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
57415         malloc or realloc fails.
57416
57417 2007-09-09  Bruno Haible  <bruno@clisp.org>
57418
57419         * modules/getcwd (Depends-on): Add malloc-posix.
57420         * modules/glob (Depends-on): Likewise.
57421         * modules/putenv (Depends-on): Likewise.
57422         * modules/strdup (Depends-on): Likewise.
57423         * modules/getdelim (Depends-on): Add realloc-posix.
57424         * modules/read-file (Depends-on): Likewise.
57425
57426 2007-09-09  Bruno Haible  <bruno@clisp.org>
57427
57428         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
57429         (gl_FUNC_MALLOC_POSIX): Require it.
57430         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
57431         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
57432         * modules/realloc (Files): Add m4/malloc.m4.
57433         * modules/calloc (Files): Likewise.
57434
57435 2007-09-09  Bruno Haible  <bruno@clisp.org>
57436
57437         * modules/malloc-posix: New file.
57438         * modules/malloc (Depends-on): Add malloc-posix.
57439         * lib/malloc.c: Include errno.h.
57440         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
57441         and a POSIX-compatible malloc into a single function. Set ENOMEM
57442         when returning NULL.
57443         * m4/malloc.m4: New file.
57444         * doc/functions/malloc.texi: Mention the malloc-posix module.
57445         * lib/stdlib_.h (malloc): New declaration.
57446         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57447         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
57448         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
57449         and HAVE_MALLOC_POSIX.
57450
57451 2007-09-09  Bruno Haible  <bruno@clisp.org>
57452
57453         * modules/realloc-posix: New file.
57454         * modules/realloc (Depends-on): Add realloc-posix.
57455         * lib/realloc.c: Include errno.h.
57456         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
57457         and a POSIX-compatible realloc into a single function. Set ENOMEM
57458         when returning NULL.
57459         * m4/realloc.m4: New file.
57460         * doc/functions/realloc.texi: Mention the realloc-posix module.
57461         * lib/stdlib_.h (realloc): New declaration.
57462         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57463         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
57464         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
57465         and HAVE_REALLOC_POSIX.
57466
57467 2007-09-09  Bruno Haible  <bruno@clisp.org>
57468
57469         * modules/calloc-posix: New file.
57470         * modules/calloc (Depends-on): Add calloc-posix.
57471         * lib/calloc.c: Include errno.h.
57472         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
57473         and a POSIX-compatible calloc into a single function. Set ENOMEM
57474         when returning NULL.
57475         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
57476         * doc/functions/calloc.texi: Mention the calloc-posix module.
57477         * lib/stdlib_.h (calloc): New declaration.
57478         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
57479         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
57480         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
57481         and HAVE_CALLOC_POSIX.
57482
57483 2007-09-09  Bruno Haible  <bruno@clisp.org>
57484
57485         Allow for modules to show an arbitrary notice.
57486         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
57487         * gnulib-tool: New option --extract-notice.
57488         (func_usage): Document it.
57489         (sed_extract_prog): Update.
57490         (func_get_notice): New function.
57491         (func_modules_notice): New function.
57492         (func_import, func_create_testdir): Invoke it.
57493         Suggested by Jim Meyering.
57494
57495 2007-09-09  Bruno Haible  <bruno@clisp.org>
57496
57497         * gnulib-tool: New options --verbose, --quiet.
57498         (func_usage): Document them.
57499         (verbose): New variable.
57500         (func_execute_command): New function.
57501         (func_import): Don't show the module list and the file list if
57502         $verbose < 0.
57503         (func_create_testdir): Likewise. Use func_execute_command.
57504         (func_create_megatestdir): Use func_execute_command.
57505
57506 2007-09-08  Bruno Haible  <bruno@clisp.org>
57507
57508         * gnulib-tool (func_import): Prefer rsync over wget when available,
57509         for fetching the PO files.
57510
57511 2007-09-08  Bruno Haible  <bruno@clisp.org>
57512
57513         * posix-modules: New file. Portions copied from gnulib-tool.
57514         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
57515
57516 2007-09-08  Jim Meyering  <jim@meyering.net>
57517
57518         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
57519         * lib/fpending.h: Rename from __fpending.h.
57520         * lib/fpending.c: Rename from __fpending.c.
57521         Include "fpending.h", not "__fpending.h".
57522         * lib/__fpending.h, lib/__fpending.c: Remove files.
57523         * modules/fpending (Files): Reflect new file names.
57524         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
57525
57526 2007-09-08  Bruno Haible  <bruno@clisp.org>
57527
57528         * m4/inttypes-h.m4: Remove stub file.
57529
57530 2007-09-07  Simon Josefsson  <simon@josefsson.org>
57531
57532         * doc/headers/stdint.texi: Discuss #include_next issue.
57533
57534 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57535
57536         * build-aux/bootstrap: Remove obsolete comment about wget --help.
57537
57538 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57539
57540         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
57541         in variable name.
57542
57543 2007-09-03  Jim Meyering  <jim@meyering.net>
57544
57545         New module: git-version-gen.
57546         * modules/git-version-gen: New file.
57547
57548         Import changes from coreutils for bootstrap script.
57549
57550         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
57551
57552         bootstrap: uses rsync to download the .po files
57553         * build-aux/bootstrap (po_download_command_format): New global.
57554         (download_po_files): Use rsync.
57555         (update_po_files): Don't remove .po files after download,
57556         so future rsync runs can take advantage of the copies.
57557
57558         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
57559
57560         Solve the unnecessary-.po-file-regeneration problem once and for all.
57561         * build-aux/bootstrap (download_po_files): New function, renamed from
57562         get_translations.  Now, downloads, but doesn't update LINGUAS.
57563         (update_po_files): New function.
57564
57565         bootstrap: Ignore more.
57566         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
57567         uniwidth to e.g., lib/.gitignore.
57568         (slurp): Handle the sys_stat_.h -> sys mapping, too.
57569
57570         * build-aux/bootstrap: New setting: vc_ignore.
57571         (insert_sorted_if_absent): Create $file if absent.
57572         Adapt to new, possibly empty, list: $vc_ignore.
57573
57574         bootstrap: generate more ignorable names
57575         * build-aux/bootstrap (slurp): When generating ignorable names,
57576         also map .sin to .sed, .gperf to .c, and .y to .c.
57577
57578 2007-09-03  Jim Meyering  <jim@meyering.net>
57579
57580         * build-aux/git-version-gen: New file, from coreutils.  For details, see
57581         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
57582
57583 2007-09-02  Bruno Haible  <bruno@clisp.org>
57584
57585         Fix mis-recognition of 'mcs' on QNX 6.
57586         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
57587         output contains the string "Mono".
57588         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
57589         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
57590
57591 2007-09-01  Bruno Haible  <bruno@clisp.org>
57592
57593         Fix collision between uniwidth/* and linebreak modules.
57594         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
57595         u32_width): Remove declarations.
57596         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
57597         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
57598         streq3, streq2, streq1, streq0): Remove functions.
57599         (STREQ): Remove macro.
57600         (is_cjk_encoding): Remove function.
57601         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
57602         (uc_width, u8_width, u16_width, u32_width): Remove functions.
57603         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
57604         * NEWS: Document the change.
57605
57606 2007-09-01  Bruno Haible  <bruno@clisp.org>
57607
57608         * lib/streq.h: Add double-inclusion guard.
57609
57610 2007-09-01  Karl Berry  <karl@gnu.org>
57611
57612         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
57613
57614 2007-08-28  Jim Meyering  <jim@meyering.net>
57615
57616         Rename mreadlink_with_size to areadlink_with_size.
57617         * NEWS: Document the change.
57618         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
57619         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
57620         * lib/mreadlink.h: Rename this to...
57621         * lib/areadlink.h: ...this.
57622         * modules/mreadlink-with-size: Rename this to...
57623         * modules/areadlink-with-size: ...this.
57624         * lib/canonicalize.c: Reflect the renaming.
57625         * modules/canonicalize: Likewise.
57626
57627 2007-08-26  Bruno Haible  <bruno@clisp.org>
57628
57629         * gnulib-tool (func_import): When deciding which files to remove,
57630         consider also dangling symbolic links.
57631         Reported by Eric Blake.
57632
57633 2007-08-26  Bruno Haible  <bruno@clisp.org>
57634
57635         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
57636
57637 2007-08-23  Simon Josefsson  <simon@josefsson.org>
57638
57639         * lib/readline.c: Don't include getline.h, the prototype is now
57640         found in stdio.h.
57641
57642 2007-08-23  Jim Meyering  <jim@meyering.net>
57643
57644         Getdelim touchup.
57645         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
57646         around the funlockfile call, since funlockfile never sets errno.
57647         Don't set errno upon failed realloc.
57648
57649 2007-08-22  Eric Blake  <ebb9@byu.net>
57650
57651         Getline touchups.
57652         * lib/getdelim.c (getdelim): Revert regression that required *n to
57653         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
57654         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
57655         getdelim, rather than whether implementation is missing.
57656         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
57657         * lib/stdio_.h (getline): Also declare if replacement is
57658         required.
57659         * doc/functions/getdelim.texi: New file.
57660         * doc/functions/getline.texi: Likewise.
57661         * doc/gnulib.texi (Function Substitutes): Add new files.
57662         Reported by Bruno Haible.
57663
57664 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
57665
57666         * users.txt: Add Guile.
57667
57668 2007-08-22  Eric Blake  <ebb9@byu.net>
57669
57670         * tests/test-getdelim.c (main): Use remove, not unlink.
57671         * tests/test-getline.c (main): Likewise.
57672
57673         Move getline and getdelim into stdio.h, per POSIX 200x.
57674         * modules/getline (Files): Remove getline.h.
57675         (Depends-on): Add stdio.
57676         (configure.ac): Add module indicator.
57677         * modules/getdelim (Files): Remove getdelim.h.
57678         (Depends-on): Add stdio.
57679         (configure.ac): Add module indicator.
57680         * modules/stdio (Makefile.am): Work with new indicators.
57681         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
57682         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
57683         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
57684         * lib/getdelim.h: Delete.
57685         * lib/getline.h: Delete.
57686         * lib/stdio_.h (getdelim, getline): Declare.
57687         * modules/getdelim-tests: New module.
57688         * modules/getline-tests: Likewise.
57689         * tests/test-getdelim.c: New file.
57690         * tests/test-getline.c: Likewise.
57691         * NEWS: Document the change.
57692         * lib/getline.c: Update choice of header.
57693         * lib/csharpcomp.c: Likewise.
57694         * lib/getpass.c: Likewise.
57695         * lib/javacomp.c: Likewise.
57696         * lib/javaversion.c: Likewise.
57697         * lib/yesno.c: Likewise.
57698         * lib/getdelim.c: Likewise.
57699         (getdelim): Set errno on failure, and avoid memory leak.
57700
57701 2007-08-19  Bruno Haible  <bruno@clisp.org>
57702
57703         * modules/closein (Depends-on): Add freadahead.
57704         * lib/closein.c: Include freadahead.h.
57705         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
57706         is zero.
57707
57708 2007-08-19  Bruno Haible  <bruno@clisp.org>
57709
57710         * modules/freadahead-tests: New file.
57711         * tests/test-freadahead.sh: New file.
57712         * tests/test-freadahead.c: New file.
57713
57714         * modules/freadahead: New file.
57715         * lib/freadahead.h: New file.
57716         * lib/freadahead.c: New file.
57717         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
57718         fbufmode, fpurge, freadable, fwritable.
57719
57720 2007-08-19  Eric Blake  <ebb9@byu.net>
57721
57722         Test yesno in combination with closein.
57723         * lib/yesno.c (yesno): Document use of stdin.
57724         * modules/yesno-tests (Files): New module.
57725         * tests/test-yesno.c (main): New file.
57726         * tests/test-yesno.sh: Likewise.
57727
57728 2007-08-19  Bruno Haible  <bruno@clisp.org>
57729
57730         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
57731         * lib/fseeko.c (rpl_fseeko): Likewise.
57732         * lib/fseterr.c (fseterr): Likewise.
57733
57734 2007-08-19  Bruno Haible  <bruno@clisp.org>
57735
57736         * tests/test-lseek.c (main): Disable a test for BeOS.
57737         * doc/functions/lseek.texi: Document the BeOS bug.
57738
57739 2007-08-19  Bruno Haible  <bruno@clisp.org>
57740             Eric Blake  <ebb9@byu.net>
57741
57742         * lib/lseek.c: Include <sys/stat.h>.
57743         (rpl_lseek): Add workaround code also for Unix platforms.
57744         Needed for BeOS.
57745         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
57746         * doc/functions/lseek.texi: Document BeOS definiency.
57747
57748 2007-08-18  Bruno Haible  <bruno@clisp.org>
57749
57750         * modules/fstrcmp-tests: New file.
57751         * tests/test-fstrcmp.c: New file.
57752
57753 2007-08-18  Bruno Haible  <bruno@clisp.org>
57754
57755         * modules/fstrcmp: New file, from GNU gettext with modifications.
57756         * lib/fstrcmp.h: New file, from GNU gettext.
57757         * lib/fstrcmp.c: New file, from GNU gettext.
57758         * MODULES.html.sh (String handling): Add fstrcmp.
57759
57760 2007-08-18  Bruno Haible  <bruno@clisp.org>
57761
57762         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
57763         'bool'.
57764         (diag, compareseq): Remove const from the ctxt argument.
57765         (USE_HEURISTIC): Undefine at the end.
57766
57767 2007-08-18  Jim Meyering  <jim@meyering.net>
57768
57769         New file: lib/idcache.h
57770         * NEWS: Mention the addition.
57771         * modules/idcache (Files): Add lib/idcache.h
57772         * lib/idcache.c: Include "idcache.h".
57773         Don't include <sys/types.h>.
57774         Add a FIXME comment.
57775         Move file-scoped "static" declarations to the top.
57776         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
57777
57778 2007-08-17  Bruno Haible  <bruno@clisp.org>
57779         and Paul Eggert  <eggert@cs.ucla.edu>
57780
57781         * MODULES.html.sh: Add diffseq.
57782         * modules/diffseq: New file.
57783         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
57784         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
57785
57786 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57787
57788         Import changes from coreutils for bootstrap script.
57789
57790         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
57791
57792         * build-aux/bootstrap (slurp): Work even in environments where
57793         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
57794         current code does not slurp files whose names start with ".", and
57795         this looks like it might be a troublesome area.
57796
57797         2007-07-11  Jim Meyering  <jim@meyering.net>
57798
57799         If there's a GPL vN copyright comment, require that N == 3.
57800
57801         2007-07-08  Jim Meyering  <jim@meyering.net>
57802
57803         Run the coreutils-specific code only if tests/Makefile.am.in exists.
57804         * build-aux/bootstrap (mam_template): Move definition out of loop.
57805
57806         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
57807
57808         * build-aux/bootstrap (symlink_to_dir): Rename function from
57809         symlink_to_gnulib.  Add a directory parameter.  Update all
57810         callers.
57811         (cp_mark_as_generated): Also check for -- and link to -- files in
57812         gl/.
57813
57814         2007-07-08  Jim Meyering  <jim@meyering.net>
57815
57816         Adapt to deeper hierarchy in gnulib.
57817         * build-aux/bootstrap (symlink_to_dir): If the destination
57818         directory doesn't exist, create it. This is required at least for
57819         "lib/uniwidth/cjk.h".
57820
57821         2007-05-15  Jim Meyering  <jim@meyering.net>
57822
57823         * build-aux/bootstrap: Now that generated Makefile.am files
57824         are no longer under version control, they must be created at
57825         bootstrap time.
57826
57827 2007-08-14  Ben Pfaff  <blp@gnu.org>
57828
57829         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
57830
57831 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
57832
57833         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
57834         given the changes below.
57835         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
57836         even on hosts that have padding bits beyond the supported 64.
57837
57838 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
57839
57840         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
57841         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
57842         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
57843         depends on it.
57844         (xstrtol_error): Remove.
57845         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
57846         but with a different signature.
57847         (ATTRIBUTE_NORETURN, __attribute__): New macros.
57848         * lib/xstrtol-error.c: Include exitfail.h.
57849         (xstrtol_fatal): New function, with a different signature from the
57850         old xstrtol_error, so that the caller need not worry about passing
57851         in an exit status, or about storage management of the option argument.
57852         (xstrtol_error): Now a static function.  Redo signature to
57853         implement xstrtol_fatal.  Output the correct number of hyphens in
57854         front of the option so that the caller need not worry about
57855         storage management.
57856         (N_): New macro.
57857         (_): Remove; not used now.
57858         * modules/xstrtol: Depend on getopt.
57859         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
57860         of old STRTOL_FATAL_ERROR macro.
57861         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
57862         of test program.
57863         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
57864         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
57865
57866 2007-08-08  Eric Blake  <ebb9@byu.net>
57867
57868         * lib/xstrtol-error.c: Add missing include.
57869
57870         Move xstrtol messages into gnulib domain, when --pobase is used.
57871         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
57872         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
57873         * modules/xstrtol (Files): Distribute new file.
57874         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
57875         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
57876         * tests/test-xstrtol.c: ...into new file.
57877         * tests/test-xstrtoul.c: Also test xstrtoul.
57878         * tests/test-xstrtoimax.c: Also test xstrtoimax.
57879         * tests/test-xstrtoumax.c: Also test xstrtoumax.
57880         * tests/test-xstrtol.sh: Drive the tests.
57881         * tests/test-xstrtoimax.sh: Likewise.
57882         * tests/test-xstrtoumax.sh: Likewise.
57883         * modules/xstrtol-tests: New module.
57884         * modules/xstrtoimax-tests: Likewise.
57885         * modules/xstrtoumax-tests: Likewise.
57886
57887 2007-08-08  Jim Meyering  <jim@meyering.net>
57888
57889         New function: mfile_name_concat.
57890         * lib/filenamecat.c (mfile_name_concat): New function, just like
57891         file_name_concat, but return NULL upon failure rather than exiting
57892         with a diagnostic.
57893         * lib/filenamecat.h: Declare it.
57894
57895 2007-08-07  Bruno Haible  <bruno@clisp.org>
57896
57897         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
57898         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
57899         warning from gcc.
57900         Reported by Eric Blake.
57901
57902 2007-08-07  Simon Josefsson  <simon@josefsson.org>
57903
57904         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
57905         * modules/crypto/arcfour (License): Likewise.
57906         * modules/crypto/des-tests (License): Likewise.
57907         * modules/crypto/gc-arctwo-tests (License): Likewise.
57908         * modules/crypto/gc-des-tests (License): Likewise.
57909         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
57910         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
57911         * modules/crypto/gc-md2-tests (License): Likewise.
57912         * modules/crypto/gc-md4-tests (License): Likewise.
57913         * modules/crypto/gc-md5-tests (License): Likewise.
57914         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
57915         * modules/crypto/gc-rijndael-tests (License): Likewise.
57916         * modules/crypto/gc-sha1-tests (License): Likewise.
57917         * modules/crypto/gc-tests (License): Likewise.
57918         * modules/crypto/hmac-md5 (License): Likewise.
57919         * modules/crypto/hmac-sha1 (License): Likewise.
57920         * modules/crypto/md2-tests (License): Likewise.
57921         * modules/crypto/md4-tests (License): Likewise.
57922         * modules/crypto/md5 (License): Likewise.
57923         * modules/crypto/rijndael (License): Likewise.
57924         * modules/crypto/sha1 (License): Likewise.
57925         * modules/memxor (License): Likewise.
57926
57927 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
57928         and Bruno Haible  <bruno@clisp.org>
57929
57930         * NEWS: Describe interface changes to human, xstrtol.
57931         * lib/human.h: Include <xstrtol.h>.
57932         (human_options): Return enum strtol_error, not int.  Remove
57933         bool arg; take int * instead.
57934         * lib/human.c: Don't include "gettext.h".
57935         (_): Remove; no longer used.
57936         Don't include <xstrtol.h>, since human.h does it.
57937         (human_options): Adjust to abovementioned interface changes.
57938         Do not report error to stderr; that's now the caller's
57939         responsibility.
57940         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
57941         interface change.
57942         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
57943         Str, Argument_type_string.  All uses changed.  Put " argument"
57944         in diagnostics to make them clearer.  Change wording of suffix
57945         message for clarity.
57946         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
57947         Argument_type_string.
57948         (STRTOL_FATAL_WARN): Remove; no longer used.
57949         * modules/human (Depends-on): Remove gettext-h.
57950
57951 2007-08-06  Simon Josefsson  <simon@josefsson.org>
57952
57953         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
57954
57955 2007-07-31  Bruno Haible  <bruno@clisp.org>
57956
57957         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
57958         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
57959         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
57960
57961 2007-07-31  Bruno Haible  <bruno@clisp.org>
57962
57963         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
57964         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
57965
57966 2007-07-30  Bruno Haible  <bruno@clisp.org>
57967
57968         * modules/base64 (License): Use the synonymous term "LGPLv2+".
57969         * modules/c-ctype (License): Likewise.
57970         * modules/c-strcase (License): Likewise.
57971         * modules/check-version (License): Likewise.
57972         * modules/iconv (License): Likewise.
57973         * modules/iconv_open (License): Likewise.
57974         * modules/read-file (License): Likewise.
57975         * modules/striconv (License): Likewise.
57976         * modules/strverscmp (License): Likewise.
57977         * modules/vasprintf (License): Likewise.
57978         * modules/crypto/des (License): Likewise.
57979         * modules/crypto/gc (License): Likewise.
57980         * modules/crypto/gc-arcfour (License): Likewise.
57981         * modules/crypto/gc-arctwo (License): Likewise.
57982         * modules/crypto/gc-des (License): Likewise.
57983         * modules/crypto/gc-hmac-md5 (License): Likewise.
57984         * modules/crypto/gc-hmac-sha1 (License): Likewise.
57985         * modules/crypto/gc-md2 (License): Likewise.
57986         * modules/crypto/gc-md4 (License): Likewise.
57987         * modules/crypto/gc-md5 (License): Likewise.
57988         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
57989         * modules/crypto/gc-random (License): Likewise.
57990         * modules/crypto/gc-rijndael (License): Likewise.
57991         * modules/crypto/gc-sha1 (License): Likewise.
57992         * modules/crypto/md2 (License): Likewise.
57993         * modules/crypto/md4 (License): Likewise.
57994
57995 2007-07-30  Jim Meyering  <jim@meyering.net>
57996
57997         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
57998         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
57999         it has valid stat data.  This bug would cause du not to count the
58000         sizes of inaccessible directories.
58001         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
58002         in <http://bugzilla.redhat.com/250077>.
58003
58004 2007-07-25  Peter O'Gorman  <peter@pogma.com>
58005             Bruno Haible  <bruno@clisp.org>
58006
58007         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
58008         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
58009         #include_next, gives a diagnostic about it, but reports no error in
58010         the exit code.
58011         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
58012
58013 2007-07-24  Ben Pfaff  <blp@gnu.org>
58014
58015         Improve name: "count-one-bits" is better than "popcount".
58016         * MODULES.html.sh: Update name.
58017         * lib/popcount.h: Renamed lib/count-one-bits.h.
58018         (popcount): Renamed count_one_bits.
58019         (popcountl): Renamed count_one_bits_l.
58020         (popcountll): Renamed count_one_bits_ll.
58021         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
58022         * modules/popcount: Renamed module/count-one-bits.
58023         * modules/popcount-tests: Renamed module/count-one-bits-tests.
58024         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
58025
58026 2007-07-23  Ben Pfaff  <blp@gnu.org>
58027
58028         * lib/popcount.h (popcount32): Reduce size of constants, to allow
58029         better code generation, and add U to large constants to avoid
58030         warnings, in non-GCC case.
58031         Suggested by Bruno Haible.
58032
58033 2007-07-23  Ben Pfaff  <blp@gnu.org>
58034
58035         * lib/popcount.h: Use verify_true instead of if...abort.
58036         * modules/popcount: Depend on verify module.
58037         Suggested by Jim Meyering.
58038
58039 2007-07-23  Bruno Haible  <bruno@clisp.org>
58040
58041         * gnulib-tool (func_import): Create a .cvsignore file also when the
58042         directory is not yet in CVS but the toplevel directory is. When
58043         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
58044         Reported by Karl Berry.
58045
58046 2007-07-22  Ben Pfaff  <blp@gnu.org>
58047
58048         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
58049         case.
58050         Suggested by Eric Blake.
58051
58052 2007-07-22  Ben Pfaff  <blp@gnu.org>
58053
58054         New module: popcount.
58055         * MODULES.html.sh: Add popcount.
58056         * modules/popcount: New file.
58057         * modules/popcount-tests: New file.
58058         * tests/test-popcount.c: New file.
58059         * lib/popcount.h: New file.
58060         * m4/popcount.m4: New file.
58061
58062 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58063
58064         * build-aux/announce-gen: Update to GPLv3.
58065
58066         * build-aux/config.guess: Update from config.
58067
58068 2007-07-21  Bruno Haible  <bruno@clisp.org>
58069
58070         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
58071         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
58072
58073 2007-07-20  Jim Meyering  <jim@meyering.net>
58074
58075         * check-module: Diagnose a self-dependency.
58076
58077 2007-07-19  Bruno Haible  <bruno@clisp.org>
58078
58079         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
58080         empty.
58081         Reported by Eric Blake.
58082
58083 2007-07-18  Bruno Haible  <bruno@clisp.org>
58084
58085         * gnulib-tool: New options --po-base, --po-domain.
58086         (func_usage): Document them.
58087         (pobase, po_domain): New variables.
58088         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
58089         DEFAULT_TEXT_DOMAIN.
58090         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
58091         (func_import): Consider pobase and po_domain. Create a po/ directory.
58092         (func_create_testdir): Set pobase and po_domain to empty.
58093         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
58094         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
58095
58096 2007-07-18  Bruno Haible  <bruno@clisp.org>
58097
58098         * gnulib-tool (func_get_automake_snippet): Synthesize also an
58099         EXTRA_DIST augmentation for files in build-aux/.
58100
58101 2007-07-16  Bruno Haible  <bruno@clisp.org>
58102
58103         * modules/lseek (License): Use the synonymous term "LGPLv2+".
58104         * modules/getdelim (License): Likewise.
58105
58106 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58107
58108         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
58109         * modules/d-type (License): Likewise.
58110         * modules/extensions (License): Likewise.
58111         * modules/fnmatch (License): Likewise.
58112         * modules/fseeko (License): Likewise.
58113         * modules/getaddrinfo (License): Likewise.
58114         * modules/getline (License): Likewise.
58115         * modules/getlogin_r (License): Likewise.
58116         * modules/getpass (License): Likewise.
58117         * modules/gettimeofday (License): Likewise.
58118         * modules/glob (License): Likewise.
58119         * modules/inet_ntop (License): Likewise.
58120         * modules/malloc (License): Likewise.
58121         * modules/malloca (License): Likewise.
58122         * modules/memmem (License): Likewise.
58123         * modules/mempcpy (License): Likewise.
58124         * modules/memset (License): Likewise.
58125         * modules/minmax (License): Likewise.
58126         * modules/mktime (License): Likewise.
58127         * modules/netinet_in (License): Likewise.
58128         * modules/pathmax (License): Likewise.
58129         * modules/poll (License): Likewise.
58130         * modules/regex (License): Likewise.
58131         * modules/snprintf (License): Likewise.
58132         * modules/stdbool (License): Likewise.
58133         * modules/stdint (License): Likewise.
58134         * modules/stdio (License): Likewise.
58135         * modules/strcase (License): Likewise.
58136         * modules/strcasestr (License): Likewise.
58137         * modules/strdup (License): Likewise.
58138         * modules/string (License): Likewise.
58139         * modules/strndup (License): Likewise.
58140         * modules/strnlen (License): Likewise.
58141         * modules/strpbrk (License): Likewise.
58142         * modules/strptime (License): Likewise.
58143         * modules/strsep (License): Likewise.
58144         * modules/sys_select (License): Likewise.
58145         * modules/sys_socket (License): Likewise.
58146         * modules/sys_stat (License): Likewise.
58147         * modules/sys_time (License): Likewise.
58148         * modules/time (License): Likewise.
58149         * modules/time_r (License): Likewise.
58150         * modules/timegm (License): Likewise.
58151         * modules/unistd (License): Likewise.
58152         * modules/vsnprintf (License): Likewise.
58153         * modules/wctype (License): Likewise.
58154
58155 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58156
58157         * modules/argz (License): LGPLv2+.
58158
58159 2007-07-15  Karl Berry  <karl@gnu.org>
58160
58161         * doc/gnulib.texi: revise node structure per new fdl.texi.
58162
58163 2007-07-14  Bruno Haible  <bruno@clisp.org>
58164
58165         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
58166         the output file.
58167         * lib/uniname/uninames.h: Regenerated.
58168
58169 2007-07-14  Karl Berry  <karl@gnu.org>
58170
58171         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
58172         omitting sectioning and index commands.
58173
58174 2007-07-13  Bruno Haible  <bruno@clisp.org>
58175
58176         New gnulib-tool option --more-symlinks.
58177         * gnulib-tool (func_usage): Document --more-symlinks.
58178         (do_copyrights): New variable.
58179         Recognize option --more-symlinks.
58180         (func_import): Don't add a copyright notice transform to
58181         sed_transform_lib_file if do_copyrights is empty.
58182
58183 2007-07-13  Bruno Haible  <bruno@clisp.org>
58184
58185         * lib/vasnprintf.c (decimal_point_char): Define also if
58186         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
58187         && !NEED_PRINTF_DIRECTIVE_A.
58188         Reported by Clemens Koller <clemens.koller@anagramm.de> via
58189         Gary V. Vaughan <gary@gnu.org>.
58190
58191 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
58192
58193         * lib/inttypes_.h: Undo previous change, since it was fixed
58194         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
58195
58196 2007-07-13  Bruno Haible  <bruno@clisp.org>
58197
58198         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
58199         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
58200
58201 2007-07-13  Jim Meyering  <jim@meyering.net>
58202
58203         df: Don't fail for Tru64's "file-on-file mount".
58204         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
58205         so we fall through and use statfs instead.  Details here:
58206         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
58207         Reported by Albert Chin.
58208
58209 2007-07-13  Bruno Haible  <bruno@clisp.org>
58210
58211         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
58212         * modules/configmake (License): Likewise.
58213         * modules/gettext (License): Likewise.
58214         * modules/gettext-h (License): Likewise.
58215         * modules/include_next (License): Likewise.
58216         * modules/link-warning (License): Likewise.
58217         * modules/localcharset (License): Likewise.
58218         * modules/localename (License): Likewise.
58219         * modules/lock (License): Likewise.
58220         * modules/relocatable-lib-lgpl (License): Likewise.
58221         * modules/size_max (License): Likewise.
58222         * modules/vasnprintf (License): Likewise.
58223         * modules/wchar (License): Likewise.
58224         * modules/xsize (License): Likewise.
58225
58226 2007-07-13  Bruno Haible  <bruno@clisp.org>
58227
58228         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
58229         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
58230
58231 2007-07-12  Bruno Haible  <bruno@clisp.org>
58232
58233         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
58234         in the modules files.
58235
58236 2007-07-11  Karl Berry  <karl@gnu.org>
58237
58238         * MODULES.html.sh (func_module): use
58239          sed -e '\|^'"${includefile}"'$|d'
58240          instead of /.../d, to avoid errors on $includefile's containing /.
58241
58242 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
58243
58244         * gnulib-tool (func_import): Avoid duplication of --avoid
58245         statements
58246         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
58247         names to `_' in variable names.
58248
58249 2007-07-10  Eric Blake  <ebb9@byu.net>
58250
58251         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
58252         * NEWS: Document this change.
58253
58254 2007-07-08  Bruno Haible  <bruno@clisp.org>
58255
58256         Update to Unicode 5.0.
58257         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
58258         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
58259         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
58260         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
58261         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
58262         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
58263         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
58264         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
58265         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
58266         U+10A3F, U+1D242..U+1D244.
58267         (nonspacing_table_ind): Update.
58268         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
58269         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
58270
58271 2007-07-08  Bruno Haible  <bruno@clisp.org>
58272
58273         Update to Unicode 5.0.
58274         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
58275         code transform. Extend the name index field of unicode_name_to_code and
58276         unicode_code_to_name from 16 to 24 bits.
58277         * lib/uniname/uniname.c (unicode_character_name,
58278         unicode_name_character): Add the range 0x12xxx to the code transform.
58279         * lib/uniname/uninames.h: Regenerated.
58280         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
58281
58282 2007-07-07  Bruno Haible  <bruno@clisp.org>
58283
58284         * modules/wcwidth-tests: New file.
58285         * tests/test-wcwidth.c: New file.
58286
58287         Work around MacOS X wcwidth() bug.
58288         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
58289         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
58290         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
58291         original wcwidth in non-UTF-8 locales.
58292         * modules/wcwidth (Depends-on): Add localcharset, streq,
58293         uniwidth/width.
58294         * doc/functions/wcwidth.texi: Update.
58295
58296 2007-07-07  Bruno Haible  <bruno@clisp.org>
58297
58298         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
58299         (wcwidth): New declaration.
58300         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
58301         macros.
58302         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
58303         here. Prepare for creating <wchar.h> unconditionally.
58304         * modules/wchar (Depends-on): Add link-warning.
58305         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
58306         REPLACE_WCWIDTH, and GL_LINK_WARNING.
58307         * lib/wcwidth.h: Remove file.
58308         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
58309         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
58310         * modules/wcwidth (Files): Remove lib/wcwidth.h.
58311         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
58312         (Include): Replace wcwidth.h with <wchar.h>.
58313         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
58314         * lib/mbchar.h: Don't include wcwidth.h.
58315         * lib/mbswidth.c: Likewise.
58316         * NEWS: Mention the change.
58317
58318 2007-07-07  Bruno Haible  <bruno@clisp.org>
58319
58320         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
58321         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
58322         definition with an external declaration.
58323         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
58324         defined as a function. Remove AC_C_INLINE requirement.
58325         * modules/wcwidth (Files): Add lib/wcwidth.c.
58326         (Makefile.am): Remove redundant statement.
58327
58328 2007-07-07  Bruno Haible  <bruno@clisp.org>
58329
58330         * MODULES.html.sh (Unicode string functions): Add the new modules.
58331
58332         * tests/uniwidth/test-u32-strwidth.c: New file.
58333         * modules/uniwidth/u32-strwidth-tests: New file.
58334
58335         * lib/uniwidth/u32-strwidth.c: New file.
58336         * modules/uniwidth/u32-strwidth: New file.
58337
58338         * tests/uniwidth/test-u16-strwidth.c: New file.
58339         * modules/uniwidth/u16-strwidth-tests: New file.
58340
58341         * lib/uniwidth/u16-strwidth.c: New file.
58342         * modules/uniwidth/u16-strwidth: New file.
58343
58344         * tests/uniwidth/test-u8-strwidth.c: New file.
58345         * modules/uniwidth/u8-strwidth-tests: New file.
58346
58347         * lib/uniwidth/u8-strwidth.c: New file.
58348         * modules/uniwidth/u8-strwidth: New file.
58349
58350         * tests/uniwidth/test-u32-width.c: New file.
58351         * modules/uniwidth/u32-width-tests: New file.
58352
58353         * lib/uniwidth/u32-width.c: New file.
58354         * modules/uniwidth/u32-width: New file.
58355
58356         * tests/uniwidth/test-u16-width.c: New file.
58357         * modules/uniwidth/u16-width-tests: New file.
58358
58359         * lib/uniwidth/u16-width.c: New file.
58360         * modules/uniwidth/u16-width: New file.
58361
58362         * tests/uniwidth/test-u8-width.c: New file.
58363         * modules/uniwidth/u8-width-tests: New file.
58364
58365         * lib/uniwidth/u8-width.c: New file.
58366         * modules/uniwidth/u8-width: New file.
58367
58368         * tests/uniwidth/test-uc_width.c: New file.
58369         * modules/uniwidth/width-tests: New file.
58370
58371         * lib/uniwidth/width.c: New file, from GNU libiconv.
58372         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
58373         * modules/uniwidth/width: New file.
58374
58375         * lib/uniwidth.h: New file, from GNU libiconv.
58376         * modules/uniwidth/base: New file.
58377
58378 2007-07-07  Bruno Haible  <bruno@clisp.org>
58379
58380         * lib/uniname.h: New file, from GNU gettext.
58381         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
58382         * lib/uniname/uninames.h: New file, from GNU gettext.
58383         * lib/uniname/uniname.c: New file, from GNU gettext.
58384         * tests/uniname/test-uninames.sh: New file.
58385         * tests/uniname/test-uninames.c: New file, from GNU gettext.
58386         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
58387         * modules/uniname/base: New file.
58388         * modules/uniname/uniname: New file.
58389         * modules/uniname/uniname-tests: New file.
58390         * MODULES.html.sh (Unicode string functions): Add the new modules.
58391
58392 2007-07-06  Bruno Haible  <bruno@clisp.org>
58393
58394         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
58395
58396 2007-07-06  Bruno Haible  <bruno@clisp.org>
58397
58398         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
58399         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
58400         includes <cygwin/sys_time.h> which includes <sys/select.h> which
58401         include <sys/time.h>.
58402         Reported by Eric Blake.
58403
58404 2007-07-06  Eric Blake  <ebb9@byu.net>
58405
58406         Fix testing canonicalize on cygwin.
58407         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58408         Revert patch from 2007-06-19.
58409         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
58410         canonicalize module is also in use.
58411         * tests/test-canonicalize.c: New file.
58412         * tests/test-canonicalize.sh: Likewise.
58413         * modules/canonicalize-tests: Likewise.
58414
58415 2007-07-06  Jim Meyering  <jim@meyering.net>
58416
58417         * lib/getugroups.c (getugroups): Detect getgrent failure.
58418         Adjust comment to reflect reality: this function may return -1.
58419
58420 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
58421
58422         * build-aux/bootstrap (TP_URL,get_translations): Update to use
58423         the new TP address.
58424         (usage): Fix typo
58425         (gnulib_mk): New variable.
58426
58427 2007-07-05  Jim Meyering  <jim@meyering.net>
58428
58429         Don't let endgrent clobber errno, no matter how improbable.
58430         * lib/getugroups.c (getugroups): Save and restore errno around
58431         endgrent call.
58432
58433         Close the group DB even when failing with 2^31 or more members.
58434         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
58435
58436 2007-07-04  Jim Meyering  <jim@meyering.net>
58437
58438         * lib/getugroups.h: New file.
58439         * lib/getugroups.c: Include "getugroups.h".
58440         Remove uses of "register" keyword.
58441         Move local variable, "cp", down into scope where used.
58442         Give "username" parameter the "const" attribute.
58443         * modules/getugroups (Files): Add lib/getugroups.h
58444
58445 2007-07-04  Karl Berry  <karl@gnu.org>
58446
58447         * MODULES.html.sh (func_all_modules): Complete rename of
58448         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
58449
58450 2007-07-02  Bruno Haible  <bruno@clisp.org>
58451
58452         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
58453         mode, when inttypes.h comes from gnulib.
58454         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
58455
58456 2007-07-02  Simon Josefsson  <simon@josefsson.org>
58457
58458         * NEWS: Mention lgpl module name change.
58459
58460         * modules/lgpl-2.1: Renamed from lgpl.
58461
58462         * NEWS: Mention gpl module name change.
58463
58464         * modules/gpl-3.0: New file, based on gpl-2.0.
58465
58466         * modules/gpl-2.0: Renamed from gpl.
58467
58468         * modules/gpl: Fix filename, doc/gpl.texi is now found at
58469         doc/gpl-2.0.texi.
58470
58471 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
58472
58473         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
58474         #define __STDC_LIMIT_MACROS temporarily while including
58475         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
58476         Problem reported by Joel E. Denny in
58477         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
58478
58479 2007-07-01  Bruno Haible  <bruno@clisp.org>
58480
58481         * lib/unistdio.h: New file.
58482         * lib/unistdio/u-asnprintf.h: New file.
58483         * lib/unistdio/u-asprintf.h: New file.
58484         * lib/unistdio/u-printf-args.c: New file.
58485         * lib/unistdio/u-printf-args.h: New file.
58486         * lib/unistdio/u-printf-parse.h: New file.
58487         * lib/unistdio/u-snprintf.h: New file.
58488         * lib/unistdio/u-sprintf.h: New file.
58489         * lib/unistdio/u-vasprintf.h: New file.
58490         * lib/unistdio/u-vsnprintf.h: New file.
58491         * lib/unistdio/u-vsprintf.h: New file.
58492         * lib/unistdio/ulc-asnprintf.c: New file.
58493         * lib/unistdio/ulc-asprintf.c: New file.
58494         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
58495         * lib/unistdio/ulc-printf-parse.c: New file.
58496         * lib/unistdio/ulc-snprintf.c: New file.
58497         * lib/unistdio/ulc-sprintf.c: New file.
58498         * lib/unistdio/ulc-vasnprintf.c: New file.
58499         * lib/unistdio/ulc-vasprintf.c: New file.
58500         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
58501         * lib/unistdio/ulc-vsnprintf.c: New file.
58502         * lib/unistdio/ulc-vsprintf.c: New file.
58503         * lib/unistdio/u8-asnprintf.c: New file.
58504         * lib/unistdio/u8-asprintf.c: New file.
58505         * lib/unistdio/u8-printf-parse.c: New file.
58506         * lib/unistdio/u8-snprintf.c: New file.
58507         * lib/unistdio/u8-sprintf.c: New file.
58508         * lib/unistdio/u8-vasnprintf.c: New file.
58509         * lib/unistdio/u8-vasprintf.c: New file.
58510         * lib/unistdio/u8-vsnprintf.c: New file.
58511         * lib/unistdio/u8-vsprintf.c: New file.
58512         * lib/unistdio/u8-u8-asnprintf.c: New file.
58513         * lib/unistdio/u8-u8-asprintf.c: New file.
58514         * lib/unistdio/u8-u8-snprintf.c: New file.
58515         * lib/unistdio/u8-u8-sprintf.c: New file.
58516         * lib/unistdio/u8-u8-vasnprintf.c: New file.
58517         * lib/unistdio/u8-u8-vasprintf.c: New file.
58518         * lib/unistdio/u8-u8-vsnprintf.c: New file.
58519         * lib/unistdio/u8-u8-vsprintf.c: New file.
58520         * lib/unistdio/u16-asnprintf.c: New file.
58521         * lib/unistdio/u16-asprintf.c: New file.
58522         * lib/unistdio/u16-printf-parse.c: New file.
58523         * lib/unistdio/u16-snprintf.c: New file.
58524         * lib/unistdio/u16-sprintf.c: New file.
58525         * lib/unistdio/u16-vasnprintf.c: New file.
58526         * lib/unistdio/u16-vasprintf.c: New file.
58527         * lib/unistdio/u16-vsnprintf.c: New file.
58528         * lib/unistdio/u16-vsprintf.c: New file.
58529         * lib/unistdio/u16-u16-asnprintf.c: New file.
58530         * lib/unistdio/u16-u16-asprintf.c: New file.
58531         * lib/unistdio/u16-u16-snprintf.c: New file.
58532         * lib/unistdio/u16-u16-sprintf.c: New file.
58533         * lib/unistdio/u16-u16-vasnprintf.c: New file.
58534         * lib/unistdio/u16-u16-vasprintf.c: New file.
58535         * lib/unistdio/u16-u16-vsnprintf.c: New file.
58536         * lib/unistdio/u16-u16-vsprintf.c: New file.
58537         * lib/unistdio/u32-asnprintf.c: New file.
58538         * lib/unistdio/u32-asprintf.c: New file.
58539         * lib/unistdio/u32-printf-parse.c: New file.
58540         * lib/unistdio/u32-snprintf.c: New file.
58541         * lib/unistdio/u32-sprintf.c: New file.
58542         * lib/unistdio/u32-vasnprintf.c: New file.
58543         * lib/unistdio/u32-vasprintf.c: New file.
58544         * lib/unistdio/u32-vsnprintf.c: New file.
58545         * lib/unistdio/u32-vsprintf.c: New file.
58546         * lib/unistdio/u32-u32-asnprintf.c: New file.
58547         * lib/unistdio/u32-u32-asprintf.c: New file.
58548         * lib/unistdio/u32-u32-snprintf.c: New file.
58549         * lib/unistdio/u32-u32-sprintf.c: New file.
58550         * lib/unistdio/u32-u32-vasnprintf.c: New file.
58551         * lib/unistdio/u32-u32-vasprintf.c: New file.
58552         * lib/unistdio/u32-u32-vsnprintf.c: New file.
58553         * lib/unistdio/u32-u32-vsprintf.c: New file.
58554         * tests/unistdio/test-ulc-asnprintf1.c: New file.
58555         * tests/unistdio/test-ulc-asnprintf1.h: New file.
58556         * tests/unistdio/test-ulc-printf1.h: New file.
58557         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
58558         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
58559         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
58560         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
58561         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
58562         * tests/unistdio/test-ulc-vasprintf1.c: New file.
58563         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
58564         * tests/unistdio/test-ulc-vsprintf1.c: New file.
58565         * tests/unistdio/test-u8-asnprintf1.c: New file.
58566         * tests/unistdio/test-u8-asnprintf1.h: New file.
58567         * tests/unistdio/test-u8-printf1.h: New file.
58568         * tests/unistdio/test-u8-vasnprintf1.c: New file.
58569         * tests/unistdio/test-u8-vasnprintf2.c: New file.
58570         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
58571         * tests/unistdio/test-u8-vasnprintf3.c: New file.
58572         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
58573         * tests/unistdio/test-u8-vasprintf1.c: New file.
58574         * tests/unistdio/test-u8-vsnprintf1.c: New file.
58575         * tests/unistdio/test-u8-vsprintf1.c: New file.
58576         * tests/unistdio/test-u16-asnprintf1.c: New file.
58577         * tests/unistdio/test-u16-asnprintf1.h: New file.
58578         * tests/unistdio/test-u16-printf1.h: New file.
58579         * tests/unistdio/test-u16-vasnprintf1.c: New file.
58580         * tests/unistdio/test-u16-vasnprintf2.c: New file.
58581         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
58582         * tests/unistdio/test-u16-vasnprintf3.c: New file.
58583         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
58584         * tests/unistdio/test-u16-vasprintf1.c: New file.
58585         * tests/unistdio/test-u16-vsnprintf1.c: New file.
58586         * tests/unistdio/test-u16-vsprintf1.c: New file.
58587         * tests/unistdio/test-u32-asnprintf1.c: New file.
58588         * tests/unistdio/test-u32-asnprintf1.h: New file.
58589         * tests/unistdio/test-u32-printf1.h: New file.
58590         * tests/unistdio/test-u32-vasnprintf1.c: New file.
58591         * tests/unistdio/test-u32-vasnprintf2.c: New file.
58592         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
58593         * tests/unistdio/test-u32-vasnprintf3.c: New file.
58594         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
58595         * tests/unistdio/test-u32-vasprintf1.c: New file.
58596         * tests/unistdio/test-u32-vsnprintf1.c: New file.
58597         * tests/unistdio/test-u32-vsprintf1.c: New file.
58598         * modules/unistdio/base: New file.
58599         * modules/unistdio/u-printf-args: New file.
58600         * modules/unistdio/ulc-asnprintf: New file.
58601         * modules/unistdio/ulc-asprintf: New file.
58602         * modules/unistdio/ulc-fprintf: New file.
58603         * modules/unistdio/ulc-printf-parse: New file.
58604         * modules/unistdio/ulc-snprintf: New file.
58605         * modules/unistdio/ulc-sprintf: New file.
58606         * modules/unistdio/ulc-vasnprintf: New file.
58607         * modules/unistdio/ulc-vasprintf: New file.
58608         * modules/unistdio/ulc-vfprintf: New file.
58609         * modules/unistdio/ulc-vsnprintf: New file.
58610         * modules/unistdio/ulc-vsprintf: New file.
58611         * modules/unistdio/u8-asnprintf: New file.
58612         * modules/unistdio/u8-asprintf: New file.
58613         * modules/unistdio/u8-printf-parse: New file.
58614         * modules/unistdio/u8-snprintf: New file.
58615         * modules/unistdio/u8-sprintf: New file.
58616         * modules/unistdio/u8-vasnprintf: New file.
58617         * modules/unistdio/u8-vasprintf: New file.
58618         * modules/unistdio/u8-vsnprintf: New file.
58619         * modules/unistdio/u8-vsprintf: New file.
58620         * modules/unistdio/u8-u8-asnprintf: New file.
58621         * modules/unistdio/u8-u8-asprintf: New file.
58622         * modules/unistdio/u8-u8-snprintf: New file.
58623         * modules/unistdio/u8-u8-sprintf: New file.
58624         * modules/unistdio/u8-u8-vasnprintf: New file.
58625         * modules/unistdio/u8-u8-vasprintf: New file.
58626         * modules/unistdio/u8-u8-vsnprintf: New file.
58627         * modules/unistdio/u8-u8-vsprintf: New file.
58628         * modules/unistdio/u16-asnprintf: New file.
58629         * modules/unistdio/u16-asprintf: New file.
58630         * modules/unistdio/u16-printf-parse: New file.
58631         * modules/unistdio/u16-snprintf: New file.
58632         * modules/unistdio/u16-sprintf: New file.
58633         * modules/unistdio/u16-vasnprintf: New file.
58634         * modules/unistdio/u16-vasprintf: New file.
58635         * modules/unistdio/u16-vsnprintf: New file.
58636         * modules/unistdio/u16-vsprintf: New file.
58637         * modules/unistdio/u16-u16-asnprintf: New file.
58638         * modules/unistdio/u16-u16-asprintf: New file.
58639         * modules/unistdio/u16-u16-snprintf: New file.
58640         * modules/unistdio/u16-u16-sprintf: New file.
58641         * modules/unistdio/u16-u16-vasnprintf: New file.
58642         * modules/unistdio/u16-u16-vasprintf: New file.
58643         * modules/unistdio/u16-u16-vsnprintf: New file.
58644         * modules/unistdio/u16-u16-vsprintf: New file.
58645         * modules/unistdio/u32-asnprintf: New file.
58646         * modules/unistdio/u32-asprintf: New file.
58647         * modules/unistdio/u32-printf-parse: New file.
58648         * modules/unistdio/u32-snprintf: New file.
58649         * modules/unistdio/u32-sprintf: New file.
58650         * modules/unistdio/u32-vasnprintf: New file.
58651         * modules/unistdio/u32-vasprintf: New file.
58652         * modules/unistdio/u32-vsnprintf: New file.
58653         * modules/unistdio/u32-vsprintf: New file.
58654         * modules/unistdio/u32-u32-asnprintf: New file.
58655         * modules/unistdio/u32-u32-asprintf: New file.
58656         * modules/unistdio/u32-u32-snprintf: New file.
58657         * modules/unistdio/u32-u32-sprintf: New file.
58658         * modules/unistdio/u32-u32-vasnprintf: New file.
58659         * modules/unistdio/u32-u32-vasprintf: New file.
58660         * modules/unistdio/u32-u32-vsnprintf: New file.
58661         * modules/unistdio/u32-u32-vsprintf: New file.
58662         * modules/unistdio/ulc-asnprintf-tests: New file.
58663         * modules/unistdio/ulc-vasnprintf-tests: New file.
58664         * modules/unistdio/ulc-vasprintf-tests: New file.
58665         * modules/unistdio/ulc-vsnprintf-tests: New file.
58666         * modules/unistdio/ulc-vsprintf-tests: New file.
58667         * modules/unistdio/u8-asnprintf-tests: New file.
58668         * modules/unistdio/u8-vasnprintf-tests: New file.
58669         * modules/unistdio/u8-vasprintf-tests: New file.
58670         * modules/unistdio/u8-vsnprintf-tests: New file.
58671         * modules/unistdio/u8-vsprintf-tests: New file.
58672         * modules/unistdio/u16-asnprintf-tests: New file.
58673         * modules/unistdio/u16-vasnprintf-tests: New file.
58674         * modules/unistdio/u16-vasprintf-tests: New file.
58675         * modules/unistdio/u16-vsnprintf-tests: New file.
58676         * modules/unistdio/u16-vsprintf-tests: New file.
58677         * modules/unistdio/u32-asnprintf-tests: New file.
58678         * modules/unistdio/u32-vasnprintf-tests: New file.
58679         * modules/unistdio/u32-vasprintf-tests: New file.
58680         * modules/unistdio/u32-vsnprintf-tests: New file.
58681         * modules/unistdio/u32-vsprintf-tests: New file.
58682         * MODULES.html.sh (Unicode string functions): Add the new modules.
58683
58684 2007-07-01  Bruno Haible  <bruno@clisp.org>
58685
58686         * lib/sprintf.c (sprintf): Limit the available length estimation,
58687         to avoid address wraparound.
58688         * lib/vsprintf.c (vsprintf): Likewise.
58689         * modules/sprintf-posix (Dependencies): Add stdint.
58690         * modules/vsprintf-posix (Dependencies): Likewise.
58691
58692 2007-07-01  Bruno Haible  <bruno@clisp.org>
58693
58694         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
58695         Windows PATH as well. Conservative double-quoting. Comments.
58696
58697 2007-07-01  Bruno Haible  <bruno@clisp.org>
58698             Eric Blake  <ebb9@byu.net>
58699             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58700
58701         * gnulib-tool (self_abspathname): Fix algorithm to cope with
58702         empty components in $PATH, denoting '.'.
58703
58704 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58705
58706         * gnulib-tool: Fix indentation.
58707         (func_create_megatestdir): Likewise.
58708         Report by Bruno Haible.
58709
58710 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58711
58712         Sync from Automake.
58713         * build-aux/gnupload: Fix shell portability issues with for loops.
58714         Report by Karl Berry.
58715
58716 2007-06-29  Simon Josefsson  <simon@josefsson.org>
58717
58718         * build-aux/maint.mk (POURL): Use translationproject.org.
58719
58720 2007-06-27  Simon Josefsson  <simon@josefsson.org>
58721             Bruno Haible  <bruno@clisp.org>
58722
58723         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
58724         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
58725         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
58726         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
58727         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
58728
58729 2007-06-27  Bruno Haible  <bruno@clisp.org>
58730
58731         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
58732         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
58733
58734 2007-06-26  Karl Berry  <karl@gnu.org>
58735
58736         * MODULES.html.sh: remove xreadlink-with-size.
58737
58738 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58739
58740         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
58741         method that I hope also handles the double-include problem noted
58742         by Bruno Haible in
58743         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
58744
58745 2007-06-23  Bruno Haible  <bruno@clisp.org>
58746
58747         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58748         Don't let the 'mostlyclean' target fail if the last subdirectory could
58749         not be removed.
58750         Reported by Karl Berry.
58751
58752 2007-06-23  Bruno Haible  <bruno@clisp.org>
58753
58754         * gnulib-tool (echo): Add a speedier workaround for ksh.
58755         * tests/test-echo.sh: Likewise.
58756
58757 2007-06-23  Bruno Haible  <bruno@clisp.org>
58758
58759         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
58760         * tests/test-echo.sh: Likewise.
58761
58762 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58763
58764         * gnulib-tool (IFS): Initialize early, so we don't set it to
58765         empty later.
58766         (self_abspathname): Rewrite algorithm to set it, reindent.
58767         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
58768         (func_create_megatestdir): Merge some sed scripts.
58769
58770 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
58771
58772         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
58773         exposed by Sun Studio 11 cc on Solaris 8.
58774
58775 2007-06-22  Bruno Haible  <bruno@clisp.org>
58776
58777         * gnulib-tool (echo): Ensure the echo primitive does not interpret
58778         backslashes.
58779         * tests/test-echo.sh: New file.
58780
58781 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58782
58783         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
58784         simplify `sed_replace_build_aux' scripts, they are portable but
58785         echoing them with `echo' is not.
58786         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
58787
58788 2007-06-21  Karl Berry  <karl@gnu.org>
58789
58790         * config/srclist.txt: guess we can't handle the licenses via
58791         srclist at the moment.
58792
58793 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
58794
58795         * MODULES.html.sh: Add include_next.
58796         * modules/include_next: New file.
58797
58798 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
58799
58800         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
58801         INCLUDE_NEXT.
58802         (gl_CHECK_NEXT_HEADERS): New macro.
58803         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
58804         the obsolescent gl_ABSOLUTE_HEADER.
58805         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
58806         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
58807         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
58808         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58809         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
58810         * m4/math_h.m4 (gl_MATH_H): Likewise.
58811         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
58812         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
58813         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
58814         * m4/stdint.m4 (gl_STDINT_H): Likewise.
58815         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
58816         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
58817         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
58818         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58819         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58820         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
58821         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
58822         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
58823         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
58824         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
58825         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
58826         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
58827         * m4/inttypes.m4 (gl_INTTYPES_H): Define
58828         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
58829         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
58830         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
58831         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
58832         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
58833         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
58834         * lib/float_.h: Likewise.
58835         * lib/inttypes_.h: Likewise.
58836         * lib/math_.h: Likewise.
58837         * lib/search_.h: Likewise.
58838         * lib/signal_.h: Likewise.
58839         * lib/stdint_.h: Likewise.
58840         * lib/stdio_.h: Likewise.
58841         * lib/stdlib_.h: Likewise.
58842         * lib/string_.h: Likewise.
58843         * lib/sys_stat_.h: Likewise.
58844         * lib/sys_time_.h: Likewise.
58845         * lib/time_.h: Likewise.
58846         * lib/unistd_.h: Likewise.
58847         * lib/wchar_.h: Likewise.
58848         * lib/wctype_.h: Likewise.
58849         * lib/dirent_.h: Likewise.
58850         * lib/iconv_.h: Likewise.
58851         * lib/locale_.h: Likewise.
58852         * lib/netinet_in_.h: Likewise.
58853         * lib/sys_select_.h: Likewise.
58854         * lib/sys_socket_.h: Likewise.
58855         * lib/sysexits_.h: Likewise.
58856         * modules/fcntl (Depends-on): Depend on include_next, not
58857         absolute_header.
58858         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
58859         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
58860         * modules/fchdir: Likewise.
58861         * modules/float: Likewise.
58862         * modules/iconv_open: Likewise.
58863         * modules/inttypes: Likewise.
58864         * modules/locale: Likewise.
58865         * modules/math: Likewise.
58866         * modules/netinet_in: Likewise.
58867         * modules/search: Likewise.
58868         * modules/signal: Likewise.
58869         * modules/stdint: Likewise.
58870         * modules/stdio: Likewise.
58871         * modules/stdlib: Likewise.
58872         * modules/string: Likewise.
58873         * modules/sys_select: Likewise.
58874         * modules/sys_socket: Likewise.
58875         * modules/sys_stat: Likewise.
58876         * modules/sys_time: Likewise.
58877         * modules/sysexits: Likewise.
58878         * modules/time: Likewise.
58879         * modules/unistd: Likewise.
58880         * modules/wchar: Likewise.
58881         * modules/wctype: Likewise.
58882         * modules/sys_stat: Change maintainer to "all".
58883         * modules/unistd: Likewise.
58884
58885 2007-06-20  Karl Berry  <karl@gnu.org>
58886
58887         * config/srclist.txt: track www changes in license files.
58888
58889 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
58890
58891         * build-aux/bootstrap: Remove stray dot.
58892         Make sure build_aux settings are honored when linking
58893         gnulib_extra_files.
58894
58895 2007-06-19  Eric Blake  <ebb9@byu.net>
58896
58897         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
58898         Allow compilation on cygwin.
58899
58900 2007-06-19  Jim Meyering  <jim@meyering.net>
58901
58902         xreadlink-with-size: Remove module.  No longer used.
58903         Ex-callers now use xreadlink or mreadlink-with-size.
58904         * modules/xreadlink-with-size: Remove module.
58905         * lib/xreadlink-with-size.c: Remove file.
58906         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
58907         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
58908         just before the function definition *is* accurate.
58909
58910         Eliminate one way canonicalize_filename_mode could exit.
58911         * lib/canonicalize.c (canonicalize_filename_mode):
58912         Use mreadlink_with_size, not xreadlink_with_size.
58913
58914 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
58915
58916         Detect porting problems to FreeBSD/arm, which has time_t wider than
58917         long int.  Original problem reported for GNU diff by Xin Li in
58918         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
58919         * modules/getdate (Depends-on): Add intprops, verify.
58920         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
58921         is an integer type no wider than long int.
58922
58923 2007-06-18  Jim Meyering  <jim@meyering.net>
58924
58925         New module: mreadlink-with-size.
58926         * MODULES.html.sh: Add mreadlink-with-size.
58927         * modules/mreadlink-with-size: New module
58928         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
58929         not xreadlink-with-size.
58930         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
58931
58932 2007-06-16  Bruno Haible  <bruno@clisp.org>
58933
58934         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
58935         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
58936         Reported by Gary V. Vaughan <gary@gnu.org>.
58937
58938 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
58939
58940         Revamp lchown so that it lives in unistd.h where it belongs.
58941         * lib/lchown.h: Remove.
58942         * lib/dirchownmod.c: Don't include lib/lchown.h.
58943         * lib/fchownat.c: Likewise.
58944         * lib/openat.c: Likewise.
58945         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
58946         does not follow symlinks.
58947         (EOPNOTSUPP): Define if not defined.
58948         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
58949         is defined to 0.
58950         (lchown): New decl.
58951         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
58952         Do not check for lchown decl.
58953         Set REPLACE_LCHOWN.
58954         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
58955         REPLACE_LCHOWN.
58956         * modules/chown: Make it clear it follows symlinks.
58957         * modules/lchown: Make it clear it doesn't follow symlinks.
58958         (Files): Remove lib/lchown.h
58959         (Depends-on): Add unistd.
58960         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
58961         (Include): Include <unistd.h>, not "lchown.h".
58962         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
58963         REPLACE_LCHOWN.
58964
58965 2007-06-15  Jim Meyering  <jim@meyering.net>
58966
58967         Change license (GPL to LGPL) of fsusage and dependents.
58968         * modules/fsusage (License): Change to LGPL.
58969         * modules/full-read (License): Likewise.
58970         * modules/full-write (License): Likewise.
58971         * modules/safe-read (License): Likewise.
58972         * modules/safe-write (License): Likewise.
58973
58974 2007-06-14  Ben Pfaff  <blp@gnu.org>
58975
58976         Missing part of allocsa -> malloca transition.
58977         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
58978         gl_MALLOCA.
58979
58980 2007-06-12  Bruno Haible  <bruno@clisp.org>
58981
58982         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
58983         to ia64, x86_64, i386.
58984         Reported by Eric Blake.
58985
58986 2007-06-12  Bruno Haible  <bruno@clisp.org>
58987
58988         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
58989         cross-compiling to x86_64.
58990
58991 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
58992
58993         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
58994         glitch reported by Ralf Wildenhues in
58995         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
58996
58997         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
58998         Vin Shelton.
58999
59000 2007-06-11  Bruno Haible  <bruno@clisp.org>
59001
59002         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
59003         replacement string.
59004         Reported by Eric Blake.
59005
59006 2007-06-10  Bruno Haible  <bruno@clisp.org>
59007
59008         Prepare vasnprintf code for use with Unicode strings.
59009         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
59010         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
59011         TYPE_U32_STRING.
59012         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
59013         a_u32_string variants.
59014         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
59015         * lib/printf-args.c: Don't include config.h and the specification
59016         header if PRINTF_FETCHARGS is already defined.
59017         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
59018         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
59019         TYPE_U16_STRING, TYPE_U32_STRING.
59020         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
59021         u16_directive, u16_directives, u32_directive, u32_directives): New
59022         types.
59023         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
59024         New declarations.
59025         * lib/printf-parse.c: Don't include config.h and the specification
59026         header if PRINTF_PARSE is already defined. Eliminate the set of
59027         parameters for WIDE_CHAR_VERSION; the user of this file must provide
59028         them now. Include c-ctype.h.
59029         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
59030         directive and CHAR_T_ONLY_ASCII.
59031         * lib/vasnprintf.c: Don't include config.h and the specification header
59032         if VASNPRINTF is already defined.
59033         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
59034         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
59035         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
59036         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
59037         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
59038         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
59039         code accordingly.
59040         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
59041         pad_ourselves also in this case, with the 'c' and 's' directives, and
59042         with a different notion of "width".
59043         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
59044
59045 2007-06-10  Bruno Haible  <bruno@clisp.org>
59046
59047         * modules/unistr/u32-mbsnlen: New file.
59048         * lib/unistr/u32-mbsnlen.c: New file.
59049
59050         * modules/unistr/u16-mbsnlen: New file.
59051         * lib/unistr/u16-mbsnlen.c: New file.
59052
59053         * modules/unistr/u8-mbsnlen: New file.
59054         * lib/unistr/u8-mbsnlen.c: New file.
59055
59056         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
59057         declarations.
59058
59059 2007-06-10  Bruno Haible  <bruno@clisp.org>
59060
59061         * lib/string_.h (mbsnlen): New declaration.
59062         * lib/mbsnlen.c: New file.
59063         * m4/mbsnlen.m4: New file.
59064         * modules/mbsnlen: New file.
59065         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
59066         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
59067         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
59068
59069 2007-06-10  Bruno Haible  <bruno@clisp.org>
59070
59071         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
59072
59073 2007-06-10  Bruno Haible  <bruno@clisp.org>
59074
59075         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
59076         * lib/mbuiter.h: Likewise.
59077
59078 2007-06-10  Bruno Haible  <bruno@clisp.org>
59079
59080         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
59081         declaration.
59082
59083 2007-06-10  Karl Berry  <karl@gnu.org>
59084
59085         * config/srclist.txt: remove gettext entries, Bruno prefers
59086         to update individually.
59087
59088 2007-06-10  Bruno Haible  <bruno@clisp.org>
59089
59090         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
59091         'maxlen'. Ensure only length + width bytes are allocated, not
59092         length + 1 + width.
59093
59094 2007-06-09  Bruno Haible  <bruno@clisp.org>
59095
59096         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
59097         (CHAR_T): Remove macro.
59098         (VASNPRINTF): Update.
59099
59100 2007-06-09  Bruno Haible  <bruno@clisp.org>
59101
59102         * MODULES.html.sh (Unicode string functions): Add the new modules.
59103
59104         * modules/uniconv/u32-conv-to-enc: New file.
59105         * lib/uniconv/u32-conv-to-enc.c: New file.
59106         * modules/uniconv/u32-conv-to-enc-tests: New file.
59107         * tests/uniconv/test-u32-conv-to-enc.c: New file.
59108
59109         * modules/uniconv/u16-conv-to-enc: New file.
59110         * lib/uniconv/u16-conv-to-enc.c: New file.
59111         * lib/uniconv/u-conv-to-enc.h: New file.
59112         * modules/uniconv/u16-conv-to-enc-tests: New file.
59113         * tests/uniconv/test-u16-conv-to-enc.c: New file.
59114
59115         * modules/uniconv/u8-conv-to-enc: New file.
59116         * lib/uniconv/u8-conv-to-enc.c: New file.
59117         * modules/uniconv/u8-conv-to-enc-tests: New file.
59118         * tests/uniconv/test-u8-conv-to-enc.c: New file.
59119
59120         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
59121         u32_conv_to_encoding): New declarations.
59122
59123 2007-06-09  Bruno Haible  <bruno@clisp.org>
59124
59125         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
59126
59127 2007-06-09  Bruno Haible  <bruno@clisp.org>
59128
59129         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
59130         * modules/malloca: Renamed from modules/allocsa, updated.
59131         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
59132         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
59133         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
59134         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
59135         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
59136         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
59137         * modules/xmalloca: Renamed from modules/xallocsa, updated.
59138         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
59139         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
59140         * modules/c-strcasestr (Depends-on): Update.
59141         * lib/c-strcasestr.c: Update.
59142         * modules/c-strstr (Depends-on): Update.
59143         * lib/c-strstr.c: Update.
59144         * modules/canonicalize-lgpl (Depends-on): Update.
59145         * lib/canonicalize-lgpl.c: Update.
59146         * modules/clean-temp (Depends-on): Update.
59147         * lib/clean-temp.c: Update.
59148         * modules/csharpcomp (Depends-on): Update.
59149         * lib/csharpcomp.c: Update.
59150         * modules/csharpexec (Depends-on): Update.
59151         * lib/csharpexec.c: Update.
59152         * modules/javacomp (Depends-on): Update.
59153         * lib/javacomp.c: Update.
59154         * modules/javaexec (Depends-on): Update.
59155         * lib/javaexec.c: Update.
59156         * modules/mbscasestr (Depends-on): Update.
59157         * lib/mbscasestr.c: Update.
59158         * modules/mbsstr (Depends-on): Update.
59159         * lib/mbsstr.c: Update.
59160         * modules/setenv (Depends-on): Update.
59161         * lib/setenv.c: Update.
59162         * modules/strcasestr (Depends-on): Update.
59163         * lib/strcasestr.c: Update.
59164         * modules/striconveha (Depends-on): Update.
59165         * lib/striconveha.c: Update.
59166         * modules/relocatable-prog-wrapper (Files): Update.
59167         * lib/relocwrapper.c: Update.
59168         * build-aux/install-reloc: Update.
59169         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
59170
59171 2007-06-08  Bruno Haible  <bruno@clisp.org>
59172
59173         Port to uClibc.
59174         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
59175         * lib/fpurge.c (fpurge): Likewise.
59176         * lib/freading.c (freading): Likewise.
59177         * lib/fseeko.c (rpl_fseeko): Likewise.
59178         * lib/fseterr.c (fseterr): Likewise.
59179         * lib/fwriting.c (fwriting): Likewise.
59180         * tests/test-fflush.c (main): Avoid a failure on uClibc.
59181
59182 2007-06-08  Bruno Haible  <bruno@clisp.org>
59183
59184         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
59185         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
59186         * modules/gettext (Files): Add m4/intlmacosx.m4.
59187
59188 2007-06-07  Bruno Haible  <bruno@clisp.org>
59189
59190         * modules/localename-tests: New file.
59191         * tests/test-localename.c: New file.
59192
59193         New module 'localename'.
59194         * lib/localename.h: New file.
59195         * lib/localename.c: New file, from GNU gettext.
59196         * m4/localename.m4: New file.
59197         * modules/localename: New file.
59198
59199 2007-06-07  Bruno Haible  <bruno@clisp.org>
59200
59201         Work around the lack of <wchar.h> on some builds of uClibc.
59202         * doc/headers/wchar.texi: Update.
59203         * lib/wchar_.h: Include <wchar.h> only if it exists.
59204         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
59205         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
59206         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
59207         doesn't exist.
59208         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
59209         * modules/mbfile (Depends-on): Add wchar.
59210         * modules/mbiter (Depends-on): Likewise.
59211         * modules/mbuiter (Depends-on): Likewise.
59212         Reported by Simon Josefsson.
59213
59214 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
59215
59216         Work around problem reported by Steven M. Schweda in
59217         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
59218         Tru64 5.1B with the Compaq compiler environment installed declares
59219         an 'isblank' function but does not define it in the C library.
59220         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
59221         * lib/regex_internal.h (isblank): Likewise.
59222         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
59223         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
59224
59225 2007-06-05  Bruno Haible  <bruno@clisp.org>
59226
59227         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
59228         ia64.
59229         * modules/printf-safe: New file.
59230         * modules/fprintf-posix (Depends-on): Add printf-safe.
59231         * modules/printf-posix (Depends-on): Likewise.
59232         * modules/snprintf-posix (Depends-on): Likewise.
59233         * modules/sprintf-posix (Depends-on): Likewise.
59234         * modules/vasnprintf-posix (Depends-on): Likewise.
59235         * modules/vasprintf-posix (Depends-on): Likewise.
59236         * modules/vfprintf-posix (Depends-on): Likewise.
59237         * modules/vprintf-posix (Depends-on): Likewise.
59238         * modules/vsnprintf-posix (Depends-on): Likewise.
59239         * modules/vsprintf-posix (Depends-on): Likewise.
59240         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
59241         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
59242         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
59243         "no" on i386, x86_64, ia64.
59244         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
59245         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59246         on i386, x86_64, ia64.
59247         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
59248         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59249         on i386, x86_64, ia64.
59250         * tests/test-vasnprintf-posix.c: Include float.h.
59251         (LDBL80_WORDS): New macro.
59252         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59253         on i386, x86_64, ia64.
59254         * tests/test-vasprintf-posix.c: Include float.h.
59255         (LDBL80_WORDS): New macro.
59256         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
59257         on i386, x86_64, ia64.
59258         * tests/test-snprintf-posix.c: Include float.h.
59259         * tests/test-sprintf-posix.c: Likewise.
59260         * tests/test-vsnprintf-posix.c: Likewise.
59261         * tests/test-vsprintf-posix.c: Likewise.
59262
59263 2007-06-05  Bruno Haible  <bruno@clisp.org>
59264
59265         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
59266         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
59267         non-IEEE numbers on i386, x86_64, ia64.
59268         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
59269         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
59270         * tests/test-isnanl.h: Include float.h.
59271         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
59272
59273 2007-06-05  Bruno Haible  <bruno@clisp.org>
59274
59275         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
59276         also the %a / %A. Handle the %a / %A code before this extra handling.
59277
59278 2007-06-05  Bruno Haible  <bruno@clisp.org>
59279
59280         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
59281         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
59282
59283 2007-06-05  Bruno Haible  <bruno@clisp.org>
59284
59285         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
59286         typo in variable name.
59287
59288 2007-06-05  Eric Blake  <ebb9@byu.net>
59289
59290         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
59291         Reported by Simon Josefsson.
59292
59293 2007-06-04  Bruno Haible  <bruno@clisp.org>
59294
59295         Avoid test failures on some PowerPC platforms.
59296         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
59297         Define differently for PowerPC.
59298         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
59299         Reported by Gary V. Vaughan <gary@gnu.org>.
59300
59301 2007-06-02  Bruno Haible  <bruno@clisp.org>
59302
59303         Fix test-stdint failure on FreeBSD/ia64.
59304         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
59305         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
59306         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
59307         * doc/headers/stdint.texi: Update.
59308
59309 2007-06-01  Bruno Haible  <bruno@clisp.org>
59310
59311         * tests/test-binary-io.c (main): Pass a third argument to open().
59312         Reported by Gary V. Vaughan <gary@gnu.org>.
59313
59314 2007-06-01  Bruno Haible  <bruno@clisp.org>
59315
59316         * doc/functions/frexpl.texi: Update for mingw.
59317
59318 2007-06-01  Bruno Haible  <bruno@clisp.org>
59319
59320         * tests/test-lseek.c (main): Disable test of errno for invalid third
59321         argument.
59322         * doc/functions/lseek.texi: Update.
59323         Reported by Gary V. Vaughan <gary@gnu.org>.
59324
59325 2007-05-28  Bruno Haible  <bruno@clisp.org>
59326
59327         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
59328
59329 2007-05-31  Eric Blake  <ebb9@byu.net>
59330
59331         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
59332         cross compiling.
59333
59334 2007-05-30  Eric Blake  <ebb9@byu.net>
59335         and Bruno Haible  <bruno@clisp.org>
59336
59337         Work around mingw test failures exposed by m4-1.4.9b.
59338         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
59339         * tests/test-unistd.c: Disable uid_t and git_t tests for the
59340         moment.
59341
59342 2007-05-30  Bruno Haible  <bruno@clisp.org>
59343
59344         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
59345         assuming that they are closed. Needed on HP-UX 11.
59346
59347 2007-05-29  Bruno Haible  <bruno@clisp.org>
59348
59349         Fix a problem with #include_next.
59350         * lib/dirent_.h: Split the double-inclusion guard.
59351         * lib/fcntl_.h: Likewise.
59352         * lib/float_.h: Likewise.
59353         * lib/iconv_.h: Likewise.
59354         * lib/inttypes_.h: Likewise.
59355         * lib/locale_.h: Likewise.
59356         * lib/math_.h: Likewise.
59357         * lib/netinet_in_.h: Likewise.
59358         * lib/search_.h: Likewise.
59359         * lib/signal_.h: Likewise.
59360         * lib/stdint_.h: Likewise.
59361         * lib/stdio_.h: Likewise.
59362         * lib/stdlib_.h: Likewise.
59363         * lib/string_.h: Likewise.
59364         * lib/sys_select_.h: Likewise.
59365         * lib/sys_socket_.h: Likewise.
59366         * lib/sys_stat_.h: Likewise.
59367         * lib/sys_time_.h: Likewise.
59368         * lib/sysexits_.h: Likewise.
59369         * lib/time_.h: Likewise.
59370         * lib/unistd_.h: Likewise.
59371         * lib/wchar_.h: Likewise.
59372         * lib/wctype_.h: Likewise.
59373
59374 2007-05-29  Bruno Haible  <bruno@clisp.org>
59375
59376         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
59377         for the moment.
59378
59379 2007-05-29  Bruno Haible  <bruno@clisp.org>
59380
59381         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
59382         invocation.
59383         Reported by Eric Blake.
59384
59385 2007-05-29  Bruno Haible  <bruno@clisp.org>
59386
59387         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
59388         compiling case.
59389
59390 2007-05-29  Eric Blake  <ebb9@byu.net>
59391             Bruno Haible  <bruno@clisp.org>
59392
59393         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
59394         cross compiles.
59395
59396 2007-05-28  Eric Blake  <ebb9@byu.net>
59397
59398         * modules/closein-tests (test_closein_LDADD): Support test on
59399         cygwin with libtool.
59400
59401 2007-05-28  Bruno Haible  <bruno@clisp.org>
59402
59403         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
59404         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
59405         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
59406         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
59407         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
59408         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
59409         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
59410         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
59411         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
59412
59413 2007-05-28  Eric Blake  <ebb9@byu.net>
59414
59415         Unconditionally include <config.h> in unit tests.
59416         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
59417         * tests/test-allocsa.c, tests/test-arcfour.c,
59418         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
59419         tests/test-array_list.c, tests/test-array_oset.c,
59420         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
59421         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
59422         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
59423         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
59424         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
59425         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
59426         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
59427         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
59428         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
59429         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
59430         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
59431         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
59432         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
59433         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
59434         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
59435         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
59436         test-md5.c, test-memmem.c, test-printf-posix.c,
59437         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
59438         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
59439         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
59440         test-strcasestr.c, test-striconv.c, test-striconveh.c,
59441         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
59442         test-vasnprintf-posix2.c, test-vasnprintf.c,
59443         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
59444         test-vfprintf-posix.c, test-vprintf-posix.c,
59445         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
59446         test-xvasprintf.c: Likewise.
59447
59448 2007-05-28  Bruno Haible  <bruno@clisp.org>
59449
59450         * gnulib-tool (func_import): Remember the --with-tests command-line
59451         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
59452         Reported by Eric Blake.
59453
59454 2007-05-28  Bruno Haible  <bruno@clisp.org>
59455
59456         * modules/ftell-tests: New file.
59457         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
59458         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
59459
59460         * lib/ftell.c: New file.
59461         * modules/ftell: New file.
59462         * m4/ftell.m4: New file.
59463         * doc/functions/ftell.texi: Update.
59464         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
59465         REPLACE_FTELL.
59466         * lib/stdio_.h (rpl_ftell): New declaration.
59467         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
59468         REPLACE_FTELL.
59469
59470 2007-05-28  Eric Blake  <ebb9@byu.net>
59471
59472         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
59473
59474 2007-05-28  Bruno Haible  <bruno@clisp.org>
59475
59476         * modules/fseek-tests: New file.
59477         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
59478         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
59479
59480         * lib/fseek.c: New file.
59481         * modules/fseek: New file.
59482         * m4/fseek.m4: New file.
59483         * doc/functions/fseek.texi: Update.
59484         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
59485         REPLACE_FSEEK.
59486         * lib/stdio_.h (rpl_fseek): New declaration.
59487         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
59488         REPLACE_FSEEK.
59489
59490 2007-05-28  Bruno Haible  <bruno@clisp.org>
59491
59492         * lib/stdio_.h (fflush): More comments.
59493
59494 2007-05-28  Bruno Haible  <bruno@clisp.org>
59495
59496         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
59497         runtime test.
59498
59499 2007-05-28  Eric Blake  <ebb9@byu.net>
59500
59501         Improve lseek module.
59502         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
59503         * lib/unistd_.h (lseek): Scale back link warning message.
59504         * tests/test-lseek.c: Beef up test.
59505         * tests/test-lseek.sh: Exercise more facets of lseek.
59506         Reported by Bruno Haible.
59507
59508 2007-05-28  Bruno Haible  <bruno@clisp.org>
59509
59510         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
59511         to define.
59512
59513 2007-05-27  Bruno Haible  <bruno@clisp.org>
59514
59515         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
59516
59517 2007-05-27  Bruno Haible  <bruno@clisp.org>
59518
59519         * modules/openmp: New file.
59520         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
59521         Noah Misch.
59522
59523 2007-05-26  Bruno Haible  <bruno@clisp.org>
59524
59525         * modules/chdir-long (Depends-on): Add fchdir.
59526         * modules/chdir-safer (Depends-on): Likewise.
59527         * modules/fts (Depends-on): Likewise.
59528         * modules/fts-lgpl (Depends-on): Likewise.
59529         * modules/openat (Depends-on): Likewise.
59530         * modules/savewd (Depends-on): Likewise.
59531
59532 2007-05-24  Eric Blake  <ebb9@byu.net>
59533
59534         Fix lseek on mingw.
59535         * modules/lseek: New module.
59536         * m4/lseek.m4: New file.
59537         * lib/lseek.c: New file.
59538         * modules/lseek-tests: New file.
59539         * tests/test-lseek.c: New file.
59540         * tests/test-lseek.sh: New file.
59541         * MODULES.html.sh: Document lseek module.
59542         * modules/fflush (Depends-on): Add lseek, fseeko.
59543         * modules/fseeko (Depends-on): Likewise.
59544         * modules/ftello (Depends-on): Likewise.
59545         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
59546         broken.
59547         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
59548         broken.
59549         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
59550         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
59551         * lib/ftello.c (rpl_ftello): Likewise.
59552         * tests/test-fseeko.c (main): Test this.
59553         * tests/test-fseeko.sh: Likewise.
59554         * tests/test-ftello.c (main): Likewise.
59555         * tests/test-ftello.sh: Likewise.
59556         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
59557         implies replacing fseek.
59558         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
59559         HAVE_FTELLO.
59560         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
59561         * modules/unistd (Makefile.am): Likewise.
59562         * lib/unistd_.h (lseek): Declare a replacement.
59563         * doc/functions/lseek.texi (lseek): Document this fix.
59564         * doc/functions/fseek.texi (fseek): Likewise.
59565         * doc/functions/ftell.texi (ftell): Likewise.
59566
59567 2007-05-24  Bruno Haible  <bruno@clisp.org>
59568
59569         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
59570         in the printed representation of a NaN.
59571         * tests/test-vasprintf-posix.c (test_function): Likewise.
59572         * tests/test-snprintf-posix.h (test_function): Likewise.
59573         * tests/test-sprintf-posix.h (test_function): Likewise.
59574         Reported by Eric Blake.
59575
59576 2007-05-23  Eric Blake  <ebb9@byu.net>
59577
59578         Fix fseeko/ftello on cygwin 1.5.24.
59579         * doc/functions/fseeko.texi (fseeko): Document the fix.
59580         * doc/functions/ftello.texi (ftello): Document the fix.
59581         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
59582         * doc/functions/stdout.text (stdout): New file.
59583         * doc/functions/stderr.text (stderr): New file.
59584         * doc/gnulib.texi (Function Substitutes): Use new files.
59585         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
59586         prior to 1.7.0.
59587         * tests/test-ftello.c (main): Likewise for ftello.
59588         * tests/test-fseeko.sh: New file.
59589         * tests/test-ftello.sh: New file.
59590         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
59591         with seekable stdin.
59592         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
59593         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
59594         (gl_REPLACE_FSEEKO): New macro.
59595         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
59596         * modules/fseeko (Files): Distribute fseeko.c.
59597         * modules/ftello (Files): Distribute ftello.c.
59598         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
59599         mode.
59600         * lib/ftello.c (rpl_ftello): New file.
59601         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
59602         fseeko, ftello.
59603         (gl_STDIN_LARGE_OFFSET): New macro.
59604         * modules/stdio (Makefile.am): Perform the replacement.
59605         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
59606
59607 2007-05-23  Bruno Haible  <bruno@clisp.org>
59608
59609         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
59610         GNULIB_POSIXCHECK is defined.
59611
59612 2007-05-21  Bruno Haible  <bruno@clisp.org>
59613
59614         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
59615         Check also the output for NaN arguments. When cross-compiling, guess
59616         no on IRIX.
59617         * lib/vasnprintf.c: Update comments.
59618         * tests/test-vasnprintf-posix.c (strisnan): New function.
59619         (test_function): Use it.
59620         * tests/test-vasprintf-posix.c (strisnan): New function.
59621         (test_function): Use it.
59622         * tests/test-snprintf-posix.h (strisnan): New function.
59623         (test_function): Use it.
59624         * tests/test-sprintf-posix.h (strisnan): New function.
59625         (test_function): Use it.
59626         Reported by Eric Blake.
59627
59628 2007-05-20  Bruno Haible  <bruno@clisp.org>
59629
59630         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
59631         numbers that fails on BeOS.
59632         * doc/functions/frexpl.texi: Update.
59633
59634 2007-05-20  Jim Meyering  <jim@meyering.net>
59635
59636         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
59637         forced upon us by glibc-2.6.
59638
59639 2007-05-20  Bruno Haible  <bruno@clisp.org>
59640
59641         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
59642         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
59643         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
59644         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
59645         NEED_PRINTF_INFINITE.
59646         (is_infinitel): New function.
59647         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
59648         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
59649         gl_PREREQ_VASNPRINTF_INFINITE.
59650         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
59651         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59652         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
59653         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
59654         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
59655         gl_PREREQ_VASNPRINTF_INFINITE.
59656         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59657         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59658         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59659         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59660         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59661         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59662         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59663         * doc/functions/fprintf.texi: Update.
59664         * doc/functions/printf.texi: Update.
59665         * doc/functions/snprintf.texi: Update.
59666         * doc/functions/sprintf.texi: Update.
59667         * doc/functions/vfprintf.texi: Update.
59668         * doc/functions/vprintf.texi: Update.
59669         * doc/functions/vsnprintf.texi: Update.
59670         * doc/functions/vsprintf.texi: Update.
59671
59672 2007-05-20  Bruno Haible  <bruno@clisp.org>
59673
59674         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
59675         was not found in libc.
59676         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
59677
59678 2007-05-20  Bruno Haible  <bruno@clisp.org>
59679
59680         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59681         printed as "-nan" instead of "nan".
59682         * tests/test-vasprintf-posix.c (test_function): Likewise.
59683         * tests/test-snprintf-posix.h (test_function): Likewise.
59684         * tests/test-sprintf-posix.h (test_function): Likewise.
59685         Needed for HP-UX 11.
59686
59687 2007-05-20  Jim Meyering  <jim@meyering.net>
59688
59689         Fix buggy test for the fchownat-deref bug.
59690         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
59691         symlink required for the run-test.  Without it, this test would
59692         always declare that fchownat doesn't work, and client code would
59693         unnecessarily use the replacement function with fixed libc.
59694         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
59695         Reported by Greg Schafer.
59696
59697 2007-05-19  Bruno Haible  <bruno@clisp.org>
59698
59699         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
59700         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
59701         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
59702         Needed for IRIX 6.5 and Solaris 2.5.1.
59703
59704 2007-05-19  Bruno Haible  <bruno@clisp.org>
59705
59706         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
59707         (test_function): Skip tests involving -0.0 on platforms where
59708         -0.0 = 0.0.
59709         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
59710         (test_function): Skip tests involving -0.0 on platforms where
59711         -0.0 = 0.0.
59712         * tests/test-snprintf-posix.h (have_minus_zero): New function.
59713         (test_function): Skip tests involving -0.0 on platforms where
59714         -0.0 = 0.0.
59715         * tests/test-sprintf-posix.h (have_minus_zero): New function.
59716         (test_function): Skip tests involving -0.0 on platforms where
59717         -0.0 = 0.0.
59718         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
59719         tests.
59720         * tests/test-printf-posix.h (test_function): Likewise.
59721         * tests/test-printf-posix.output: Remove all -0.0 related results.
59722         Needed for IRIX 6.5.
59723
59724 2007-05-19  Bruno Haible  <bruno@clisp.org>
59725
59726         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
59727         printed as "nan0x7fffffff" instead of "nan".
59728         * tests/test-vasprintf-posix.c (test_function): Likewise.
59729         * tests/test-snprintf-posix.h (test_function): Likewise.
59730         * tests/test-sprintf-posix.h (test_function): Likewise.
59731         * tests/test-fprintf-posix.h (NaN): Remove macro.
59732         (test_function): Remove all NaN related tests.
59733         * tests/test-printf-posix.h (NaN): Remove macro.
59734         (test_function): Remove all NaN related tests.
59735         * tests/test-printf-posix.output: Remove all NaN related results.
59736         Needed for IRIX 6.5.
59737
59738 2007-05-19  Bruno Haible  <bruno@clisp.org>
59739
59740         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
59741         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
59742
59743 2007-05-19  Bruno Haible  <bruno@clisp.org>
59744
59745         * lib/float_.h: New file.
59746         * m4/float_h.m4: New file.
59747         * modules/float: New file.
59748         * modules/isnanl (Dependencies): Add float.
59749         * modules/isnanl-nolibm (Dependencies): Likewise.
59750         * modules/mathl (Dependencies): Likewise.
59751         * modules/printf-frexpl (Dependencies): Likewise.
59752         * modules/signbit (Dependencies): Likewise.
59753         * modules/vasnprintf (Dependencies): Likewise.
59754         * doc/headers/float.texi: Update.
59755
59756 2007-05-19  Jim Meyering  <jim@meyering.net>
59757
59758         * lib/utimens.c (gl_futimens): Rename from futimens,
59759         now that glibc-2.6 declares futimens.
59760         * lib/utimens.h: Likewise.
59761
59762 2007-05-19  Bruno Haible  <bruno@clisp.org>
59763
59764         Avoid test failures on mingw.
59765         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
59766         * tests/test-printf-posix.sh: Likewise.
59767         * tests/test-vfprintf-posix.sh: Likewise.
59768         * tests/test-vprintf-posix.sh: Likewise.
59769
59770 2007-05-19  Bruno Haible  <bruno@clisp.org>
59771
59772         Fix *printf result for NaN, Inf, -0.0 on mingw.
59773         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
59774         * lib/vasnprintf.c: Include math.h and isnan.h.
59775         (is_infinite_or_zero): New function.
59776         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
59777         values in the %f, %F, %e, %E, %g, %G directives.
59778         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
59779         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59780         gl_PRINTF_INFINITE and test its result. Invoke
59781         gl_PREREQ_VASNPRINTF_INFINITE.
59782         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59783         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59784         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59785         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59786         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59787         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59788         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59789         * doc/functions/fprintf.texi: Update.
59790         * doc/functions/printf.texi: Update.
59791         * doc/functions/snprintf.texi: Update.
59792         * doc/functions/sprintf.texi: Update.
59793         * doc/functions/vfprintf.texi: Update.
59794         * doc/functions/vprintf.texi: Update.
59795         * doc/functions/vsnprintf.texi: Update.
59796         * doc/functions/vsprintf.texi: Update.
59797
59798 2007-05-19  Bruno Haible  <bruno@clisp.org>
59799
59800         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
59801         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
59802         Instead of multiplying with 10^k, set extra_zeroes to k.
59803         (scale10_round_long_double): Remove function.
59804
59805 2007-05-18  Bruno Haible  <bruno@clisp.org>
59806
59807         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
59808         introduced on 2007-05-06.
59809
59810 2007-05-18  Bruno Haible  <bruno@clisp.org>
59811
59812         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
59813         %g directives.
59814         * tests/test-vasprintf-posix.c (test_function): Likewise.
59815         * tests/test-snprintf-posix.h (test_function): Likewise.
59816         * tests/test-sprintf-posix.h (test_function): Likewise.
59817
59818 2007-05-18  Bruno Haible  <bruno@clisp.org>
59819
59820         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
59821         (strmatch): New function.
59822         (test_function): Test the %f directive on numbers of various exponents.
59823         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
59824         (strmatch): New function.
59825         (test_function): Test the %f directive on numbers of various exponents.
59826         * tests/test-snprintf-posix.h (strmatch): New function.
59827         (test_function): Test the %f directive on numbers of various exponents.
59828         * tests/test-sprintf-posix.h (strmatch): New function.
59829         (test_function): Test the %f directive on numbers of various exponents.
59830         * tests/test-snprintf-posix.c (SIZEOF): New macro.
59831         * tests/test-sprintf-posix.c (SIZEOF): New macro.
59832         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
59833         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
59834
59835 2007-05-18  Bruno Haible  <bruno@clisp.org>
59836
59837         Add support for 'long double' number output.
59838         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
59839         * lib/vasnprintf.c: Include math.h and float+.h.
59840         (mp_limb_t): New type.
59841         (GMP_LIMB_BITS): New macro.
59842         (mp_twolimb_t): New type.
59843         (GMP_TWOLIMB_BITS): New macro.
59844         (mpn_t): New type.
59845         (multiply, divide, convert_to_decimal, decode_long_double,
59846         scale10_round_long_double, scale10_round_decimal_long_double,
59847         floorlog10l): New functions.
59848         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
59849         for the %f, %F, %e, %E, %g, %G directives.
59850         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
59851         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59852         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
59853         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
59854         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59855         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59856         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59857         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59858         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59859         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59860         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59861         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
59862         * modules/snprintf-posix (Depends-on): Likewise.
59863         * modules/sprintf-posix (Depends-on): Likewise.
59864         * modules/vasnprintf-posix (Depends-on): Likewise.
59865         * modules/vasprintf-posix (Depends-on): Likewise.
59866         * modules/vfprintf-posix (Depends-on): Likewise.
59867         * modules/vsnprintf-posix (Depends-on): Likewise.
59868         * modules/vsprintf-posix (Depends-on): Likewise.
59869         * modules/vasnprintf (Files): Add lib/float+.h.
59870         * doc/functions/fprintf.texi: Update.
59871         * doc/functions/printf.texi: Update.
59872         * doc/functions/snprintf.texi: Update.
59873         * doc/functions/sprintf.texi: Update.
59874         * doc/functions/vfprintf.texi: Update.
59875         * doc/functions/vprintf.texi: Update.
59876         * doc/functions/vsnprintf.texi: Update.
59877         * doc/functions/vsprintf.texi: Update.
59878
59879 2007-05-18  Bruno Haible  <bruno@clisp.org>
59880
59881         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
59882
59883 2007-05-18  Bruno Haible  <bruno@clisp.org>
59884
59885         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
59886         for printing 64-bit integers. Needed for mingw.
59887
59888 2007-05-18  Bruno Haible  <bruno@clisp.org>
59889
59890         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
59891         gl_FUNC_FREXPL_WORKS.
59892         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
59893
59894 2007-05-18  Bruno Haible  <bruno@clisp.org>
59895
59896         * modules/frexpl-nolibm-tests: New file.
59897
59898         * modules/frexpl-nolibm: New file.
59899         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
59900
59901 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
59902
59903         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
59904         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59905         GCC 4.2, which otherwise issues a lot of warnings.
59906         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
59907         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
59908         Likewise.
59909         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
59910         * modules/iconv_open (iconv.h): Likewise.
59911         * modules/locale (locale.h): Likewise.
59912         * modules/netinet_in (netinet/in.h): Likewise.
59913         * modules/sys_select (sys_select.h): Likewise.
59914         * modules/sys_socket (sys/socket.h): Likewise.
59915         * modules/sys_stat (sys/stat.h): Likewise.
59916         * modules/sysexits (sysexits.h): Likewise.
59917         * modules/unistd (unistd.h): Likewise.
59918
59919 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59920
59921         * modules/closein-tests (Makefile.am): Distribute
59922         `test-closein.sh'.
59923
59924 2007-05-17  Bruno Haible  <bruno@clisp.org>
59925
59926         * tests/test-printf-posix.output: Renamed from
59927         tests/test-fprintf-posix.out.
59928         * modules/fprintf-posix-tests: Update.
59929         * modules/printf-posix-tests: Update.
59930         * modules/vfprintf-posix-tests: Update.
59931         * modules/vprintf-posix-tests: Update.
59932         * tests/test-fprintf-posix.sh: Update.
59933         * tests/test-printf-posix.sh: Update.
59934         * tests/test-vfprintf-posix.sh: Update.
59935         * tests/test-vprintf-posix.sh: Update.
59936         Reported by Ralf Wildenhues.
59937
59938 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
59939
59940         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
59941         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
59942         GCC 4.2, which otherwise issues a lot of warnings.
59943         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
59944         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
59945         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
59946         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
59947         it should no longer be needed.
59948         * lib/string_.h: Likewise.
59949         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
59950         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
59951         * modules/inttypes (inttypes.h): Likewise.
59952         * modules/math (math.h): Likewise.
59953         * modules/search (search.h): Likewise.
59954         * modules/signal (signal.h): Likewise.
59955         * modules/stdint (stdint.h): Likewise.
59956         * modules/stdio (stdio.h): Likewise.
59957         * modules/stdlib (stdlib.h): Likewise.
59958         * modules/string (string.h): Likewise.
59959         * modules/sys_time (sys/time.h): Likewise.
59960         * modules/time (time.h): Likewise.
59961         * modules/wchar (wchar.h): Likewise.
59962         * modules/wctype (wtype.h): Likewise.
59963
59964 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59965
59966         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
59967
59968 2007-05-13  Bruno Haible  <bruno@clisp.org>
59969
59970         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
59971         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59972         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
59973         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59974         (gl_PREREQ_STRTOK_R): Don't require it here.
59975
59976 2007-05-13  Bruno Haible  <bruno@clisp.org>
59977
59978         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
59979         when used in C++ mode.
59980
59981 2007-05-12  Bruno Haible  <bruno@clisp.org>
59982
59983         * lib/linebuffer.h: Tweak doc.
59984         * lib/linebuffer.c: Likewise.
59985
59986 2007-05-12  James Youngman  <jay@gnu.org>
59987
59988         * lib/linebuffer.c (readlinebuffer_delim): New function,
59989         like readlinebuffer, but use a caller-specified delimiter.
59990         (readlinebuffer): Just call readlinebuffer_delim with '\n'
59991         as the delimiter.
59992         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
59993
59994 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59995
59996         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
59997         * modules/openat (Files): Remove openat-die.c.
59998         (Depends-on): Add openat-die.
59999         * modules/openat-die: New module.
60000
60001 2007-05-06  Bruno Haible  <bruno@clisp.org>
60002
60003         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
60004         Update with info about Cygwin.
60005         * doc/functions/fprintf.texi: Update.
60006         * doc/functions/printf.texi: Update.
60007         * doc/functions/snprintf.texi: Update.
60008         * doc/functions/sprintf.texi: Update.
60009         * doc/functions/vfprintf.texi: Update.
60010         * doc/functions/vprintf.texi: Update.
60011         * doc/functions/vsnprintf.texi: Update.
60012         * doc/functions/vsprintf.texi: Update.
60013         Reported by Eric Blake.
60014
60015 2007-05-06  Bruno Haible  <bruno@clisp.org>
60016
60017         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
60018         padding ourselves for the floating-point directives.
60019         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
60020         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
60021         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60022         gl_PRINTF_FLAG_ZERO and test its result. Invoke
60023         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
60024         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60025         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
60026         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60027         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60028         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60029         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60030         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60031         * tests/test-snprintf-posix.h (test_function): Also check the width
60032         and some flags in the %f directive.
60033         * tests/test-sprintf-posix.h (test_function): Likewise.
60034         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60035         * tests/test-vasprintf-posix.c (test_function): Likewise.
60036         * doc/functions/fprintf.texi: Update.
60037         * doc/functions/printf.texi: Update.
60038         * doc/functions/snprintf.texi: Update.
60039         * doc/functions/sprintf.texi: Update.
60040         * doc/functions/vfprintf.texi: Update.
60041         * doc/functions/vprintf.texi: Update.
60042         * doc/functions/vsnprintf.texi: Update.
60043         * doc/functions/vsprintf.texi: Update.
60044
60045 2007-05-06  Bruno Haible  <bruno@clisp.org>
60046
60047         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
60048         pass the ' flag character to sprintf or snprintf.
60049         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
60050         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
60051         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60052         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
60053         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
60054         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60055         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
60056         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60057         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60058         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60059         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60060         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60061         * tests/test-snprintf-posix.h (test_function): Also check the grouping
60062         flag.
60063         * tests/test-sprintf-posix.h (test_function): Likewise.
60064         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60065         * tests/test-vasprintf-posix.c (test_function): Likewise.
60066         * doc/functions/fprintf.texi: Update.
60067         * doc/functions/printf.texi: Update.
60068         * doc/functions/snprintf.texi: Update.
60069         * doc/functions/sprintf.texi: Update.
60070         * doc/functions/vfprintf.texi: Update.
60071         * doc/functions/vprintf.texi: Update.
60072         * doc/functions/vsnprintf.texi: Update.
60073         * doc/functions/vsprintf.texi: Update.
60074
60075 2007-05-01  Bruno Haible  <bruno@clisp.org>
60076
60077         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
60078
60079 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
60080
60081         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
60082         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
60083
60084 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60085
60086         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
60087         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
60088         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
60089
60090 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
60091
60092         * lib/argp-help.c (struct hol_entry): New member `ord'.
60093         (HOL_ENTRY_PTRCMP): Use ord for comparison
60094         (hol_sort): Initialize ord.
60095
60096 2007-05-01  Bruno Haible  <bruno@clisp.org>
60097
60098         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
60099         Reported by Eric Blake.
60100         * doc/gnulib.texi (Function Substitutes): Update.
60101
60102 2007-05-01  Bruno Haible  <bruno@clisp.org>
60103
60104         * doc/functions.texi: Remove file, now redundant through
60105         doc/functions/*.texi.
60106
60107 2007-05-01  Bruno Haible  <bruno@clisp.org>
60108
60109         * modules/argp (Depends-on): Add sleep.
60110
60111 2007-05-01  Bruno Haible  <bruno@clisp.org>
60112
60113         * modules/sleep-tests: New file.
60114         * tests/test-sleep.c: New file.
60115
60116         * modules/sleep: New file.
60117         * lib/sleep.c: New file.
60118         * m4/sleep.m4: New file.
60119         * lib/unistd_.h (sleep): New declaration.
60120         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
60121         HAVE_SLEEP.
60122         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
60123         * doc/functions/sleep.texi: Document the sleep module.
60124
60125 2007-05-01  Bruno Haible  <bruno@clisp.org>
60126
60127         * lib/sigprocmask.h: Remove file.
60128         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
60129         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
60130         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
60131         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
60132         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
60133         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
60134         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
60135         HAVE_SIGSET_T as a shell variable.
60136         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
60137         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
60138         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
60139         (Depends-on): Add signal. Remove verify.
60140         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
60141         (Include): Mention <signal.h> instead of sigprocmask.h.
60142         * NEWS: Mention the change.
60143         * lib/fatal-signal.c: Don't include sigprocmask.h.
60144
60145 2007-05-01  Bruno Haible  <bruno@clisp.org>
60146
60147         * modules/signal: New file.
60148         * lib/signal_.h: New file.
60149         * m4/signal_h.m4: New file.
60150
60151 2007-05-01  Bruno Haible  <bruno@clisp.org>
60152
60153         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
60154         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
60155         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
60156         HAVE_WCTYPE_CTMP_BUG into wctype.h.
60157
60158 2007-05-01  Bruno Haible  <bruno@clisp.org>
60159
60160         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
60161         configure time.
60162         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
60163         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
60164         * modules/sys_stat (Makefile.am): Substitute their values into
60165         sys/stat.h.
60166
60167 2007-05-01  Bruno Haible  <bruno@clisp.org>
60168
60169         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
60170         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
60171         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
60172
60173 2007-05-01  Bruno Haible  <bruno@clisp.org>
60174
60175         * doc/header/assert.texi: Undo last change: don't mention the gnulib
60176         'assert' module here.
60177
60178 2007-05-01  Bruno Haible  <bruno@clisp.org>
60179
60180         * doc/functions/*.texi: New files.
60181         * doc/functions/google-ranking.txt: New file.
60182         * doc/gnulib.texi (Function Substitutes): New chapter.
60183         (ctime, inet_ntoa): Remove sections.
60184         * doc/ctime.texi: Remove file.
60185         * doc/inet_ntoa.texi: Remove file.
60186         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
60187         dependencies.
60188         (%.info): New rule, specifying a --reference-limit.
60189
60190 2007-05-01  Bruno Haible  <bruno@clisp.org>
60191
60192         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
60193
60194 2007-05-01  Bruno Haible  <bruno@clisp.org>
60195
60196         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
60197         the portability of 'mkdir' to mingw systems.
60198
60199 2007-05-01  Bruno Haible  <bruno@clisp.org>
60200
60201         * doc/headers/google-ranking.txt: New file.
60202
60203 2007-04-30  Eric Blake  <ebb9@byu.net>
60204
60205         Prefer fseeko to fseek.
60206         * modules/getpass (Depends-on): Add fseeko.
60207         * lib/getpass.c (getpass): Use fseeko, not fseek.
60208
60209 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
60210
60211         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
60212         assumes the sorting is stable, while most qsort implementations
60213         are not.  Use argument addresses to ensure they never compare as
60214         equal.
60215
60216         * tests/test-argp-2.sh (usage-indent test): Fix output
60217         (func_compare): Restore diff options
60218         * tests/test-argp.c: Restore #include "progname.h"
60219
60220 2007-04-29  Bruno Haible  <bruno@clisp.org>
60221
60222         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
60223         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60224         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
60225         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60226         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
60227         (configure.ac): Define CHECK_SNPRINTF_POSIX.
60228         (TESTS, check_PROGRAMS): Add test-snprintf.
60229         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
60230         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
60231         (TESTS, check_PROGRAMS): Add test-vsnprintf.
60232         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
60233         assertions that fail on HP-UX, OSF/1, or IRIX.
60234         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
60235
60236 2007-04-29  Bruno Haible  <bruno@clisp.org>
60237
60238         * MODULES.html.sh (posix_functions): Remove 'contents'.
60239
60240 2007-04-29  Karl Berry  <karl@gnu.org>
60241
60242         * config/srclist.txt (gendocs_template_min): new entry.
60243
60244 2007-04-29  Bruno Haible  <bruno@clisp.org>
60245
60246         Work around fpurge bug on BSD systems.
60247         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
60248         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
60249         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
60250         fpurge to rpl_fpurge if the system already has this function.
60251         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
60252         the case where the system already has this function. Correct invariants
60253         on BSD systems.
60254         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
60255         BSD systems.
60256
60257 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
60258
60259         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
60260         proposed by Sven Verdoolaege.
60261
60262         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
60263         options.
60264         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
60265         (usage and help tests): Update
60266
60267 2007-04-29  Bruno Haible  <bruno@clisp.org>
60268
60269         * tests/test-fflush.c (main): Use a file of size 17, not 10.
60270         Print more information in case of failure. Disable a test on BeOS.
60271
60272 2007-04-29  Bruno Haible  <bruno@clisp.org>
60273
60274         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
60275         This helps debugging on systems on which no gdb is available.
60276
60277 2007-04-29  Bruno Haible  <bruno@clisp.org>
60278
60279         * lib/freading.h: Improve comments.
60280         * lib/fwriting.h: Likewise.
60281         * tests/test-freading.c (main): Don't check freading immediately after
60282         repositioning. Needed for glibc.
60283
60284 2007-04-29  Bruno Haible  <bruno@clisp.org>
60285
60286         * lib/freading.c (freading): Trivial simplification.
60287
60288 2007-04-28  Bruno Haible  <bruno@clisp.org>
60289
60290         * tests/test-fwriting.c (main): Also test the interaction between
60291         fflush and fwriting.
60292         * modules/fwriting-tests (Depends-on): Add fflush.
60293
60294         * tests/test-freading.c (main): Also test the interaction between
60295         fflush and freading.
60296         * modules/freading-tests (Depends-on): Add fflush.
60297
60298 2007-04-28  Bruno Haible  <bruno@clisp.org>
60299
60300         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
60301         fseeko and ftello.
60302         Suggested by Eric Blake.
60303
60304 2007-04-28  Jim Meyering  <jim@meyering.net>
60305
60306         Avoid false-negative in gl_STDINT_H's C99 conformance test.
60307         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
60308         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
60309
60310 2007-04-27  Eric Blake  <ebb9@byu.net>
60311
60312         * doc/headers/assert.texi (assert.h): Document assert module use.
60313
60314 2007-04-27  Bruno Haible  <bruno@clisp.org>
60315
60316         * doc/headers/*.texi: New files.
60317         * doc/gnulib.texi (Header File Substitutes): New chapter.
60318         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
60319         dependencies.
60320         (standards.info ,standards.html, standards.dvi): Update dependencies.
60321         (mostlyclean, clean): New targets.
60322
60323 2007-04-27  Bruno Haible  <bruno@clisp.org>
60324
60325         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
60326         * modules/sysexits (Files, Makefile.am): Update.
60327
60328         * lib/sys_socket_.h: Renamed from lib/socket_.h.
60329         * modules/sys_socket (Files, Makefile.am): Update.
60330
60331         * lib/sys_stat_.h: Renamed from lib/stat_.h.
60332         * modules/sys_stat (Files, Makefile.am): Update.
60333
60334 2007-04-27  Eric Blake  <ebb9@byu.net>
60335
60336         * lib/freading.h: Improve comments.
60337         * lib/fwriting.h: Likewise.
60338         * lib/fflush.c: Likewise.
60339
60340         Fix closein for mingw.
60341         * modules/closein-tests: Add tests for closein.
60342         * tests/test-closein.c: New file.
60343         * tests/test-closein.sh: Likewise.
60344         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
60345         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
60346
60347 2007-04-27  Bruno Haible  <bruno@clisp.org>
60348
60349         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
60350         version is < 6.
60351         * lib/math_.h [__DECC]: Likewise.
60352         * lib/stdio_.h [__DECC]: Likewise.
60353         * lib/stdlib_.h [__DECC]: Likewise.
60354         * lib/string_.h [__DECC]: Likewise.
60355         * lib/time_.h [__DECC]: Likewise.
60356         * lib/wchar_.h [__DECC]: Likewise.
60357         * lib/wctype_.h [__DECC]: Likewise.
60358
60359 2007-04-27  Bruno Haible  <bruno@clisp.org>
60360
60361         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
60362
60363 2007-04-27  Bruno Haible  <bruno@clisp.org>
60364
60365         * lib/fflush.c: Add comments.
60366         * modules/fpurge-tests (Depends-on): Add fflush.
60367         * modules/freadable-tests (Depends-on): Likewise.
60368         * modules/fwritable-tests (Depends-on): Likewise.
60369
60370 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
60371
60372         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
60373         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
60374         Report by Bruno Haible <bruno@clisp.org>.
60375
60376 2007-04-26  Eric Blake  <ebb9@byu.net>
60377
60378         Fix fflush on mingw.
60379         * modules/fflush (Depends-on): Add freading.
60380         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
60381         but unread data.
60382
60383 2007-04-26  Eric Blake  <ebb9@byu.net>
60384         and Bruno Haible  <bruno@clisp.org>
60385
60386         Implement freading and fwriting.
60387         * lib/freading.c: New file.
60388         * lib/freading.h: Likewise.
60389         * m4/freading.m4: Likewise.
60390         * modules/freading: Likewise.
60391         * modules/freading-tests: Likewise.
60392         * tests/test-freading.c: Likewise.
60393         * lib/fwriting.c: New file.
60394         * lib/fwriting.h: Likewise.
60395         * m4/fwriting.m4: Likewise.
60396         * modules/fwriting: Likewise.
60397         * modules/fwriting-tests: Likewise.
60398         * tests/test-fwriting.c: Likewise.
60399         * MODULES.html.sh (File stream based Input/Output): Mention them.
60400
60401 2007-04-26  Bruno Haible  <bruno@clisp.org>
60402
60403         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
60404         'long' when we assume it.
60405         Suggested by Eric Blake.
60406
60407 2007-04-26  Bruno Haible  <bruno@clisp.org>
60408
60409         Ensure fseeko, ftello are declared on glibc systems.
60410         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
60411         * modules/fseeko (configure.ac-early): Likewise.
60412         * modules/ftello (configure.ac-early): Likewise.
60413         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
60414         AC_FUNC_FSEEKO for this.
60415         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
60416         (gl_CHECK_FSEEKO): Remove macro.
60417
60418 2007-04-26  Bruno Haible  <bruno@clisp.org>
60419
60420         * tests/test-fflush.c (main): Also check the ftell result after
60421         fflush and fseek/fseeko.
60422         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
60423         file descriptor position cache in the stream.
60424         * lib/fseeko.c (rpl_fseeko): Likewise.
60425
60426 2007-04-26  Bruno Haible  <bruno@clisp.org>
60427
60428         * modules/fflush-tests (Depends-on): Add fseeko.
60429
60430 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
60431             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60432
60433         * lib/argz_.h: ensure error_t definition is obtained in same
60434         mechanism system argz.h would have.
60435         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
60436         argz facilities are known bad.  Err on the side of caution if
60437         cross-compiling.
60438
60439 2007-04-25  Eric Blake  <ebb9@byu.net>
60440
60441         * lib/fpurge.c (includes): Use stdlib.h for free.
60442         * tests/test-fflush.c (main): Also test fflush-fseeko.
60443
60444 2007-04-25  Bruno Haible  <bruno@clisp.org>
60445
60446         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
60447         * lib/fseeko.c: New file.
60448         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
60449         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
60450         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
60451         gl_FUNC_FSEEKO.
60452         (gl_FUNC_FSEEKO): Invoke it.
60453         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
60454         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
60455         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
60456
60457 2007-04-25  Bruno Haible  <bruno@clisp.org>
60458
60459         * modules/fflush (Depends-on): Add ftello.
60460
60461 2007-04-25  Bruno Haible  <bruno@clisp.org>
60462
60463         * modules/ftello-tests: New file.
60464         * tests/test-ftello.c: New file.
60465
60466         * modules/ftello: New file.
60467         * m4/ftello.m4: New file.
60468         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
60469         HAVE_FTELLO.
60470         * lib/stdio_.h (ftello): New declaration.
60471         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
60472         HAVE_FTELLO.
60473
60474 2007-04-25  Bruno Haible  <bruno@clisp.org>
60475
60476         * modules/fseeko-tests: New file.
60477         * tests/test-fseeko.c: New file.
60478
60479         * modules/fseeko: New file.
60480         * m4/fseeko.m4: New file.
60481         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
60482         HAVE_FSEEKO.
60483         * lib/stdio_.h (fseeko): New declaration.
60484         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
60485         HAVE_FSEEKO.
60486
60487 2007-04-25  Bruno Haible  <bruno@clisp.org>
60488
60489         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
60490
60491 2007-04-25  Bruno Haible  <bruno@clisp.org>
60492
60493         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
60494         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
60495         * tests/test-unistd.c: Likewise.
60496         * tests/test-fcntl.c: Likewise.
60497
60498 2007-04-23  Eric Blake  <ebb9@byu.net>
60499
60500         * lib/fflush.c: Fix missing include.
60501         Reported by Bruno Haible.
60502
60503 2007-04-23  Bruno Haible  <bruno@clisp.org>
60504
60505         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
60506         Reported by Eric Blake.
60507
60508 2007-04-23  Bruno Haible  <bruno@clisp.org>
60509
60510         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
60511
60512 2007-04-23  Bruno Haible  <bruno@clisp.org>
60513
60514         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
60515
60516 2007-04-23  Bruno Haible  <bruno@clisp.org>
60517
60518         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
60519         Needed on HP-UX 11.
60520
60521 2007-04-16  Eric Blake  <ebb9@byu.net>
60522
60523         Make fflush rely on fpurge.
60524         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
60525         open coding all variants.
60526         * modules/fflush (Depends-on): Add fpurge and unistd.
60527         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
60528         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
60529
60530         Fix --with-tests compilation on cygwin.
60531         * modules/argmatch-tests (Makefile.am): List gnulib library first
60532         in LDADD.
60533         * modules/argp-tests (Makefile.am): Likewise.
60534         * modules/array-list-tests (Makefile.am): Likewise.
60535         * modules/array-oset-tests (Makefile.am): Likewise.
60536         * modules/avltree-list-tests (Makefile.am): Likewise.
60537         * modules/avltree-oset-tests (Makefile.am): Likewise.
60538         * modules/avltreehash-list-tests (Makefile.am): Likewise.
60539         * modules/carray-list-tests (Makefile.am): Likewise.
60540         * modules/dirname-tests (Makefile.am): Likewise.
60541         * modules/frexp-tests (Makefile.am): Likewise.
60542         * modules/isnanl-tests (Makefile.am): Likewise.
60543         * modules/linked-list-tests (Makefile.am): Likewise.
60544         * modules/linkedhash-list-tests (Makefile.am): Likewise.
60545         * modules/lock-tests (Makefile.am): Likewise.
60546         * modules/rbtree-list-tests (Makefile.am): Likewise.
60547         * modules/rbtree-oset-tests (Makefile.am): Likewise.
60548         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
60549         * modules/tls-tests (Makefile.am): Likewise.
60550         * modules/tsearch-tests (Makefile.am): Likewise.
60551         * modules/xvasprintf-tests (Makefile.am): Likewise.
60552
60553         Fix fpurge for cygwin.
60554         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
60555         value.
60556         * modules/fpurge-tests (Depends-on): Clean up trash.
60557
60558 2007-04-16  Simon Josefsson  <simon@josefsson.org>
60559
60560         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
60561
60562         * m4/autobuild.m4: Re-indent.
60563
60564 2007-04-13  Bruno Haible  <bruno@clisp.org>
60565
60566         * modules/fpurge-tests: New file.
60567         * tests/test-fpurge.c: New file.
60568
60569         * modules/fpurge: New file.
60570         * lib/fpurge.h: New file.
60571         * lib/fpurge.c: New file.
60572         * m4/fpurge.m4: New file.
60573
60574 2007-04-13  Bruno Haible  <bruno@clisp.org>
60575
60576         * modules/fbufmode-tests: New file.
60577         * tests/test-fbufmode.c: New file.
60578
60579         * modules/fbufmode: New file.
60580         * lib/fbufmode.h: New file.
60581         * lib/fbufmode.c: New file.
60582         * m4/fbufmode.m4: New file.
60583
60584 2007-04-13  Bruno Haible  <bruno@clisp.org>
60585
60586         * modules/fwritable-tests: New file.
60587         * tests/test-fwritable.c: New file.
60588
60589         * modules/fwritable: New file.
60590         * lib/fwritable.h: New file.
60591         * lib/fwritable.c: New file.
60592         * m4/fwritable.m4: New file.
60593
60594 2007-04-13  Bruno Haible  <bruno@clisp.org>
60595
60596         * modules/freadable-tests: New file.
60597         * tests/test-freadable.c: New file.
60598
60599         * modules/freadable: New file.
60600         * lib/freadable.h: New file.
60601         * lib/freadable.c: New file.
60602         * m4/freadable.m4: New file.
60603
60604 2007-04-13  Bruno Haible  <bruno@clisp.org>
60605
60606         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
60607         MOSTLYCLEANFILES.
60608
60609 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60610
60611         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
60612         gzip bootstrap.conf to avoid dragging in i18n machinery.
60613         (gnulib_tool_option): Use it.
60614
60615 2007-04-13  Bruno Haible  <bruno@clisp.org>
60616
60617         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
60618         %F directives.
60619         * tests/test-vasprintf-posix.c (test_function): Likewise.
60620         * tests/test-snprintf-posix.h (test_function): Likewise.
60621         * tests/test-sprintf-posix.h (test_function): Likewise.
60622         * tests/test-fprintf-posix.h (test_function): Likewise.
60623         * tests/test-printf-posix.h (test_function): Likewise.
60624         * tests/test-fprintf-posix.out: Likewise.
60625
60626 2007-04-13  Bruno Haible  <bruno@clisp.org>
60627
60628         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
60629         * modules/tls-tests (configure.ac): Likewise.
60630         Reported by Arto C. Nirkko <anirkko@insel.ch>.
60631
60632 2007-04-13  Bruno Haible  <bruno@clisp.org>
60633
60634         * lib/tls.c (glthread_tls_get): Fix return type.
60635         Patch by Arto C. Nirkko <anirkko@insel.ch>.
60636
60637 2007-04-12  Eric Blake  <ebb9@byu.net>
60638
60639         * modules/gettime (Depends-on): Remove gettime.
60640         Reported by Dmitry V. Levin.
60641
60642 2007-04-12  Bruno Haible  <bruno@clisp.org>
60643
60644         * modules/fflush (Include): Mention <stdio.h>.
60645         * modules/strtoimax (Include): Mention <inttypes.h>.
60646         * modules/strtoumax (Include): Likewise.
60647
60648 2007-04-12  Eric Blake  <ebb9@byu.net>
60649
60650         * .cvsignore: New file.
60651         * .gitignore: Likewise.
60652
60653 2007-04-12  Bruno Haible  <bruno@clisp.org>
60654
60655         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
60656         not before, since $(LDADD) often contains libgnu.a.
60657         * modules/striconv-tests (test_striconv_LDADD): Likewise.
60658         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
60659         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
60660         Needed on Cygwin.
60661
60662 2007-04-12  Eric Blake  <ebb9@byu.net>
60663
60664         Work around glibc's failure to flush stdin on fclose.
60665         * lib/closein.c (close_stdin): Flush stdin before closing.
60666
60667         Work around glibc's failure to reset seekable stdin on exit.
60668         * modules/closein: New module.
60669         * lib/closein.c: New file.
60670         * lib/closein.h: Likewise.
60671         * m4/closein.m4: Likewise.
60672         * MODULES.html.sh (File stream based Input/Output): Document it.
60673
60674 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60675
60676         * gnulib-tool: Rename generated 'autobuild' script to
60677         'do-autobuild' in --create-megatestdir output.
60678
60679         * doc/gnulib.texi (Build robot for gnulib): Fix.
60680
60681 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60682
60683         * modules/sysexits (Depends-on): Add absolute-header.
60684
60685 2007-04-12  Eric Blake  <ebb9@byu.net>
60686
60687         No need to preserve errno on success.
60688         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
60689         Reported by Bruno Haible.
60690
60691 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60692
60693         * MODULES.html.sh (Support for maintaining and releasing
60694         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
60695
60696 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60697
60698         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
60699
60700 2007-04-12  Simon Josefsson  <simon@josefsson.org>
60701
60702         * modules/autobuild: New module.
60703
60704         * m4/autobuild.m4: New file.
60705
60706 2007-04-11  Bruno Haible  <bruno@clisp.org>
60707
60708         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
60709         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
60710         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
60711         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
60712         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60713         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60714         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60715         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60716         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60717         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60718         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
60719         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60720         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60721         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
60722         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60723         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60724         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
60725         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60726         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60727         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
60728         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60729         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60730         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
60731         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60732         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60733         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
60734         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
60735         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
60736         Reported by Eric Blake.
60737
60738 2007-04-11  Bruno Haible  <bruno@clisp.org>
60739
60740         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
60741
60742 2007-04-10  Bruno Haible  <bruno@clisp.org>
60743
60744         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
60745         for NaN and Infinity. Needed on FreeBSD 6.1.
60746         * tests/test-vasnprintf-posix.c (test_function): Undo last change
60747         regarding results for "%010a" of Infinity and NaN.
60748         * tests/test-vasprintf-posix.c (test_function): Likewise.
60749         * tests/test-snprintf-posix.h (test_function): Likewise.
60750         * tests/test-sprintf-posix.h (test_function): Likewise.
60751         * tests/test-fprintf-posix.h (test_function): Likewise.
60752         * tests/test-printf-posix.h (test_function): Likewise.
60753         * tests/test-fprintf-posix.out: Likewise.
60754
60755 2007-04-10  Bruno Haible  <bruno@clisp.org>
60756
60757         * modules/locale-tests: New file.
60758         * tests/test-locale.c: New file.
60759
60760         * modules/locale: New file.
60761         * lib/locale_.h: New file.
60762         * m4/locale_h.m4: New file.
60763
60764 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
60765             Bruno Haible  <bruno@clisp.org>
60766
60767         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
60768         be determined, test for availability of the copysignf, copysign,
60769         copysignl functions.
60770         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
60771         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
60772         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
60773
60774 2007-04-09  Eric Blake  <ebb9@byu.net>
60775
60776         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
60777         * modules/stdio (Makefile.am): Support fflush.
60778         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
60779         * modules/fflush: New file.
60780         * lib/fflush.c: Likewise.
60781         * m4/fflush.m4: Likewise.
60782         * modules/fflush-tests: New test.
60783         * tests/test-fflush.c: Likewise.
60784         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
60785
60786 2007-04-06  Bruno Haible  <bruno@clisp.org>
60787
60788         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
60789         (VASNPRINTF): Use signbit for faster determination whether to print a
60790         minus sign.
60791         * modules/vasnprintf (Files): Remove lib/float+.h.
60792         * modules/fprintf-posix (Depends-on): Add signbit.
60793         * modules/snprintf-posix (Depends-on): Likewise.
60794         * modules/sprintf-posix (Depends-on): Likewise.
60795         * modules/vasnprintf-posix (Depends-on): Likewise.
60796         * modules/vasprintf-posix (Depends-on): Likewise.
60797         * modules/vfprintf-posix (Depends-on): Likewise.
60798         * modules/vsnprintf-posix (Depends-on): Likewise.
60799         * modules/vsprintf-posix (Depends-on): Likewise.
60800
60801 2007-04-06  Bruno Haible  <bruno@clisp.org>
60802
60803         * tests/test-frexp.c (main): Test also the sign bit of zero results.
60804         * tests/test-frexpl.c (main): Likewise.
60805         * tests/test-ldexpl.c (main): Likewise.
60806         * modules/frexp-tests (Depends-on): Add signbit.
60807         * modules/frexpl-tests (Depdends-on): Likewise.
60808         * modules/ldexpl-tests (Depdends-on): Likewise.
60809
60810 2007-04-06  Bruno Haible  <bruno@clisp.org>
60811
60812         * modules/signbit-tests: New file.
60813         * tests/test-signbit.c: New file.
60814
60815         * modules/signbit: New file.
60816         * lib/signbitf.c: New file.
60817         * lib/signbitd.c: New file.
60818         * lib/signbitl.c: New file.
60819         * m4/signbit.m4: New file.
60820         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
60821         (signbit): New macro.
60822         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
60823         REPLACE_SIGNBIT.
60824         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
60825         REPLACE_FREXPL into math.h.
60826
60827 2007-04-06  Bruno Haible  <bruno@clisp.org>
60828
60829         * modules/isnanf-nolibm-tests: New file.
60830         * tests/test-isnanf.c: New file.
60831
60832         * modules/isnanf-nolibm: New file.
60833         * lib/isnanf.h: New file.
60834         * lib/isnanf.c: New file.
60835         * lib/isnan.c: Consider the USE_FLOAT macro.
60836         * m4/isnanf.m4: New file.
60837
60838 2007-04-06  Bruno Haible  <bruno@clisp.org>
60839
60840         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
60841         (Link): New section.
60842
60843         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
60844
60845 2007-04-06  Bruno Haible  <bruno@clisp.org>
60846
60847         Assume the 'long double' type.
60848         * m4/longdouble.m4: Remove file.
60849         * config/srclist.txt: Don't mention longdouble.m4.
60850         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
60851         * lib/float+.h: Likewise.
60852         * lib/frexp.c: Likewise.
60853         * lib/printf-args.h: Likewise.
60854         * lib/printf-args.c: Likewise.
60855         * lib/printf-frexp.c: Likewise.
60856         * lib/printf-parse.c: Likewise.
60857         * lib/vasnprintf.c: Likewise.
60858         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
60859         * m4/intl.m4: Likewise.
60860         * m4/isnanl.m4: Likewise.
60861         * m4/printf.m4: Likewise.
60862         * m4/printf-frexpl.m4: Likewise.
60863         * m4/vasnprintf.m4: Likewise.
60864         * modules/allocsa (Files): Remove m4/longdouble.m4.
60865         * modules/gettext (Files): Likewise.
60866         * modules/relocatable-prog-wrapper (Files): Likewise.
60867         * modules/vasnprintf (Files): Likewise.
60868         * modules/isnanl (Files): Likewise.
60869         (Include): Simplify.
60870         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
60871         (Include): Simplify.
60872         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
60873         (Include): Simplify.
60874         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
60875         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60876         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
60877         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60878         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60879         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60880         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
60881         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60882         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
60883         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60884         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
60885         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
60886         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
60887         * tests/test-isnanl.c: Likewise.
60888         * tests/test-snprintf-posix.h: Likewise.
60889         * tests/test-sprintf-posix.h: Likewise.
60890         * tests/test-vasnprintf-posix.c: Likewise.
60891         * tests/test-vasnprintf-posix2.c: Likewise.
60892         * tests/test-vasprintf-posix.c: Likewise.
60893
60894 2007-04-06  Bruno Haible  <bruno@clisp.org>
60895
60896         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
60897         * lib/math_.h [__DECC]: Include the overridden include file through
60898         #include_next, outside the double-inclusion guard.
60899         * lib/stdio_.h [__DECC]: Likewise.
60900         * lib/stdlib_.h [__DECC]: Likewise.
60901         * lib/string_.h [__DECC]: Likewise.
60902         * lib/time_.h [__DECC]: Likewise.
60903         * lib/wchar_.h [__DECC]: Likewise.
60904         * lib/wctype_.h [__DECC]: Likewise.
60905         * lib/inttypes_.h [__DECC]: Likewise.
60906         Reported by Albert Chin <china@thewrittenword.com> in
60907         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
60908
60909 2007-04-04  Eric Blake  <ebb9@byu.net>
60910
60911         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
60912         1.5.x.
60913
60914 2007-04-04  Bruno Haible  <bruno@clisp.org>
60915
60916         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
60917         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
60918
60919 2007-04-04  Bruno Haible  <bruno@clisp.org>
60920
60921         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
60922         results for "%010a" of Infinity and NaN.
60923         * tests/test-vasprintf-posix.c (test_function): Likewise.
60924         * tests/test-snprintf-posix.h (test_function): Likewise.
60925         * tests/test-sprintf-posix.h (test_function): Likewise.
60926         * tests/test-fprintf-posix.h (test_function): Remove these tests.
60927         * tests/test-printf-posix.h (test_function): Likewise.
60928         * tests/test-fprintf-posix.out: Update.
60929         Needed for FreeBSD 6.1.
60930
60931 2007-04-04  Bruno Haible  <bruno@clisp.org>
60932
60933         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
60934         directly used by the gnulib modules nor by gnulib-tool.
60935
60936 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
60937
60938         * DEPENDENCIES: Give overall description of version dependency
60939         desirability.  Use more-typical names for apps.
60940         Add shell, coreutils, diffutils, grep, tar, gzip.
60941
60942 2007-04-04  Simon Josefsson  <simon@josefsson.org>
60943
60944         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
60945
60946 2007-04-04  Karl Berry  <karl@gnu.org>
60947
60948         * MODULES.html.sh (func_module): missing '.
60949
60950 2007-04-03  Bruno Haible  <bruno@clisp.org>
60951
60952         * modules/argmatch-tests (Makefile.am): New variable
60953         test_argmatch_LDADD.
60954         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
60955         * modules/array-list-tests (Makefile.am): New variable
60956         test_array_list_LDADD.
60957         * modules/array-oset-tests (Makefile.am): New variable
60958         test_array_oset_LDADD.
60959         * modules/avltree-list-tests (Makefile.am): New variable
60960         test_avltree_list_LDADD.
60961         * modules/avltree-oset-tests (Makefile.am): New variable
60962         test_avltree_oset_LDADD.
60963         * modules/avltreehash-list-tests (Makefile.am): New variable
60964         test_avltreehash_list_LDADD.
60965         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
60966         test_canonicalize_lgpl_LDADD.
60967         * modules/carray-list-tests (Makefile.am): New variable
60968         test_carray_list_LDADD.
60969         * modules/dirname-tests (Makefile.am): New variable
60970         test_dirname_LDADD.
60971         * modules/linked-list-tests (Makefile.am): New variable
60972         test_linked_list_LDADD.
60973         * modules/linkedhash-list-tests (Makefile.am): New variable
60974         test_linkedhash_list_LDADD.
60975         * modules/rbtree-list-tests (Makefile.am): New variable
60976         test_rbtree_list_LDADD.
60977         * modules/rbtree-oset-tests (Makefile.am): New variable
60978         test_rbtree_oset_LDADD.
60979         * modules/rbtreehash-list-tests (Makefile.am): New variable
60980         test_rbtreehash_list_LDADD.
60981         * modules/xvasprintf-tests (Makefile.am): New variable
60982         test_xvasprintf_LDADD.
60983         Reported by Eric Blake.
60984
60985 2007-04-03  Eric Blake  <ebb9@byu.net>
60986
60987         * DEPENDENCIES: Weaken m4 requirements.
60988
60989 2007-04-03  Bruno Haible  <bruno@clisp.org>
60990
60991         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
60992         * modules/isnanl-tests (configure.ac): Likewise.
60993
60994 2007-04-03  Ben Pfaff  <blp@gnu.org>
60995
60996         * modules/iconv_open: Add $(srcdir)/ to source directory
60997         references in Makefile fragments that call gperf, to fix VPATH
60998         builds.
60999
61000 2007-04-03  Bruno Haible  <bruno@clisp.org>
61001
61002         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
61003         * lib/ldexpl.c: Undo last change.
61004
61005 2007-04-03  Bruno Haible  <bruno@clisp.org>
61006
61007         * modules/printf-frexpl (Depends-on): Undo last change.
61008         (Files): Add m4/ldexpl.m4.
61009
61010 2007-04-03  Bruno Haible  <bruno@clisp.org>
61011
61012         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
61013         * modules/isnanl (Link): New section.
61014
61015         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
61016         * modules/frexp (Link): New section.
61017
61018         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
61019         * modules/frexpl (Link): New section.
61020
61021         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
61022         * modules/ldexpl (Link): New section.
61023
61024 2007-04-03  Bruno Haible  <bruno@clisp.org>
61025
61026         * modules/TEMPLATE-EXTENDED: New file.
61027         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
61028
61029 2007-04-03  Bruno Haible  <bruno@clisp.org>
61030
61031         * DEPENDENCIES: New file.
61032         Suggested by Simon Josefsson.
61033
61034 2007-04-03  Bruno Haible  <bruno@clisp.org>
61035
61036         * doc/gnulib.texi: Escape @.
61037
61038 2007-04-03  James Youngman  <jay@gnu.org>
61039         and Paul Eggert  <eggert@cs.ucla.edu>
61040
61041         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
61042         birthtime on all systems that have birthtime, not just those which
61043         use st_birthtimensec rather than st_birthtim.  Putting zero in
61044         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
61045         that the birth time is not available for files on an NFS mount.
61046
61047 2007-04-03  Simon Josefsson  <simon@josefsson.org>
61048
61049         * modules/memxor: Move back from crypto/, suggested by Bruno.
61050         * modules/crypto/hmac-sha1: Fix memxor dependency.
61051
61052         * modules/crypto/gc: Moved from ../.
61053
61054 2007-04-02  Eric Blake  <ebb9@byu.net>
61055
61056         * lib/ldexpl.c (includes): Avoid libm.
61057
61058         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
61059
61060 2007-04-02  Bruno Haible  <bruno@clisp.org>
61061
61062         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
61063         on IRIX.
61064
61065 2007-04-02  Bruno Haible  <bruno@clisp.org>
61066
61067         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
61068         x86 or x86_64 platforms running MacOS X.
61069         Reported by Ryan Schmidt <@ryandesign.com>.
61070
61071 2007-04-02  Bruno Haible  <bruno@clisp.org>
61072
61073         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
61074         i386.
61075
61076 2007-04-01  Simon Josefsson  <simon@josefsson.org>
61077
61078         * modules/crypto/arcfour: Moved from ../.
61079         * modules/crypto/arcfour-tests: Moved from ../.
61080         * modules/crypto/arctwo: Moved from ../.
61081         * modules/crypto/arctwo-tests: Moved from ../.
61082         * modules/crypto/des: Moved from ../.
61083         * modules/crypto/des-tests: Moved from ../.
61084         * modules/crypto/gc-arcfour: Moved from ../.
61085         * modules/crypto/gc-arcfour-tests: Moved from ../.
61086         * modules/crypto/gc-arctwo: Moved from ../.
61087         * modules/crypto/gc-arctwo-tests: Moved from ../.
61088         * modules/crypto/gc-des: Moved from ../.
61089         * modules/crypto/gc-des-tests: Moved from ../.
61090         * modules/crypto/gc-hmac-md5: Moved from ../.
61091         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
61092         * modules/crypto/gc-hmac-sha1: Moved from ../.
61093         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
61094         * modules/crypto/gc-md2: Moved from ../.
61095         * modules/crypto/gc-md2-tests: Moved from ../.
61096         * modules/crypto/gc-md4: Moved from ../.
61097         * modules/crypto/gc-md4-tests: Moved from ../.
61098         * modules/crypto/gc-md5: Moved from ../.
61099         * modules/crypto/gc-md5-tests: Moved from ../.
61100         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
61101         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
61102         * modules/crypto/gc-random: Moved from ../.
61103         * modules/crypto/gc-rijndael: Moved from ../.
61104         * modules/crypto/gc-rijndael-tests: Moved from ../.
61105         * modules/crypto/gc-sha1: Moved from ../.
61106         * modules/crypto/gc-sha1-tests: Moved from ../.
61107         * modules/crypto/gc-tests: Moved from ../.
61108         * modules/crypto/hmac-md5: Moved from ../.
61109         * modules/crypto/hmac-md5-tests: Moved from ../.
61110         * modules/crypto/hmac-sha1: Moved from ../.
61111         * modules/crypto/hmac-sha1-tests: Moved from ../.
61112         * modules/crypto/md2: Moved from ../.
61113         * modules/crypto/md2-tests: Moved from ../.
61114         * modules/crypto/md4: Moved from ../.
61115         * modules/crypto/md4-tests: Moved from ../.
61116         * modules/crypto/md5: Moved from ../.
61117         * modules/crypto/md5-tests: Moved from ../.
61118         * modules/crypto/memxor: Moved from ../.
61119         * modules/crypto/rijndael: Moved from ../.
61120         * modules/crypto/rijndael-tests: Moved from ../.
61121         * modules/crypto/sha1: Moved from ../.
61122
61123 2007-03-30  James Youngman  <jay@gnu.org>
61124
61125         * tests/test-stat-time.c (prepare_test): use chmod() rather than
61126         rename() to change the ctime of a file (because ctime is unaffected
61127         by rename on jfs2 on AIX 5.1).
61128         (main): Start by doing cleanup, in case a previous run failed leaving
61129         test files behind.
61130
61131 2007-03-31  Bruno Haible  <bruno@clisp.org>
61132
61133         Support old proprietary implementations of iconv.
61134         * modules/iconv_open: New file.
61135         * lib/iconv_.h: New file.
61136         * m4/iconv_h.m4: New file.
61137         * lib/iconv_open.c: New file.
61138         * lib/iconv_open-aix.gperf: New file.
61139         * lib/iconv_open-hpux.gperf: New file.
61140         * lib/iconv_open-irix.gperf: New file.
61141         * lib/iconv_open-osf.gperf: New file.
61142         * m4/iconv_open.m4: New file.
61143         * modules/linebreak (Depends-on): Add iconv_open.
61144         * modules/striconv (Depends-on): Likewise.
61145         * modules/striconveh (Depends-on): Likewise.
61146         * modules/unicodeio (Depends-on): Likewise.
61147         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
61148         (iconv_t)(-1).
61149         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
61150         conversion if cd is (iconv_t)(-1).
61151         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
61152         is not possible.
61153
61154 2007-03-31  Bruno Haible  <bruno@clisp.org>
61155
61156         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61157         work on Solaris either. Protect also second use of "autodetect_jp".
61158
61159 2007-03-31  Bruno Haible  <bruno@clisp.org>
61160
61161         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
61162         the function is not present.
61163
61164 2007-03-31  Bruno Haible  <bruno@clisp.org>
61165
61166         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
61167         the function is not present.
61168
61169 2007-03-31  Bruno Haible  <bruno@clisp.org>
61170
61171         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
61172         a bug in HP-UX iconv_open().
61173
61174 2007-03-31  Bruno Haible  <bruno@clisp.org>
61175
61176         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
61177         (Mathematics <math.h>): New section, add fpieee.
61178         (Input/output <stdio.h>): Add fseterr.
61179         (Mathematics <math.h>): New section, add printf-frexp.
61180         (Container data structures): Add sublist.
61181         (Core language properties): Add fpucw, inline.
61182         (Functions for greatest-width integer types <inttypes.h>): Add
61183         imaxabs, imaxdiv, inttypes.
61184         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
61185         isnanl-nolibm, ldexp.
61186         (Mathematics <math.h>): New section, add printf-frexpl.
61187         (Support for systems lacking POSIX:2001): Add fprintf-posix,
61188         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
61189         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
61190         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
61191         (Unicode string functions): Add unistr/u*-mbtoucr.
61192         (Java): Add javacomp-script, javaexec-script.
61193         (C#): Add csharpcomp-script, csharpexec-script.
61194         (Support for building libraries and executables): Add havelib,
61195         relocatable-*.
61196         (Support for maintaining and releasing projects): Renamed from
61197         'Support for maintaining and release projects'. Add announce-gen.
61198
61199 2007-03-31  Bruno Haible  <bruno@clisp.org>
61200
61201         * README: Talk primarily about git.
61202         (git and CVS): Renamed from CVS.
61203         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
61204         gnulib is available through git.
61205         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
61206
61207 2007-03-30  Bruno Haible  <bruno@clisp.org>
61208
61209         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
61210         * lib/poll_.h: Likewise.
61211         * lib/stat_.h: Likewise.
61212         * lib/sys_time_.h: Likewise.
61213         * lib/sysexit_.h: Likewise.
61214         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
61215         * lib/stdbool_.h: Likewise.
61216         * lib/byteswap_.h: Add double-inclusion guard.
61217
61218 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
61219
61220         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
61221
61222 2007-03-30  Karl Berry  <karl@gnu.org>
61223
61224         * config/srclist-update: double space after USA in the license
61225         substitution, since that's how it's usually (?) written.
61226
61227 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
61228
61229         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
61230         reported by Bruno Haible.
61231
61232 2007-03-29  Bruno Haible  <bruno@clisp.org>
61233
61234         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
61235         a bug in AIX iconv().
61236
61237 2007-03-29  Bruno Haible  <bruno@clisp.org>
61238
61239         * modules/ldexpl-tests: New file.
61240         * tests/test-ldexpl.c: New file.
61241
61242 2007-03-29  Bruno Haible  <bruno@clisp.org>
61243
61244         * lib/ldexpl.c: Include fpucw.h.
61245         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
61246         multiplication.
61247         * modules/ldexpl (Depends-on): Add fpucw.
61248
61249 2007-03-29  Bruno Haible  <bruno@clisp.org>
61250
61251         * modules/ldexpl: New file.
61252         * m4/ldexpl.m4: New file.
61253         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
61254         set.
61255         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
61256         REPLACE_LDEXPL.
61257         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
61258         REPLACE_LDEXPL.
61259         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
61260         gl_FUNC_LDEXPL_WORKS.
61261         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
61262         * modules/mathl (Files): Remove lib/ldexpl.c.
61263         (Depends-on): Add ldexpl.
61264
61265 2007-03-29  Bruno Haible  <bruno@clisp.org>
61266
61267         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
61268
61269 2007-03-29  Bruno Haible  <bruno@clisp.org>
61270
61271         * tests/test-striconveh.c (main): Don't assume that a direct conversion
61272         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
61273         and possibly also HP-UX.
61274         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
61275         work on AIX, IRIX, HP-UX, OSF/1.
61276         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
61277         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
61278         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
61279         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
61280         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
61281         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
61282
61283 2007-03-29  Bruno Haible  <bruno@clisp.org>
61284
61285         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
61286
61287 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61288
61289         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
61290         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
61291
61292 2007-03-29  Eric Blake  <ebb9@byu.net>
61293
61294         * lib/acl-internal.h: Remove redundant include.
61295         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
61296         Cygwin when a file is locked.
61297
61298 2007-03-29  Bruno Haible  <bruno@clisp.org>
61299
61300         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
61301         file.
61302         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
61303
61304 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
61305
61306         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
61307         try to remove a parent directory if the child couldn't be removed
61308         (except for the first rmdir, which could fail because the child
61309         doesn't exist).  Problem reported by Jeff Blaine in
61310         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
61311
61312 2007-03-28  Bruno Haible  <bruno@clisp.org>
61313
61314         * lib/striconveh.c (utf8conv_carefully): New function.
61315         (mem_cd_iconveh_internal): Invoke it.
61316
61317 2007-03-28  Bruno Haible  <bruno@clisp.org>
61318
61319         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
61320         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
61321         input.
61322         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
61323         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
61324         unistr/u8-uctomb.
61325
61326 2007-03-28  Bruno Haible  <bruno@clisp.org>
61327
61328         * modules/unistr/u8-mbtoucr: New file.
61329         * lib/unistr/u8-mbtoucr.c: New file.
61330         * modules/unistr/u16-mbtoucr: New file.
61331         * lib/unistr/u16-mbtoucr.c: New file.
61332         * modules/unistr/u16-mbtoucr: New file.
61333         * lib/unistr/u16-mbtoucr.c: New file.
61334         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
61335
61336 2007-03-27  Simon Josefsson  <simon@josefsson.org>
61337             Bruno Haible  <bruno@clisp.org>
61338
61339         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
61340         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
61341         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
61342
61343         * m4/stdio_h.m4: Add stubs for vasprintf too.
61344
61345         * modules/stdio: Support vasprintf in sed command.
61346
61347         * modules/vasprintf: Depend on stdio for prototypes.  Remove
61348         vasprintf.h.  Add stdio module indicator.
61349
61350         * lib/stdio_.h: Declare asprintf and vasprintf, based on
61351         vasprintf.h.
61352
61353         * lib/vasprintf.h: File removed.
61354
61355         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
61356         * lib/vasprintf.c: Ditto.
61357         * lib/xvasprintf.c: Ditto.
61358         * tests/test-vasprintf-posix.c: Ditto.
61359         * tests/test-vasprintf.c: Ditto.
61360
61361 2007-03-27  Bruno Haible  <bruno@clisp.org>
61362
61363         Make vasnprintf multithread-safe.
61364         * lib/vasnprintf.c (decimal_point_char): New function.
61365         (VASNPRINTF): Use it.
61366         Suggested by Simon Josefsson.
61367
61368 2007-03-27  Eric Blake  <ebb9@byu.net>
61369
61370         Support sub-second birthtime on cygwin.
61371         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
61372         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
61373         (get_stat_birthtime): Also work with st_birthtim.
61374
61375 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
61376
61377         * lib/stat-time.h (USE_BIRTHTIME): Remove.
61378         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
61379         (get_stat_birthtime_ns): Do not try to use "spare" fields.
61380         (get_stat_birthtime_ns): Simplify compile-time tests.
61381         (get_stat_birthtime): Change the API to look like
61382         get_stat_mtime etc., except return a negative tv_nsec on error.
61383         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
61384         Don't check for "spare" fields.
61385         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
61386         or for struct stat.st_birthtime, as these tests aren't used.
61387         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
61388
61389 2007-03-27  Bruno Haible  <bruno@clisp.org>
61390
61391         * lib/stat-time.h: Include <sys/stat.h>.
61392
61393 2007-03-27  James Youngman  <jay@gnu.org>
61394
61395         * lib/stat-time.h (get_stat_birthtime): New function for
61396           retrieving st_birthtime as provided by UFS2 (hence *BSD).
61397         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
61398           and its variants.
61399         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
61400         * modules/stat-time-test: New file.
61401         * tests/test-stat-time.c: New test, devised by Bruno Haible.
61402
61403 2007-03-26  Bruno Haible  <bruno@clisp.org>
61404
61405         Better support of signalling NaNs.
61406         * lib/atanl.c: Include isnanl.h.
61407         (atanl): Perform test for NaN at the beginning of the function and
61408         through a call to isnanl.
61409         * lib/cosl.c: Include isnanl.h.
61410         (cosl): Perform test for NaN at the beginning of the function and
61411         through a call to isnanl.
61412         * lib/ldexpl.c: Include isnanl.h.
61413         (ldexpl): Perform test for NaN through a call to isnanl.
61414         * lib/logl.c: Include isnanl.h.
61415         (logl): Perform test for NaN at the beginning of the function and
61416         through a call to isnanl.
61417         * lib/sinl.c: Include isnanl.h.
61418         (sinl): Perform test for NaN at the beginning of the function and
61419         through a call to isnanl.
61420         * lib/sqrtl.c: Include isnanl.h.
61421         (sqrtl): Perform test for NaN at the beginning of the function and
61422         through a call to isnanl.
61423         * lib/tanl.c: Include isnanl.h.
61424         (tanl): Perform test for NaN at the beginning of the function and
61425         through a call to isnanl.
61426         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
61427         * modules/mathl (Depends-on): Add isnanl.
61428
61429 2007-03-26  Eric Blake  <ebb9@byu.net>
61430
61431         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
61432         regression in logic sense of previous patch.
61433
61434 2007-03-26  Bruno Haible  <bruno@clisp.org>
61435
61436         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
61437         unportable shell command "if ! ...".
61438         Reported by Ralf Wildenhues.
61439
61440 2007-03-25  Bruno Haible  <bruno@clisp.org>
61441
61442         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
61443         <sysexits.h> file, and only add EX_CONFIG.
61444         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
61445         absolute file name and whether it is sufficient. Substitute also
61446         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
61447         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
61448         ABSOLUTE_SYSEXITS_H into sysexits.h.
61449
61450 2007-03-25  Bruno Haible  <bruno@clisp.org>
61451
61452         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
61453         hints is NULL.
61454
61455 2007-03-25  Bruno Haible  <bruno@clisp.org>
61456
61457         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
61458         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
61459
61460 2007-03-25  Bruno Haible  <bruno@clisp.org>
61461
61462         * lib/vasnprintf.c: Include langinfo.h.
61463         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
61464         multithread-safe.
61465         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
61466         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
61467         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61468         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61469         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61470         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61471         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61472         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
61473         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61474         Reported by Simon Josefsson.
61475
61476 2007-03-25  Bruno Haible  <bruno@clisp.org>
61477
61478         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
61479         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
61480         * modules/vasnprintf (Depends-on): Add stdint.
61481
61482 2007-03-25  Bruno Haible  <bruno@clisp.org>
61483
61484         * modules/fpieee: New file.
61485         * m4/fpieee.m4: New file.
61486         * modules/isnan-nolibm (Depends-on): Add fpieee.
61487         * modules/isnanl-nolibm (Depends-on): Add fpieee.
61488         * modules/isnanl (Depends-on): Add fpieee.
61489
61490 2007-03-25  Bruno Haible  <bruno@clisp.org>
61491
61492         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
61493
61494 2007-03-25  Bruno Haible  <bruno@clisp.org>
61495
61496         Avoid test failures on IRIX 6.5.
61497         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
61498         (main): Use it.
61499         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
61500         macros.
61501         (main): Use them.
61502
61503 2007-03-25  Bruno Haible  <bruno@clisp.org>
61504
61505         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
61506         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
61507         exists but doesn't work.
61508         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
61509         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
61510         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
61511         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
61512         math.h.
61513
61514 2007-03-25  Bruno Haible  <bruno@clisp.org>
61515
61516         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
61517         returns inf. Needed on IRIX 6.5.
61518
61519 2007-03-25  Bruno Haible  <bruno@clisp.org>
61520
61521         * tests/test-frexpl.c: Include isnanl-nolibm.h.
61522         (main): Use isnanl instead of x != x idiom.
61523         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
61524
61525         * tests/test-frexp.c: Include isnan.h.
61526         (main): Use isnan instead of x != x idiom.
61527         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
61528
61529 2007-03-25  Bruno Haible  <bruno@clisp.org>
61530
61531         * tests/test-frexp.c (NaN): New function/macro.
61532         (main): Use it instead of 0.0 / 0.0.
61533         * tests/test-isnan.c (NaN): New function/macro.
61534         (main): Use it instead of 0.0 / 0.0.
61535         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
61536         (test_function): Use it instead of 0.0 / 0.0.
61537         * tests/test-vasprintf-posix.c (NaN): New function/macro.
61538         (test_function): Use it instead of 0.0 / 0.0.
61539         * tests/test-snprintf-posix.h (NaN): New function/macro.
61540         (test_function): Use it instead of 0.0 / 0.0.
61541         * tests/test-sprintf-posix.h (NaN): New function/macro.
61542         (test_function): Use it instead of 0.0 / 0.0.
61543         * tests/test-fprintf-posix.h (NaN): New function/macro.
61544         (test_function): Use it instead of 0.0 / 0.0.
61545         * tests/test-printf-posix.h (NaN): New function/macro.
61546         (test_function): Use it instead of 0.0 / 0.0.
61547
61548         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
61549
61550 2007-03-25  Bruno Haible  <bruno@clisp.org>
61551
61552         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
61553
61554 2007-03-25  Bruno Haible  <bruno@clisp.org>
61555
61556         * lib/regexec.c (merge_state_with_log): Make static.
61557
61558 2007-03-25  Bruno Haible  <bruno@clisp.org>
61559
61560         * lib/trigl.c (kernel_rem_pio2): Make static.
61561
61562 2007-03-25  Bruno Haible  <bruno@clisp.org>
61563
61564         * lib/sincosl.c (sincosl_table): Make static.
61565
61566 2007-03-25  Bruno Haible  <bruno@clisp.org>
61567
61568         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
61569         if the compiler does not support C99.
61570
61571 2007-03-25  Bruno Haible  <bruno@clisp.org>
61572
61573         * modules/time (Makefile.am): Ensure all rule action lines start with a
61574         tab.
61575
61576 2007-03-24  Bruno Haible  <bruno@clisp.org>
61577
61578         * modules/tsearch-tests: New file.
61579         * tests/test-tsearch.sh: New file.
61580         * tests/test-tsearch.c: New file, mostly copied from glibc.
61581
61582         * modules/search-tests: New file.
61583         * tests/test-search.c: New file.
61584
61585         * modules/search: New file.
61586         * lib/search_.h: New file, incorporating lib/tsearch.h.
61587         * m4/search_h.m4: New file.
61588         * lib/tsearch.h: Remove file.
61589         * lib/tsearch.c: Include search.h instead of tsearch.h.
61590         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
61591         HAVE_TSEARCH.
61592         * modules/tsearch (Files): Remove lib/tsearch.h.
61593         (Depends-on): Add search.
61594         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
61595         (Include): Change tsearch.h into search.h.
61596
61597 2007-03-24  Bruno Haible  <bruno@clisp.org>
61598
61599         * modules/fpucw: New file.
61600         * lib/fpucw.h: New file.
61601         * lib/frexp.c: Include fpucw.h.
61602         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61603         (FUNC): Use them.
61604         * lib/printf-frexp.c: Include fpucw.h.
61605         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
61606         (FUNC): Use them.
61607         * lib/vasnprintf.c: Include fpucw.h.
61608         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
61609         'long double' calculations.
61610         * tests/test-frexpl.c: Include fpucw.h.
61611         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61612         * tests/test-printf-frexpl.c: Include fpucw.h.
61613         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
61614         * modules/frexpl (Depends-on): Add fpucw.
61615         * modules/printf-frexpl (Depends-on): Likewise.
61616         * modules/fprintf-posix (Depends-on): Likewise.
61617         * modules/snprintf-posix (Depends-on): Likewise.
61618         * modules/sprintf-posix (Depends-on): Likewise.
61619         * modules/vasnprintf-posix (Depends-on): Likewise.
61620         * modules/vasprintf-posix (Depends-on): Likewise.
61621         * modules/vfprintf-posix (Depends-on): Likewise.
61622         * modules/vsnprintf-posix (Depends-on): Likewise.
61623         * modules/vsprintf-posix (Depends-on): Likewise.
61624         * modules/frexpl-tests (Depends-on): Likewise.
61625         * modules/printf-frexpl-tests (Depends-on): Likewise.
61626
61627 2007-03-24  Bruno Haible  <bruno@clisp.org>
61628
61629         * lib/float+.h: New file.
61630         * lib/isnan.c: Include float+.h.
61631         (SIZE): New macro.
61632         (FUNC): Compare only SIZE bytes of the value.
61633         * lib/vasnprintf.c: Include float+.h.
61634         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
61635         SIZEOF_LDBL or SIZEOF_DBL bytes.
61636         * modules/isnan-nolibm (Files): Add lib/float+.h.
61637         * modules/isnanl-nolibm (Files): Add lib/float+.h.
61638         * modules/isnanl (Files): Add lib/float+.h.
61639         * modules/vasnprintf (Files): Add lib/float+.h.
61640
61641 2007-03-24  Bruno Haible  <bruno@clisp.org>
61642
61643         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
61644         include isnanl-nolibm.h.
61645
61646 2007-03-24  Bruno Haible  <bruno@clisp.org>
61647
61648         * tests/test-read-file.c (main): Don't produce spurious output for
61649         expected situations. Make the test fail if it encountered unexpected
61650         results.
61651
61652 2007-03-24  Bruno Haible  <bruno@clisp.org>
61653
61654         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
61655         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
61656
61657 2007-03-24  Bruno Haible  <bruno@clisp.org>
61658
61659         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
61660
61661 2007-03-24  Bruno Haible  <bruno@clisp.org>
61662
61663         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
61664         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
61665
61666         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
61667         * modules/utf8-ucs4: Turn into a symbolic link to module
61668         unistr/u8-mbtouc.
61669
61670         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
61671         utf8-ucs4-unsafe.
61672         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
61673         unistr/u8-mbtouc-unsafe.
61674
61675         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
61676         * modules/utf16-ucs4: Turn into a symbolic link to module
61677         unistr/u16-mbtouc.
61678
61679         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
61680         utf16-ucs4-unsafe.
61681         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
61682         unistr/u16-mbtouc-unsafe.
61683
61684         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
61685         * modules/ucs4-utf8: Turn into a symbolic link to module
61686         unistr/u8-ubtomb.
61687
61688         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
61689         * modules/ucs4-utf16: Turn into a symbolic link to module
61690         unistr/u16-ubtomb.
61691
61692 2007-03-24  Bruno Haible  <bruno@clisp.org>
61693
61694         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
61695         Enable the function only if HAVE_INLINE.
61696         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
61697         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61698         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
61699         Enable the function only if HAVE_INLINE.
61700         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
61701         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
61702         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
61703         Enable the function only if HAVE_INLINE.
61704         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
61705         Enable the function only if HAVE_INLINE.
61706         * modules/utf8-ucs4: Update.
61707         * modules/utf8-ucs4-unsafe: Update.
61708         * modules/utf16-ucs4: Update.
61709         * modules/utf16-ucs4-unsafe: Update.
61710         * modules/ucs4-utf8: Update.
61711         * modules/ucs4-utf16: Update.
61712
61713 2007-03-24  Bruno Haible  <bruno@clisp.org>
61714
61715         * lib/utf8-ucs4.h: Remove file.
61716         * lib/utf8-ucs4-unsafe.h: Remove file.
61717         * lib/utf16-ucs4.h: Remove file.
61718         * lib/utf16-ucs4-unsafe.h: Remove file.
61719         * lib/ucs4-utf8.h: Remove file.
61720         * lib/ucs4-utf16.h: Remove file.
61721         * lib/unistr.h: Include their previous contents.
61722         * m4/utf-ucs4.m4: Remove file.
61723         * m4/ucs4-utf.m4: Remove file.
61724         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
61725         (Depends-on): Add unistr/base.
61726         (configure.ac): Remove gl_UTF_UCS4.
61727         (Makefile.am): Update.
61728         (Include): Change to unistr.h.
61729         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
61730         (Depends-on): Add unistr/base.
61731         (configure.ac): Remove gl_UTF_UCS4.
61732         (Makefile.am): Update.
61733         (Include): Change to unistr.h.
61734         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
61735         (Depends-on): Add unistr/base.
61736         (configure.ac): Remove gl_UTF_UCS4.
61737         (Makefile.am): Update.
61738         (Include): Change to unistr.h.
61739         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
61740         (Depends-on): Add unistr/base.
61741         (configure.ac): Remove gl_UTF_UCS4.
61742         (Makefile.am): Update.
61743         (Include): Change to unistr.h.
61744         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
61745         (Depends-on): Add unistr/base.
61746         (configure.ac): Remove gl_UCS4_UTF.
61747         (Makefile.am): Update.
61748         (Include): Change to unistr.h.
61749         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
61750         (Depends-on): Add unistr/base.
61751         (configure.ac): Remove gl_UCS4_UTF.
61752         (Makefile.am): Update.
61753         (Include): Change to unistr.h.
61754         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
61755         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
61756         utf8-ucs4-unsafe.h.
61757         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
61758         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
61759         utf16-ucs4-unsafe.h.
61760         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
61761         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
61762         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
61763         * lib/unistr/u8-strchr.c: Likewise.
61764         * lib/unistr/u8-strrchr.c: Likewise.
61765         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
61766         * lib/unistr/u16-strchr.c: Likewise.
61767         * lib/unistr/u16-strrchr.c: Likewise.
61768         * lib/striconveh.c: Update.
61769         * lib/linebreak.c: Update.
61770
61771 2007-03-24  Bruno Haible  <bruno@clisp.org>
61772
61773         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
61774         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
61775
61776 2007-03-22  Bruno Haible  <bruno@clisp.org>
61777
61778         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
61779
61780 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
61781
61782         * MODULES.html.sh (File system functions): New module write-any-file.
61783         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
61784         * m4/write-any-file.m4: New files.
61785
61786 2007-03-23  Eric Blake  <ebb9@byu.net>
61787
61788         * gnulib-tool: Rearrange space-tab sequences, since some editors
61789         like to eat them.
61790
61791 2007-03-23  Eric Blake  <ebb9@byu.net>
61792
61793         * lib/version-etc.c (version_etc_va): Update license wording to
61794         be more concise.  Recommended by Richard Stallman.
61795
61796 2007-03-22  Bruno Haible  <bruno@clisp.org>
61797
61798         * lib/poll.c (MSG_PEEK): New fallback definition.
61799
61800 2007-03-22  Bruno Haible  <bruno@clisp.org>
61801
61802         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
61803         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
61804         (main): Update.
61805         Fixes a compilation error on BeOS.
61806
61807 2007-03-22  Bruno Haible  <bruno@clisp.org>
61808
61809         * modules/frexpl-tests: New file.
61810         * tests/test-frexpl.c: New file.
61811
61812         * modules/frexpl: New file.
61813         * m4/frexpl.m4: New file.
61814         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
61815         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
61816         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
61817         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
61818         (Depends-on): Add frexpl. Remove isnanl-nolibm.
61819         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
61820
61821 2007-03-22  Bruno Haible  <bruno@clisp.org>
61822
61823         * lib/frexpl.c: Share code with lib/frexp.c.
61824         * modules/mathl (Files): Add lib/frexp.c.
61825         (Depends-on): Add isnanl-nolibm.
61826
61827 2007-03-22  Bruno Haible  <bruno@clisp.org>
61828
61829         * modules/printf-frexp (Files): Add m4/frexp.m4.
61830         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
61831         only if the found frexp function actually works.
61832
61833 2007-03-22  Bruno Haible  <bruno@clisp.org>
61834
61835         * lib/frexp.c: Remove older implementation that uses divisions.
61836
61837 2007-03-21  Bruno Haible  <bruno@clisp.org>
61838
61839         * modules/frexp-tests: New file.
61840         * tests/test-frexp.c: New file.
61841
61842         * modules/frexp: New file.
61843         * lib/frexp.c: New file.
61844         * m4/frexp.m4: New file.
61845         * lib/math_.h (frexp): New declaration.
61846         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
61847         REPLACE_FREXP.
61848         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
61849
61850 2007-03-21  Bruno Haible  <bruno@clisp.org>
61851
61852         * modules/isnanl-tests: New file.
61853         * tests/test-isnanl.c: New file.
61854
61855         * modules/isnanl: New file.
61856         * lib/isnanl.h: New file.
61857         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
61858         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
61859         gl_FUNC_ISNANL_WORKS.
61860         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
61861         New macros.
61862
61863 2007-03-21  Bruno Haible  <bruno@clisp.org>
61864
61865         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
61866         lib/isnanl.h.
61867         (Include): Update.
61868         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
61869         * lib/vasnprintf.c: Update.
61870         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
61871         tests/test-isnanl.h, remove tests/test-isnanl.c.
61872         (Makefile.am): Update.
61873         * tests/test-isnanl-nolibm.c: New file.
61874         * tests/test-isnanl.h: New file.
61875         * tests/test-isnanl.c: Remove file.
61876
61877 2007-03-21  Jim Meyering  <jim@meyering.net>
61878
61879         When trying to open ".", treat ESTALE like EACCES.
61880         * lib/savewd.c (savewd_save): Resort to forking not just upon
61881         failure with EACCES, but also when errno is ESTALE.
61882
61883 2007-03-20  Bruno Haible  <bruno@clisp.org>
61884
61885         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
61886         Needed on AIX 5.1. Reported by Matthew Woehlke.
61887
61888 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61889
61890         Suggestions by Bruno Haible:
61891         * lib/acl-internal.h: Include "gettext.h" rather than rolling
61892         our own.
61893         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
61894         * modules/acl (Depends-on): Add gettext.
61895
61896 2007-03-19  Bruno Haible  <bruno@clisp.org>
61897
61898         * modules/iconvme: Remove file.
61899         * lib/iconvme.h: Remove file.
61900         * lib/iconvme.c: Remove file.
61901         * m4/iconvme.m4: Remove file.
61902
61903 2007-03-19  Bruno Haible  <bruno@clisp.org>
61904
61905         * doc/relocatable-maint.texi: Break long shell script line.
61906         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61907
61908 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61909
61910         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
61911         handle file_has_acl.
61912         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
61913         * lib/acl.c: Move header inclusions and related macro defns into
61914         lib/acl-internal.h.
61915         (S_ISLNK): Remove defn, since that's now done for us.
61916         (file_has_acl): Move to lib/file-has-acl.c.
61917         Call acl_trivial if available.  This is the crucial part of the fix.
61918         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
61919         shared within the library.  Rewrite a bit, partly to make it compatible
61920         with the GNU coding style.
61921         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
61922         Remove unnecessary double-quotes.
61923         Don't test for acl_to_text; the build will catch that.
61924         Replace acl_entries if it doesn't exist and it is needed.
61925         Check for -lsec and acl_trivial (as used on Solaris 10).
61926         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
61927         lib/file-has-acl.c.
61928         (Depends-on): Add sys_stat, for S_ISLNK.
61929
61930 2007-03-19  Ben Pfaff  <blp@gnu.org>
61931
61932         * doc/gnulib.texi: Fix typos.
61933         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
61934
61935 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
61936
61937         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
61938         If size is zero here, buf must be zero.
61939
61940 2007-03-19  Simon Josefsson  <simon@josefsson.org>
61941
61942         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
61943         <bruno@clisp.org>.
61944
61945 2007-03-18  Bruno Haible  <bruno@clisp.org>
61946
61947         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
61948         Suggested by Eric Blake.
61949
61950 2007-03-18  Ben Pfaff  <blp@gnu.org>
61951
61952         * doc/relocatable.texi: Recommend using as prefix a directory
61953         that does not exist and will never be created.  Based on
61954         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
61955         and others.
61956
61957 2007-03-17  Bruno Haible  <bruno@clisp.org>
61958
61959         * lib/fchownat.c: Include lchown.h.
61960
61961 2007-03-17  Bruno Haible  <bruno@clisp.org>
61962
61963         Fix endless loop when the given allocated size was > INT_MAX.
61964         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
61965         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
61966         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
61967         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
61968         * lib/sprintf.c (sprintf): Likewise.
61969
61970 2007-03-17  Bruno Haible  <bruno@clisp.org>
61971
61972         * tests/test-argp-2.sh (func_compare): Output a context diff.
61973
61974 2007-03-17  Bruno Haible  <bruno@clisp.org>
61975
61976         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
61977         locale's decimal-point character.
61978
61979 2007-03-17  Bruno Haible  <bruno@clisp.org>
61980
61981         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
61982         before comparing it. Needed because on some platforms (e.g. x86) a
61983         'long double' occupies less bytes than sizeof (long double).
61984
61985 2007-03-17  Bruno Haible  <bruno@clisp.org>
61986
61987         * tests/test-crc.c (main): Make printf statements 64-bit clean.
61988         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
61989         * tests/test-getaddrinfo.c (simple): Likewise.
61990         * tests/test-read-file.c (main): Likewise.
61991
61992 2007-03-17  Bruno Haible  <bruno@clisp.org>
61993
61994         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
61995
61996 2007-03-17  Bruno Haible  <bruno@clisp.org>
61997
61998         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
61999         unused variable.
62000
62001 2007-03-17  Bruno Haible  <bruno@clisp.org>
62002
62003         * tests/test-c-strcasecmp.c: Include c-strcase.h.
62004         * tests/test-c-strncasecmp.c: Likewise.
62005
62006 2007-03-17  Bruno Haible  <bruno@clisp.org>
62007
62008         * modules/stdlib (Depends-on): Add unistd.
62009         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
62010         Needed for MacOS X 10.3.
62011
62012 2007-03-17  Bruno Haible  <bruno@clisp.org>
62013
62014         * lib/unistr/u-strdup.h: Include <stdlib.h>.
62015
62016 2007-03-17  Bruno Haible  <bruno@clisp.org>
62017
62018         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
62019
62020 2007-03-17  Bruno Haible  <bruno@clisp.org>
62021
62022         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
62023         to reflect files copied from gnulib (with or without modifications).
62024         Suggested by Jim Meyering.
62025
62026 2007-03-17  Eric Blake  <ebb9@byu.net>
62027
62028         * NEWS: Document stdlib change from 2007-02-18.
62029
62030 2007-03-17  Jim Meyering  <jim@meyering.net>
62031
62032         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
62033         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
62034         someone uses a name containing shell meta-characters.
62035         Reported by Alfred M. Szmidt.
62036
62037         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
62038
62039 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
62040
62041         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
62042         and copy gettext configuration files only if configure.ac contains
62043         a use of AM_GNU_GETTEXT_VERSION.
62044
62045 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
62046
62047         * build-aux/bootstrap (gnulib_name): New variable.
62048         (gnulib_tool_options): Use it.
62049
62050 2007-03-13  Simon Josefsson  <simon@josefsson.org>
62051
62052         * tests/test-des.c: Use new namespace.
62053
62054 2007-03-15  Bruno Haible  <bruno@clisp.org>
62055
62056         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
62057         Reported by James Youngman <jay@gnu.org>.
62058
62059 2007-03-15  Bruno Haible  <bruno@clisp.org>
62060
62061         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
62062         declared prototype. Needed with cc on OSF/1 5.1.
62063
62064 2007-03-15  Bruno Haible  <bruno@clisp.org>
62065
62066         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
62067         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
62068         (struct gl_list_implementation): Add dispose_fn argument to the
62069         'create_empty', 'create' methods.
62070         (struct gl_list_impl_base): Add field 'dispose_fn'.
62071         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
62072         argument.
62073         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
62074         dispose_fn argument.
62075         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
62076         dispose_fn on the dropped values.
62077         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
62078         dispose_fn argument.
62079         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
62080         dropped values.
62081         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
62082         (gl_tree_remove_node): Call dispose_fn on the dropped value.
62083         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
62084         (gl_tree_remove_node): Call dispose_fn on the dropped value.
62085         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
62086         argument.
62087         (gl_tree_list_free): Call dispose_fn on the dropped values.
62088         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
62089         the dropped values.
62090         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
62091         Add dispose_fn argument.
62092         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
62093         Call dispose_fn on the dropped values.
62094         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
62095         Add dispose_fn argument.
62096         (gl_sublist_create): Initialize the 'dispose_fn' field.
62097         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
62098         * tests/test-array_list.c (main): Update.
62099         * tests/test-carray_list.c (main): Update.
62100         * tests/test-avltree_list.c (main): Update.
62101         * tests/test-rbtree_list.c (main): Update.
62102         * tests/test-avltreehash_list.c (main): Update.
62103         * tests/test-rbtreehash_list.c (main): Update.
62104         * tests/test-linked_list.c (main): Update.
62105         * tests/test-linkedhash_list.c (main): Update.
62106         * tests/test-array_oset.c (main): Update.
62107
62108 2007-03-15  Bruno Haible  <bruno@clisp.org>
62109
62110         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
62111         (gl_oset_create_empty): Add dispose_fn argument.
62112         (struct gl_oset_implementation): Add dispose_fn argument to
62113         'create_empty' method.
62114         (struct gl_oset_impl_base): Add dispose_fn field.
62115         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
62116         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
62117         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
62118         values.
62119         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
62120         (gl_tree_oset_free): Call dispose_fn on the dropped values.
62121         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
62122         dropped value.
62123         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
62124         dropped value.
62125         * tests/test-array_oset.c (main): Update.
62126         * tests/test-avltree_oset.c (main): Update.
62127         * tests/test-rbtree_oset.c (main): Update.
62128         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
62129
62130 2007-03-13  Bruno Haible  <bruno@clisp.org>
62131
62132         * tests/test-stdbool.c (i): Update after last patch.
62133
62134 2007-03-12  Bruno Haible  <bruno@clisp.org>
62135
62136         * lib/quotearg.c: Include <wctype.h> early, before the definition of
62137         the iswprint macro. Needed on Solaris 2.5.1.
62138
62139 2007-03-12  Bruno Haible  <bruno@clisp.org>
62140
62141         * tests/test-printf-frexp.c (main): Declare x as volatile.
62142
62143 2007-03-12  Simon Josefsson  <simon@josefsson.org>
62144
62145         * doc/gnulib.texi (Build robot for gnulib): New section.
62146
62147 2007-03-12  Jim Meyering  <jim@meyering.net>
62148
62149         * build-aux/bootstrap: New file.
62150         * build-aux/bootstrap.conf: New file, from coreutils.
62151
62152 2007-03-11  Bruno Haible  <bruno@clisp.org>
62153
62154         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
62155
62156 2007-03-12  Simon Josefsson  <simon@josefsson.org>
62157
62158         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
62159         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
62160         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
62161
62162 2007-03-11  Bruno Haible  <bruno@clisp.org>
62163
62164         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
62165         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
62166
62167 2007-03-11  Bruno Haible  <bruno@clisp.org>
62168
62169         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
62170         formula. Needed for SunPRO C 5.0.
62171
62172 2007-03-11  Bruno Haible  <bruno@clisp.org>
62173
62174         * modules/long-options (Depends-on): Add getopt.
62175
62176 2007-03-11  Bruno Haible  <bruno@clisp.org>
62177
62178         * modules/modechange (Depends-on): Add stdbool.
62179
62180 2007-03-11  Bruno Haible  <bruno@clisp.org>
62181
62182         * modules/i-ring (Depends-on): Add stdbool.
62183
62184 2007-03-11  Bruno Haible  <bruno@clisp.org>
62185
62186         * modules/gc-des (Depends-on): Add stdbool.
62187
62188 2007-03-11  Bruno Haible  <bruno@clisp.org>
62189
62190         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
62191
62192 2007-03-11  Bruno Haible  <bruno@clisp.org>
62193
62194         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
62195
62196 2007-03-11  Bruno Haible  <bruno@clisp.org>
62197
62198         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
62199
62200 2007-03-11  Bruno Haible  <bruno@clisp.org>
62201
62202         * lib/vasnprintf.c (sprintf): Undefine.
62203
62204 2007-03-11  Bruno Haible  <bruno@clisp.org>
62205
62206         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
62207         initializers in SunPRO C and Compaq C compilers.
62208
62209 2007-03-11  Bruno Haible  <bruno@clisp.org>
62210
62211         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
62212         decrementing code ANSI C compliant.
62213
62214 2007-03-11  Bruno Haible  <bruno@clisp.org>
62215
62216         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
62217         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
62218
62219 2007-03-11  Bruno Haible  <bruno@clisp.org>
62220
62221         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
62222         <stdbool.h> substitute doesn't pass.
62223
62224 2007-03-11  Bruno Haible  <bruno@clisp.org>
62225
62226         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
62227
62228 2007-03-11  Bruno Haible  <bruno@clisp.org>
62229
62230         * gnulib-tool (func_create_megatestdir): Create also an autobuild
62231         script, for submission to autobuild.josefsson.org.
62232
62233 2007-03-10  Bruno Haible  <bruno@clisp.org>
62234
62235         * modules/canonicalize-lgpl-tests: New file.
62236         * tests/test-canonicalize-lgpl.sh: New file.
62237         * tests/test-canonicalize-lgpl.c: New file.
62238
62239         * modules/c-strcase-tests: New file.
62240         * tests/test-c-strcase.sh: New file.
62241         * tests/test-c-strcasecmp.c: New file.
62242         * tests/test-c-strncasecmp.c: New file.
62243
62244         * modules/atexit-tests: New file.
62245         * tests/test-atexit.sh: New file.
62246         * tests/test-atexit.c: New file.
62247
62248 2007-03-10  Bruno Haible  <bruno@clisp.org>
62249
62250         * tests/test-binary-io.sh: Use temporary filenames that are not so
62251         likely to clash with those of other tests (in a parallel make).
62252         * tests/test-binary-io.c: Likewise.
62253
62254 2007-03-10  Bruno Haible  <bruno@clisp.org>
62255
62256         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
62257         fallback; use #error instead.
62258         Suggested by Simon Josefsson.
62259
62260 2007-03-10  Bruno Haible  <bruno@clisp.org>
62261
62262         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
62263         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
62264         first and the last.
62265
62266 2007-03-10  Bruno Haible  <bruno@clisp.org>
62267
62268         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
62269
62270 2007-03-10  Bruno Haible  <bruno@clisp.org>
62271
62272         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
62273         "make distcheck".
62274         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
62275         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
62276         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
62277
62278 2007-03-10  Bruno Haible  <bruno@clisp.org>
62279
62280         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
62281         variable.
62282         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
62283         variable.
62284
62285 2007-03-09  Eric Blake  <ebb9@byu.net>
62286         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
62287
62288         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
62289         types are not being provided by gnulib.
62290         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
62291         types are supported.
62292
62293 2007-03-10  Bruno Haible  <bruno@clisp.org>
62294
62295         * lib/stdio_.h (__attribute__): New macro.
62296         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
62297         vsprintf): Specify __attribute__ __format__ for GCC.
62298         Suggested by Eric Blake.
62299
62300 2007-03-09  Bruno Haible  <bruno@clisp.org>
62301
62302         * modules/printf-posix-tests: New file.
62303         * tests/test-printf-posix.sh: New file.
62304         * tests/test-printf-posix.c: New file.
62305
62306         * modules/printf-posix: New file.
62307         * lib/printf.c: New file.
62308         * m4/printf-posix-rpl.m4: New file.
62309         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
62310         REPLACE_PRINTF.
62311         * lib/stdio_.h (printf): New declaration.
62312         (format, __format__, ____printf____, ____scanf____, ____strftime____,
62313         ____strfmon____): New macros.
62314         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
62315         REPLACE_PRINTF.
62316
62317 2007-03-09  Bruno Haible  <bruno@clisp.org>
62318
62319         * tests/test-vasnprintf-posix2.sh: New file.
62320         * tests/test-vasnprintf-posix2.c: New file.
62321         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
62322         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
62323         (Makefile.am): Activate test-vasnprintf-posix2.sh.
62324
62325         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
62326         a locale dependent decimal point, rather than always '.'.
62327
62328 2007-03-09  Eric Blake  <ebb9@byu.net>
62329
62330         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
62331         spite of platforms like Tandem/NSK that define it to -1.
62332
62333 2007-03-08  Bruno Haible  <bruno@clisp.org>
62334
62335         * modules/vprintf-posix-tests: New file.
62336         * tests/test-vprintf-posix.sh: New file.
62337         * tests/test-vprintf-posix.c: New file.
62338         * tests/test-printf-posix.h: New file.
62339
62340         * modules/vprintf-posix: New file.
62341         * lib/vprintf.c: New file.
62342         * m4/vprintf-posix.m4: New file.
62343         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
62344         REPLACE_VPRINTF.
62345         * lib/stdio_.h (vprintf): New declaration.
62346         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
62347         REPLACE_VPRINTF.
62348
62349 2007-03-08  Bruno Haible  <bruno@clisp.org>
62350
62351         * modules/fprintf-posix-tests: New file.
62352         * tests/test-fprintf-posix.sh: New file.
62353         * tests/test-fprintf-posix.c: New file.
62354
62355         * modules/fprintf-posix: New file.
62356         * lib/fprintf.c: New file.
62357         * m4/fprintf-posix.m4: New file.
62358         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
62359         REPLACE_FPRINTF.
62360         * lib/stdio_.h (fprintf): New declaration.
62361         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
62362         REPLACE_FPRINTF.
62363
62364 2007-03-08  Bruno Haible  <bruno@clisp.org>
62365
62366         * modules/vfprintf-posix-tests: New file.
62367         * tests/test-vfprintf-posix.sh: New file.
62368         * tests/test-vfprintf-posix.c: New file.
62369         * tests/test-fprintf-posix.h: New file.
62370         * tests/test-fprintf-posix.out: New file.
62371
62372         * modules/vfprintf-posix: New file.
62373         * lib/vfprintf.c: New file.
62374         * m4/vfprintf-posix.m4: New file.
62375         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
62376         REPLACE_VFPRINTF.
62377         * lib/stdio_.h (vfprintf): New declaration.
62378         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
62379         REPLACE_VFPRINTF.
62380
62381 2007-03-08  Bruno Haible  <bruno@clisp.org>
62382
62383         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
62384
62385 2007-03-08  Bruno Haible  <bruno@clisp.org>
62386
62387         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
62388         instead of 'expr' invocations.
62389         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62390         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62391         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62392         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62393         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62394         Suggested by Paul Eggert.
62395
62396 2007-03-08  Bruno Haible  <bruno@clisp.org>
62397
62398         * modules/fseterr-tests: New file.
62399         * tests/test-fseterr.c: New file.
62400
62401         * modules/fseterr: New file.
62402         * lib/fseterr.h: New file.
62403         * lib/fseterr.c: New file.
62404
62405 2007-03-08  Bruno Haible  <bruno@clisp.org>
62406
62407         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
62408         * lib/getopt_.h: Likewise.
62409         * lib/mbswidth.h: Likewise.
62410         * lib/setenv.h: Likewise.
62411         * lib/vasnprintf.h: Likewise.
62412         * lib/vasprintf.h: Likewise.
62413         * lib/verror.h: Likewise.
62414         * lib/xsetenv.h: Likewise.
62415         * lib/xvasprintf.h: Likewise.
62416
62417 2007-03-08  Jim Meyering  <jim@meyering.net>
62418
62419         * users.txt: Add parted.
62420
62421         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
62422
62423 2007-03-07  Bruno Haible  <bruno@clisp.org>
62424
62425         * m4/printf.m4: Make the shell script snippets copy&pastable.
62426
62427 2007-03-02  Bruno Haible  <bruno@clisp.org>
62428
62429         * lib/netinet_in_.h: New file.
62430         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
62431         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
62432         * modules/netinet_in (Files): Add lib/netinet_in_.h.
62433         (Depends-on): Add absolute-header.
62434         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
62435         into netinet/in.h.
62436
62437 2007-03-03  Bruno Haible  <bruno@clisp.org>
62438
62439         * lib/sys_select_.h: New file.
62440         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
62441         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
62442         * modules/sys_select (Files): Add lib/sys_select_.h.
62443         (Depends-on): Add absolute-header.
62444         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
62445         into sys/select.h.
62446
62447 2007-03-02  Bruno Haible  <bruno@clisp.org>
62448
62449         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
62450         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
62451         values.
62452         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
62453         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
62454         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
62455         * modules/sys_socket (Depends-on): Add absolute-header.
62456         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
62457         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
62458         (Include): Remove requirement of inclusion of <sys/types.h>.
62459
62460 2007-03-02  Bruno Haible  <bruno@clisp.org>
62461
62462         * lib/byteswap_.h (bswap_32): Fix formula.
62463
62464 2007-03-06  Bruno Haible  <bruno@clisp.org>
62465
62466         * modules/sprintf-posix-tests: New file.
62467         * tests/test-sprintf-posix.c: New file.
62468
62469         * modules/sprintf-posix: New file.
62470         * lib/sprintf.c: New file.
62471         * m4/sprintf-posix.m4: New file.
62472         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
62473         REPLACE_SPRINTF.
62474         * lib/stdio_.h (sprintf): New declaration.
62475         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
62476         REPLACE_SPRINTF.
62477
62478 2007-03-06  Bruno Haible  <bruno@clisp.org>
62479
62480         * modules/vsprintf-posix-tests: New file.
62481         * tests/test-vsprintf-posix.c: New file.
62482         * tests/test-sprintf-posix.h: New file.
62483
62484         * modules/vsprintf-posix: New file.
62485         * lib/vsprintf.c: New file.
62486         * m4/vsprintf-posix.m4: New file.
62487         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
62488         REPLACE_VSPRINTF.
62489         * lib/stdio_.h (vsprintf): New declaration.
62490         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
62491         REPLACE_VSPRINTF.
62492
62493 2007-03-06  Bruno Haible  <bruno@clisp.org>
62494
62495         * modules/vsnprintf (Depend-on): Remove minmax.
62496
62497 2007-03-06  Bruno Haible  <bruno@clisp.org>
62498
62499         * modules/snprintf-posix-tests: New file.
62500         * tests/test-snprintf-posix.c: New file.
62501
62502         * modules/snprintf-posix: New file.
62503         * m4/snprintf-posix.m4: New file.
62504         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
62505         gl_FUNC_SNPRINTF.
62506         (gl_FUNC_SNPRINTF): Invoke it.
62507         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
62508         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
62509         is set.
62510         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
62511
62512 2007-03-06  Bruno Haible  <bruno@clisp.org>
62513
62514         * modules/vsnprintf-posix-tests: New file.
62515         * tests/test-vsnprintf-posix.c: New file.
62516         * tests/test-snprintf-posix.h: New file.
62517
62518         * modules/vsnprintf-posix: New file.
62519         * m4/vsnprintf-posix.m4: New file.
62520         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
62521         gl_FUNC_VSNPRINTF.
62522         (gl_FUNC_VSNPRINTF): Invoke it.
62523         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
62524         * lib/stdio_.h (vsnprintf): Define as a replacement if
62525         REPLACE_VSNPRINTF is set.
62526         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
62527
62528 2007-03-06  Bruno Haible  <bruno@clisp.org>
62529
62530         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
62531         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
62532
62533 2007-03-06  Bruno Haible  <bruno@clisp.org>
62534
62535         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
62536         (asinl): Declare also if HAVE_DECL_ASINL is set.
62537         (atanl): Declare also if HAVE_DECL_ATANL is set.
62538         (ceill): Declare also if HAVE_DECL_CEILL is set.
62539         (cosl): Declare also if HAVE_DECL_COSL is set.
62540         (expl): Declare also if HAVE_DECL_EXPL is set.
62541         (floorl): Declare also if HAVE_DECL_FLOORL is set.
62542         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
62543         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
62544         (logl): Declare also if HAVE_DECL_LOGL is set.
62545         (sinl): Declare also if HAVE_DECL_SINL is set.
62546         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
62547         (tanl): Declare also if HAVE_DECL_TANL is set.
62548         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
62549         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
62550         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
62551         declaration of frexpl, ldexpl.
62552         * modules/printf-frexpl (Depends-on): Add math.
62553         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
62554
62555 2007-03-05  Bruno Haible  <bruno@clisp.org>
62556
62557         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
62558         frexpl and ldexpl are declared.
62559         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
62560
62561 2007-03-05  Bruno Haible  <bruno@clisp.org>
62562
62563         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
62564         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
62565
62566 2007-03-05  Bruno Haible  <bruno@clisp.org>
62567
62568         * lib/stdio_.h: Include <stddef.h>.
62569
62570 2007-03-05  Bruno Haible  <bruno@clisp.org>
62571
62572         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
62573
62574 2007-03-05  Bruno Haible  <bruno@clisp.org>
62575
62576         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
62577         NetBSD 4, from Ralf Wildenhues.
62578
62579 2007-03-04  Bruno Haible  <bruno@clisp.org>
62580
62581         * lib/vasprintf.h: Update #if logic for the case when the functions
62582         exist but are overridden.
62583
62584 2007-03-04  Bruno Haible  <bruno@clisp.org>
62585
62586         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
62587         implementations: glibc-2.4 and MacOS X 10.3.
62588         * tests/test-vasnprintf-posix.c (test_function): Test also the case
62589         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
62590         * tests/test-vasprintf-posix.c (test_function): Likewise.
62591
62592 2007-03-04  Bruno Haible  <bruno@clisp.org>
62593
62594         * modules/vasprintf-posix-tests: New file.
62595         * tests/test-vasprintf-posix.c: New file.
62596
62597         * modules/vasprintf-posix: New file.
62598         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
62599         defined.
62600         * m4/vasprintf-posix.m4: New file.
62601         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
62602         gl_FUNC_VASPRINTF.
62603         (gl_FUNC_VASPRINTF): Invoke it.
62604         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
62605         here.
62606         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
62607
62608 2007-03-04  Bruno Haible  <bruno@clisp.org>
62609
62610         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
62611         REPLACE_GETTIMEOFDAY.
62612         * modules/sys_time (Makefile.am): Likewise.
62613         * m4/sys_time_h.m4: Likewise.
62614         * m4/gettimeofday.m4: Likewise.
62615
62616 2007-03-04  Bruno Haible  <bruno@clisp.org>
62617
62618         * modules/vasnprintf-posix-tests: New file.
62619         * tests/test-vasnprintf-posix.c: New file.
62620
62621         * modules/vasnprintf-posix: New file.
62622         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
62623         printf-frexpl.h.
62624         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
62625         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
62626         REPLACE_VASNPRINTF is defined.
62627         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
62628         gl_FUNC_VASNPRINTF.
62629         (gl_FUNC_VASNPRINTF): Invoke it.
62630         * m4/vasnprintf-posix.m4: New file.
62631         * m4/printf.m4: New file.
62632
62633 2007-03-04  Bruno Haible  <bruno@clisp.org>
62634
62635         Compile progreloc.c only if --enable-relocatable is specified.
62636         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
62637         if --enable-relocatable was specified.
62638         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
62639         lib_SOURCES.
62640
62641 2007-03-04  Jim Meyering  <jim@meyering.net>
62642
62643         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
62644         Use it consistently, rather than enumerating errno constants.
62645
62646 2007-03-04  Bruno Haible  <bruno@clisp.org>
62647
62648         * modules/xvasprintf-tests: New file.
62649         * tests/test-xvasprintf.c: New file.
62650
62651         * modules/vasprintf-tests: New file.
62652         * tests/test-vasprintf.c: New file.
62653
62654         * modules/vasnprintf-tests: New file.
62655         * tests/test-vasnprintf.c: New file.
62656
62657         * modules/vsnprintf-tests: New file.
62658         * tests/test-vsnprintf.c: New file.
62659
62660         * modules/snprintf-tests: New file.
62661         * tests/test-snprintf.c: New file.
62662
62663 2007-03-04  Bruno Haible  <bruno@clisp.org>
62664
62665         Compile relocatable.c only if --enable-relocatable is specified.
62666         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
62667         gl_RELOCATABLE_LIBRARY.
62668         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
62669         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
62670         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
62671         gl_RELOCATABLE_LIBRARY.
62672         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
62673         (Makefile.am): Remove lib_SOURCES.
62674         * modules/relocatable-lib-lgpl (configure.ac): Invoke
62675         gl_RELOCATABLE_LIBRARY.
62676         (Makefile.am): Remove lib_SOURCES.
62677         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
62678         always.
62679         * modules/relocatable-prog-wrapper (configure.ac): Invoke
62680         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
62681
62682 2007-03-04  Bruno Haible  <bruno@clisp.org>
62683
62684         * modules/argmatch-tests: New file.
62685         * tests/test-argmatch.c: New file.
62686
62687         * tests/test-allocsa.c (main): Halve the number of loop runs.
62688
62689         * modules/alloca-opt-tests: New file.
62690         * tests/test-alloca-opt.c: New file.
62691
62692 2007-03-04  Jim Meyering  <jim@meyering.net>
62693
62694         Work around difference between Linux ACLs and Solaris 10 ZFS.
62695         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
62696         for EINVAL.
62697
62698 2007-03-03  Bruno Haible  <bruno@clisp.org>
62699
62700         * modules/relocatable-prog (Depends-on): Add back progreloc's
62701         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
62702
62703 2007-03-03  Bruno Haible  <bruno@clisp.org>
62704
62705         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
62706         * modules/relocatable-lib: New file.
62707
62708 2007-03-03  Bruno Haible  <bruno@clisp.org>
62709
62710         * modules/relocatable-prog: Renamed from modules/relocatable.
62711         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
62712
62713 2007-03-03  Bruno Haible  <bruno@clisp.org>
62714
62715         * modules/relocatable-script (Files): Add doc/relocatable.texi,
62716         m4/relocatable-lib.m4.
62717         (Depends-on): Remove 'relocatable'.
62718         (configure.ac): Add gl_RELOCATABLE_NOP.
62719
62720 2007-03-03  Bruno Haible  <bruno@clisp.org>
62721
62722         * modules/relocatable-prog-wrapper: New file.
62723         * modules/relocatable (Depends-on): Add it. Remove all other
62724         dependencies except progname.
62725         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
62726
62727         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
62728         (gl_FUNC_STRERROR): Nop.
62729         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
62730
62731         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
62732         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
62733
62734         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
62735         (gl_FUNC_READLINK): Update.
62736
62737         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
62738
62739 2007-03-03  Bruno Haible  <bruno@clisp.org>
62740
62741         * lib/xreadlink.c: Include <unistd.h> unconditionally.
62742         * modules/xreadlink (Depends-on): Add unistd.
62743         * modules/xreadlink-with-size (Depends-on): Likewise.
62744
62745 2007-03-03  Bruno Haible  <bruno@clisp.org>
62746
62747         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
62748         extracted from gt_FUNC_SETENV.
62749         (gt_FUNC_SETENV): Remove macro.
62750         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
62751         remove gt_FUNC_SETENV.
62752
62753 2007-03-03  Bruno Haible  <bruno@clisp.org>
62754
62755         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
62756         ENABLE_RELOCATABLE here.
62757         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
62758
62759 2007-03-03  Bruno Haible  <bruno@clisp.org>
62760
62761         * modules/rbtreehash-list-tests (Depends-on): Add progname.
62762         * tests/test-rbtreehash_list.c: Include progname.h.
62763         (main): Call set_program_name.
62764
62765         * modules/rbtree-oset-tests (Depends-on): Add progname.
62766         * tests/test-rbtree_oset.c: Include progname.h.
62767         (main): Call set_program_name.
62768
62769         * modules/rbtree-list-tests (Depends-on): Add progname.
62770         * tests/test-rbtree_list.c: Include progname.h.
62771         (main): Call set_program_name.
62772
62773         * modules/linked-list-tests (Depends-on): Add progname.
62774         * tests/test-linked_list.c: Include progname.h.
62775         (main): Call set_program_name.
62776
62777 2007-03-03  Bruno Haible  <bruno@clisp.org>
62778
62779         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
62780         All uses of __restrict changed to _Restrict_.
62781         * lib/glob_.h (__restrict): Remove macro.
62782
62783 2007-03-02  Bruno Haible  <bruno@clisp.org>
62784
62785         * modules/gettext (configure.ac): Require gettext infrastructure
62786         from version 0.16.1.
62787
62788 2007-03-02  Bruno Haible  <bruno@clisp.org>
62789
62790         * modules/linkedhash-list-tests (Depends-on): Add progname.
62791         * tests/test-linkedhash_list.c: Include progname.h.
62792         (main): Call set_program_name.
62793
62794         * modules/carray-list-tests (Depends-on): Add progname.
62795         * tests/test-carray_list.c: Include progname.h.
62796         (main): Call set_program_name.
62797
62798         * modules/avltreehash-list-tests (Depends-on): Add progname.
62799         * tests/test-avltreehash_list.c: Include progname.h.
62800         (main): Call set_program_name.
62801
62802         * modules/avltree-oset-tests (Depends-on): Add progname.
62803         * tests/test-avltree_oset.c: Include progname.h.
62804         (main): Call set_program_name.
62805
62806         * modules/avltree-list-tests (Depends-on): Add progname.
62807         * tests/test-avltree_list.c: Include progname.h.
62808         (main): Call set_program_name.
62809
62810         * modules/array-oset-tests (Depends-on): Add progname.
62811         * tests/test-array_oset.c: Include progname.h.
62812         (main): Call set_program_name.
62813
62814         * modules/array-list-tests (Depends-on): Add progname.
62815         * tests/test-array_list.c: Include progname.h.
62816         (main): Call set_program_name.
62817
62818         * modules/argp-tests (Depends-on): Add progname.
62819         * tests/test-argp.c: Include argp.h first. Include progname.h.
62820         (main): Call set_program_name.
62821
62822 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
62823
62824         * doc/gnulib-tool.texi (Initial import): Reword description of
62825         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
62826         limited effect even if defined after the first system include.
62827
62828 2007-03-01  Bruno Haible  <bruno@clisp.org>
62829
62830         * build-aux/config.libpath: Update to libtool-1.5.22.
62831         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
62832
62833 2007-03-01  Bruno Haible  <bruno@clisp.org>
62834
62835         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
62836         foo_CFLAGS.
62837         Reported by Ralf Wildenhues.
62838
62839 2007-03-01  Bruno Haible  <bruno@clisp.org>
62840
62841         * build-aux/install-reloc: Remove object files left over by some
62842         compilers.
62843         Reported by Ralf Wildenhues.
62844
62845 2007-03-01  Bruno Haible  <bruno@clisp.org>
62846
62847         * build-aux/install-reloc: Break long lines.
62848
62849 2007-03-01  Bruno Haible  <bruno@clisp.org>
62850
62851         * doc/relocatable.texi: Document that it may not work on OpenBSD.
62852         Reported by Ralf Wildenhues.
62853
62854 2007-03-01  Bruno Haible  <bruno@clisp.org>
62855
62856         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
62857         include ordering constraints.
62858
62859 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
62860
62861         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
62862         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
62863         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
62864         as another example.
62865         * lib/time_.h: Fix misspelling.
62866         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
62867         Require gl_HEADER_TIME_H_DEFAULTS.
62868         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
62869         * m4/time_r.m4 (gl_TIME_R): Likewise.
62870         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
62871
62872 2007-03-01  Bruno Haible  <bruno@clisp.org>
62873
62874         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
62875         * m4/utimens.m4 (gl_UTIMENS): Likewise.
62876
62877 2007-03-01  Jim Meyering  <jim@meyering.net>
62878
62879         * modules/xreadlink (Maintainer): Add my name.
62880         * modules/xreadlink-with-size (Depends-on): Alphabetize.
62881
62882 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
62883             Bruno Haible  <bruno@clisp.org>
62884
62885         * build-aux/install-reloc: Compile also c-ctype.c.
62886         * build-aux/relocatable.sh.in: New file.
62887         * doc/relocatable.texi: New file.
62888         * doc/relocatable-maint.texi: New file.
62889         * doc/gnulib.texi: Include relocatable-maint.texi.
62890         * lib/progreloc.c: Include unistd.h unconditionally.
62891         * lib/relocwrapper.c: Include unistd.h unconditionally.
62892         Include c-ctype.h.
62893         (add_dotbin): Use c_tolower.
62894         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
62895         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
62896         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
62897         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
62898         to m4/relocatable-lib.m4.
62899         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
62900         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
62901         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
62902         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
62903         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
62904         * modules/relocatable: New file.
62905         * modules/relocatable-lib: New file.
62906         * modules/relocatable-script: New file.
62907
62908 2007-02-28  Bruno Haible  <bruno@clisp.org>
62909
62910         Import --enable-relocatable infrastructure.
62911         * build-aux/config.libpath: New file, from GNU gettext.
62912         * build-aux/install-reloc: New file, from GNU gettext.
62913         * build-aux/reloc-ldflags: New file, from GNU gettext.
62914         * lib/relocatable.h: New file, from GNU gettext.
62915         * lib/relocatable.c: New file, from GNU gettext.
62916         * lib/relocwrapper.c: New file, from GNU gettext.
62917         * m4/relocatable.m4: New file, from GNU gettext.
62918
62919 2007-02-28  Bruno Haible  <bruno@clisp.org>
62920
62921         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
62922
62923         * modules/xreadlink: New file, from GNU gettext with modifications.
62924         * lib/xreadlink.c: New file, from GNU gettext.
62925         * lib/xreadlink.h: Add comments.
62926         (xreadlink): New declaration.
62927
62928         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
62929         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
62930         lib/xreadlink-with-size.c.
62931         (configure.ac): Remove gl_XREADLINK invocation.
62932         (Makefile.am): Augment lib_SOURCES.
62933         * m4/xreadlink.m4: Remove file.
62934         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
62935         (xreadlink_with_size): Renamed from xreadink.
62936         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
62937         * modules/canonicalize (Depends-on): Replace xreadlink with
62938         xreadlink-with-size.
62939         * lib/canonicalize.c (canonicalize_filename_mode): Update.
62940
62941 2007-02-25  Jim Meyering  <jim@meyering.net>
62942
62943         * build-aux/announce-gen: When complaining about excess arguments,
62944         list them.
62945
62946 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
62947
62948         * README: Document signed integer overflow situation more
62949         accurately.
62950
62951 2007-02-25  Bruno Haible  <bruno@clisp.org>
62952
62953         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
62954         'a' or 'A' conversion.
62955
62956 2007-02-25  Bruno Haible  <bruno@clisp.org>
62957
62958         * modules/filename: Renamed from modules/pathname.
62959         (Files): Replace lib/pathname.h with lib/filename.h. Replace
62960         lib/concatpath.c with lib/concat-filename.c.
62961         (Makefile.am): Update.
62962         (Include): Replace pathname.h with filename.h.
62963         * lib/filename.h: Renamed from lib/pathname.h.
62964         (concatenated_filename): Renamed from concatenated_pathname.
62965         * lib/concat-filename.c: Renamed from lib/concatpath.c.
62966         (concatenated_filename): Renamed from concatenated_pathname.
62967         * lib/findprog.c: Include filename.h instead of pathname.h.
62968         (find_in_path): Update.
62969         * lib/javacomp.c: Include filename.h instead of pathname.h.
62970         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
62971         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
62972         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
62973         is_oldgcj_14_13_usable, is_javac_usable): Update.
62974         * lib/javaexec.c: Include filename.h instead of pathname.h.
62975         (execute_java_class): Update.
62976         * modules/findprog: Update.
62977         * modules/javacomp: Update.
62978         * modules/javaexec: Update.
62979         * MODULES.html.sh (File system functions): Add 'filename', remove
62980         'pathname'.
62981
62982 2007-02-25  Bruno Haible  <bruno@clisp.org>
62983
62984         * modules/printf-frexpl-tests: New file.
62985         * tests/test-printf-frexpl.c: New file.
62986
62987         * modules/printf-frexpl: New file.
62988         * lib/printf-frexpl.h: New file.
62989         * lib/printf-frexpl.c: New file.
62990         * m4/printf-frexpl.m4: New file.
62991
62992 2007-02-25  Bruno Haible  <bruno@clisp.org>
62993
62994         * modules/printf-frexp-tests: New file.
62995         * tests/test-printf-frexp.c: New file.
62996
62997         * modules/printf-frexp: New file.
62998         * lib/printf-frexp.h: New file.
62999         * lib/printf-frexp.c: New file.
63000         * m4/printf-frexp.m4: New file.
63001
63002 2007-02-25  Bruno Haible  <bruno@clisp.org>
63003
63004         Assume automake >= 1.10 for the tests.
63005         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
63006         * modules/arctwo-tests: Likewise.
63007         * modules/argp-tests: Likewise.
63008         * modules/avltree-list-tests: Likewise.
63009         * modules/avltree-oset-tests: Likewise.
63010         * modules/avltreehash-list-tests: Likewise.
63011         * modules/carray-list-tests: Likewise.
63012         * modules/crc-tests: Likewise.
63013         * modules/des-tests: Likewise.
63014         * modules/gc-arcfour-tests: Likewise.
63015         * modules/gc-arctwo-tests: Likewise.
63016         * modules/gc-des-tests: Likewise.
63017         * modules/gc-hmac-md5-tests: Likewise.
63018         * modules/gc-hmac-sha1-tests: Likewise.
63019         * modules/gc-md2-tests: Likewise.
63020         * modules/gc-md4-tests: Likewise.
63021         * modules/gc-md5-tests: Likewise.
63022         * modules/gc-pbkdf2-sha1-tests: Likewise.
63023         * modules/gc-rijndael-tests: Likewise.
63024         * modules/gc-sha1-tests: Likewise.
63025         * modules/gc-tests: Likewise.
63026         * modules/getaddrinfo-tests: Likewise.
63027         * modules/hmac-md5-tests: Likewise.
63028         * modules/hmac-sha1-tests: Likewise.
63029         * modules/linked-list-tests: Likewise.
63030         * modules/linkedhash-list-tests: Likewise.
63031         * modules/lock-tests: Likewise.
63032         * modules/md2-tests: Likewise.
63033         * modules/md4-tests: Likewise.
63034         * modules/md5-tests: Likewise.
63035         * modules/rbtree-list-tests: Likewise.
63036         * modules/rbtree-oset-tests: Likewise.
63037         * modules/rbtreehash-list-tests: Likewise.
63038         * modules/read-file-tests: Likewise.
63039         * modules/rijndael-tests: Likewise.
63040         * modules/stdint-tests: Likewise.
63041         * modules/tls-tests: Likewise.
63042
63043 2007-02-24  Bruno Haible  <bruno@clisp.org>
63044
63045         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
63046         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
63047         function; instead check whether isnan with a double argument links.
63048         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
63049         function; instead check whether isnan with a 'long double' argument
63050         links.
63051         Reported by Eric Blake <ebb9@byu.net>.
63052
63053 2007-02-24  Bruno Haible  <bruno@clisp.org>
63054
63055         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
63056         defined.
63057         * lib/isnanl.c: Remove all code. Just include isnan.c.
63058         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
63059
63060 2007-02-25  Jim Meyering  <jim@meyering.net>
63061
63062         Avoid conflicting types for 'unsetenv' on FreeBSD.
63063         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
63064         conflicting with FreeBSD's (5.0 and 6.1) function declaration
63065         in stdlib.h.
63066
63067 2007-02-24  Bruno Haible  <bruno@clisp.org>
63068
63069         * modules/isnanl-nolibm-tests: New file.
63070         * tests/test-isnanl.c: New file.
63071
63072         * modules/isnanl-nolibm: New file.
63073         * lib/isnanl.h: New file.
63074         * lib/isnanl.c: New file.
63075         * m4/isnanl.m4: New file.
63076
63077 2007-02-24  Bruno Haible  <bruno@clisp.org>
63078
63079         * modules/isnan-nolibm-tests: New file.
63080         * tests/test-isnan.c: New file.
63081
63082         * modules/isnan-nolibm: New file.
63083         * lib/isnan.h: New file.
63084         * lib/isnan.c: New file.
63085         * m4/isnan.m4: New file.
63086
63087 2007-02-24  Bruno Haible  <bruno@clisp.org>
63088
63089         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
63090         assume that an exponent fits in 20 bits.
63091
63092 2007-02-24  Jim Meyering  <jim@meyering.net>
63093
63094         * m4/regex.m4: Update the description of the configure-time option,
63095         --without-included-regex, to state accurately what the defaults are,
63096         and perhaps to give people an idea why using this option is risky.
63097
63098 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
63099
63100         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
63101         loops on small arguments.  This attempts to avoid the problem
63102         Bruno Haible reported for AIX 4.3.2 in
63103         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
63104
63105 2007-02-23  Bruno Haible  <bruno@clisp.org>
63106
63107         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
63108         Needed for help2man.
63109
63110 2007-02-23  Karl Berry  <karl@gnu.org>
63111
63112         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
63113         exists, foo.h should be cvs-ignored, not committed.
63114
63115 2007-02-23  Eric Blake  <ebb9@byu.net>
63116
63117         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
63118         * lib/stat-time.h (includes): Likewise.
63119         * lib/utimecmp.c (includes): Likewise.
63120         * lib/utimens.h (includes): Likewise.
63121         * lib/getdate.y (includes): Also include "timespec.h" for use
63122         internal to the module.
63123         * modules/utimens (Depends-on): Revert yesterday's patch.
63124         * modules/nanosleep (Depends-on): Add missing dependency.
63125
63126 2007-02-22  Bruno Haible  <bruno@clisp.org>
63127
63128         * lib/glob.c: Don't include getlogin_r.h.
63129
63130 2007-02-22  Jim Meyering  <jim@meyering.net>
63131
63132         * modules/utimens (Depends-on): Add timespec, required for
63133         utimens.h's inclusion of timespec.h.
63134
63135 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
63136
63137         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
63138         long unreadable paths in GNU/Linux.  Problem reported by Andreas
63139         Schwab in
63140         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
63141         I'll try to think of a better way to fix the Solaris problem.
63142
63143         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
63144         like glibc; on Solaris 10, it fails with errno == EINVAL.
63145         POSIX says the behavior is unspecified if the first argument is NULL,
63146         so play it safe and never pass NULL to the system getcwd.
63147
63148 2007-02-21  Jim Meyering  <jim@meyering.net>
63149
63150         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
63151         of gettimeofday.  It would conflict with the one now always
63152         provided via sys_time_.h.  Reported by Matthew Woehlke, as
63153         an IRIX 6.5 build failure.
63154
63155 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
63156
63157         Minor fixups to port to Solaris 10 with Sun C 5.8.
63158         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
63159         * modules/getcwd (Depends-on): Add dirfd.
63160         * lib/putenv.c (putenv): #undef it.
63161         (rpl_putenv): New decl.
63162         (malloc, free): Include <stdlib.h> rather than prototyping separately.
63163
63164 2007-02-20  Bruno Haible  <bruno@clisp.org>
63165
63166         * modules/stdio-tests: New file.
63167         * tests/test-stdio.c: New file.
63168
63169         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
63170         (Depends-on): Add stdio.
63171         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
63172         (Include): Use <stdio.h> instead of vsnprintf.h.
63173         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
63174         HAVE_DECL_VSNPRINTF.
63175         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
63176
63177         * modules/snprintf (Files): Remove lib/snprintf.h.
63178         (Depends-on): Add stdio.
63179         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
63180         (Include): Use <stdio.h> instead of snprintf.h.
63181         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
63182         HAVE_DECL_SNPRINTF.
63183         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
63184         * lib/getaddrinfo.c: Likewise.
63185
63186         * modules/stdio: New file.
63187         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
63188         * lib/snprintf.h: Remove file.
63189         * lib/vsnprintf.h: Remove file.
63190         * lib/.cppi-disable: Remove snprintf.h.
63191         * m4/stdio_h.m4: New file.
63192         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
63193
63194 2007-02-20  Jim Meyering  <jim@meyering.net>
63195
63196         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
63197         used by e.g., mingw.  From Bruno Haible.
63198
63199 2007-02-19  Bruno Haible  <bruno@clisp.org>
63200
63201         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
63202         warnings.
63203         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63204
63205 2007-02-19  Bruno Haible  <bruno@clisp.org>
63206
63207         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
63208         from mingw users.
63209
63210 2007-02-19  Bruno Haible  <bruno@clisp.org>
63211
63212         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
63213         warnings.
63214         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
63215
63216 2007-02-19  Jim Meyering  <jim@meyering.net>
63217
63218         Don't use FD after a successful "fdopendir (fd)".
63219         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
63220         Reset it by calling dirfd on the just-obtained DIR*.
63221
63222         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
63223         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
63224
63225 2007-02-18  Bruno Haible  <bruno@clisp.org>
63226
63227         * lib/readlink.c: Include <unistd.h>.
63228         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
63229         HAVE_READLINK.
63230         * modules/readlink (Depends-on): Add unistd.
63231         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63232         (Include): Add <unistd.h>.
63233
63234         * lib/getlogin_r.h: Remove file.
63235         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
63236         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
63237         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
63238         HAVE_DECL_GETLOGIN_R.
63239         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
63240         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63241         (Include): Use <unistd.h> instead of getlogin_r.h.
63242
63243         * lib/getcwd.h: Remove file.
63244         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
63245         * lib/xgetcwd.c: Likewise.
63246         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
63247         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
63248         * modules/getcwd (Files): Remove lib/getcwd.h.
63249         (Depends-on): Add unistd.
63250         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63251         (Include): Use <unistd.h> instad of getcwd.h.
63252
63253         * lib/ftruncate.c: Include <unistd.h> first.
63254         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
63255         Set HAVE_FTRUNCATE.
63256         * modules/ftruncate (Depends-on): Add unistd.
63257         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63258
63259         * lib/fchdir.c: Include <unistd.h> first.
63260         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
63261         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
63262         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
63263         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63264         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
63265
63266         * lib/dup2.c: Include <unistd.h> first.
63267         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
63268         HAVE_DUP2.
63269         * modules/dup2 (Depends-on): Add unistd.
63270         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63271
63272         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
63273         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
63274         REPLACE_CHOWN. Don't define chown as a macro here.
63275         * modules/chown (Depends-on): Add unistd.
63276         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
63277
63278         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
63279         Add definition for GL_LINK_WARNING.
63280         (chown, dup2): New declarations.
63281         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
63282         link warning.
63283         (ftruncate): New declaration.
63284         (getcwd): New declaration, taken from old getcwd.h.
63285         (getlogin_r): New declaration, taken from old getlogin_r.h.
63286         (readlink): New declaration.
63287         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
63288         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
63289         (gl_PREREQ_UNISTD): Remove macro.
63290         (gl_UNISTD_MODULE_INDICATOR): New macro.
63291         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
63292         many new variables. Don't set UNISTD_H.
63293         * modules/unistd (Description): Change.
63294         (Depends-on): Add link-warning.
63295         (configure.ac): Update.
63296         (Makefile.am): Create unistd.h always. Substitute many new variables
63297         into it.
63298
63299 2007-02-18  Bruno Haible  <bruno@clisp.org>
63300
63301         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
63302         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
63303         HAVE_GETSUBOPT.
63304         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
63305         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
63306         * lib/getsubopt.h: Remove file.
63307         * modules/getsubopt (Files): Remove lib/getsubopt.h.
63308         (Depends-on): Add stdlib.
63309         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63310         (Includes): Use <stdlib.h> instead of getsubopt.h.
63311         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
63312         Set HAVE_GETSUBOPT.
63313         * lib/getsubopt.c: Don't include getsubopt.h.
63314
63315 2007-02-18  Bruno Haible  <bruno@clisp.org>
63316
63317         * modules/fchdir (Depends-on): Add dup2.
63318
63319 2007-02-18  Bruno Haible  <bruno@clisp.org>
63320
63321         * lib/stdlib_.h: Handle glibc's special invocation convention
63322         specially.
63323
63324 2007-02-18  Bruno Haible  <bruno@clisp.org>
63325
63326         * modules/stdlib-tests: New file.
63327         * tests/test-stdlib.c: New file.
63328
63329         * modules/mkstemp (Files): Remove lib/mkstemp.h.
63330         (Depends-on): Add stdlib.
63331         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63332         (Includes): Use <stdlib.h> instead of mkstemp.h.
63333         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
63334         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
63335         * lib/mkstemp.c: Don't include mkstemp.h.
63336         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
63337         * lib/stdlib--.h: Don't include mkstemp.h.
63338
63339         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
63340         (Depends-on): Add stdlib.
63341         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63342         (Includes): Use <stdlib.h> instead of mkdtemp.h.
63343         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
63344         HAVE_MKDTEMP.
63345         * lib/mkdtemp.c: Don't include mkdtemp.h.
63346         * lib/clean-temp.c: Don't include mkdtemp.h.
63347
63348         * modules/exit (Files): Remove lib/exit.h.
63349         (Depends-on): Add stdlib.
63350         (Makefile.am): Remove lib_SOURCES.
63351         (Include): Use <stdlib.h> instead of exit.h.
63352         * lib/argmatch.c: Don't include exit.h.
63353         * lib/execute.c: Likewise.
63354         * lib/pagealign_alloc.c: Likewise.
63355         * lib/pipe.c: Likewise.
63356         * lib/wait-process.c: Likewise.
63357         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
63358         * lib/exitfail.c: Likewise.
63359         * lib/savewd.c: Likewise.
63360         * lib/xsetenv.c: Likewise.
63361
63362         * modules/stdlib: New file.
63363         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
63364         and extra comments about mkstemp().
63365         * lib/exit.h: Remove file.
63366         * lib/mkdtemp.h: Remove file.
63367         * lib/mkstemp.h: Remove file.
63368         * m4/stdlib_h.m4: New file.
63369         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
63370
63371 2007-02-18  Bruno Haible  <bruno@clisp.org>
63372
63373         * modules/math-tests: New file.
63374         * tests/test-math.c: New file.
63375
63376         * modules/math: New file.
63377         * modules/mathl (Files): Remove lib/mathl.h.
63378         (Depends-on): Add math.
63379         (Makefile.am): Don't mention mathl.h.
63380         (Include): Use <math.h> instead of mathl.h.
63381         * lib/math_.h: New file.
63382         * lib/mathl.h: Remove file.
63383         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
63384         mathl.h.
63385         * lib/asinl.c: Likewise.
63386         * lib/atanl.c: Likewise.
63387         * lib/ceill.c: Likewise.
63388         * lib/cosl.c: Likewise.
63389         * lib/expl.c: Likewise.
63390         * lib/floorl.c: Likewise.
63391         * lib/frexpl.c: Likewise.
63392         * lib/ldexpl.c: Likewise.
63393         * lib/logl.c: Likewise.
63394         * lib/sincosl.c: Likewise.
63395         * lib/sinl.c: Likewise.
63396         * lib/sqrtl.c: Likewise.
63397         * lib/tanl.c: Likewise.
63398         * lib/trigl.c: Likewise.
63399         * m4/math_h.m4: New file.
63400         * MODULES.html.sh (Mathematics): Add math.
63401
63402 2007-02-17  Bruno Haible  <bruno@clisp.org>
63403
63404         * modules/wctype-tests: New file.
63405         * tests/test-wctype.c: New file.
63406
63407         * modules/wchar-tests: New file.
63408         * tests/test-wchar.c: New file.
63409
63410         * modules/unistd-tests: New file.
63411         * tests/test-unistd.c: New file.
63412
63413         * modules/time-tests: New file.
63414         * tests/test-time.c: New file.
63415
63416         * modules/sysexits-tests: New file.
63417         * tests/test-sysexits.c: New file.
63418
63419         * modules/sys_time-tests: New file.
63420         * tests/test-sys_time.c: New file.
63421
63422         * modules/sys_stat-tests: New file.
63423         * tests/test-sys_stat.c: New file.
63424
63425         * modules/sys_socket-tests: New file.
63426         * tests/test-sys_socket.c: New file.
63427
63428         * modules/sys_select-tests: New file.
63429         * tests/test-sys_select.c: New file.
63430
63431         * modules/string-tests: New file.
63432         * tests/test-string.c: New file.
63433
63434         * modules/stdbool-tests: New file.
63435         * tests/test-stdbool.c: New file.
63436
63437         * modules/netinet_in-tests: New file.
63438         * tests/test-netinet_in.c: New file.
63439
63440         * modules/inttypes-tests: New file.
63441         * tests/test-inttypes.c: New file.
63442
63443         * modules/fcntl-tests: New file.
63444         * tests/test-fcntl.c: New file.
63445
63446         * modules/byteswap-tests: New file.
63447         * tests/test-byteswap.c: New file.
63448
63449         * modules/arpa_inet-tests: New file.
63450         * tests/test-arpa_inet.c: New file.
63451
63452 2007-02-17  Bruno Haible  <bruno@clisp.org>
63453
63454         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
63455         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
63456         if the corresponding module is not enabled. Emit link warnings if
63457         the function is used nevertheless.
63458         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
63459         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
63460         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
63461         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
63462         * modules/inttypes (Depends-on): Add link-warning.
63463         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63464         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
63465         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
63466         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
63467         * modules/imaxdiv (configure.ac): Likewise.
63468         * modules/strtoimax (configure.ac): Likewise.
63469         * modules/strtoumax (configure.ac): Likewise.
63470
63471 2007-02-17  Bruno Haible  <bruno@clisp.org>
63472
63473         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
63474         gl_STRING_MODULE_INDICATOR_DEFAULTS.
63475         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
63476         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
63477
63478 2007-02-17  Bruno Haible  <bruno@clisp.org>
63479
63480         * modules/link-warning: New file.
63481         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
63482         * lib/string_.h (GL_LINK_WARNING): Remove definition.
63483         * modules/string (Depends-on): Add link-warning.
63484         (Makefile.am): Copy the contents of build-aux/link-warning.h into
63485         string.h.
63486         * MODULES.html.sh (Support for building libraries and executables): Add
63487         link-warning.
63488
63489 2007-02-17  Bruno Haible  <bruno@clisp.org>
63490
63491         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
63492         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
63493         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
63494         long lines.
63495
63496 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
63497             Bruno Haible  <bruno@clisp.org>
63498
63499         * modules/tmpfile: New file.
63500         * lib/tmpfile.c: New file.
63501         * m4/tmpfile.m4: New file.
63502         * MODULES.html.sh (func_all_modules): New section "Input/output".
63503
63504 2007-02-15  Bruno Haible  <bruno@clisp.org>
63505
63506         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
63507         (supports_delete_on_close): New function.
63508         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
63509
63510 2007-02-14  Bruno Haible  <bruno@clisp.org>
63511
63512         * modules/mbspcasecmp-tests: New file.
63513         * tests/test-mbspcasecmp.sh: New file.
63514         * tests/test-mbspcasecmp.c: New file.
63515
63516         New module mbspcasecmp.
63517         * modules/mbspcasecmp: New file.
63518         * lib/mbspcasecmp.c: New file.
63519         * lib/string_.h (strncasecmp): Change warning message.
63520         (mbspcasecmp): New declaration.
63521         * m4/mbspcasecmp.m4: New file.
63522         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63523         GNULIB_MBSPCASECMP.
63524         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
63525         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
63526
63527 2007-02-14  Bruno Haible  <bruno@clisp.org>
63528
63529         * modules/mbsncasecmp-tests: New file.
63530         * tests/test-mbsncasecmp.sh: New file.
63531         * tests/test-mbsncasecmp.c: New file.
63532
63533         New module mbsncasecmp.
63534         * modules/mbsncasecmp: New file.
63535         * lib/mbsncasecmp.c: New file.
63536         * lib/string_.h (mbsncasecmp): New declaration.
63537         * m4/mbsncasecmp.m4: New file.
63538         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63539         GNULIB_MBSNCASECMP.
63540         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
63541         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
63542
63543 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
63544
63545         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
63546         Verify that it doesn't overlap with our flags.
63547         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
63548         do not have the desired effect in multibyte locales; instead, use
63549         mbscasecmp.
63550         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
63551         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
63552         we don't require GNU fnmatch ourselves (if our users require it, they
63553         should do so explicitly).
63554
63555         Fix regex code so it doesn't rely on strcasecmp.
63556         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
63557         Otherwise, include gnulib's langinfo.h.
63558         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
63559         undesirable behavior in non-C locales.  Instead, rely on localecharset.
63560         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
63561         * modules/regex (FILES): Remove m4/codeset.m4.
63562         (Depends-on): Add localcharset.  Remove strcase.
63563
63564 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63565
63566         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
63567         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
63568
63569 2007-02-13  Bruno Haible  <bruno@clisp.org>
63570
63571         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
63572         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63573
63574 2007-02-12  Bruno Haible  <bruno@clisp.org>
63575
63576         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
63577         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
63578         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
63579         time warning rather than a link error.
63580
63581 2007-02-12  Bruno Haible  <bruno@clisp.org>
63582
63583         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
63584         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63585         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63586
63587 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63588
63589         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
63590         args, not 2.
63591
63592 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
63593
63594         New module 'time', so that apps can include <time.h> as per
63595         POSIX and GNU instead of separate include files like time_r.h
63596         and timegm.h.  This implementation tries out a simpler approach
63597         for replacing decls in standard include files (as compared to
63598         the string module), somewhat as an experiment.
63599
63600         * config/srclist.txt: Comment out mktime.c for now.
63601         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
63602         since it doesn't apply any more.  Use generic wording instead.
63603         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
63604         'time'.
63605         * lib/time_.h, m4/time_h.m4, modules/time: New files.
63606         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
63607         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
63608         Don't include <sys/types.h>; no longer needed since we assume C89.
63609         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
63610         * lib/strftime.c: Likewise.
63611         * lib/time_r.c: Likewise.
63612         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
63613         * lib/nanosleep.c: Include <time.h> first, to check interface.
63614         * lib/strptime.c: Likewise.
63615         * lib/time_r.c: Likewise.
63616         * lib/timegm.c: Likewise.
63617         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
63618         needed.
63619         * lib/timegm.c: Don't include timegm.h; no longer needed.
63620         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
63621         time.h now handles any problems in that area.
63622         (struct timespec, nanosleep): Remove; time.h now arranges for these.
63623         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
63624         that time.h defines struct timespec.
63625         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
63626         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
63627         handles that.
63628         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
63629         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
63630         needed.  Set REPLACE_LOCALTIME.
63631         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
63632         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
63633         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
63634         nanosleep; time_h.m4 now does that.  Don't require
63635         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
63636         module handles this now.
63637         * modules/getdate (Depends-on): Remove timespec.  Add time.
63638         * modules/nanosleep (Depends-on): Likewise.
63639         * modules/stat-time (Depends-on): Likewise.
63640         * modules/nanosleep (Include): Include time.h, not timespec.h.
63641         * modules/strptime (Files): Remove lib/strptime.h.
63642         (Depends-on): Add extensions, time.
63643         (Include): Include time.h, not strptime.h.
63644         * modules/time_r (Files): Remove lib/time_r.h.
63645         (Depends-on): Add time.
63646         (Include): Include time.h, not time_r.h.
63647         * modules/timegm: Likewise.
63648         * modules/timespec (Description): Now does timespec-related decls
63649         of our own, instead of struct timespec itself.
63650         (Depends-on): Add time; remove extensions.
63651         (Maintainer): Add self.
63652         * modules/utimecmp (Depends-on): Add time; remove timespec.
63653         * modules/utimens (Depends-on): Likewise.
63654         * modules/xnanosleep (Depends-on): Likewise.
63655
63656 2007-02-11  Bruno Haible  <bruno@clisp.org>
63657
63658         * lib/c-strstr.c: Include allocsa.h.
63659         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63660         * lib/c-strcasestr.c: Include allocsa.h.
63661         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63662         * lib/strcasestr.c: Include allocsa.h.
63663         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
63664         * lib/mbsstr.c: Include allocsa.h.
63665         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63666         allocsa/freesa instead of malloc/free.
63667         * lib/mbscasestr.c: Include allocsa.h.
63668         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
63669         allocsa/freesa instead of malloc/free.
63670         * modules/c-strstr (Depends-on): Add allocsa.
63671         * modules/c-strcasestr (Depends-on): Likewise.
63672         * modules/strcasestr (Depends-on): Likewise.
63673         * modules/mbsstr (Depends-on): Likewise.
63674         * modules/mbscasestr (Depends-on): Likewise.
63675
63676 2007-02-11  Bruno Haible  <bruno@clisp.org>
63677
63678         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
63679
63680         * modules/mbsspn-tests: New file.
63681         * tests/test-mbsspn.sh: New file.
63682         * tests/test-mbsspn.c: New file.
63683
63684 2007-02-11  Bruno Haible  <bruno@clisp.org>
63685
63686         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
63687
63688         * modules/mbspbrk-tests: New file.
63689         * tests/test-mbspbrk.sh: New file.
63690         * tests/test-mbspbrk.c: New file.
63691
63692 2007-02-11  Bruno Haible  <bruno@clisp.org>
63693
63694         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
63695         unneeded cast.
63696
63697         * modules/mbscspn-tests: New file.
63698         * tests/test-mbscspn.sh: New file.
63699         * tests/test-mbscspn.c: New file.
63700
63701 2007-02-11  Bruno Haible  <bruno@clisp.org>
63702
63703         * modules/mbscasecmp-tests: New file.
63704         * tests/test-mbscasecmp.sh: New file.
63705         * tests/test-mbscasecmp.c: New file.
63706
63707 2007-02-11  Bruno Haible  <bruno@clisp.org>
63708
63709         Ensure O(n) worst-case complexity of mbscasestr.
63710         * lib/mbscasestr.c: Include stdbool.h.
63711         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63712         functions.
63713         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
63714         the bookkeeping indicates that it's worth it.
63715         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
63716
63717         * modules/mbscasestr-tests: New file.
63718         * tests/test-mbscasestr1.c: New file.
63719         * tests/test-mbscasestr2.sh: New file.
63720         * tests/test-mbscasestr2.c: New file.
63721         * tests/test-mbscasestr3.sh: New file.
63722         * tests/test-mbscasestr3.c: New file.
63723         * tests/test-mbscasestr4.sh: New file.
63724         * tests/test-mbscasestr4.c: New file.
63725         * m4/locale-tr.m4: New file.
63726
63727 2007-02-11  Bruno Haible  <bruno@clisp.org>
63728
63729         Ensure O(n) worst-case complexity of mbsstr.
63730         * lib/mbsstr.c: Include stdbool.h.
63731         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
63732         functions.
63733         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
63734         bookkeeping indicates that it's worth it.
63735         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
63736
63737         * modules/mbsstr-tests: New file.
63738         * tests/test-mbsstr1.c: New file.
63739         * tests/test-mbsstr2.sh: New file.
63740         * tests/test-mbsstr2.c: New file.
63741         * tests/test-mbsstr3.sh: New file.
63742         * tests/test-mbsstr3.c: New file.
63743         * m4/locale-fr.m4: New file.
63744
63745 2007-02-11  Bruno Haible  <bruno@clisp.org>
63746
63747         * lib/mbsrchr.c (mbsrchr): Fix bug.
63748
63749         * modules/mbsrchr-tests: New file.
63750         * tests/test-mbsrchr.sh: New file.
63751         * tests/test-mbsrchr.c: New file.
63752
63753 2007-02-11  Bruno Haible  <bruno@clisp.org>
63754
63755         * lib/mbschr.c (mbschr): Fix bug.
63756
63757         * modules/mbschr-tests: New file.
63758         * tests/test-mbschr.sh: New file.
63759         * tests/test-mbschr.c: New file.
63760         * m4/locale-zh.m4: New file.
63761
63762 2007-02-11  Bruno Haible  <bruno@clisp.org>
63763
63764         Support for copying multibyte string iterators.
63765         * lib/mbiter.h: Include <string.h>.
63766         (mbiter_multi_copy): New function.
63767         (mbi_copy): New macro.
63768         * lib/mbuiter.h: Include <string.h>.
63769         (mbuiter_multi_copy): New function.
63770         (mbui_copy): New macro.
63771
63772 2007-02-11  Bruno Haible  <bruno@clisp.org>
63773
63774         New module mbslen.
63775         * modules/mbslen: New file.
63776         * lib/mbslen.c: New file.
63777         * lib/string_.h (mbslen): New declaration.
63778         * m4/mbslen.m4: New file.
63779         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63780         GNULIB_MBSLEN.
63781         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
63782         * MODULES.html.sh (Internationalization functions): Add mbslen.
63783
63784 2007-02-11  Bruno Haible  <bruno@clisp.org>
63785
63786         Ensure O(n) worst-case complexity of strcasestr substitute.
63787         * lib/strcasestr.c: Include stdbool.h.
63788         (knuth_morris_pratt): New function.
63789         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63790         bookkeeping indicates that it's worth it.
63791         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
63792
63793         * modules/strcasestr-tests: New file.
63794         * tests/test-strcasestr.c: New file.
63795
63796 2007-02-11  Bruno Haible  <bruno@clisp.org>
63797
63798         Ensure O(n) worst-case complexity of c_strcasestr.
63799         * lib/c-strcasestr.c: Include stdbool.h, string.h.
63800         (knuth_morris_pratt): New function.
63801         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
63802         the bookkeeping indicates that it's worth it.
63803         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
63804
63805         * modules/c-strcasestr-tests: New file.
63806         * tests/test-c-strcasestr.c: New file.
63807
63808 2007-02-11  Bruno Haible  <bruno@clisp.org>
63809
63810         Ensure O(n) worst-case complexity of c_strstr.
63811         * lib/c-strstr.c: Include stdbool.h, string.h.
63812         (knuth_morris_pratt): New function.
63813         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
63814         bookkeeping indicates that it's worth it.
63815         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
63816
63817         * lib/c-strstr.c: Complete rewrite for maintainability.
63818
63819         * modules/c-strstr-tests: New file.
63820         * tests/test-c-strstr.c: New file.
63821
63822 2007-02-11  Bruno Haible  <bruno@clisp.org>
63823
63824         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
63825         5.2.1 and earlier, whereby \055 was treated just like the range
63826         delimiter '-'.
63827         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63828
63829 2007-02-08  Bruno Haible  <bruno@clisp.org>
63830
63831         * modules/regex (Depends-on): Add stdbool.
63832         Reported by Dalibor Topic <robilad@kaffe.org>.
63833
63834 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63835
63836         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
63837         Prefer returning from main to exiting from it.
63838         Remove unnecessary parens after sizeof.
63839
63840 2007-02-05  Bruno Haible  <bruno@clisp.org>
63841
63842         New module mbssep.
63843         * modules/mbssep: New file.
63844         * lib/mbssep.c: New file.
63845         * lib/string_.h (strsep): Add a conditional link warning.
63846         (mbssep): New declaration.
63847         * m4/mbssep.m4: New file.
63848         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63849         GNULIB_MBSSEP.
63850         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
63851         * MODULES.html.sh (Internationalization functions): Add mbssep.
63852
63853 2007-02-05  Bruno Haible  <bruno@clisp.org>
63854
63855         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
63856         Optimize search in case of 1 delimiter.
63857
63858 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63859
63860         * lib/acl.h: Include sys/types.h before sys/acl.h.
63861
63862 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
63863
63864         Merge upstream fix for glibc bugzilla #3957:
63865
63866         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
63867
63868         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
63869         bit for RE_HAT_LISTS_NOT_NEWLINE.
63870         (build_charclass_op): Remove bogus comment.
63871
63872 2007-02-05  Simon Josefsson  <simon@josefsson.org>
63873
63874         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
63875
63876 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
63877
63878         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
63879         * lib/memmem.c [!defined _LIBC]: Include config.h.
63880
63881 2007-02-04  Bruno Haible  <bruno@clisp.org>
63882
63883         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
63884         warning message.
63885
63886 2007-02-04  Bruno Haible  <bruno@clisp.org>
63887
63888         New module mbstok_r.
63889         * modules/mbstok_r: New file.
63890         * lib/mbstok_r.c: New file.
63891         * lib/string_.h (strtok_r): Change argument names to match the
63892         comments. Add a conditional link warning.
63893         (mbstok_r): New declaration.
63894         * m4/mbstok_r.m4: New file.
63895         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63896         GNULIB_MBSTOK_R.
63897         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
63898         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
63899
63900 2007-02-04  Bruno Haible  <bruno@clisp.org>
63901
63902         New module mbsspn.
63903         * modules/mbsspn: New file.
63904         * lib/mbsspn.c: New file.
63905         * lib/string_.h (strspn): Add a conditional link warning.
63906         (mbsspn): New declaration.
63907         * m4/mbsspn.m4: New file.
63908         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63909         GNULIB_MBSSPN.
63910         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
63911         * MODULES.html.sh (Internationalization functions): Add mbsspn.
63912
63913 2007-02-04  Bruno Haible  <bruno@clisp.org>
63914
63915         New module mbspbrk.
63916         * modules/mbspbrk: New file.
63917         * lib/mbspbrk.c: New file.
63918         * lib/string_.h (strpbrk): Add a conditional link warning.
63919         (mbspbrk): New declaration.
63920         * m4/mbspbrk.m4: New file.
63921         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63922         GNULIB_MBSPBRK.
63923         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
63924         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
63925
63926 2007-02-04  Bruno Haible  <bruno@clisp.org>
63927
63928         New module mbscspn.
63929         * modules/mbscspn: New file.
63930         * lib/mbscspn.c: New file.
63931         * lib/string_.h (strcspn): Add a conditional link warning.
63932         (mbscspn): New declaration.
63933         * m4/mbscspn.m4: New file.
63934         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63935         GNULIB_MBSCSPN.
63936         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
63937         * MODULES.html.sh (Internationalization functions): Add mbscspn.
63938
63939 2007-02-04  Bruno Haible  <bruno@clisp.org>
63940
63941         New module mbscasestr, reduced goal of strcasestr.
63942         * modules/mbscasestr: New file.
63943         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
63944         (mbscasestr): Renamed from strcasestr.
63945         * lib/strcasestr.c: Don't include mbuiter.h.
63946         (strcasestr): Remove support for multibyte locales.
63947         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
63948         Change the conditional link warning.
63949         (mbscasestr): New declaration.
63950         * m4/mbscasestr.m4: New file.
63951         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
63952         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
63953         REPLACE_STRCASESTR.
63954         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
63955         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63956         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63957         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
63958         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
63959         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
63960         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
63961         (Depends-on): Remove mbuiter.
63962         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
63963
63964 2007-02-04  Bruno Haible  <bruno@clisp.org>
63965
63966         Simplify handling of strncasecmp.
63967         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
63968         the conditional link warning.
63969         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
63970         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
63971         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
63972         * modules/strcase (configure.ac): Don't invoke
63973         gl_STRING_MODULE_INDICATOR.
63974         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
63975
63976 2007-02-04  Bruno Haible  <bruno@clisp.org>
63977
63978         New module mbscasecmp, reduced goal of strcasecmp.
63979         * modules/mbscasecmp: New file.
63980         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
63981         (mbscasecmp): Renamed from strcasecmp.
63982         * lib/strcasecmp.c: Don't include mbuiter.h.
63983         (strcasecmp): Remove support for multibyte locales.
63984         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
63985         Change the conditional link warning.
63986         (mbscasecmp): New declaration.
63987         * m4/mbscasecmp.m4: New file.
63988         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
63989         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
63990         REPLACE_STRCASECMP.
63991         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
63992         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
63993         GNULIB_MBSCASECMP.
63994         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
63995         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
63996         * modules/strcase (Files): Remove m4/mbrtowc.m4.
63997         (Depends-on): Remove mbuiter.
63998         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
63999
64000 2007-02-04  Bruno Haible  <bruno@clisp.org>
64001
64002         New module mbsstr. Remove module strstr.
64003         * modules/mbsstr: New file.
64004         * modules/strstr: Remove file.
64005         * lib/mbsstr.c: Renamed from lib/strstr.c.
64006         (mbsstr): Renamed from strstr.
64007         * lib/string_.h (strstr): Remove declaration. Change the conditional
64008         link warning.
64009         (mbsstr): New declaration.
64010         * m4/mbsstr.m4: New file.
64011         * m4/strstr.m4: Remove file.
64012         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
64013         REPLACE_STRSTR.
64014         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
64015         Don't initialize GNULIB_STRSTR.
64016         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
64017         substitute GNULIB_STRSTR and REPLACE_STRSTR.
64018         * MODULES.html.sh (Internationalization functions): Add mbsstr.
64019         (Support for systems lacking ANSI C 89): Remove strstr.
64020
64021 2007-02-04  Bruno Haible  <bruno@clisp.org>
64022
64023         New module mbsrchr.
64024         * modules/mbsrchr: New file.
64025         * lib/mbsrchr.c: New file.
64026         * lib/string_.h (strrchr): Add a conditional link warning.
64027         (mbsrchr): New declaration.
64028         * m4/mbsrchr.m4: New file.
64029         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64030         GNULIB_MBSRCHR.
64031         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
64032         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
64033
64034 2007-02-04  Bruno Haible  <bruno@clisp.org>
64035
64036         New module mbschr.
64037         * modules/mbschr: New file.
64038         * lib/mbschr.c: New file.
64039         * lib/string_.h (strchr): Add a conditional link warning.
64040         (mbschr): New declaration.
64041         * m4/mbschr.m4: New file.
64042         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64043         GNULIB_MBSCHR.
64044         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
64045         * MODULES.html.sh (Internationalization functions): Add mbschr.
64046
64047 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
64048
64049         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
64050
64051         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
64052
64053 2007-02-04  Bruno Haible  <bruno@clisp.org>
64054
64055         New module description section 'configure.ac-early'.
64056         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
64057         (func_get_autoconf_early_snippet): New function.
64058         (func_import, func_create_testdir): Use it. Remove special cases for
64059         modules 'extensions' and 'lock'.
64060         * modules/extensions (configure.ac-early): Require
64061         gl_USE_SYSTEM_EXTENSIONS.
64062         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
64063
64064 2007-02-04  Bruno Haible  <bruno@clisp.org>
64065
64066         Make use of gcj-4.3's -fsource and -ftarget option.
64067         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
64068         and if so try the options -fsource and -ftarget.
64069         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
64070         source_version, ftarget_option, target_version arguments.
64071         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
64072         (is_envjavac_oldgcj_14_14_usable): Renamed from
64073         is_envjavac_gcj_14_14_usable.
64074         (is_envjavac_oldgcj_14_13_usable): Renamed from
64075         is_envjavac_gcj_14_13_usable.
64076         (is_gcj_present): Update.
64077         (is_gcj_43, is_gcj43_usable): New functions.
64078         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
64079         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
64080         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
64081         try the options -fsource and -ftarget.
64082
64083 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
64084
64085         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
64086         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
64087         larger value.
64088
64089 2007-02-03  Jim Meyering  <jim@meyering.net>
64090
64091         Give tools a better chance to allocate space for very large buffers.
64092         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
64093
64094         Make pwd and readlink work also when run with an unreadable parent dir
64095         on systems with openat support.
64096         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
64097         provided getcwd function, even when we have openat support.
64098         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
64099
64100 2007-02-02  Bruno Haible  <bruno@clisp.org>
64101
64102         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
64103         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
64104         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
64105         portability problems if one of these functions is only used on specific
64106         platforms.
64107         Reported by Paul Eggert.
64108
64109 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
64110
64111         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
64112         is causing more trouble than it's curing.
64113         * lib/regex_internal.h (__mempcpy): Remove.
64114         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
64115         (and make the code a tad smaller to boot).
64116         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
64117
64118 2007-02-02  Jim Meyering  <jim@meyering.net>
64119
64120         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
64121         section, not in the Makefile.am: one.
64122
64123 2007-02-02  Eric Blake  <ebb9@byu.net>
64124
64125         * lib/strchrnul.c: Always include config.h first.
64126
64127         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
64128         gnulib strstr is not necessary here.
64129
64130 2007-02-02  Simon Josefsson  <simon@josefsson.org>
64131
64132         * m4/socklen.m4: Fix typo.
64133
64134 2007-02-02  Eric Blake  <ebb9@byu.net>
64135
64136         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
64137         * modules/netinet_in (Makefile.am): Likewise.
64138
64139 2007-02-01  Bruno Haible  <bruno@clisp.org>
64140
64141         * lib/string_.h (GL_LINK_WARNING): New macro.
64142         (strcasecmp, strstr, strcasestr): If provided by the system,
64143         conditionally define as a macro that leads to a warning instead of to
64144         an error.
64145         (strncasecmp): Conditionally define as a macro that leads to a warning.
64146
64147 2007-02-01  Karl Berry  <karl@gnu.org>
64148
64149         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
64150
64151 2007-02-01  Bruno Haible  <bruno@clisp.org>
64152
64153         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
64154         renamings.
64155
64156 2007-02-01  Eric Blake  <ebb9@byu.net>
64157
64158         * modules/regex (Depends-on): Revert dependence on mempcpy.
64159         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
64160         module's definition of mempcpy.
64161         Reported by Paul Eggert.
64162
64163 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
64164
64165         * lib/string_.h: If the gnulib module XYZ is not present, undefine
64166         the symbol XYZ before redefining it.  This fixes a problem with
64167         programs that don't use XYZ, when compiled on systems that define
64168         XYZ to something else.
64169
64170 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
64171
64172         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
64173         occurs when "mkdir -m foo" creates a setgid directory that is (1)
64174         writeable to group or other and (2) is intended to have a special
64175         mode bit that is set or cleared.  In such a case, the directory
64176         should be neither group- nor other-writeable until the special
64177         mode bits are right.
64178
64179 2007-01-31  Eric Blake  <ebb9@byu.net>
64180
64181         * modules/mountlist (Depends-on): Add strstr.
64182
64183         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
64184         bug.
64185         * modules/string (Makefile.am): Remove redundant replacement.
64186         * modules/regex (Depends-on): Add mempcpy.
64187
64188 2007-01-31  Bruno Haible  <bruno@clisp.org>
64189
64190         New module description field 'Link'.
64191         * gnulib-tool (func_usage): Document --extract-link-directive.
64192         (sed_extract_prog): Recognize 'Link' directive.
64193         (func_get_link_directive): New function.
64194         (func_import): Show summary of link directives.
64195         Handle --extract-link-directive option.
64196         * modules/acl (Link): New section.
64197         * modules/clock-time (Link): New section.
64198         * modules/euidaccess (Link): New section.
64199         * modules/gettext (Link): New section.
64200         * modules/iconv (Link): New section.
64201         * modules/lock (Link): New section.
64202         * modules/nanosleep (Link): New section.
64203         * modules/readline (Link): New section.
64204
64205 2007-01-27  Bruno Haible  <bruno@clisp.org>
64206
64207         Enforce the use of gnulib modules for unportable <string.h> functions.
64208         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
64209         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
64210         (gl_HEADER_STRING_H_BODY): Require it.
64211         * lib/string_.h: If the gnulib module XYZ is not present, redefine
64212         the symbol XYZ to one that gives a link error.
64213         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
64214         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
64215         * modules/mempcpy (configure.ac): Likewise.
64216         * modules/memrchr (configure.ac): Likewise.
64217         * modules/stpcpy (configure.ac): Likewise.
64218         * modules/stpncpy (configure.ac): Likewise.
64219         * modules/strcase (configure.ac): Likewise.
64220         * modules/strcasestr (configure.ac): Likewise.
64221         * modules/strchrnul (configure.ac): Likewise.
64222         * modules/strdup (configure.ac): Likewise.
64223         * modules/strndup (configure.ac): Likewise.
64224         * modules/strnlen (configure.ac): Likewise.
64225         * modules/strpbrk (configure.ac): Likewise.
64226         * modules/strsep (configure.ac): Likewise.
64227         * modules/strstr (configure.ac): Likewise.
64228         * modules/strtok_r (configure.ac): Likewise.
64229
64230 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
64231
64232         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
64233
64234 2007-01-30  Jim Meyering  <jim@meyering.net>
64235
64236         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
64237
64238 2007-01-29  Bruno Haible  <bruno@clisp.org>
64239
64240         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
64241         * lib/execute.c: Likewise.
64242         * lib/pipe.c: Likewise.
64243         * lib/printf-args.h: Likewise.
64244         * lib/printf-args.c: Likewise.
64245         * lib/printf-parse.c: Likewise.
64246         * lib/vasnprintf.c: Likewise.
64247
64248 2007-01-29  Eric Blake  <ebb9@byu.net>
64249
64250         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
64251         declaration.
64252
64253 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
64254
64255         * lib/strptime.h (strptime): Use 'restrict' for args where
64256         POSIX requires this.
64257         * lib/strptime.c (strptime): Likewise.
64258         Change license notice from LGPL to GPL, since gnulib-tool will
64259         change this as needed.
64260         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
64261         defined.
64262         Include "strptime.h" first, to check interface.
64263         Do not #undef _LIBC and _NL_CURRENT.
64264         Do not include <stdlib.h>; no longer needed.
64265         Include "time_r.h" and declare ptime_locale_status
64266         only if _LIBC is not defined.
64267         (__P): Remove unused macro.
64268         (match_string): Bring back glibc version, but use it only if _LIBC
64269         is defined.
64270         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
64271         Remove unnecessary assertion and abort() call.
64272         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
64273         * m4/strptime.m4: Fix serial number comment.
64274         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
64275         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
64276         (Depends-on): Add time_r.
64277
64278 2007-01-29  Bruno Haible  <bruno@clisp.org>
64279
64280         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
64281         strptime.
64282         * modules/strptime (Depends-on): Add stdbool.
64283         * lib/strptime.h: Include <time.h> always. Add comments.
64284
64285 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
64286
64287         * modules/strptime: New file.
64288         * lib/strptime.h: New file.
64289         * lib/strptime.c: New file.
64290         * m4/strptime.m4: New file.
64291
64292 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
64293
64294         * MODULES.html.sh: New module mpsort.
64295         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
64296
64297         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
64298         a circularity problem with HP-UX ia64 reported by Bob Proulx in
64299         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
64300         All uses changed.
64301         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
64302         All uses changed.
64303         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
64304         to _Restrict_.
64305         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
64306         the parameter matches the prototype.
64307
64308 2007-01-28  Jim Meyering  <jim@meyering.net>
64309
64310         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
64311         sys/time.h here, reverting that part of the previous patch:
64312         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
64313
64314 2007-01-28  Bruno Haible  <bruno@clisp.org>
64315
64316         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
64317         value of $(SYS_TIME_H).
64318         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
64319         remove it conditionally, too. [added by Jim Meyering]
64320         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
64321         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64322         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
64323         GETTIMEOFDAY_REPLACEMENT to 1.
64324
64325 2007-01-28  Bruno Haible  <bruno@clisp.org>
64326
64327         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
64328         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
64329         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
64330         Set UNISTD_H instead of UNISTD_H2.
64331         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
64332
64333 2007-01-28  Bruno Haible  <bruno@clisp.org>
64334
64335         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
64336         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
64337
64338 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64339
64340         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
64341         (func_create_testdir): Ensure C locale for `grep' and `tr'
64342         character ranges.
64343         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
64344         ACLOCAL_AMFLAGS parsing state machine.
64345
64346 2007-01-27  Bruno Haible  <bruno@clisp.org>
64347
64348         * modules/unistr/base: Update.
64349
64350 2007-01-27  Bruno Haible  <bruno@clisp.org>
64351
64352         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
64353         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
64354         * modules/unistr/u32-mbtouc-unsafe: Renamed from
64355         modules/unistr/u32-mbtouc.
64356         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
64357         * lib/unistr.h: Update.
64358         * lib/linebreak.c: Update.
64359         * modules/unistr/u32-mbtouc: Renamed from
64360         modules/unistr/u32-mbtouc-safe.
64361         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
64362         * lib/unistr.h: Update.
64363         * lib/unistr/u32-to-u8.c: Update.
64364         * lib/unistr/u32-to-u16.c: Update.
64365
64366 2007-01-27  Bruno Haible  <bruno@clisp.org>
64367
64368         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
64369         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
64370         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
64371         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
64372         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
64373         * modules/unistr/u16-mbtouc-unsafe: Renamed from
64374         modules/unistr/u16-mbtouc.
64375         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
64376         * lib/unistr.h: Update.
64377         * lib/linebreak.c: Update.
64378         * modules/linebreak: Update.
64379         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
64380         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
64381         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
64382         * modules/unistr/u16-mbtouc: Renamed from
64383         modules/unistr/u16-mbtouc-safe.
64384         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
64385         * lib/unistr.h: Update.
64386         * lib/unistr/u16-to-u8.c: Update.
64387         * modules/unistr/u16-to-u8: Update.
64388         * lib/unistr/u16-to-u32.c: Update.
64389         * modules/unistr/u16-to-u32: Update.
64390
64391 2007-01-27  Bruno Haible  <bruno@clisp.org>
64392
64393         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
64394         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
64395         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
64396         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
64397         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
64398         * modules/unistr/u8-mbtouc-unsafe: Renamed from
64399         modules/unistr/u8-mbtouc.
64400         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
64401         * lib/unistr.h: Update.
64402         * lib/striconveh.c: Update.
64403         * modules/striconveh: Update.
64404         * lib/linebreak.c: Update.
64405         * modules/linebreak: Update.
64406         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
64407         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
64408         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
64409         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
64410         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
64411         * lib/unistr.h: Update.
64412         * lib/striconveh.c: Update.
64413         * modules/striconveh: Update.
64414         * lib/unistr/u8-to-u16.c: Update.
64415         * modules/unistr/u8-to-u16: Update.
64416         * lib/unistr/u8-to-u32.c: Update.
64417         * modules/unistr/u8-to-u32: Update.
64418
64419 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64420
64421         Sync from Libtool.
64422         * lib/argz.c: Do not include strings.h nor memory.h, include
64423         string.h unconditionally.  Patch by Simon Josefsson.
64424
64425 2007-01-27  Bruno Haible  <bruno@clisp.org>
64426
64427         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
64428         from gl_HEADER_STRING_H_BODY.
64429         (gl_HEADER_STRING_H_BODY): Require it.
64430         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
64431         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
64432         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
64433         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
64434         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64435         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
64436         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
64437         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
64438         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
64439         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
64440         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
64441         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
64442         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
64443         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
64444         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64445
64446 2007-01-27  Bruno Haible  <bruno@clisp.org>
64447
64448         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
64449         check_PROGRAMS into noinst_PROGRAMS.
64450         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
64451         check_PROGRAMS in this case.
64452         (func_import): Set for_test to false.
64453         (func_create_testdir): Set for_test to true.
64454
64455 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
64456             Bruno Haible  <bruno@clisp.org>
64457
64458         * modules/strcasestr (Files): Remove lib/strcasestr.h.
64459         (Depends-on): Add string.
64460         (Includes): Use <string.h> instead of strcasestr.h.
64461         * modules/string (Makefile.am): Also substitute the value of
64462         REPLACE_STRCASESTR.
64463         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
64464         assume strcasestr is declared in <string.h> not <strings.h>. Also
64465         set REPLACE_STRCASESTR.
64466         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
64467         REPLACE_STRCASESTR.
64468         * lib/strcasestr.h: Remove file.
64469         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
64470         * lib/string_.h (strcasestr): New declaration.
64471
64472 2007-01-27  Bruno Haible  <bruno@clisp.org>
64473
64474         * lib/string_.h: Use 'extern'.
64475
64476 2007-01-27  Jim Meyering  <jim@meyering.net>
64477
64478         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
64479         of set-but-not-used local, "q".
64480
64481         * lib/mempcpy.c: Include <config.h> before <string.h>.
64482         This fixes a compilation error on HP-UX, due to the system's
64483         "restrict"-using mempcpy prototype.
64484
64485 2007-01-26  Bruno Haible  <bruno@clisp.org>
64486
64487         Small optimization.
64488         * lib/javacomp.c: Include c-strstr.h.
64489          (is_envjavac_gcj): Use c_strstr instead of strstr.
64490         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
64491
64492 2007-01-26  Bruno Haible  <bruno@clisp.org>
64493
64494         * MODULES.html.sh (Unicode string functions): Add the new modules.
64495
64496         * modules/uniconv/u32-strconv-to-locale: New file.
64497         * lib/uniconv/u32-strconv-to-locale.c: New file.
64498
64499         * modules/uniconv/u16-strconv-to-locale: New file.
64500         * lib/uniconv/u16-strconv-to-locale.c: New file.
64501
64502         * modules/uniconv/u8-strconv-to-locale: New file.
64503         * lib/uniconv/u8-strconv-to-locale.c: New file.
64504
64505         * modules/uniconv/u32-strconv-from-locale: New file.
64506         * lib/uniconv/u32-strconv-from-locale.c: New file.
64507
64508         * modules/uniconv/u16-strconv-from-locale: New file.
64509         * lib/uniconv/u16-strconv-from-locale.c: New file.
64510
64511         * modules/uniconv/u8-strconv-from-locale: New file.
64512         * lib/uniconv/u8-strconv-from-locale.c: New file.
64513
64514         * modules/uniconv/u32-strconv-to-enc: New file.
64515         * lib/uniconv/u32-strconv-to-enc.c: New file.
64516         * modules/uniconv/u32-strconv-to-enc-tests: New file.
64517         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
64518
64519         * modules/uniconv/u16-strconv-to-enc: New file.
64520         * lib/uniconv/u16-strconv-to-enc.c: New file.
64521         * lib/uniconv/u-strconv-to-enc.h: New file.
64522         * modules/uniconv/u16-strconv-to-enc-tests: New file.
64523         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
64524
64525         * modules/uniconv/u8-strconv-to-enc: New file.
64526         * lib/uniconv/u8-strconv-to-enc.c: New file.
64527         * modules/uniconv/u8-strconv-to-enc-tests: New file.
64528         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
64529
64530         * modules/uniconv/u32-strconv-from-enc: New file.
64531         * lib/uniconv/u32-strconv-from-enc.c: New file.
64532         * modules/uniconv/u32-strconv-from-enc-tests: New file.
64533         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
64534
64535         * modules/uniconv/u16-strconv-from-enc: New file.
64536         * lib/uniconv/u16-strconv-from-enc.c: New file.
64537         * modules/uniconv/u16-strconv-from-enc-tests: New file.
64538         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
64539
64540         * modules/uniconv/u8-strconv-from-enc: New file.
64541         * lib/uniconv/u8-strconv-from-enc.c: New file.
64542         * lib/uniconv/u-strconv-from-enc.h: New file.
64543         * modules/uniconv/u8-strconv-from-enc-tests: New file.
64544         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
64545
64546         * modules/uniconv/u32-conv-from-enc: New file.
64547         * lib/uniconv/u32-conv-from-enc.c: New file.
64548         * modules/uniconv/u32-conv-from-enc-tests: New file.
64549         * tests/uniconv/test-u32-conv-from-enc.c: New file.
64550
64551         * modules/uniconv/u16-conv-from-enc: New file.
64552         * lib/uniconv/u16-conv-from-enc.c: New file.
64553         * lib/uniconv/u-conv-from-enc.h: New file.
64554         * modules/uniconv/u16-conv-from-enc-tests: New file.
64555         * tests/uniconv/test-u16-conv-from-enc.c: New file.
64556
64557         * modules/uniconv/u8-conv-from-enc: New file.
64558         * lib/uniconv/u8-conv-from-enc.c: New file.
64559         * modules/uniconv/u8-conv-from-enc-tests: New file.
64560         * tests/uniconv/test-u8-conv-from-enc.c: New file.
64561
64562         * modules/uniconv/base: New file.
64563         * lib/uniconv.h: New file.
64564
64565 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
64566
64567         * doc/gnulib-tool.texi (Initial import): Update to match current
64568         behavior with strdup module.
64569         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
64570         * lib/memmem.h: Remove; all uses removed.  This is now done
64571         by <string.h>.
64572         * lib/mempcpy.h: Likewise.
64573         * lib/memrchr.h: Likewise.
64574         * lib/stpcpy.h: Likewise.
64575         * lib/stpncpy.h: Likewise.
64576         * lib/strcase.h: Likewise.
64577         * lib/strchrnul.h: Likewise.
64578         * lib/strdup.h: Likewise.
64579         * lib/strndup.h: Likewise.
64580         * lib/strnlen.h: Likewise.
64581         * lib/strpbrk.h: Likewise.
64582         * lib/strsep.h: Likewise.
64583         * lib/strstr.h: Likewise.
64584         * lib/strtok_r.h: Likewise.
64585         * lib/string_.h: New file.
64586         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
64587         Rely on <string.h> instead.
64588         * lib/canon-host.c: Likewise.
64589         * lib/chdir-long.c: Likewise.
64590         * lib/concatpath.c: Likewise.
64591         * lib/exclude.c: Likewise.
64592         * lib/fchdir.c: Likewise.
64593         * lib/getaddrinfo.c: Likewise.
64594         * lib/getcwd.c: Likewise.
64595         * lib/getsubopt.c: Likewise.
64596         * lib/glob.c: Likewise.
64597         * lib/hard-locale.c: Likewise.
64598         * lib/iconvme.c: Likewise.
64599         * lib/javacomp.c: Likewise.
64600         * lib/mempcpy.c: Likewise.
64601         * lib/memrchr.c: Likewise.
64602         * lib/regex_internal.h: Likewise.
64603         * lib/stpncpy.c: Likewise.
64604         * lib/strcasecmp.c: Likewise.
64605         * lib/strchrnul.c: Likewise.
64606         * lib/strdup.c: Likewise.
64607         * lib/striconv.c: Likewise.
64608         * lib/striconveh.c: Likewise.
64609         * lib/striconveha.c: Likewise.
64610         * lib/strncasecmp.c: Likewise.
64611         * lib/strndup.c: Likewise.
64612         * lib/strnlen.c: Likewise.
64613         * lib/strsep.c: Likewise.
64614         * lib/strstr.c: Likewise.
64615         * lib/strtok_r.c: Likewise.
64616         * lib/userspec.c: Likewise.
64617         * lib/w32spawn.h: Likewise.
64618         * lib/xstrndup.c: Likewise.
64619         * lib/mountlist.c (strstr): Remove decl.
64620         * m4/string_h.m4: New file.
64621         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
64622         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
64623         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
64624         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
64625         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
64626         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
64627         Set REPLACE_STRCASECMP if necessary.
64628         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
64629         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
64630         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
64631         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
64632         HAVE_DECL_STRDUP if necessary.
64633         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
64634         since gl_FUNC_STRNDUP does that now.
64635         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
64636         Check for decl here...
64637         (gl_PREREQ_STRNLEN): ... not here.
64638         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
64639         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
64640         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
64641         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
64642         necessary.
64643         * modules/string: New file.
64644         * modules/memmem (Files): Remove special-purpose include file.
64645         (Depends-on): Add string.
64646         (Include): Include <string.h>, not the removed file.
64647         * modules/mempcpy: Likewise.
64648         * modules/memrchr: Likewise.
64649         * modules/stpcpy: Likewise.
64650         * modules/stpncpy: Likewise.
64651         * modules/strcase: Likewise.
64652         * modules/strchrnul: Likewise.
64653         * modules/strdup: Likewise.
64654         * modules/strndup: Likewise.
64655         * modules/strnlen: Likewise.
64656         * modules/strpbrk: Likewise.
64657         * modules/strsep: Likewise.
64658         * modules/strstr: Likewise.
64659         * modules/strtok_r: Likewise.
64660         * tests/test-dirname.c: Don't include "strdup.h", since
64661         <string.h> now suffices.
64662         * tests/test-memmem.c: Don't include "memmem.h", since
64663         <string.h> now suffices.
64664
64665 2007-01-25  Bruno Haible  <bruno@clisp.org>
64666
64667         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
64668         *resultp is 0.
64669
64670         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
64671         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
64672         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
64673         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
64674
64675         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
64676         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
64677         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
64678         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
64679         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
64680         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
64681
64682 2007-01-24  Bruno Haible  <bruno@clisp.org>
64683
64684         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
64685         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
64686         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
64687         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
64688         gl_FUNC_FTS_CORE.
64689         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
64690         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
64691         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
64692         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
64693         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
64694         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
64695         gl_FUNC_FCHOWNAT.
64696         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
64697         gl_FUNC_STRFTIME.
64698         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
64699         Reported by Ralf Wildenhues.
64700
64701 2007-01-24  Bruno Haible  <bruno@clisp.org>
64702
64703         Drop AC_REQUIRE calls that are redundant with the module dependencies.
64704         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
64705         gl_GETADDRINFO.
64706         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
64707         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
64708         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
64709
64710 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
64711
64712         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
64713         Don't use 'exit'; just return from 'main'.
64714         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
64715
64716         * lib/fnmatch_.h: Readjust white space and comments to match
64717         glibc, to avoid spurious diffs.
64718
64719 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64720
64721         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
64722         2004-12-01 change by Jakub Jelinek, since this code won't compile
64723         if !LIBC.  Problem reported by Bob Proulx.
64724
64725 2007-01-23  Bruno Haible  <bruno@clisp.org>
64726
64727         * lib/striconveh.c: Include c-strcaseeq.h.
64728         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
64729         * modules/striconveh (Depends-on): Add c-strcaseeq.
64730
64731 2007-01-23  Bruno Haible  <bruno@clisp.org>
64732
64733         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
64734
64735         * modules/c-strcaseeq: New file.
64736         * lib/c-strcaseeq.h: New file.
64737
64738         * modules/streq: New file.
64739         * lib/streq.h: New file.
64740
64741 2007-01-23  Bruno Haible  <bruno@clisp.org>
64742
64743         * modules/striconveha-tests: New file.
64744         * tests/test-striconveha.c: New file.
64745
64746         * lib/striconveha.h: Include <stdbool.h>.
64747         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
64748         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
64749         (mem_iconveha_notranslit): Renamed from mem_iconveha.
64750         (mem_iconveha): New function.
64751         (str_iconveha_notranslit): Renamed from str_iconveha.
64752         (str_iconveha): New function.
64753         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
64754         c-strcase.
64755
64756 2007-01-23  Bruno Haible  <bruno@clisp.org>
64757
64758         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
64759         encodings without forgiving before trying any encoding with handler.
64760         (str_iconveha): Try all encodings without forgiving before trying any
64761         encoding with handler.
64762
64763 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
64764
64765         Import the following changes from libc.
64766
64767         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
64768
64769         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
64770
64771         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
64772
64773         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
64774         normal_bracket label.
64775
64776         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
64777
64778         [BZ #361]
64779         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
64780         to normal_bracket after fetching the next character.
64781
64782 2007-01-22  Bruno Haible  <bruno@clisp.org>
64783
64784         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
64785         argument.
64786         * lib/striconveh.c (iconv_carefully_1): New function.
64787         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
64788         argument.
64789         (str_cd_iconveh): Update.
64790         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
64791         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
64792         * tests/test-striconveh.c (MAGIC): New macro.
64793         (new_offsets): New function.
64794         (main): Test call with and without offsets.
64795
64796 2007-01-22  Bruno Haible  <bruno@clisp.org>
64797
64798         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
64799         * modules/sys_select (Makefile.am): Likewise.
64800         * modules/sys_socket (Makefile.am): Likewise.
64801         * modules/sys_time (Makefile.am): Likewise.
64802
64803 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
64804
64805         * modules/gettimeofday (License): Change from GPL to LGPL, since
64806         gettimeofday is a library function.
64807
64808 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64809
64810         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
64811
64812 2007-01-21  Bruno Haible  <bruno@clisp.org>
64813
64814         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
64815
64816 2007-01-21  Bruno Haible  <bruno@clisp.org>
64817
64818         * modules/striconveha: New file.
64819         * lib/striconveha.h: New file.
64820         * lib/striconveha.c: New file.
64821         * MODULES.html.sh (Internationalization functions): Add striconveha.
64822         * lib/striconv.c (str_iconv): Optimize the case of an empty input
64823         string.
64824         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
64825
64826 2007-01-21  Bruno Haible  <bruno@clisp.org>
64827
64828         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
64829         * lib/striconveh.c (str_iconveh): Likewise.
64830
64831 2007-01-21  Bruno Haible  <bruno@clisp.org>
64832
64833         * lib/striconveh.h (mem_iconveh): New declaration.
64834         * lib/striconveh.c (mem_iconveh): New function.
64835         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
64836
64837 2007-01-21  Bruno Haible  <bruno@clisp.org>
64838
64839         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
64840
64841         * lib/striconveh.h (mem_cd_iconveh): Change specification.
64842         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
64843         original result buffer.
64844         (str_cd_iconveh): Update.
64845         * tests/test-striconveh.c (main): Update.
64846
64847         * lib/striconv.h (mem_cd_iconv): Change specification.
64848         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
64849         result buffer.
64850         (str_cd_iconv): Update.
64851         * tests/test-striconv.c (main): Update.
64852
64853 2007-01-21  Bruno Haible  <bruno@clisp.org>
64854
64855         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
64856
64857 2007-01-20  Jim Meyering  <jim@meyering.net>
64858
64859         * lib/userspec.c (parse_with_separator): If a user or group string
64860         starts with "+", skip the corresponding name-to-ID look-up, since
64861         such a look-up must fail: user and group names may not include "+".
64862
64863 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
64864
64865         * lib/poll.c: Include sys/time.h and time.h unconditionally,
64866         since we now assume the sys_time module.
64867         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
64868         check for sys/time.h; no longer needed.
64869         * modules/poll (Depends-on): Depend on sys_time.
64870
64871 2007-01-18  Bruno Haible  <bruno@clisp.org>
64872
64873         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
64874         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64875
64876         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
64877         gettimeofday.
64878
64879         * tests/test-gettimeofday.c: Include <time.h>.
64880         (dummy): Remove variable.
64881
64882         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
64883         gl_HEADER_SYS_TIME_H.
64884         (gl_HEADER_SYS_TIME_H): New macro.
64885
64886         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
64887         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64888         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
64889         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
64890         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64891         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
64892         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
64893         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64894         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
64895         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
64896         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64897
64898         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
64899         last change; it caused a compilation error when cross-compiling to
64900         Cygwin.
64901
64902 2007-01-18  Jim Meyering  <jim@meyering.net>
64903
64904         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
64905         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
64906         than the race-prone "test -d sys || mkdir sys".
64907         (configure.ac): Use AC_PROG_MKDIR_P.
64908         * modules/sys_select: Likewise.
64909         * modules/sys_socket: Likewise.
64910         * modules/sys_time: Likewise.
64911
64912 2007-01-18  Eric Blake  <ebb9@byu.net>
64913
64914         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
64915         replace gettimeofday.
64916         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
64917         name, to avoid infinite recursion.
64918
64919 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
64920
64921         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
64922         module sys_time.
64923         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
64924         assume timespec.h defines struct timeval.
64925         * lib/settime.c: Likewise.
64926         * lib/utimens.c: Likewise.
64927         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
64928         since we now assume the gettimeofday module.
64929         * lib/tempname.c (__gen_tempname): Likewise.
64930         * lib/gettimeofday.h: Remove.
64931         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
64932         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
64933         Include <time.h>, for 'time()'.
64934         (localtime_buffer_addr): Also use this workaround if
64935         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
64936         to simplify the uses.  All uses changed.
64937         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
64938         that #undef is inside {}, and 'const' follows type name consistently.
64939         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
64940         (gettimeofday): Do not use the maximum possible value for
64941         tv->tv_usec, since that might break usages other than ls.c.
64942         Instead, we'll leave ls.c alone.  This undoes today's patch
64943         by Bruno.  Add a compile-time warning for 1s-clock resolution;
64944         we've never observed the problem but might as well keep the
64945         canary.
64946         * lib/nanosleep.c: Include timespec.h first, for interface check.
64947         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
64948         now assume the sys_time module.
64949         * lib/tempname.c: Likewise.
64950         * lib/timespec.h: Likewise.
64951         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
64952         needed.
64953         * lib/strftime.c: Likewise.
64954         * lib/timespec.h: Likewise.
64955         * lib/posixtm.c: Include posixtm.h first, for interface check.
64956         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
64957         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
64958         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
64959         * lib/sys_time_.h: New file.
64960         * lib/timespec.h (struct timespec): Use long int, not long.
64961         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
64962         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
64963         Remove obsolescent call to AC_HEADER_TIME.
64964         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
64965         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
64966         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
64967         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
64968         Likewise.
64969         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
64970         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
64971         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
64972         into the sys_time module.  Check for gettimeofday just once.
64973         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
64974         for gettimeofday signature to just check the signature.  Merely
64975         compile it, since linking doesn't test signature.  Improve test for
64976         whether gettimeofday.o is actually needed.
64977         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
64978         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
64979         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
64980         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
64981         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
64982         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
64983         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
64984         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
64985         than worrying about sys/time.h.
64986         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64987         Don't bother worrying about TIME_WITH_SYS_TIME.
64988         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
64989         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
64990         * m4/sys_time_h.m4: New file.
64991         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
64992         Don't include sys/time.h.  Return from main rather than exiting.
64993         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
64994         all uses changed.
64995         * modules/gethrxtime (Depends-on): Add sys_time.
64996         * modules/gettime (Depends-on): Likewise.
64997         * modules/gettimeofday (Depends-on): Likewise.
64998         * modules/nanosleep (Depends-on): Likewise.
64999         * modules/settime (Depends-on): Likewise.
65000         * modules/tempname (Depends-on): Likewise.
65001         * modules/utimens (Depends-on): Likewise.
65002         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
65003         (Include): Change back to <sys/time.h>.
65004         (Maintainer): Add self.
65005         * modules/sys_time: New file.
65006         * modules/tempname (Depends-on): Add gettimeofday.
65007         * tests/test-gettimeofday.c: Include <sys/time.h>
65008         rather than gettimeofday.h.
65009
65010 2007-01-17  Bruno Haible  <bruno@clisp.org>
65011
65012         * gnulib-tool (func_get_license): Revert last patch. Instead, let
65013         the license default to GPL.
65014         (func_create_testdir): Don't complain if a module is LGPL and its
65015         tests module depends on GPLed modules.
65016
65017 2007-01-17  Bruno Haible  <bruno@clisp.org>
65018
65019         * lib/gettimeofday.c (gettimeofday): Add code for the case
65020         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
65021         maximum possible value for tv->tv_usec, rather than the minimum one.
65022
65023 2005-10-08  Martin Lambers  <marlam@marlam.de>
65024 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
65025 2007-01-16  Bruno Haible  <bruno@clisp.org>
65026
65027         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
65028         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
65029         gl_FUNC_GETTIMEOFDAY.
65030         (Include): Add gettimeofday.h.
65031         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
65032         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
65033         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
65034         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
65035         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
65036         * lib/gettimeofday.h: New file.
65037         * lib/gettimeofday.c: Include <sys/timeb.h>.
65038         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
65039         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65040         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
65041         fall back on time().
65042
65043         * tests/test-gettimeofday.c: New file.
65044         * modules/gettimeofday-tests: New file.
65045
65046 2007-01-16  Eric Blake  <ebb9@byu.net>
65047
65048         * modules/fnmatch (Depends-on): Depend on wchar.
65049         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
65050         * m4/fnmatch.m4: Likewise.
65051         * modules/mbchar (Makefile.am): Assume <wchar.h>.
65052         * m4/mbchar.m4: Likewise.
65053         * modules/mbswidth (Depends-on): Depend on wchar.
65054         * lib/mbswidth.c: Assume <wchar.h>.
65055         * m4/mbswidth.m4: Likewise.
65056         * modules/quotearg (Depends-on): Depend on wchar.
65057         * lib/quotearg.c: Assume <wchar.h>.
65058         * m4/quotearg.m4: Likewise.
65059         * modules/regex (Depends-on): Depend on wchar.
65060         * lib/regex_internal.h: Assume <wchar.h>.
65061         * m4/regex.m4: Likewise.
65062         * modules/stdint (Depends-on): Depend on wchar.
65063         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
65064         * m4/stdint.m4: Likewise.
65065         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
65066         * modules/strftime (Depends-on): Depend on wchar.
65067         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
65068         * modules/strtol (Depends-on): Depend on wchar.
65069         * lib/strtol.c: Assume <wchar.h>.
65070         * modules/wcwidth (Depends-on): Depend on wchar.
65071         * lib/wcwidth.h: Assume <wchar.h>.
65072         * m4/wcwidth.m4: Likewise.
65073
65074 2007-01-16  Bruno Haible  <bruno@clisp.org>
65075
65076         * modules/csharpexec-script: New, created from...
65077         * modules/csharpexec: ... this.
65078
65079 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
65080
65081         * modules/javaexec-script: New, created from...
65082         * modules/javaexec: ... this.
65083
65084 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65085
65086         * modules/poll (Dependencies): Add sys_select.
65087
65088 2007-01-15  Jim Meyering  <jim@meyering.net>
65089
65090         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
65091         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
65092         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
65093         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
65094
65095 2007-01-15  Bruno Haible  <bruno@clisp.org>
65096
65097         * modules/striconveh: New file.
65098         * lib/striconveh.h: New file.
65099         * lib/striconveh.c: New file.
65100         * MODULES.html.sh (Internationalization functions): Add striconveh.
65101
65102         * modules/striconveh-tests: New file.
65103         * tests/test-striconveh.c: New file.
65104
65105 2007-01-15  Bruno Haible  <bruno@clisp.org>
65106
65107         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
65108         not from GNU libiconv or GNU libc.
65109
65110 2007-01-15  Bruno Haible  <bruno@clisp.org>
65111
65112         * doc/gnulib-intro.texi (Copyright): Explain the different license
65113         terms for module descriptions, autoconf macros, tests, documentation.
65114
65115 2007-01-14  Bruno Haible  <bruno@clisp.org>
65116
65117         * modules/striconv-tests: New file.
65118         * tests/test-striconv.c: New file.
65119
65120 2007-01-14  Bruno Haible  <bruno@clisp.org>
65121
65122         * modules/iconv-tests: New file.
65123         * tests/test-iconv.c: New file.
65124
65125 2007-01-14  Bruno Haible  <bruno@clisp.org>
65126
65127         * gnulib-tool (func_get_license): For test modules, use the license of
65128         the main module.
65129
65130 2007-01-14  Bruno Haible  <bruno@clisp.org>
65131
65132         * modules/iconv (Include): Clarify that <iconv.h> can only be included
65133         if iconv is found to exist.
65134
65135 2007-01-14  Bruno Haible  <bruno@clisp.org>
65136
65137         * modules/c-ctype-tests: New file.
65138         * tests/test-c-ctype.c: New file.
65139
65140 2007-01-14  Bruno Haible  <bruno@clisp.org>
65141
65142         * modules/binary-io-tests: New file.
65143         * tests/test-binary-io.sh: New file.
65144         * tests/test-binary-io.c: New file.
65145
65146 2007-01-14  Bruno Haible  <bruno@clisp.org>
65147
65148         * modules/array-oset-tests: New file.
65149         * tests/test-array_oset.c: New file.
65150
65151 2007-01-14  Bruno Haible  <bruno@clisp.org>
65152
65153         * modules/array-list-tests: New file.
65154         * tests/test-array_list.c: New file.
65155
65156 2007-01-14  Bruno Haible  <bruno@clisp.org>
65157
65158         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
65159         and make.
65160         Reported by Simon Josefsson in
65161         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
65162
65163 2007-01-14  Bruno Haible  <bruno@clisp.org>
65164
65165         * modules/allocsa-tests: New file.
65166         * tests/test-allocsa.c: New file.
65167
65168 2007-01-14  Bruno Haible  <bruno@clisp.org>
65169
65170         * modules/fchdir (Depends-on): Add absolute-header.
65171         * modules/unistd (Depends-on): Likewise.
65172
65173 2006-12-30  Bruno Haible  <bruno@clisp.org>
65174
65175         * modules/fchdir: New file.
65176         * modules/unistd (Files): Add lib/unistd_.h.
65177         (Makefile.am): Generate unistd.h from unistd_.h.
65178         * lib/fchdir.c: New file.
65179         * lib/dirent_.h: New file.
65180         * lib/unistd_.h: New file.
65181         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
65182         * m4/fchdir.m4: New file.
65183         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
65184         (gl_HEADER_UNISTD): Invoke it.
65185         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
65186         function.
65187         * lib/backupfile.c (opendir, closedir): Undefine.
65188         * lib/chown.c (open, close): Undefine.
65189         * lib/clean-temp.c (open, close): Undefine.
65190         * lib/copy-file.c (open, close): Undefine.
65191         * lib/execute.c (open, close): Undefine.
65192         * lib/fsusage.c (open, close): Undefine.
65193         * lib/gc-gnulib.c (open, close): Undefine.
65194         * lib/getcwd.c (opendir, closedir): Undefine.
65195         * lib/glob.c (opendir, closedir): Undefine.
65196         * lib/javacomp.c (open, close): Undefine.
65197         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
65198         * lib/openat-proc.c (open, close): Undefine.
65199         * lib/pagealign_alloc.c (open, close): Undefine.
65200         * lib/pipe.c (open, close): Undefine.
65201         * lib/progreloc.c (open, close): Undefine.
65202         * lib/savedir.c (opendir, closedir): Undefine.
65203         * lib/utime.c (open, close): Undefine.
65204         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
65205
65206 2007-01-10  Bruno Haible  <bruno@clisp.org>
65207
65208         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
65209
65210 2007-01-12  Eric Blake  <ebb9@byu.net>
65211
65212         Provide a robust <wchar.h>.  Further simplifications are now
65213         possible in other modules, but not included here.
65214         * modules/wchar: New module.
65215         * m4/wchar.m4: New file.
65216         * lib/wchar_.h: Likewise.
65217         * modules/mbchar (Depends-on): Depend on wchar, as the first use
65218         of the new module.
65219         * MODULES.html.sh (Extended multibyte and wide character utilities):
65220         New section.
65221
65222 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
65223
65224         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
65225         to a reasonable default for memory allocation.
65226         (xreadlink): Don't allocate a huge buffer, to work around a buggy
65227         file system that reports garbage st_size values for symlinks.
65228         Problem reported by Liyang Hu.
65229
65230 2007-01-11  Simon Josefsson  <simon@josefsson.org>
65231
65232         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
65233         Emacs .#* auto-save files).
65234
65235 2007-01-11  Bruno Haible  <bruno@clisp.org>
65236
65237         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
65238         directory.
65239
65240 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
65241
65242         Use @...@ consistently in lib/wctype_.h.
65243         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
65244         on it being set to 1 or 0.
65245         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
65246         go back to AC_SUBSTing it.
65247         * modules/wctype (Makefile.am): Undo previous change.
65248
65249 2007-01-10  Eric Blake  <ebb9@byu.net>
65250
65251         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
65252         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
65253         * modules/wctype (Makefile.am): Likewise.
65254         Reported by Chris McGuire.
65255
65256 2007-01-10  Jim Meyering  <jim@meyering.net>
65257
65258         fts.c: a small readability/maintainability improvement
65259         * lib/fts.c (fts_read): Make this code slightly more readable and
65260         maintainable by hoisting the "sp->fts_cur = p" assignments to
65261         immediately follow the statements that set P.  Derived from
65262         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
65263
65264 2007-01-10  Eric Blake  <ebb9@byu.net>
65265
65266         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
65267         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
65268         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65269         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
65270         Reported by Chris McGuire.
65271
65272 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65273
65274         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
65275         in sed script.
65276
65277 2007-01-09  Bruno Haible  <bruno@clisp.org>
65278
65279         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
65280         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
65281         variables.
65282         (func_module): Use them.
65283
65284 2007-01-09  Bruno Haible  <bruno@clisp.org>
65285
65286         * modules/unistr/base: New file.
65287         * lib/unistr.h: New file.
65288
65289         * modules/unistr/u8-to-u16: New file.
65290         * lib/unistr/u8-to-u16.c: New file.
65291
65292         * modules/unistr/u8-to-u32: New file.
65293         * lib/unistr/u8-to-u32.c: New file.
65294
65295         * modules/unistr/u16-to-u8: New file.
65296         * lib/unistr/u16-to-u8.c: New file.
65297
65298         * modules/unistr/u16-to-u32: New file.
65299         * lib/unistr/u16-to-u32.c: New file.
65300
65301         * modules/unistr/u32-to-u8: New file.
65302         * lib/unistr/u32-to-u8.c: New file.
65303
65304         * modules/unistr/u32-to-u16: New file.
65305         * lib/unistr/u32-to-u16.c: New file.
65306
65307         * modules/unistr/u8-check: New file.
65308         * modules/unistr/u16-check: New file.
65309         * modules/unistr/u32-check: New file.
65310         * lib/unistr/u8-check.c: New file.
65311         * lib/unistr/u16-check.c: New file.
65312         * lib/unistr/u32-check.c: New file.
65313
65314         * modules/unistr/u8-chr: New file.
65315         * modules/unistr/u16-chr: New file.
65316         * modules/unistr/u32-chr: New file.
65317         * lib/unistr/u8-chr.c: New file.
65318         * lib/unistr/u16-chr.c: New file.
65319         * lib/unistr/u32-chr.c: New file.
65320
65321         * modules/unistr/u8-cmp: New file.
65322         * modules/unistr/u16-cmp: New file.
65323         * modules/unistr/u32-cmp: New file.
65324         * lib/unistr/u8-cmp.c: New file.
65325         * lib/unistr/u16-cmp.c: New file.
65326         * lib/unistr/u32-cmp.c: New file.
65327
65328         * modules/unistr/u8-cpy: New file.
65329         * modules/unistr/u16-cpy: New file.
65330         * modules/unistr/u32-cpy: New file.
65331         * lib/unistr/u8-cpy.c: New file.
65332         * lib/unistr/u16-cpy.c: New file.
65333         * lib/unistr/u32-cpy.c: New file.
65334         * lib/unistr/u-cpy.h: New file.
65335
65336         * modules/unistr/u8-cpy-alloc: New file.
65337         * modules/unistr/u16-cpy-alloc: New file.
65338         * modules/unistr/u32-cpy-alloc: New file.
65339         * lib/unistr/u8-cpy-alloc.c: New file.
65340         * lib/unistr/u16-cpy-alloc.c: New file.
65341         * lib/unistr/u32-cpy-alloc.c: New file.
65342         * lib/unistr/u-cpy-alloc.h: New file.
65343
65344         * modules/unistr/u8-endswith: New file.
65345         * modules/unistr/u16-endswith: New file.
65346         * modules/unistr/u32-endswith: New file.
65347         * lib/unistr/u8-endswith.c: New file.
65348         * lib/unistr/u16-endswith.c: New file.
65349         * lib/unistr/u32-endswith.c: New file.
65350         * lib/unistr/u-endswith.h: New file.
65351
65352         * modules/unistr/u8-mblen: New file.
65353         * modules/unistr/u16-mblen: New file.
65354         * modules/unistr/u32-mblen: New file.
65355         * lib/unistr/u8-mblen.c: New file.
65356         * lib/unistr/u16-mblen.c: New file.
65357         * lib/unistr/u32-mblen.c: New file.
65358
65359         * modules/unistr/u8-mbtouc: New file.
65360         * modules/unistr/u16-mbtouc: New file.
65361         * modules/unistr/u32-mbtouc: New file.
65362         * lib/unistr/u8-mbtouc.c: New file.
65363         * lib/unistr/u16-mbtouc.c: New file.
65364         * lib/unistr/u32-mbtouc.c: New file.
65365
65366         * modules/unistr/u8-mbtouc-safe: New file.
65367         * modules/unistr/u16-mbtouc-safe: New file.
65368         * modules/unistr/u32-mbtouc-safe: New file.
65369         * lib/unistr/u8-mbtouc-safe.c: New file.
65370         * lib/unistr/u16-mbtouc-safe.c: New file.
65371         * lib/unistr/u32-mbtouc-safe.c: New file.
65372
65373         * modules/unistr/u8-move: New file.
65374         * modules/unistr/u16-move: New file.
65375         * modules/unistr/u32-move: New file.
65376         * lib/unistr/u8-move.c: New file.
65377         * lib/unistr/u16-move.c: New file.
65378         * lib/unistr/u32-move.c: New file.
65379         * lib/unistr/u-move.h: New file.
65380
65381         * modules/unistr/u8-next: New file.
65382         * modules/unistr/u16-next: New file.
65383         * modules/unistr/u32-next: New file.
65384         * lib/unistr/u8-next.c: New file.
65385         * lib/unistr/u16-next.c: New file.
65386         * lib/unistr/u32-next.c: New file.
65387
65388         * modules/unistr/u8-prev: New file.
65389         * modules/unistr/u16-prev: New file.
65390         * modules/unistr/u32-prev: New file.
65391         * lib/unistr/u8-prev.c: New file.
65392         * lib/unistr/u16-prev.c: New file.
65393         * lib/unistr/u32-prev.c: New file.
65394
65395         * modules/unistr/u8-set: New file.
65396         * modules/unistr/u16-set: New file.
65397         * modules/unistr/u32-set: New file.
65398         * lib/unistr/u8-set.c: New file.
65399         * lib/unistr/u16-set.c: New file.
65400         * lib/unistr/u32-set.c: New file.
65401         * lib/unistr/u-set.h: New file.
65402
65403         * modules/unistr/u8-startswith: New file.
65404         * modules/unistr/u16-startswith: New file.
65405         * modules/unistr/u32-startswith: New file.
65406         * lib/unistr/u8-startswith.c: New file.
65407         * lib/unistr/u16-startswith.c: New file.
65408         * lib/unistr/u32-startswith.c: New file.
65409         * lib/unistr/u-startswith.h: New file.
65410
65411         * modules/unistr/u8-stpcpy: New file.
65412         * modules/unistr/u16-stpcpy: New file.
65413         * modules/unistr/u32-stpcpy: New file.
65414         * lib/unistr/u8-stpcpy.c: New file.
65415         * lib/unistr/u16-stpcpy.c: New file.
65416         * lib/unistr/u32-stpcpy.c: New file.
65417         * lib/unistr/u-stpcpy.h: New file.
65418
65419         * modules/unistr/u8-stpncpy: New file.
65420         * modules/unistr/u16-stpncpy: New file.
65421         * modules/unistr/u32-stpncpy: New file.
65422         * lib/unistr/u8-stpncpy.c: New file.
65423         * lib/unistr/u16-stpncpy.c: New file.
65424         * lib/unistr/u32-stpncpy.c: New file.
65425         * lib/unistr/u-stpncpy.h: New file.
65426
65427         * modules/unistr/u8-strcat: New file.
65428         * modules/unistr/u16-strcat: New file.
65429         * modules/unistr/u32-strcat: New file.
65430         * lib/unistr/u8-strcat.c: New file.
65431         * lib/unistr/u16-strcat.c: New file.
65432         * lib/unistr/u32-strcat.c: New file.
65433         * lib/unistr/u-strcat.h: New file.
65434
65435         * modules/unistr/u8-strchr: New file.
65436         * modules/unistr/u16-strchr: New file.
65437         * modules/unistr/u32-strchr: New file.
65438         * lib/unistr/u8-strchr.c: New file.
65439         * lib/unistr/u16-strchr.c: New file.
65440         * lib/unistr/u32-strchr.c: New file.
65441
65442         * modules/unistr/u8-strcmp: New file.
65443         * modules/unistr/u16-strcmp: New file.
65444         * modules/unistr/u32-strcmp: New file.
65445         * lib/unistr/u8-strcmp.c: New file.
65446         * lib/unistr/u16-strcmp.c: New file.
65447         * lib/unistr/u32-strcmp.c: New file.
65448
65449         * modules/unistr/u8-strcpy: New file.
65450         * modules/unistr/u16-strcpy: New file.
65451         * modules/unistr/u32-strcpy: New file.
65452         * lib/unistr/u8-strcpy.c: New file.
65453         * lib/unistr/u16-strcpy.c: New file.
65454         * lib/unistr/u32-strcpy.c: New file.
65455         * lib/unistr/u-strcpy.h: New file.
65456
65457         * modules/unistr/u8-strcspn: New file.
65458         * modules/unistr/u16-strcspn: New file.
65459         * modules/unistr/u32-strcspn: New file.
65460         * lib/unistr/u8-strcspn.c: New file.
65461         * lib/unistr/u16-strcspn.c: New file.
65462         * lib/unistr/u32-strcspn.c: New file.
65463         * lib/unistr/u-strcspn.h: New file.
65464
65465         * modules/unistr/u8-strdup: New file.
65466         * modules/unistr/u16-strdup: New file.
65467         * modules/unistr/u32-strdup: New file.
65468         * lib/unistr/u8-strdup.c: New file.
65469         * lib/unistr/u16-strdup.c: New file.
65470         * lib/unistr/u32-strdup.c: New file.
65471         * lib/unistr/u-strdup.h: New file.
65472
65473         * modules/unistr/u8-strlen: New file.
65474         * modules/unistr/u16-strlen: New file.
65475         * modules/unistr/u32-strlen: New file.
65476         * lib/unistr/u8-strlen.c: New file.
65477         * lib/unistr/u16-strlen.c: New file.
65478         * lib/unistr/u32-strlen.c: New file.
65479         * lib/unistr/u-strlen.h: New file.
65480
65481         * modules/unistr/u8-strmblen: New file.
65482         * modules/unistr/u16-strmblen: New file.
65483         * modules/unistr/u32-strmblen: New file.
65484         * lib/unistr/u8-strmblen.c: New file.
65485         * lib/unistr/u16-strmblen.c: New file.
65486         * lib/unistr/u32-strmblen.c: New file.
65487
65488         * modules/unistr/u8-strmbtouc: New file.
65489         * modules/unistr/u16-strmbtouc: New file.
65490         * modules/unistr/u32-strmbtouc: New file.
65491         * lib/unistr/u8-strmbtouc.c: New file.
65492         * lib/unistr/u16-strmbtouc.c: New file.
65493         * lib/unistr/u32-strmbtouc.c: New file.
65494
65495         * modules/unistr/u8-strncat: New file.
65496         * modules/unistr/u16-strncat: New file.
65497         * modules/unistr/u32-strncat: New file.
65498         * lib/unistr/u8-strncat.c: New file.
65499         * lib/unistr/u16-strncat.c: New file.
65500         * lib/unistr/u32-strncat.c: New file.
65501         * lib/unistr/u-strncat.h: New file.
65502
65503         * modules/unistr/u8-strncmp: New file.
65504         * modules/unistr/u16-strncmp: New file.
65505         * modules/unistr/u32-strncmp: New file.
65506         * lib/unistr/u8-strncmp.c: New file.
65507         * lib/unistr/u16-strncmp.c: New file.
65508         * lib/unistr/u32-strncmp.c: New file.
65509
65510         * modules/unistr/u8-strncpy: New file.
65511         * modules/unistr/u16-strncpy: New file.
65512         * modules/unistr/u32-strncpy: New file.
65513         * lib/unistr/u8-strncpy.c: New file.
65514         * lib/unistr/u16-strncpy.c: New file.
65515         * lib/unistr/u32-strncpy.c: New file.
65516         * lib/unistr/u-strncpy.h: New file.
65517
65518         * modules/unistr/u8-strnlen: New file.
65519         * modules/unistr/u16-strnlen: New file.
65520         * modules/unistr/u32-strnlen: New file.
65521         * lib/unistr/u8-strnlen.c: New file.
65522         * lib/unistr/u16-strnlen.c: New file.
65523         * lib/unistr/u32-strnlen.c: New file.
65524         * lib/unistr/u-strnlen.h: New file.
65525
65526         * modules/unistr/u8-strpbrk: New file.
65527         * modules/unistr/u16-strpbrk: New file.
65528         * modules/unistr/u32-strpbrk: New file.
65529         * lib/unistr/u8-strpbrk.c: New file.
65530         * lib/unistr/u16-strpbrk.c: New file.
65531         * lib/unistr/u32-strpbrk.c: New file.
65532         * lib/unistr/u-strpbrk.h: New file.
65533
65534         * modules/unistr/u8-strrchr: New file.
65535         * modules/unistr/u16-strrchr: New file.
65536         * modules/unistr/u32-strrchr: New file.
65537         * lib/unistr/u8-strrchr.c: New file.
65538         * lib/unistr/u16-strrchr.c: New file.
65539         * lib/unistr/u32-strrchr.c: New file.
65540
65541         * modules/unistr/u8-strspn: New file.
65542         * modules/unistr/u16-strspn: New file.
65543         * modules/unistr/u32-strspn: New file.
65544         * lib/unistr/u8-strspn.c: New file.
65545         * lib/unistr/u16-strspn.c: New file.
65546         * lib/unistr/u32-strspn.c: New file.
65547         * lib/unistr/u-strspn.h: New file.
65548
65549         * modules/unistr/u8-strstr: New file.
65550         * modules/unistr/u16-strstr: New file.
65551         * modules/unistr/u32-strstr: New file.
65552         * lib/unistr/u8-strstr.c: New file.
65553         * lib/unistr/u16-strstr.c: New file.
65554         * lib/unistr/u32-strstr.c: New file.
65555         * lib/unistr/u-strstr.h: New file.
65556
65557         * modules/unistr/u8-strtok: New file.
65558         * modules/unistr/u16-strtok: New file.
65559         * modules/unistr/u32-strtok: New file.
65560         * lib/unistr/u8-strtok.c: New file.
65561         * lib/unistr/u16-strtok.c: New file.
65562         * lib/unistr/u32-strtok.c: New file.
65563         * lib/unistr/u-strtok.h: New file.
65564
65565         * modules/unistr/u8-uctomb: New file.
65566         * modules/unistr/u16-uctomb: New file.
65567         * modules/unistr/u32-uctomb: New file.
65568         * lib/unistr/u8-uctomb.c: New file.
65569         * lib/unistr/u16-uctomb.c: New file.
65570         * lib/unistr/u32-uctomb.c: New file.
65571
65572         * MODULES.html.sh (Unicode string functions): Add the new modules.
65573
65574 2007-01-08  Bruno Haible  <bruno@clisp.org>
65575
65576         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
65577         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
65578         subdirectories.
65579
65580 2007-01-08  Karl Berry  <karl@gnu.org>
65581
65582         * doc/error.texi: mention that main() fns must set program_name
65583         when progname is used.
65584
65585 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
65586
65587         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
65588         WCTYPE_H is empty, for the benefit of builds from non-distclean
65589         directories.  Problem reported by Eric Blake in
65590         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
65591
65592 2007-01-08  Bruno Haible  <bruno@clisp.org>
65593
65594         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
65595         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
65596         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
65597         PROVIDE_CANONICALIZE_FILENAME_MODE.
65598         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
65599
65600 2007-01-08  Bruno Haible  <bruno@clisp.org>
65601
65602         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
65603         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
65604         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
65605         * lib/fts.c: Likewise.
65606         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
65607
65608 2006-12-25  Bruno Haible  <bruno@clisp.org>
65609
65610         * modules/utf8-ucs4-safe: New file.
65611         * lib/utf8-ucs4-safe.h: New file.
65612         * lib/unistr/utf8-ucs4-safe.c: New file.
65613
65614         * modules/utf16-ucs4-safe: New file.
65615         * lib/utf16-ucs4-safe.h: New file.
65616         * lib/unistr/utf16-ucs4-safe.c: New file.
65617
65618         * MODULES.html.sh (Unicode string functions): Add the new modules.
65619
65620 2007-01-08  Bruno Haible  <bruno@clisp.org>
65621
65622         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
65623         (Depends-on): Add unitypes.
65624         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65625         (u8_mbtouc_aux): Move out to separate file.
65626         (u8_mbtouc): Use ucs4_t, uint8_t types.
65627         * lib/unistr/utf8-ucs4.c: New file.
65628
65629         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
65630         (Depends-on): Add unitypes.
65631         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
65632         (u16_mbtouc_aux): Move out to separate file.
65633         (u16_mbtouc): Use ucs4_t, uint16_t types.
65634         * lib/unistr/utf16-ucs4.c: New file.
65635
65636         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
65637         (Depends-on): Add unitypes.
65638         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
65639         (u8_uctomb_aux): Move out to separate file.
65640         (u8_uctomb): Use ucs4_t, uint8_t types.
65641         * lib/unistr/ucs4-utf8.c: New file.
65642
65643         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
65644         (Depends-on): Add unitypes.
65645         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
65646         (u16_uctomb_aux): Move out to separate file.
65647         (u16_uctomb): Use ucs4_t, uint16_t types.
65648         * lib/unistr/ucs4-utf16.c: New file.
65649
65650 2006-12-25  Bruno Haible  <bruno@clisp.org>
65651
65652         * modules/unitypes: New file.
65653         * lib/unitypes.h: New file.
65654         * MODULES.html.sh (func_all_modules): New section "Unicode string
65655         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
65656         this section. Add unitypes.
65657
65658 2007-01-08  Bruno Haible  <bruno@clisp.org>
65659
65660         Avoid variable names that conflict with those from libtool.
65661         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
65662         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
65663         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
65664         library_names_spec to acl_library_names_spec, hardcode_* to
65665         acl_hardcode_*.
65666         Reported by Ralf Wildenhues.
65667
65668 2007-01-08  Bruno Haible  <bruno@clisp.org>
65669
65670         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
65671         definition.
65672         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
65673         definition.
65674         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
65675         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
65676         definition.
65677         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
65678         definition.
65679         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
65680         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
65681         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
65682         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
65683         definition.
65684         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
65685         definition.
65686         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
65687         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
65688         GC_USE_<algorithm>.
65689         * lib/gc-libgcrypt.c: Likewise.
65690         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
65691         * modules/gc-arctwo (configure.ac): Likewise.
65692         * modules/gc-des (configure.ac): Likewise.
65693         * modules/gc-hmac-md5 (configure.ac): Likewise.
65694         * modules/gc-hmac-sha1 (configure.ac): Likewise.
65695         * modules/gc-md2 (configure.ac): Likewise.
65696         * modules/gc-md4 (configure.ac): Likewise.
65697         * modules/gc-md5 (configure.ac): Likewise.
65698         * modules/gc-random (configure.ac): Likewise.
65699         * modules/gc-rijndael (configure.ac): Likewise.
65700         * modules/gc-sha1 (configure.ac): Likewise.
65701
65702 2007-01-08  Bruno Haible  <bruno@clisp.org>
65703
65704         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
65705         macro definition.
65706         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
65707         definition.
65708         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
65709         definition.
65710         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
65711         * modules/fcntl-safer (configure.ac): Likewise.
65712         * modules/fopen-safer (configure.ac): Likewise.
65713         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
65714         GNULIB_FWRITEERROR macro definition.
65715
65716 2007-01-08  Bruno Haible  <bruno@clisp.org>
65717
65718         * m4/gnulib-common.m4: New file.
65719         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
65720         (func_get_filelist): Add m4/gnulib-common.m4.
65721
65722 2007-01-08  Bruno Haible  <bruno@clisp.org>
65723
65724         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
65725         command.
65726
65727 2007-01-08  Jim Meyering  <jim@meyering.net>
65728
65729         Use a more robust test for a "can't happen" condition.
65730         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
65731         narrowed the st_size value.  Presuming the "can't happen" condition
65732         is true, that narrowing could conceivably convert an invalid st_size
65733         value into a valid one.  Instead, use a change based on Matthew
65734         Woehlke's original patch.
65735
65736         Slight readability improvement: use an assert-like macro
65737         in place of literal "abort ()" uses.
65738         * lib/fts.c (fts_assert): Define.
65739         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
65740         Use this macro instead of a bare 'abort'.
65741
65742 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
65743
65744         Don't worry about using IRIX 5.3's wctype.h broken definitions;
65745         simply work around them.
65746         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
65747         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
65748         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
65749         declaring.
65750         Don't bother to define as macros, since the standard doesn't require it.
65751         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
65752         longer worry about IRIX 5.3.
65753         (HAVE_WCTYPE_CTMP_BUG): Remove.
65754
65755 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
65756
65757         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
65758         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
65759         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65760         Problems reported by Georg Schwarz for IRIX 5.3.
65761
65762         * gnulib-tool (autoconf_minversion): Take the maximum version number
65763         found, not the minimum.  Problem reported by James Youngman.
65764
65765 2007-01-03  Karl Berry  <karl@gnu.org>
65766
65767         * doc/error.texi: new file, explaining interaction with progname.
65768         * doc/gnulib.texi: include it.  Update copyright.
65769
65770 2007-01-03  Simon Josefsson  <simon@josefsson.org>
65771
65772         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
65773         AC_CANONICAL_HOST, to improve autobuild outputs.
65774
65775 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
65776             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65777
65778         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
65779         sockets, server sockets, and other file descriptors.  Count errors
65780         to compute the return value.  Reorder the code a bit to be easier
65781         to follow.  Don't set event bits that were not requested (except
65782         POLLERR and POLLHUP).
65783
65784 2007-01-01  Bruno Haible  <bruno@clisp.org>
65785
65786         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
65787
65788 2007-01-03  Jim Meyering  <jim@meyering.net>
65789
65790         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
65791
65792 2007-01-02  Bruno Haible  <bruno@clisp.org>
65793
65794         * modules/settime (Include): Require timespec.h.
65795         * modules/nanosleep (Include): Likewise.
65796
65797 2007-01-01  Bruno Haible  <bruno@clisp.org>
65798
65799         * gnulib-tool (func_emit_copyright_notice): Bump year.
65800         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
65801
65802 2007-01-01  Bruno Haible  <bruno@clisp.org>
65803
65804         Improve support for OpenBSD.
65805         * build-aux/config.rpath (libname_spec): Export.
65806         (library_names_spec): New variable. Export.
65807         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
65808         library_names_spec from the config.rpath output. Locate shared library
65809         through the name pattern in library_names_spec.
65810
65811 2007-01-01  Eric Blake  <ebb9@byu.net>
65812
65813         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
65814
65815 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
65816
65817         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
65818         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
65819         assume the C locale, and avoid an "eval" that could cause trouble.
65820         Problem with SORT reported by Bob Proulx.
65821
65822         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
65823         Define.  Trivial patch from Henning Nielsen Lund, originally
65824         sent to bug-grep@gnu.org today.
65825
65826 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
65827
65828         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
65829         struct stat.  Problem reported by Henning Nielsen Lund.
65830         * lib/acl.c: Include acl.h first, to check interface.  Don't
65831         bother to include sys/types.h and sys/stat.h again.
65832
65833 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
65834
65835         Import the following change from libc; problem reported by
65836         Sven Verdoolaege.
65837
65838         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
65839
65840         [BZ #1373]
65841         * lib/argp.h: Remove __NTH for __argp_usage inline function.
65842
65843 2006-12-28  Jim Meyering  <jim@meyering.net>
65844
65845         * build-aux/announce-gen: Do not assume that the package
65846         builds any of tar.gz, tar.bz2, and .xdelta files.
65847         Suggestion from Simon Josefsson.
65848
65849 2006-12-28  Simon Josefsson  <simon@josefsson.org>
65850
65851         * modules/announce-gen: New file.
65852
65853 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
65854
65855         * lib/mbchar.h: Just include <wctype.h>; the wctype module
65856         handles its gotchas now.
65857         * lib/mbswidth.c: Likewise.
65858         * lib/wcwidth.h: Likewise.
65859         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
65860         and iswcntrl; the wctype module does this stuff now.
65861         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
65862         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65863         * modules/mbchar (Depends-on): Add wctype.
65864         * modules/mbswidth (Depends-on): Likewise.
65865         * modules/wcwidth (Depends-on): Likewise.
65866
65867 2006-12-27  Eric Blake  <ebb9@byu.net>
65868
65869         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
65870         module uses more than what <wctype.h> is required to provide.
65871
65872 2006-12-26  Eric Blake  <ebb9@byu.net>
65873
65874         * gnulib-tool (sed_extract_prog): Avoid space-tab.
65875
65876 2006-12-26  Eric Blake  <ebb9@byu.net>
65877
65878         * modules/absolute-header: New module.
65879         * modules/fcntl (Depends-on): Depend on it.
65880         * modules/inttypes (Depends-on): Likewise.
65881         * modules/stdint (Depends-on): Likewise.
65882         * modules/sys_stat (Depends-on): Likewise.
65883         * modules/wctype (Depends-on): Likewise.
65884         * MODULES.html.sh (Support for building libraries and
65885         executables): Document it.
65886
65887 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
65888
65889         * gnulib-tool (SED): Remove, undoing previous change.
65890         The problem was that it broke coreutils on Solaris, because
65891         "sed --posix" leaked into a makefile.
65892         (sed): New alias, if 'alias' and GNU sed.
65893
65894 2006-12-24  Jim Meyering  <jim@meyering.net>
65895
65896         Work around an fchownat bug in glibc-2.4:
65897         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
65898         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
65899         in spite of the -P option.
65900         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
65901         New macros.
65902         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
65903         * modules/openat (Files): Add lib/fchownat.c.
65904         * lib/openat.c (fchownat): Don't define here.  Move to...
65905         * lib/fchownat.c: ...this new file.
65906
65907 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
65908
65909         Fix bug reported by Bruno Haible in
65910         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
65911         where quotearg.c didn't compile on Mac OS X 10.2 because it
65912         lacks <wchar.h> and wint_t.
65913         * lib/wctype_.h (__wctype_wint_t): New type.
65914         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
65915         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
65916         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
65917         Arg is now of type __wctype_wint_t, not wint_t.
65918         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
65919         substitute HAVE_WINT_T.
65920         * modules/wctype (Files): Add m4/wint_t.m4.
65921         (wctype.h): Substitute HAVE_WINT_T.
65922
65923 2006-12-23  Bruno Haible  <bruno@clisp.org>
65924
65925         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
65926
65927 2006-12-23  Bruno Haible  <bruno@clisp.org>
65928
65929         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
65930         S_ISLNK.
65931         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
65932         mingw.
65933
65934 2006-12-22  Bruno Haible  <bruno@clisp.org>
65935
65936         * lib/copy-file.c: Include acl.h.
65937         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
65938         Close the file descriptors only after being done with copy_acl.
65939         * modules/copy-file (Depends-on): Add acl.
65940
65941 2006-12-22  Bruno Haible  <bruno@clisp.org>
65942
65943         * gnulib-tool (SED): New variable.
65944         Use $SED instead of sed everywhere.
65945
65946 2006-12-22  Bruno Haible  <bruno@clisp.org>
65947
65948         * modules/no-c++: New file.
65949         * m4/no-c++.m4: New file.
65950         * MODULES.html.sh (Support for building libraries and executables):
65951         Add no-c++.
65952
65953 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
65954
65955         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65956         Include <limits.h>, and use its INT_MAX to rewrite the
65957         j loop so that it does not overflow 'int'.  Problem reported by
65958         Ralf Wildenhues in
65959         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
65960         Play it safe by shifting left by 1 rather than multiplying by 2,
65961         as GCC is less likely to optimize this away when the value
65962         is signed (when it assumes overflow leads to undefined behavior).
65963         Also, don't assume time_t uses two's complement.
65964
65965 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
65966
65967         * MODULES.html.sh: New module wctype.
65968         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
65969         * lib/fnmatch.c: Don't bother to include <wchar.h> before
65970         <wctype.h>, since the new wctype module should fix this.
65971         * lib/quotearg.c: Include <wctype.h> unconditionally, since
65972         the wctype module should arrange for it.
65973         * lib/regex_internal.h: Likewise.
65974         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
65975         since the wctype module should handle this now.
65976         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
65977         * modules/fnmatch (Depends-on): Add wctype.
65978         * modules/quotearg (Depends-on): Likewise.
65979         * modules/regex (Depends-on): Likewise.
65980
65981 2006-12-19  Bruno Haible  <bruno@clisp.org>
65982
65983         * lib/strdup.h [C++]: Wrap definitions in extern "C".
65984         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
65985
65986 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65987
65988         * modules/savewd (Depends-on): Fix dependency on fcntl.
65989
65990 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65991
65992         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
65993         conforms to C99, rather than relying on the user's environment
65994         setting of STDINT_H.
65995
65996 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
65997         and Eric Blake  <ebb9@byu.net>
65998
65999         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
66000         This is more consistent with the other defines here.
66001         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
66002         Port to z/OS.  Problem reported by Paul Gilmartin.
66003         Change local vars to use gl_ prefix rather than ac_.
66004         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
66005         with other defines.
66006         * modules/double-slash-root: New module.
66007         * modules/dirname (Files): Remove m4/double-slash-root.m4.
66008         (Depends-on): Add double-slash-root.
66009         * MODULES.html.sh (File system functions): Mention new module.
66010
66011 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
66012
66013         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
66014         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
66015         This is for the benefit of gzip, which doesn't do i18n.
66016
66017 2006-12-12  Jim Meyering  <jim@meyering.net>
66018
66019         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
66020         Reported by Andreas Schwab <schwab@suse.de>.
66021
66022 2006-12-12  Bruno Haible  <bruno@clisp.org>
66023
66024         Merge these changes.
66025         2006-09-05  Bruno Haible  <bruno@clisp.org>
66026         * lib/iconvme.c (iconv_string): No need to save and restore errno when
66027         iconv_alloc succeeded.
66028         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
66029         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
66030         test for " && dest " at the end - dest is always != NULL there. Call
66031         iconv with 4xNULL arguments initially, to reset the state. Call iconv
66032         with 2xNULL arguments, also to flush the state storage. Handle the
66033         IRIX iconv behaviour. Realloc the final result, to throw away unused
66034         memory.
66035
66036 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
66037
66038         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
66039         and fchmodat unconditionally, since glibc 2.4 has them.
66040         Problem reported by Arkadiusz Miskiewicz.
66041
66042 2006-12-10  Bruno Haible  <bruno@clisp.org>
66043
66044         * gnulib-tool (func_import): Show the include files only for those
66045         modules that are copied and specified.
66046         Reported by Karl Berry.
66047
66048 2006-12-08  Jim Meyering  <jim@meyering.net>
66049
66050         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
66051         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
66052
66053         * build-aux/announce-gen: Add two new options, both optional:
66054         --bootstrap-tools=TOOL_LIST
66055               a comma-separated list of tools, e.g.,
66056               autoconf,automake,bison,gnulib
66057         --gnulib-snapshot-date=DATE
66058               if gnulib is in the bootstrap tool list,
66059               then report this as the snapshot date.
66060               If not specified, use the current date/time.
66061               If you specify a date here, be sure it's UTC.
66062
66063 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66064
66065         * tests/test-argp-2.sh: Fix test to match actual output.
66066         (func_compare): Fix sed script to be portable.
66067
66068 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
66069
66070         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
66071         workaround for this case.  It is not autoconfigured now; offhand
66072         it's hard to see how to autoconfigure it.
66073
66074 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
66075
66076         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
66077         a directory that is about to be chowned.  Such a directory's
66078         initial file permissions should permit the owner only and this
66079         should not be changed until after the chown, since the group and
66080         other bits would be incorrect if they granted permission before
66081         the chown.
66082
66083         Fix porting problem for iswctype reported by Georg Schwarz in:
66084         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
66085         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
66086         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
66087         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
66088         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66089
66090 2006-12-03  Jim Meyering  <jim@meyering.net>
66091
66092         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
66093         p->fts_statp may not yet be defined.
66094         (fts_read): Instead, set it in the caller, once p->fts_statp is
66095         sure to be defined, and corresponds to a top-level directory.
66096         This bug made du -x fail.  Here's the coreutils test case:
66097         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
66098         Reported by Mike Frysinger.
66099
66100 2006-12-01  Jim Meyering  <jim@meyering.net>
66101
66102         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
66103         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
66104         Reported by Simon Josefsson.
66105
66106 2006-11-30  Jim Meyering  <jim@meyering.net>
66107
66108         * m4/warning.m4: Use the all-permissive copyright notice
66109         recommended by RMS (rather than LGPL).
66110         * m4/vararrays.m4: Likewise.
66111         * m4/flexmember.m4: Likewise.
66112
66113 2006-11-29  Bruno Haible  <bruno@clisp.org>
66114
66115         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66116         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
66117         using +=.
66118         Reported by Simon Josefsson <simon@josefsson.org>.
66119
66120 2006-11-28  James Youngman <jay@gnu.org>
66121
66122         * README: Advise users that they might find the bug-gnulib@gnu.org
66123         and autotools-announce@gnu.org mailing lists useful.
66124
66125 2006-11-28  Bruno Haible  <bruno@clisp.org>
66126
66127         * m4/ptrdiff_max.m4: Remove file.
66128
66129 2006-11-21  Bruno Haible  <bruno@clisp.org>
66130
66131         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
66132         _AC_COMPUTE_INT.
66133         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66134         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
66135         _AC_COMPUTE_INT.
66136         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66137         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
66138         _AC_COMPUTE_INT.
66139         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66140
66141 2006-11-28  Jim Meyering  <jim@meyering.net>
66142
66143         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
66144         warning from "gcc -Wshadow" about shadowing the builtin.
66145
66146 2006-11-27  Bruno Haible  <bruno@clisp.org>
66147
66148         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
66149         _AC_COMPUTE_INT.
66150         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
66151
66152 2006-11-27  Bruno Haible  <bruno@clisp.org>
66153             Paul Eggert  <eggert@cs.ucla.edu>
66154
66155         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
66156
66157 2006-11-26  Bruno Haible  <bruno@clisp.org>
66158
66159         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
66160         noinst_LTLIBRARIES.
66161
66162 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
66163             Bruno Haible  <bruno@clisp.org>
66164
66165         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
66166         if compiling with "gcc -ansi".
66167
66168 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
66169
66170         Fix some incompatibilities with gcc -ansi -pedantic.
66171         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
66172         if compiling pedantically with GCC, unless it's C99 or later.
66173         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
66174         it mishandles gcc -ansi -pedantic as well.
66175         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
66176         if gcc -pedantic.
66177         * lib/regexec.c (check_node_accept_bytes): Don't use auto
66178         initializers for struct if -pedantic, unless it's C99 or later.
66179
66180 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
66181
66182         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
66183         Don't close an fd more than once. Identical atimes indicate
66184         success, not failure.
66185
66186 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
66187
66188         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
66189
66190 2006-11-23  Jim Meyering  <jim@meyering.net>
66191
66192         * build-aux/announce-gen: New file.  From coreutils.
66193
66194 2006-11-22  Jim Meyering  <jim@meyering.net>
66195
66196         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
66197         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
66198         (fts_read): Use a temporary to narrow the overused st_size member
66199         before using it in a switch statement.  Reported by Matthew Woehlke.
66200
66201         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
66202         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
66203
66204 2006-11-20  Bruno Haible  <bruno@clisp.org>
66205
66206         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
66207         changequote instead of pairs of brackets.
66208         Reported by Andreas Schwab <schwab@suse.de>.
66209
66210 2006-11-21  Jim Meyering  <jim@meyering.net>
66211
66212         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
66213         so as to remain compatible with older compilers.
66214         Patch from Michael Deutschmann.
66215
66216 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66217
66218         * MODULES.html.sh (File system functions): Add openat.
66219
66220         * lib/openat.h (rpl_fstatat): New macro, if
66221         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
66222         (fstatat): Define to rpl_fstatat under the same conditions,
66223         unless COMPILING_FSTATAT.
66224         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
66225         seems to have the bug.
66226         * lib/fstatat.c: New file.
66227         * modules/openat (Files): Add it.
66228
66229 2006-11-20  Bruno Haible  <bruno@clisp.org>
66230
66231         * Makefile: New file.
66232
66233 2006-11-20  Jim Meyering  <jim@meyering.net>
66234
66235         The beginnings of syntax-related checks for gnulib.
66236         * lib/Makefile: New file.
66237         * lib/t-idcache: New script.  Ensure that the two halves of
66238         idcache.c stay in sync.
66239
66240         * lib/idcache.c: Adjust comments in user- and group- portions to
66241         be more accurate, and to be consistent with one another.
66242
66243 2006-11-20  Jim Meyering  <jim@meyering.net>
66244
66245         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
66246         continue using the flexible array member (thus, this module performs
66247         half as many malloc calls), with the addition that...
66248         (getgroup, getuser): Consistently record a non-match via an empty
66249         "name" string, and map an empty string match to a NULL return value.
66250         * modules/idcache (Depends-on): Re-add flexmember.
66251
66252         * lib/idcache.c (getuser): Remove all uses of the register keyword.
66253         (getuidbyname, getgroup, getgidbyname): Likewise.
66254
66255         Use cleaner syntax: NULL rather than 0.
66256         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
66257
66258 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
66259
66260         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
66261         It mishandled the case where the group was missing.
66262         Problem reported by Greg Schafer.
66263         * modules/idcache: Likewise.
66264
66265 2006-11-18  Jim Meyering  <jim@meyering.net>
66266
66267         * check-module (%exempt_header): Add exception for some
66268         conditionally-included headers.
66269
66270         * modules/i-ring (Depends-on): Add verify.
66271         (License): Change to LGPL.
66272
66273 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
66274
66275         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
66276         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
66277         and inttostr.h.  Use snprintf rather than uinttostr, so that
66278         LGPLed code doesn't depend on GPLed.
66279
66280 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
66281
66282         * modules/inline (License): Change from GPL to LGPL.
66283
66284 2006-11-17  Jim Meyering  <jim@meyering.net>
66285
66286         * modules/d-type (License): Switch to LGPL.
66287
66288 2006-11-15  Bruno Haible  <bruno@clisp.org>
66289
66290         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
66291
66292 2006-11-15  Eric Blake  <ebb9@byu.net>
66293
66294         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
66295         the module dependency.
66296
66297 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66298             Bruno Haible  <bruno@clisp.org>
66299
66300         * gnulib-tool (func_create_testdir): Add license consistency check.
66301
66302 2006-11-15  Eric Blake  <ebb9@byu.net>
66303
66304         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
66305         random "(cached)" in configure output.
66306
66307 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66308
66309         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
66310         test for conforming inttypes.h is both announced and cached.
66311
66312         * MODULES.html.sh (seen_modules, seen_files): New variables.
66313         (func_module): Rewrite to use a few less gnulib-tool and sed
66314         invocations.  Avoid a couple of quadratic algorithms for ...
66315         (missed_modules, missed_files): ... these, with ...
66316         (func_append, func_tmpdir): ... these new functions, from
66317         gnulib-tool.  Analogously, install traps for cleanup.
66318
66319         * tests/test-gc.c (main): Remove unused variables.
66320         * tests/test-read-file.c: Include stdlib.h, for 'free'.
66321
66322 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
66323
66324         * modules/inttostr (License): Change to LGPL.
66325
66326 2006-11-14  Eric Blake  <ebb9@byu.net>
66327
66328         * modules/tempname (License): Change to LGPL.
66329
66330 2006-11-14  Eric Blake  <ebb9@byu.net>
66331
66332         * doc/functions.texi (Function Portability): *printf functions on
66333         Cygwin now understand all POSIX size specifiers.
66334
66335 2006-11-14  Bruno Haible  <bruno@clisp.org>
66336
66337         * modules/c-ctype (License): Change to LGPL.
66338
66339 2006-11-12  Bruno Haible  <bruno@clisp.org>
66340
66341         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
66342         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
66343         for GNOME libraries, for which the include files are installed in
66344         subdirectories of $prefix/include.
66345
66346 2006-11-12  Bruno Haible  <bruno@clisp.org>
66347
66348         * m4/lib-link.m4: Require at least autoconf-2.54.
66349         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
66350         name to underscores for the --with option.
66351
66352 2006-11-13  Bruno Haible  <bruno@clisp.org>
66353
66354         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
66355         the tests directory.
66356         Reported by Ralf Wildenhues.
66357
66358 2006-11-13  Bruno Haible  <bruno@clisp.org>
66359
66360         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
66361         (func_emit_initmacro_end): Undo the override here.
66362         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
66363         Works around the famous automake error in coreutils.
66364
66365 2006-11-13  Eric Blake  <ebb9@byu.net>
66366
66367         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
66368         element, not its node.
66369
66370 2006-11-12  Bruno Haible  <bruno@clisp.org>
66371
66372         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
66373         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
66374
66375 2006-11-12  Bruno Haible  <bruno@clisp.org>
66376
66377         * gnulib-tool: New option --local-symlink.
66378         (func_usage): Document it.
66379         (lsymbolic): New variable.
66380         (func_import, func_create_testdir): If --symlink was not specified,
66381         test whether --local-symlink was specified and the file comes from
66382         the local_gnulib_dir.
66383
66384 2006-11-12  Bruno Haible  <bruno@clisp.org>
66385
66386         * gnulib-tool (func_ln): New function.
66387         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
66388
66389 2006-11-12  Bruno Haible  <bruno@clisp.org>
66390
66391         Finish support for source files in subdirectories.
66392         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
66393         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
66394         AUTOMAKE_OPTIONS.
66395         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
66396
66397 2006-11-12  Bruno Haible  <bruno@clisp.org>
66398
66399         * gnulib-tool (func_get_automake_snippet): Synthesize also an
66400         EXTRA_lib_SOURCES augmentation.
66401         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
66402
66403 2006-11-12  Jim Meyering  <jim@meyering.net>
66404
66405         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
66406         file descriptors.  This also averts a failure on systems with
66407         native openat support when a traversed directory lacks "x" access.
66408         * lib/fts_.h: Include "i-ring.h"
66409         (struct FTS) [fts_fd_ring]: New member.
66410         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
66411         (FCHDIR): Add parentheses.
66412         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
66413         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
66414         When descending, rather than simply closing the previous
66415         fts_cwd_fd value, push that file descriptor onto the ring.
66416         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
66417         (fts_open): Initialize the new fd_ring member.
66418         (fts_close): Clear the ring.
66419         (fts_safe_changedir): When possible, use our new fd_ring to skip
66420         the diropen and fstat and dev/ino comparison that would normally
66421         accompany a virtual `chdir ("..")'.
66422
66423         * modules/fts (Depends-on): Add i-ring.
66424         * modules/i-ring: New module.
66425         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
66426         * m4/i-ring.m4: New file.
66427
66428 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66429
66430         * gnulib-tool (func_create_testdir): Fix replacement of
66431         `build-aux' in configure.ac.  Run autotools in gltests
66432         subdirectory.
66433         (func_create_testdir, func_create_megatestdir, test): There is
66434         no need for '--force' in most autotool invocations in a new
66435         tree.  Actually fail the whole test if any of the tools, or the
66436         configure or make stages fail.
66437
66438         Sync from Automake.
66439         * build-aux/gnupload: Revert last change.  Add pointer to upload
66440         instructions of the GNU Maintenance Instructions.
66441         Suggestion by Karl Berry.
66442
66443 2006-11-10  Jim Meyering  <jim@meyering.net>
66444
66445         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
66446
66447 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66448
66449         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
66450         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
66451         (bind_textdomain_codeset) [! ENABLE_NLS]:
66452         Evaluate all the arguments.  That way, callers get compatible behavior
66453         if the arguments have side effects.  Also, it avoids some GCC
66454         diagnostics in some cases; Joel E. Denny reported problems when Bison
66455         was configured with --enable-gcc-warnigs.
66456
66457 2006-11-10  Jim Meyering  <jim@meyering.net>
66458
66459         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
66460         relevant options in CFLAGS (like -O, -fno-inline) are taken into
66461         account.
66462
66463 2006-11-10  Jim Meyering  <jim@meyering.net>
66464
66465         * modules/inline: New file/module.
66466         * modules/xalloc (Files): Remove m4/inline.m4.
66467         (Depends-on): Add inline, instead.
66468         * modules/oset: Likewise.
66469         * modules/list: Likewise.
66470
66471 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
66472
66473         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
66474         Problem reported by Matthew Woehlke.
66475
66476 2006-11-09  Bruno Haible  <bruno@clisp.org>
66477
66478         * lib/tempname.c (gen_tempname): Remove variant that invokes
66479         __gen_tempname.
66480         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
66481         __gen_tempname.
66482
66483 2006-11-08  Bruno Haible  <bruno@clisp.org>
66484
66485         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
66486         to 'yes' instead of 'cross-compiling'.
66487
66488 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
66489
66490         * lib/quotearg.h (quotearg_free): New decl.
66491         * lib/quotearg.c (quotearg_free): New function.
66492         (slot0, nslots, slotvec0, slotvec):
66493         Now file-scope so that quotearg_free can get at them.
66494
66495 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66496
66497         Sync from Automake.
66498         * build-aux/gnupload: Add missing 'gnu' to example URL.
66499         Report by Karl Berry.
66500
66501 2006-11-08  Bruno Haible  <bruno@clisp.org>
66502
66503         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
66504         Suggested by Paul Eggert.
66505
66506 2006-11-08  Jim Meyering  <jim@meyering.net>
66507
66508         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
66509         It's already included if !_LIBC.
66510         (fts_safe_changedir): Add a comment.
66511
66512 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66513
66514         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
66515         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
66516         Matthew Woehlke.
66517
66518         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
66519         definitions up, to avoid colliding with change below.
66520         (static_inline) [HAVE_INLINE]: New macro.
66521         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
66522         Provide extern decls when !HAVE_INLINE.  Do not define unless
66523         static_inline is defined, either by us or by xmalloc.c.  Use
66524         static_inline rather than static inline.
66525         (XCALLOC): Optimize sizeof(T) = 1 case.
66526         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
66527
66528 2006-11-07  Bruno Haible  <bruno@clisp.org>
66529
66530         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
66531         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
66532         AC_C_INLINE.
66533         * modules/xalloc (Files): Add m4/inline.m4.
66534
66535 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66536
66537         * README: Fix typo.
66538         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
66539         (Miscellanous Notes): ...from this.
66540
66541 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
66542
66543         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
66544         Mention that offsetof should be used instead of sizeof.
66545         From Bruno Haible.
66546
66547 2006-11-07  Bruno Haible  <bruno@clisp.org>
66548
66549         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
66550
66551 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66552
66553         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66554         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
66555         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66556         (gl_tree_add_before, gl_tree_add_after):
66557         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
66558         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
66559         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66560         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
66561         (gl_linked_add_after, gl_linked_add_at): Likewise.
66562         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
66563         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
66564         (gl_tree_add_before, gl_tree_add_after): Likewise.
66565         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
66566         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
66567         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
66568
66569 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66570
66571         * lib/gl_oset.h: Use C comment style, not C++ comment style.
66572
66573 2006-11-06  Bruno Haible  <bruno@clisp.org>
66574
66575         * m4/inline.m4: New file.
66576         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
66577         * modules/list (Files): Add m4/inline.m4.
66578         * modules/oset (Files): Likewise.
66579
66580 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
66581
66582         * lib/idcache.c: Include <stddef.h>, for offsetof.
66583         (struct userid.name): Change from char * to a flexible array member.
66584         All uses changed.
66585         * modules/idcache (Depends-on): Add flexmember.
66586
66587         * MODULES.html.sh (Core language properties): New module flexmember.
66588         * modules/flexmember, m4/flexmember.m4: New files.
66589
66590         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
66591         inline functions that are identical with the old xnmalloc_inline,
66592         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
66593         that we can avoid some unnecessary integer multiplications and
66594         divisions in the common case where the element size is known at
66595         compile time.
66596         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
66597         needed.
66598         (xnboundedmalloc): Remove.
66599         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
66600         arguments, for consistency with rest of this header.
66601         (xcharalloc): Rewrite using XNMALLOC.
66602         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
66603         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
66604         versions have been moved to lib/xalloc.h and renamed to be the
66605         non-*_inline versions.
66606         (xmalloc, xrealloc): Implement without reference to the xnmalloc
66607         and xnrealloc functions, since those functions are now inline and
66608         now call us.
66609         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
66610         renaming described above.
66611         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
66612         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
66613         captures the dependency in AC_C_INLINE.
66614
66615         New module canonicalize-lgpl, proposed by Charles Wilson in
66616         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
66617         with a few small changes afterwards.
66618         * MODULES.html.sh (File system functions): New module
66619         canonicalize-lgpl.
66620         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
66621         and canonicalize_file_name.
66622         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
66623         * modules/canonicalize-lgpl: New files.
66624
66625 2006-11-05  Bruno Haible  <bruno@clisp.org>
66626
66627         * gnulib-tool (func_import, func_create_testdir): Create directories
66628         also for files in subdirectories of lib/.
66629
66630 2006-11-05  Bruno Haible  <bruno@clisp.org>
66631
66632         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
66633         ANSI C compliant.
66634
66635 2006-11-03  Bruno Haible  <bruno@clisp.org>
66636
66637         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
66638         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
66639         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
66640         (xnboundedmalloc): New inline function.
66641         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
66642         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
66643         xmalloc.
66644         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
66645         xmalloc.
66646         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
66647         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
66648         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
66649         xmalloc.
66650         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66651         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
66652         xmalloc.
66653         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
66654         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66655         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
66656         xmalloc.
66657         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
66658         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
66659         gl_tree_add_after): Use XMALLOC instead of xmalloc.
66660         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
66661         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
66662         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
66663         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
66664
66665 2006-11-03  Bruno Haible  <bruno@clisp.org>
66666
66667         * lib/c-ctype.h [C++]: Define functions without name mangling.
66668         * lib/fwriteerror.h [C++]: Likewise.
66669         * lib/gcd.h [C++]: Likewise.
66670         * lib/linebreak.h [C++]: Likewise.
66671
66672 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
66673
66674         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
66675         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
66676         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
66677         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
66678         Check for functions and headers just once.
66679         Check for declaration of canonicalize_file_name.
66680         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
66681
66682 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66683
66684         * gnulib-tool (func_import): Fix typo in actioncmd.
66685
66686 2006-11-02  Bruno Haible  <bruno@clisp.org>
66687
66688         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
66689         newline sequence in the Makefile.am snippet as a space, like "make"
66690         does.
66691         Reported by Roger Persson <perrog@gmail.com>.
66692
66693 2006-11-01  Bruno Haible  <bruno@clisp.org>
66694
66695         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
66696         already declared in <string.h>.
66697         * lib/strcase.h (strncasecmp): Don't declare it if yes.
66698
66699 2006-11-01  Bruno Haible  <bruno@clisp.org>
66700
66701         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
66702         * lib/strcase.h: Include <string.h>.
66703         (strcasecmp): Define to rpl_strcasecmp here.
66704
66705 2006-11-01  Bruno Haible  <bruno@clisp.org>
66706
66707         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
66708
66709 2006-11-01  Eric Blake  <ebb9@byu.net>
66710
66711         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
66712
66713         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
66714
66715 2006-10-29  Bruno Haible  <bruno@clisp.org>
66716
66717         Make it compile in C++ mode.
66718         * lib/full-write.c (full_rw): Add a cast.
66719
66720 2006-11-01  Bruno Haible  <bruno@clisp.org>
66721
66722         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
66723         be POSIX compliant.
66724         Reported by Roger Persson <perrog@gmail.com>.
66725
66726 2006-11-01  Eric Blake  <ebb9@byu.net>
66727
66728         * lib/getopt_.h: Fix comments.
66729
66730 2006-10-31  Eric Blake  <ebb9@byu.net>
66731
66732         * modules/tmpdir (Depends-on): Add sys_stat.
66733         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
66734         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
66735         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
66736         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
66737         tempname.
66738
66739 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
66740
66741         Avoid some C++ diagnostics reported by Bruno Haible.
66742         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
66743         xmalloc.
66744         (quotearg_alloc): Use xcharalloc rather than xmalloc.
66745         (struct slotvec): Move to top level.
66746         (quotearg_n_options): Rewrite to avoid xmalloc.
66747         * lib/xalloc.h (xcharalloc): New function.
66748         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
66749         [defined __cplusplus]: Add function template that provides result
66750         type propagation.  This part of the change is from Bruno Haible.
66751
66752 2006-10-29  Bruno Haible  <bruno@clisp.org>
66753
66754         Make it compile in C++ mode.
66755         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
66756         * lib/strnlen1.c (strnlen1): Cast memchr result.
66757         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
66758         * lib/clean-temp.c (string_equals, string_hash): Add casts.
66759         (create_temp_dir): Rename local variable 'template'.
66760         (compile_csharp_using_sscli): Add cast.
66761         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
66762         * lib/findprog.c (find_in_path): Likewise.
66763         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
66764         * lib/wait-process.c (register_slave_subprocess): Likewise.
66765
66766 2006-10-22  Bruno Haible  <bruno@clisp.org>
66767
66768         * modules/tsearch: New file.
66769         * lib/tsearch.h: New file.
66770         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
66771         * m4/tsearch.m4: New file.
66772         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
66773
66774 2006-10-29  Eric Blake  <ebb9@byu.net>
66775
66776         * lib/arcfour.c: Assume config.h.
66777         * lib/arctwo.c: Likewise.
66778         * lib/base64.c: Likewise.
66779         * lib/check-version.c: Likewise.
66780         * lib/crc.c: Likewise.
66781         * lib/des.c: Likewise.
66782         * lib/gc-gnulib.c: Likewise.
66783         * lib/gc-libgcrypt.c: Likewise.
66784         * lib/gc-pbkdf2-sha1.c: Likewise.
66785         * lib/getaddrinfo.c: Likewise.
66786         * lib/getdelim.c: Likewise.
66787         * lib/getline.c: Likewise.
66788         * lib/hmac-md5.c: Likewise.
66789         * lib/hmac-sha1.c: Likewise.
66790         * lib/iconvme.c: Likewise.
66791         * lib/md2.c: Likewise.
66792         * lib/md4.c: Likewise.
66793         * lib/memxor.c: Likewise.
66794         * lib/read-file.c: Likewise.
66795         * lib/readline.c: Likewise.
66796         * lib/rijndael-alg-fst.c: Likewise.
66797         * lib/rijndael-api-fst.c: Likewise.
66798         * lib/xgetdomainname.c: Likewise.
66799
66800 2006-10-28  Eric Blake  <ebb9@byu.net>
66801
66802         * lib/xstrndup.c: Assume config.h.
66803
66804 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
66805
66806         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
66807         stat-macros.h is now for our own macros, whereas stat_h is for
66808         macros in the <sys/stat.h> name space.
66809         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
66810         (STAT_MACROS_H): Remove.
66811         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
66812         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
66813         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
66814         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
66815         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
66816         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
66817         Move these macros to ...
66818         * lib/stat_.h: here.  Don't include stat-macros.h.
66819         * lib/canonicalize.c: Don't include stat-macros.h.
66820         * lib/chown.c: Likewise.
66821         * lib/euidaccess.c: Likewise.
66822         * lib/file-type.c: Likewise.
66823         * lib/filemode.c: Likewise.
66824         * lib/glob.c: Likewise.
66825         * lib/isapipe.c: Likewise.
66826         * lib/lchown.c: Likewise.
66827         * lib/lstat.c: Likewise.
66828         * lib/mkdir-p.c: Likewise.
66829         * lib/rmdir.c: Likewise.
66830         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
66831         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
66832         unless mkdir isn't declared, to speed up 'configure'.
66833         Always create sys/stat.h, since it's unlikely any real sys/stat.h
66834         would define all the S_* symbols.
66835         * modules/canonicalize (Depends-on):
66836         Depend on sys_stat, not stat-macros.
66837         * modules/chown: Likewise.
66838         * modules/euidaccess: Likewise.
66839         * modules/filemode: Likewise.
66840         * modules/file-type: Likewise.
66841         * modules/glob: Likewise.
66842         * modules/isapipe: Likewise.
66843         * modules/lchown: Likewise.
66844         * modules/lstat: Likewise.
66845         * modules/mkancesdirs: Likewise.
66846         * modules/rmdir: Likewise.
66847         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
66848         * modules/modechange: Likewise.
66849         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
66850         (configure.ac): Remove gl_STAT_MACROS.
66851         * modules/sys_stat (Depends-on): Remove stat-macros.
66852
66853 2006-10-27  Bruno Haible  <bruno@clisp.org>
66854
66855         * m4/signed.m4: Remove file.
66856         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
66857         invocation.
66858         * modules/vasnprintf (Files): Remove m4/signed.m4.
66859
66860 2006-10-27  Bruno Haible  <bruno@clisp.org>
66861
66862         Update to GNU gettext 0.16.
66863         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
66864         m4/inttypes-h.m4, m4/signed.m4.
66865         * m4/gettext.m4: Update to GNU gettext 0.16.
66866         * m4/intl.m4: New file, from GNU gettext.
66867         * m4/intldir.m4: New file, from GNU gettext.
66868         * config/srclist.txt: Update
66869
66870 2006-10-27  Eric Blake  <ebb9@byu.net>
66871
66872         * MODULES.html.sh: Document tempname.
66873         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
66874         dependencies.
66875         (Files): Move lib/tempname.c...
66876         * modules/tempname: ...to this new module.
66877         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
66878         (gl_PREREQ_TEMPNAME): Move...
66879         * m4/tempname.m4: ...to this new file.
66880         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
66881         * modules/sys_stat (Depends-on): Add stat-macros.
66882         * lib/stat_.h (includes): Pick up stat macros.
66883         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
66884         if stat macros are broken.
66885         * lib/tempname.c (includes): No need to include "stat-macros.h".
66886         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
66887         (direxists, __path_search) [!_LIBC]: Don't compile these in
66888         gnulib; the tmpdir module covers that.
66889         * lib/tempname.h: New file.
66890
66891 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
66892
66893         * COPYING: Explain how gnulib-tool converts licence headers.
66894         Almost all wording by Eric Blake.
66895
66896 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
66897
66898         * lib/mbchar.h (is_basic_table): Make read-only.
66899         * lib/mbchar.c (is_basic_table): Likewise.
66900         Reported by John Darrington.
66901
66902 2006-10-25  Bruno Haible  <bruno@clisp.org>
66903
66904         * lib/progname.h (set_program_name): Undefine before defining.
66905
66906 2006-10-25  Bruno Haible  <bruno@clisp.org>
66907
66908         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
66909         false for non-gcc C++ compilers.
66910         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
66911
66912 2006-10-24  Bruno Haible  <bruno@clisp.org>
66913
66914         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
66915         iconv implementations like Irix iconv.
66916
66917 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66918
66919         * modules/vararrays: New file.
66920         * m4/vararrays.m4: New file, taken from diffutils.
66921         * MODULES.html.sh: New module vararrays.
66922
66923 2006-10-24  Karl Berry  <karl@gnu.org>
66924
66925         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
66926         Don't call GNU Unix.
66927
66928 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66929
66930         * users.txt: Add Libtool.
66931
66932         Sync from Libtool:
66933
66934         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66935
66936         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
66937         to gnulib's policy of including config.h unconditionally.
66938
66939 2006-10-24  Bruno Haible  <bruno@clisp.org>
66940
66941         * modules/wcwidth (Files): Add m4/wint_t.m4.
66942         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
66943         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
66944
66945 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
66946
66947         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
66948         to pacify GCC with some -W flags enabled.  Problem reported by
66949         Bruno Haible.
66950
66951 2006-10-24  Jim Meyering  <jim@meyering.net>
66952
66953         * MODULES.html.sh: Remove uinttostr.  It's not a module.
66954         Reported by Karl Berry.
66955
66956 2006-10-23  Bruno Haible  <bruno@clisp.org>
66957
66958         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
66959
66960 2006-10-24  Bruno Haible  <bruno@clisp.org>
66961
66962         * lib/gl_list.h: Use C comment style, not C++ comment style.
66963
66964 2006-10-23  Eric Blake  <ebb9@byu.net>
66965
66966         * lib/getaddrinfo.c (includes): Add missing include.
66967
66968 2006-10-23  Bruno Haible  <bruno@clisp.org>
66969             Paul Eggert  <eggert@cs.ucla.edu>
66970
66971         Ability to rename obstack_free.
66972         * lib/obstack.h (__obstack_free): New macro. Declare instead of
66973         obstack_free.
66974         (obstack_free): Invoke the __obstack_free macro.
66975         * lib/obstack.c (obstack_free): Use __obstack_free macro.
66976
66977 2006-10-23  Bruno Haible  <bruno@clisp.org>
66978             Paul Eggert  <eggert@cs.ucla.edu>
66979
66980         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
66981         __argc, __argv from the declaration. (They are defined as macros on
66982         mingw.)
66983
66984 2006-10-22  Bruno Haible  <bruno@clisp.org>
66985
66986         * doc/gnulib-intro.texi: New file.
66987         * doc/gnulib.texi: Include it.
66988
66989 2006-10-21  Bruno Haible  <bruno@clisp.org>
66990
66991         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
66992         "Introduction", "Miscellanous Notes", "Particular Modules".
66993
66994 2006-10-21  Bruno Haible  <bruno@clisp.org>
66995
66996         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66997         Change mostlyclean-local rule to avoid sh syntax error from bash
66998         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
66999
67000 2006-10-23  Jim Meyering  <jim@meyering.net>
67001
67002         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
67003         in place of snprintf.
67004
67005         * modules/inttostr (Files): Add lib/uinttostr.c.
67006         * lib/uinttostr.c (inttostr): New file/function.
67007         * lib/inttostr.h (uinttostr): Declare.
67008         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
67009         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
67010         Add uinttostr.
67011         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
67012
67013 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
67014
67015         * lib/canonicalize.c (ELOOP): Define if not already defined.
67016         Problem reported by Bruno Haible in
67017         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
67018
67019 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
67020
67021         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
67022         Problem reported by Perry Smith and Ville Laurikari.
67023
67024         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
67025         uses.
67026
67027 2006-10-19  Bruno Haible  <bruno@clisp.org>
67028
67029         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
67030         for mingw.
67031
67032 2006-10-19  Bruno Haible  <bruno@clisp.org>
67033
67034         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
67035         Needed for mingw.
67036
67037 2006-10-19  Bruno Haible  <bruno@clisp.org>
67038
67039         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
67040
67041 2006-10-19  Bruno Haible  <bruno@clisp.org>
67042
67043         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
67044         it.
67045
67046 2006-10-19  Bruno Haible  <bruno@clisp.org>
67047
67048         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
67049         invocation.
67050
67051 2006-10-19  Bruno Haible  <bruno@clisp.org>
67052
67053         * gnulib-tool (func_create_testdir): Don't include ftruncate and
67054         mountlist by default.
67055
67056 2006-10-16  Bruno Haible  <bruno@clisp.org>
67057
67058         * lib/c-strstr.c: Include c-strstr.h.
67059
67060 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67061
67062         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
67063         in a slash.
67064
67065 2006-10-18  Bruno Haible  <bruno@clisp.org>
67066
67067         * lib/lock.h [C++]: Wrap definitions in extern "C".
67068
67069 2006-10-18  Bruno Haible  <bruno@clisp.org>
67070
67071         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
67072         gl_LIBOBJS list.
67073
67074 2006-10-18  Bruno Haible  <bruno@clisp.org>
67075
67076         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
67077
67078 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
67079
67080         * lib/xstrtol.h: Include gettext.h.
67081         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
67082         Problem reported by Eric Blake.
67083         * modules/xstrtol (Depends-on): Add gettext-h.
67084
67085 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
67086
67087         * lib/strftime.c (advance): New macro.
67088         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
67089         incomplete type, so you can't add 0 to it.  Problem and patch
67090         reported by Eelco Dolstra for dietlibc.
67091
67092 2006-10-18  Jim Meyering  <jim@meyering.net>
67093
67094         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
67095         type for a local, and rename it: s/up/user_proc/.
67096
67097 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
67098
67099         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
67100         READ_UTMP_USER_PROCESS.
67101         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
67102
67103 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
67104
67105         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
67106         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
67107
67108 2006-10-17  Eric Blake  <ebb9@byu.net>
67109
67110         * lib/sigprocmask.c (sigprocmask): Fix typo.
67111
67112         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
67113
67114         * modules/clean-temp (Makefile.am): Don't add to make output...
67115         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
67116         config.h.
67117
67118 2006-10-17  Bruno Haible  <bruno@clisp.org>
67119
67120         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
67121         differently if DEFAULT_TEXT_DOMAIN is set.
67122
67123 2006-10-16  Bruno Haible  <bruno@clisp.org>
67124
67125         * lib/clean-temp.c: Include fwriteerror.h.
67126
67127 2006-10-16  Bruno Haible  <bruno@clisp.org>
67128
67129         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
67130
67131 2006-10-16  Bruno Haible  <bruno@clisp.org>
67132
67133         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
67134         * lib/sigprocmask.h: Include <sys/types.h>.
67135         (sigset_t): Use the system's definition if present.
67136
67137 2006-10-17  Eric Blake  <ebb9@byu.net>
67138
67139         * lib/xvasprintf.c (includes): Assume config.h.
67140         * lib/xasprintf.c (includes): Likewise.
67141
67142 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
67143
67144         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
67145         at least as wide as intmax_t.
67146
67147 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
67148
67149         (Imported from Automake.)
67150         * build-aux/gnupload: Update to version 1.1 of directive file.
67151
67152 2006-10-16  Eric Blake  <ebb9@byu.net>
67153
67154         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
67155         match Automake 1.10a.
67156
67157 2006-10-14  Bruno Haible  <bruno@clisp.org>
67158
67159         * modules/sigprocmask: New file.
67160         * lib/sigprocmask.h: New file.
67161         * lib/sigprocmask.c: New file.
67162         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
67163         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
67164         request sigprocmask.o.
67165         (gl_PREREQ_SIGPROCMASK): New macro.
67166         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
67167         (Depends-on): Add sigprocmask.
67168         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
67169         gt_SIGNALBLOCKING. Test for 'raise' only once.
67170         * lib/fatal-signal.c: Include sigprocmask.h.
67171         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
67172         unblock_fatal_signals): Define always.
67173         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67174         sigprocmask.
67175
67176 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
67177
67178         Sync from Automake.
67179         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
67180         which incorrectly sets the mode of an existing destination
67181         directory.  In some cases the unpatched install-sh could do the
67182         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
67183         system.  We hope this is rare in practice, but it's clearly worth
67184         fixing.  Problem reported by Alex Unleashed in
67185         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
67186         Also, don't bother to check for -m bugs unless we're using -m;
67187         suggested by Stepan Kasal.
67188
67189 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67190
67191         Sync from Automake.
67192         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
67193         `-c' flag, so they appear at the same position as in %FASTDEP%
67194         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
67195         which ignores unknown options only after the first non-option.
67196         Bug report against M4 by Nelson H. F. Beebe.
67197
67198 2006-10-13  Jim Meyering  <jim@meyering.net>
67199
67200         Fix a bug in yesterday's change.
67201         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
67202         p->fts_statp->st_dev would be used uninitialized.
67203         Ensures that we always call fts_stat on the very first entry.
67204         Miklos Szeredi reported that find -xdev stopped working.
67205
67206 2006-10-12  Bruno Haible  <bruno@clisp.org>
67207
67208         * gnulib-tool (func_get_automake_snippet): Append an automatically
67209         computed EXTRA_DIST augmentation.
67210         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
67211         * modules/alloca-opt (Makefile.am): Likewise.
67212         * modules/allocsa (Makefile.am): Likewise.
67213         * modules/arcfour (Makefile.am): Likewise.
67214         * modules/arctwo (Makefile.am): Likewise.
67215         * modules/argmatch (Makefile.am): Likewise.
67216         * modules/argz (Makefile.am): Likewise.
67217         * modules/atexit (Makefile.am): Likewise.
67218         * modules/backupfile (Makefile.am): Likewise.
67219         * modules/byteswap (Makefile.am): Likewise.
67220         * modules/c-strtod (Makefile.am): Likewise.
67221         * modules/c-strtold (Makefile.am): Likewise.
67222         * modules/calloc (Makefile.am): Likewise.
67223         * modules/canon-host (Makefile.am): Likewise.
67224         * modules/canonicalize (Makefile.am): Likewise.
67225         * modules/chdir-long (Makefile.am): Likewise.
67226         * modules/chdir-safer (Makefile.am): Likewise.
67227         * modules/check-version (Makefile.am): Likewise.
67228         * modules/chown (Makefile.am): Likewise.
67229         * modules/cloexec (Makefile.am): Likewise.
67230         * modules/close-stream (Makefile.am): Likewise.
67231         * modules/closeout (Makefile.am): Likewise.
67232         * modules/crc (Makefile.am): Likewise.
67233         * modules/csharpexec (Makefile.am): Likewise.
67234         * modules/cycle-check (Makefile.am): Likewise.
67235         * modules/des (Makefile.am): Likewise.
67236         * modules/dev-ino (Makefile.am): Likewise.
67237         * modules/dirfd (Makefile.am): Likewise.
67238         * modules/dirname (Makefile.am): Likewise.
67239         * modules/dup2 (Makefile.am): Likewise.
67240         * modules/eealloc (Makefile.am): Likewise.
67241         * modules/error (Makefile.am): Likewise.
67242         * modules/euidaccess (Makefile.am): Likewise.
67243         * modules/exclude (Makefile.am): Likewise.
67244         * modules/exitfail (Makefile.am): Likewise.
67245         * modules/fcntl-safer (Makefile.am): Likewise.
67246         * modules/fcntl (Makefile.am): Likewise.
67247         * modules/file-type (Makefile.am): Likewise.
67248         * modules/fileblocks (Makefile.am): Likewise.
67249         * modules/filemode (Makefile.am): Likewise.
67250         * modules/filenamecat (Makefile.am): Likewise.
67251         * modules/fnmatch (Makefile.am): Likewise.
67252         * modules/fopen-safer (Makefile.am): Likewise.
67253         * modules/fpending (Makefile.am): Likewise.
67254         * modules/fprintftime (Makefile.am): Likewise.
67255         * modules/free (Makefile.am): Likewise.
67256         * modules/fsusage (Makefile.am): Likewise.
67257         * modules/ftruncate (Makefile.am): Likewise.
67258         * modules/fts (Makefile.am): Likewise.
67259         * modules/gc-arcfour (Makefile.am): Likewise.
67260         * modules/gc-des (Makefile.am): Likewise.
67261         * modules/gc-hmac-md5 (Makefile.am): Likewise.
67262         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
67263         * modules/gc-md4 (Makefile.am): Likewise.
67264         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67265         * modules/gc-sha1 (Makefile.am): Likewise.
67266         * modules/gc (Makefile.am): Likewise.
67267         * modules/getaddrinfo (Makefile.am): Likewise.
67268         * modules/getcwd (Makefile.am): Likewise.
67269         * modules/getdelim (Makefile.am): Likewise.
67270         * modules/getdomainname (Makefile.am): Likewise.
67271         * modules/getgroups (Makefile.am): Likewise.
67272         * modules/gethostname (Makefile.am): Likewise.
67273         * modules/gethrxtime (Makefile.am): Likewise.
67274         * modules/getline (Makefile.am): Likewise.
67275         * modules/getloadavg (Makefile.am): Likewise.
67276         * modules/getlogin_r (Makefile.am): Likewise.
67277         * modules/getndelim2 (Makefile.am): Likewise.
67278         * modules/getopt (Makefile.am): Likewise.
67279         * modules/getpagesize (Makefile.am): Likewise.
67280         * modules/getpass-gnu (Makefile.am): Likewise.
67281         * modules/getpass (Makefile.am): Likewise.
67282         * modules/getsubopt (Makefile.am): Likewise.
67283         * modules/gettime (Makefile.am): Likewise.
67284         * modules/gettimeofday (Makefile.am): Likewise.
67285         * modules/getugroups (Makefile.am): Likewise.
67286         * modules/getusershell (Makefile.am): Likewise.
67287         * modules/glob (Makefile.am): Likewise.
67288         * modules/group-member (Makefile.am): Likewise.
67289         * modules/hard-locale (Makefile.am): Likewise.
67290         * modules/hash (Makefile.am): Likewise.
67291         * modules/hmac-md5 (Makefile.am): Likewise.
67292         * modules/hmac-sha1 (Makefile.am): Likewise.
67293         * modules/human (Makefile.am): Likewise.
67294         * modules/idcache (Makefile.am): Likewise.
67295         * modules/imaxabs (Makefile.am): Likewise.
67296         * modules/imaxdiv (Makefile.am): Likewise.
67297         * modules/inet_ntop (Makefile.am): Likewise.
67298         * modules/inet_pton (Makefile.am): Likewise.
67299         * modules/intprops (Makefile.am): Likewise.
67300         * modules/inttostr (Makefile.am): Likewise.
67301         * modules/inttypes (Makefile.am): Likewise.
67302         * modules/isapipe (Makefile.am): Likewise.
67303         * modules/javaversion (Makefile.am): Likewise.
67304         * modules/lchmod (Makefile.am): Likewise.
67305         * modules/lchown (Makefile.am): Likewise.
67306         * modules/localcharset (Makefile.am): Likewise.
67307         * modules/long-options (Makefile.am): Likewise.
67308         * modules/lstat (Makefile.am): Likewise.
67309         * modules/malloc (Makefile.am): Likewise.
67310         * modules/mathl (Makefile.am): Likewise.
67311         * modules/mbchar (Makefile.am): Likewise.
67312         * modules/md2 (Makefile.am): Likewise.
67313         * modules/md4 (Makefile.am): Likewise.
67314         * modules/md5 (Makefile.am): Likewise.
67315         * modules/memcasecmp (Makefile.am): Likewise.
67316         * modules/memchr (Makefile.am): Likewise.
67317         * modules/memcmp (Makefile.am): Likewise.
67318         * modules/memcoll (Makefile.am): Likewise.
67319         * modules/memcpy (Makefile.am): Likewise.
67320         * modules/memmem (Makefile.am): Likewise.
67321         * modules/memmove (Makefile.am): Likewise.
67322         * modules/mempcpy (Makefile.am): Likewise.
67323         * modules/memrchr (Makefile.am): Likewise.
67324         * modules/memset (Makefile.am): Likewise.
67325         * modules/memxor (Makefile.am): Likewise.
67326         * modules/mkancesdirs (Makefile.am): Likewise.
67327         * modules/mkdir-p (Makefile.am): Likewise.
67328         * modules/mkdir (Makefile.am): Likewise.
67329         * modules/mkdtemp (Makefile.am): Likewise.
67330         * modules/mkstemp (Makefile.am): Likewise.
67331         * modules/mktime (Makefile.am): Likewise.
67332         * modules/modechange (Makefile.am): Likewise.
67333         * modules/mountlist (Makefile.am): Likewise.
67334         * modules/nanosleep (Makefile.am): Likewise.
67335         * modules/obstack (Makefile.am): Likewise.
67336         * modules/openat (Makefile.am): Likewise.
67337         * modules/pagealign_alloc (Makefile.am): Likewise.
67338         * modules/pathmax (Makefile.am): Likewise.
67339         * modules/physmem (Makefile.am): Likewise.
67340         * modules/poll (Makefile.am): Likewise.
67341         * modules/posixtm (Makefile.am): Likewise.
67342         * modules/posixver (Makefile.am): Likewise.
67343         * modules/putenv (Makefile.am): Likewise.
67344         * modules/quote (Makefile.am): Likewise.
67345         * modules/quotearg (Makefile.am): Likewise.
67346         * modules/raise (Makefile.am): Likewise.
67347         * modules/read-file (Makefile.am): Likewise.
67348         * modules/readline (Makefile.am): Likewise.
67349         * modules/readlink (Makefile.am): Likewise.
67350         * modules/readtokens (Makefile.am): Likewise.
67351         * modules/readutmp (Makefile.am): Likewise.
67352         * modules/realloc (Makefile.am): Likewise.
67353         * modules/regex (Makefile.am): Likewise.
67354         * modules/rename-dest-slash (Makefile.am): Likewise.
67355         * modules/rename (Makefile.am): Likewise.
67356         * modules/rijndael (Makefile.am): Likewise.
67357         * modules/rmdir (Makefile.am): Likewise.
67358         * modules/rpmatch (Makefile.am): Likewise.
67359         * modules/safe-read (Makefile.am): Likewise.
67360         * modules/safe-write (Makefile.am): Likewise.
67361         * modules/same-inode (Makefile.am): Likewise.
67362         * modules/same (Makefile.am): Likewise.
67363         * modules/save-cwd (Makefile.am): Likewise.
67364         * modules/savedir (Makefile.am): Likewise.
67365         * modules/setenv (Makefile.am): Likewise.
67366         * modules/settime (Makefile.am): Likewise.
67367         * modules/sha1 (Makefile.am): Likewise.
67368         * modules/sig2str (Makefile.am): Likewise.
67369         * modules/snprintf (Makefile.am): Likewise.
67370         * modules/stat-macros (Makefile.am): Likewise.
67371         * modules/stat-time (Makefile.am): Likewise.
67372         * modules/stdbool (Makefile.am): Likewise.
67373         * modules/stdint (Makefile.am): Likewise.
67374         * modules/stdlib-safer (Makefile.am): Likewise.
67375         * modules/stpcpy (Makefile.am): Likewise.
67376         * modules/stpncpy (Makefile.am): Likewise.
67377         * modules/strcase (Makefile.am): Likewise.
67378         * modules/strcasestr (Makefile.am): Likewise.
67379         * modules/strchrnul (Makefile.am): Likewise.
67380         * modules/strcspn (Makefile.am): Likewise.
67381         * modules/strdup (Makefile.am): Likewise.
67382         * modules/strerror (Makefile.am): Likewise.
67383         * modules/strftime (Makefile.am): Likewise.
67384         * modules/strndup (Makefile.am): Likewise.
67385         * modules/strnlen (Makefile.am): Likewise.
67386         * modules/strpbrk (Makefile.am): Likewise.
67387         * modules/strsep (Makefile.am): Likewise.
67388         * modules/strstr (Makefile.am): Likewise.
67389         * modules/strtod (Makefile.am): Likewise.
67390         * modules/strtoimax (Makefile.am): Likewise.
67391         * modules/strtok_r (Makefile.am): Likewise.
67392         * modules/strtol (Makefile.am): Likewise.
67393         * modules/strtoll (Makefile.am): Likewise.
67394         * modules/strtoul (Makefile.am): Likewise.
67395         * modules/strtoull (Makefile.am): Likewise.
67396         * modules/strtoumax (Makefile.am): Likewise.
67397         * modules/strverscmp (Makefile.am): Likewise.
67398         * modules/sys_socket (Makefile.am): Likewise.
67399         * modules/sys_stat (Makefile.am): Likewise.
67400         * modules/sysexits (Makefile.am): Likewise.
67401         * modules/time_r (Makefile.am): Likewise.
67402         * modules/timegm (Makefile.am): Likewise.
67403         * modules/timespec (Makefile.am): Likewise.
67404         * modules/tmpfile-safer (Makefile.am): Likewise.
67405         * modules/trim (Makefile.am): Likewise.
67406         * modules/unistd-safer (Makefile.am): Likewise.
67407         * modules/unlinkdir (Makefile.am): Likewise.
67408         * modules/unlocked-io (Makefile.am): Likewise.
67409         * modules/userspec (Makefile.am): Likewise.
67410         * modules/utime (Makefile.am): Likewise.
67411         * modules/utimecmp (Makefile.am): Likewise.
67412         * modules/utimens (Makefile.am): Likewise.
67413         * modules/vasnprintf (Makefile.am): Likewise.
67414         * modules/vasprintf (Makefile.am): Likewise.
67415         * modules/vsnprintf (Makefile.am): Likewise.
67416         * modules/xalloc (Makefile.am): Likewise.
67417         * modules/xgetcwd (Makefile.am): Likewise.
67418         * modules/xnanosleep (Makefile.am): Likewise.
67419         * modules/xreadlink (Makefile.am): Likewise.
67420         * modules/xstrtod (Makefile.am): Likewise.
67421         * modules/xstrtol (Makefile.am): Likewise.
67422         * modules/xstrtold (Makefile.am): Likewise.
67423         * modules/yesno (Makefile.am): Likewise.
67424         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
67425
67426 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67427
67428         * modules/error (Makefile.am): Distribute files through
67429         EXTRA_DIST, not lib_SOURCES.
67430
67431 2006-10-12  Eric Blake  <ebb9@byu.net>
67432
67433         * modules/error (Makefile.am): Distribute files in /lib.
67434         * modules/obstack (Makefile.am): Likewise.
67435
67436 2006-10-12  Bruno Haible  <bruno@clisp.org>
67437
67438         * modules/acl (Makefile.am): Distribute all files in lib/ through
67439         EXTRA_DIST.
67440         * modules/arcfour (Makefile.am): Likewise.
67441         * modules/arctwo (Makefile.am): Likewise.
67442         * modules/argmatch (Makefile.am): Likewise.
67443         * modules/argz (Makefile.am): Likewise.
67444         * modules/atexit (Makefile.am): Likewise.
67445         * modules/backupfile (Makefile.am): Likewise.
67446         * modules/c-strtod (Makefile.am): Likewise.
67447         * modules/c-strtold (Makefile.am): Likewise.
67448         * modules/calloc (Makefile.am): Likewise.
67449         * modules/canon-host (Makefile.am): Likewise.
67450         * modules/canonicalize (Makefile.am): Likewise.
67451         * modules/chdir-long (Makefile.am): Likewise.
67452         * modules/chdir-safer (Makefile.am): Likewise.
67453         * modules/check-version (Makefile.am): Likewise.
67454         * modules/chown (Makefile.am): Likewise.
67455         * modules/cloexec (Makefile.am): Likewise.
67456         * modules/close-stream (Makefile.am): Likewise.
67457         * modules/closeout (Makefile.am): Likewise.
67458         * modules/crc (Makefile.am): Likewise.
67459         * modules/cycle-check (Makefile.am): Likewise.
67460         * modules/des (Makefile.am): Likewise.
67461         * modules/dirfd (Makefile.am): Likewise.
67462         * modules/dirname (Makefile.am): Likewise.
67463         * modules/dup2 (Makefile.am): Likewise.
67464         * modules/euidaccess (Makefile.am): Likewise.
67465         * modules/exclude (Makefile.am): Likewise.
67466         * modules/exitfail (Makefile.am): Likewise.
67467         * modules/fcntl-safer (Makefile.am): Likewise.
67468         * modules/file-type (Makefile.am): Likewise.
67469         * modules/fileblocks (Makefile.am): Likewise.
67470         * modules/filemode (Makefile.am): Likewise.
67471         * modules/filenamecat (Makefile.am): Likewise.
67472         * modules/fnmatch (Makefile.am): Likewise.
67473         * modules/fopen-safer (Makefile.am): Likewise.
67474         * modules/fpending (Makefile.am): Likewise.
67475         * modules/fprintftime (Makefile.am): Likewise.
67476         * modules/free (Makefile.am): Likewise.
67477         * modules/fsusage (Makefile.am): Likewise.
67478         * modules/ftruncate (Makefile.am): Likewise.
67479         * modules/fts (Makefile.am): Likewise.
67480         * modules/gc (Makefile.am): Likewise.
67481         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
67482         * modules/getaddrinfo (Makefile.am): Likewise.
67483         * modules/getcwd (Makefile.am): Likewise.
67484         * modules/getdelim (Makefile.am): Likewise.
67485         * modules/getdomainname (Makefile.am): Likewise.
67486         * modules/getgroups (Makefile.am): Likewise.
67487         * modules/gethostname (Makefile.am): Likewise.
67488         * modules/gethrxtime (Makefile.am): Likewise.
67489         * modules/getline (Makefile.am): Likewise.
67490         * modules/getloadavg (Makefile.am): Likewise.
67491         * modules/getlogin_r (Makefile.am): Likewise.
67492         * modules/getopt (Makefile.am): Likewise.
67493         * modules/getpass (Makefile.am): Likewise.
67494         * modules/getpass-gnu (Makefile.am): Likewise.
67495         * modules/getsubopt (Makefile.am): Likewise.
67496         * modules/gettime (Makefile.am): Likewise.
67497         * modules/gettimeofday (Makefile.am): Likewise.
67498         * modules/getugroups (Makefile.am): Likewise.
67499         * modules/getusershell (Makefile.am): Likewise.
67500         * modules/glob (Makefile.am): Likewise.
67501         * modules/group-member (Makefile.am): Likewise.
67502         * modules/hard-locale (Makefile.am): Likewise.
67503         * modules/hash (Makefile.am): Likewise.
67504         * modules/hmac-md5 (Makefile.am): Likewise.
67505         * modules/hmac-sha1 (Makefile.am): Likewise.
67506         * modules/human (Makefile.am): Likewise.
67507         * modules/idcache (Makefile.am): Likewise.
67508         * modules/imaxabs (Makefile.am): Likewise.
67509         * modules/imaxdiv (Makefile.am): Likewise.
67510         * modules/inet_ntop (Makefile.am): Likewise.
67511         * modules/inet_pton (Makefile.am): Likewise.
67512         * modules/inttostr (Makefile.am): Likewise.
67513         * modules/isapipe (Makefile.am): Likewise.
67514         * modules/lchown (Makefile.am): Likewise.
67515         * modules/long-options (Makefile.am): Likewise.
67516         * modules/lstat (Makefile.am): Likewise.
67517         * modules/malloc (Makefile.am): Likewise.
67518         * modules/mathl (Makefile.am): Likewise.
67519         * modules/mbchar (Makefile.am): Likewise.
67520         * modules/md2 (Makefile.am): Likewise.
67521         * modules/md4 (Makefile.am): Likewise.
67522         * modules/md5 (Makefile.am): Likewise.
67523         * modules/memcasecmp (Makefile.am): Likewise.
67524         * modules/memchr (Makefile.am): Likewise.
67525         * modules/memcmp (Makefile.am): Likewise.
67526         * modules/memcoll (Makefile.am): Likewise.
67527         * modules/memcpy (Makefile.am): Likewise.
67528         * modules/memmem (Makefile.am): Likewise.
67529         * modules/memmove (Makefile.am): Likewise.
67530         * modules/mempcpy (Makefile.am): Likewise.
67531         * modules/memrchr (Makefile.am): Likewise.
67532         * modules/memset (Makefile.am): Likewise.
67533         * modules/memxor (Makefile.am): Likewise.
67534         * modules/mkancesdirs (Makefile.am): Likewise.
67535         * modules/mkdir (Makefile.am): Likewise.
67536         * modules/mkdir-p (Makefile.am): Likewise.
67537         * modules/mkdtemp (Makefile.am): Likewise.
67538         * modules/mkstemp (Makefile.am): Likewise.
67539         * modules/mktime (Makefile.am): Likewise.
67540         * modules/modechange (Makefile.am): Likewise.
67541         * modules/mountlist (Makefile.am): Likewise.
67542         * modules/nanosleep (Makefile.am): Likewise.
67543         * modules/openat (Makefile.am): Likewise.
67544         * modules/pagealign_alloc (Makefile.am): Likewise.
67545         * modules/physmem (Makefile.am): Likewise.
67546         * modules/poll (Makefile.am): Likewise.
67547         * modules/posixtm (Makefile.am): Likewise.
67548         * modules/posixver (Makefile.am): Likewise.
67549         * modules/putenv (Makefile.am): Likewise.
67550         * modules/quote (Makefile.am): Likewise.
67551         * modules/quotearg (Makefile.am): Likewise.
67552         * modules/raise (Makefile.am): Likewise.
67553         * modules/read-file (Makefile.am): Likewise.
67554         * modules/readline (Makefile.am): Likewise.
67555         * modules/readlink (Makefile.am): Likewise.
67556         * modules/readtokens (Makefile.am): Likewise.
67557         * modules/readutmp (Makefile.am): Likewise.
67558         * modules/realloc (Makefile.am): Likewise.
67559         * modules/regex (Makefile.am): Likewise.
67560         * modules/rename (Makefile.am): Likewise.
67561         * modules/rename-dest-slash (Makefile.am): Likewise.
67562         * modules/rijndael (Makefile.am): Likewise.
67563         * modules/rmdir (Makefile.am): Likewise.
67564         * modules/rpmatch (Makefile.am): Likewise.
67565         * modules/safe-read (Makefile.am): Likewise.
67566         * modules/safe-write (Makefile.am): Likewise.
67567         * modules/same (Makefile.am): Likewise.
67568         * modules/save-cwd (Makefile.am): Likewise.
67569         * modules/savedir (Makefile.am): Likewise.
67570         * modules/setenv (Makefile.am): Likewise.
67571         * modules/settime (Makefile.am): Likewise.
67572         * modules/sha1 (Makefile.am): Likewise.
67573         * modules/sig2str (Makefile.am): Likewise.
67574         * modules/snprintf (Makefile.am): Likewise.
67575         * modules/stdlib-safer (Makefile.am): Likewise.
67576         * modules/stpcpy (Makefile.am): Likewise.
67577         * modules/stpncpy (Makefile.am): Likewise.
67578         * modules/strcase (Makefile.am): Likewise.
67579         * modules/strcasestr (Makefile.am): Likewise.
67580         * modules/strchrnul (Makefile.am): Likewise.
67581         * modules/strcspn (Makefile.am): Likewise.
67582         * modules/strdup (Makefile.am): Likewise.
67583         * modules/strerror (Makefile.am): Likewise.
67584         * modules/strftime (Makefile.am): Likewise.
67585         * modules/strndup (Makefile.am): Likewise.
67586         * modules/strnlen (Makefile.am): Likewise.
67587         * modules/strpbrk (Makefile.am): Likewise.
67588         * modules/strsep (Makefile.am): Likewise.
67589         * modules/strstr (Makefile.am): Likewise.
67590         * modules/strtod (Makefile.am): Likewise.
67591         * modules/strtoimax (Makefile.am): Likewise.
67592         * modules/strtok_r (Makefile.am): Likewise.
67593         * modules/strtol (Makefile.am): Likewise.
67594         * modules/strtoll (Makefile.am): Likewise.
67595         * modules/strtoul (Makefile.am): Likewise.
67596         * modules/strtoull (Makefile.am): Likewise.
67597         * modules/strtoumax (Makefile.am): Likewise.
67598         * modules/strverscmp (Makefile.am): Likewise.
67599         * modules/time_r (Makefile.am): Likewise.
67600         * modules/timegm (Makefile.am): Likewise.
67601         * modules/tmpfile-safer (Makefile.am): Likewise.
67602         * modules/unistd-safer (Makefile.am): Likewise.
67603         * modules/unlinkdir (Makefile.am): Likewise.
67604         * modules/userspec (Makefile.am): Likewise.
67605         * modules/utime (Makefile.am): Likewise.
67606         * modules/utimecmp (Makefile.am): Likewise.
67607         * modules/utimens (Makefile.am): Likewise.
67608         * modules/vasnprintf (Makefile.am): Likewise.
67609         * modules/vasprintf (Makefile.am): Likewise.
67610         * modules/vsnprintf (Makefile.am): Likewise.
67611         * modules/xalloc (Makefile.am): Likewise.
67612         * modules/xgetcwd (Makefile.am): Likewise.
67613         * modules/xnanosleep (Makefile.am): Likewise.
67614         * modules/xreadlink (Makefile.am): Likewise.
67615         * modules/xstrtod (Makefile.am): Likewise.
67616         * modules/xstrtol (Makefile.am): Likewise.
67617         * modules/xstrtold (Makefile.am): Likewise.
67618         * modules/yesno (Makefile.am): Likewise.
67619
67620 2006-10-12  Jim Meyering  <jim@meyering.net>
67621
67622         * m4/getloadavg.m4: Revert the change below.
67623
67624         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
67625         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
67626         fail with a symlink, which is what coreutils' ./bootstrap now
67627         creates by default.
67628
67629 2006-10-12  Bruno Haible  <bruno@clisp.org>
67630
67631         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
67632         mingw.
67633         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
67634         MSVC and mingw explicitly.
67635
67636 2006-10-11  Simon Josefsson  <jas@extundo.com>
67637             Bruno Haible  <bruno@clisp.org>
67638
67639         Add support for multiple gnulib-tool invocations in the scope of a
67640         single configure.ac file.
67641         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
67642         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
67643         with the same contents as the _LIBADD variable.
67644         (func_emit_initmacro_start, func_emit_initmacro_end,
67645         func_emit_initmacro_done): New functions.
67646         (func_import, func_create_testdir): Invoke them. Allow the identifiers
67647         gl_LIBOBJS and gl_LTLIBOBJS.
67648
67649 2006-10-11  Bruno Haible  <bruno@clisp.org>
67650
67651         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
67652         (func_create_testdir): Don't create po/Makefile.am, don't invoke
67653         autoreconf. Instead, invoke autopoint explicitly but move back the
67654         *.m4 files from gnulib.
67655
67656 2006-10-11  Bruno Haible  <bruno@clisp.org>
67657
67658         * gnulib-tool (func_usage): Make module names after --create-testdir
67659         optional.
67660         (func_create_testdir): If no module was specified, use nearly all
67661         modules.
67662
67663 2006-10-12  Jim Meyering  <jim@meyering.net>
67664
67665         Big performance improvement for fts-based tools that use FTS_NOSTAT.
67666         Avoid spurious inode-mismatch problems on non-POSIX file systems.
67667         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
67668         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
67669         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
67670         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
67671         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
67672         (fts_set_stat_required): New function.
67673         (fts_open): Defer the calls to fts_stat, if possible or requested.
67674         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
67675         into fts_stat itself.
67676         (fts_read): Perform any required (deferred) fts_stat call.
67677         (fts_build): Likewise, for the directory we're about to open and read.
67678         In the readdir loop, carefully decide whether each entry will require
67679         an eventual call to fts_stat, using dirent.d_type info if available.
67680         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
67681         a command line argument into this function.  Update all callers.
67682         Map a return value of FTS_DOT to FTS_D for a command line argument.
67683         * modules/fts (Depends-on): Add d-type.  Alphabetize.
67684         Thanks to Miklos Szeredi for his tenacity and for the initial
67685         bug report about "find" failing on a FUSE-based file system.
67686
67687         * lib/fts.c (fts_open): Use consistent indentation.
67688
67689 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
67690
67691         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
67692         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
67693         reported by Jim Meyering.  All uses of cache variables renamed
67694         to match Autoconf's.
67695         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
67696         the other one.
67697
67698         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
67699         Fix misspelling in diagnostic.
67700
67701 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67702
67703         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
67704         defined.  Problem reported by Matthew Woehlke.
67705
67706         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
67707         Add support for Tandem NonStop R series.
67708         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
67709         Use new macro.
67710
67711         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
67712         (has_trailing_slash): Omit size arg; all callers changed.
67713         Omit 'inline', since it doesn't help performance and we'd
67714         need to configure it.
67715         Don't count //, ///, etc. as having a trailing slash.
67716         As a side effect, this removes a C99ism reported by Matthew Woehlke.
67717         (rpl_rename_dest_slash): On failure, use rename's errno rather
67718         than (in some cases) an incorrect or junk errno.
67719         Simplify code by removing need to compute length; this does
67720         cause it to make two passes instead of one over the file name,
67721         but it's worth it.
67722
67723         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
67724         change, since Autoconf's version may no longer be appropriate now
67725         that we are using CVS Autoconf's version.  Add support for Tandem.
67726
67727 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
67728             Bruno Haible  <bruno@clisp.org>
67729
67730         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
67731         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
67732         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
67733         gl_AC_TYPE_LONG_LONG.
67734
67735         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
67736         instead of HAVE_LONG_LONG.
67737         * lib/printf-args.c (printf_fetchargs): Likewise.
67738         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
67739         * lib/vasnprintf.c (VASNPRINTF): Likewise.
67740         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
67741         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
67742         gl_AC_TYPE_LONG_LONG.
67743
67744 2006-10-11  Bruno Haible  <bruno@clisp.org>
67745
67746         * m4/longlong.m4: Add comments.
67747         * m4/ulonglong.m4: Likewise.
67748
67749 2006-10-10  Bruno Haible  <bruno@clisp.org>
67750
67751         Make it possible to #define stpcpy, strdup to aliases.
67752         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
67753         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
67754
67755 2006-10-10  Bruno Haible  <bruno@clisp.org>
67756
67757         Make it possible to #define gcd to an alias.
67758         * lib/gcd.c: Include config.h.
67759
67760 2006-10-10  Bruno Haible  <bruno@clisp.org>
67761
67762         Make it possible to #define c_isascii to an alias.
67763         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
67764         defined. Undefine the macros before defining them, to avoid gcc
67765         warnings.
67766         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
67767         define NO_C_CTYPE_MACROS early.
67768
67769 2006-10-10  Bruno Haible  <bruno@clisp.org>
67770
67771         Make it possible to #define set_program_name to an alias.
67772         * lib/progname.c: Don't undefine set_program_name; instead, undefine
67773         ENABLE_RELOCATABLE early.
67774
67775 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
67776
67777         Port to Tandem NSK OSS, which has 64-bit signed int but at most
67778         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
67779         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
67780         More generally, don't assume that 64-bit signed int is available
67781         if unsigned int is, and vice versa.
67782         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
67783         unsigned symbols, not on their signed counterparts.
67784         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
67785         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
67786         (UINT64_C, UINTMAX_C):
67787         Likewise.
67788         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
67789         unsigned counterparts.
67790         (Have_long_long, Unsigned): New macros.
67791         (Int): Renamed from INT.
67792         (strtoimax): Use the new macros.
67793         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
67794         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
67795         * modules/inttypes (inttypes.h): Substitute
67796         HAVE_UNSIGNED_LONG_LONG_INT.
67797         * modules/stdint (stdint.h): Likewise.
67798         (Files): Add m4/ulonglong.m4.
67799
67800 2006-10-10  Bruno Haible  <bruno@clisp.org>
67801
67802         Fix a gcc -Wshadow warning.
67803         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
67804         to 'bucket'.
67805         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
67806         gl_linked_indexof_from_to): Likewise.
67807         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
67808         Likewise.
67809         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
67810         Likewise.
67811         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
67812         Reported by Eric Blake.
67813
67814 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
67815
67816         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
67817         for NetBSD.  Problem reported by Bruno Haible.
67818
67819 2006-10-09  Jim Meyering  <jim@meyering.net>
67820
67821         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
67822         Patch from Bruno Haible.
67823
67824 2006-10-09  Jim Meyering  <jim@meyering.net>
67825
67826         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
67827         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
67828         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
67829
67830 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
67831
67832         Don't include <config.h> twice; this doesn't work in some cases,
67833         e.g., when config.h has "#define intmax_t long long int" and
67834         we include <config.h>, <inttypes.h>, <config.h> in that order.
67835         Problem reported by Matthew Woehlke in:
67836         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
67837         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
67838         * lib/fts-cycle.c: Don't include config.h.
67839         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
67840         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
67841         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
67842         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
67843         inttypes.h.
67844         * lib/xstrtoumax.c: Likewise.
67845         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
67846         __strtol and the like, so that this module is more like its siblings.
67847         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
67848         Remove; no longer needed now that we assume gnulib inttypes.h.
67849
67850 2006-10-08  Bruno Haible  <bruno@clisp.org>
67851
67852         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
67853         option.
67854
67855 2006-10-07  Jim Meyering  <jim@meyering.net>
67856
67857         * modules/inttypes (inttypes.h): Revert what seems to have been
67858         an inadvertent part of today's change: use "|", not "/" in the
67859         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
67860
67861 2006-10-07  Bruno Haible  <bruno@clisp.org>
67862
67863         * modules/sublist: New file.
67864
67865 2006-10-07  Bruno Haible  <bruno@clisp.org>
67866
67867         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
67868         * modules/argz (argz.h): Likewise.
67869         * modules/arpa_inet (arpa/inet.h): Likewise.
67870         * modules/byteswap (byteswap.h): Likewise.
67871         * modules/configmake (configmake.h): Likewise.
67872         * modules/fcntl (fcntl.h): Likewise.
67873         * modules/fnmatch (fnmatch.h): Likewise.
67874         * modules/getopt (getopt.h): Likewise.
67875         * modules/glob (glob.h): Likewise.
67876         * modules/inttypes (inttypes.h): Likewise.
67877         * modules/netinet_in (netinet/in.h): Likewise.
67878         * modules/poll (poll.h): Likewise.
67879         * modules/stdbool (stdbool.h): Likewise.
67880         * modules/stdint (stdint.h): Likewise.
67881         * modules/sys_select (sys/select.h): Likewise.
67882         * modules/sys_socket (sys/socket.h): Likewise.
67883         * modules/sys_stat (sys/stat.h): Likewise.
67884         * modules/sysexits (sysexits.h): Likewise.
67885         * modules/unistd (unistd.h): Likewise.
67886         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67887         Add a "DO NOT EDIT" comment to the generated file.
67888         (func_import): Likewise for gnulib-comp.m4.
67889
67890 2006-10-07  Bruno Haible  <bruno@clisp.org>
67891
67892         * lib/gl_sublist.h: New file.
67893         * lib/gl_sublist.c: New file.
67894
67895 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
67896
67897         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
67898         name (relative to the original working directory) and the file
67899         name component (relative to the temporary working directory).  All
67900         callers changed.
67901         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
67902         * lib/mkdir-p.c (make_dir_parents): Likewise.
67903         * lib/mkdir-p.h (make_dir_parents): Likewise.
67904
67905 2006-10-06  Eric Blake  <ebb9@byu.net>
67906
67907         Define several macros for use by the clean-temp module.
67908         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
67909         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
67910         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
67911
67912         * lib/clean-temp.h (close_stream_temp): New declaration.
67913         * lib/clean-temp.c (includes): Pull in headers according to what
67914         other modules are in use.
67915         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
67916
67917 2006-10-06  Bruno Haible  <bruno@clisp.org>
67918
67919         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
67920         instead of fopen, fwriteerror.
67921
67922 2006-10-06  Bruno Haible  <bruno@clisp.org>
67923
67924         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
67925         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
67926         int.
67927         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
67928         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
67929         Return an error indicator.
67930         Suggested by Eric Blake.
67931
67932 2006-10-06  Bruno Haible  <bruno@clisp.org>
67933
67934         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
67935         Reported by Eric Blake.
67936
67937 2006-10-06  Bruno Haible  <bruno@clisp.org>
67938
67939         * modules/closeout (Description): Mention stderr too.
67940
67941 2006-10-06  Bruno Haible  <bruno@clisp.org>
67942         and Paul Eggert  <eggert@cs.ucla.edu>
67943
67944         * lib/closeout.c (close_stdout): Also close stderr.
67945         * lib/closeout.h: Update comment.
67946
67947 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
67948
67949         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
67950         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
67951         * lib/dirchownmod.c: Include lchown.h.
67952         * lib/lchown.c: Don't include files that lchown.h now includes.
67953         Don't declare chown, since lchown.h now does that.
67954         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
67955         (lchown): Define to rpl_chown if lchown is declared but
67956         does not exist.  Declare using a prototype if lchown is not
67957         declared.  Add a copyright notice.
67958         * lib/mkstemp.h: Include <unistd.h>.
67959         * lib/openat.c: Include lchown.h.
67960
67961         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
67962         we now test for that separately.
67963         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
67964         rather than O_NOFOLLOW, when testing whether it's possible to
67965         avoid a race condition reliably.
67966         * lib/savewd.c (savewd_chdir): Likewise.
67967
67968         Remove macros that are no longer needed now that stdint.h is
67969         reliable.
67970         * lib/fsusage.c (UINTMAX_MAX): Remove.
67971         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
67972         * lib/utimecmp.c (SIZE_MAX): Remove.
67973
67974         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
67975
67976         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
67977         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
67978         O_NOATIME works.
67979
67980 2006-10-05  Bruno Haible  <bruno@clisp.org>
67981
67982         * lib/gl_list.h (gl_sortedlist_search_from_to,
67983         gl_sortedlist_indexof_from_to): New declarations.
67984         (gl_list_implementation): New fields sortedlist_search_from_to,
67985         sortedlist_indexof_from_to.
67986         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
67987         inline functions.
67988         * lib/gl_list.c (gl_sortedlist_search_from_to,
67989         gl_sortedlist_indexof_from_to): New functions.
67990         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
67991         function.
67992         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
67993         (gl_array_sortedlist_search_from_to): New function.
67994         (gl_array_list_implementation): Update.
67995         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
67996         function.
67997         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
67998         (gl_carray_sortedlist_search_from_to): New function.
67999         (gl_carray_list_implementation): Update.
68000         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
68001         gl_linked_sortedlist_indexof_from_to): New functions.
68002         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
68003         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
68004         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
68005         gl_tree_sortedlist_indexof_from_to): New functions.
68006         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
68007         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
68008         Update.
68009         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
68010         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
68011         Update.
68012
68013 2006-10-05  Bruno Haible  <bruno@clisp.org>
68014
68015         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
68016         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
68017         (struct gl_list_implementation): Add fields search_from_to,
68018         indexof_from_to. Remove fields search, indexof.
68019         (gl_list_search): Use the search_from_to method.
68020         (gl_list_search_from, gl_list_search_from_to): New functions.
68021         (gl_list_indexof): Use the indexof_from_to method.
68022         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
68023         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
68024         (gl_list_search_from, gl_list_search_from_to): New functions.
68025         (gl_list_indexof): Use the indexof_from_to method.
68026         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
68027         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
68028         gl_array_indexof. Add start_index, end_index arguments.
68029         (gl_array_search_from_to): Renamed from gl_array_search. Add
68030         start_index, end_index arguments.
68031         (gl_array_remove, gl_array_list_implementation): Update.
68032         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
68033         gl_carray_indexof. Add start_index, end_index arguments.
68034         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
68035         start_index, end_index arguments.
68036         (gl_carray_remove, gl_carray_list_implementation): Update.
68037         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
68038         gl_linked_search. Add start_index, end_index arguments.
68039         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
68040         start_index, end_index arguments.
68041         (gl_linked_remove): Update.
68042         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
68043         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
68044         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
68045         field to 'size_t'.
68046         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
68047         gl_tree_search. Add start_index, end_index arguments.
68048         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
68049         start_index, end_index arguments.
68050         (gl_tree_remove): Update.
68051         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
68052         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
68053         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
68054         function.
68055         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
68056         gl_tree_search. Add start_index, end_index arguments.
68057         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
68058         start_index, end_index arguments.
68059         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
68060         Update.
68061         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
68062
68063 2006-10-05  Bruno Haible  <bruno@clisp.org>
68064
68065         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
68066
68067         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
68068         fwriteerror_temp): New declarations.
68069         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
68070         (descriptors): New variable.
68071         (cleanup): First, close the descriptors.
68072         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
68073         fclose_temp, fwriteerror_temp): New functions.
68074
68075 2006-10-04  Jim Meyering  <jim@meyering.net>
68076
68077         * lib/fts.c (fts_open): Tiny comment change.
68078
68079 2006-10-04  Bruno Haible  <bruno@clisp.org>
68080
68081         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
68082         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
68083         gl_LOCK_BODY.
68084         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
68085         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
68086         gl_LOCK_EARLY_BODY.
68087         (gl_LOCK): Require gl_LOCK_BODY.
68088
68089 2006-10-04  Bruno Haible  <bruno@clisp.org>
68090
68091         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
68092         (gl_oset_search_atleast): New declaration.
68093         (struct gl_oset_implementation): Add field 'search_atleast'.
68094         (gl_oset_search_atleast): New inline function.
68095         * lib/gl_oset.c (gl_oset_search_atleast): New function.
68096         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
68097         (gl_array_oset_implementation): Update.
68098         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
68099         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
68100         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
68101
68102 2006-10-04  Bruno Haible  <bruno@clisp.org>
68103
68104         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
68105
68106 2006-10-03  Bruno Haible  <bruno@clisp.org>
68107
68108         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
68109         from gl_avltreehash_list_implementation.
68110
68111 2006-10-03  Bruno Haible  <bruno@clisp.org>
68112
68113         * lib/gl_oset.c (gl_oset_add): Fix return type.
68114
68115 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
68116
68117         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
68118
68119 2006-10-02  Eric Blake  <ebb9@byu.net>
68120
68121         * modules/strnlen (Depends-on): Add extensions.
68122
68123 2006-10-02  Eric Blake  <ebb9@byu.net>
68124
68125         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
68126         definition in 2.60+.
68127
68128 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
68129
68130         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
68131         checks.
68132
68133 2006-10-02  Bruno Haible  <bruno@clisp.org>
68134
68135         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
68136         to the AUTOMAKE_OPTIONS.
68137         Reported by Jim Meyering.
68138
68139 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
68140
68141         Work around bug in Solaris 10 /proc file system:
68142         /proc/self/fd/NNN/.. isn't the parent directory of
68143         the directory whose file descriptor is NNN.  This needs to
68144         be worked around at run time, not compile time, since a
68145         program might be built on Solaris 8, where things work, and
68146         run on Solaris 10.
68147         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
68148         to use the following interface instead:
68149         (OPENAT_BUFFER_SIZE): New macro.
68150         (openat_proc_name): New function.
68151         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
68152         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
68153         Likewise.
68154         * lib/openat-proc.c: New file.
68155         * modules/openat (Files): Add lib/openat-proc.c.
68156         (Depends-on): Add same-inode, stdbool.
68157         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
68158
68159 2006-09-29  Bruno Haible  <bruno@clisp.org>
68160
68161         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
68162         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
68163         argument. Set stdout_closed before testing for ferror, not after.
68164         (fwriteerror, fwriteerror_no_ebadf): New functions.
68165
68166 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68167
68168         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
68169
68170 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
68171
68172         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
68173         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
68174
68175 2006-09-28  Jim Meyering  <jim@meyering.net>
68176
68177         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
68178         Include <unistd.h>.
68179
68180 2006-09-28  Bruno Haible  <bruno@clisp.org>
68181
68182         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
68183         * modules/linkedhash-list (Depends-on): Likewise.
68184         * modules/rbtreehash-list (Depends-on): Likewise.
68185
68186 2006-09-28  Bruno Haible  <bruno@clisp.org>
68187
68188         * lib/strndup.h: Simplify the redefinition of strndup.
68189         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
68190         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
68191
68192 2006-09-28  Bruno Haible  <bruno@clisp.org>
68193
68194         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
68195         * lib/gl_linkedhash_list.c: Likewise.
68196         * lib/gl_rbtreehash_list.c: Likewise.
68197
68198 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
68199
68200         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
68201         getaddrinfo.
68202
68203         * lib/__fpending.h: Don't include <stdio_ext.h> unless
68204         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
68205         it causes <stdio_ext.h> to cause a compile-time error.
68206         Problem reported by Nelson H. F. Beebe.
68207         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
68208         of HAVE_DECL___PENDING.
68209
68210         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
68211         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
68212         declaration.
68213
68214 2006-09-27  Jim Meyering  <jim@meyering.net>
68215
68216         This file could end up with a definition for a function
68217         named __strndup, rather than rpl_strndup on a system with
68218         incomplete weak_alias support.
68219         * lib/strndup.c (strndup): Rename from __strndup.
68220         Remove #defines that used to map __strndup to strndup.
68221         Don't use K&R prototypes.
68222         Remove LIBC-related code, since this file is not sync'd with glibc.
68223         * lib/strndup.h: Revamp, accordingly.
68224         * m4/strndup.m4: Modernize.
68225
68226 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
68227
68228         * modules/savewd (Depends-on): Add 'raise'.
68229         * lib/savewd.c: Include <signal.h>, for 'raise'.
68230
68231 2006-09-26  Jim Meyering  <jim@meyering.net>
68232
68233         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
68234         when we detect Darwin 8.7.0's acl_get_file bug.
68235         Rearrange to perform the new (below) run-test while $LIBS
68236         contains any acl-related library.  Set USE_ACL at the end.
68237         (gl_ACL_GET_FILE): New function.
68238
68239 2006-09-26  Eric Blake  <ebb9@byu.net>
68240
68241         * lib/verror.c: Include <config.h> unconditionally.
68242
68243 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
68244
68245         * modules/clock-time (Maintainer): Add self.
68246         * modules/getlogin_r (Depends-on): Add extensions.
68247
68248 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68249
68250         * modules/clock-time: New module.
68251         * modules/nanosleep (Depends-on): Add clock-time.
68252         * modules/gethrxtime (Depends-on): Likewise.
68253         * modules/gettime (Depends-on): Likewise.
68254         * modules/settime (Depends-on): Likewise.
68255
68256         * modules/fts-lgpl: Depend on openat.
68257         * modules/mkancesdirs: Depend on savewd.
68258         * modules/mkdir-p: Likewise.
68259
68260 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68261
68262         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
68263
68264         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
68265         `gl_have_arbitrary_file_name_length_limit' to
68266         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
68267         actually works between configure runs.
68268
68269 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68270             Bruno Haible  <bruno@clisp.org>
68271
68272         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
68273
68274 2006-09-25  Jim Meyering  <jim@meyering.net>
68275
68276         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
68277         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
68278
68279 2006-09-25  Eric Blake  <ebb9@byu.net>
68280
68281         * gnulib-tool (func_import, func_create_testdir): Fix typos in
68282         exec's in 2006-09-18 patch when shuffling fds.
68283
68284 2006-09-25  Bruno Haible  <bruno@clisp.org>
68285
68286         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
68287         Reported by Jim Meyering.
68288
68289 2006-09-24  Jim Meyering  <jim@meyering.net>
68290
68291         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
68292         compare a pointer against a literal "0".  That caused failures with
68293         at least HP-UX's hpcc.
68294
68295 2006-09-22  Simon Josefsson  <jas@extundo.com>
68296
68297         * modules/gc-sha1:
68298         * modules/gc-md4:
68299         * modules/gc-hmac-sha1:
68300         * modules/gc-hmac-md5:
68301         * modules/gc-des:
68302         * modules/gc-arcfour: Distribute more files.
68303
68304 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68305
68306         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
68307         (gl_linked_iterator_from_to): Initialize struct completely.
68308         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
68309         (gl_tree_iterator_from_to): Likewise
68310         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
68311         * lib/gl_array_list.c [lint] (gl_array_iterator)
68312         (gl_array_iterator_from_to): Likewise.
68313         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
68314         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
68315         (gl_carray_iterator_from_to): Likewise.
68316
68317         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
68318         * lib/md4.c (md4_process_block): Remove unused variable.
68319         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
68320         parentheses for clarity.
68321
68322 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68323
68324         * modules/bison-i18n (Depends-on): Add gettext.
68325
68326 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68327
68328         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
68329         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
68330         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
68331         also add missing comma that caused broken test.
68332         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
68333         stdlib.h, for `abort'.
68334         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
68335         variables.
68336         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
68337         include unistd.h if present, for `rmdir'.
68338         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
68339         variables.
68340         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
68341         in the process include standard headers for prototypes.
68342         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
68343         gets declared on GNU/Linux.
68344         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
68345         unistd.h, for `rmdir'.
68346         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
68347
68348         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
68349         always true.
68350         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
68351
68352         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
68353
68354 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68355
68356         * gnulib-tool (func_version): Create output all at once.  This
68357         may help avoid triggering unnecessary SIGPIPEs, and at any
68358         rate it doesn't hurt.
68359
68360 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68361             Bruno Haible  <bruno@clisp.org>
68362
68363         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
68364         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
68365         * m4/signed.m4 (bh_C_SIGNED): Likewise.
68366
68367         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
68368         (gl_FUNC_VASPRINTF): Invoke it.
68369
68370 2006-09-22  Bruno Haible  <bruno@clisp.org>
68371
68372         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
68373         getloadavg.c as first argument.
68374
68375 2006-09-22  Bruno Haible  <bruno@clisp.org>
68376
68377         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
68378         at the beginning of the gl_INIT macro.
68379         * modules/getloadavg (configure.ac): Pass $gl_source_base to
68380         gl_GETLOADAVG.
68381
68382 2006-09-22  Bruno Haible  <bruno@clisp.org>
68383
68384         * gnulib-tool (func_create_megatestdir): Don't include the config-h
68385         module.
68386         Suggested by Ralf Wildenhues.
68387
68388 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
68389
68390         Import this patch from libc:
68391
68392         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
68393
68394         * lib/regex_internal.c (re_string_reconstruct): Handle
68395         offset < pstr->valid_raw_len && pstr->offsets_needed case.
68396         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
68397         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
68398         re_string_context_at.
68399
68400         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
68401         now requires it.
68402         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
68403         gl_REGEX now does it for us.
68404         (gl_REGEX): Add test taken from
68405         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
68406
68407         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
68408         Check that large offsets work.  Modernize Autoconf usages.
68409         Prefer "yes" to mean a good thing rather than a bad.
68410         Don't put "#define mkstemp" in config.h, as this might interfere
68411         with standard system headers that "#define mkstemp mkstemp64".
68412
68413         * modules/mkstemp (Depends-on): Add extensions, so that
68414         mkstemp is visible on some platforms.
68415         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
68416         (Include): Change to "mkstemp.h" from <stdlib.h>.
68417         (Files): Add mkstemp.h.
68418
68419         * lib/mkstemp.h: New file, since some standard headers
68420         #define mkstemp.
68421         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
68422         Include "mkstemp.h".
68423         Make the _LIBC code resemble glibc original more,
68424         e.g., use K&R style.
68425         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
68426         (mkstemp): Remove, since mkstemp.h does this for us.
68427         * lib/stdlib--.h: Include mkstemp.h.
68428
68429         Import this patch from libc:
68430
68431         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68432
68433         * lib/tempname.c (__gen_tempname): Change attempts_min
68434         into a macro.  Use preprocessor to decide how to initialize
68435         attempts [Coverity CID 67].
68436
68437 2006-09-20  Bruno Haible  <bruno@clisp.org>
68438
68439         * lib/mkdtemp.c: Import from libc.
68440         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
68441                 * sysdeps/posix/tempname.c (__gen_tempname): Change
68442                 attempts_min into a macro.  Use preprocessor to decide how to
68443                 initialize attempts [Coverity CID 67].
68444         2001-11-27  Paul Eggert  <eggert@twinsun.com>
68445                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
68446                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
68447
68448 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68449
68450         * gnulib-tool (func_exit): New function, to allow to pass the
68451         exit status portably through the trap.  Use everywhere.
68452         (--help, --version): Signal a write error.
68453         (trap): catch SIGPIPE, for write errors.
68454         Exit at the end of the trap, with the correct exit status.
68455
68456 2006-09-19  Karl Berry  <karl@gnu.org>
68457
68458         * doc/gnulib.texi: note about the license texinfo files.
68459
68460 2006-09-19  Eric Blake  <ebb9@byu.net>
68461
68462         * gnulib-tool: Avoid space-tab.
68463
68464 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68465
68466         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
68467         that prevented coreutils 6.1 from building.  Problem reported
68468         by Petter Reinholdtsen.
68469
68470 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
68471
68472         * gnulib-tool (avoidlist): Fix typo that broke options like
68473         --avoid=lock that are used by coreutils bootstrap.
68474
68475 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
68476
68477         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
68478         more systematically.
68479
68480 2006-09-18  Jim Meyering  <jim@meyering.net>
68481
68482         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
68483
68484 2006-09-18  Bruno Haible  <bruno@clisp.org>
68485
68486         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
68487
68488 2006-09-18  Bruno Haible  <bruno@clisp.org>
68489
68490         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
68491         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
68492         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
68493         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
68494         * m4/gettext.m4: Require autoconf >= 2.52.
68495         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
68496         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
68497         of gl_cv_header_inttypes_h.
68498
68499 2006-09-18  Bruno Haible  <bruno@clisp.org>
68500
68501         * lib/javaversion.c: Include configmake.h.
68502
68503 2006-09-18  Bruno Haible  <bruno@clisp.org>
68504
68505         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
68506         avoid that the while loops be executed in a subshell.
68507
68508 2006-09-18  Bruno Haible  <bruno@clisp.org>
68509
68510         * MODULES.html.sh (func_module): Break long lines.
68511         Suggested by Bruce Korb <bkorb@gnu.org>.
68512
68513 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68514
68515         Speed up by a factor of 1.12.
68516         * gnulib-tool (nl): New variable.
68517         (func_import): Rewrite include directive extraction to only read each
68518         directive once.
68519
68520 2006-09-17  Bruno Haible  <bruno@clisp.org>
68521
68522         * modules/javaversion (Makefile.am): Remove DEFS setting.
68523         (Depends-on): Add configmake, for PKGDATADIR definition.
68524
68525 2006-09-17  Bruno Haible  <bruno@clisp.org>
68526
68527         * gnulib-tool (func_create_testdir): Rewrite all files at once.
68528
68529 2006-09-17  Bruno Haible  <bruno@clisp.org>
68530
68531         * gnulib-tool (func_append): New function, stolen from libtool.m4.
68532         (func_modules_transitive_closure, func_modules_add_dummy,
68533         func_modules_to_filelist, func_import, func_create_testdir,
68534         func_create_megatestdir, ...): Use it wherever possible.
68535         Suggested by Ralf Wildenhues.
68536
68537 2006-09-16  Karl Berry  <karl@gnu.org>
68538
68539         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
68540         to avoid sectioning errors.
68541         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
68542         [ifinfo]: blank line after @center-ed titles.
68543         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
68544         Spell FSF address consistently with others.
68545         (These changes approved by rms.)
68546
68547 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68548
68549         Speed up by a factor of 1.61.
68550         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
68551         already checked module names again.
68552
68553 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68554
68555         Speed up by a factor of 1.13.
68556         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
68557         for new_files, and the input to func_add_or_update.
68558
68559 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68560
68561         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
68562         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
68563
68564 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68565
68566         * modules/mkancesdirs (Depends-on): Add fcntl.
68567         * modules/savewd: New file.
68568         * MODULES.html.sh (File system functions): Add savewd.
68569
68570         * modules/configmake (Makefile.am): Add support for the
68571         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
68572
68573 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68574
68575         * m4/savewd.m4: New file.
68576
68577 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
68578
68579         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
68580         (dirchownmod): New arg FD.  All callers changed.
68581         Use FD rather than opening the directory ourself, as opening is
68582         now the caller's responsibility.
68583         * lib/dirchownmod.h: Likewise.
68584         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
68585         hosts that require <sys/types.h> before <sys/stat.h>.  Include
68586         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
68587         (test_dir): Remove.
68588         (mkancesdirs): Return length of prefix of FILE that has already
68589         been made, or -2 if there is a child doing the work.  Redo
68590         algorithm so that it is O(N) rather than O(N**2).  Optimize away
68591         ".", and treat ".." specially since it might stray back into
68592         already-created areas.  Use a subprocess if necessary.  New arg
68593         WD; all users changed.  MAKE_DIR function should now return 1
68594         if it creates a directory that is not readable.  Return -2 if
68595         a child process is spun off.
68596         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
68597         Adjust signature to match code.
68598         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
68599         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
68600         all users changed.
68601         * lib/savewd.c, lib/savewd.h: New files.
68602
68603 2006-09-15  Jim Meyering  <jim@meyering.net>
68604
68605         * modules/rename-dest-slash: New module.
68606         * MODULES.html.sh (posix_compat): Add it here.
68607
68608         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
68609
68610 2006-09-15  Jim Meyering  <jim@meyering.net>
68611
68612         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
68613         file.
68614
68615         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
68616
68617 2006-09-15  Jim Meyering  <jim@meyering.net>
68618
68619         * lib/rename-dest-slash.c (has_trailing_slash): Use
68620         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
68621         (rpl_rename_dest_slash): Perform the cheaper trailing slash
68622         test before testing whether SRC is a directory.
68623         Suggestions from Bruno Haible.
68624
68625         Avoid a warning about an unused variable.
68626         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
68627         into the #ifdef block where it's used.
68628
68629         * lib/rename-dest-slash.c: New file.
68630
68631 2006-09-14  Bruno Haible  <bruno@clisp.org>
68632
68633         * lib/allocsa.c: Include <config.h> unconditionally.
68634         * lib/asnprintf.c: Likewise.
68635         * lib/asprintf.c: Likewise.
68636         * lib/c-strcasecmp.c: Likewise.
68637         * lib/c-strcasestr.c: Likewise.
68638         * lib/c-strncasecmp.c: Likewise.
68639         * lib/c-strstr.c: Likewise.
68640         * lib/classpath.c: Likewise.
68641         * lib/clean-temp.c: Likewise.
68642         * lib/concatpath.c: Likewise.
68643         * lib/copy-file.c: Likewise.
68644         * lib/csharpcomp.c: Likewise.
68645         * lib/csharpexec.c: Likewise.
68646         * lib/execute.c: Likewise.
68647         * lib/fatal-signal.c: Likewise.
68648         * lib/findprog.c: Likewise.
68649         * lib/fwriteerror.c: Likewise.
68650         * lib/gl_array_list.c: Likewise.
68651         * lib/gl_array_oset.c: Likewise.
68652         * lib/gl_avltree_list.c: Likewise.
68653         * lib/gl_avltree_oset.c: Likewise.
68654         * lib/gl_avltreehash_list.c: Likewise.
68655         * lib/gl_carray_list.c: Likewise.
68656         * lib/gl_linked_list.c: Likewise.
68657         * lib/gl_linkedhash_list.c: Likewise.
68658         * lib/gl_list.c: Likewise.
68659         * lib/gl_oset.c: Likewise.
68660         * lib/gl_rbtree_list.c: Likewise.
68661         * lib/gl_rbtree_oset.c: Likewise.
68662         * lib/gl_rbtreehash_list.c: Likewise.
68663         * lib/imaxabs.c: Likewise.
68664         * lib/imaxdiv.c: Likewise.
68665         * lib/javacomp.c: Likewise.
68666         * lib/javaexec.c: Likewise.
68667         * lib/javaversion.c: Likewise.
68668         * lib/linebreak.c: Likewise.
68669         * lib/localcharset.c: Likewise.
68670         * lib/lock.c: Likewise.
68671         * lib/mbchar.c: Likewise.
68672         * lib/mbswidth.c: Likewise.
68673         * lib/mkdtemp.c: Likewise.
68674         * lib/pipe.c: Likewise.
68675         * lib/printf-args.c: Likewise.
68676         * lib/printf-parse.c: Likewise.
68677         * lib/progname.c: Likewise.
68678         * lib/progreloc.c: Likewise.
68679         * lib/readlink.c: Likewise.
68680         * lib/sh-quote.c: Likewise.
68681         * lib/stpcpy.c: Likewise.
68682         * lib/stpncpy.c: Likewise.
68683         * lib/strcasecmp.c: Likewise.
68684         * lib/strcasestr.c: Likewise.
68685         * lib/strcspn.c: Likewise.
68686         * lib/striconv.c: Likewise.
68687         * lib/strncasecmp.c: Likewise.
68688         * lib/strnlen1.c: Likewise.
68689         * lib/strstr.c: Likewise.
68690         * lib/strtok_r.c: Likewise.
68691         * lib/tls.c: Likewise.
68692         * lib/tmpdir.c: Likewise.
68693         * lib/unicodeio.c: Likewise.
68694         * lib/unsetenv.c: Likewise.
68695         * lib/vasnprintf.c: Likewise.
68696         * lib/vasprintf.c: Likewise.
68697         * lib/wait-process.c: Likewise.
68698         * lib/xallocsa.c: Likewise.
68699         * lib/xsetenv.c: Likewise.
68700         * lib/xstriconv.c: Likewise.
68701
68702 2006-09-13  Simon Josefsson  <jas@extundo.com>
68703
68704         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
68705         that internally, suggested by Ralf Wildenhues
68706         <Ralf.Wildenhues@gmx.de>.
68707
68708 2006-09-13  Simon Josefsson  <jas@extundo.com>
68709
68710         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
68711         @LIBOBJS@.
68712         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68713
68714 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
68715
68716         * lib/_fpending.c: Include <config.h> unconditionally, since we no
68717         longer worry about uses that don't define HAVE_CONFIG_H.
68718         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
68719         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
68720         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
68721         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
68722         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
68723         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
68724         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
68725         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
68726         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
68727         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
68728         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
68729         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
68730         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
68731         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
68732         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
68733         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
68734         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
68735         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
68736         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
68737         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
68738         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
68739         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
68740         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
68741         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
68742         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
68743         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
68744         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
68745         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
68746         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
68747         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
68748         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
68749         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
68750         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
68751         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
68752         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
68753         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
68754         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
68755         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
68756         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
68757         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
68758         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
68759         Likewise.
68760
68761 2006-09-13  Eric Blake  <ebb9@byu.net>
68762
68763         * lib/getopt.c: Fix typo in last commit.
68764
68765 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68766
68767         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
68768         dgettext.
68769
68770 2006-09-12  Jim Meyering  <jim@meyering.net>
68771
68772         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
68773         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
68774         Reported by Nelson H. F. Beebe.
68775
68776 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
68777
68778         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
68779         program_invocation_name and program_invocation_short_name are
68780         initialized.
68781         * lib/argp-namefrob.h: Move declarations of program_invocation_name
68782         and program_invocation_short_name to argp.h, so they are visible
68783         to user programs.
68784         * lib/argp.h: Likewise
68785
68786 2006-09-10  Bruno Haible  <bruno@clisp.org>
68787
68788         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
68789         m4/inttypes_h.m4, m4/uintmax_t.m4.
68790
68791 2006-09-10  Bruno Haible  <bruno@clisp.org>
68792
68793         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
68794         gl_AC_TYPE_UINTMAX_T.
68795
68796 2006-09-10  Bruno Haible  <bruno@clisp.org>
68797
68798         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
68799
68800 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
68801
68802         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
68803         convention.  Text proposed by Bruno Haible.
68804         (struct argp_option): Document the use of N_() wrappers.
68805
68806         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
68807         '\v', and translate the two parts separately, instead of feeding
68808         the whole string to gettext.  This allows to exclude
68809         '\v' from the strings visible to the translator by writing doc
68810         strings as N_("..") "\v" N_("..").
68811
68812 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
68813
68814         * config/srclist.txt: Undo latest change; the bug was fixed.
68815
68816 2006-09-09  Bruno Haible  <bruno@clisp.org>
68817
68818         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
68819         assignments if building a library without libtool.
68820         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
68821         in func_emit_lib_Makefile_am.
68822         (func_import): When building a static library libfoo.a, arrange to
68823         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
68824         (func_create_testdir): Likewise.
68825         * modules/gc (configure.ac, Makefile.am): If building statically,
68826         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
68827         * modules/iconvme (configure.ac, Makefile.am): Likewise.
68828         * modules/striconv (configure.ac, Makefile.am): Likewise.
68829         Based on a suggestion by Ralf Wildenhues.
68830
68831 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68832
68833         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
68834         Check for unistd.h too, since Autoconf doesn't assume POSIX.
68835         Also:
68836
68837         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68838         Add year_2050_test to catch glibc bug 2821
68839         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68840
68841         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
68842         Prefer #ifdef to #if.
68843
68844         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
68845         Return from 'main' instead of calling 'exit'.
68846
68847 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68848
68849         * lib/mktime.c (guess_time_tm): Fix bug where mktime
68850         returned the maximum time_t value rather than (time_t) -1.
68851         Problem originally reported by William Bardwell
68852         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
68853
68854         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68855         Moved to here ...
68856         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
68857         ... from here.
68858
68859 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
68860
68861         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
68862         2821 is fixed.
68863
68864 2006-09-08  Jim Meyering  <jim@meyering.net>
68865
68866         Don't make generated files read-only.  That would bother too many
68867         people.  However, do retain the ability to work when targets are
68868         read-only: remove the destination and temporary files before writing
68869         them (when generated via sed or echo), or by using the -f option for
68870         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
68871         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68872         * modules/byteswap, modules/configmake, modules/fcntl:
68873         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68874         * modules/localcharset, modules/netinet_in, modules/poll:
68875         * modules/stdbool, modules/stdint, modules/sys_select:
68876         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68877
68878 2006-09-08  Jim Meyering  <jim@meyering.net>
68879
68880         Avoid new build failure on FreeBSD 6.0.
68881         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
68882         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
68883         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
68884
68885 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68886
68887         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
68888
68889 2006-09-07  Jim Meyering  <jim@meyering.net>
68890
68891         Fix global typo in last change: use chmod u-w, not chmod u-x.
68892         Spotted by Paul Eggert and Bruce Korb.
68893         * modules/alloca-opt, modules/argz, modules/arpa_inet:
68894         * modules/byteswap, modules/configmake, modules/fcntl:
68895         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
68896         * modules/localcharset, modules/netinet_in, modules/poll:
68897         * modules/stdbool, modules/stdint, modules/sys_select:
68898         * modules/sys_socket, modules/sys_stat, modules/sysexits:
68899
68900 2006-09-06  Jim Meyering  <jim@meyering.net>
68901
68902         Make generated files be read-only.
68903         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
68904         Ensure that each generated file is now read-only.
68905         * modules/argz: Likewise.
68906         * modules/arpa_inet: Likewise.
68907         * modules/byteswap: Likewise.
68908         * modules/configmake: Likewise.
68909         * modules/fcntl: Likewise.
68910         * modules/fnmatch: Likewise.
68911         * modules/getopt: Likewise.
68912         * modules/glob: Likewise.
68913         * modules/inttypes: Likewise.
68914         * modules/netinet_in: Likewise.
68915         * modules/poll: Likewise.
68916         * modules/stdbool: Likewise.
68917         * modules/stdint: Likewise.
68918         * modules/sys_select: Likewise.
68919         * modules/sys_socket: Likewise.
68920         * modules/sys_stat: Likewise.
68921         * modules/sysexits: Likewise.
68922         * modules/localcharset: Same as above, but continue using temporary
68923         file named "t-$@" (why different?) rather than the "$@-t" used
68924         everywhere else.
68925
68926         * modules/sysexits (Makefile.am): Replace literal occurrences
68927         of "sysexit.h" more readable, and more consistent, "$@".
68928
68929 2006-09-06  Bruno Haible  <bruno@clisp.org>
68930
68931         * modules/striconv: New file.
68932         * modules/xstriconv: New file.
68933         * MODULES.html.sh (Internationalization functions): Add striconv,
68934         xstriconv.
68935
68936 2006-09-06  Bruno Haible  <bruno@clisp.org>
68937
68938         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
68939         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
68940         not using libtool correctly.
68941
68942 2006-09-06  Bruno Haible  <bruno@clisp.org>
68943
68944         * lib/striconv.h: New file.
68945         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
68946         iconvstring.c.
68947         * lib/xstriconv.h: New file.
68948         * lib/xstriconv.c: New file.
68949
68950 2006-09-06  Bruno Haible  <bruno@clisp.org>
68951
68952         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68953         lib_..._LDFLAGS.
68954
68955 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68956
68957         * lib/argz_.h: Sync from Libtool.
68958
68959         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
68960                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
68961
68962         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
68963
68964 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68965
68966         * modules/trim: New file.
68967
68968 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
68969
68970         * lib/trim.h: New file.
68971         * lib/trim.c: New file.
68972
68973 2006-09-05  Bruno Haible  <bruno@clisp.org>
68974
68975         * MODULES.html.sh (String handling): Add trim.
68976
68977 2006-09-04  Karl Berry  <karl@gnu.org>
68978
68979         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
68980         until next release.
68981
68982 2006-09-03  Bruno Haible  <bruno@clisp.org>
68983
68984         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
68985         correctly.
68986
68987 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
68988
68989         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
68990         not gl_GETLOADAVG.  Omit unneeded semicolons.
68991         Problems reported by Ralf Wildenhues in
68992         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
68993         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
68994         at the end, which is the usual gnulib style.
68995
68996         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
68997         of doing all the work ourselves.
68998         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
68999         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
69000
69001 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69002
69003         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
69004         Problem reported by Ralf Wildenhues in
69005         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
69006
69007         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
69008         HAVE_STRUCT_STATFS_F_FSTYPENAME.
69009
69010 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69011
69012         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
69013         yesterday's patch by changing test -n to test -z.
69014
69015 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69016
69017         * modules/getloadavg (Files): Add m4/getloadavg.m4.
69018         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
69019         the former is now obsolescent.
69020
69021         * modules/chdir-long (Depends-on): Add fcntl.
69022
69023 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69024
69025         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
69026         obsolescent, and programs should use gnulib instead.
69027         * m4/getloadavg.m4: New file, with contents taken from Autoconf
69028         but with prefixes changed.
69029
69030 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69031
69032         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
69033         or stdbool.h, because they might not exist while configuring.
69034
69035         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
69036         Don't include unistd.h or limits.h; not needed, since chdir-long.h
69037         does that for us.
69038         (O_DIRECTORY): Remove.
69039
69040 2006-08-31  Eric Blake  <ebb9@byu.net>
69041
69042         * gnulib-tool: Don't let emacs change spaces to TAB.
69043
69044 2006-08-31  Bruno Haible  <bruno@clisp.org>
69045
69046         * gnulib-tool: When calling func_import more than once, do it in a
69047         subshell.
69048         Reported by Eric Blake <ebb9@byu.net>.
69049
69050 2006-08-31  Bruno Haible  <bruno@clisp.org>
69051
69052         * gnulib-tool (nl): Remove variable.
69053         (sed_transform_lib_file): Use more robust test for config-h module.
69054         (func_import): Fix typo in 2006-08-25 patch.
69055
69056 2006-08-31  Bruno Haible  <bruno@clisp.org>
69057
69058         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
69059         specified, augment Makefile.am variables instead of assigning them.
69060
69061 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69062
69063         Work around a bug in both the Linux and SunOS 64-bit kernels:
69064         nanosleep mishandles sleeps for longer than 2**31 seconds.
69065         Problem reported by Frank v Waveren in
69066         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
69067         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
69068         Check for nanosleep bug.
69069         (LIB_NANOSLEEP): Append clock_gettime library if needed.
69070
69071 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69072
69073         Work around a bug in both the Linux and SunOS 64-bit kernels:
69074         nanosleep mishandles sleeps for longer than 2**31 seconds.
69075         Problem reported by Frank v Waveren in
69076         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
69077         * lib/nanosleep.c (BILLION): New constant.
69078         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
69079         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
69080         implementation.
69081
69082 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69083
69084         * modules/nanosleep (Depends-on): Add gettime.
69085
69086 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69087         and Simon Josefsson  <jas@extundo.com>
69088         and Oskar Liljeblad  <oskar@osk.mine.nu>
69089
69090         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
69091         * gnulib-tool (func_import): New license type 'unmodifiable license
69092         text'.
69093         * modules/fdl: Use it.  Longer description.
69094         * module/gpl, module/lgpl: New files.
69095
69096 2006-08-30  Jim Meyering  <jim@meyering.net>
69097
69098         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
69099         shadowing the parameter.
69100
69101 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69102
69103         Sync from Libtool:
69104
69105         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69106
69107         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
69108         sharing with gnulib.  Report by Eric Blake.
69109
69110 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69111
69112         * modules/isapipe: New file.
69113         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
69114
69115 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69116
69117         * modules/configmake (Makefile.am): Add a comment, and omit
69118         the CONFIGMAKE_ prefix from generated macro names.  Suggested
69119         by Bruno Haible.
69120
69121 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69122
69123         * m4/isapipe.m4: New file.
69124
69125 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69126
69127         * lib/isapipe.c, lib/isapipe.h: New files.
69128
69129 2006-08-29  Jim Meyering  <jim@meyering.net>
69130
69131         * modules/configmake (Makefile.am): Make configmake.h depend on
69132         Makefile.  Otherwise, a stale configmake.h could hang around.
69133
69134 2006-08-29  Eric Blake  <ebb9@byu.net>
69135
69136         * lib/error.c (error_at_line, print_errno_message): Match libc, after
69137         resolution of upstream bug 3044.
69138
69139 2006-08-29  Bruno Haible  <bruno@clisp.org>
69140
69141         * modules/localcharset (Depends-on): Add configmake.
69142         (Makefile.am): Remove setting of LIBDIR through DEFS.
69143
69144 2006-08-29  Bruno Haible  <bruno@clisp.org>
69145
69146         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
69147         defined.
69148
69149 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69150
69151         * modules/fcntl: New file.
69152         * modules/chdir-safer (Depends-on): Add fcntl.
69153         * modules/fts: Likewise.
69154         * modules/mkdir-p: Likewise.
69155
69156         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
69157         This undoes the most recent change, since we're now addressing the
69158         problem in a different way.
69159
69160         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
69161         into output, since the output might be called Makefile.am even
69162         if $makefile_name is something different.
69163         (func_import): Use $makefile_am rather than
69164         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
69165         empty.
69166
69167         * modules/inttypes (Files): Add m4/inttypes-h.m4.
69168
69169 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69170
69171         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
69172         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
69173         recent change to stdint.m4, since we're now addressing the problem in a
69174         different way.
69175
69176 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69177
69178         * m4/fcntl_h.m4: New file.
69179
69180 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
69181
69182         * lib/fcntl_.h: New file.
69183         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
69184         the fcntl module.
69185         * lib/dirchownmod.c: Likewise.
69186         * lib/fts.c: Likewise.
69187
69188         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
69189         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
69190         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
69191         just before including <inttypes.h>, to avoid circular inclusion.
69192
69193 2006-08-28  Jim Meyering  <jim@meyering.net>
69194
69195         * doc/visibility.texi: Actually read and correct the grammar of the
69196         sentence affected by yesterday's change.
69197
69198 2006-08-28  Eric Blake  <ebb9@byu.net>
69199
69200         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
69201         needs wrapper.
69202
69203 2006-08-28  Eric Blake  <ebb9@byu.net>
69204
69205         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
69206
69207 2006-08-28  Eric Blake  <ebb9@byu.net>
69208
69209         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
69210
69211 2006-08-28  Bruno Haible  <bruno@clisp.org>
69212
69213         * modules/c-strstr: New file, from GNU gettext.
69214         * MODULES.html.sh (String handling): Add c-strstr.
69215
69216 2006-08-28  Bruno Haible  <bruno@clisp.org>
69217
69218         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
69219         macros.
69220         Reported by Eric Blake.
69221
69222 2006-08-28  Bruno Haible  <bruno@clisp.org>
69223
69224         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
69225         (VASNPRINTF): Return a string of length > INT_MAX without failing.
69226         * lib/vasprintf.c: Include errno.h, limits.h.
69227         (EOVERFLOW): New fallback definition.
69228         (vasprintf): Test here whether the string length is > INT_MAX.
69229         * lib/vsnprintf.c: Include errno.h, limits.h.
69230         (EOVERFLOW): New fallback definition.
69231         (vsnprintf): Fix bug when generated string was too long for the buffer.
69232         Test here whether the string length is > INT_MAX.
69233
69234 2006-08-28  Bruno Haible  <bruno@clisp.org>
69235
69236         * lib/inttypes_.h (SCNX*): Remove definitions.
69237         Reported by Eric Blake.
69238
69239 2006-08-28  Bruno Haible  <bruno@clisp.org>
69240
69241         * lib/c-strstr.h: New file, from GNU gettext.
69242         * lib/c-strstr.c: New file, from GNU gettext.
69243
69244 2006-08-28  Bruno Haible  <bruno@clisp.org>
69245
69246         * gnulib-tool: Reorder some statements.
69247
69248 2006-08-28  Bruno Haible  <bruno@clisp.org>
69249
69250         * gnulib-tool: New option --makefile-name.
69251         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
69252         $makefile_name.
69253         (func_import): Write $makefile_name to the cache file, and read it from
69254         there unless explicitly specified. Use $makefile_name as file name
69255         instead of Makefile.am. Adjust the recommendations accordingly.
69256
69257 2006-08-28  Bruno Haible  <bruno@clisp.org>
69258
69259         * gnulib-tool (func_verify_module): Check against misapplying patch.
69260
69261 2006-08-28  Bruno Haible  <bruno@clisp.org>
69262
69263         * gnulib-tool (func_relativize, func_relconcat): New functions.
69264         Give an error if --local-dir is given with --update.
69265         Remove trailing slashes from $local_gnulib_dir.
69266         (func_import): Store the relativized $local_gnulib_dir in
69267         gnulib-cache.m4, and read it from there if not specified explicitly.
69268
69269 2006-08-28  Bruno Haible  <bruno@clisp.org>
69270
69271         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
69272         is the current directory. Respect also $local_gnulib_dir.
69273
69274 2006-08-28  Bruno Haible  <bruno@clisp.org>
69275             Simon Josefsson  <jas@extundo.com>
69276
69277         BeOS portability.
69278         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
69279
69280 2006-08-27  Jim Meyering  <jim@meyering.net>
69281
69282         * doc/visibility.texi: Remove duplicate word: "pointer".
69283
69284 2006-08-26  Bruno Haible  <bruno@clisp.org>
69285
69286         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
69287         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
69288         (Makefile.am): Create inttypes.h from inttypes_.h.
69289         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
69290
69291         * modules/imaxabs: New file.
69292
69293         * modules/imaxdiv: New file.
69294
69295 2006-08-26  Bruno Haible  <bruno@clisp.org>
69296
69297         * m4/inttypes.m4: New file.
69298         * m4/_inttypes_h.m4: Remove file.
69299         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
69300         PRI_MACROS_BROKEN.
69301         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
69302
69303         * m4/imaxabs.m4: New file.
69304
69305         * m4/imaxdiv.m4: New file.
69306
69307 2006-08-26  Bruno Haible  <bruno@clisp.org>
69308
69309         * lib/inttypes_.h: New file.
69310         * lib/inttypes.h: Remove file.
69311         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
69312
69313         * lib/imaxabs.c: New file.
69314
69315         * lib/imaxdiv.c: New file.
69316
69317 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69318
69319         New config-h module, so that "make" output needn't be cluttered
69320         by -DHAVE_CONFIG_H.
69321         * MODULES.html.sh (Support for building libraries and executables):
69322         Add config-h.
69323         * modules/config-h: New file.
69324         * gnulib-tool (nl, sed_transform_lib_file): New vars.
69325         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
69326         the config-h module is used.
69327
69328         New configmake module, so that "make" output needn't be cluttered
69329         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
69330         * MODULES.html.sh (Support for building libraries and executables):
69331         Add configmake.
69332         * modules/configmake: New file.
69333
69334 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
69335
69336         * m4/config-h.m4: New file.
69337
69338 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69339
69340         * config/srclist.txt: Add elisp-comp.
69341
69342 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
69343
69344         * MODULES.html.sh (Support for building libraries and executables):
69345         Add elisp-comp.
69346         * build-aux/elisp-comp: New file.
69347         * modules/elisp-comp: New file.
69348
69349 2006-08-24  Bruno Haible  <bruno@clisp.org>
69350
69351         * gnulib-tool (func_create_testdir): Use non-default values of
69352         sourcebase and m4base.
69353
69354 2006-08-24  Bruno Haible  <bruno@clisp.org>
69355
69356         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
69357         HTML structure.
69358
69359 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
69360
69361         * modules/openat (Depends-on): Add lchown.
69362
69363 2006-08-23  Bruno Haible  <bruno@clisp.org>
69364
69365         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
69366         of gl_LOCK_EARLY instead of gl_LOCK.
69367
69368 2006-08-23  Bruno Haible  <bruno@clisp.org>
69369
69370         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
69371         on OSF/1 to no.
69372         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
69373
69374 2006-08-23  Bruno Haible  <bruno@clisp.org>
69375
69376         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
69377         as unusable.
69378
69379         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
69380         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
69381         (gl_LOCK): New macro.
69382
69383 2006-08-22  Simon Josefsson  <jas@extundo.com>
69384
69385         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
69386         to md5 module.
69387
69388 2006-08-22  Simon Josefsson  <jas@extundo.com>
69389
69390         * MODULES.html.sh: Add "Support for maintaining and release
69391         projects".
69392
69393         * build-aux/gnupload: New file, from coreutils.
69394
69395 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69396
69397         Avoid the need for AC_LIBSOURCES in m4 macros.
69398         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
69399         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
69400         * modules/check-version (EXTRA_DIST): Add check-version.h.
69401         * modules/crc (EXTRA_DIST): Add crc.h.
69402         * modules/des (EXTRA_DIST): Add des.h.
69403         * modules/gc (EXTRA_DIST): Add gc.h.
69404         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
69405         * modules/getline (EXTRA_DIST): Add getline.h.
69406         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
69407         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
69408         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
69409         * modules/md2 (EXTRA_DIST): Add md2.h.
69410         * modules/md4 (EXTRA_DIST): Add md4.h.
69411         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
69412         * modules/read-file (EXTRA_DIST): Add read-file.h.
69413         * modules/readline (EXTRA_DIST): Add readline.h.
69414         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
69415         rijndael-api-fst.h.
69416
69417 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69418
69419         * m4/rijndael.m4 (gl_ARCFOUR):
69420         * m4/arctwo.m4 (gl_ARCTWO):
69421         * m4/check-version.m4 (gl_CHECK_VERSION):
69422         * m4/crc.m4 (gl_CRC):
69423         * m4/des.m4 (gl_DES):
69424         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
69425         * m4/gc.m4 (gl_GC):
69426         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
69427         * m4/getline.m4 (gl_FUNC_GETLINE):
69428         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
69429         * m4/hmac-md5.m4 (gl_HMAC_MD5):
69430         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
69431         * m4/md2.m4 (gl_MD2):
69432         * m4/md4.m4 (gl_MD4):
69433         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
69434         * m4/read-file.m4 (gl_FUNC_READ_FILE):
69435         * m4/readline.m4 (gl_FUNC_READLINE):
69436         * m4/rijndael.m4 (gl_RIJNDAEL):
69437         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69438         to get the necessary .h files and whatnot.
69439
69440 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
69441
69442         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
69443         gnulib rather than the other way around.
69444         * config/srclistvars.sh (COREUTILS): Remove.
69445
69446 2006-08-22  Jim Meyering  <jim@meyering.net>
69447
69448         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
69449
69450         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
69451
69452 2006-08-22  Eric Blake  <ebb9@byu.net>
69453
69454         * modules/regexprops-generic: New file.
69455         * MODULES.html.sh (Support for building documentation): List it.
69456
69457 2006-08-22  Eric Blake  <ebb9@byu.net>
69458
69459         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
69460         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
69461         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
69462         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
69463
69464 2006-08-22  Bruno Haible  <bruno@clisp.org>
69465
69466         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
69467         and lib_LTLIBRARIES like the other lib_* variables.
69468
69469 2006-08-22  Bruno Haible  <bruno@clisp.org>
69470
69471         * build-aux/x-to-1.in: New file, from GNU gettext.
69472
69473 2006-08-22  Bruno Haible  <bruno@clisp.org>
69474
69475         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
69476         <utmpx.h> exists.
69477
69478 2006-08-22  Bruno Haible  <bruno@clisp.org>
69479
69480         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
69481         <utmpx.h> exists.
69482
69483 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69484
69485         BeOS portability.
69486         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
69487         exist.
69488         Problem reported by Bruno Haible.
69489
69490 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69491
69492         Avoid the need for AC_LIBSOURCES in m4 macros.
69493         * modules/acl (EXTRA_DIST): Add acl.h.
69494         * modules/argmatch (Files): Add m4/argmatch.m4.
69495         (configure.ac): Add gl_ARGMATCH.
69496         (EXTRA_DIST): Renamed from lib_SOURCES, for
69497         consistency with the other modules.  Remove argmatch.c.
69498         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
69499         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
69500         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
69501         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
69502         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
69503         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
69504         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
69505         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
69506         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
69507         * modules/closeout (EXTRA_DIST): Add closeout.h.
69508         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
69509         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
69510         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
69511         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
69512         dirname.h; remove basename.c and stripslash.c.
69513         * modules/exclude (EXTRA_DIST): Add exclude.h.
69514         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
69515         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
69516         * modules/file-type (EXTRA_DIST): Add file-type.h.
69517         * modules/filemode (EXTRA_DIST): Add filemode.h.
69518         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
69519         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69520         * modules/fpending (EXTRA_DIST): Add __fpending.h.
69521         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
69522         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
69523         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
69524         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
69525         * modules/getdate (EXTRA_DIST): Add getdate.c.
69526         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
69527         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
69528         * modules/getpass (EXTRA_DIST): Add getpass.h.
69529         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
69530         * modules/group-member (EXTRA_DIST): Add group-member.h.
69531         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
69532         * modules/hash (EXTRA_DIST): Add hash.h.
69533         * modules/human (EXTRA_DIST): Add human.h.
69534         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
69535         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
69536         * modules/lchown (EXTRA_DIST): Add lchown.h.
69537         * modules/long-options (EXTRA_DIST): Add long-options.h.
69538         * modules/lstat (EXTRA_DIST): Add lstat.h.
69539         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
69540         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
69541         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
69542         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
69543         * modules/memxor (EXTRA_DIST): Add memxor.h.
69544         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
69545         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
69546         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
69547         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
69548         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
69549         * modules/physmem (EXTRA_DIST): Add physmem.h.
69550         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
69551         * modules/posixver (EXTRA_DIST): Add posixver.h.
69552         * modules/quote (EXTRA_DIST): Add quote.h.
69553         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
69554         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
69555         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
69556         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
69557         regex_internal.h regexec.c.
69558         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
69559         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
69560         * modules/same (EXTRA_DIST): Add same.h.
69561         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
69562         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
69563         * modules/savedir (EXTRA_DIST): Add savedir.h.
69564         * modules/sha1 (EXTRA_DIST): Add sha1.h.
69565         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
69566         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
69567         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
69568         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
69569         * modules/strdup (EXTRA_DIST): Add strdup.h.
69570         * modules/strftime (EXTRA_DIST): Add strftime.h.
69571         * modules/strndup (EXTRA_DIST): Add strndup.h.
69572         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
69573         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
69574         * modules/time_r (EXTRA_DIST): Add time_r.h.
69575         * modules/timespec (EXTRA_DIST): Add timespec.h.
69576         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
69577         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
69578         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
69579         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
69580         * modules/userspec (EXTRA_DIST): Add userspec.h.
69581         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
69582         * modules/utimens (EXTRA_DIST): Add utimens.h.
69583         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
69584         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
69585         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
69586         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
69587         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
69588         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
69589         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
69590         * modules/yesno (EXTRA_DIST): Add yesno.h.
69591
69592 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
69593
69594         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
69595
69596         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
69597         * m4/dev-ino.m4, same-inode.m4: Remove.
69598
69599         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
69600         * m4/acl.m4 (AC_FUNC_ACL):
69601         * m4/backupfile.m4 (gl_BACKUPFILE):
69602         * m4/c-strtod.m4 (gl_C99_STRTOLD):
69603         * m4/canon-host.m4 (gl_CANON_HOST):
69604         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
69605         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
69606         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
69607         * m4/cloexec.m4 (gl_CLOEXEC):
69608         * m4/close-stream.m4 (gl_CLOSE_STREAM):
69609         * m4/closeout.m4 (gl_CLOSEOUT):
69610         * m4/dirfd.m4 (gl_FUNC_DIRFD):
69611         * m4/dirname.m4 (gl_DIRNAME):
69612         * m4/exclude.m4 (gl_EXCLUDE):
69613         * m4/exitfail.m4 (gl_EXITFAIL):
69614         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
69615         * m4/file-type.m4 (gl_FILE_TYPE):
69616         * m4/filemode.m4 (gl_FILEMODE):
69617         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
69618         * m4/fpending.m4 (gl_FUNC_FPENDING):
69619         * m4/fprintftime.m4 (gl_FPRINTFTIME):
69620         * m4/fts.m4 (gl_FUNC_FTS):
69621         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
69622         * m4/getdate.m4 (gl_GETDATE):
69623         * m4/gethrxtime.m4 (gl_GETHRXTIME):
69624         * m4/getpagesize.m4 (gl_GETPAGESIZE):
69625         * m4/getpass.m4 (gl_FUNC_GETPASS):
69626         * m4/gettime.m4 (gl_GETTIME):
69627         * m4/getugroups.m4 (gl_GETUGROUPS):
69628         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
69629         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
69630         * m4/hard-locale.m4 (gl_HARD_LOCALE):
69631         * m4/hash.m4 (gl_HASH):
69632         * m4/idcache.m4 (gl_IDCACHE):
69633         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
69634         * m4/lchown.m4 (gl_FUNC_LCHOWN):
69635         * m4/long-options.m4 (gl_LONG_OPTIONS):
69636         * m4/lstat.m4 (gl_FUNC_LSTAT):
69637         * m4/md5.m4 (gl_MD5):
69638         * m4/memcasecmp.m4 (gl_MEMCASECMP):
69639         * m4/memcoll.m4 (gl_MEMCOLL):
69640         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
69641         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
69642         * m4/memxor.m4 (gl_MEMXOR):
69643         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
69644         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
69645         * m4/modechange.m4 (gl_MODECHANGE):
69646         * m4/mountlist.m4 (gl_MOUNTLIST):
69647         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69648         * m4/openat.m4 (gl_FUNC_OPENAT):
69649         * m4/pathmax.m4 (gl_PATHMAX):
69650         * m4/physmem.m4 (gl_PHYSMEM):
69651         * m4/posixtm.m4 (gl_POSIXTM):
69652         * m4/posixver.m4 (gl_POSIXVER):
69653         * m4/quote.m4 (gl_QUOTE):
69654         * m4/quotearg.m4 (gl_QUOTEARG):
69655         * m4/readtokens.m4 (gl_READTOKENS):
69656         * m4/readutmp.m4 (gl_READUTMP):
69657         * m4/regex.m4 (gl_REGEX):
69658         * m4/safe-read.m4 (gl_SAFE_READ):
69659         * m4/safe-write.m4 (gl_SAFE_WRITE):
69660         * m4/same.m4 (gl_SAME):
69661         * m4/save-cwd.m4 (gl_SAVE_CWD):
69662         * m4/savedir.m4 (gl_SAVEDIR):
69663         * m4/settime.m4 (gl_SETTIME):
69664         * m4/sha1.m4 (gl_SHA1):
69665         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
69666         * m4/stat-macros.m4 (gl_STAT_MACROS):
69667         * m4/stat-time.m4 (gl_STAT_TIME):
69668         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
69669         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
69670         * m4/strdup.m4 (gl_FUNC_STRDUP):
69671         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
69672         * m4/strndup.m4 (gl_FUNC_STRNDUP):
69673         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
69674         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
69675         * m4/time_r.m4 (gl_TIME_R):
69676         * m4/timespec.m4 (gl_TIMESPEC):
69677         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
69678         * m4/unlinkdir.m4 (gl_UNLINKDIR):
69679         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
69680         * m4/userspec.m4 (gl_USERSPEC):
69681         * m4/utimecmp.m4 (gl_UTIMECMP):
69682         * m4/utimens.m4 (gl_UTIMENS):
69683         * m4/xalloc.m4 (gl_XALLOC):
69684         * m4/xgetcwd.m4 (gl_XGETCWD):
69685         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
69686         * m4/xreadlink.m4 (gl_XREADLINK):
69687         * m4/xstrtod.m4 (gl_XSTRTOD):
69688         * m4/yesno.m4 (gl_YESNO):
69689         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
69690         to get the necessary .h files and whatnot.
69691
69692 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
69693             Bruno Haible  <bruno@clisp.org>
69694
69695         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
69696         /bin/sh understanding of '!' conditional negation.
69697
69698 2006-08-21  Jim Meyering  <jim@meyering.net>
69699
69700         * modules/openat (Depends-on): Really alphabetize.
69701
69702         * modules/acl (Depends-on): Add error and quote.
69703
69704         * check-module (find_included_lib_files): Add at-func.c to the
69705         ok-to-include-more-than-once white list.
69706
69707         * modules/openat (Depends-on): Add lstat.  Alphabetize.
69708
69709 2006-08-21  Bruno Haible  <bruno@clisp.org>
69710
69711         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69712         Emit a pkgdata_DATA variable only if some snippets add contents to it.
69713         Reported by Martin Lambers <marlam@marlam.de>.
69714
69715 2006-08-21  Bruno Haible  <bruno@clisp.org>
69716
69717         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
69718         specify an installation location, don't emit a noinst_LIBRARIES or
69719         noinst_LTLIBRARIES assignment.
69720
69721 2006-08-21  Bruno Haible  <bruno@clisp.org>
69722
69723         BeOS portability.
69724         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
69725         BeOS has mbrtowc() but no <wctype.h>.
69726
69727 2006-08-21  Bruno Haible  <bruno@clisp.org>
69728
69729         BeOS portability.
69730         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
69731         exist.
69732
69733 2006-08-21  Bruno Haible  <bruno@clisp.org>
69734
69735         BeOS portability.
69736         * lib/mbchar.h: Include <wctype.h> only if it exists.
69737
69738 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69739
69740         Remove files that are no longer needed by their respective modules.
69741         * m4/obstack.m4: Remove.
69742         * m4/strerror_r.m4: Remove.
69743         * m4/uint32_t.m4: Remove.
69744         * m4/uintptr_t.m4: Remove.
69745         * m4/ullong_max.m4: Remove.
69746         * m4/xstrtoimax.m4: Remove.
69747         * m4/xstrtoumax.m4: Remove.
69748
69749         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
69750         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
69751         dependencies now capture this.
69752
69753         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
69754         Do not use AC_LIBSOURCES, since gnulib modules now do this.
69755         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
69756         * m4/human.m4 (gl_HUMAN): Likewise.
69757         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
69758         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
69759
69760         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
69761
69762         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
69763         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
69764         stdint.
69765         * m4/human.m4 (gl_HUMAN): Likewise.
69766         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
69767         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
69768         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69769         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69770         * m4/xstrtol (gl_XSTRTOL): Likewise.
69771
69772         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
69773         AC_TYPE_LONG_LONG_INT.
69774         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
69775         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
69776         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
69777         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
69778
69779         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
69780         on stdbool.
69781
69782         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
69783         (gl_PREREQ_XSTRTOUL): Remove.
69784
69785         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
69786
69787         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
69788         mode.
69789
69790 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69791
69792         Add and change modules to make it easier for coreutils to use
69793         gnulib-tool.
69794         * modules/backupfile (Files): Remove m4/d-ino.m4.
69795         (Depends-on): Add d-ino.
69796         * modules/cycle-check (Depends-on): Add stdint.
69797         (lib_SOURCES): Add cycle-check.h.
69798         * modules/d-ino: New module.
69799         * modules/d-type: New module.
69800         * modules/error (Files): Remove m4/strerror_r.m4.
69801         * modules/filemode (Files): Add m4/st_dm_mode.m4.
69802         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69803         m4/inttypes_h.m4, m4/uintmax_t.m4.
69804         (Depends-on): Add stdint.
69805         (lib_SOURCES): Add fsusage.h.
69806         * modules/getcwd (Files): Remove d-ino.m4.
69807         (Depends-on): Add d-ino.
69808         * modules/getndelim2 (Depends-on): Add stdint.
69809         * modules/glob (Files): Remove m4/d-type.m4.
69810         (Depends-on): Add d-type.
69811         * modules/host-os: New module.
69812         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
69813         m4/inttypes_h.m4, m4/uintmax_t.m4.
69814         * Depends-on: Add stdint.
69815         (lib_SOURCES): Add human.h.
69816         * modules/inttostr (Files): Remove m4/intmax_t.m4,
69817         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
69818         m4/uintmax_t.m4, m4/ulonglong.m4.
69819         (Depends-on): Add stdint.
69820         (EXTRA_DIST): Add inttostr.h.
69821         * modules/lchmod: New module.
69822         * modules/link-follow: New module.
69823         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
69824         (Depends-on): Add lchmod.
69825         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
69826         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
69827         (Depends-on): Add stdint.
69828         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
69829         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
69830         (Depends-on): Add stdint.
69831         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
69832         * modules/perl: New module.
69833         * modules/regex (Depends-on): Add stdint.
69834         * modules/rmdir-errno: New module.
69835         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69836         m4/intmax_t.m4.
69837         (Depends-on): Add stdint.
69838         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
69839         m4/uintmax_t.m4.
69840         (Depends-on): Add stdint.
69841         * modules/unlink-busy: New module.
69842         * modules/utimecmp (Depends-on): Add stdint.
69843         * modules/uptime: New module.
69844         * modules/winsz-ioctl: New module.
69845         * modules/winsz-termios: New module.
69846         * modules/xnanosleep (Depends-on): Add nanosleep.
69847         * modules/ullong_max: Remove.
69848         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
69849         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
69850         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
69851         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
69852         (Depends-on): Add inttypes.
69853         (lib_SOURCES): Add xstrtol.h.
69854         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
69855         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
69856         * MODULES.html.sh: Move 'assert' into the assert section.
69857         Move 'dummy' into the linking section.
69858         Remove ullong_max.
69859         Add section for compatibility checks for POSIX:2001 functions,
69860         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
69861         winsz-ioctl, and winsz-termios into it.
69862         Add lchmod.
69863         Add top-level Misc section and put host-os, perl, and uptime
69864         into it.
69865
69866 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
69867
69868         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
69869         now assume the stdint module.  Do not include inttypes.h.
69870         * lib/fsusage.h: Likewise.
69871         * lib/getndelim2.c: Likewise.
69872         * lib/human.h: Likewise.
69873         * lib/inttostr.h: Likewise.
69874         * lib/obstack.c: Likewise.
69875         * lib/regex_internal.h: Likewise.
69876         * lib/tempname.c: Likewise.
69877         * lib/utimecmp.c: Likewise.
69878         * lib/xstrtol.h: Likewise.
69879
69880         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
69881
69882         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
69883         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
69884         * lib/xtime.h: Likewise.
69885
69886 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69887
69888         * modules/openat (Files): Add lib/fchmodat.c.
69889         Fixes problem reported by Jay Youngman.
69890
69891 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
69892
69893         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
69894         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
69895
69896 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
69897             Bruno Haible  <bruno@clisp.org>
69898
69899         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
69900         and is a script that invokes bison. Tighten the code. Add comments.
69901
69902 2006-08-18  Jim Meyering  <jim@meyering.net>
69903
69904         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
69905         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
69906         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
69907         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
69908
69909 2006-08-18  Bruno Haible  <bruno@clisp.org>
69910
69911         * modules/bison-i18n: New file.
69912         * MODULES.html.sh (Internationalization functions): Add it.
69913
69914 2006-08-18  Bruno Haible  <bruno@clisp.org>
69915
69916         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
69917         sys/statvfs.h. When getmntinfo was found, check its declaration and
69918         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
69919
69920 2006-08-18  Bruno Haible  <bruno@clisp.org>
69921
69922         * m4/bison-i18n.m4: New file, from bison.
69923
69924 2006-08-18  Bruno Haible  <bruno@clisp.org>
69925
69926         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
69927         (ME_DUMMY): Treat "kernfs" as a dummy.
69928         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
69929
69930 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69931
69932         Update from coreutils.
69933
69934         2006-08-15  Jim Meyering  <jim@meyering.net>
69935
69936         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
69937
69938         2006-01-17  Jim Meyering  <jim@meyering.net>
69939
69940         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
69941
69942         2006-01-11  Jim Meyering  <jim@meyering.net>
69943
69944         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
69945         Check for the lchmod function.
69946
69947 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
69948
69949         Update from coreutils.
69950
69951         * lib/__fpending.h: Add copyright notice.
69952         * lib/fprintftime.h: Likewise.
69953         * lib/savedir.c: Use (C) in copyright notice.
69954         * lib/savedir.h: Likewise.
69955
69956         2006-08-15  Jim Meyering  <jim@meyering.net>
69957
69958         * lib/at-func.c: New file, with the logic of all emulated at-functions.
69959         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
69960         in support of the EXPECTED_ERRNO macro.
69961         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
69962         definitions.  Instead, define the appropriate symbols and include
69963         "at-func.c".
69964         * lib/mkdirat.c (mkdirat): Likewise.
69965         * lib/fchmodat.c (fchmodat): Likewise.
69966         (ENOSYS): Remove definition.
69967         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
69968         it.  Don't include "unistd--.h" -- it wasn't ever used.
69969
69970         2006-01-17  Jim Meyering  <jim@meyering.net>
69971
69972         Rewrite fts.c not to change the current working directory,
69973         by using openat, fstatat, fdopendir, etc..
69974
69975         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
69976         (HAVE_OPENAT_SUPPORT): Define.
69977         [_LIBC] (fchdir): Don't undef or define; no longer used.
69978         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
69979         Now, this `function' always succeeds, and consumes its file descriptor
69980         parameter -- so callers must not close such FDs.  Update callers.
69981         (diropen_fd, opendirat, cwd_advance_fd): New functions.
69982         (diropen): Add parameter, SP.  Adjust all callers.
69983         Implement using diropen_fd, rather than open.
69984         (fts_open): Initialize new member, fts_cwd_fd.
69985         Remove fts_rft-setting code.
69986         (fts_close): Close fts_cwd_fd, if necessary.
69987         (__opendir2): Define in terms of opendir or opendirat,
69988         depending on whether the FST_NOCHDIR flag is set.
69989         (fts_build): Since fts_safe_changedir consumes its FD, and since
69990         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
69991         and close the dup'd file descriptor upon failure.
69992         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
69993         (fts_safe_changedir): Tweak semantics to reflect that this function
69994         now calls cwd_advance_fd and hence consumes its FD argument.
69995         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
69996         [struct FTS] (fts_rft): Remove now-unused member.
69997         [struct FTS] (fts_cycle.state): Improve comment.
69998
69999         * lib/openat.c (openat_needs_fchdir): New function.
70000         * lib/openat.h (openat_needs_fchdir): Declare it.
70001
70002 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
70003
70004         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
70005         Problem and fix reported by Pádraig Brady in
70006         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
70007
70008 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70009
70010         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
70011
70012 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70013
70014         * lib/memcoll.c (memcoll): Optimize for the common case where the
70015         arguments are bytewise equal.
70016
70017 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70018
70019         * doc/regexprops-generic.texi: Add a copyright notice.
70020
70021 2006-08-15  Bruno Haible  <bruno@clisp.org>
70022
70023         * modules/tmpdir (License): Change to LGPL.
70024
70025 2006-08-15  Bruno Haible  <bruno@clisp.org>
70026
70027         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
70028         module.
70029
70030 2006-08-14  Simon Josefsson  <jas@extundo.com>
70031
70032         * config/srclist.txt: Add gnupload.
70033
70034 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70035
70036         Change copyright notice from LGPL 2 to GPL 2, since that's the
70037         standard form used in the gnulib repository.
70038         * tests/test-lock.c: Likewise.
70039         * tests/test-stdint.c: Likewise.
70040         * tests/test-tls.c: Likewise.
70041
70042         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
70043         prelude-manager.  User shorter URLs for GNU projects, without '?'.
70044         Add copyright notice.
70045
70046         * check-module: Add copyright notice.  Output a copyright
70047         notice if "--version" is specified.
70048         * modules/COPYING: New file.
70049         * tests/test-getaddrinfo.c: Add copyright notice.
70050         * tests/test-verify.c: Likewise.
70051
70052 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70053
70054         Change copyright notice from LGPL 2 to GPL 2, since that's the
70055         standard form used in the gnulib repository.
70056         * lib/lock.c: LGPL -> GPL.
70057         * lib/lock.h: Likewise.
70058         * lib/strnlen1.c: Likewise.
70059         * lib/strnlen1.h: Likewise.
70060         * lib/tls.c: Likewise.
70061         * lib/tls.h: Likewise.
70062         * lib/tmpdir.c: Likewise.
70063
70064         * lib/TODO: Remove; this belongs only in coreutils.
70065
70066 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70067
70068         Add copyright notices to long-enough files that lack them, since
70069         otherwise the files aren't clearly free.  Use the same notice that
70070         getdate.texi already uses.
70071         * doc/alloca-opt.texi: Add copyright notice.
70072         * doc/alloca.texi: Likewise.
70073         * doc/ctime.texi: Likewise.
70074         * doc/functions.texi: Likewise.
70075         * doc/gcd.texi: Likewise.
70076         * doc/gnulib-tool.texi: Likewise.
70077         * doc/inet_ntoa.texi: Likewise.
70078         * doc/visibility.texi: Likewise.
70079
70080         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
70081         * doc/quote.texi: Add copyright notice.
70082
70083         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
70084         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
70085         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
70086         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
70087         is now obsolete, and give a pointer to the Sun list.
70088         Add copyright notice.
70089
70090 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70091
70092         * config/srclistvars.sh: Add copyright notice.
70093
70094 2006-08-14  Eric Blake  <ebb9@byu.net>
70095
70096         Import the following change from libc:
70097
70098         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
70099
70100         Upstream bug 2997.
70101         * lib/misc/error.c: Add space between program name and message if file
70102         name is missing.
70103
70104 2006-08-12  Karl Berry  <karl@gnu.org>
70105
70106         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
70107         remove, these originate in gnulib now.
70108
70109 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70110
70111         * doc/Makefile (standards.info standards.html standards.dvi):
70112         Also depend on make-stds.texi.
70113
70114 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70115
70116         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
70117         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
70118
70119         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
70120         in wchar_t.  Problem reported by Eric Blake.
70121
70122         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
70123         LEN is smaller than SIZE.  Suggested by Bruno Haible.
70124         Also, help the compiler to keep LEN in a register.
70125
70126 2006-08-11  Eric Blake  <ebb9@byu.net>
70127
70128         * users.txt: Sort.  Add tar.
70129
70130 2006-08-11  Bruno Haible  <bruno@clisp.org>
70131
70132         * users.txt: New file.
70133
70134 2006-08-11  Bruno Haible  <bruno@clisp.org>
70135
70136         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
70137         before <wchar.h>. Needed for OSF/1 and BSD/OS.
70138
70139 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
70140
70141         * modules/snprintf (Depends-on): Remove minmax.
70142         (Maintainer): Add self and Bruno.
70143
70144 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
70145
70146         * lib/.cppi-disable: Add snprintf.h, socket_.h.
70147         * lib/snprintf.c: Include <errno.h> and <limits.h>.
70148         (EOVERFLOW): Define if the system does not.
70149         Do not include "minmax.h"; it wasn't used.
70150         (snprintf): Don't assume size_t promotes to an unsigned type.
70151         Fix bug when generated string was too long for the buffer: the
70152         buffer's contents are supposed to be the initial prefix of the
70153         output.  Don't assume vasnprintf returns EOVERFLOW if the size
70154         exceeds INT_MAX; do the check ourselves.
70155
70156         Import the following changes from libc:
70157
70158         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
70159
70160         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
70161         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
70162         set wc to the byte which couldn't be converted.
70163         (re_string_reconstruct): Don't clear valid_raw_len before calling
70164         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
70165         tip_context using re_string_context_at.
70166
70167         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
70168
70169         * lib/posix/regex.h: g++ still cannot handled [restrict].
70170
70171         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
70172
70173         * lib/posix/regex.h: Remove special handling for VMS.
70174
70175 2006-08-10  Jim Meyering  <jim@meyering.net>
70176
70177         * modules/same-inode: New module.
70178         * modules/dev-ino: New module.
70179         * modules/cycle-check: Depend on these modules, rather than simply
70180         including their .h files.
70181         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
70182         required via m4/cycle-check.m4.
70183         * modules/same: Depend on new same-inode module, rather than
70184         including same-inode.h.
70185         * modules/chdir-safer: New file.
70186
70187         * modules/chown (Depends-on): Add stat-macros.
70188
70189 2006-08-10  Jim Meyering  <jim@meyering.net>
70190
70191         * m4/cycle-check.m4: New file.
70192         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
70193         * m4/dev-ino.m4, m4/same-inode.m4: New files.
70194
70195 2006-08-10  Eric Blake  <ebb9@byu.net>
70196
70197         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
70198         in from original proposal.
70199
70200 2006-08-10  Eric Blake  <ebb9@byu.net>
70201         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
70202
70203         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
70204         namespace.
70205
70206 2006-08-10  Bruno Haible  <bruno@clisp.org>
70207
70208         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
70209         as well.
70210
70211 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70212
70213         Sync from coreutils.
70214
70215         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
70216
70217         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
70218         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
70219
70220 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70221
70222         * modules/restrict: Remove; no longer needed now that we assume
70223         Autoconf 2.59 or later.
70224         * MODULES.html.sh: Remove 'restrict'.
70225         * modules/argp (Depends-on): Remove 'restrict'.
70226         * modules/base64 (Depends-on): Likewise.
70227         * modules/gc (Depends-on): Likewise.
70228         * modules/getaddrinfo (Depends-on): Likewise.
70229         * modules/glob (Depends-on): Likewise.
70230         * modules/inet_ntop (Depends-on): Likewise.
70231         * modules/inet_pton (Depends-on): Likewise.
70232         * modules/memxor (Depends-on): Likewise.
70233         * modules/regex (Depends-on): Likewise.
70234         * modules/strtok_r (Depends-on): Likewise.
70235         * modules/time_r (Depends-on): Likewise.
70236
70237 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70238
70239         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
70240         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
70241         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
70242         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
70243         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
70244         * m4/memxor.m4 (gl_MEMXOR): Likewise.
70245         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
70246         gl_C_RESTRICT replaced by AC_C_RESTRICT.
70247
70248         Merge from coreutils.
70249         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
70250         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
70251         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
70252         * m4/time_r.m4 (gl_TIME_R): Likewise.
70253
70254 2006-08-09  Karl Berry  <karl@gnu.org>
70255
70256         * config/srclist.txt: no more gettext-tools, per Bruno.
70257
70258 2006-08-08  Eric Blake  <ebb9@byu.net>
70259
70260         * modules/verror: New module.
70261         * MODULES.html.sh: Document it.
70262
70263 2006-08-08  Eric Blake  <ebb9@byu.net>
70264
70265         * lib/verror.h, lib/verror.c: New files.
70266
70267 2006-08-08  Eric Blake  <ebb9@byu.net>
70268
70269         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
70270         verror_at_line output complies with GNU Coding Standards even when
70271         file is NULL.
70272
70273 2006-08-07  Bruno Haible  <bruno@clisp.org>
70274
70275         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
70276         versions of AIX.
70277         Reported by Ralf Wildenhues.
70278
70279 2006-08-07  Bruno Haible  <bruno@clisp.org>
70280
70281         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
70282         in an AC_DEFUN. Needed so that the autoconf snippets can use
70283         AC_REQUIRE.
70284
70285 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70286
70287         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70288         Initialize pkgdata_DATA.
70289         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
70290         overriding it.
70291
70292 2006-08-06  Eric Blake  <ebb9@byu.net>
70293
70294         * lib/error.h: Fold in some upstream changes from glibc.
70295         * lib/error.c: Likewise.
70296
70297 2006-08-04  Bruno Haible  <bruno@clisp.org>
70298
70299         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70300         Make the mostlyclean-local rule depend on mostlyclean-generic.
70301         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
70302
70303 2006-07-31  Bruno Haible  <bruno@clisp.org>
70304
70305         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
70306         <stdlib.h>, <string.h>.
70307
70308 2006-07-30  Bruno Haible  <bruno@clisp.org>
70309
70310         * modules/readlink (License): Change to LGPL.
70311
70312 2006-07-30  Bruno Haible  <bruno@clisp.org>
70313
70314         * modules/javaversion (Makefile.am): Distribute javaversion.java and
70315         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
70316         set PKGDATADIR to point to it.
70317
70318 2006-07-30  Bruno Haible  <bruno@clisp.org>
70319
70320         * modules/csharpexec (configure.ac): Comment out macro invocation.
70321         * modules/javaexec (configure.ac): Likewise.
70322         * modules/javacomp-script (configure.ac): Likewise.
70323
70324         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
70325
70326 2006-07-30  Bruno Haible  <bruno@clisp.org>
70327
70328         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
70329         linked-list.
70330
70331 2006-07-30  Bruno Haible  <bruno@clisp.org>
70332
70333         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
70334
70335 2006-07-30  Bruno Haible  <bruno@clisp.org>
70336
70337         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70338         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
70339         get removed.
70340
70341 2006-07-29  Bruno Haible  <bruno@clisp.org>
70342
70343         Make it possible for gnulib-tool to work with locally modified or
70344         augmented gnulib repositories.
70345         * gnulib-tool (func_usage): Document --local-dir option.
70346         (local_gnulib_dir): New variable.
70347         Handle --local-dir option.
70348         (func_lookup_file): New function.
70349         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
70350         (func_get_description, func_get_filelist, func_get_description,
70351         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
70352         func_get_automake_snippet, func_get_include_directive,
70353         func_get_license, func_get_maintainer): Use func_lookup_file.
70354         (func_import, func_create_testdir): Use func_lookup_file.
70355
70356 2006-07-29  Bruno Haible  <bruno@clisp.org>
70357
70358         * modules/setenv (Depends-on): Add unistd.
70359
70360 2006-07-29  Bruno Haible  <bruno@clisp.org>
70361
70362         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
70363
70364 2006-07-29  Bruno Haible  <bruno@clisp.org>
70365
70366         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
70367
70368 2006-07-29  Bruno Haible  <bruno@clisp.org>
70369
70370         * gnulib-tool (import, update): If there is no Makefile.am, look at
70371         aclocal.m4, instead of bailing out.
70372
70373 2006-07-29  Bruno Haible  <bruno@clisp.org>
70374
70375         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
70376         Categorize the options by when they are useful.
70377
70378 2006-07-29  Bruno Haible  <bruno@clisp.org>
70379
70380         * gnulib-tool (func_usage): Document option --no-libtool.
70381         Handle option --no-libtool.
70382         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
70383         for changed semantics of $libtool variable.
70384         (func_import): Likewise. If libtool is not used, show this through
70385         an option --no-libtool.
70386         (func_create_testdir): Update.
70387
70388 2006-07-29  Bruno Haible  <bruno@clisp.org>
70389
70390         * gnulib-tool (func_import): Extend error message about missing
70391         --doc-base.
70392
70393 2006-07-29  Bruno Haible  <bruno@clisp.org>
70394
70395         * gnulib-tool (func_import): Don't create the $docbase directory if
70396         there is no file to store there.
70397
70398 2006-07-29  Bruno Haible  <bruno@clisp.org>
70399
70400         * gnulib-tool (autoconf_minversion): If a --dir option is given and
70401         relevant, look for configure.ac there, not in the current directory.
70402         Also use a simple search for AC_PREREQ, not "autoconf --trace".
70403
70404 2006-07-29  Bruno Haible  <bruno@clisp.org>
70405
70406         * gnulib-tool (SORT): New variable.
70407         (func_usage): Undocument --assume-autoconf option.
70408         Remove --assume-autoconf option handling.
70409         (autoconf_minversion): Determine from the contents of configure.ac.
70410         (func_import): Remove autoconf_minversion handling.
70411         Suggested by Eric Blake.
70412
70413 2006-07-29  Bruno Haible  <bruno@clisp.org>
70414
70415         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
70416
70417 2006-07-29  Bruno Haible  <bruno@clisp.org>
70418
70419         * config/srclist.txt (*setenv.[ch]): Remove rules.
70420
70421 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70422
70423         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
70424
70425 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70426
70427         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
70428         arpa/inet.h.
70429
70430 2006-07-28  Simon Josefsson  <jas@extundo.com>
70431
70432         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
70433         * modules/inet_pton (Depends-on): Likewise.
70434
70435 2006-07-28  Simon Josefsson  <jas@extundo.com>
70436
70437         * m4/netinet_in_h.m4: New file.
70438
70439 2006-07-28  Simon Josefsson  <jas@extundo.com>
70440
70441         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
70442         #include's.
70443
70444 2006-07-28  Simon Josefsson  <jas@extundo.com>
70445
70446         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
70447         #include's.
70448
70449 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
70450
70451         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
70452         setgid on directories only if they set these bits.
70453         * lib/modechange.h: Remove obsolete comment about masks.
70454
70455 2006-07-28  Eric Blake  <ebb9@byu.net>
70456
70457         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
70458         macro expansion.
70459
70460 2006-07-28  Bruno Haible  <bruno@clisp.org>
70461
70462         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
70463
70464 2006-07-28  Bruno Haible  <bruno@clisp.org>
70465
70466         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
70467
70468 2006-07-28  Bruno Haible  <bruno@clisp.org>
70469
70470         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
70471         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
70472         Define fallbacks.
70473         Avoids link error on FreeBSD 4.x.
70474         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
70475
70476         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
70477         encoding.
70478         * lib/mbswidth.c (iswcntrl): Likewise.
70479
70480 2006-07-27  Bruno Haible  <bruno@clisp.org>
70481
70482         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
70483         test.
70484
70485 2006-07-27  Bruno Haible  <bruno@clisp.org>
70486
70487         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
70488         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
70489         defined.
70490
70491 2006-07-26  Eric Blake  <ebb9@byu.net>
70492
70493         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
70494
70495 2006-07-26  Eric Blake  <ebb9@byu.net>
70496
70497         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
70498         like mingw that lack mkstemp.
70499         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
70500         avoid compilation warning on mingw.
70501
70502 2006-07-26  Bruno Haible  <bruno@clisp.org>
70503
70504         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
70505         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
70506         INT_FAST*_MIN, INTPTR_MIN.
70507
70508 2006-07-25  Bruno Haible  <bruno@clisp.org>
70509
70510         * modules/version-etc (Depends-on): Add stdarg.
70511
70512 2006-07-25  Bruno Haible  <bruno@clisp.org>
70513
70514         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
70515         complex commands.
70516
70517 2006-07-25  Bruno Haible  <bruno@clisp.org>
70518
70519         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
70520         defined in <stdarg.h> or config.h.
70521
70522 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70523
70524         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
70525         (gl_STDIO_SAFER): Remove.
70526
70527 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
70528
70529         * MODULES.html.sh (File stream based Input/Output):
70530         Add fopen-safer, tmpfile-safer; remove stdio-safer.
70531         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
70532         * modules/fopen-safer, modules/tmpfile-safer: New files.
70533         * modules/stdio-safer: Remove.
70534
70535 2006-07-24  Bruno Haible  <bruno@clisp.org>
70536
70537         * modules/tmpdir: New file.
70538         * MODULES.html.sh (File system functions): Add it.
70539
70540 2006-07-24  Bruno Haible  <bruno@clisp.org>
70541
70542         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
70543         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
70544
70545 2006-07-24  Bruno Haible  <bruno@clisp.org>
70546
70547         * modules/clean-temp: New file.
70548
70549 2006-07-24  Bruno Haible  <bruno@clisp.org>
70550
70551         * m4/tmpdir.m4: New file, from GNU gettext.
70552
70553 2006-07-24  Bruno Haible  <bruno@clisp.org>
70554
70555         * lib/tmpdir.h: New file, from GNU gettext.
70556         * lib/tmpdir.c: New file, from GNU gettext.
70557
70558 2006-07-24  Bruno Haible  <bruno@clisp.org>
70559
70560         * lib/clean-temp.h: New file, from GNU gettext.
70561         * lib/clean-temp.c: New file, from GNU gettext.
70562
70563 2006-07-23  Eric Blake  <ebb9@byu.net>
70564
70565         * modules/stdio-safer (Files): Add tmpfile-safer.c.
70566         (Depends-on): Add binary-io.
70567
70568 2006-07-23  Eric Blake  <ebb9@byu.net>
70569
70570         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
70571
70572 2006-07-23  Eric Blake  <ebb9@byu.net>
70573
70574         * lib/tmpfile-safer.c: New file.
70575         * lib/stdio-safer.h (fopen_safer): Add prototype.
70576         * lib/stdio--.h (tmpfile): Make safer.
70577
70578 2006-07-23  Bruno Haible  <bruno@clisp.org>
70579
70580         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
70581         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
70582         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
70583         gl_linked_remove_at): Use it.
70584
70585 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70586         and Simon Josefsson <jas@extundo.com>
70587
70588         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
70589
70590         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
70591
70592 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70593
70594         * modules/close-stream: New file.
70595         * modules/closeout (Description): Make it clear that it exits
70596         with a diagnostic on error.
70597         (Depends-on): Add close-stream.  Remove fpending, stdbool.
70598         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
70599
70600 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70601
70602         * m4/close-stream.m4: New file.
70603
70604 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
70605
70606         * lib/close-stream.c, lib/close-stream.h: New files.
70607
70608 2006-07-22  Bruno Haible  <bruno@clisp.org>
70609
70610         Merge from GNU gettext 0.15.
70611
70612         2006-05-01  Bruno Haible  <bruno@clisp.org>
70613
70614                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
70615
70616         2006-07-22  Bruno Haible  <bruno@clisp.org>
70617
70618                 * modules/javaversion: New file.
70619                 * MODULES.html.sh (Java): Add javaversion.
70620
70621         2006-03-12  Bruno Haible  <bruno@clisp.org>
70622
70623                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
70624
70625         2005-12-04  Bruno Haible  <bruno@clisp.org>
70626
70627                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
70628                 (untested).
70629
70630         2006-06-21  Bruno Haible  <bruno@clisp.org>
70631
70632                 Avoid warnings from recent versions of mcs.
70633                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
70634                 -o, -L, -r any more. Use options documented since mcs-1.0
70635                 instead. Similarly for -g.
70636
70637         2005-12-04  Bruno Haible  <bruno@clisp.org>
70638
70639                 * build-aux/csharpcomp.sh.in: Suffix for resources is
70640                 .resources, not .resource.
70641
70642         2005-07-09  Bruno Haible  <bruno@clisp.org>
70643
70644                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
70645                 add a .dll suffix.
70646                 Reported by Mark Junker <mjscod@gmx.de>.
70647
70648         2006-07-22  Bruno Haible  <bruno@clisp.org>
70649
70650                 * modules/gettext: Upgrade to gettext-0.15.
70651                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
70652                 m4/visibility.m4.
70653                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
70654
70655 2006-07-22  Bruno Haible  <bruno@clisp.org>
70656
70657         Merge from GNU gettext 0.15.
70658
70659         2006-03-25  Bruno Haible  <bruno@clisp.org>
70660
70661                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
70662
70663         2006-07-21  Bruno Haible  <bruno@clisp.org>
70664
70665                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
70666                 "1.1".
70667
70668         2006-05-09  Bruno Haible  <bruno@clisp.org>
70669
70670                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
70671                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
70672                 for the conftestver execution.
70673
70674         2006-05-01  Bruno Haible  <bruno@clisp.org>
70675
70676                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
70677                 optional target-version argument. Verify that the compiler
70678                 groks source of the specified source-version, or add -source
70679                 option as necessary. Verify that the compiler produces
70680                 bytecode in the specified target-version, or add -target and
70681                 -source options as necessary. Make the result of the test
70682                 available as variable CONF_JAVAC. Also log error output in
70683                 config.log.
70684
70685         2006-03-11  Bruno Haible  <bruno@clisp.org>
70686
70687                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
70688
70689         2006-05-09  Bruno Haible  <bruno@clisp.org>
70690
70691                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
70692                 CLASSPATH_SEPARATOR to a semicolon.
70693
70694         2006-03-12  Bruno Haible  <bruno@clisp.org>
70695
70696                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
70697                 available as variable CONF_JAVA, for subsequent autoconf
70698                 tests. Also log error output in config.log.
70699
70700         2006-07-19  Bruno Haible  <bruno@clisp.org>
70701
70702                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
70703                 that getline works on glibc2 systems. Needed to avoid trouble
70704                 in relocatable.c.
70705                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
70706
70707         2005-12-04  Bruno Haible  <bruno@clisp.org>
70708
70709                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
70710                 launcher (untested).
70711
70712         2005-12-04  Bruno Haible  <bruno@clisp.org>
70713
70714                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
70715
70716         2006-07-22  Bruno Haible  <bruno@clisp.org>
70717
70718                 * gettext.m4: Update from GNU gettext-0.15.
70719                 * nls.m4: Likewise.
70720                 * po.m4: Likewise.
70721                 * inttypes-pri.m4: Likewise.
70722                 * inttypes-h.m4: Renamed from inttypes.m4.
70723                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
70724
70725 2006-07-22  Bruno Haible  <bruno@clisp.org>
70726
70727         Merge from GNU gettext 0.15.
70728
70729         2005-07-05  Bruno Haible  <bruno@clisp.org>
70730
70731                 * printf-args.c (printf_fetchargs): Work around broken
70732                 definition of wint_t on mingw.
70733
70734         2005-02-12  Bruno Haible  <bruno@clisp.org>
70735
70736                 * xallocsa.h: Add extern "C" for C++.
70737
70738         2006-05-17  Bruno Haible  <bruno@clisp.org>
70739
70740                 Cygwin portability.
70741                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
70742
70743         2006-04-30  Bruno Haible  <bruno@clisp.org>
70744
70745                 * progreloc.c: Include <mach-o/dyld.h> if available.
70746                 (find_executable): Use _NSGetExecutablePath when possible.
70747
70748         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70749
70750                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
70751                 function.
70752
70753         2005-12-29  Bruno Haible  <bruno@clisp.org>
70754
70755                 * progreloc.c (set_program_name_and_installdir): Fix
70756                 compilation error.
70757
70758         2005-12-04  Bruno Haible  <bruno@clisp.org>
70759
70760                 Cygwin portability.
70761                 * progreloc.c: Include <windows.h> also on Cygwin.
70762                 (find_executable): Add support for Cygwin.
70763                 (set_program_name_and_installdir): Handle also platforms with
70764                 nonempty EXEEXT.
70765
70766         2006-07-11  Bruno Haible  <bruno@clisp.org>
70767
70768                 * javacomp.c: Fix a comment.
70769                 Reported by Jim Meyering.
70770
70771         2006-04-30  Bruno Haible  <bruno@clisp.org>
70772
70773                 * javacomp.h (compile_java_class): Add source_version,
70774                 target_version arguments.
70775                 * javacomp.c: Rewritten to choose only a compiler that
70776                 respects the specified source_version and target_version.
70777
70778         2006-06-27  Bruno Haible  <bruno@clisp.org>
70779
70780                 Assume correct S_ISDIR macro.
70781                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
70782
70783         2006-07-22  Bruno Haible  <bruno@clisp.org>
70784
70785                 * javaversion.h: New file, from GNU gettext.
70786                 * javaversion.c: New file, from GNU gettext.
70787                 * javaversion.java: New file, from GNU gettext.
70788                 * javaversion.class: New file, from GNU gettext.
70789
70790         2006-05-17  Bruno Haible  <bruno@clisp.org>
70791
70792                 Cygwin portability.
70793                 * javaexec.c (execute_java_class): Test for jview program
70794                 also on Cygwin.
70795
70796         2006-04-09  Bruno Haible  <bruno@clisp.org>
70797
70798                 * fatal-signal.c: Don't include string.h.
70799                 (at_fatal_signal): Use a copying loop instead of memcpy.
70800
70801         2005-12-04  Bruno Haible  <bruno@clisp.org>
70802
70803                 * csharpexec.c: Add support for 'clix' launcher (untested).
70804                 (execute_csharp_using_sscli): New function.
70805                 (execute_csharp_program): Call it.
70806
70807         2006-06-21  Bruno Haible  <bruno@clisp.org>
70808
70809                 Avoid warnings from recent versions of mcs.
70810                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
70811                 -o, -L, -r any more. Use options documented since mcs-1.0
70812                 instead. Similarly for -g.
70813
70814         2005-07-09  Bruno Haible  <bruno@clisp.org>
70815
70816                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
70817                 add a .dll suffix.
70818                 Reported by Mark Junker <mjscod@gmx.de>.
70819
70820         2006-06-17  Bruno Haible  <bruno@clisp.org>
70821
70822                 * config.charset: Update for NetBSD 3.0.
70823
70824         2006-05-17  Bruno Haible  <bruno@clisp.org>
70825
70826                 Cygwin portability.
70827                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
70828
70829         2006-05-16  Bruno Haible  <bruno@clisp.org>
70830
70831                 * localcharset.c [CYGWIN]: Include <windows.h>.
70832                 (get_charset_aliases): For Cygwin, return the same CPxxx
70833                 aliases list as under WIN32.
70834                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
70835                 the environment variables. Fall back to GetACP().
70836
70837         2006-04-05  Bruno Haible  <bruno@clisp.org>
70838
70839                 * config.charset: Update Juan Manuel Guerrero's address.
70840
70841         2005-02-12  Bruno Haible  <bruno@clisp.org>
70842
70843                 * allocsa.h: Add extern "C" for C++.
70844
70845         2005-02-10  Bruno Haible  <bruno@clisp.org>
70846
70847                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
70848                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
70849
70850         2006-07-22  Bruno Haible  <bruno@clisp.org>
70851
70852                 * gettext.h: Update to GNU gettext-0.15.
70853
70854 2006-07-22  Bruno Haible  <bruno@clisp.org>
70855
70856         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
70857         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
70858         lib-prefix.m4, longdouble.m4, ssize_t.m4.
70859
70860 2006-07-21  Eric Blake  <ebb9@byu.net>
70861
70862         * modules/stdlib-safer: New file.
70863         * MODULES.html.sh (File stream based Input/Output): Add
70864         stdlib-safer.
70865
70866 2006-07-21  Eric Blake  <ebb9@byu.net>
70867
70868         * lib/stdlib-safer.h: New file from coreutils, required by
70869         stdlib--.h.
70870
70871 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
70872
70873         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
70874
70875 2006-07-20  Bruno Haible  <bruno@clisp.org>
70876
70877         * gnulib-tool: Recognize new option --assume-autoconf.
70878         (autoconf_minversion): New variable.
70879         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
70880
70881 2006-07-20  Bruno Haible  <bruno@clisp.org>
70882
70883         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
70884
70885 2006-07-19  Derek R. Price  <derek@ximbiot.com>
70886
70887         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
70888         Reindent and repaginate.
70889
70890 2006-07-19  Derek Price  <derek@ximbiot.com>
70891
70892         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
70893         Correct grammar.
70894
70895 2006-07-17  Bruno Haible  <bruno@clisp.org>
70896
70897         * modules/list: New file.
70898         * modules/array-list: New file.
70899         * modules/carray-list, modules/carray-list-tests: New files.
70900         * modules/linked-list, modules/linked-list-tests: New files.
70901         * modules/avltree-list, modules/avltree-list-tests: New files.
70902         * modules/rbtree-list, modules/rbtree-list-tests: New files.
70903         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
70904         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
70905         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
70906         * modules/oset: New file.
70907         * modules/array-oset: New file.
70908         * modules/avltree-oset, modules/avltree-oset-tests: New files.
70909         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
70910         * tests/test-carray_list.c: New file.
70911         * tests/test-linked_list.c: New file.
70912         * tests/test-avltree_list.c: New file.
70913         * tests/test-rbtree_list.c: New file.
70914         * tests/test-linkedhash_list.c: New file.
70915         * tests/test-avltreehash_list.c: New file.
70916         * tests/test-rbtreehash_list.c: New file.
70917         * tests/test-avltree_oset.c: New file.
70918         * tests/test-rbtree_oset.c: New file.
70919         * MODULES.html.sh (Container data structures): New section.
70920
70921 2006-07-17  Bruno Haible  <bruno@clisp.org>
70922
70923         * m4/gl_list.m4: New file.
70924
70925 2006-07-17  Bruno Haible  <bruno@clisp.org>
70926
70927         * lib/gl_list.h: New file.
70928         * lib/gl_list.c: New file.
70929         * lib/gl_array_list.h: New file.
70930         * lib/gl_array_list.c: New file.
70931         * lib/gl_carray_list.h: New file.
70932         * lib/gl_carray_list.c: New file.
70933         * lib/gl_linked_list.h: New file.
70934         * lib/gl_linked_list.c: New file.
70935         * lib/gl_anylinked_list1.h: New file.
70936         * lib/gl_anylinked_list2.h: New file.
70937         * lib/gl_avltree_list.h: New file.
70938         * lib/gl_avltree_list.c: New file.
70939         * lib/gl_anyavltree_list1.h: New file.
70940         * lib/gl_anyavltree_list2.h: New file.
70941         * lib/gl_rbtree_list.h: New file.
70942         * lib/gl_rbtree_list.c: New file.
70943         * lib/gl_anyrbtree_list1.h: New file.
70944         * lib/gl_anyrbtree_list2.h: New file.
70945         * lib/gl_anytree_list1.h: New file.
70946         * lib/gl_anytree_list2.h: New file.
70947         * lib/gl_linkedhash_list.h: New file.
70948         * lib/gl_linkedhash_list.c: New file.
70949         * lib/gl_anyhash_list1.h: New file.
70950         * lib/gl_anyhash_list2.h: New file.
70951         * lib/gl_avltreehash_list.h: New file.
70952         * lib/gl_avltreehash_list.c: New file.
70953         * lib/gl_rbtreehash_list.h: New file.
70954         * lib/gl_rbtreehash_list.c: New file.
70955         * lib/gl_anytreehash_list1.h: New file.
70956         * lib/gl_anytreehash_list2.h: New file.
70957
70958         * lib/gl_oset.h: New file.
70959         * lib/gl_oset.c: New file.
70960         * lib/gl_array_oset.h: New file.
70961         * lib/gl_array_oset.c: New file.
70962         * lib/gl_avltree_oset.h: New file.
70963         * lib/gl_avltree_oset.c: New file.
70964         * lib/gl_rbtree_oset.h: New file.
70965         * lib/gl_rbtree_oset.c: New file.
70966         * lib/gl_anytree_oset.h: New file.
70967
70968 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70969
70970         * m4/mkancesdirs.m4: New file.
70971         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
70972         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
70973         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
70974         it.
70975
70976 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
70977
70978         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
70979         * lib/mkancesdirs.h: New files.
70980         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
70981         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
70982         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
70983         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
70984         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
70985         callers changed.  Revamp internals significantly, by not
70986         attempting to create directories that are temporarily more
70987         permissive than the final results.  Do not attempt to use
70988         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
70989         This removes some race conditions, fixes some bugs, and simplifies
70990         things.  Use new dirchownmod function to do owner and mode changes.
70991         * lib/mkdir-p.h: Likewise.
70992         * lib/modechange.c (octal_to_mode): New function.
70993         (struct mode_change): New member mentioned.
70994         (make_node_op_equals): New arg mentioned.  All callers changed.
70995         (mode_compile): Keep track of which mode bits the user has explicitly
70996         mentioned.
70997         (mode_adjust): New arg DIR, so that we implement the X op correctly.
70998         New arg PMODE_BITS, to keep track of which mode bits the user
70999         mentioned; it treats S_ISUID and S_ISGID speciall.
71000         All callers changed.
71001         * lib/modechange.h: Likewise.
71002
71003 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71004
71005         * MODULES.html.sh: Add mkancestors.
71006         * modules/mkancesdirs: New module.
71007         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
71008         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
71009         The chdir-safer and afs files are now orphans; I'll remove them
71010         unless someone speaks up.
71011         Add lib/dirchownmod.c, lib/dirchownmod.h.
71012         (Depends-on): Remove alloca, chown, save-cwd, dirname.
71013         Add lchown, mkancesdirs.
71014         (Maintainer): Add self.
71015
71016 2006-07-15  Karl Berry  <karl@gnu.org>
71017
71018         * gnulib-tool: help message wording/arrangement.
71019
71020 2006-07-14  Simon Josefsson  <jas@extundo.com>
71021
71022         * doc/gnulib.texi (Libtool and Windows): New section.
71023
71024 2006-07-12  Simon Josefsson  <jas@extundo.com>
71025
71026         * modules/gendocs (License): Fix license, approved by Karl.
71027
71028 2006-07-12  Eric Blake  <ebb9@byu.net>
71029
71030         * MODULES.html.sh: Add gendocs.
71031
71032 2006-07-11  Eric Blake  <ebb9@byu.net>
71033
71034         * modules/fdl: New module, to install doc/fdl.texi.
71035         * MODULES.html.sh: Add new section for documentation modules.
71036         * gnulib-tool: Avoid space-tab.
71037         (--doc-base): New option, to manage files from doc.
71038
71039 2006-07-11  Eric Blake  <ebb9@byu.net>
71040
71041         * m4/absolute-header.m4: Fix comments to match recent change.
71042
71043 2006-07-11  Eric Blake  <ebb9@byu.net>
71044
71045         * gnulib-tool: List --doc-base before --tests-base.
71046
71047 2006-07-11  Derek R. Price  <derek@ximbiot.com>
71048
71049         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
71050
71051 2006-07-11  Bruno Haible  <bruno@clisp.org>
71052
71053         * README: Mention where to put documentation.
71054
71055 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71056
71057         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
71058
71059 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
71060
71061         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
71062         to stdint.m4.
71063
71064 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
71065
71066         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
71067         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
71068         "no/such/file/stdint.h" when there is no such file, so that
71069         the resulting C code can be parsed by dodgy compilers.
71070         Problems reported by Bob Proulx.
71071
71072 2006-07-10  Derek R. Price  <derek@ximbiot.com>
71073
71074         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
71075         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
71076         macros into the GNU _D_EXACT_NAMLEN.
71077         * lib/savedir.c:  Likewise.
71078         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
71079
71080 2006-07-10  Derek R. Price  <derek@ximbiot.com>
71081         and Paul Eggert  <eggert@cs.ucla.edu>
71082
71083         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
71084         * m4/savedir.m4:
71085         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
71086         macros into the GNU _D_EXACT_NAMLEN.
71087
71088 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71089
71090         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
71091         around the absolute name, to work around a problem with the HP-UX
71092         11.23 native C compiler, reported by Bob Proulx.
71093
71094 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71095
71096         * doc/maintain.texi, make-stds.texi: Sync from
71097         <http://savannah.gnu.org/projects/gnustandards>.
71098
71099 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71100
71101         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
71102
71103 2006-07-09  Jim Meyering  <jim@meyering.net>
71104
71105         * m4/glob.m4: Remove a doubled word in a comment.
71106
71107 2006-07-09  Jim Meyering  <jim@meyering.net>
71108
71109         * lib/argp-pv.c: Remove a doubled word in a comment.
71110         * lib/check-version.c (check_version): Likewise.
71111         * lib/javacomp.c (compile_java_class): Likewise.
71112
71113 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
71114
71115         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
71116         for the benefit of people using Autoconf 2.60.  If you want to
71117         support older Autoconf versions you can copy m4/onceonly_2_57.m4
71118         (or m4/onceonly.m4, if pre-2.57) manually.
71119
71120 2006-07-08  Jim Meyering  <jim@meyering.net>
71121
71122         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
71123         comment.
71124         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
71125         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
71126         comment.
71127
71128 2006-07-08  Jim Meyering  <jim@meyering.net>
71129
71130         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
71131
71132 2006-07-07  Simon Josefsson  <jas@extundo.com>
71133
71134         * tests/test-crc.c: Change expected crc value, the test vector
71135         were probably computed using the old broken crc.c?
71136
71137 2006-07-06  Simon Josefsson  <jas@extundo.com>
71138
71139         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
71140         now the canonical place for the M4 file).
71141
71142         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
71143         from the sys_socket dependency now.
71144
71145         * modules/inet_pton (Files): Ditto.
71146
71147         * modules/inet_ntop (Files): Ditto.
71148
71149 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71150
71151         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
71152         not gl_PREREQ_GETUSERSHELL.
71153
71154 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71155
71156         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
71157         with only one argument, for Autoconf 2.60.
71158         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
71159         expand to nothing, so add a shell command to avoid syntax error.
71160         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
71161
71162 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71163
71164         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
71165
71166 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71167
71168         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
71169         no longer needed.  Check for isblank decl.
71170         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
71171         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
71172         of existence.
71173
71174 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71175
71176         * lib/getloadavg.c: Use __VMS, not VMS.
71177         * lib/getopt.c: Likewise.
71178         * lib/getpagesize.h: Likewise.
71179         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
71180         and probably does not work.
71181
71182 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
71183
71184         * lib/.cppi-disable: Add wcwidth.
71185         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
71186         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
71187         (ISGRAPH): Remove.  All uses changed to isgraph.
71188         (FOLD) [!defined _LIBC]: Remove special case.
71189         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
71190         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
71191         HAVE_ISBLANK.
71192         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
71193         case.
71194
71195 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71196
71197         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
71198         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
71199         brackets.  Other minor changes to suppress some compiler
71200         warnings.
71201
71202 2006-07-06  Derek R. Price  <derek@ximbiot.com>
71203         and Paul Eggert  <eggert@cs.ucla.edu>
71204
71205         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
71206         of invoking obsolescent AC_HEADER_DIRENT macro.
71207         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
71208         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
71209         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
71210         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
71211         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
71212         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
71213         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
71214         * m4/readdir.m4: Remove; no longer needed.
71215
71216 2006-07-06  Derek R. Price  <derek@ximbiot.com>
71217         and Paul Eggert  <eggert@cs.ucla.edu>
71218
71219         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
71220         Don't worry about this obsolete case any more.
71221         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
71222         directories.
71223         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
71224         worry about this obsolete case any more.
71225         * lib/fts.c: Likewise.
71226         * lib/getcwd.c: Likewise.
71227         * lib/glob.h: Likewise.
71228         * lib/savedir.c: Likewise.
71229
71230 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71231
71232         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
71233         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
71234         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
71235         needed.
71236         All uses removed.
71237         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71238         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
71239         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
71240         needed.
71241         * m4/getdate.m4 (gl_GETDATE): Likewise.
71242         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71243         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71244         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71245         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71246         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
71247         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71248         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
71249         needed.
71250
71251 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
71252
71253         * lib/memcasecmp.c: Include <limits.h>.
71254         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
71255         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
71256         Don't assume isdigit succeeds only on '0' through '9'.
71257
71258 2006-07-05  Eric Blake  <ebb9@byu.net>
71259
71260         * modules/getaddrinfo (Depends-on): Add snprintf.
71261
71262 2006-07-05  Eric Blake  <ebb9@byu.net>
71263
71264         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
71265         to avoid 'header present but could not be compiled' on cygwin.
71266
71267 2006-07-05  Eric Blake  <ebb9@byu.net>
71268
71269         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
71270         missing from netdb.h.
71271         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
71272
71273 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71274
71275         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
71276         no longer needed.
71277         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
71278         * m4/getdate.m4 (gl_GETDATE): Likewise.
71279         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
71280         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
71281         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
71282         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
71283         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
71284
71285 2006-07-05  Derek R. Price  <derek@ximbiot.com>
71286
71287         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
71288         All uses of is_space replaced by isspace.
71289         * lib/exit.h: Don't talk about STDC_HEADERS.
71290         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
71291         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
71292         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
71293         replaced by isprint etc.
71294         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
71295         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
71296         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
71297         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
71298         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
71299         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
71300
71301 2006-07-05  Bruno Haible  <bruno@clisp.org>
71302
71303         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
71304         the function exists, before testing against AIX.
71305         Reported by Martin Lambers <marlam@marlam.de>.
71306
71307 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
71308
71309         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
71310         From Mark D. Baushke.
71311
71312 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
71313
71314         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
71315         to the absolute name, not just one, to bypass Sun C 5.8's
71316         "warning: #include of /usr/include/... may be non-portable".
71317
71318 2006-07-04  Eric Blake  <ebb9@byu.net>
71319
71320         * modules/dirname-tests: New test module.
71321         * tests/test-dirname.c: New file, replacing dirname.c
71322         TEST_DIRNAME section that was recently deleted.
71323
71324 2006-07-04  Bruno Haible  <bruno@clisp.org>
71325
71326         Assume ANSI C header files and <ctype.h> functions.
71327         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
71328         (mbsnwidth): Use isprint, iscntrl instead.
71329
71330 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71331
71332         Merge from coreutils.
71333         * MODULES.html.sh: Add xstrtold.
71334         * modules/xstrtold: New file.
71335         * modules/cycle-check (Files): Add lib/same-inode.h.
71336         * modules/dirname (Files): Add m4/double-slash-root.m4.
71337         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
71338         * modules/mkdir-p (Files): Add lib/same-inode.h.
71339         * modules/same (Files): Add lib/same-inode.h.
71340
71341 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71342
71343         * m4/absolute-header.m4: Renamed from full-header-path.m4.
71344         This is to keep the terminology clean; POSIX talks about
71345         "absolute pathnames", not "full pathnames", but the GNU
71346         Coding Standards say to use "path" for something else;
71347         so use "absolute" to keep both sides happy.
71348         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
71349         Set gl_absolute_header, not gl_full_header_path.
71350         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
71351         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
71352         All uses changed.
71353
71354         Merge from coreutils.
71355
71356         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71357
71358         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
71359         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
71360         want to require the building of c-strtod.o.
71361         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
71362         needs -lm directly.
71363         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
71364
71365         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
71366
71367         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
71368         --as-needed option if available.  Problem reported by Albert Chin in
71369         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
71370         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
71371         cc merely issues a bunch of annoying warnings for --as-needed
71372         (this problem was reported by Bob Proulx).  Also, try linking with
71373         -lm to detect a bug in binutils 2.16 (this problem was reported
71374         by Ralf Wildenhues).
71375
71376         2006-06-18  Jim Meyering  <jim@meyering.net>
71377
71378         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
71379         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
71380         macro.
71381         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
71382         also check for glibc-2.4's abort-inducing bug.
71383
71384         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
71385         Low-probability clean-up should be to use rmdir to get rid of
71386         the just-created directory, not unlink.
71387
71388         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
71389         configure fail, and request a bug report to inform us about it.
71390         Add a comment that, barring reports to the contrary, in 2007 we'll
71391         assume ftruncate is universally available.
71392
71393         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71394
71395         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
71396
71397         2006-03-12  Jim Meyering  <jim@meyering.net>
71398
71399         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
71400         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
71401         * m4/same.m4 (gl_SAME): Likewise.
71402         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
71403
71404         2006-03-11  Eric Blake  <ebb9@byu.net>
71405
71406         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
71407         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
71408         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
71409         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
71410
71411 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
71412
71413         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
71414         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
71415         reported by Mark D. Baushke, one in
71416         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
71417
71418         Merge from coreutils.
71419
71420         * lib/.cppi-disable: Add stdint_.h.
71421         * lib/.cvsignore: Add stdint.h.
71422
71423         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
71424
71425         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
71426         both double and long double versions.
71427         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
71428         * lib/xstrtold.c: New file.
71429         * lib/xstrtod.h (xstrtold): New decl.
71430
71431         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
71432
71433         * lib/filemode.c (setst): Remove.
71434         (strmode): Rewrite to avoid setst.  This makes the code shorter,
71435         (arguably) clearer, and the generated code is a bit smaller on my
71436         Debian GNU/Linux stable x86 host.
71437
71438         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
71439
71440         * lib/filemode.c: Include "filemode.h" first, to test the interface.
71441         Assume that filemode.h includes sys/types.h and sys/stat.h.
71442         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
71443         (ftypelet): Reorder to put common cases first, for efficiency.
71444         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
71445         to do 'M'.
71446         (strmode): Renamed from mode_string, and now stores 12 bytes instead
71447         of 10, for compatibility with FreeBSD.  All callers changed.
71448         (filemodestring): Now stores 12 bytes instead of 10, and sets file
71449         types that can't be deduced solely from st_mode.  First arg is now a
71450         const pointer.
71451         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
71452         (strmode): Renamed from mode_string.
71453         (filemodestring): New decl.
71454         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
71455         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
71456         needed.
71457         (S_ISPORT, S_ISWHT): New macros, if not already defined.
71458
71459         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
71460
71461         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
71462         fsusage.h now does that.  Include fsusage.h first, to test interface.
71463         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
71464         at most one method (the old code could have generated decls that
71465         didn't conform to C89, not that this was ever exercised).
71466         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
71467
71468         2006-03-19  Jim Meyering  <jim@meyering.net>
71469
71470         Work even in a chroot where d_ino values for entries in "/"
71471         don't match the stat.st_ino values for the same names.
71472         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
71473         number, iterate through all entries again, using lstat instead.
71474         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
71475         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
71476
71477         * lib/getcwd.c (__getcwd): Clarify a comment.
71478         Use memcpy in place of a call to strcpy.
71479
71480         2006-03-12  Jim Meyering  <jim@meyering.net>
71481
71482         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
71483         matches that of the current directory (which we're about to chdir ".."
71484         out of), then save the dev-ino of the parent, instead.
71485
71486         * lib/same-inode.h (SAME_INODE): New file/macro.
71487         * lib/chdir-safer.c (SAME_INODE): Remove definition.
71488         Include "same-inode.h", instead.
71489         * lib/same.c: Likewise.
71490         * lib/cycle-check.h: Include "same-inode.h".
71491         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
71492         * lib/cycle-check.c (SAME_INODE): Remove definition.
71493         * lib/root-dev-ino.h: Include "same-inode.h".
71494
71495         2006-03-11  Eric Blake  <ebb9@byu.net>
71496
71497         * lib/same.c (same_name): s/base_name/last_component/
71498         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
71499         * lib/filenamecat.c (file_name_concat): Likewise.
71500
71501         2006-03-11  Eric Blake  <ebb9@byu.net>,
71502                     Paul Eggert  <eggert@cs.ucla.edu>
71503
71504         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
71505         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
71506         drive prefix.
71507         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
71508         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
71509         (last_component): New method.
71510         * lib/dirname.c (dir_len): Determine when drive letters need a
71511         subsequent slash.  Preserve // when it is special.
71512         (dir_name): Don't append dot when drive letter is absolute.
71513         [TEST_DIRNAME]: Move into a full-blown gnulib test.
71514         * lib/basename.c (base_name): New semantics - malloc the result.
71515         Preserve // when it is special.  Preserve relative files that look
71516         like drive letters.
71517         (base_len): Preserve // when it is special.
71518         (last_component): New method, similar to old base_name semantics.
71519         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
71520         base_name.  Strip redundant slashes from ///.
71521
71522 2006-07-03  Jim Meyering  <jim@meyering.net>
71523
71524         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
71525         macro is used before the first cycle_check call.
71526
71527 2006-07-03  Eric Blake  <ebb9@byu.net>
71528
71529         * modules/dirname (Depends-on): Add xstrndup.
71530
71531 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71532
71533         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
71534         test cases, so that config.log is a bit easier to follow.
71535
71536 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
71537
71538         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
71539         both are 64 bits, since this seems to be the tradition, and this
71540         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
71541         we ever run into a host that prefers long long to long in this
71542         case, we'll need another configure-time test.  Problem reported by
71543         Jim Meyering.
71544
71545 2006-07-02  Eric Blake  <ebb9@byu.net>
71546
71547         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
71548
71549 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71550
71551         * modules/inttypes (Depends-on): No longer depends on stdint.
71552         * modules/stdint (Description): Say more about assumptions.
71553         Say that the fast types might differ.  Say macros are used.
71554         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
71555         (Makefile.am): Revise list of substituted symbols to match
71556         new stdint.m4.
71557         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
71558         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
71559         * tests/test-stdint.c (verify_same_types)
71560         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
71561         the code conforms to C99/C89.
71562         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
71563         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
71564
71565 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71566
71567         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
71568         but fix a bug, by requiring at least 64 bits.
71569         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
71570         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
71571         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
71572         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
71573
71574         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
71575         changes.  Make 2.59 a prerequisite.  Check and substitute for
71576         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
71577         inttypes.h.  Do not use special include files; just use the
71578         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
71579         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
71580         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
71581         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
71582         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
71583         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
71584         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
71585         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
71586         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
71587         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
71588         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
71589         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
71590         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
71591         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
71592         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
71593         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
71594         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
71595         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
71596         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
71597         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
71598         WINT_MAX.  Check for C99 conformance more strictly, by detecting
71599         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
71600         not check for things that C99 does not require, e.g., int8_t.  If
71601         a test isn't needed unless <stdint.h> isn't working, and is
71602         unlikely to be needed for any other reason, then don't do it
71603         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
71604         size_t, since we assume C89 freestanding at least.  Do not check
71605         for sig_atomic_t, wchar_t, or wint_t, since the code now does
71606         the right thing even if the types are not defined.  Instead use:
71607         (gl_STDINT_TYPE_PROPERTIES): New macro.
71608         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
71609         testing whether <sys/types.h> clashes, as Autoconf does this for
71610         us now.  All uses removed.
71611         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
71612         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
71613         (gl_CHECK_TYPE_SAME):
71614         Remove; no longer needed.
71615         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
71616         exists, since we'll return 0 anyway in that case.
71617         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
71618
71619 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
71620
71621         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
71622         possible collision with system files.
71623         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
71624         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
71625         WCHAR_MIN and WCHAR_MAX in this case.
71626         (<stddef.h>): Do not include; no longer needed.
71627         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
71628         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
71629         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
71630         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
71631         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
71632         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
71633         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
71634         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
71635         !defined(__c99))]: Include in this case too, since it's harmless
71636         now.
71637         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
71638         dangerous to do so.
71639         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
71640         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
71641         (_STDINT_MIN, _STDINT_MAX): New macros.
71642         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
71643         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
71644         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
71645         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
71646         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
71647         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
71648         macros, not typedefs; this simplifies things quite a bit.
71649         Use long int for all types narrower than int64_t.
71650         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
71651         Define in terms of long long int or int64_t or long int,
71652         not int64_t or int32_t.  This saves some compile-time testing.
71653         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
71654         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
71655         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
71656         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
71657         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
71658         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
71659         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
71660         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
71661         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
71662         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
71663         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71664         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71665         undef any previous version and define our own version, for
71666         simplicity and consistency with the new macros for types.
71667         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
71668         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
71669         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
71670         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
71671         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
71672         @WINT_T_SUFFIX@ to keep things simple here.
71673         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
71674         Simplify by assuming typical 8/16/32/64 host, since we're
71675         already doing that elsewhere anyway.
71676         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
71677         and assume long long int is 64 bits if available.  This
71678         speeds up 'configure'.
71679
71680 2006-07-01  Eric Blake  <ebb9@byu.net>
71681
71682         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
71683         Reported by Andreas Buening.
71684
71685 2006-07-01  Eric Blake  <ebb9@byu.net>
71686
71687         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
71688
71689 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
71690
71691         * lib/getaddrinfo.c: fixed typo
71692
71693 2006-06-29  Jim Meyering  <jim@meyering.net>
71694
71695         * modules/strftime (Maintainer): Add my name, since with the
71696         FPRINTFTIME changes strftime.c has forked from glibc.
71697
71698 2006-06-29  Eric Blake  <ebb9@byu.net>
71699
71700         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
71701
71702 2006-06-29  Eric Blake  <ebb9@byu.net>
71703
71704         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
71705
71706 2006-06-29  Eric Blake  <ebb9@byu.net>
71707
71708         * lib/stat_.h: New file.
71709
71710 2006-06-29  Eric Blake  <ebb9@byu.net>
71711
71712         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
71713         unused static function.
71714
71715 2006-06-29  Eric Blake  <ebb9@byu.net>
71716
71717         * doc/functions.texi (Function Portability): Document missing lstat
71718         on mingw.
71719
71720 2006-06-29  Eric Blake  <ebb9@byu.net>
71721
71722         * MODULES.html.sh: Add sys_stat.
71723         * modules/sys_stat: New module.
71724         * modules/mkstemp (Depends-on): Add sys_stat.
71725
71726 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71727
71728         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
71729
71730 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71731
71732         * m4/c-bs-a.m4: Removed.
71733
71734 2006-06-29  Derek R. Price  <derek@ximbiot.com>
71735
71736         * lib/strftime.c: Assume strftime() exists.
71737
71738 2006-06-29  Derek Price  <derek@ximbiot.com>
71739
71740         * modules/c-bs-a: Removed - \a is C89.
71741         * MODULES.html.sh: Remove c-bs-a.
71742
71743 2006-06-29  Bruno Haible  <bruno@clisp.org>
71744
71745         * modules/wcwidth (License): Change to LGPL.
71746
71747 2006-06-28  Simon Josefsson  <jas@extundo.com>
71748
71749         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
71750         on _WIN32.
71751
71752         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
71753         getnameinfo.
71754
71755 2006-06-28  Simon Josefsson  <jas@extundo.com>
71756
71757         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
71758
71759 2006-06-28  Simon Josefsson  <jas@extundo.com>
71760
71761         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
71762         functions there.  It will succeed on Windows XP, but on Windows
71763         2000 and (presumably) earlier, it will fail, and use the internal
71764         re-implementation.
71765         (use_win32_p): New function.
71766         (getaddrinfo): Use strtoul on servname, to support numeric ports.
71767         Support AI_NUMERICSERV to disable getservbyname.
71768         (getnameinfo): New function, only supports
71769         NI_NUMERICHOST|NI_NUMERICSERV for now.
71770
71771         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
71772         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
71773         getnameinfo.
71774
71775 2006-06-28  Eric Blake  <ebb9@byu.net>
71776
71777         * modules/wcwidth: New file.
71778         * modules/mbchar (Depends-on): Add wcwidth.
71779         * modules/mbswidth (Depends-on): Add wcwidth.
71780         * MODULES.html.sh: Add wcwidth.
71781
71782 2006-06-28  Eric Blake  <ebb9@byu.net>
71783
71784         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
71785         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
71786
71787 2006-06-28  Eric Blake  <ebb9@byu.net>
71788
71789         * lib/xvasprintf.h: Fix comments.
71790
71791 2006-06-28  Eric Blake  <ebb9@byu.net>
71792
71793         * lib/mbchar.h (wcwidth): Include wcwidth.h.
71794         * lib/mbswidth.c (wcwidth): Move from here...
71795         * lib/wcwidth.h: ...to this new file.
71796
71797 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71798
71799         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
71800
71801         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
71802         it's obsolete.
71803         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
71804
71805 2006-06-28  Derek R. Price  <derek@ximbiot.com>
71806
71807         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
71808         Autoconf 2.60 says this stuff was obsolete.
71809
71810 2006-06-28  Bruno Haible  <bruno@clisp.org>
71811
71812         * modules/wcwidth (Files): Add m4/wchar_t.m4.
71813
71814 2006-06-28  Bruno Haible  <bruno@clisp.org>
71815
71816         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
71817         gt_TYPE_WCHAR_T.
71818
71819 2006-06-28  Bruno Haible  <bruno@clisp.org>
71820
71821         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
71822         declaration for wcwidth.
71823         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
71824
71825 2006-06-28  Bruno Haible  <bruno@clisp.org>
71826
71827         * lib/mkdtemp.c [MINGW]: Include <io.h>.
71828         (mkdir): Define using _mkdir.
71829
71830 2006-06-28  Bruno Haible  <bruno@clisp.org>
71831
71832         * lib/getaddrinfo.h: Fix POSIX URL.
71833         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
71834         _WIN32.
71835         (use_win32_p): Make static.
71836         (getaddrinfo): Reject service name if it is empty or does not consist
71837         solely of decimal digits, or if its value is > 65535.
71838         (getnameinfo): Remove useless casts.
71839
71840 2006-06-27  Simon Josefsson  <jas@extundo.com>
71841
71842         * modules/sys_select: New file, suggested by Bruno Haible, Paul
71843         Eggert and Martin Lambers.
71844
71845 2006-06-27  Simon Josefsson  <jas@extundo.com>
71846
71847         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
71848         Eggert and Martin Lambers.
71849
71850 2006-06-27  Bruno Haible  <bruno@clisp.org>
71851
71852         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
71853         result to 0, not to empty.
71854         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
71855
71856 2006-06-27  Bruno Haible  <bruno@clisp.org>
71857
71858         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
71859
71860 2006-06-26  Simon Josefsson  <jas@extundo.com>
71861
71862         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
71863         present.
71864
71865 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
71866
71867         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
71868         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
71869         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
71870
71871 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
71872
71873         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
71874
71875 2006-06-26  Bruno Haible  <bruno@clisp.org>
71876
71877         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
71878
71879 2006-06-26  Bruno Haible  <bruno@clisp.org>
71880
71881         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
71882
71883 2006-06-26  Bruno Haible  <bruno@clisp.org>
71884
71885         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
71886         SGI C compiler in pre-C99 mode.
71887         Suggested by Mark D. Baushke and Larry Jones.
71888
71889 2006-06-26  Bruno Haible  <bruno@clisp.org>
71890
71891         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
71892         WCHAR_MAX.
71893         Reported by Mark D. Baushke and Larry Jones.
71894
71895 2006-06-26  Bruno Haible  <bruno@clisp.org>
71896
71897         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
71898         in pre-C99 mode.
71899         Suggested by Mark D. Baushke and Larry Jones.
71900
71901 2006-06-23  Simon Josefsson  <jas@extundo.com>
71902             Bruno Haible  <bruno@clisp.org>
71903
71904         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
71905         Emit mostlyclean-local rule.
71906         (func_emit_tests_Makefile_am): Likewise.
71907         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
71908
71909 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
71910
71911         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
71912
71913 2006-06-23  Bruno Haible  <bruno@clisp.org>
71914
71915         * tests/test-stdint.c: Update to match ISO C 99 Technical
71916         Corrigendum 1.
71917
71918 2006-06-23  Bruno Haible  <bruno@clisp.org>
71919
71920         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
71921
71922 2006-06-23  Bruno Haible  <bruno@clisp.org>
71923
71924         * lib/stdint_.h: Treat IRIX like OpenBSD.
71925
71926 2006-06-23  Bruno Haible  <bruno@clisp.org>
71927
71928         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
71929         ISO C 99 Technical Corrigendum 1.
71930
71931 2006-06-22  Simon Josefsson  <jas@extundo.com>
71932
71933         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
71934         MinGW.
71935
71936 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71937
71938         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
71939         needed.  Some compiler complained about some of them.  Problem reported
71940         by Larry Jones in
71941         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
71942
71943 2006-06-21  Simon Josefsson  <jas@extundo.com>
71944
71945         * tests/test-getaddrinfo.c: New file.
71946
71947         * modules/getaddrinfo-tests: New file.
71948
71949         * MODULES.html.sh: Add inet_pton.
71950
71951         * modules/inet_pton: New file.
71952
71953 2006-06-21  Simon Josefsson  <jas@extundo.com>
71954
71955         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
71956         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
71957         of using the (limited) gnulib implementation on Windows XP.
71958
71959         * m4/inet_pton.m4: New file.
71960
71961 2006-06-21  Simon Josefsson  <jas@extundo.com>
71962
71963         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
71964         variable.
71965
71966         * lib/socket_.h: Don't define WINVER.
71967
71968         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
71969         slightly modified to work in gnulib.
71970
71971 2006-06-21  Simon Josefsson  <jas@extundo.com>
71972
71973         * doc/gnulib.texi (Windows sockets): Add.
71974
71975 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
71976
71977         * lib/read-file.c (fread_file): Start with buffer allocation of
71978         0 bytes rather than 1 byte; this simplifies the code.
71979         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
71980         code to free buffer and save/restore errno.
71981         (internal_read_file): Remove unused local.
71982
71983 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
71984
71985         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
71986         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
71987         Problem reported by Denis Excoffier in
71988         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
71989
71990 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71991
71992         * modules/sys_socket, modules/socklen: Include sys/types since
71993         FreeBSD 4.x's sys/socket.h needs it.
71994
71995 2006-06-19  Simon Josefsson  <jas@extundo.com>
71996
71997         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
71998
71999 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
72000
72001         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
72002
72003 2006-06-19  Bruno Haible  <bruno@clisp.org>
72004
72005         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
72006         and FULL_PATH_INTTYPES_H in angle brackets.
72007         Reported by Mark D. Baushke <mdb@gnu.org>.
72008
72009 2006-06-17  Eric Blake  <ebb9@byu.net>
72010
72011         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
72012         errno.
72013
72014 2006-06-17  Bruno Haible  <bruno@clisp.org>
72015
72016         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
72017         <sys/inttypes.h>.
72018
72019 2006-06-17  Bruno Haible  <bruno@clisp.org>
72020
72021         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
72022         whether errno is declared. Assume <errno.h> declares errno.
72023
72024 2006-06-17  Bruno Haible  <bruno@clisp.org>
72025
72026         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
72027
72028 2006-06-17  Bruno Haible  <bruno@clisp.org>
72029
72030         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
72031         problem on Solaris 2.5.1.
72032
72033 2006-06-16  Eric Blake  <ebb9@byu.net>
72034
72035         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
72036         * lib/unicodeio.c [!defined errno]: Likewise.
72037         * lib/strtol.c [!defined errno]: Likewise.
72038         * lib/strtod.c [!defined errno]: Likewise.
72039
72040 2006-06-15  Eric Blake  <ebb9@byu.net>
72041
72042         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
72043
72044 2006-06-15  Eric Blake  <ebb9@byu.net>
72045
72046         * config/srclist.txt (ssize_t.m4): Lose sync.
72047
72048 2006-06-15  Bruno Haible  <bruno@clisp.org>
72049
72050         * modules/stdint (Files): Include m4/full-header-path.m4,
72051         m4/size_max.m4, m4/wchar_t.m4.
72052         (Makefile.am): Many more substitutions.
72053         * modules/stdint-tests: New file.
72054         * tests/test-stdint.c: New file.
72055
72056 2006-06-15  Bruno Haible  <bruno@clisp.org>
72057
72058         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
72059         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
72060         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
72061         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
72062         gl_CHECK_TYPE_SAME): New macros.
72063
72064 2006-06-15  Bruno Haible  <bruno@clisp.org>
72065
72066         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
72067
72068 2006-06-15  Bruno Haible  <bruno@clisp.org>
72069
72070         * lib/stdint_.h: Rewritten to be fully auto-configured.
72071         Fixes bug on HP-UX/IA64.
72072
72073 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
72074
72075         * lib/getdate.y (__attribute__): Don't define if already defined.
72076         Problem reported by Larry Jones.
72077         * lib/utimens.c (__attribute__): Likewise.
72078
72079 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
72080
72081         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
72082         reported by Andreas Schwab.
72083
72084 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72085             Bruno Haible  <bruno@clisp.org>
72086
72087         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
72088         check for the declaration of strnlen and a run test that exposes the
72089         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
72090         rpl_strndup.
72091
72092 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72093             Bruno Haible  <bruno@clisp.org>
72094
72095         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
72096
72097 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72098
72099         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
72100         compile test, for Tru64 4.0D.
72101
72102 2006-05-28  Karl Berry  <karl@gnu.org>
72103
72104         * config/srclist.txt (printf-args.c): lose sync.
72105
72106 2006-05-26  Martin Lambers  <marlam@marlam.de>
72107
72108         * lib/getpass.c: Updates the test for the native W32 API, and adds
72109         missing includes, thus fixing compilation warnings.
72110
72111 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72112
72113         * lib/exclude.c (exclude_fnmatch): New function.
72114         (excluded_file_name): Call exclude_fnmatch.
72115         * lib/exclude.h (excluded_file_name): New prototype
72116
72117 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
72118
72119         * lib/tempname.c (small_open, large_open): New macros.
72120         (__open, __open64) [!_LIBC]: Remove.
72121         (__gen_tempname): Use small_open and large_open instead of __open
72122         and __open64.  This fixes a portability bug on HP-UX 11.11i
72123         reported by Simon Wing-Tang in
72124         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
72125
72126 2006-05-24  Bruno Haible  <bruno@clisp.org>
72127
72128         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
72129         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
72130         Reported by Thorsten Maerz <torte@netztorte.de> via
72131         Aaron Stone <aaron@serendipity.cx>.
72132
72133 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72134
72135         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
72136         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
72137         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
72138         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
72139         not really conditional on the cache.
72140         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
72141
72142 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
72143
72144         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
72145         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
72146         (my_usleep): Don't mishandle maximum value.
72147
72148 2006-05-19  Jim Meyering  <jim@meyering.net>
72149
72150         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
72151
72152 2006-05-17  Bruno Haible  <bruno@clisp.org>
72153
72154         Cygwin portability.
72155         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
72156
72157 2006-05-17  Bruno Haible  <bruno@clisp.org>
72158
72159         * lib/stdint_.h: Fix recognition of Cygwin.
72160
72161 2006-05-15  Bruno Haible  <bruno@clisp.org>
72162
72163         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
72164         on libtool patch by Ralf Wildenhues.
72165
72166 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
72167
72168         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
72169         test for C99 conformance; (bool) 0.5 is an integer constant
72170         expression, but (bool) -0.5 is not.  Problem reported by Fedor
72171         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
72172
72173 2006-05-11  Simon Josefsson  <jas@extundo.com>
72174
72175         * m4/xvasprintf.m4: Fix obvious typo.
72176
72177 2006-05-11  Jim Meyering  <jim@meyering.net>
72178
72179         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
72180         James Lemley.
72181
72182 2006-05-10  Simon Josefsson  <jas@extundo.com>
72183
72184         * lib/md4.c: Typo fix, update copyright years.
72185         (K1, K2): Don't use L because it turn computations into 64-bit on
72186         64-bit platforms.
72187
72188 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
72189
72190         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
72191         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
72192         unwanted sign propagation, e.g., on hosts with 64-bit int.
72193         There still are some problems with reeelly weird theoretical hosts
72194         (e.g., 33-bit int) but it's not worth worrying about now.
72195         * lib/sha1.c (rol): Likewise.
72196         (K1, K2, K3, K4): Remove unnecessary L suffix.
72197
72198 2006-05-10  Bruno Haible  <bruno@clisp.org>
72199
72200         * lib/des.c: Cast to avoid warnings.
72201
72202 2006-05-09  Bruno Haible  <bruno@clisp.org>
72203
72204         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
72205         (Depends-on): Depend also on xsize, stdarg.
72206         (configure.ac): Add gl_XVASPRINTF.
72207
72208 2006-05-09  Bruno Haible  <bruno@clisp.org>
72209
72210         * m4/xvasprintf.m4: New file.
72211
72212 2006-05-09  Bruno Haible  <bruno@clisp.org>
72213
72214         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
72215         (EOVERFLOW): Define fallback value.
72216         (xstrcat): New function.
72217         (xvasprintf): Recognize the special case of a string concatenation.
72218
72219 2006-05-08  Eric Blake  <ebb9@byu.net>
72220
72221         * gnulib-tool (func_version): Base copyright year on CVS date.
72222         (func_emit_copyright_notice): New function.
72223         (func_emit_lib_Makefile_am): Use it.
72224         (func_emit_tests_Makefile_am): Likewise.
72225         (func_import): Likewise.
72226
72227 2006-05-08  Bruno Haible  <bruno@clisp.org>
72228
72229         * modules/stdarg: New file.
72230         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
72231
72232 2006-05-08  Bruno Haible  <bruno@clisp.org>
72233
72234         * m4/stdarg.m4: New file, from GNU gettext.
72235
72236 2006-05-08  Bruno Haible  <bruno@clisp.org>
72237
72238         * config/srclist.txt (build-aux/config.rpath): different from latest
72239         release.
72240
72241 2006-05-08  Bruno Haible  <bruno@clisp.org>
72242
72243         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
72244
72245 2006-05-05  Jim Meyering  <jim@meyering.net>
72246
72247         * m4/warning.m4: New file, derived from bison's file by the same name.
72248
72249 2006-05-03  Bruno Haible  <bruno@clisp.org>
72250
72251         * lib/stdint_.h: Shorter URL.
72252         * lib/inttypes.h: Likewise.
72253
72254 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72255
72256         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
72257
72258 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72259
72260         * lib/verify.h: Document the internals better.  Most of this change
72261         was written by Bruno Haible.
72262
72263 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
72264
72265         * doc/verify.texi: New file, partly based on a proposal by
72266         Bruno Haible.
72267
72268 2006-05-02  Bruno Haible  <bruno@clisp.org>
72269
72270         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
72271         test from here...
72272         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
72273
72274 2006-04-29  Bruno Haible  <bruno@clisp.org>
72275
72276         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
72277         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
72278
72279 2006-04-29  Bruno Haible  <bruno@clisp.org>
72280
72281         * gnulib-tool: Make --update option actually work.
72282
72283 2006-04-29  Bruno Haible  <bruno@clisp.org>
72284
72285         * doc/gcd.texi: New file.
72286         * doc/gnulib.texi: Include it.
72287
72288 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
72289
72290         * lib/getdate.y (get_date): When adding relative date, start with the
72291         initial time, not with the result of the first mktime call.
72292
72293 2006-04-25  Bruno Haible  <bruno@clisp.org>
72294
72295         * gnulib-tool (func_import): Output the include directives in three
72296         blocks, sorted separately.
72297         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72298
72299 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
72300
72301         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
72302         to define main with arguments, for C++.  Reported by Eric Blake.
72303         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
72304         Prefer 'int main ()' to 'int main (void)', for C++.
72305         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
72306         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
72307         for 'main', for C99 and C++.
72308
72309 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
72310
72311         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
72312         Don't assume that exit status -1 is valid.
72313         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72314         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
72315         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
72316         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
72317         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
72318         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
72319         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
72320         functions can be used without declaring them, or that you can
72321         exit with status -1.
72322         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
72323
72324 2006-04-24  Karl Berry  <karl@gnu.org>
72325
72326         * config/srclist.txt (longdouble.m4): sync lost.
72327
72328 2006-04-24  Eric Blake  <ebb9@byu.net>
72329
72330         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
72331
72332 2006-04-24  Bruno Haible  <bruno@clisp.org>
72333
72334         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
72335         poll() implementation in AIX.
72336         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72337
72338 2006-04-24  Bruno Haible  <bruno@clisp.org>
72339
72340         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
72341         assigned exactly once.
72342
72343 2006-04-23  Claudio Fontana  <claudio@gnu.org>
72344             Bruno Haible  <bruno@clisp.org>
72345
72346         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
72347         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
72348         for AM_CPPFLAGS.
72349
72350 2006-04-23  Bruno Haible  <bruno@clisp.org>
72351
72352         * modules/copy-file: Depend on unistd.
72353         * modules/execute: Likewise.
72354         * modules/fatal-signal: Likewise.
72355         * modules/findprog: Likewise.
72356         * modules/mkdtemp : Likewise.
72357         * modules/pipe: Likewise.
72358         * modules/wait-process: Likewise.
72359
72360 2006-04-23  Bruno Haible  <bruno@clisp.org>
72361
72362         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
72363         condition was already detected.
72364         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72365
72366 2006-04-23  Bruno Haible  <bruno@clisp.org>
72367
72368         * lib/copy-file.c: Include <unistd.h> unconditionally.
72369         * lib/execute.c: Likewise.
72370         * lib/fatal-signal.c: Likewise.
72371         * lib/findprog.c: Likewise.
72372         * lib/mkdtemp.c: Likewise.
72373         * lib/pipe.h: Likewise.
72374         * lib/pipe.c: Likewise.
72375         * lib/wait-process.h: Likewise.
72376
72377 2006-04-23  Bruno Haible  <bruno@clisp.org>
72378
72379         * gnulib-tool (func_usage): Fix --import description. Document
72380         --update.
72381         (func_import): Create temporary file in a temporary directory, if
72382         --dry-run is specified. Silence errors from 'grep' when there are no
72383         m4 files in $m4dir.
72384         (func_create_testdir): Silence errors from 'grep' when there are no
72385         m4 files in $m4dir.
72386         Reported by Karl Berry <karl@freefriends.org>.
72387
72388 2006-04-20  Bruno Haible  <bruno@clisp.org>
72389
72390         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
72391         one argument, so that the code will be portable to Autoconf 2.60.
72392         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
72393         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
72394         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
72395
72396 2006-04-19  Derek Price  <derek@ximbiot.com>
72397             Eric Blake  <ebb9@byu.net>
72398
72399         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
72400         rather than "/full/path.h".  Update comment to match.  Shorten &
72401         generalize m4_translit call via AS_TR_CPP.
72402
72403 2006-04-19  Derek Price  <derek@ximbiot.com>
72404             Eric Blake  <ebb9@byu.net>
72405
72406         * lib/inttypes.h: Correct grammar in comment.
72407
72408 2006-04-18  Derek Price  <derek@ximbiot.com>
72409             Paul Eggert  <eggert@cs.ucla.edu>
72410
72411         * modules/inttypes: New file.
72412         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
72413
72414 2006-04-18  Derek Price  <derek@ximbiot.com>
72415             Paul Eggert  <eggert@cs.ucla.edu>
72416
72417         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
72418         New files.
72419
72420 2006-04-18  Derek Price  <derek@ximbiot.com>
72421             Paul Eggert  <eggert@cs.ucla.edu>
72422
72423         * lib/inttypes.h: New file.
72424         * lib/strtoimax.c: Assume <inttypes.h>.
72425
72426 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
72427
72428         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
72429         isn't mounted.  Problem reported by Kir Kolyshkin.
72430
72431 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
72432
72433         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
72434         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
72435         Derek R. Price.
72436         * lib/regex.h (RE_DUP_MAX): Update comment to match current
72437         implementation.
72438
72439 2006-04-12  Eric Blake  <ebb9@byu.net>
72440
72441         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
72442         is now done automatically by the corresponding Autoconf macro.
72443
72444 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
72445
72446         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
72447         time_r.h.
72448
72449 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72450
72451         Merge regex changes from libc, removing some of our
72452         POSIX-conformance changes that were rejected and redoing them in a
72453         less-intrusive way.
72454
72455         * lib/regcomp.c (re_compile_internal, init_dfa):
72456         Length arg is now size_t, not Idx.  All uses changed.
72457         (peek_token): Forward decl now says internal_function.
72458         (__re_error_msgid, __re_error_msgid_idx):
72459         Now static rather than extern with attribute_hidden.
72460         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
72461         For some reason libc prefers K&R style defns for external functions.
72462         (regerror) [!defined _LIBC]: Likewise.
72463         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
72464         (seek_collating_symbol_entry, lookup_collation_sequence_value):
72465         (build_range_exp, build_collating_symbol):
72466         Use K&R-style defn.
72467         (re_compile_fastmap): Use '\0' to memset, not 0.
72468         (utf8_sb_map): Make the calculations more obvious.
72469         (init_dfa, parse_bracket_exp, build_charclass_op):
72470         Call calloc and cast result, as glibc does.
72471         (init_word_char, fetch_token, peek_token, peek_token_bracket):
72472         (build_range_exp, build_collating_symbol):
72473         Now internal functions.
72474
72475         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
72476
72477         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
72478         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
72479         Don't depend on VMS; depend on __VMS instead, for POSIX
72480         namespace cleanness.
72481         (regoff_t): Define to ssize_t, not long int.
72482
72483         Remove the REG_ macros named below.  Instead, make the old names
72484         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
72485         __USE_GNU_REGEX.
72486         (REG_BACKSLASH_ESCAPE_IN_LISTS):
72487         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
72488         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
72489         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
72490         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
72491         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
72492         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
72493         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
72494         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
72495         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
72496         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
72497         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
72498         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
72499         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
72500         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
72501         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
72502         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
72503         (REG_NREGS):
72504         Remove.  All uses replaced by the old RE_* names.
72505         (RE_BACKSLASH_ESCAPE_IN_LISTS):
72506         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
72507         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
72508         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
72509         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
72510         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
72511         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
72512         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
72513         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
72514         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
72515         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
72516         Don't bother having these macros be independent of each others'
72517         values, since they no longer exist in the POSIX name space.
72518
72519         Rename the following member names back to their old names,
72520         unless !__USE_GNU_REGEX.  All uses changed back.
72521         (buffer): Renamed from re_buffer.
72522         (allocated): Renamed from re_allocated.
72523         (used): Renamed from re_used.
72524         (syntax): Renamed from re_syntax.
72525         (fastmap): Renamed from re_fastmap.
72526         (translate): Renamed from re_translate.
72527         (can_be_null): Renamed from re_can_be_null.
72528         (regs_allocated): Renamed from re_regs_allocated.
72529         (fastmap_accurate): Renamed from re_fastmap_accurate.
72530         (no_sub): Renamed from re_no_sub.
72531         (not_bol): Renamed from re_not_bol.
72532         (not_eol): Renamed from re_not_eol.
72533         (newline_anchor): Renamed from re_newline_anchor.
72534         (num_regs): Renamed from rm_num_regs.
72535         (start): Renamed from rm_start.
72536         (end): Renamed from rm_end.
72537
72538         (free_state): Move up a bit.
72539
72540         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
72541         #define to be empty.
72542         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
72543         when that is what is intended.
72544         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
72545         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
72546         (MAX): New macro.
72547         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
72548         All uses changed back to re_malloc, etc.  It's now the caller's
72549         responsibility to check for overflow; all callers changed.
72550         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
72551         (re_x2nrealloc): Remove.
72552         (free_state): Remove decl.
72553
72554         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
72555         (re_set_registers, re_exec):
72556         Use K&R-style defn.
72557
72558         2006-01-31  Roland McGrath  <roland@redhat.com>
72559
72560         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
72561         Reported by Mike Frysinger <vapier@gentoo.org>.
72562
72563         2006-01-15  Andreas Jaeger  <aj@suse.de>
72564
72565         [BZ #1950]
72566         * lib/regex_internal.c (re_string_reconstruct): Adjust for
72567         build_wcs_upper_buffer change.
72568         (build_wcs_upper_buffer): Change return type.
72569
72570         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
72571
72572         * lib/regex_internal.h: Include <stdint.h> if available.
72573
72574         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
72575
72576         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
72577
72578         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
72579
72580         * lib/regcomp.c: Adjust for changed secondary hash function.
72581
72582         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
72583
72584         * lib/regex.h: Pretty printing.
72585         Clean up namespace a bit.
72586
72587         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
72588
72589         * lib/regexec.c (update_cur_sifted_state, check_arrival,
72590         check_arrival_add_next_nodes): Avoid using uninitialized variable.
72591
72592         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
72593                     Ulrich Drepper  <drepper@redhat.com>
72594
72595         [BZ #1302]
72596         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
72597         changed.
72598         (bitset_word_t): Renamed from bitset_word.  All uses changed.
72599
72600         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
72601
72602         [BZ #281]
72603         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
72604         * lib/regcomp.c: Remove unnecessary uses of
72605         unsigned RE_TRANSLATE_TYPE.
72606         * lib/regex_internal.h: Likewise.
72607         * lib/regex_internal.c: Likewise.
72608         * lib/regexec.c: Likewise.
72609         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
72610
72611         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
72612
72613         * lib/regexec.c (find_recover_state): Remove unnecessary
72614         initialization.
72615         (transit_state_bkref): Make DFA a const pointer.
72616         (get_subexp): Likewise.
72617         (check_arrival): Likewise.
72618         (update_cur_sifted_state): Likewise.
72619         (re_search_internal): Likewise.
72620         (prune_impossible_nodes): Likewise.
72621         (acquire_init_state_context): Likewise.
72622         (proceed_next_node): Likewise.
72623         (set_regs): Likewise.
72624         (free_fail_stack_return): Likewise.
72625         (check_arrival_expand_ecl): Mark DFA parameter as const.
72626         (check_arrival_expand_ecl_sub): Likewise.
72627         (check_subexp_limits): Likewise.
72628         (sub_epsilon_src_nodes):  Likewise.
72629         (add_epsilon_src_nodes):  Likewise.
72630         (merge_state_array): Likewise.
72631         (update_regs): Likewise.
72632         (build_trtable): Likewise.
72633         (sift_states_backward): Mark MCTX parameter as const.
72634         (build_sifted_states): Likewise.
72635         (update_cur_sifted_state): Likewise.
72636         (sift_states_mkref): Likewise.
72637         (check_arrival_expand_ecl): Mark eclosure as const.
72638         (check_dst_limits_calc_pos_1): Likewise.
72639         * lib/regex_internal.h (re_match_context_t): Make dfa a const
72640         pointer.
72641
72642         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
72643
72644         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
72645         (transit_state_sb): Likewise.
72646         (transit_state_mb): Likewise.
72647         (sift_states_iter_mb): Likewise.
72648         (check_arrival_add_next_nodes): Likewise.
72649         (check_node_accept_bytes): Change first parameter to pointer-to-const.
72650         [_LIBC] (re_search_2_stub): Use mempcpy.
72651
72652         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
72653         mbrtowc for very simple UTF-8 case.
72654
72655         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
72656         a pointer-to-const.
72657         (re_acquire_state_context): Likewise.
72658         * lib/regex_internal.h: Adjust prototypes.
72659
72660         * lib/regex.c: Prevent using C++ compilers.
72661
72662         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
72663         (re_acquire_state_context): Likewise.
72664
72665 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72666
72667         * modules/regex (Depends-on): Add ssize_t.
72668
72669 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72670
72671         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
72672         translation table.
72673
72674 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
72675
72676         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
72677
72678 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
72679             Bruno Haible  <bruno@clisp.org>
72680
72681         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
72682         <sys/types.h> and <inttypes.h>.
72683
72684 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72685
72686         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
72687         `__error_t_defined', so argp.h will not typedef the former.
72688
72689 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
72690
72691         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
72692         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
72693         glibc names.  Even if glibc is changed to conform to POSIX, the
72694         traditional names will be available anyway, since regex depends on
72695         the extensions module.  Also, fix a longstanding typo in the
72696         implementation of Spencer ERE test #75 from grep 2.3.  Problems
72697         reported by Emanuele Giaquinta.  Also, change sense of cached
72698         variable, so that the message makes sense.
72699
72700 2006-03-24  Simon Josefsson  <jas@extundo.com>
72701
72702         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
72703         including some doc fixes.
72704         (base64_encode_alloc): Fix +1 bug on allocation failures.
72705
72706 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72707
72708         * lib/base64.c (base64_encode): Do not read past end of array with
72709         unsanitized input on systems with CHAR_BIT > 8.
72710
72711 2006-03-24  Eric Blake  <ebb9@byu.net>
72712
72713         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
72714
72715 2006-03-22  Karl Berry  <karl@gnu.org>
72716
72717         * config/srclist.txt (*setenv.[ch]): get from coreutils.
72718         * config/srclistvars.sh (COREUTILS): new var.
72719
72720 2006-03-17  Jim Meyering  <jim@meyering.net>
72721
72722         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
72723         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
72724
72725 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72726
72727         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
72728         no longer needs it.  Instead, check that regoff_t is as least
72729         as wide as ptrdiff_t.
72730
72731         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
72732         so that our regex.h stays compatible with the installed regex.
72733         This is helpful for installers who configure --without-included-regex.
72734         Problem reported by Emanuele Giaquinta.
72735
72736 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
72737
72738         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
72739         Typedef to long int, not to off_, as POSIX will likely change
72740         in that direction.
72741
72742 2006-03-15  Eric Blake  <ebb9@byu.net>
72743
72744         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
72745
72746 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
72747
72748         * lib/argp-help.c (validate_uparams): Fix typo
72749         * lib/argp-parse.c (argp_default_options): Consistently begin help
72750         messages with a lowercase letter.
72751
72752 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
72753
72754         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
72755         overrun buffers and shouldn't be used (much as gets shouldn't be
72756         used).
72757         * lib/time_r.c (asctime_r, ctime_r): Likewise.
72758
72759 2006-03-08  Simon Josefsson  <jas@extundo.com>
72760
72761         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
72762         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72763
72764 2006-03-08  Simon Josefsson  <jas@extundo.com>
72765
72766         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
72767         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72768
72769 2006-03-08  Simon Josefsson  <jas@extundo.com>
72770
72771         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
72772         signal that configure disabled the device.
72773
72774 2006-03-08  Simon Josefsson  <jas@extundo.com>
72775
72776         * build-aux/maint.mk: Fix refresh-po, to handle no translated
72777         languages.
72778
72779 2006-03-07  Simon Josefsson  <jas@extundo.com>
72780
72781         * modules/getopt (Depends-on): Add unistd.
72782
72783         * modules/unistd: New file.
72784
72785 2006-03-07  Simon Josefsson  <jas@extundo.com>
72786
72787         * modules/gc-random: New file.
72788
72789 2006-03-07  Simon Josefsson  <jas@extundo.com>
72790
72791         * m4/unistd_h.m4: New file.
72792
72793 2006-03-07  Simon Josefsson  <jas@extundo.com>
72794
72795         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
72796         test to be side-effect free by storing the result in the cache
72797         variable gl_cv_lib_readline, and moving the assignment of
72798         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
72799         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72800
72801 2006-03-07  Simon Josefsson  <jas@extundo.com>
72802
72803         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
72804         error on missing devices (the functions will return an error).
72805
72806         * m4/gc.m4: Move random stuff to gc-random.m4
72807
72808 2006-03-07  Simon Josefsson  <jas@extundo.com>
72809
72810         * lib/unistd_.h: New file.
72811
72812 2006-03-07  Simon Josefsson  <jas@extundo.com>
72813
72814         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
72815
72816 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72817
72818         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
72819         Problem reported by Juan Manuel Guerrero.
72820
72821 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72822
72823         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
72824         the unistd module.
72825         * lib/getlogin_r.c: Likewise.
72826         * lib/getlogin_r.h: Likewise.
72827         * lib/glob.c: Likewise.
72828         * lib/pagealign_alloc.c: Likewise.
72829         * lib/unistd_.h: Remove; no longer needed.
72830
72831 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
72832
72833         * MODULES.html.sh (Support for systems lacking POSIX:2001):
72834         Add unistd.
72835         * modules/c-stack (Depends-on): Add unistd.
72836         * modules/getlogin_r: Likewise.
72837         * modules/glob: Likewise.
72838         * modules/pagealign_alloc: Likewise.
72839         * modules/unistd (Files): Remove lib/unistd_.h.
72840         (EXTRA_DIST): Remove.
72841         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
72842         need unistd_.h.
72843         (MOSTLYCLEANFILES): Remove unistd.h-t.
72844
72845 2006-03-03  Simon Josefsson  <jas@extundo.com>
72846
72847         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
72848
72849 2006-03-03  Simon Josefsson  <jas@extundo.com>
72850
72851         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
72852         libidn and bison.
72853
72854 2006-03-03  Simon Josefsson  <jas@extundo.com>
72855
72856         * build-aux/maint.mk: Add indent target.
72857
72858 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
72859
72860         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
72861         our replacement poll.h in any case, to avoid a differing
72862         declaration from a system header.  Seen on AIX.
72863
72864 2006-03-01  Simon Josefsson  <jas@extundo.com>
72865
72866         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
72867         <kasal@ucw.cz>.
72868
72869 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72870
72871         * modules/gettime (Depends-on): Add extensions module.
72872         * modules/nanosleep (Depends-on): Likewise.
72873         * modules/settime (Depends-on): Likewise.
72874
72875 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
72876
72877         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
72878         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
72879         pedantically.
72880         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72881         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
72882
72883         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
72884         not "==".  Reported by Ralf Wildenhues.
72885
72886 2006-03-01  Karl Berry  <karl@gnu.org>
72887
72888         * doc/Copyright/request-*: new files, synced from gnuorg.
72889
72890 2006-03-01  Karl Berry  <karl@gnu.org>
72891
72892         * config/srclist.txt (Copyright/*): new entries.
72893
72894 2006-02-28  Simon Josefsson  <jas@extundo.com>
72895
72896         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
72897
72898 2006-02-27  Simon Josefsson  <jas@extundo.com>
72899
72900         * lib/base64.h: Indent #define's.  From Jim Meyering
72901         <jim@meyering.net>.
72902
72903 2006-02-27  Jim Meyering  <jim@meyering.net>
72904
72905         Revert the change of 2006-02-24, so these files can continue
72906         to be sync'd from gettext.
72907         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
72908         of `config.h'.
72909
72910 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
72911
72912         * modules/intprops: New file.
72913         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72914         Add intprops.
72915         * modules/getloadavg (Files): Remove lib/intprops.h.
72916         (Depends-on): Add intprops.
72917         * modules/human: Likewise.
72918         * modules/inttostr: Likewise.
72919         * modules/openat: Likewise.
72920         * modules/sig2str: Likewise.
72921         * modules/userspec: Likewise.
72922         * modules/utimecmp: Likewise.
72923         * modules/xnanosleep: Likewise.
72924         * modules/xstrtol: Likewise.
72925
72926 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
72927
72928         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
72929         * modules/lock-tests (TESTS): Use $(EXEEXT).
72930         * modules/tls-tests: Likewise.
72931         * modules/argp-tests: Likewise.
72932         (check_PROGRAMS): New var, replacing...
72933         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
72934
72935 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72936
72937         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
72938         `config.h'.
72939
72940 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72941
72942         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
72943
72944 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72945
72946         Sync from coreutils.
72947         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
72948         gl_CHDIR_SAFER.
72949
72950 2006-02-22  Jim Meyering  <jim@meyering.net>
72951
72952         Sync from coreutils.
72953         * m4/chdir-safer.m4: New file.
72954
72955 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72956
72957         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
72958         AT_FDCWD exceeds INT_MAX.
72959         * lib/openat.h (AT_FDCWD): Likewise.
72960
72961 2006-02-17  Eric Blake  <address@hidden>
72962
72963         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
72964
72965 2006-02-16  Simon Josefsson  <jas@extundo.com>
72966
72967         * modules/getaddrinfo (Depends-on): Add sys_socket.
72968
72969 2006-02-15  Simon Josefsson  <jas@extundo.com>
72970
72971         * build-aux/maint.mk: Add dsyntax-check rule.
72972
72973 2006-02-15  Eric Blake  <ebb9@byu.net>
72974
72975         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
72976         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
72977         'present but cannot compile' warnings on cygwin.
72978         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
72979         use ws2tcpip.h if sys/socket.h works.
72980         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
72981         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
72982
72983 2006-02-14  Simon Josefsson  <jas@extundo.com>
72984
72985         * modules/maintainer-makefile (Files): Rename.
72986
72987         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
72988         and (the local) Makefile.cfg to maint-cfg.mk.
72989
72990         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
72991         to the latter.
72992
72993         * modules/maintainer-makefile: New module.
72994
72995         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
72996         severaly stripped to make it possible to build it up from scratch
72997         with reliable tests.
72998
72999         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
73000         fixes to permit overriding the default actions when configure and
73001         makefile are not available.
73002
73003 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
73004
73005         Sync from coreutils.
73006         * modules/lstat (Depends-on): Don't depend on xalloc.
73007         (License): Change from GPL to LGPL, since this is now simply a
73008         replacement for a libc function.
73009
73010 2006-02-14  Jim Meyering  <jim@meyering.net>
73011
73012         Sync from coreutils.
73013
73014         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
73015         failure on deficient systems, and simplify gnulib lgpl dependencies.
73016         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
73017         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
73018
73019         * lib/xalloc-die.c: Remove unused definition of N_.
73020
73021 2006-02-14  Jim Meyering  <jim@meyering.net>
73022
73023         Sync from coreutils.
73024         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
73025         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
73026         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
73027         double-quote uses of that variable, to accommodate the rare case in
73028         which getmntent is available in none of the libraries checked.  This
73029         happens at least on FreeBSD 5.0.
73030
73031 2006-02-13  Simon Josefsson  <jas@extundo.com>
73032
73033         * gnulib-tool (Usage): Fix --import, from
73034         karl@freefriends.org (Karl Berry).
73035
73036 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
73037
73038         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
73039
73040 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
73041
73042         * lib/argp-namefrob.h: Restore changes accidentally lost during the
73043         "autoupdate" on 2005-12-12.
73044
73045 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
73046
73047         * modules/closeout (Depends-on): Remove atexit.
73048
73049 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
73050
73051         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
73052         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
73053
73054 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
73055
73056         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
73057         __EXTENSIONS__ if this causes compilation to fail.  Problem
73058         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
73059         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
73060
73061 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
73062
73063         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
73064         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
73065         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
73066         All uses changed.
73067
73068 2006-01-26  Simon Josefsson  <jas@extundo.com>
73069
73070         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
73071         prototype is visible on mingw32.
73072
73073         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
73074         for mingw32.
73075
73076         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
73077         mingw32).
73078
73079 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
73080
73081         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
73082         attempt to open for write; this always fails, at least on POSIX
73083         hosts.  This reinstates the 2006-01-09 change, which was
73084         inadvertently removed.
73085
73086 2006-01-26  Bruno Haible  <bruno@clisp.org>
73087
73088         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
73089         Reported by Paul Eggert.
73090
73091 2006-01-26  Bruno Haible  <bruno@clisp.org>
73092             Paul Eggert  <eggert@cs.ucla.edu>
73093
73094         * lib/stdbool_.h (_Bool)
73095         [(! (defined __cplusplus || defined __BEOS__)
73096           && !defined __GNUC__
73097           && !(defined __HP_cc || defined __xlc__
73098                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
73099                || defined __sgi))]:
73100         #define to signed char in these cases too; this simplifies
73101         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
73102         etc., separately) and makes it more conservative.
73103
73104 2006-01-25  Simon Josefsson  <jas@extundo.com>
73105
73106         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
73107         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
73108         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
73109
73110 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
73111
73112         * lib/argp-namefrob.h: Bugfix. Remove stray #
73113
73114 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
73115
73116         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
73117         so that we test the test.
73118         Check for yet another HP-UX cc bug involving *bool |= bool.
73119
73120 2006-01-25  Karl Berry  <karl@gnu.org>
73121
73122         * config/srclist.txt (vasnprintf.c): sync lost.
73123
73124 2006-01-25  Jim Meyering  <jim@meyering.net>
73125
73126         Sync from the stable (b5) branch of coreutils:
73127
73128         * lib/fts.c (fts_children): Don't let close() clobber errno from
73129         failed fchdir().
73130
73131         * lib/fts.c (fts_stat): When following a symlink-to-directory,
73132         don't necessarily interpret stat-fails+lstat-succeeds as indicating
73133         a dangling symlink.  That can also happen at least for ELOOP.
73134         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
73135         FYI, this bug predates the inclusion of fts.c in coreutils.
73136
73137         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
73138         in their own block, so pre-c99 compilers don't object.
73139
73140         Avoid the double-free (first in fts_read, second in fts_close) that
73141         would occur when an `active' directory is made inaccessible (e.g.,
73142         via chmod a-x) during a traversal.
73143         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
73144         before returning.  Reproduce this failure by
73145         mkdir -p a/b; cd a; chmod a-x . b
73146         Reported by Stavros Passas.
73147
73148 2006-01-25  Jim Meyering  <jim@meyering.net>
73149
73150         * lib/fileblocks.c: Remove more useless parentheses.
73151         * lib/readutmp.h: Likewise.
73152
73153 2006-01-25  Bruno Haible  <bruno@clisp.org>
73154
73155         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
73156         warnings.
73157         Reported by Paul Eggert.
73158
73159 2006-01-25  Bruno Haible  <bruno@clisp.org>
73160
73161         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
73162         rid of a trap command. For Solaris sh.
73163         Reported by Mark D. Baushke <mdb@gnu.org>.
73164
73165 2006-01-24  Simon Josefsson  <jas@extundo.com>
73166
73167         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
73168         Bruno.
73169
73170 2006-01-24  Karl Berry  <karl@gnu.org>
73171
73172         * config/srclist.txt (argp-namefrob.h): sync lost.
73173
73174 2006-01-24  Jim Meyering  <jim@meyering.net>
73175
73176         * modules/openat (Files): Add lib/intprops.h.
73177         From Mark D. Baushke.
73178
73179 2006-01-24  Jim Meyering  <jim@meyering.net>
73180
73181         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
73182         Reported by Mark D. Baushke.
73183
73184 2006-01-24  Jim Meyering  <jim@meyering.net>
73185
73186         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
73187
73188 2006-01-24  Bruno Haible  <bruno@clisp.org>
73189
73190         * modules/strnlen (Maintainer): Change from glibc to all.
73191
73192 2006-01-24  Bruno Haible  <bruno@clisp.org>
73193
73194         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
73195         Patch by Paul Eggert.
73196
73197 2006-01-24  Bruno Haible  <bruno@clisp.org>
73198
73199         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
73200         already has it.
73201         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
73202         2005-11-26.
73203
73204         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
73205         'signed char' to avoid problems with the built-in _Bool type.
73206         Reported by Paul Eggert on 2005-11-26.
73207
73208 2006-01-24  Bruno Haible  <bruno@clisp.org>
73209
73210         * gnulib-tool (func_import): Avoid constructing complicated sed
73211         expressions inside backquote.
73212         Report and solution by Mark D. Baushke <mdb@gnu.org>.
73213
73214 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
73215
73216         These changes imported from libc.
73217         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
73218         test and two separate function calls.
73219         * lib/strndup.c (__strndup): Add libc_hidden_def.
73220
73221 2006-01-23  Simon Josefsson  <jas@extundo.com>
73222
73223         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
73224         Remove the test_*_SOURCES variable: automake infers it by default.
73225         * modules/tls-tests: Likewise.
73226
73227 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73228
73229         Work around porting bugs reported by Dieter in
73230         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
73231         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
73232         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
73233         Include "getopt.h" first, to check interface.
73234         (getenv): Declare only if defined HAVE_DECL_GETENV &&
73235         !HAVE_DECL_GETENV.
73236         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
73237         (__strndup): Revert to K&R-style function dfns, the glibc style.
73238         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
73239         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
73240         Include strnlen.h first, to get prototype properly.
73241         (strnlen): Renamed from __strnlen.
73242         Remove weak alias.
73243
73244 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73245
73246         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
73247
73248 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73249
73250         * config/srclist.txt: Adjust to reflect glibc reorganization.
73251         This affects only comments.
73252
73253 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73254
73255          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
73256          Reported by Bruce Korb <bkorb@gnu.org>.
73257
73258 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
73259
73260         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
73261         to pacify gcc -Wswitch-default.
73262
73263 2006-01-22  Bruno Haible  <bruno@clisp.org>
73264
73265         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
73266         temporary buffer for sprintf, take into account the precision also
73267         for 'd', 'i', 'u', 'o', 'x', 'X'.
73268
73269 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73270
73271         * modules/argp-tests: New module
73272         * tests/test-argp.c: New file
73273         * tests/test-argp-2.sh: New file
73274
73275 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
73276
73277         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
73278         (__argp_base_name): Removed
73279         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
73280         typo.
73281         (__argp_base_name): Provide macro definition or extern declaration
73282         depending on the configuration
73283
73284 2006-01-20  Simon Josefsson  <jas@extundo.com>
73285
73286         * modules/inet_ntop (Depends-on): Depend on sys_socket.
73287
73288 2006-01-20  Simon Josefsson  <jas@extundo.com>
73289
73290         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
73291
73292 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
73293
73294         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
73295         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
73296         Suggested by Bruno Haible.
73297
73298 2006-01-20  Karl Berry  <karl@gnu.org>
73299
73300         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
73301         until changes propagate, I guess.
73302
73303 2006-01-19  Simon Josefsson  <jas@extundo.com>
73304
73305         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
73306
73307 2006-01-19  Simon Josefsson  <jas@extundo.com>
73308
73309         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
73310
73311 2006-01-19  Simon Josefsson  <jas@extundo.com>
73312
73313         * gnulib-tool: Set check_PROGRAMS.
73314
73315         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
73316         modules/des-tests, modules/gc-arcfour-tests,
73317         modules/gc-arctwo-tests, modules/gc-des-tests,
73318         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
73319         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
73320         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
73321         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
73322         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
73323         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
73324         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
73325         test_*_SOURCES.
73326
73327 2006-01-18  Simon Josefsson  <jas@extundo.com>
73328
73329         * modules/socklen (Depends-on): Depend on sys_socket.
73330
73331 2006-01-18  Simon Josefsson  <jas@extundo.com>
73332
73333         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
73334         modules/des-tests, modules/gc-arcfour-tests,
73335         modules/gc-arctwo-tests, modules/gc-des-tests,
73336         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
73337         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
73338         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
73339         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
73340         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
73341         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
73342         $(EXEEXT) to automake TESTS variable, for mingw32.
73343
73344 2006-01-17  Simon Josefsson  <jas@extundo.com>
73345
73346         * modules/socklen (Include): Need sys/socket.h.
73347
73348 2006-01-17  Bruno Haible  <bruno@clisp.org>
73349
73350         * modules/ssize_t (Include): Add <sys/types.h>.
73351
73352 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
73353
73354         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
73355         it's not portable and it doesn't work with cross-compiles.
73356         Problem reported by Bruno Haible.  Fix missing-$ typo in
73357         'test "gl_cv_ignore_unused_libraries" ...' that prevented
73358         -zignore from being used with Sun's C compiler.
73359
73360 2006-01-12  Simon Josefsson  <jas@extundo.com>
73361
73362         * lib/base64.c: Fix warning, reported by Bruno Haible
73363         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
73364
73365 2006-01-12  Bruno Haible  <bruno@clisp.org>
73366
73367         * modules/ldd: New file.
73368         * build-aux/ldd.sh.in: New file.
73369         * MODULES.html.sh (Support for building libraries and executables): Add
73370         ldd.
73371
73372 2006-01-12  Bruno Haible  <bruno@clisp.org>
73373
73374         * m4/ldd.m4: New file.
73375
73376 2006-01-12  Bruno Haible  <bruno@clisp.org>
73377
73378         * gnulib-tool (func_import, func_create_testdir): Don't go into an
73379         endless loop while replacing $auxdir with build-aux.
73380
73381 2006-01-11  Simon Josefsson  <jas@extundo.com>
73382
73383         * lib/stdint_.h (SIZE_MAX): Add missing (.
73384
73385 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
73386
73387         Sync from coreutils.
73388         * lib/md5.c: Fix commentary typos.
73389         (alignof, UNALIGNED_P): No need for a GCC-specific version.
73390         * lib/md5.h (__attribute__): Remove; unused.
73391         * lib/sha1.c: Fix commentary to match md5 better.
73392         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
73393         so that we don't need to worry about alignment.  All uses changed.
73394         This merges the 2005-10-28 md5 change into sha1.
73395
73396 2006-01-11  Jim Meyering  <jim@meyering.net>
73397
73398         Sync from coreutils.
73399         * lib/md5.c (OP): Fix spacing.
73400
73401 2006-01-11  Bruno Haible  <bruno@clisp.org>
73402
73403         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73404         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
73405         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
73406
73407 2006-01-11  Bruno Haible  <bruno@clisp.org>
73408
73409         Ensure automatic ordering between gl_LOCK and gl_ARGP.
73410         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
73411         the "early" section as well.
73412
73413 2006-01-11  Bruno Haible  <bruno@clisp.org>
73414
73415         Avoid "ar: no archive members specified" error on MacOS X.
73416         * gnulib-tool (func_modules_add_dummy): New function.
73417         (func_import, func_create_testdir): Invoke it.
73418
73419 2006-01-11  Bruno Haible  <bruno@clisp.org>
73420
73421         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
73422         with $auxdir in AC_CONFIG_FILES statements.
73423
73424 2006-01-11  Bruno Haible  <bruno@clisp.org>
73425
73426         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73427         Initialize also noinst_HEADERS to empty.
73428
73429 2006-01-11  Bruno Haible  <bruno@clisp.org>
73430
73431         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
73432         variables.
73433         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
73434         autoreconf.
73435
73436 2006-01-11  Bruno Haible  <bruno@clisp.org>
73437
73438         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
73439         overridable by the user.
73440         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73441
73442 2006-01-10  Simon Josefsson  <jas@extundo.com>
73443
73444         * modules/sys_socket: New file.
73445
73446 2006-01-10  Simon Josefsson  <jas@extundo.com>
73447
73448         * m4/sys_socket_h.m4: New file.
73449
73450 2006-01-10  Simon Josefsson  <jas@extundo.com>
73451
73452         * lib/socket_.h: New file.
73453
73454 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73455
73456         * modules/readutmp (Maintainer): Add myself.
73457
73458 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73459
73460         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
73461         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
73462         People who are still concerned with buggy memcmp implementations
73463         can invoke gl_FUNC_MEMCMP themselves.
73464
73465 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73466
73467         * lib/regex_internal.h (BITSET_WORD_BITS):
73468         Work around a bug in 64-bit PGC (before version 6.1-2), where the
73469         preprocessor mishandles large unsigned values as if they were signed.
73470         Problem reported by Claudio Fontana in
73471         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
73472
73473 2006-01-10  Jim Meyering  <jim@meyering.net>
73474
73475         Avoid the double-free (first in fts_read, second in fts_close) that
73476         would occur when an `active' directory is made inaccessible (e.g.,
73477         via chmod a-x) during a traversal.
73478         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
73479         before returning.  Reproduce this failure by
73480         mkdir -p a/b; cd a; chmod a-x . b
73481         Reported by Stavros Passas.
73482
73483         Sync from coreutils.
73484         * lib/sha1.c: Tweak grammar in a comment.
73485
73486 2006-01-10  Jim Meyering  <jim@meyering.net>
73487
73488         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
73489         Patch by Joerg Sonnenberger.
73490
73491 2006-01-10  Bruno Haible  <bruno@clisp.org>
73492
73493         * modules/readutmp: Depend on module free.
73494         * modules/strtok_r: Depend on module restrict.
73495
73496 2006-01-10  Bruno Haible  <bruno@clisp.org>
73497
73498         * modules/gettext (configure.ac): Add an invocation of
73499         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
73500
73501 2006-01-10  Bruno Haible  <bruno@clisp.org>
73502
73503         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
73504         Reported by Werner Lemberg <wl@gnu.org>.
73505
73506 2006-01-10  Bruno Haible  <bruno@clisp.org>
73507
73508         * lib/localcharset.c: Update from GNU gettext.
73509
73510 2006-01-10  Bruno Haible  <bruno@clisp.org>
73511
73512         * lib/argp.h (__const): Remove macro. Use const instead.
73513         * lib/argp-fmtstream.h (__const): Likewise.
73514         * lib/glob_.h (__const): Remove macro.
73515         * lib/glob-libc.h: Use const instead of __const.
73516
73517 2006-01-10  Bruno Haible  <bruno@clisp.org>
73518
73519         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
73520         variable.
73521         Needed to avoid an automake error regarding the 'gettext' module.
73522
73523 2006-01-09  Simon Josefsson  <jas@extundo.com>
73524
73525         * modules/inet_ntop (Depends-on): Add restrict.
73526
73527 2006-01-09  Simon Josefsson  <jas@extundo.com>
73528
73529         * modules/gc-rijndael-tests (License): Put under LGPL.
73530
73531         * modules/gc-des-tests (License): Likewise.
73532
73533         * modules/gc-arcfour-tests (License): Likewise.
73534
73535         * modules/gc-arctwo-tests (License): Likewise.
73536
73537         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
73538
73539         * modules/gc-hmac-sha1-tests (Files): Likewise.
73540
73541         * modules/gc-hmac-md5-tests (License): Likewise.
73542
73543         * modules/gc-sha1-tests (License): Likewise.
73544
73545         * modules/gc-md5-tests (License): Likewise.
73546
73547         * modules/gc-md4-tests (License): Likewise.
73548
73549         * modules/gc-md2-tests (License): Likewise.
73550
73551         * modules/gc-tests (License): Likewise.
73552
73553         * modules/des-tests (License): Likewise.
73554
73555         * modules/md4-tests (License): Likewise.
73556
73557         * modules/md2-tests (License): Likewise.
73558
73559 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73560
73561         Sync from coreutils:
73562
73563         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
73564         * modules/lib-ignore: New file.
73565         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
73566         chdir-safer.m4, lchmod.m4.
73567         * modules/openat: Add mkdirat.c, openat-priv.h.
73568
73569 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73570
73571         Sync from coreutils.
73572         * m4/lib-ignore.m4: New file.
73573         * m4/lchmod.m4: New file.
73574
73575 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73576
73577         Sync from coreutils.
73578         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
73579         for write access: POSIX says that must fail.
73580         * lib/fts.c (diropen): Likewise.
73581         * lib/save-cwd.c (save_cwd): Likewise.
73582         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
73583         well, for minor improvements on hosts that lack O_DIRECTORY.
73584         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
73585         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
73586         Fall back on chown if open failed with EACCES.
73587
73588         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
73589         Report an error at compile-time if only a 1-second nominal clock
73590         resolution is found.
73591
73592         * lib/lchmod.h: New file.
73593         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
73594         (make_dir_parents): Use lchown rather than chown, and
73595         lchmod rather than chmod.
73596
73597         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
73598         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
73599         "proc" reported by n0dalus.
73600
73601         * lib/mountlist.c: Include <limits.h>.
73602         (dev_from_mount_options)
73603         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
73604         New function.  It no longer assumes "dev=" has the System V meaning
73605         on Linux (since it doesn't).  It also parses "dev=" more carefully.
73606         (read_file_system_list)
73607         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
73608         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
73609         dev= in that case.
73610
73611         * lib/posixtm.h (PDS_PRE_2000): New macro.
73612         * lib/posixtm.c (year): Arg is now syntax_bits rather than
73613         allow_century.  All usages changed.  Reject dates outside the range
73614         1969-1999 if PDS_PRE_2000 is used.
73615
73616 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
73617
73618         Sync from coreutils.
73619         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
73620         (Time of day items): Mention the possibility of leap seconds.
73621         Problem reported by Dr. David Alan Gilbert.
73622
73623 2006-01-09  Jim Meyering  <jim@meyering.net>
73624
73625         Sync from coreutils.
73626
73627         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
73628
73629         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
73630
73631         * lib/modechange.c (mode_compile): Reject an invalid mode string
73632         that starts with an octal digit.  From Andreas Gruenbacher.
73633
73634         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
73635         and dup to open_safer and dup_safer, respectively.
73636         (openat_permissive): Fix typo in comment.
73637
73638         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
73639         "gettext.h"; either no longer needed or are guaranteed by openat.h.
73640         (_): Remove; no longer needed.
73641         (openat): Renamed from rpl_openat; no need for rpl_openat
73642         since openat.h renames openat for us.
73643         Replace most of the body with a call to openat_permissive,
73644         to avoid duplicate code.
73645         Port to (probably hypothetical) environments were mode_t is
73646         wider than int.
73647         (openat_permissive): Require mode arg, so that we can check
73648         types better.  Put it just after flags.  Change cwd failure
73649         indicator from pointer-to-bool to pointer-to-errno-value.
73650         All callers changed.
73651         Invoke openat_save_fail and/or openat_restore_fail if
73652         cwd_errno is null, so that openat can call us.
73653         (openat_permissive, fdopendir, fstatat, unlinkat):
73654         Simplify errno handling to avoid some duplicate code,
73655         as it's OK to set errno on success.
73656         * lib/openat.h: Revamp code so that function macros depend on
73657         __OPENAT_PREFIX only, not also on AT_FDCWD.
73658         (openat_ro): Remove.  Caller changed to use openat_permissive.
73659         (openat_permissive): Now a macro, if not a function.
73660         (openat_restore_fail, openat_save_fail): Now always functions,
73661         since mkdirat needs them even if __OPENAT_PREFIX is defined.
73662
73663         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
73664         and openat.c.
73665         * lib/mkdirat.c: Include openat-priv.h.
73666         Remove definitions of macros defined therein.
73667         * lib/openat.c: Likewise.
73668
73669         * lib/mkdirat.c (mkdirat): New file and function.
73670         * lib/openat.h (mkdirat): Declare.
73671
73672         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
73673
73674         * lib/openat.h (openat_permissive): Declare.
73675         (openat_ro): Define.
73676
73677         * lib/openat.c (EXPECTED_ERRNO): New macro.
73678         (openat_permissive): New function -- used in remove.c rewrite.
73679         (all functions): Set errno just before returning, only if there
73680         was an actual failure.
73681         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
73682
73683         Emulate openat-family functions using Linux's procfs, if possible.
73684         Idea and some code based on Ulrich Drepper's glibc changes.
73685
73686         * lib/openat.c: (BUILD_PROC_NAME): New macro.
73687         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
73688         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
73689         before falling back on save_cwd and restore_cwd.
73690         (fdopendir, fstatat, unlinkat): Likewise.
73691
73692         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
73693         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
73694
73695         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
73696         as second argument to va_arg.  Otherwise, some versions of gcc
73697         warn that `if this code is reached, the program will abort'.
73698
73699 2006-01-09  Jim Meyering  <jim@meyering.net>
73700
73701         Sync from coreutils.
73702         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
73703         Require openat-priv.h.
73704
73705 2006-01-09  Bruno Haible  <bruno@clisp.org>
73706
73707         * modules/strnlen (Include): Use strnlen.h.
73708
73709 2006-01-09  Bruno Haible  <bruno@clisp.org>
73710
73711         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
73712
73713 2006-01-09  Bruno Haible  <bruno@clisp.org>
73714
73715         * lib/sysexit_.h (EX_OK): New macro.
73716         Suggested by Martin Lambers <marlam@marlam.de>.
73717
73718 2006-01-09  Bruno Haible  <bruno@clisp.org>
73719
73720         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
73721         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
73722
73723 2006-01-09  Bruno Haible  <bruno@clisp.org>
73724
73725         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
73726         numbers.
73727
73728 2006-01-09  Bruno Haible  <bruno@clisp.org>
73729
73730         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
73731         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
73732         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
73733         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
73734
73735 2006-01-09  Bruno Haible  <bruno@clisp.org>
73736
73737         * build-aux/javacomp.sh.in: New file, moved from lib/.
73738         * modules/javacomp-script (Files): Update.
73739         (configure.ac): Add AC_CONFIG_FILES invocation.
73740         (EXTRA_DIST): Remove variable.
73741
73742         * build-aux/javaexec.sh.in: New file, moved from lib/.
73743         * modules/javaexec (Files): Update.
73744         (configure.ac): Add AC_CONFIG_FILES invocation.
73745         (EXTRA_DIST): Remove javaexec.sh.in.
73746
73747         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
73748         * modules/csharpcomp-script (Files): Update.
73749         (configure.ac): Add AC_CONFIG_FILES invocation.
73750         (EXTRA_DIST): Remove variable.
73751
73752         * build-aux/csharpexec.sh.in: New file, moved from lib/.
73753         * modules/csharpexec (Files): Update.
73754         (configure.ac): Add AC_CONFIG_FILES invocation.
73755         (EXTRA_DIST): Remove csharpexec.sh.in.
73756
73757 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73758
73759         Sync from coreutils.
73760
73761         Add POSIX ACL support
73762         * lib/acl.h (copy_acl, set_acl): Add declarations.
73763         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
73764         systems other than Linux.
73765         (chmod_or_fchmod): New function: use fchmod when possible,
73766         and chmod otherwise.
73767         (file_has_acl): Add a POSIX ACL implementation, with a
73768         Linux-specific subcase.
73769         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
73770         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
73771         acls are unsupported.
73772         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
73773         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
73774         are unsupported.
73775
73776 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
73777
73778         Sync from coreutils.
73779         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
73780
73781 2006-01-07  Bruno Haible  <bruno@clisp.org>
73782
73783         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
73784         gl_EARLY.
73785
73786 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73787
73788         * lib/strftime.c (tzname): Don't declare if it is already #defined.
73789         Problem reported for Mingw by Mark Junker.
73790
73791 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73792
73793         * README: Gnulib normally doesn't generate a tarball.
73794
73795 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
73796
73797         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
73798         long int, not int, for nanosecond counts, so that people who are
73799         used to POSIX struct timespec won't be surprised.  Reported by Jim
73800         Meyering.
73801
73802 2005-12-28  Bruno Haible  <bruno@clisp.org>
73803
73804         * build-aux/config.rpath: Update from GNU gettext.
73805
73806 2005-12-16  Jim Meyering  <jim@meyering.net>
73807
73808         * modules/fprintftime: New module.
73809         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
73810
73811 2005-12-16  Jim Meyering  <jim@meyering.net>
73812
73813         * m4/fprintftime.m4: New file.
73814
73815 2005-12-16  Jim Meyering  <jim@meyering.net>
73816
73817         * lib/fprintftime.c, lib/fprintftime.h: New files.
73818
73819 2005-12-15  Simon Josefsson  <jas@extundo.com>
73820
73821         * modules/socklen (configure.ac): Fix M4 macro name, to align with
73822         new m4/socklen.m4.
73823
73824 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73825
73826         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
73827         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
73828
73829 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73830
73831         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
73832         * lib/argp-help.c (fill_in_uparams): Check if the constructed
73833         struct uparams is valid. Fall back to the default values if it is
73834         not.
73835
73836 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73837
73838         * modules/argp (Files): Add argp-pin.c
73839         (Depends-on): dirname
73840         (lib_SOURCES): Add argp-pin.c
73841
73842 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73843
73844         * m4/argp.m4:  Check if program_invocation_name and
73845         program_invocation_short_name are declared and define appropriate
73846         macros if they are not.
73847
73848 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73849
73850         * lib/argp-help.c (__argp_base_name): New function
73851         (__argp_short_program_name): Rewrite using __argp_base_name
73852         * lib/argp-namefrob.h: Define program_invocation_name and
73853         program_invocation_short_name if requested
73854         (__argp_base_name): Add prototype
73855         * lib/argp-parse.c (argp_def): Use gettext wrappers
73856         (argp_default_parser): Use __argp_base_name
73857         * lib/argp-pin.c: New file. Defines program_invocation_name and
73858         program_invocation_short_name on systems that lack them.
73859
73860 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73861
73862         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
73863         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73864         porting problem reported by Georg Schwarz in
73865         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73866
73867 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
73868
73869         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
73870         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
73871         porting problem reported by Georg Schwarz in
73872         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
73873
73874 2005-12-05  Bruno Haible  <bruno@clisp.org>
73875
73876         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
73877         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
73878         Reported by Mark Junker <mjscod@gmx.de>.
73879
73880 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
73881
73882         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
73883         Use implementation from Albert Chin, with some
73884         comments/corrections by Stepan Kasal and myself.
73885
73886 2005-12-02  Bruno Haible  <bruno@clisp.org>
73887
73888         * gnulib-tool (func_import): Accept GPLed build tool modules when
73889         --lgpl is given.
73890         * modules/csharpcomp-script: New file.
73891         * modules/csharpcomp: Depend on it.
73892         * modules/javacomp-script: New file.
73893         * modules/javacomp: Depend on it.
73894         Suggested by Simon Josefsson.
73895
73896 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
73897
73898         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
73899         statement, to work around an HP-UX 10.20 compiler bug reported by
73900         Peter O'Gorman.
73901
73902 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73903
73904         * modules/savedir (Depends-on): Add openat.
73905
73906 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
73907
73908         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
73909         (uintmax_t) [defined uintmax_t]: Do not declare.
73910         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
73911         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
73912         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
73913         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
73914         sake of portability to weird hosts that C allows (though we don't
73915         know of any practical examples).
73916
73917         * lib/savedir.h (fdsavedir): New decl.
73918         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
73919         contains most of the former guts of savedir.
73920         (savedir): Use savedirstream.
73921         Include "openat.h".
73922
73923 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
73924
73925         * modules/obstack (Files): Add m4/ulonglong.m4.
73926         Problem reported by Davide Angelocola.
73927
73928 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
73929
73930         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
73931         coreutils no longer futzes with rounding modes.
73932
73933 2005-11-14  Jim Meyering  <jim@meyering.net>
73934
73935         * lib/mkstemp-safer.c: Include <config.h>, required for possible
73936         replacement of mkstemp.
73937
73938 2005-11-10  Simon Josefsson  <jas@extundo.com>
73939
73940         * lib/readline.c: Remove EOL.
73941
73942 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73943
73944         * modules/gethrxtime (Depends-on): Add gettime.
73945
73946 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73947
73948         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
73949         or gettimeofday; no longer needed.
73950
73951 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
73952
73953         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
73954         time business.
73955         (gethrxtime) [! (HAVE_NANOUPTIME
73956         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
73957         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
73958         our own approximation.
73959
73960 2005-11-08  Eric Blake  <ebb9@byu.net>
73961
73962         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73963
73964 2005-11-08  Eric Blake  <ebb9@byu.net>
73965
73966         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
73967
73968 2005-11-04  Bruno Haible  <bruno@clisp.org>
73969
73970         * gnulib-tool: Implement --update mode.
73971
73972 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73973
73974         Fix porting problem reported by Theodoros V. Kalamatianos.
73975         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
73976         Don't assume that futimes failing means we must fail.
73977
73978 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
73979
73980         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
73981         variables to suggest the intended function of the PATH_MAX check.
73982
73983 2005-10-30  Kean Johnston  <jkj@sco.com>
73984
73985         Trivial changes to support SCO systems.
73986         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
73987         as PATH_MAX.
73988         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
73989         where __ptr is null when no I/O is pending.
73990
73991 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
73992
73993         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
73994         leave errno alone.  Problem reported by Dmitry V. Levin.
73995
73996 2005-10-28  Simon Josefsson  <jas@extundo.com>
73997
73998         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
73999         Test more.
74000
74001         * tests/test-gc-md2.c, tests/test-md2.c: New files.
74002
74003         * modules/md2, modules/md2-tests: New files.
74004
74005 2005-10-28  Simon Josefsson  <jas@extundo.com>
74006
74007         * m4/inet_ntop.m4: More tests.
74008
74009         * m4/gc-md2.m4, md2.m4: New file.
74010
74011 2005-10-28  Simon Josefsson  <jas@extundo.com>
74012
74013         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
74014         "restrict" keywords, as per POSIX.  Protect the function
74015         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
74016         Don't use K&R prototypes.  Check the sprintf return values.
74017         Re-define EAFNOSUPPORT if not present.  Indent.
74018
74019         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
74020         suggested by Bruno Haible <bruno@clisp.org>.
74021
74022         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
74023
74024         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
74025
74026         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
74027         libgcrypt).
74028
74029         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
74030
74031         * lib/md2.h, lib/md2.c: New files.
74032
74033 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
74034
74035         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
74036         errno alone.  Problem reported by Frederic Jolliton.
74037
74038 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
74039
74040         * modules/verify (License): Change from GPL to LGPL.  This is a
74041         tiny module and there are apparently near-equivalents that are
74042         under the BSD license.
74043
74044 2005-10-24  Simon Josefsson  <jas@extundo.com>
74045
74046         * modules/sha1: Relicense to LGPL.
74047
74048 2005-10-24  Simon Josefsson  <jas@extundo.com>
74049
74050         * lib/md4.h: Shrink buffer size, now that we changed the type.
74051
74052 2005-10-23  Simon Josefsson  <jas@extundo.com>
74053
74054         * gnulib-tool (func_import): Fix --tests-base.
74055
74056 2005-10-22  Simon Josefsson  <jas@extundo.com>
74057
74058         * modules/arcfour (Depends-on): Need stdint.
74059
74060 2005-10-22  Simon Josefsson  <jas@extundo.com>
74061
74062         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
74063         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
74064
74065 2005-10-22  Simon Josefsson  <jas@extundo.com>
74066
74067         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
74068         suggested by Bruno Haible <bruno@clisp.org>.
74069
74070 2005-10-22  Simon Josefsson  <jas@extundo.com>
74071
74072         * lib/crc.h: Include stddef.h, for size_t.
74073
74074 2005-10-22  Simon Josefsson  <jas@extundo.com>
74075
74076         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
74077         arcfour_context struct (simplify test vector testing in GNU
74078         Shishi).
74079
74080 2005-10-21  Simon Josefsson  <jas@extundo.com>
74081
74082         * modules/des, modules/des-tests: New files.
74083
74084         * modules/gc-des, modules/gc-des-tests: New files.
74085
74086         * tests/test-des.c, tests/test-gc-des.c: New file.
74087
74088 2005-10-21  Simon Josefsson  <jas@extundo.com>
74089
74090         * modules/arctwo, modules/arctwo-tests: New files.
74091
74092         * tests/test-arctwo.c: New file.
74093
74094         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
74095
74096         * tests/test-gc-arctwo.c: New file.
74097
74098 2005-10-21  Simon Josefsson  <jas@extundo.com>
74099
74100         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
74101         Bruno Haible <bruno@clisp.org>.
74102
74103         * m4/gc-des.m4: New file.
74104
74105 2005-10-21  Simon Josefsson  <jas@extundo.com>
74106
74107         * m4/arctwo.m4: New file.
74108
74109         * m4/gc-arctwo.m4: New file.
74110
74111 2005-10-21  Simon Josefsson  <jas@extundo.com>
74112
74113         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
74114         block.
74115
74116 2005-10-21  Simon Josefsson  <jas@extundo.com>
74117
74118         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
74119         <bruno@clisp.org>.
74120
74121         * lib/hmac-sha1.c (hmac_sha1): Likewise.
74122
74123         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
74124         Bruno Haible <bruno@clisp.org>.
74125
74126         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
74127         <bruno@clisp.org>.
74128
74129 2005-10-21  Simon Josefsson  <jas@extundo.com>
74130
74131         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
74132
74133 2005-10-21  Simon Josefsson  <jas@extundo.com>
74134
74135         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
74136
74137 2005-10-21  Simon Josefsson  <jas@extundo.com>
74138
74139         * lib/des.h, lib/des.c: New files.
74140
74141         * lib/gc-gnulib.c: Support DES.c
74142
74143 2005-10-21  Simon Josefsson  <jas@extundo.com>
74144
74145         * lib/arctwo.h, lib/arctwo.c: New files.
74146
74147         * lib/gc-gnulib.c: Support ARCTWO.
74148
74149 2005-10-21  Simon Josefsson  <jas@extundo.com>
74150
74151         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
74152         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74153
74154 2005-10-21  Simon Josefsson  <jas@extundo.com>
74155
74156         * gnulib-tool (func_import, func_create_testdir): Define automake
74157         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
74158         Makefile.am snippet),
74159         suggested by Bruno Haible <bruno@clisp.org>.
74160
74161         * modules/gc (Makefile.am): Use it.
74162
74163 2005-10-21  Bruno Haible  <bruno@clisp.org>
74164
74165         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
74166         patch.
74167
74168 2005-10-19  Simon Josefsson  <jas@extundo.com>
74169
74170         * tests/test-gc-rijndael.c: New file.
74171
74172         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
74173
74174 2005-10-19  Simon Josefsson  <jas@extundo.com>
74175
74176         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
74177         interface too.
74178
74179 2005-10-19  Simon Josefsson  <jas@extundo.com>
74180
74181         * tests/test-gc-arcfour.c: New file.
74182
74183         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
74184
74185 2005-10-19  Simon Josefsson  <jas@extundo.com>
74186
74187         * modules/gc-md4, modules/gc-md4-tests: New file.
74188
74189         * tests/test-gc-md4.c: New file.
74190
74191 2005-10-19  Simon Josefsson  <jas@extundo.com>
74192
74193         * m4/gc-md4.m4: New file.
74194
74195 2005-10-19  Simon Josefsson  <jas@extundo.com>
74196
74197         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
74198         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
74199         <kasal@ucw.cz>.
74200
74201 2005-10-19  Simon Josefsson  <jas@extundo.com>
74202
74203         * m4/gc-arcfour.m4: New file.
74204
74205         * m4/gc-rijndael.m4: New file.
74206
74207 2005-10-19  Simon Josefsson  <jas@extundo.com>
74208
74209         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
74210
74211 2005-10-19  Simon Josefsson  <jas@extundo.com>
74212
74213         * lib/gc-gnulib.c: Support ARCFOUR.
74214
74215 2005-10-19  Simon Josefsson  <jas@extundo.com>
74216
74217         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
74218         support.
74219
74220         * lib/gc.h: Add ECB enum type.
74221
74222         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
74223
74224 2005-10-18  Simon Josefsson  <jas@extundo.com>
74225
74226         * tests/test-md5.c: New file.
74227
74228         * modules/md5-tests: New file.
74229
74230 2005-10-18  Simon Josefsson  <jas@extundo.com>
74231
74232         * tests/test-md4.c: New file.
74233
74234         * modules/md4, modules/md4-tests: New files.
74235
74236 2005-10-18  Simon Josefsson  <jas@extundo.com>
74237
74238         * m4/md4.m4: New file.
74239
74240 2005-10-18  Simon Josefsson  <jas@extundo.com>
74241
74242         * lib/md4.h, lib/md4.c: New files, based on md5.?.
74243
74244 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
74245
74246         * gnulib-tool (func_create_testdir): Omit the second check whether
74247         BUILT_SOURCES in nonempty.
74248
74249 2005-10-17  Simon Josefsson  <jas@extundo.com>
74250
74251         * tests/test-rijndael.c: New file.
74252
74253 2005-10-17  Simon Josefsson  <jas@extundo.com>
74254
74255         * modules/sha1: Depend on stdint instead of md5.
74256
74257         * modules/md5: Depend on stdint, remove uint32_t.
74258
74259 2005-10-17  Simon Josefsson  <jas@extundo.com>
74260
74261         * modules/gc-sha1-tests: New file.
74262
74263         * tests/test-gc-sha1.c: New file.
74264
74265 2005-10-17  Simon Josefsson  <jas@extundo.com>
74266
74267         * m4/md5.m4: Remove call to uint32_t.m4.
74268
74269 2005-10-17  Simon Josefsson  <jas@extundo.com>
74270
74271         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
74272
74273         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
74274         md5.h.
74275
74276         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
74277
74278         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
74279
74280 2005-10-17  Simon Josefsson  <jas@extundo.com>
74281
74282         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
74283
74284 2005-10-17  Simon Josefsson  <jas@extundo.com>
74285
74286         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
74287
74288 2005-10-17  Simon Josefsson  <jas@extundo.com>
74289
74290         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
74291
74292         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
74293
74294 2005-10-17  Bruno Haible  <bruno@clisp.org>
74295
74296         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
74297         that it can also be used in a test.
74298
74299 2005-10-16  Bruno Haible  <bruno@clisp.org>
74300
74301         * gnulib-tool (func_emit_tests_Makefile_am): Also define
74302         TESTS_ENVIRONMENT, so that individual tests can augment it.
74303
74304         * gnulib-tool (func_create_testdir): Use an intermediate target for
74305         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
74306         macros, like $(ALLOCA_H), which cannot be passed through the command
74307         line.
74308
74309 2005-10-15  Simon Josefsson  <jas@extundo.com>
74310
74311         * modules/rijndael-tests: New file.
74312
74313         * modules/rijndael: New file.
74314
74315 2005-10-15  Simon Josefsson  <jas@extundo.com>
74316
74317         * m4/rijndael.m4: New file.
74318
74319 2005-10-15  Simon Josefsson  <jas@extundo.com>
74320
74321         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
74322
74323         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
74324
74325 2005-10-14  Simon Josefsson  <jas@extundo.com>
74326
74327         * tests/test-arcfour.c: New file.
74328
74329         * modules/arcfour, modules/arcfour-tests: New files.
74330
74331 2005-10-14  Simon Josefsson  <jas@extundo.com>
74332
74333         * m4/arcfour.m4: New file.
74334
74335 2005-10-14  Simon Josefsson  <jas@extundo.com>
74336
74337         * lib/arcfour.h, lib/arcfour.c: New files.
74338
74339 2005-10-14  Roland McGrath  <roland@redhat.com>
74340
74341         Import from libc.  [BZ #1331]
74342         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
74343         macro argument.
74344         Reported by Matej Vela <vela@debian.org>.
74345
74346 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74347
74348         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
74349         include <wchar.h>; no longer needed.
74350
74351 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74352
74353         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
74354
74355 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
74356         and  Ulrich Drepper  <drepper@redhat.com>
74357
74358         Import from libc.
74359         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
74360         instead of inline stream orientation test and two separate
74361         function calls.  Pay no attention to USE_IN_LIBIO.
74362
74363 2005-10-13  Simon Josefsson  <jas@extundo.com>
74364
74365         * modules/gc-hmac-md5-tests: New file.
74366
74367         * tests/test-gc-hmac-sha1.c: New file.
74368
74369         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
74370
74371         * modules/gc-hmac-md5-tests: New file.
74372
74373         * tests/test-gc-md5.c: New file.
74374
74375         * modules/gc-md5-tests: New file.
74376
74377 2005-10-13  Simon Josefsson  <jas@extundo.com>
74378
74379         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
74380         Move memory allocation outside of loop.
74381
74382 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
74383
74384         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
74385         intermediate directory is in a read-only file system.  Problem
74386         reported by Eric Blake.
74387
74388 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
74389
74390         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
74391
74392 2005-10-12  Simon Josefsson  <jas@extundo.com>
74393
74394         * tests/test-hmac-sha1.c: New file.
74395
74396         * modules/hmac-sha1-tests: New file.
74397
74398         * modules/hmac-sha1: New file.
74399
74400 2005-10-12  Simon Josefsson  <jas@extundo.com>
74401
74402         * modules/gc-sha1: New file.
74403
74404 2005-10-12  Simon Josefsson  <jas@extundo.com>
74405
74406         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
74407
74408         * tests/test-gc-pbkdf2-sha1.c: New file.
74409
74410 2005-10-12  Simon Josefsson  <jas@extundo.com>
74411
74412         * modules/gc-md5, modules/gc-hmac-md5: New files.
74413
74414         * modules/gc (Files): Remove md5, memxor and hmac files.
74415
74416 2005-10-12  Simon Josefsson  <jas@extundo.com>
74417
74418         * m4/gc-pbkdf2-sha1.m4: New file.
74419
74420         * m4/gc-hmac-sha1.m4: New file.
74421
74422         * m4/gc-sha1: New file.
74423
74424         * m4/hmac-sha1.m4: New file.
74425
74426 2005-10-12  Simon Josefsson  <jas@extundo.com>
74427
74428         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
74429
74430         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
74431
74432 2005-10-12  Simon Josefsson  <jas@extundo.com>
74433
74434         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
74435         suggested by Bruno Haible <bruno@clisp.org>.
74436
74437 2005-10-12  Simon Josefsson  <jas@extundo.com>
74438
74439         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
74440
74441 2005-10-12  Simon Josefsson  <jas@extundo.com>
74442
74443         * lib/gc-pbkdf2-sha1.c: New file.
74444
74445         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
74446
74447 2005-10-12  Simon Josefsson  <jas@extundo.com>
74448
74449         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
74450
74451         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
74452
74453 2005-10-12  Simon Josefsson  <jas@extundo.com>
74454
74455         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
74456         GC_USE_HMAC_MD5, respectively.
74457
74458         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
74459         (gc_md5): Fix typo.
74460
74461         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
74462
74463         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
74464
74465         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
74466
74467 2005-10-12  Bruno Haible  <bruno@clisp.org>
74468
74469         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
74470         Reported by Stepan Kasal <kasal@ucw.cz>.
74471
74472 2005-10-11  Simon Josefsson  <jas@extundo.com>
74473
74474         * tests/test-crc.c: New file.
74475
74476         * modules/crc, modules/crc-tests: New files.
74477
74478 2005-10-11  Simon Josefsson  <jas@extundo.com>
74479
74480         * m4/crc.m4: New file.
74481
74482 2005-10-11  Simon Josefsson  <jas@extundo.com>
74483
74484         * lib/gc.h: Add gc_hash and gc_hash_buffer.
74485
74486         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
74487
74488         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
74489
74490 2005-10-11  Simon Josefsson  <jas@extundo.com>
74491
74492         * lib/crc.h, lib/crc.c: New files.
74493
74494         * lib/gc.h (gc_hash_buffer): Add doc.
74495
74496 2005-10-11  Bruno Haible  <bruno@clisp.org>
74497
74498         * modules/c-strcasestr: New file.
74499         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
74500
74501 2005-10-11  Bruno Haible  <bruno@clisp.org>
74502
74503         * modules/c-strcase: New file.
74504         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
74505
74506 2005-10-11  Bruno Haible  <bruno@clisp.org>
74507
74508         * lib/strcasecmp.c: Include limits.h.
74509         (strcasecmp): Avoid integer overflow on exotic platforms.
74510         * lib/strncasecmp.c: Include limits.h.
74511         (strncasecmp): Avoid integer overflow on exotic platforms.
74512         Reported by Paul Eggert.
74513
74514 2005-10-11  Bruno Haible  <bruno@clisp.org>
74515
74516         * lib/c-strcasestr.h: New file, from GNU gettext.
74517         * lib/c-strcasestr.c: New file, from GNU gettext.
74518
74519 2005-10-11  Bruno Haible  <bruno@clisp.org>
74520
74521         * lib/c-strcase.h: New file, from GNU gettext.
74522         * lib/c-strcasecmp.c: New file, from GNU gettext.
74523         * lib/c-strncasecmp.c: New file, from GNU gettext.
74524
74525 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74526
74527         * modules/mempcpy (License): GPL -> LGPL.
74528         * modules/strchrnul (License): Likewise.
74529         * modules/sysexits (License): Likewise.
74530
74531 2005-10-08  Simon Josefsson  <jas@extundo.com>
74532
74533         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
74534
74535 2005-10-07  Simon Josefsson  <jas@extundo.com>
74536
74537         * m4/memxor.m4: Remove gl_C_RESTRICT call.
74538
74539 2005-10-06  Simon Josefsson  <jas@extundo.com>
74540
74541         * tests/test-hmac-md5.c: New file.
74542
74543         * modules/hmac-md5-tests: New file.
74544
74545         * modules/hmac-md5: New file.
74546
74547 2005-10-06  Simon Josefsson  <jas@extundo.com>
74548
74549         * m4/hmac-md5.m4: New file.
74550
74551         * m4/memxor.m4: Require gl_C_RESTRICT.
74552
74553 2005-10-06  Simon Josefsson  <jas@extundo.com>
74554
74555         * lib/memxor.c (memxor): Avoid casts and warnings.
74556
74557 2005-10-06  Simon Josefsson  <jas@extundo.com>
74558
74559         * lib/hmac-md5.c: New file.
74560
74561         * lib/hmac.h: New file.
74562
74563 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74564
74565         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
74566         promotes to int, not unsigned int, to catch the AIX 5.3
74567         compiler bug.
74568
74569 2005-10-05  Simon Josefsson  <jas@extundo.com>
74570
74571         * modules/memxor: New file.
74572
74573         * modules/iconv (Files): Move config.rpath to havelib, it is used
74574         there.
74575
74576         * modules/havelib (Files): Add config.rpath.
74577
74578 2005-10-05  Simon Josefsson  <jas@extundo.com>
74579
74580         * m4/memxor.m4: New file.
74581
74582 2005-10-05  Simon Josefsson  <jas@extundo.com>
74583
74584         * lib/memxor.c (memxor): Fix compiler error.
74585
74586         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
74587         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
74588
74589         * lib/memxor.h, lib/memxor.c: New files.
74590
74591         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
74592         we assume all systems have it, suggested by Jim Meyering
74593         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
74594         any systems lack sys/socket.h; mingw32 is known to lack it, but we
74595         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
74596         same reasons.
74597
74598 2005-10-05  Simon Josefsson  <jas@extundo.com>
74599
74600         * config/srclist.txt: Add glibc bug 1423 for md5.h.
74601
74602 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
74603
74604         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
74605         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
74606         needed, since the source code now assumes these .h files.
74607
74608 2005-10-05  Derek Price  <derek@ximbiot.com>
74609
74610         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
74611
74612 2005-10-05  Bruno Haible  <bruno@clisp.org>
74613
74614         * modules/stdint (License): Change to LGPL.
74615
74616 2005-10-04  Simon Josefsson  <jas@extundo.com>
74617
74618         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
74619         D. Baushke" <mdb@gnu.org>.
74620
74621 2005-10-04  Bruno Haible  <bruno@clisp.org>
74622
74623         * lib/verify.h (verify_true): Provide alternative definition for C++.
74624
74625 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
74626
74627         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
74628         (SSIZE_MAX): New macro, if not already defined.
74629         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
74630         than 2 GiB.
74631
74632 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74633
74634         Sync from coreutils.
74635         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
74636         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
74637         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
74638         ULLONG_MAX doesn't work with 2.7.2.1.
74639
74640 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74641
74642         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
74643         From Ben Pfaff.
74644
74645         * modules/exclude (Depends-on): Depend on verify.
74646         * modules/strtoimax (Depends-on): Likewise.
74647         * modules/utimecmp (Depends-on): Likewise.
74648
74649 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
74650
74651         * lib/exclude.c: Include verify.h.
74652         (verify): Remove.  All callers changed to use verify.h's version.
74653         * lib/strtoimax.c: Likewise.
74654         * lib/utimecmp.c: Likewis.e
74655
74656         Sync from coreutils.
74657         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
74658         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
74659         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
74660         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
74661         bother returning ENOSYS if settimeofday or stime fails; just let
74662         them return whatever errno they want to return.
74663         * lib/utimens.c: Include unistd.h, for dup2.
74664         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
74665         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
74666
74667 2005-10-02  Jim Meyering  <jim@meyering.net>
74668
74669         Sync from coreutils.
74670         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
74671         from glibc-2.2.5 that fails for read-only files.
74672
74673 2005-10-02  Jim Meyering  <jim@meyering.net>
74674
74675         Sync from coreutils.
74676         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
74677         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
74678         `#if HAVE_CONFIG_H'.
74679         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
74680         Remove AT_FDCWD test.
74681         Do not consume the fd unless successful.
74682         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
74683         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
74684         block, so that we don't even try to compile it if settimeofday is
74685         available.  This works around a compilation failure on OSF1 V5.1,
74686         due to stime requiring a `long int*' while tv_sec is `int'.
74687
74688 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
74689
74690         Sync from coreutils.
74691         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
74692         against `yes', rather than just testing for nonempty.
74693
74694 2005-10-01  Simon Josefsson  <jas@extundo.com>
74695
74696         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
74697         and Darwin.
74698
74699         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
74700         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
74701         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
74702         freeaddrinfo and gai_strerror are declared by the POSIX headers.
74703         Check if struct addrinfo is declared.
74704
74705 2005-10-01  Simon Josefsson  <jas@extundo.com>
74706
74707         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
74708         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
74709         AI_* and EAI_* definitions.  Protect function declarations.
74710
74711 2005-10-01  Jim Meyering  <jim@meyering.net>
74712
74713         Sync from coreutils.
74714
74715         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
74716         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
74717         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
74718         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74719         in the inet and nsl libraries.  Required on Solaris 5.7.
74720
74721 2005-10-01  Jim Meyering  <jim@meyering.net>
74722
74723         Sync from coreutils.
74724         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
74725         in the inet and nsl libraries.  Required on Solaris 5.7.
74726
74727 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
74728
74729         * lib/getdelim.c (getdelim): Remove unused variables.
74730
74731 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
74732
74733         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
74734         so that the code works even with ancient cpp.  Portability problem
74735         with GCC 2.7.2.1 reported by Thomas M.Ott.
74736
74737 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
74738
74739         * modules/regex (Depends-on): Add strcase.
74740
74741         * modules/gethostname (Licence): Change from GPL to LGPL, since
74742         gethostname.c is a trivial implementation of a standard library
74743         function.
74744         * modules/poll (License): Change from GPL to LGPL, since it's
74745         derived from LGPL code.
74746
74747 2005-09-27  Jim Meyering  <jim@meyering.net>
74748
74749         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
74750         HAVE_CONFIG_H.
74751
74752         * lib/intprops.h (signed_type_or_expr__): Define.
74753         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
74754         for unsigned types.
74755
74756 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
74757
74758         * lib/verify.h (verify_expr): Remove, replacing with:
74759         (verify_true): New macro that returns true instead of void.
74760         (verify_type__): Remove.
74761         (verify): Use verify_true rather than verify_type__.
74762
74763 2005-09-26  Bruno Haible  <bruno@clisp.org>
74764
74765         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
74766         is necessary.
74767         (lib_SOURCES): Remove mbchar.c.
74768         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
74769         (Files): Add m4/mbrtowc.m4.
74770         * modules/mbiter: Likewise.
74771         * modules/mbuiter: Likewise.
74772
74773 2005-09-26  Bruno Haible  <bruno@clisp.org>
74774
74775         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
74776         compile mbchar.c if they are not both present.
74777         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
74778         * m4/mbiter.m4 (gl_MBITER): Likewise.
74779         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
74780         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
74781         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
74782
74783 2005-09-25  Jim Meyering  <jim@meyering.net>
74784
74785         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
74786         also uses socklen_t.
74787
74788 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
74789
74790         * lib/utimens.c (ENOSYS): Define if not already defined.
74791         (futimens): Support having a null PATH if the file descriptor
74792         is nonnegative.
74793
74794         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
74795         Remove.
74796         (__attribute): Define to empty unless GCC 3.1 or later.
74797         This works around a core dump on OpenBSD 3.4, which has GCC
74798         2.95.3, which dumps core when given __attribute__(()).  It also
74799         simplifies other tests, since we really don't want to bother with
74800         worrying about which ancient version of GCC supported what.
74801         Original problem reported by Yoann Vandoorselaere, with part of
74802         the fix suggested by Derek Price.
74803
74804 2005-09-24  Jim Meyering  <jim@meyering.net>
74805
74806         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
74807         so we can once again use a positive bitfield width of 1 -- now we
74808         don't have to explain why we were using a bitfield width of 2.
74809
74810 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74811
74812         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
74813         and similarly for the other external symbols.  Problem reported
74814         by James Gallager.
74815
74816         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
74817         bug reported by Jim Meyering.
74818
74819         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
74820         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
74821         not needed, since socklen is a prerequisite module.
74822
74823 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
74824
74825         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
74826         Problem reported by Eric Blake.
74827         (getaddrinfo): Initialize se so that it's not garbage.
74828         Redo internal storage allocation so that it doesn't make unportable
74829         assumptions about alignment.
74830         Fix a memory leak.
74831
74832         * lib/utimens.c (futimens): Use futimesat if available.
74833         Prefer it to futimes since it doesn't have the futimes bug.
74834
74835         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
74836         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
74837         Instead, declare a function that returns a pointer to an array,
74838         and use verify_type__ to declare the size of the array.
74839         Problem and germ of a solution reported by Bruno Haible.
74840         (verify_type__): Use 2, not 1, for bitfield size, to avoid
74841         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
74842
74843 2005-09-23  Jim Meyering  <jim@meyering.net>
74844
74845         Sync from coreutils.
74846         Correct build failure (socklen_t not defined) on at least
74847         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
74848         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
74849
74850 2005-09-23  Jim Meyering  <jim@meyering.net>
74851
74852         * modules/getaddrinfo (Depends-on): Add socklen.
74853
74854 2005-09-23  Bruno Haible  <bruno@clisp.org>
74855
74856         * tests/test-verify.c: New file.
74857
74858 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74859
74860         Sync from coreutils.
74861
74862         * modules/argmatch (Depends-on): Add verify.
74863         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
74864         unistd-safer.
74865         * modules/save-cwd (Depends-on): Likewise.
74866
74867         * modules/openat (Files): Add lib/openat-die.c.
74868         (Depends-on): Remove error, exitfail.
74869         Add dirname.
74870
74871         * modules/verify: New file.
74872         * MODULES.html.sh (Diagnostics <assert.h>): New section,
74873         with "verify" module.
74874
74875 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74876
74877         Sync from coreutils.
74878
74879         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
74880         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
74881         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
74882         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
74883         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
74884         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
74885         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
74886         Don't bother checking for string.h, stdlib.h, unistd.h.
74887         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
74888         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
74889         module's job.
74890         * m4/jm-macros.m4 (gl_MACROS): Likewise.
74891         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
74892
74893         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
74894         (gl_GETDATE): Use it.
74895
74896         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
74897
74898 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74899
74900         Sync from coreutils.
74901
74902         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
74903         stat-time.h.
74904         * lib/argmatch.h: Include verify.h
74905         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
74906         (ARGMATCH_ASSERT): Remove; unused.
74907         * lib/canonicalize.c: Assume STDC_HEADERS.
74908         * lib/exclude.c: Include "strcase.h".
74909         * lib/regex_internal.h [!defined _LIBC]: Likewise.
74910         * lib/getusershell.c: Include stdio--.h rather than stdio.h
74911         and stdio-safer.h.
74912         (getusershell): Call fopen, not fopen_safer.
74913         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
74914         Do not include unistd-safer.h.
74915         (save_cwd): Don't call fd_safer; no longer needed
74916         now that we include fcntl--.h.
74917
74918         * lib/getdate.y (relative_time): New type.
74919         (RELATIVE_TIME_0): New constant.
74920         (parser_control): Use relative_time instead of doing it ourselves.
74921         (%union): Add new relative_time rel member.
74922         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
74923         Now typeless.
74924         (relunit, relunit_snumber): Now of type rel.
74925         (zone, rel, relunit, get_date): Adjust to above changes.
74926
74927         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
74928         Do not include unistd-safer.h.
74929         (getloadavg): Don't call fd_safer; no longer needed
74930         now that we include fcntl--.h.
74931
74932         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
74933         (make_dir_parents): Treat ENOSYS like EEXIST.
74934
74935         Improve quality of diagnostics on restore_cwd failure.
74936         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
74937         (make_dir_parents): Last arg is now int * (for errno), not bool *.
74938         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
74939         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
74940         each time through the loop.  Do not diagnose restore_cwd failure;
74941         that is the caller's job (and perhaps the caller does not care).
74942
74943         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
74944         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
74945         If the file already exists but is not a directory, don't bother
74946         to try to make its parents.
74947         Close potential file descriptor leak if we can't chdir("/") (!).
74948         Don't always return true if chdir($PWD) fails; return true only
74949         if the requested action was done successfully (except for the
74950         chdir($PWD)).
74951         Don't log final directory unless we actually made it.
74952         Refactor to avoid duplicate code to fix up permissions.
74953         Don't attempt to fix up parent permissions if chdir($PWD) fails.
74954
74955         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
74956         to make it a bit faster and (I hope) clearer.
74957         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
74958         Fix bug in formats like %2N.
74959
74960         * lib/verify.h: New file.
74961
74962 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
74963
74964         Sync from coreutils.
74965         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
74966
74967 2005-09-22  Jim Meyering  <jim@meyering.net>
74968
74969         Sync from coreutils.
74970
74971         * m4/lstat.m4 (gl_FUNC_LSTAT):
74972         Use AC_LIBSOURCES to require lstat.c and lstat.h.
74973         Remove obsolete comment.
74974         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
74975         * m4/xstrtod.m4: Likewise.
74976
74977         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
74978
74979 2005-09-22  Jim Meyering  <jim@meyering.net>
74980
74981         Sync from coreutils.
74982
74983         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
74984
74985         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
74986         the .tm_year member, since otherwise gcc-4.0 would now warn about
74987         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
74988
74989         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
74990         order to avoid an unsuppressible warning from gcc on 64-bit systems.
74991
74992         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
74993         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
74994         when run in a time zone for which daylight savings time is in effect
74995         for the starting date.
74996
74997         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
74998         stop us from restricting permissions of just-created absolute-named
74999         directories.
75000         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
75001         to restore initial working directory.
75002         * lib/mkdir-p.c (make_dir_parents): New parameter:
75003         different_working_dir, to tell caller if/when we change the working
75004         directory and are unable to return to the initial one.
75005         * lib/mkdir-p.h (make_dir_parents): Update prototype.
75006         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
75007         `return false'.  This fixes a bug introduced on 2004-07-30.
75008
75009         * lib/openat.c (fdopendir): Be sure to close the supplied
75010         file descriptor before returning.  This makes our replacement
75011         implementation a little closer to Solaris's, where fdopendir
75012         ties the file descriptor to the returned DIR* pointer.
75013         * lib/openat.c (unlinkat): New function.
75014         * lib/openat.h (unlinkat): Add prototype.
75015         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
75016         (openat_restore_fail): Rename from openat_restore_die.
75017         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
75018
75019         Provide an alternative to exiting immediately upon save_cwd or
75020         restore_cwd failure.  Now, an application can arrange e.g.,
75021         to perform a longjump in that case.
75022         * lib/openat.c: Include dirname.h.
75023         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
75024         (rpl_openat, fdopendir, fstatat): Call openat_save_die
75025         and openat_restore_die rather than calling error directly.
75026         Don't include "error.h" or "exitfail.h"; they're no longer needed.
75027
75028         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
75029         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
75030         define.
75031
75032         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
75033         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
75034                             int utc, int nanoseconds);
75035         Background:
75036         date should not have to allocate a megabyte of virtual memory to
75037         handle a format argument like +%1048575T.  When implemented with
75038         strftime, it must allocate such a buffer, use strftime to fill it
75039         in, print it, then free it.
75040         With fprintftime, it simply prints everything and exits.
75041         With no need for memory allocation, that's one fewer way to fail.
75042         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
75043         optional field width, not before, so we accept %9:z, not %:9z.
75044         (my_strftime): Be sure to use L_('x') for literals.
75045
75046         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
75047         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
75048         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
75049         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
75050         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
75051         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
75052         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
75053         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
75054         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
75055         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
75056         * lib/xgethostname.c, lib/xreadlink.c:
75057         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
75058
75059         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
75060         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
75061         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
75062         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
75063         and don't include <sys/file.h>).
75064
75065 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
75066
75067         Sync from coreutils.
75068
75069         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
75070         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
75071         [!LDAV_DONE]: Avoid unused variable warning.
75072
75073 2005-09-21  Bruno Haible  <bruno@clisp.org>
75074
75075         * lib/unicodeio.h (unicode_to_mb): New declaration.
75076
75077 2005-09-20  Derek Price  <derek@ximbiot.com>
75078
75079         * lib/getaddrinfo.c: Don't include <netdb.h> included from
75080         getaddrinfo.h.
75081
75082 2005-09-20  Bruno Haible  <bruno@clisp.org>
75083
75084         * gnulib-tool: Remove trailing slashes from the values specified for
75085         --source-base, --m4-base, --tests-base, --aux-dir.
75086         Suggested by Simon Josefsson <jas@extundo.com>.
75087
75088 2005-09-20  Bruno Haible  <bruno@clisp.org>
75089
75090         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
75091         func_modules_to_filelist, func_import, func_create_testdir): Make all
75092         sorting results locale-independent, so that gnulib-cache.m4 doesn't
75093         change when gnulib-tool is invoked in a different locale.
75094
75095 2005-09-19  Simon Josefsson  <jas@extundo.com>
75096
75097         * m4/socklen.m4: Fix typo.
75098
75099 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75100
75101         Use a consistent style for including <config.h>.
75102         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
75103         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
75104         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
75105         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
75106         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
75107         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
75108         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
75109         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
75110         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
75111         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
75112         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
75113         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
75114         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
75115         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
75116         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
75117         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
75118         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
75119         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
75120         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
75121         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
75122         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
75123         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
75124         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
75125         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
75126         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
75127         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
75128         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
75129         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
75130         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
75131         lib/xstrtoumax.c, lib/yesno.c:
75132         Standardize inclusion of config.h.
75133         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
75134         lib/inttostr.h:  Removed inclusion of config.h from header files.
75135         * lib/inttostr.c:  Adjusted in-tree users.
75136         * lib/timespec.h: Remove superfluous warning to include config.h.
75137         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
75138         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
75139         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
75140         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
75141         config.h with HAVE_CONFIG_H.
75142
75143 2005-09-19  Jim Meyering  <jim@meyering.net>
75144
75145         * modules/pathmax (License): Change to LGPL.
75146
75147 2005-09-19  Derek Price  <derek@ximbiot.com>
75148
75149         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
75150
75151 2005-09-19  Bruno Haible  <bruno@clisp.org>
75152
75153         * gnulib-tool (import): Provide default for --tests-base.
75154
75155 2005-09-19  Bruno Haible  <bruno@clisp.org>
75156
75157         * doc/quote.texi: New file, extracted from gnulib.texi.
75158         * doc/ctime.texi: New file, extracted from gnulib.texi.
75159         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
75160         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
75161         * doc/gnulib.texi: Include them.
75162
75163 2005-09-18  Bruno Haible  <bruno@clisp.org>
75164
75165         Portability fix.
75166         * gnulib-tool (func_readlink): New function.
75167         (func_ln_if_changed): Use it.
75168
75169 2005-09-18  Bruno Haible  <bruno@clisp.org>
75170
75171         * gnulib-tool: Support --with-tests also with --import.
75172         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
75173         (func_import): Use variables $testsbase and $inctests. Emit a
75174         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
75175         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
75176         SUBDIRS += $testsdir.
75177         (func_create_testdir): Update.
75178
75179 2005-09-18  Bruno Haible  <bruno@clisp.org>
75180
75181         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
75182         instead of $dry_run.
75183         (func_cp_if_changed, func_mv_if_changed): Remove functions.
75184         (func_ln_if_changed): Don't handle dry-run here.
75185         (func_import): In dry-run mode, detect more precisely which actions
75186         would be performed, and don't use "...ing" verbs.
75187
75188 2005-09-18  Bruno Haible  <bruno@clisp.org>
75189
75190         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
75191         (func_import): Use join on two temporary files instead of three nested
75192         loops, in order to determine which files are new or old.
75193
75194 2005-09-18  Bruno Haible  <bruno@clisp.org>
75195
75196         * gnulib-tool (func_import): Comment out code that spits out the
75197         new files with --dry-run.
75198
75199 2005-09-18  Bruno Haible  <bruno@clisp.org>
75200
75201         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
75202
75203 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75204
75205         * lib/stat-time.h: New file.
75206         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
75207         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
75208         in a different way.
75209         (timespec_cmp): New function.
75210         * lib/utimecmp.c: Include stat-time.h.
75211         (SYSCALL_RESOLUTION): Depend on whether various struct stat
75212         members exist, not on the obsolescent ST_MTIM_NSEC.
75213         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
75214
75215 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75216
75217         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
75218
75219 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
75220
75221         * MODULES.html.sh (File system functions): Add stat-time.
75222         * modules/stat-time: New file.
75223         * modules/timespec (Files): Remove m4/st_mtim.m4; this
75224         is now done in a different way, by the stat-time module.
75225         * modules/utimecmp (Depends-on): Add stat-time.
75226
75227 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75228
75229         * m4/st_mtim.m4: Remove.  Superseded by...
75230         * m4/stat-time.m4: New file.
75231         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
75232         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
75233
75234 2005-09-15  Derek Price  <derek@ximbiot.com>
75235
75236         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
75237
75238 2005-09-15  Derek Price  <derek@ximbiot.com>
75239
75240         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
75241         * lib/regex_internal.c: Ditto, using this...
75242         (__GNUC_PREREQ): ...new macro.
75243         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
75244         using...
75245         (__GNUC_PREREQ): ...this new macro.
75246
75247         * lib/strstr.h: Include string.h. Define strstr as a macro here.
75248
75249 2005-09-15  Derek Price  <derek@ximbiot.com>
75250             Paul Eggert  <eggert@cs.ucla.edu>
75251
75252         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
75253         changes, consolidating in...
75254         * lib/regex_internal.h: ...this file.
75255
75256 2005-09-13  Jim Meyering  <jim@meyering.net>
75257
75258         * lib/canon-host.c: Filter through gnu indent and reword comments
75259         slightly.
75260         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
75261
75262 2005-09-13  Derek Price  <derek@ximbiot.com>
75263
75264         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
75265         failure.
75266         Reported by Jim Meyering  <jim@meyering.net>.
75267
75268 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75269
75270         * lib/base64.c: Typo.
75271         (base64_encode): Put b64str in initialized data section.
75272
75273 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
75274
75275         Merge glibc and coreutils changes into gnulib, plus a few
75276         extra fixes.
75277         * lib/md5.c: Use #error rather than a string.
75278         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
75279         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
75280         (__attribute__): Define to empty for non recent-GCC.
75281         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
75282         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
75283         Renamed from their non-__ counterparts, with new macros replacing
75284         them if not _LIBC.  Add __THROW attribute.
75285         (rol): Remove.
75286         (struct md5_ctx): Align buffer if using GCC.
75287         * lib/sha1.h (struct sha1_ctx): Likewise.
75288         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
75289         The old name was backwards.
75290         (NOTSWAP): Remove; not used.
75291         (rol): New macro, moved here from md5.h.
75292         (sha1_process_block): Remove a FIXME that doesn't make sense.
75293
75294 2005-09-12  Derek Price  <derek@ximbiot.com>
75295
75296         Return usable errors from canon-host.
75297         * lib/canon-host.h: New file.
75298         * lib/canon-host.c (canon_host): Wrap...
75299         (canon_host_r): ...this new function, which now relies exclusively on
75300         getaddrinfo.
75301         (ch_strerror): New function.
75302         (last_cherror): New global.
75303         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
75304         interface.
75305         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
75306         void *.
75307         (freeaddrinfo): Free ai->ai_canonname when set.
75308
75309 2005-09-12  Derek Price  <derek@ximbiot.com>
75310
75311         Make canon-host require getaddrinfo.
75312         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
75313         AC_LIBSOURCE canon-host.h.  Call...
75314         (gl_PREREQ_CANON_HOST): ...this new function, which requires
75315         gl_GETADDRINFO.
75316         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
75317
75318 2005-09-12  Derek Price  <derek@ximbiot.com>
75319
75320         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
75321         LGPL.
75322         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
75323
75324 2005-09-12  Derek Price  <derek@ximbiot.com>
75325
75326         * lib/gai_strerror.c: Include config.h when available.  Include
75327         getaddrinfo.h before other headers to test interface.
75328         Reported by Larry Jones <lawrence.jones@ugs.com>.
75329
75330 2005-09-12  Derek Price  <derek@ximbiot.com>
75331             Paul Eggert  <eggert@cs.ucla.edu>
75332
75333         * modules/glob (Files): Add glob-libc.h.
75334
75335 2005-09-12  Derek Price  <derek@ximbiot.com>
75336             Paul Eggert  <eggert@cs.ucla.edu>
75337
75338         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
75339         glob_.h, glob-libc.h.
75340         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
75341
75342 2005-09-12  Derek Price  <derek@ximbiot.com>
75343             Paul Eggert  <eggert@cs.ucla.edu>
75344
75345         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
75346         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
75347         protecting things that should be done only in gnulib contexts.
75348         * lib/glob_.h: New file, containing only the glob things needed for
75349         gnulib.
75350         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
75351         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
75352         (glob, globfree, glob_pattern_p): Now defined simply in terms of
75353         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
75354         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
75355         and to respect the namespace rules better.
75356
75357 2005-09-08  Simon Josefsson  <jas@extundo.com>
75358
75359         * modules/socklen: New file.
75360
75361 2005-09-08  Simon Josefsson  <jas@extundo.com>
75362
75363         * m4/socklen.m4: New file.
75364
75365 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75366
75367         * modules/utimens (Files): Add m4/utimbuf.m4, since
75368         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
75369         Reported by Sergey Poznyakoff.
75370
75371 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75372
75373         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
75374         definitions, since that's the preferred style in glibc.
75375         Fix a minor spacing issue, and update copyright notice to match
75376         glibc's.
75377
75378 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75379
75380         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
75381
75382 2005-09-06  Simon Josefsson  <jas@extundo.com>
75383
75384         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
75385         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
75386
75387 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75388
75389         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
75390         warning.
75391
75392 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
75393
75394         * config/srclist.txt: Add glibc bug 1302.
75395
75396 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
75397
75398         Change bitset word type from unsigned int to unsigned long int,
75399         as this has better performance on typical 64-bit hosts.
75400         Port bitset code to hosts with unusual word sizes.
75401         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
75402         (build_collating_symbol):
75403         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
75404         argument is a bitset.  This is merely a style issue, but it makes
75405         it clearer that an entire array is expected.
75406         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
75407         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
75408         Port to the case where bitset_word is not the same as unsigned int.
75409         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75410         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
75411         Likewise.
75412         * lib/regexec.c (check_dst_limits_calc_pos_1,
75413         check_subexp_matching_top):
75414         (build_trtable, group_nodes_into_DFAstates):
75415         Likewise.
75416         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
75417         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
75418         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
75419         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
75420         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
75421         * lib/regcomp.c (optimize_subexps, lower_subexp):
75422         Work even if bitset_word has holes in its bitwise representation.
75423         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
75424         * lib/regexec.c (check_dst_limits_calc_pos_1,
75425         check_subexp_matching_top):
75426         Likewise.
75427         * lib/regex_internal.c (re_string_reconstruct):
75428         Don't assume UCHAR_MAX == 255.
75429         * lib/regex_internal.h (bitset_set_all): Likewise.
75430         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
75431         All uses changed.
75432         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
75433         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
75434         All uses changed.
75435         (BITSET_WORD_MAX): New macro.
75436         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
75437         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
75438         (bitset_empty, bitset_copy):
75439         Prefer sizeof (bitset) to multiplying it out ourselves.
75440         (bitset_not_merge): Remove; unused.
75441         (bitset_contain): Return bool, not unsigned int with one bit on.
75442         All callers changed.
75443         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
75444         alignment than re_node_set; do this by defining a new internal
75445         type struct dests_alloc and using it to allocate memory.
75446
75447 2005-09-05  Bruno Haible  <bruno@clisp.org>
75448
75449         * gnulib-tool (func_import): Fix comparison in handling of symbolic
75450         links.
75451
75452 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
75453
75454         * modules/size_max (Makefile.am): Add size_max.h
75455
75456 2005-09-04  Derek Price  <derek@ximbiot.com>
75457
75458         * gnulib-tool (func_import): Fix reversed $symbolic logic.
75459
75460 2005-09-03  Simon Josefsson  <jas@extundo.com>
75461
75462         * gnulib-tool: Fix typo.
75463
75464 2005-09-03  Simon Josefsson  <jas@extundo.com>
75465
75466         * config/srclist.txt: Add glibc bug 1293.
75467
75468 2005-09-03  Derek Price  <derek@ximbiot.com>
75469
75470         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
75471         From Larry Jones <lawrence.jones@ugs.com>.
75472
75473 2005-09-02  Simon Josefsson  <jas@extundo.com>
75474
75475         * modules/socklen: New file.
75476
75477 2005-09-02  Simon Josefsson  <jas@extundo.com>
75478
75479         * modules/havelib: New module.
75480
75481         * modules/gettext, modules/iconv, modules/lock, modules/readline:
75482         Use havelib.
75483
75484 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75485
75486         Check for arithmetic overflow when calculating sizes, to prevent
75487         some buffer-overflow issues.  These patches are conservative, in the
75488         sense that when I couldn't determine whether an overflow was possible,
75489         I inserted a run-time check.
75490         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
75491         macros.
75492         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
75493         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
75494         (re_xnrealloc, re_x2nrealloc): New inline functions.
75495         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
75496         parse_bracket_exp):
75497         (build_equiv_class, build_charclass): Check for arithmetic overflow
75498         in size expression calculations.
75499         * lib/regex_internal.c (re_string_realloc_buffers):
75500         (build_wcs_upper_buffer, re_node_set_add_intersect):
75501         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
75502         (re_dfa_add_node, register_state): Likewise.
75503         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
75504         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
75505         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
75506         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
75507
75508 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
75509
75510         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
75511         m4/ulonglong.m4.  Problem reported by Martin Lambers.
75512
75513 2005-09-02  Bruno Haible  <bruno@clisp.org>
75514
75515         Support for lib vs. lib64 distinction on biarch platforms.
75516         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
75517         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
75518         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
75519
75520 2005-09-02  Bruno Haible  <bruno@clisp.org>
75521
75522         * gnulib-tool (import): In the other first-use case, provide defaults
75523         as well.
75524
75525 2005-09-02  Bruno Haible  <bruno@clisp.org>
75526
75527         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
75528         patches not yet found in the latest gettext release.
75529
75530 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75531
75532         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
75533         to avoid a collision with bits/local_lim.h in glibc.
75534         All uses changed.  Problem reported by Dmitry V. Levin in
75535         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
75536
75537         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
75538         bugs in int versus size_t comparisons.
75539         (re_string_context_at): Fix bug where the code assumed that
75540         Idx is signed.
75541
75542         Use bool where appropriate.
75543         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
75544         All callers changed.
75545         (calc_eclosure_iter): Likewise, for ROOT arg.
75546         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
75547         (build_charclass_op): Likewise, for NON_MATCH arg.
75548         * lib/regex_internal.c (re_string_allocate, re_string_construct):
75549         (re_string_construct_common): Likewise, for ICASE arg.
75550         * lib/regexec.c (re_search_2_stub, re_search_stub):
75551         Likewise, for RET_LEN arg.
75552         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
75553         (set_regs): Likewise, for FL_BACKTRACK arg.
75554         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
75555         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
75556         (calc_eclosure_iter, parse_bracket_exp):
75557         Use bool for internal variables that are booleans.
75558         * lib/regexec.c (re_search_internal, check_matching,
75559         proceed_next_node):
75560         (set_regs, build_sifted_states, sift_states_bkref):
75561         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
75562         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
75563         (find_collation_sequence_value):
75564         Likewise.
75565         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
75566         (re_node_set_compare):
75567         Return bool, not int. All callers changed.
75568         * lib/regexec.c (check_halt_node_context, check_dst_limits):
75569         (build_trtable, check_node_accept): Likewise.
75570         * lib/regex_internal.h: Include stdbool.h.
75571
75572         Fix bugs uncovered when converting to bool.
75573         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
75574         failure instead of charging ahead blindly.
75575         * lib/regex_internal.c (register_state): Likewise.
75576         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
75577         for freeing internal storage.
75578         (group_nodes_into_DFA_states): Use unsigned int, not int, for
75579         bitset pieces used as boolean, to avoid undefined behavior
75580         on hosts that do int overflow checking.
75581
75582 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75583
75584         * config/srclist.txt: Add glibc bugs 1285-1287.
75585
75586 2005-09-01  Jim Meyering  <jim@meyering.net>
75587
75588         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
75589         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
75590         Require gl_STAT_MACROS, too.
75591
75592 2005-09-01  Bruno Haible  <bruno@clisp.org>
75593
75594         * gnulib-tool (import): In the first-use case, provide defaults.
75595
75596 2005-09-01  Bruno Haible  <bruno@clisp.org>
75597
75598         * gnulib-tool (func_import): Remove the .tmp files.
75599
75600 2005-09-01  Bruno Haible  <bruno@clisp.org>
75601
75602         * gnulib-tool (func_import): Fix handling of symbolic links.
75603
75604 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75605
75606         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
75607         old glibc regex code mishandles strings longer than 2**31 bytes.
75608         This patch fixes this when the regex code is used in gnulib
75609         (i.e., outside glibc).
75610
75611         This patch should not affect the use of the regex code inside
75612         glibc.  No doubt this problem also needs to be handled for glibc
75613         as well, but the result will be an incompatible change to the
75614         glibc ABI, and the old ABI will have to be supported too.  That
75615         can be the the subject for another patch.
75616
75617         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
75618         governing whether the rest of this patch is active.  By default,
75619         the macro is disabled and the patch has no effect.
75620         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
75621         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
75622         (struct re_pattern_buffer, re_search, re_search_2, re_match):
75623         (re_match_2, re_set_registers): Use the new types.
75624         * lib/regex_internal.h (Idx, re_hashval_t): New types.
75625         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
75626         New macros.
75627         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
75628         (re_string_context_at, bin_tree_t, re_dfastate_t):
75629         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
75630         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
75631         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
75632         (re_string_char_size_at, re_string_wchar_at):
75633         (re_string_elem_size_at):
75634         Use the new types and macros to port to 64-bit hosts.
75635         Use unsigned types for internal values, so that the code
75636         mostly works even for arrays larger than SSIZE_MAX.
75637         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
75638         (search_duplicated_node, calc_eclosure_iter, fetch_number):
75639         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
75640         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
75641         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
75642         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
75643         (calc_inveclosure, parse_dup_op, build_range_exp):
75644         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
75645         (fetch_number, create_token_tree, mark_opt_subexp):
75646         Likewise.
75647         * lib/regex_internal.c (re_string_construct_common,
75648         create_ci_newstate):
75649         (create_cd_newstate, re_string_allocate, re_string_construct):
75650         (re_string_realloc_buffers, build_wcs_upper_buffer):
75651         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
75652         (re_string_reconstruct, re_string_peek_byte_case):
75653         (re_string_fetch_byte_case, re_string_context_at):
75654         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
75655         (re_node_set_init_copy, re_node_set_add_intersect):
75656         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75657         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75658         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
75659         (re_acquire_state, re_acquire_state_context, register_state):
75660         Likewise.
75661         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
75662         search_cur_bkref_entry):
75663         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
75664         (re_search_internal, re_search_2_stub, re_search_stub)
75665         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
75666         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
75667         (update_cur_sifted_state, check_dst_limits):
75668         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75669         (check_subexp_limits, sift_states_bkref, merge_state_array):
75670         (check_subexp_matching_top, get_subexp, get_subexp_sub):
75671         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
75672         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
75673         (expand_bkref_cache, check_node_accept_bytes):
75674         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
75675         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
75676         (acquire_init_state_context, check_halt_node_context):
75677         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
75678         (sift_states_backward, clean_state_log_if_needed):
75679         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
75680         (find_recover_state, transit_state_sb, transit_state_mb):
75681         (transit_state_bkref, build_trtable, match_ctx_clean):
75682         Likewise.
75683         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
75684         to work around an assumption that REG_MISSING is negative.
75685
75686         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
75687         (seek_collating_symbol_entry) [defined _LIBC]:
75688         (lookup_collation_sequence_value) [defined _LIBC]:
75689         (build_range_exp, build_collating_symbol) [defined _LIBC]:
75690         Use prototypes rather than old-style function definitions.
75691         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
75692         (transit_state_sb) [0]:
75693         (find_collation_sequence_value) [defined _LIBC]: Likewise.
75694
75695         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
75696         rm_eo.
75697
75698         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
75699         (optimize_subexps, lower_subexp):
75700         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
75701         since the signed shift might overflow.  Use 1u<<31 instead.
75702         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
75703         Likewise.
75704         * lib/regexec.c (check_dst_limits_calc_pos_1,
75705         check_subexp_matching_top): Likewise.
75706
75707         * lib/regcomp.c (optimize_subexps, lower_subexp):
75708         Use CHAR_BIT rather than 8, for clarity.
75709         * lib/regexec.c (check_dst_limits_calc_pos_1):
75710         (check_subexp_matching_top): Likewise.
75711         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
75712         have to worry about portability issues when shifting it left.
75713         Remove no-longer-needed test for table_size > 0.
75714         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
75715         in a word, as the resulting behavior is undefined.
75716         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
75717         in one case, a <= should have been an <, and in another case the
75718         whole test was missing.
75719         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
75720         the standard name CHAR_BIT.
75721         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
75722         this is not true on one's complement and signed-magnitude hosts.
75723
75724         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
75725         next_last_offset.
75726         (struct re_dfa_t): Remove unused member states_alloc.
75727         * lib/regcomp.c (init_dfa): Don't initialize unused members.
75728
75729 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75730
75731         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
75732         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
75733         and large-file glibc and in 32-bit large-file Solaris.
75734
75735 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75736
75737         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
75738         lengths fit in regoff_t; this isn't true if regoff_t is the same
75739         width as size_t.
75740         * lib/regex.c (re_search_internal): 5th arg is LAST_START
75741         (= START + RANGE) instead of RANGE.  This avoids overflow
75742         problems when regoff_t is the same width as size_t.
75743         All callers changed.
75744         (re_search_2_stub): Check for overflow when adding the
75745         sizes of the two strings.
75746         (re_search_stub): Check for overflow when adding START
75747         to RANGE; if it occurs, substitute the extreme value.
75748
75749 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75750
75751         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
75752
75753 2005-08-31  Jim Meyering  <jim@meyering.net>
75754
75755         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
75756         a pointer-to-const.
75757         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
75758         (register_state): Likewise.
75759         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
75760         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
75761         (group_nodes_into_DFAstates): Likewise.
75762
75763 2005-08-31  Jim Meyering  <jim@meyering.net>
75764
75765         * check-module: Add a FIXME comment.
75766
75767 2005-08-31  Eric Blake  <ebb9@byu.net>
75768
75769         * modules/unistd-safer (Files): Add unistd--.h.
75770         * modules/stdio-safer (Files): Add stdio--.h.
75771
75772 2005-08-31  Derek Price  <derek@ximbiot.com>
75773
75774         * lib/getdelim.c (getdelim): Return EOF on EOF.
75775         Reported by Larry Jones <lawrence.jones@ugs.com>.
75776
75777 2005-08-31  Bruno Haible  <bruno@clisp.org>
75778
75779         Avoid unnecessary diffs in the generated lib/Makefile.am.
75780         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
75781         the generated files.
75782         (func_import): Don't set cmd.
75783
75784 2005-08-31  Bruno Haible  <bruno@clisp.org>
75785
75786         * lib/strstr.c: Include <stddef.h>, for NULL.
75787         * lib/strcasestr.c: Likewise.
75788         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75789
75790 2005-08-31  Bruno Haible  <bruno@clisp.org>
75791
75792         * gnulib-tool: New option --macro-prefix.
75793         (func_import): Use macro_prefix.
75794         (import): Handle option --macro-prefix.
75795
75796 2005-08-31  Bruno Haible  <bruno@clisp.org>
75797
75798         * gnulib-tool (import): Rename most ac_* variables to cached_*.
75799         Also use new variables cached_lgpl, cached_libtool.
75800
75801 2005-08-31  Bruno Haible  <bruno@clisp.org>
75802
75803         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
75804         always instantiating them.
75805
75806 2005-08-31  Bruno Haible  <bruno@clisp.org>
75807
75808         * gnulib-tool (func_import): Read the previous cached settings
75809         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
75810         earlier added by gnulib but are now dropped. Warn when a gnulib file
75811         overwrites a non-gnulib file.
75812
75813 2005-08-31  Bruno Haible  <bruno@clisp.org>
75814
75815         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
75816         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
75817         projects that don't keep autogenerated files in CVS. Put into
75818         actioncmd only the specified modules, not the transitive closure.
75819
75820 2005-08-31  Bruno Haible  <bruno@clisp.org>
75821
75822         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
75823         Create directories that shall be filled.
75824         (import): Don't look for gl_* macros in configure.ac. Recurse across
75825         all directories containing a gnulib-cache.m4 files, if meaningful.
75826
75827 2005-08-31  Bruno Haible  <bruno@clisp.org>
75828
75829         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
75830         (import): Set seen_libtool when we see gl_LIBTOOL.
75831
75832 2005-08-31  Bruno Haible  <bruno@clisp.org>
75833
75834         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
75835         declaration macro definitions from generated gnulib.m4.
75836
75837 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
75838
75839         * lib/iconvme.h: Add prototype for iconv_alloc.
75840
75841 2005-08-29  Simon Josefsson  <jas@extundo.com>
75842
75843         * lib/iconvme.c: Fix errno.
75844
75845 2005-08-29  Bruno Haible  <bruno@clisp.org>
75846
75847         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
75848         that it works when the directory contains spaces.
75849
75850 2005-08-29  Bruno Haible  <bruno@clisp.org>
75851
75852         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
75853
75854 2005-08-29  Bruno Haible  <bruno@clisp.org>
75855
75856         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
75857         Emit more advice.
75858
75859 2005-08-29  Bruno Haible  <bruno@clisp.org>
75860         and Stepan Kasal  <kasal@ucw.cz>
75861
75862         * check-module: If more parameters are given, check each of them
75863         separately; add more exceptions, as noted by Jim Meyering.
75864         (check_module): New procedure.
75865         (%exempt_header): Now contains all exceptions.
75866
75867 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
75868
75869         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
75870
75871 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75872
75873         * lib/iconvme.c: Split iconv_string into iconv_alloc.
75874
75875 2005-08-28  Bruno Haible  <bruno@clisp.org>
75876
75877         * m4/gnulib-tool.m4: New file.
75878
75879 2005-08-27  Jim Meyering  <jim@meyering.net>
75880
75881         * modules/unistd-safer (Files): Add pipe-safer.c.
75882         * modules/fcntl-safer (Files): Add creat-safer.c.
75883
75884 2005-08-27  Jim Meyering  <jim@meyering.net>
75885
75886         * m4/stdlib-safer.m4: New file.  From coreutils.
75887         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
75888         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
75889         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
75890         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
75891         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
75892
75893 2005-08-27  Jim Meyering  <jim@meyering.net>
75894
75895         * lib/fopen-safer.c: Merge minor changes from coreutils.
75896         * lib/dup-safer.c: Likewise.
75897         * lib/fd-safer.c: Likewise.
75898
75899         Merge from coreutils.
75900         * lib/stdio--.h: New file.
75901         * lib/stdlib--.h: New file.
75902         * lib/mkstemp-safer.c: New file.
75903
75904         GNU tar needs these.
75905         * lib/pipe-safer.c: New file.
75906         * lib/creat-safer.c: New file.
75907         * lib/fcntl--.h (creat): Define to creat_safer.
75908         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
75909         * lib/unistd--.h (pipe): Define to pipe_safer.
75910         * lib/unistd-safer.h: Declare pipe_safer.
75911
75912 2005-08-26  Simon Josefsson  <jas@extundo.com>
75913
75914         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
75915         Haible <bruno@clisp.org>.
75916
75917 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
75918
75919         * lib/regex_internal.h: Remove all references to
75920         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
75921         or better.
75922         (bitset_not, bitset_merge, bitset_not_merge):
75923         (bitset_mask, re_string_allocate, re_string_construct):
75924         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
75925         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
75926         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
75927         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
75928         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
75929         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
75930         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
75931         (re_acquire_state_context):
75932         Remove unnecessary forward decls.
75933         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
75934         Put __attribute at function definition,
75935         now that the function decl has been removed.
75936         * lib/regex_internal.c (re_string_peek_byte_case):
75937         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
75938         Likewise.
75939
75940 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
75941
75942         * m4/regex.m4: Add AC_PREREQ(2.50).
75943         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
75944
75945 2005-08-25  Simon Josefsson  <jas@extundo.com>
75946
75947         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
75948         __fsetlocking.
75949
75950 2005-08-25  Simon Josefsson  <jas@extundo.com>
75951
75952         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
75953         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
75954         GLIBC specific code.
75955
75956 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75957
75958         Make regex safe for g++.  This fixes one real bug (an "err"
75959         that should have been "*err").  g++ problem reported by
75960         Sam Steingold.
75961         * lib/regex_internal.h (re_calloc): New macro, consistent with
75962         re_malloc etc.  All callers of calloc changed to use re_calloc.
75963         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
75964         not int.  All callers changed.
75965         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
75966         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
75967         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
75968         (find_recover_state): Change "err" to "*err"; this fixes what
75969         appears to be a real bug.
75970         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
75971         versus int.
75972
75973 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75974
75975         * modules/regex (Depends-on): Add malloc, since the code
75976         assumes that !malloc(0) means failure.
75977
75978 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75979
75980         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
75981
75982         alloca modernization/simplification for regex.
75983         * lib/regex.c: Remove portability cruft for alloca.  This no longer
75984         needs to be at the start of the file, and can be moved into
75985         regex_internal.h and simplified.
75986         * lib/regex_internal.h: Include <alloca.h>.
75987         (__libc_use_alloca) [!defined _LIBC]: New macro.
75988         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
75989         now works outside glibc.
75990
75991 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
75992
75993         * config/srclist.txt: Add glibc bugs 1241, 1245.
75994
75995 2005-08-25  Jim Meyering  <jim@meyering.net>
75996
75997         * lib/open-safer.c: Include <config.h>.
75998         Otherwise, we'd lose LARGEFILE support in any file using
75999         e.g. "fcntl--.h"
76000
76001 2005-08-25  Bruno Haible  <bruno@clisp.org>
76002
76003         * m4/minmax.m4: Require autoconf 2.52.
76004         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
76005         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
76006         alternatives of translit over the alphabet.
76007         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
76008
76009 2005-08-24  Simon Josefsson  <jas@extundo.com>
76010
76011         * tests/test-getpass.c: New file.
76012
76013 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76014
76015         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
76016         for GNU regex features.
76017
76018 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76019
76020         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
76021         * lib/regex.h (regerror): Likewise.
76022
76023         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
76024         requires this.  (The code never needed it.)
76025
76026         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
76027         All uses of recently-renamed identifiers changed to use the new,
76028         POSIX-compliant names.  The code will build and run just fine
76029         without these changes, but it's better to eat our own dog food
76030         and use the standard-conforming names.
76031
76032         * lib/regex.h: Fix a multitude of POSIX name space violations.
76033         These changes have an effect only for programs that define
76034         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
76035         do not change anything for programs compiled in the normal way.
76036         Also, there is no effect on the ABI.
76037
76038         (_REGEX_SOURCE): New macro.
76039         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
76040         defined and _GNU_SOURCE is not; this fixes a name space violation.
76041
76042         Rename the following macros to obey POSIX requirements.
76043         The old names are still visible as macros if _REGEX_SOURCE is defined.
76044         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
76045         RE_BACKSLASH_ESCAPE_IN_LISTS.
76046         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
76047         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
76048         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
76049         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
76050         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
76051         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
76052         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
76053         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
76054         (REG_INTERVALS): renamed from RE_INTERVALS.
76055         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
76056         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
76057         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
76058         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
76059         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
76060         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
76061         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
76062         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
76063         RE_UNMATCHED_RIGHT_PAREN_ORD.
76064         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
76065         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
76066         (REG_DEBUG): renamed from RE_DEBUG.
76067         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
76068         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
76069         unusual, since we can't clash with the POSIX REG_ICASE.
76070         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
76071         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
76072         (REG_NO_SUB): renamed from RE_NO_SUB.
76073         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
76074         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
76075         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
76076         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
76077         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
76078         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
76079         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
76080         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
76081         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
76082         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
76083         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
76084         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
76085         RE_SYNTAX_POSIX_MINIMAL_BASIC.
76086         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
76087         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
76088         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
76089         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
76090         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
76091         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
76092         (REG_FIXED): Renamed from REGS_FIXED.
76093         (REG_NREGS): Renamed from RE_NREGS.
76094
76095         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
76096         of other REG_* macros, since POSIX says the user is allowed to
76097         #undef these macros selectively.
76098
76099         (reg_errcode_t): Update comment stating what other tables need
76100         to be consistent.
76101
76102         Rename the following enum values to obey POSIX requirements.
76103         The old names are still visible as macros.
76104         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
76105         is not defined, since GNU is supposed to be a superset of POSIX as
76106         much as possible, and since we want reg_errcode_t to be a signed
76107         type for implementation consistency.
76108         (_REG_NOERROR): Renamed from REG_NOERROR.
76109         (_REG_NOMATCH): Renamed from REG_NOMATCH.
76110         (_REG_BADPAT): Renamed from REG_BADPAT.
76111         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
76112         (_REG_ECTYPE): Renamed from REG_ECTYPE.
76113         (_REG_EESCAPE): Renamed from REG_EESCAPE.
76114         (_REG_ESUBREG): Renamed from REG_ESUBREG.
76115         (_REG_EBRACK): Renamed from REG_EBRACK.
76116         (_REG_EPAREN): Renamed from REG_EPAREN.
76117         (_REG_EBRACE): Renamed from REG_EBRACE.
76118         (_REG_BADBR): Renamed from REG_BADBR.
76119         (_REG_ERANGE): Renamed from REG_ERANGE.
76120         (_REG_ESPACE): Renamed from REG_ESPACE.
76121         (_REG_BADRPT): Renamed from REG_BADRPT.
76122         (_REG_EEND): Renamed from REG_EEND.
76123         (_REG_ESIZE): Renamed from REG_ESIZE.
76124         (_REG_ERPAREN): Renamed from REG_ERPAREN.
76125         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
76126         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
76127         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
76128         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
76129
76130         (_REG_RE_NAME, _REG_RM_NAME): New macros.
76131         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
76132         changed.  But support the old name if the new one is not defined
76133         and if _REGEX_SOURCE.
76134
76135         Change the following member names in struct re_pattern_buffer.
76136         The old names are still supported if !_REGEX_SOURCE.
76137         The new names are always supported, regardless of _REGEX_SOURCE.
76138         (re_buffer): Renamed from buffer.
76139         (re_allocated): Renamed from allocated.
76140         (re_used): Renamed from used.
76141         (re_syntax): Renamed from syntax.
76142         (re_fastmap): Renamed from fastmap.
76143         (re_translate): Renamed from translate.
76144         (re_can_be_null): Renamed from can_be_null.
76145         (re_regs_allocated): Renamed from regs_allocated.
76146         (re_fastmap_accurate): Renamed from fastmap_accurate.
76147         (re_no_sub): Renamed from no_sub.
76148         (re_not_bol): Renamed from not_bol.
76149         (re_not_eol): Renamed from not_eol.
76150         (re_newline_anchor): Renamed from newline_anchor.
76151
76152         Change the following member names in struct re_registers.
76153         The old names are still supported if !_REGEX_SOURCE.
76154         The new names are always supported, regardless of _REGEX_SOURCE.
76155         (rm_num_regs): Renamed from num_regs.
76156         (rm_start): Renamed from start.
76157         (rm_end): Renamed from end.
76158
76159         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
76160         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
76161         Prepend __ to parameter names.
76162
76163         Undo yesterday's changes.
76164
76165 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76166
76167         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
76168         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
76169         lib/regex.c.
76170
76171 2005-08-24  Jim Meyering  <jim@meyering.net>
76172
76173         Sync from coreutils.
76174         * m4/fcntl-safer.m4: New file.
76175
76176         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
76177         and object files for this module.
76178
76179 2005-08-24  Jim Meyering  <jim@meyering.net>
76180
76181         Sync from coreutils.
76182         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
76183
76184 2005-08-24  Jim Meyering  <jim@meyering.net>
76185
76186         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
76187         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
76188
76189 2005-08-24  Jim Meyering  <jim@meyering.net>
76190
76191         * modules/fcntl-safer: New module.
76192         * modules/fts (Depends-on): Add fcntl-safer.
76193         * MODULES.html.sh (File descriptor based Input/Output):
76194         Add fcntl-safer.
76195
76196 2005-08-24  Bruno Haible  <bruno@clisp.org>
76197
76198         Support for unit test modules.
76199         * modules/README: Mention tests modules.
76200         * modules/TEMPLATE-TESTS: New file.
76201         * gnulib-tool: New options --extract-tests-module, --with-tests and
76202         --tests-base (unused for the moment).
76203         (testsbase, inctests): New variables.
76204         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
76205         (func_verify_module): Exclude TEMPLATE-TESTS.
76206         (func_verify_nontests_module, func_verify_tests_module): New functions.
76207         (func_get_dependencies): Add implicit dependency for tests modules.
76208         (func_get_tests_module): New function.
76209         (func_modules_transitive_closure): When --with-tests was specified,
76210         include the unit tests as well, unless explicitly avoided.
76211         (func_emit_lib_Makefile_am): Ignore the tests modules here.
76212         (func_emit_tests_Makefile_am): New function.
76213         (func_create_testdir): When --with-tests was specified, emit a
76214         tests/ directory.
76215         * MODULES.html.sh (Future developments): Update.
76216
76217 2005-08-24  Bruno Haible  <bruno@clisp.org>
76218
76219         * modules/tls-tests: New file.
76220         * tests/test-tls.c: New file, from GNU gettext.
76221
76222 2005-08-24  Bruno Haible  <bruno@clisp.org>
76223
76224         * modules/lock-tests: New file.
76225         * tests/test-lock.c: New file, from GNU gettext.
76226
76227 2005-08-24  Bruno Haible  <bruno@clisp.org>
76228
76229         * lib/lock.h: Add multiple inclusion guard.
76230         * lib/tls.h: Add multiple inclusion guard.
76231
76232 2005-08-24  Bruno Haible  <bruno@clisp.org>
76233
76234         * gnulib-tool: Add support for the --aux-dir option to
76235         --create-testdir, --create-megatestdir, --test, --megatest.
76236         (func_create_testdir, func_create_megatestdir): Optionally emit a
76237         AC_CONFIG_AUX_DIR directive.
76238         (create-testdir, create-megatestdir, test, megatest): Provide a
76239         default value for $auxdir.
76240
76241 2005-08-24  Bruno Haible  <bruno@clisp.org>
76242
76243         * gnulib-tool (import): Use compound statement instead of subshell
76244         where possible.
76245
76246 2005-08-24  Bruno Haible  <bruno@clisp.org>
76247
76248         * gnulib-tool (import): Change --aux-dir default to "build-aux".
76249
76250 2005-08-24  Bruno Haible  <bruno@clisp.org>
76251
76252         * gnulib-tool (func_version): Update.
76253
76254 2005-08-24  Bruno Haible  <bruno@clisp.org>
76255
76256         * gnulib-tool (func_import, func_create_testdir,
76257         func_create_megatestdir): Quote all autoconf macro arguments.
76258
76259 2005-08-24  Bruno Haible  <bruno@clisp.org>
76260
76261         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
76262         option --force, because --force causes the aclocal.m4 of each
76263         subdirectory to be newer than the corresponding config.h.in.
76264
76265 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76266
76267         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
76268         All contents moved to gl_REGEX.
76269         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
76270         assume that it does.
76271
76272 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76273
76274         * lib/regex.h (REG_NOSYS)
76275         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
76276         Define, since POSIX requires it as of 2001.
76277         (_REG_ENOSYS)
76278         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
76279         New private symbol, used to keep the enum signed in all cases.
76280         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
76281         Youngman in
76282         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
76283
76284         * lib/regex_internal.c (re_string_skip_chars, register_state):
76285         (calc_state_hash):
76286         Remove forward decls; no longer needed now that we use prototypes.
76287         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
76288         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
76289         (clean_state_log_if_needed): Likewise.
76290
76291 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76292
76293         * config/srclist.txt: Add glibc bugs 1231-1233.
76294
76295 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76296
76297         Fix problems reported by Sam Steingold in
76298         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
76299         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
76300         assumed that reg_errcode_t is a signed type, which is not
76301         necessarily true if _XOPEN_SOURCE is not defined.
76302         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
76303         since some compilers warn about it otherwise.
76304
76305 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76306
76307         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
76308         (init_word_char, create_initial_state, duplicate_node_closure):
76309         (fetch_token, peek_token_bracket, build_range_exp):
76310         (build_collating_symbol): Remove forward decls; no longer needed
76311         now that we use prototypes.
76312
76313         * lib/regcomp.c:
76314         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
76315         (re_compile_fastmap_iter, regcomp, regerror, regfree):
76316         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
76317         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
76318         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
76319         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
76320         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
76321         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
76322         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
76323         (build_range_exp, build_collating_symbol, parse_bracket_exp):
76324         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
76325         (build_charclass, build_charclass_op, fetch_number, create_tree):
76326         (create_token_tree, mark_opt_subexp, duplicate_tree):
76327         Use prototypes rather than old-style definitions.
76328
76329         * lib/regex_internal.c:
76330         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
76331         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
76332         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
76333         (re_string_reconstruct, re_string_peek_byte_case):
76334         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
76335         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
76336         (re_node_set_init_copy, re_node_set_add_intersect):
76337         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76338         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76339         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
76340         (re_acquire_state, re_acquire_state_context, register_state):
76341         (create_ci_newstate, create_cd_newstate, free_state):
76342         Likewise.
76343         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
76344         re_search_2):
76345         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
76346         (re_search_internal, prune_impossible_nodes):
76347         (acquire_init_state_context, check_matching, static):
76348         (check_halt_node_context, check_halt_state_context, proceed_next_node):
76349         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
76350         (update_regs, sift_states_backward, build_sifted_states):
76351         (clean_state_log_if_needed, merge_state_array):
76352         (update_cur_sifted_state, add_epsilon_src_nodes):
76353         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
76354         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
76355         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
76356         (find_recover_state, check_subexp_matching_top, transit_state_mb):
76357         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
76358         (check_arrival, check_arrival_add_next_nodes):
76359         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
76360         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
76361         (check_node_accept_bytes, check_node_accept, extend_buffers):
76362         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
76363         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
76364         (sift_ctx_init):
76365         Likewise.
76366
76367         * lib/regex_internal.h:
76368         (re_string_allocate, re_string_construct, re_string_reconstruct):
76369         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
76370         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
76371         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
76372         (re_string_context_at, re_string_peek_byte_case):
76373         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
76374         is defined, since we now use prototypes always.
76375
76376         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
76377         C89 or better.  All uses removed.
76378
76379 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76380
76381         * config/srclist.txt: Add glibc bugs 1220-1227.
76382
76383 2005-08-20  Jim Meyering  <jim@meyering.net>
76384
76385         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
76386         of unused local, dfa.
76387
76388 2005-08-20  Bruno Haible  <bruno@clisp.org>
76389
76390         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
76391
76392 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76393
76394         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
76395         (re_node_set_insert_last, re_dfa_add_node):
76396         Rename local variables to avoid GCC shadowing warnings.
76397
76398 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76399
76400         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
76401         [defined lint]: Suppress bogus uninitialized-variable warnings.
76402
76403         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
76404         and let the caller return REG_ESPACE if out of space.  This
76405         removes an uninitialied-variable warning with GCC 4.0.1, and also
76406         avoids taking the address of a local variable.  All callers
76407         changed.
76408
76409 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76410
76411         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
76412         $LIBCSRC/posix/regexec.c.
76413         Add glibc bug 1217 for regcomp.c.
76414
76415 2005-08-19  Jim Meyering  <jim@meyering.net>
76416
76417         * lib/regexec.c (proceed_next_node): Redo local variables to
76418         avoid GCC shadowing warnings.
76419
76420 2005-08-18  Bruno Haible  <bruno@clisp.org>
76421
76422         * lib/strstr.c (strstr): Fix return value in multibyte case.
76423         * lib/strcasestr.c (strcasestr): Likewise.
76424
76425 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76426
76427         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
76428
76429 2005-08-17  Jim Meyering  <jim@meyering.net>
76430
76431         Make the %s format (seconds since the epoch) work for a negative
76432         number and when used with a zero-padded field width, e.g. %015s.
76433
76434         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
76435         label so that it precedes the code to set `digits'.  Otherwise,
76436         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
76437         print `00-22'.  Now, it prints `-0022', as it should.
76438
76439 2005-08-17  Bruno Haible  <bruno@clisp.org>
76440
76441         * modules/strstr (Files): Add m4/mbrtowc.m4.
76442         (Depends-on): Add mbuiter.
76443
76444 2005-08-17  Bruno Haible  <bruno@clisp.org>
76445
76446         * modules/strcasestr: New file.
76447         * MODULES.html.sh (String handling, based on ANSI C 89): Add
76448         strcasestr.
76449
76450 2005-08-17  Bruno Haible  <bruno@clisp.org>
76451
76452         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
76453
76454 2005-08-17  Bruno Haible  <bruno@clisp.org>
76455
76456         * modules/mbuiter: New file.
76457         * MODULES.html.sh (Extended multibyte and wide character utilities):
76458         Add mbuiter.
76459
76460 2005-08-17  Bruno Haible  <bruno@clisp.org>
76461
76462         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
76463         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
76464
76465 2005-08-17  Bruno Haible  <bruno@clisp.org>
76466
76467         * m4/strcasestr.m4: New file.
76468
76469 2005-08-17  Bruno Haible  <bruno@clisp.org>
76470
76471         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
76472         * lib/strstr.c: Completely rewritten, with multibyte locale support.
76473
76474 2005-08-17  Bruno Haible  <bruno@clisp.org>
76475
76476         * lib/strcasestr.h: New file.
76477         * lib/strcasestr.c: New file.
76478
76479 2005-08-17  Bruno Haible  <bruno@clisp.org>
76480
76481         * lib/strcasecmp.c: Use mbuiter.h.
76482
76483 2005-08-17  Bruno Haible  <bruno@clisp.org>
76484
76485         * lib/mbuiter.h: New file.
76486
76487 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
76488
76489         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
76490         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
76491         and gl_GETOPT are both invoked via different paths (as happens
76492         with GNU tar CVS because it uses both argp and getopt), the former
76493         wins.
76494
76495 2005-08-16  Bruno Haible  <bruno@clisp.org>
76496
76497         * modules/tls: New file.
76498         * MODULES.html.sh (Multithreading): Add tls.
76499
76500 2005-08-16  Bruno Haible  <bruno@clisp.org>
76501
76502         * modules/strnlen1: New file.
76503         * MODULES.html.sh (String handling): Add strnlen1.
76504
76505 2005-08-16  Bruno Haible  <bruno@clisp.org>
76506
76507         * modules/strcase (Files): Add m4/mbrtowc.m4.
76508         (Depends-on): Add strnlen1, mbchar.
76509
76510 2005-08-16  Bruno Haible  <bruno@clisp.org>
76511
76512         * modules/mbiter: New file.
76513         * MODULES.html.sh (Extended multibyte and wide character utilities):
76514         Add mbiter.
76515
76516 2005-08-16  Bruno Haible  <bruno@clisp.org>
76517
76518         * modules/mbfile: New file.
76519         * MODULES.html.sh (Extended multibyte and wide character utilities):
76520         Add mbfile.
76521
76522 2005-08-16  Bruno Haible  <bruno@clisp.org>
76523
76524         * modules/mbchar: New file.
76525         * MODULES.html.sh (Extended multibyte and wide character utilities):
76526         New section.
76527
76528 2005-08-16  Bruno Haible  <bruno@clisp.org>
76529
76530         * m4/tls.m4: New file, from GNU gettext.
76531
76532 2005-08-16  Bruno Haible  <bruno@clisp.org>
76533
76534         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
76535         always.
76536         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
76537
76538 2005-08-16  Bruno Haible  <bruno@clisp.org>
76539
76540         * m4/mbiter.m4: New file.
76541
76542 2005-08-16  Bruno Haible  <bruno@clisp.org>
76543
76544         * m4/mbfile.m4: New file.
76545
76546 2005-08-16  Bruno Haible  <bruno@clisp.org>
76547
76548         * m4/mbchar.m4: New file.
76549
76550 2005-08-16  Bruno Haible  <bruno@clisp.org>
76551
76552         * lib/tls.h: New file, from GNU gettext.
76553         * lib/tls.c: New file, from GNU gettext.
76554
76555 2005-08-16  Bruno Haible  <bruno@clisp.org>
76556
76557         * lib/strnlen1.h: New file.
76558         * lib/strnlen1.c: New file.
76559
76560 2005-08-16  Bruno Haible  <bruno@clisp.org>
76561
76562         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
76563         (mbi_init): Update.
76564         (mbi_avail, mbi_advance): Let the iteration end before the terminating
76565         NUL byte, not after it.
76566
76567 2005-08-16  Bruno Haible  <bruno@clisp.org>
76568
76569         * lib/strcase.h (strcasecmp): Add note in comments.
76570         * lib/strncasecmp.c: Use code from strcasecmp.c.
76571         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
76572         (strcasecmp): Work correctly in multibyte locales.
76573
76574 2005-08-16  Bruno Haible  <bruno@clisp.org>
76575
76576         * lib/mbiter.h: New file.
76577
76578 2005-08-16  Bruno Haible  <bruno@clisp.org>
76579
76580         * lib/mbfile.h: New file.
76581
76582 2005-08-16  Bruno Haible  <bruno@clisp.org>
76583
76584         * lib/mbchar.h: New file.
76585         * lib/mbchar.c: New file.
76586
76587 2005-08-16  Bruno Haible  <bruno@clisp.org>
76588
76589         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
76590         the valid ones. Makes the comparison operations transitive:
76591         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
76592         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
76593
76594 2005-08-15  Simon Josefsson  <jas@extundo.com>
76595
76596         * modules/ssize_t (License): Change to 'unlimited'.
76597
76598         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
76599
76600 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76601
76602         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
76603         Add comments for each pending glibc patch.
76604
76605 2005-08-15  Bruno Haible  <bruno@clisp.org>
76606
76607         * lib/regex.h (__restrict_arr): Don't define to __restrict if
76608         __cplusplus is defined.
76609
76610 2005-08-14  Jim Meyering  <jim@meyering.net>
76611
76612         Sync from coreutils.
76613
76614         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
76615         Use the hash-table-based cycle-detection code not just when
76616         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
76617         Reported by James Youngman in
76618         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
76619         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
76620         FTS_TIGHT_CYCLE_CHECK.
76621         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
76622         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
76623         once again.
76624         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
76625         * lib/fts.c (fd_safer): Remove decl.
76626         Include fcntl--.h rather than unistd-safer.h
76627         (fts_safe_changedir): Don't call fd_safer; no longer needed
76628         now that we include fcntl--.h.
76629
76630 2005-08-12  Simon Josefsson  <jas@extundo.com>
76631
76632         * modules/getndelim2: Use ssize_t module.
76633         * modules/getnline: Likewise.
76634         * modules/safe-read: Likewise.
76635         * modules/xreadlink: Likewise.
76636
76637         * modules/ssize_t: New file.
76638
76639 2005-08-12  Simon Josefsson  <jas@extundo.com>
76640
76641         * m4/readline.m4: Look for termcap, curses or ncurses if required.
76642
76643 2005-08-12  Simon Josefsson  <jas@extundo.com>
76644
76645         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76646         ssize_t.
76647
76648 2005-08-12  Simon Josefsson  <jas@extundo.com>
76649
76650         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
76651         readline, getdelim and check_version.
76652         (Support for systems lacking ISO C 99: Sizes of integer types):
76653         Add size_max.
76654
76655 2005-08-12  Bruno Haible  <bruno@clisp.org>
76656
76657         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
76658
76659 2005-08-11  Simon Josefsson  <jas@extundo.com>
76660
76661         * modules/readline: New file.
76662
76663         * modules/strnlen (Files): Add strnlen.h.
76664
76665 2005-08-11  Simon Josefsson  <jas@extundo.com>
76666
76667         * m4/readline.m4: New file.
76668
76669 2005-08-11  Simon Josefsson  <jas@extundo.com>
76670
76671         * lib/readline.h, readline.c: New file.
76672
76673 2005-08-11  Simon Josefsson  <jas@extundo.com>
76674
76675         * doc/gnulib.texi (Initial import, Finishing touches): Mention
76676         gl_AVOID.
76677
76678 2005-08-11  Bruno Haible  <bruno@clisp.org>
76679
76680         * lib/strnlen.h (strnlen): Change parameter name to match comment.
76681
76682 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
76683
76684         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
76685
76686 2005-08-10  Simon Josefsson  <jas@extundo.com>
76687
76688         * tests/test-iconvme.c: New file.
76689
76690 2005-08-10  Simon Josefsson  <jas@extundo.com>
76691
76692         * m4/strnlen.m4: New file.
76693
76694         * m4/strndup.m4: Don't check for strnlen declaration, done in
76695         strnlen.m4.
76696
76697 2005-08-10  Simon Josefsson  <jas@extundo.com>
76698
76699         * lib/strndup.c: Use strnlen.h.
76700
76701         * lib/strnlen.h: New file.
76702
76703 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76704
76705         * README: Typos.
76706
76707 2005-08-02  Simon Josefsson  <jas@extundo.com>
76708
76709         * modules/readline: New file.
76710
76711 2005-08-02  Simon Josefsson  <jas@extundo.com>
76712
76713         * modules/getdelim: New file.
76714
76715         * modules/getline: Rewrite, don't use getndelim2.
76716
76717 2005-08-02  Simon Josefsson  <jas@extundo.com>
76718
76719         * m4/getline.m4: Separate out getdelim stuff into separate module.
76720
76721         * m4/getdelim.m4: New file.
76722
76723 2005-08-02  Simon Josefsson  <jas@extundo.com>
76724
76725         * lib/getline.h, getline.c: Rewrite.
76726
76727         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
76728
76729 2005-07-31  Bruno Haible  <bruno@clisp.org>
76730
76731         * lib/lock.h (gl_lock_initializer): New macro.
76732         (gl_lock_define_initialized): Use it.
76733         (gl_rwlock_initializer): New macro.
76734         (gl_rwlock_define_initialized): Use it.
76735         (gl_recursive_lock_initializer): New macro.
76736         (gl_recursive_lock_define_initialized): Use it.
76737
76738 2005-07-30  Karl Berry  <karl@gnu.org>
76739
76740         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
76741         Report from Ben Pfaff, regarding getopt.
76742
76743 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
76744
76745         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
76746         normal way.
76747         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
76748         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
76749         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
76750         (gl_GETOPT): Use the new macros.  Most of the implementation
76751         is moved to the new macros.  This is for programs like Emacs
76752         that don't want all the functionality of gl_GETOPT.
76753
76754 2005-07-26  Bruno Haible  <bruno@clisp.org>
76755
76756         * m4/lock.m4: Update from GNU gettext.
76757
76758 2005-07-26  Bruno Haible  <bruno@clisp.org>
76759
76760         * lib/lock.h: Update from GNU gettext.
76761         * lib/lock.c: Update from GNU gettext.
76762
76763 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
76764
76765         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
76766         obsolescent AC_TRY_RUN.  Include the default includes files, for
76767         'exit'.
76768
76769 2005-07-24  Bruno Haible  <bruno@clisp.org>
76770
76771         * modules/visibility: New file.
76772         * MODULES.html.sh (Misc): Add visibility.
76773
76774 2005-07-24  Bruno Haible  <bruno@clisp.org>
76775
76776         * m4/visibility.m4: New file.
76777
76778 2005-07-24  Bruno Haible  <bruno@clisp.org>
76779
76780         * doc/visibility.texi: New file.
76781
76782 2005-07-22  Bruno Haible  <bruno@clisp.org>
76783
76784         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
76785         $(ALLOCA_H), redundant through BUILT_SOURCES.
76786         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
76787         redundant through BUILT_SOURCES.
76788         * modules/byteswap (Makefile.am): Remove explicit dependency on
76789         $(BYTESWAP_H), redundant through BUILT_SOURCES.
76790         * modules/fnmatch (Makefile.am): Remove explicit dependency on
76791         $(FNMATCH_H), redundant through BUILT_SOURCES.
76792         * modules/getopt (Makefile.am): Remove explicit dependency on
76793         $(GETOPT_H), redundant through BUILT_SOURCES.
76794         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
76795         redundant through BUILT_SOURCES.
76796         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
76797         redundant through BUILT_SOURCES.
76798         * modules/stdbool (Makefile.am): Remove explicit dependency on
76799         $(STDBOOL_H), redundant through BUILT_SOURCES.
76800         * modules/stdint (Makefile.am): Remove explicit dependency on
76801         $(STDINT_H), redundant through BUILT_SOURCES.
76802         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
76803         Remove explicit dependency on $(SYSEXITS_H).
76804         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
76805
76806 2005-07-18  Simon Josefsson  <jas@extundo.com>
76807
76808         * lib/check-version.c (check_version): Accept identical versions too.
76809
76810 2005-07-18  Bruno Haible  <bruno@clisp.org>
76811
76812         * modules/lock: New file.
76813         * MODULES.html.sh (Multithreading): New section.
76814
76815 2005-07-18  Bruno Haible  <bruno@clisp.org>
76816
76817         * m4/lock.m4: New file, from GNU gettext.
76818
76819 2005-07-18  Bruno Haible  <bruno@clisp.org>
76820
76821         * lib/lock.h: New file, from GNU gettext.
76822         * lib/lock.c: New file, from GNU gettext.
76823
76824 2005-07-18  Bruno Haible  <bruno@clisp.org>
76825
76826         * lib/lock.h (gl_once_t): New type.
76827         (gl_once_define, gl_once): New macros.
76828         * lib/lock.c (fresh_once): New variable.
76829         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
76830         functions.
76831
76832 2005-07-16  Simon Josefsson  <jas@extundo.com>
76833
76834         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
76835         workaround, suggested by Bruno.
76836
76837 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76838
76839         * modules/xalloc (Depends-on): Add xalloc-die.
76840         * modules/xvasprintf (Depends-on): Add xalloc-die.
76841
76842 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
76843
76844         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
76845         with a minor change.
76846
76847 2005-07-15  Bruno Haible  <bruno@clisp.org>
76848
76849         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
76850         When using lib/poll.c, define poll as rpl_poll.
76851
76852 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
76853
76854         * modules/argp (Depends-on): Remove unlocked-io.
76855
76856 2005-07-14  Derek Price  <derek@ximbiot.com>
76857
76858         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
76859         for glob symlink bug.
76860
76861 2005-07-14  Bruno Haible  <bruno@clisp.org>
76862
76863         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
76864         Instead, test for *_unlocked function declarations directly.
76865
76866 2005-07-11  Simon Josefsson  <jas@extundo.com>
76867
76868         * modules/size_max: New file.
76869
76870         * modules/xsize: Depend on size_max module for size_max.m4.
76871
76872 2005-07-11  Simon Josefsson  <jas@extundo.com>
76873
76874         * lib/size_max.h: New file.
76875
76876 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
76877
76878         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
76879         copyright symbol and the year.
76880         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
76881         (version_etc_va): Use parameterized copyright notice.
76882         Reword to conform to the current GNU coding standards.
76883
76884 2005-07-11  Karl Berry  <karl@gnu.org>
76885
76886         * doc/gnulib.texi (Quoting): new node.
76887         (Initial import): more info, from Patrice.
76888
76889 2005-07-11  Bruno Haible  <bruno@clisp.org>
76890
76891         * gnulib-tool (func_usage): Document option --avoid.
76892         (Command line options): Handle --avoid.
76893         (func_acceptable): New function.
76894         (func_modules_transitive_closure): Use it.
76895
76896 2005-07-11  Bruno Haible  <bruno@clisp.org>
76897
76898         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
76899         Reported by Jim Meyering.
76900
76901 2005-07-10  Bruno Haible  <bruno@clisp.org>
76902
76903         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
76904         Needed when size_t is smaller than 'unsigned int'.
76905         Reported by Paul Eggert.
76906
76907 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76908
76909         * modules/argp (Depends-on): Add unlocked-io
76910
76911 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76912
76913         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
76914         block of defines.
76915
76916 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76917
76918         * config/srclist.txt: Comment out regcomp.c, since we have a porting
76919         fix now.
76920
76921 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
76922         and Paul Eggert  <eggert@cs.ucla.edu>
76923
76924         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
76925         in wint_t, not wchar_t.  Remove now-unnecessary cast.
76926
76927 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76928
76929         * modules/regex (Files): Add lib/regex_internal.c,
76930         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
76931         (Depends-on): Add extensions.
76932         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
76933
76934 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76935
76936         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
76937         pathconf.
76938         * m4/same.m4 (gl_SAME): Likewise.
76939         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
76940
76941         * m4/regex.m4: Adjust to new libc regex implementation.
76942         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
76943         all the .c and .h parts of (the new) regex.
76944         Quote the m4 stuff better.
76945         Check for RE_ICASE bug of old gnulib.
76946         Check for REG_STARTEND of recent libc.
76947         Rename local variables from jm_* to gl_*.
76948         Quote operand of "test -f".
76949         Say "recent enough" version of libc, not "version 2".
76950         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
76951         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
76952         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
76953         Remove check for btowc, isascii.
76954         Require AM_LANGINFO_CODESET.
76955
76956 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76957
76958         * lib/regex.c, regex.h: Sync from libc.
76959         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
76960         * lib/regexec.c:
76961         New files, synced from libc, except that regex_internal.h
76962         currently has a small porting fix.
76963
76964 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
76965
76966         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
76967         regex_internal.c, regexec.c.
76968         Add regex_internal.h too, but as a comment, since the libc version
76969         is currently broken in gnulib mode.
76970
76971 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76972
76973         Support programs like Emacs that use gnulib but not gettext.
76974         * MODULES.html.sh (Internationalization functions): Add gettext-h.
76975         * modules/gettext-h: New file.
76976         * modules/gettext (Files): Remove lib/gettext.h.
76977         (Depends-on): Add gettext-h.
76978         (Makefile.am): Remove lib_SOURCES.
76979         * modules/argmatch, modules/c-stack, modules/closeout:
76980         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
76981         * modules/execute, modules/file-type, modules/getaddrinfo:
76982         * modules/getopt, modules/human, modules/javacomp:
76983         * modules/javaexec, modules/mkdir-p, modules/obstack:
76984         * modules/openat, modules/pagealign_alloc, modules/pipe:
76985         * modules/quotearg, modules/regex, modules/rpmatch:
76986         * modules/unicodeio, modules/userspec, modules/version-etc:
76987         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
76988         * modules/xsetenv:
76989         Depend on gettext-h, not gettext.
76990
76991 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76992
76993         * gnulib-tool (func_import): Add support for 'public domain' license.
76994         * modules/alloca, modules/atexit, modules/memmove:
76995         Now public domain, not GPL.
76996         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
76997         * modules/realloc, modules/strerror, modules/strtod:
76998         Now LGPL, not GPL.
76999
77000 2005-07-05  Bruno Haible  <bruno@clisp.org>
77001
77002         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
77003         autoconf CVS. Needed for mingw.
77004
77005 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77006
77007         Remove the dependency of the strftime module on the tzset module.
77008         * modules/strftime (Depends-on): Remove dependency on tzset.
77009
77010 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77011
77012         Remove the dependency of the strftime module on the tzset module.
77013         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
77014         gl_FUNC_TZSET_CLOBBER.
77015
77016 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77017
77018         Remove the dependency of the strftime module on the tzset module.
77019         * lib/strftime.c (my_strftime)
77020         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
77021         Copy the input structure, to work around some of the bug with
77022         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
77023         Solaris releases, you should also use the tzset module, but we won't
77024         require it as a dependency any more since we don't want LGPLed code
77025         to depend on GPLed code.
77026
77027 2005-07-02  Jim Meyering  <jim@meyering.net>
77028
77029         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
77030         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
77031         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
77032         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
77033
77034 2005-07-02  Jim Meyering  <jim@meyering.net>
77035
77036         * lib/backupfile.c (backup_args): Change a `0' to NULL.
77037
77038 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77039
77040         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
77041         declares only 'struct timespec;' (!).
77042
77043 2005-07-01  Jim Meyering  <jim@meyering.net>
77044
77045         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
77046         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
77047         * lib/save-cwd.c, tempname.c:
77048         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
77049         and don't include <sys/file.h>).
77050
77051 2005-06-29  Jim Meyering  <jim@meyering.net>
77052
77053         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
77054         type name.  Use the variable name instead.
77055         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
77056         Likewise.
77057
77058 2005-06-28  Simon Josefsson  <jas@extundo.com>
77059
77060         * modules/check-version (Files): Add check-version.m4.
77061
77062 2005-06-28  Simon Josefsson  <jas@extundo.com>
77063
77064         * m4/check-version.m4: New file, suggested by Jim Meyering
77065         <jim@meyering.net>.
77066
77067 2005-06-28  Simon Josefsson  <jas@extundo.com>
77068
77069         * lib/check-version.h, lib/check-version.c: New files.
77070
77071 2005-06-28  Simon Josefsson  <jas@extundo.com>
77072
77073         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
77074         collision with global variable.  Better indentation.  Don't
77075         increment buffer pointer beyond buffer end.  Based on comments
77076         from Paul Eggert <eggert@cs.ucla.edu>.
77077
77078         * lib/base64.h: Indent.
77079
77080 2005-06-28  Simon Josefsson  <jas@extundo.com>
77081
77082         * doc/gnulib.texi (Library version handling): New section.
77083
77084 2005-06-28  Jim Meyering  <jim@meyering.net>
77085
77086         * check-module (find_included_lib_files): Hard-code another
77087         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
77088         but modules/fts-lgpl (correctly) does not list those files.
77089
77090         * modules/canonicalize (Files): Add lib/pathmax.h.
77091
77092 2005-06-25  Simon Josefsson  <jas@extundo.com>
77093
77094         * modules/check-version: New file.
77095
77096 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
77097
77098         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
77099         initializer of struct addrinfo, as an indication that we don't
77100         care how many members the structure has.
77101
77102 2005-06-24  Derek Price  <derek@ximbiot.com>
77103         and Bruno Haible  <bruno@clisp.org>
77104
77105         Remove stat module & update lstat.
77106         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
77107         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77108         * m4/stat.m4: Remove this file.
77109
77110 2005-06-24  Derek Price  <derek@ximbiot.com>
77111         and Bruno Haible  <bruno@clisp.org>
77112
77113         Remove stat module & update lstat.
77114         * lib/stat.c: Remove this file...
77115         (slash_aware_lstat): ...moving this content and its support...
77116         * lib/lstat.c (rpl_lstat): ...into here.
77117         * lib/lstat.h: New file.
77118
77119 2005-06-24  Derek Price  <derek@ximbiot.com>
77120         and Bruno Haible  <bruno@clisp.org>
77121
77122         Remove stat module & update lstat.
77123         * config/srclist.txt (libc sources): Remove stat.
77124
77125 2005-06-24  Derek Price  <derek@ximbiot.com>
77126         and Bruno Haible  <bruno@clisp.org>
77127
77128         Remove stat module & update lstat.
77129         * MODULES.html.sh (stat): Remove.
77130         * MODULES.html: Regenerated.
77131         * modules/lstat (Description): Correct function name.
77132         (Files): Add "lstat.h".
77133         (Depends-on): Remove stat, add xalloc, stat-macros.
77134         * modules/stat: Remove this file.
77135         (Include): Add "lstat.h", remove <sys/stat.h>.
77136
77137 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
77138
77139         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
77140         (ranged_convert): Don't save conversion in a temporary struct.
77141         This causes a warning with GCC 4.0.0, and anyway in the typical
77142         case it's not worth the extra 100 bytes or so of code.
77143         (ranged_convert, __mktime_internal): When calling a function via a
77144         pointer P, use P () rather than (*P) (), as we now assume C89 or
77145         better.
77146
77147 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77148
77149         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
77150         "who -r" failed to give output.  Problem reported by Tim Waugh.
77151
77152         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
77153         (xcalloc): Use it to avoid needless tests.
77154         Problem reported by Jim Meyering.
77155
77156 2005-06-20  Derek Price  <derek@ximbiot.com>
77157
77158         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
77159         unnecessary for Autoconfs > 2.59c.
77160
77161 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77162
77163         * lib/argp.h (__option_is_short): Check upper limit of
77164         __key. Isprint() requires its argument to have the value
77165         of an unsigned char or EOF.
77166
77167 2005-06-16  Jim Meyering  <jim@meyering.net>
77168
77169         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
77170         when either N or S is zero.
77171
77172 2005-06-16  Derek Price  <derek@ximbiot.com>
77173
77174         * m4/bison.m4: Declare YACC & YFLAGS precious.
77175
77176 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
77177
77178         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
77179         multibyte string or pattern, fall back on unibyte matching.
77180         Problem reported by James Youngman.
77181
77182 2005-06-08  Bruno Haible  <bruno@clisp.org>
77183
77184         * modules/csharpcomp: New file.
77185         * MODULES.html.sh (C#): Add csharpcomp.
77186
77187 2005-06-08  Bruno Haible  <bruno@clisp.org>
77188
77189         * m4/csharpcomp.m4: New file, from GNU gettext.
77190
77191 2005-06-08  Bruno Haible  <bruno@clisp.org>
77192
77193         * lib/csharpcomp.h: New file, from GNU gettext.
77194         * lib/csharpcomp.c: New file, from GNU gettext.
77195         * lib/csharpcomp.sh.in: New file, from GNU gettext.
77196
77197 2005-06-08  Bruno Haible  <bruno@clisp.org>
77198
77199         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
77200         warning on mingw.
77201
77202 2005-06-07  Derek Price  <derek@ximbiot.com>
77203
77204         Sync from CVS.
77205         * lib/glob_.h: Indent nested #ifdef.
77206
77207 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77208
77209         Sync from coreutils.
77210         Use "file name" when talking about file names, instead of "filename"
77211         or "path", as per the GNU coding standards.
77212         * lib/mkdir-p.c: Renamed from makepath.c.
77213         (make_dir_parents): Renamed from make_path.  All callers changed.
77214         * lib/mkdir-p.h: Likewise.  All includers changed.
77215         * lib/filenamecat.c: Renamed from path-concat.c.
77216         (file_name_concat): Renamed from path_concat.  All callers changed.
77217         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
77218         * lib/filenamecat.h: Likewise.  All includers changed.
77219         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
77220         in comments or local variable names.
77221         * lib/basename.c: Likewise.
77222         * lib/canonicalize.c, canonicalize.h: Likewise.
77223         * lib/dirname.c, dirname.h: Likewise.
77224         * lib/euidaccess.c: Likewise.
77225         * lib/exclude.c: Likewise
77226         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
77227         * lib/fsusage.c, fsuage.h: Likewise.
77228         * lib/fts.c, fts_.h: Likewise.
77229         * lib/getcwd.c: Likewise.
77230         * lib/getloadavg.c: Likewise.
77231         * lib/mkstemp.c: Likewise.
77232         * lib/mountlist.c, mountlist.h: Likewise.
77233         * lib/openat.c, openat.h: Likewise.
77234         * lib/readlink-stub.c: Likewise.
77235         * lib/readutmp.c, readutmp.h: Likewise.
77236         * lib/rename.c: Likewise.
77237         * lib/rmdir.c: Likewise.
77238         * lib/same.c: Likewise.
77239         * lib/savedir.c: Likewise.
77240         * lib/stripslash.c: Likewise.
77241         * lib/tempname.c: Likewise.
77242         * lib/xreadlink.c: Likewise.
77243         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
77244         All uses changed.
77245         * lib/exclude.h: Likewise.
77246
77247         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
77248         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77249         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
77250         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77251         * lib/pathmax.h: Include <limits.h> unconditionally, since other
77252         files have been getting away with it for years (MORE/BSD 4.3
77253         is extinct now).
77254         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
77255         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
77256
77257         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
77258         Define to 256, not 255, as per modern POSIX.
77259
77260 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77261
77262         Sync from coreutils.
77263         Use "file name" when talking about file names, instead of "filename"
77264         or "path", as per the GNU coding standards.
77265         * MODULES.html.sh: mkdir-p renamed from makepath.
77266         filenamecat renamed from path-concat.
77267         * modules/filenamecat: Renamed from modules/path-concat.
77268         (Files): filenamecat.h and filenamecat.c renamed from
77269         path-concat.h and path-concat.c.
77270         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
77271         (Include): filenamecat.h, not path-concat.h.
77272         * modules/mkdir-p: Renamed from modules/makepath.
77273         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
77274         makepath.c.
77275         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
77276         (Include): mkdir-p.h, not makepath.h.
77277
77278 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
77279
77280         Sync from coreutils.
77281         * m4/mkdir-p.m4: Renamed from makepath.m4.
77282         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
77283         Rename files from makepath.c to mkdir-p.c, and from
77284         makepath.h to mkdir-p.h.
77285         * m4/filenamecat.m4: Renamed from path-concat.m4.
77286         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
77287         Rename files from path-concat.c to filenamecat.c,
77288         and from path-concat.h to filenamecat.h.
77289         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
77290         "file name" in local variables or comments.
77291         * m4/rename.m4: Likewise.
77292
77293 2005-06-01  Bruno Haible  <bruno@clisp.org>
77294
77295         * modules/csharpexec: New file.
77296         * MODULES.html.sh (C#): New section.
77297
77298 2005-06-01  Bruno Haible  <bruno@clisp.org>
77299
77300         * m4/csharp.m4: New file, from GNU gettext.
77301         * m4/csharpexec.m4: New file, from GNU gettext.
77302
77303 2005-06-01  Bruno Haible  <bruno@clisp.org>
77304
77305         * lib/csharpexec.h: New file, from GNU gettext.
77306         * lib/csharpexec.c: New file, from GNU gettext.
77307         * lib/csharpexec.sh.in: New file, from GNU gettext.
77308
77309 2005-05-31  Derek Price  <derek@ximbiot.com>
77310             Paul Eggert  <eggert@cs.ucla.edu>
77311
77312         Sync from cvs.
77313         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
77314
77315 2005-05-31  Derek Price  <derek@ximbiot.com>
77316             Paul Eggert  <eggert@cs.ucla.edu>
77317
77318         Sync from cvs.
77319         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
77320
77321 2005-05-29  Derek Price  <derek@ximbiot.com>
77322
77323         * config/srclist.txt (glob_.h, glob.c): Add these files.
77324
77325 2005-05-29  Derek Price  <derek@ximbiot.com>
77326
77327         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
77328         * modules/glob: New file.
77329         * modules/getlogin_r: Add link to POSIX spec in description.
77330
77331 2005-05-29  Derek Price  <derek@ximbiot.com>
77332             Paul Eggert  <eggert@cs.ucla.edu>
77333
77334         * m4/glob.m4: New file.
77335
77336 2005-05-29  Derek Price  <derek@ximbiot.com>
77337             Paul Eggert  <eggert@cs.ucla.edu>
77338
77339         * lib/glob_.h, lib/glob.c: New files.
77340
77341 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77342
77343         * modules/fts (Files): Remove m4/inttypes-pri.m4.
77344         * modules/fts-lgpl (Depends-on): Remove gettext.
77345
77346 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77347
77348         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
77349         and don't require gt_INTTYPES_PRI.
77350
77351 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
77352
77353         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
77354
77355         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
77356         the configuration hassle isn't worth it.
77357         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
77358         (LONGEST_MODIFIER, PRIuMAX): Remove.
77359
77360 2005-05-27  Bruno Haible  <bruno@clisp.org>
77361
77362         * lib/getlogin_r.h: Remove second include of <stddef.h>.
77363
77364 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
77365
77366         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
77367         _POSIX_PTHREAD_SEMANTICS for Solaris.
77368
77369 2005-05-25  Derek Price  <derek@ximbiot.com>
77370
77371         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
77372
77373 2005-05-25  Derek Price  <derek@ximbiot.com>
77374             Paul Eggert  <eggert@cs.ucla.edu>
77375
77376         * modules/getlogin_r, m4/getlogin_r.m4: New files.
77377         * lib/getlogin_r.c, getlogin_r.h: New files.
77378
77379 2005-05-25  Bruno Haible  <bruno@clisp.org>
77380             Derek Price  <derek@ximbiot.com>
77381
77382         * lib/getlogin_r.h: Simplify API documentation.
77383
77384 2005-05-23  Derek Price  <derek@ximbiot.com>
77385
77386         * modules/minmax (Files): Add m4/minmax.m4.
77387         (configure.ac): Add gl_MINMAX.
77388
77389 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
77390
77391         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
77392         so that unistd-safer.h (GPL'ed code) need not be included.
77393
77394 2005-05-22  Bruno Haible  <bruno@clisp.org>
77395
77396         * m4/minmax.m4: New file.
77397         Based on a patch by Derek Price <derek@ximbiot.com>.
77398
77399 2005-05-22  Bruno Haible  <bruno@clisp.org>
77400
77401         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
77402         (INT64_MIN): Fix definition.
77403         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
77404
77405         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
77406         NEED_SIGNED_INT_TYPES.
77407
77408         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
77409         HAVE_SYSTEM_INTTYPES.
77410
77411 2005-05-22  Bruno Haible  <bruno@clisp.org>
77412
77413         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
77414         Also include <sys/param.h> if it defines MIN, MAX.
77415         Based on a patch by Derek Price <derek@ximbiot.com>.
77416
77417 2005-05-21  Jim Meyering  <jim@meyering.net>
77418
77419         * modules/fts (Files): Add m4/inttypes-pri.m4.
77420         (Depends-on): Add lstat and remove gettext.  Alphabetize.
77421
77422 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77423
77424         New fts module.
77425         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
77426         (setup_dir, free_dir): New functions.
77427         (enter_dir, leave_dir): Define trivial
77428         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
77429         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
77430         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
77431         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
77432         Move to fts-cycle.c.
77433         (fts_open): Use setup_dir.
77434         (fts_close): Use free_dir.
77435         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
77436         This adds a label and some gotos, but the alternatives were messier.
77437         Check for memory allocation failure when entering a dir.
77438         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
77439         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
77440         (FTS): New member fts_cycle, that is a union that contains the
77441         old active_dir_ht and cycle_state.  All uses changed to mention
77442         fts_cycle.ht and fts_cycle.state.
77443         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
77444         fts.c, with the following changes:
77445         (setup_dir, free_dir): New functions.
77446         (enter_dir): Now returns bool.  Return true if successful, false
77447         if memory exhausted.  All callers changed.
77448         Do not bother partly cleaning up on
77449         memory allocation failure; that is free_dir's job.
77450         However, free ad if hash_insert fails, to avoid memory leak.
77451         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
77452         fts->fts_options to see which union member to use.
77453
77454 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77455
77456         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
77457         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
77458
77459 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
77460
77461         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
77462
77463 2005-05-20  Jim Meyering  <jim@meyering.net>
77464
77465         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
77466         Now a macro, to pacify GCC.
77467
77468 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77469
77470         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
77471         of -1.
77472
77473 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
77474
77475         * lib/chown.c (rpl_chown): Return -1 on failure.
77476
77477 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77478
77479         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
77480         Don't check for stddef.h.
77481         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
77482         don't use its results.
77483         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
77484         since we include them unconditionally.  Don't require
77485         AM_STDBOOL_H, since stdbool is a prerequisite.
77486         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
77487         since we assume C89 or better.
77488         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
77489         as we don't use their results.
77490         Don't check for fchdir, memmove, memset, strrchr, as we use
77491         them unconditionally.
77492         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
77493         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
77494
77495 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
77496
77497         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
77498         Include <stddef.h> unconditionally, since we assume C89 now.
77499         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
77500         * lib/fts.c: Include fts_.h first, to check interface.
77501         Do not include intprops.h; no longer needed.
77502         Include cycle-check.h and hash.h, since fts_.h no longer does.
77503         Remove unnecessary casts of closedir to void.
77504         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
77505         decide whether to decrement nlinks.
77506         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
77507         (FTS): Use struct hash_table * instead of Hash_table, so that
77508         we no longer need to include hash.h here.
77509
77510 2005-05-18  Jim Meyering  <jim@meyering.net>
77511
77512         * modules/dirfd (License): Change to LGPL.  Most of the code
77513         is already in the public domain.
77514
77515 2005-05-18  Jim Meyering  <jim@meyering.net>
77516
77517         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
77518         Reported by Yoann Vandoorselaere.
77519
77520 2005-05-17  Jim Meyering  <jim@meyering.net>
77521
77522         * m4/fts.m4: New file, from coreutils.
77523
77524 2005-05-17  Jim Meyering  <jim@meyering.net>
77525
77526         * lib/fts.c, lib/fts_.h: New files, from coreutils.
77527
77528 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77529
77530         Sync from coreutils.
77531         * m4/unlinkdir.m4: New file.
77532
77533 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77534
77535         Sync from coreutils.
77536         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
77537         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
77538         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
77539         White space changes only.
77540         * lib/makepath.c (make_path): Port to hosts where leading "//" is
77541         special.
77542         * lib/yesno.c: Include getline.h, not ctype.h.
77543         (yesno): Don't remove leading white space; POSIX doesn't allow it.
77544         Use getline to remove arbitrary restriction on response length.
77545
77546 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77547
77548         * config/srclist-update: Spell out "Street" in FSF postal
77549         mail address; this is the style the FSF seems to prefer.
77550
77551         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
77552         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
77553         this updates FSF postal mail address.
77554
77555         Sync from coreutils.
77556         * modules/unlinkdir: New file.
77557         * modules/yesno (Depends-on): Add getline.
77558         * MODULES.html.sh (File system functions): Add unlinkdir.
77559
77560 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77561
77562         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
77563         lib/strsep.h:
77564         Change the initial comment to refer to GPL, not LGPL.
77565         gnulib-tool will change it to LGPL as needed.
77566
77567         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
77568         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
77569         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
77570         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
77571         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
77572         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
77573         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
77574         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
77575         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
77576         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
77577         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
77578         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
77579         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
77580         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
77581         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
77582         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
77583         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
77584         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
77585         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
77586         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
77587         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
77588         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
77589         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
77590         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
77591         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
77592         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
77593         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
77594         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
77595         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
77596         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
77597         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
77598         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
77599         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
77600         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
77601         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
77602         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
77603         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
77604         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
77605         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
77606         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
77607         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
77608         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
77609         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
77610         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
77611         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
77612         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
77613         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
77614         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
77615         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
77616         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
77617         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
77618         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
77619         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
77620         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
77621         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
77622         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
77623         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
77624         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
77625         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
77626         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
77627         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
77628         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
77629         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
77630         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
77631         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
77632         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
77633         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
77634         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
77635         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
77636         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
77637         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
77638         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
77639         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
77640         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
77641         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
77642         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
77643         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
77644         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
77645         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
77646         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
77647         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
77648         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
77649         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
77650         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
77651         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
77652         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
77653         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
77654         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
77655         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
77656         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
77657         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
77658         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
77659         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
77660         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
77661         lib/yesno.c, lib/yesno.h:
77662         Update FSF postal mail address.
77663
77664 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
77665
77666         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
77667         tests/test-memmem.c, tests/test-stpncpy.c:
77668         Update FSF postal mail address.
77669
77670 2005-05-13  Bruno Haible  <bruno@clisp.org>
77671
77672         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
77673         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
77674         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
77675         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
77676         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
77677         Add support for 64-bit integers in the MSVC compiler.
77678
77679 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
77680
77681         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
77682
77683 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
77684
77685         * gnulib-tool (func_import): Sort and uniquify recommended includes.
77686
77687 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
77688
77689         * doc/getdate.texi (General date syntax): Don't say that date
77690         date --iso-8601=ns generates acceptable dates; it doesn't yet.
77691         Problem reported by Nic Ferrier.
77692
77693 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77694
77695         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
77696         specified in ai_socktype. Fix invalid ai_protocol
77697         check. ai_protocol is usually set to 0 or depending on
77698         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
77699         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
77700         ai_socktype / ai_protocol in the returned addrinfo structure.
77701
77702 2005-05-10  Simon Josefsson  <jas@extundo.com>
77703
77704         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
77705         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77706
77707 2005-05-10  Karl Berry  <karl@gnu.org>
77708
77709         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
77710         (from http://www.gnu.org/licenses).
77711         * doc/COPYING.LIB: also rename to COPYING.LESSER.
77712         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
77713         fdl.texi suffices.
77714
77715 2005-05-10  Karl Berry  <karl@gnu.org>
77716
77717         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
77718         (COPYING.DOC): remove.
77719
77720         * config/srclist-update: new FSF address.
77721
77722 2005-05-10  Derek Price  <derek@ximbiot.com>
77723
77724         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
77725         possible.
77726
77727 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77728             Bruno Haible  <bruno@clisp.org>
77729
77730         * modules/inet_ntop: New file.
77731         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77732         inet_ntop.
77733
77734 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77735             Bruno Haible  <bruno@clisp.org>
77736
77737         * m4/inet_ntop.m4: New file.
77738
77739 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77740             Bruno Haible  <bruno@clisp.org>
77741
77742         * lib/inet_ntop.h: New file.
77743         * lib/inet_ntop.c: New file, from glibc with modifications.
77744
77745 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
77746
77747         * modules/time_r (License): Change to LGPL.
77748         * modules/extensions (License): Change to LGPL.  Actually,
77749         the license is more permissive than that, but currently gnulib-tool
77750         doesn't know how to handle more-permissive licenses.
77751
77752         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
77753         Problem reported by Dave Love.
77754
77755 2005-05-08  Jim Meyering  <jim@meyering.net>
77756
77757         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
77758         blank.
77759
77760 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
77761
77762         * modules/argmatch (Depends-on): Add stdbool.
77763         * modules/backupfile (Depends-on): Likewise.
77764         * modules/chdir-long (Depends-on): Likewise.
77765         * modules/closeout (Depends-on): Likewise.
77766         * modules/cycle-check (Depends-on): Likewise.
77767         * modules/dirname (Depends-on): Likewise.
77768         * modules/fnmatch (Depends-on): Likewise.
77769         * modules/fsusage (Depends-on): Likewise.
77770         * modules/fwriteerror (Depends-on): Likewise.
77771         * modules/getcwd (Depends-on): Likewise.
77772         * modules/getloadavg (Depends-on): Likewise.
77773         * modules/hard-locale (Depends-on): Likewise.
77774         * modules/makepath (Depends-on): Likewise.
77775         * modules/mountlist (Depends-on): Likewise.
77776         * modules/nanosleep (Depends-on): Likewise.
77777         * modules/posixtm (Depends-on): Likewise.
77778         * modules/quotearg (Depends-on): Likewise.
77779         * modules/readtokens (Depends-on): Likewise.
77780         * modules/readtokens0 (Depends-on): Likewise.
77781         * modules/readutmp (Depends-on): Likewise.
77782         * modules/save-cwd (Depends-on): Likewise.
77783         * modules/strftime (Depends-on): Likewise.
77784         * modules/userspec (Depends-on): Likewise.
77785         * modules/utimecmp (Depends-on): Likewise.
77786         * modules/xgetcwd (Depends-on): Likewise.
77787         * modules/xnanosleep (Depends-on): Likewise.
77788         * modules/xstrtod (Depends-on): Likewise.
77789         * modules/yesno (Depends-on): Likewise.
77790
77791 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
77792
77793         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
77794         needless checks.
77795
77796 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77797
77798         Merge from coreutils.  Among other things,
77799         add bulletproofing for cases where stdin, stdout, or stderr are closed.
77800         * lib/fd-safer.c: New file.
77801         * lib/fcntl-safer.h, open-safer.c: Remove.
77802         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
77803         * lib/dup-safer.c: Include unistd-safer.h first.
77804         Don't include errno.h.
77805         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
77806         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
77807         * lib/file-type.c: Rely on file-type.h change.
77808         * lib/getloadavg.c: Include unistd-safer.h.
77809         (getloadavg): Use safer open.
77810         * lib/getusershell.c: Include "stdio-safer.h".
77811         (getusershell): Use safer fopen.
77812         * lib/long-options.c (long_options): Use NULL rather than 0.
77813         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
77814         'free'.
77815         * lib/modechange.c: Likewise.
77816         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
77817         (MODE_DONE): New constant.
77818         (struct mode_change): Remove 'next' member.
77819         (make_node_op_equals): New function; like the old one of the
77820         same name, except it allocates an array.
77821         (mode_compile, mode_create_from_ref): Use it.
77822         (mode_compile): Allocate result as an array, not a linked list.
77823         Parse octal string ourself, so that we catch mistakes like "+0".
77824         (mode_adjust): Arg is an array, not a linked list.
77825         * lib/modechange.c: Include stat-macros.h, xalloc.h.
77826         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
77827         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
77828         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
77829         Remove.  This is now stat-macros.h's job.
77830         (talloc): Remove.  All callers replaced by xalloc, so that
77831         our invokers don't have to worry about reporting memory failures.
77832         (make_node_op_equals): Remove.
77833         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77834         New constants.
77835         (struct mode_change): Moved here from modechange.h.
77836         (mode_append_entry): Remove.
77837         (mode_compile): Remove MASKED_OPS arg, since it encouraged
77838         apps to have incorrect behavior.  Use simpler algorithm for head
77839         and tail.  Don't futz with umask; that's now the job of mode_adjust.
77840         Detect more invalid usages rather than having somewhat-random behavior.
77841         Don't insert an "a=" action, as that leads to incorrect behavior.
77842         (mode_compile, mode_create_from_ref): Return NULL on error instead
77843         of an enum, since now there's only one way to have an error.  All
77844         callers changed.
77845         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
77846         at the correct time.  Simplify calculation of "+u" and its ilk.
77847         Don't mishandle "+X".
77848         (mode_free): Remove "register" and localize decls.
77849         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
77850         (struct mode_change): Move to modechange.c; callers don't
77851         need to see this stuff.
77852         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
77853         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
77854         (mode_change, mode_adjust): Reflect the new signatures noted above.
77855         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
77856         that might redefine system include files.
77857         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
77858         (my_usleep): Use NULL rather than (void *) 0.
77859         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
77860         Use siginterrupt to specify that system calls should be interrupted.
77861         (rpl_nanosleep): Move initialization of suspended closer to call of
77862         my_usleep.
77863         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
77864         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
77865         (desirable_utmp_entry): New function.
77866         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
77867         using x2nrealloc, to simplify logic.
77868         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
77869         size calculation.  Do not assume utmp file is a regular file.
77870         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
77871         (READ_UTMP_CHECK_PIDS): New constant.
77872         * lib/save-cwd.c: Include unistd-safer.h.
77873         (save_cwd): Use fd_safer.
77874         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
77875         [!_LIBC] Include "stat-macros.h" instead.
77876         * lib/unistd-safer.h (fd_safer): New decl.
77877
77878 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77879
77880         * modules/getloadavg (Depends-on): Add unistd-safer.
77881         * modules/getusershell (Depends-on): Add stdio-safer.
77882         * modules/lstat (Depends-on): Remove xalloc.
77883         * modules/mkstemp (Depends-on): Add stat-macros.
77884         * modules/modechange (Depends-on): Remove xstrtol.
77885         Add stat-macros, xalloc.
77886         * modules/save-cwd (Depends-on): Add unistd-safer.
77887         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
77888         * modules/unistd-safer (Files): Add lib/fd-safer.c
77889         (Makefile.am): Remove lib_SOURCES.
77890
77891         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
77892         Remove fcntl-safer; unistd-safer supersedes it.
77893
77894 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77895
77896         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
77897         AC_HEADER_STAT.
77898         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
77899         (gl_PREREQ_CHOWN): Remove.
77900         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
77901         it.  Don't require AC_HEADER_STAT.
77902         (gl_PREREQ_LSTAT): Remove.
77903         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
77904         Don't require AC_HEADER_STAT.
77905         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
77906         (gl_PREREQ_RMDIR): Remove.
77907         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
77908         mention stat-macros.h or AC_HEADER_STAT, since we'll make
77909         the stat-macros module a prerequisite.
77910         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
77911         * m4/filemode.m4 (gl_FILEMODE): Likewise.
77912         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
77913         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
77914         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
77915         variable names.
77916         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
77917         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
77918         variable prefixes.
77919         * m4/fcntl-safer.m4: Remove.
77920         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
77921         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
77922         Invoke gl_PREREQ_FD_SAFER.
77923         (gl_PREREQ_FD_SAFER): New macro.
77924         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
77925         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
77926         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
77927         Remove duplicate call to AC_LIBOBJ(readutmp).
77928         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
77929
77930         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
77931         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
77932
77933 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
77934
77935         * MODULES.html.sh (Misc): Add byteswap.
77936
77937 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77938
77939         * modules/getcwd (Depends-on): Add extensions.
77940         * modules/openat (Depends-on): Likewise.
77941
77942 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77943
77944         * modules/byteswap: New file.
77945
77946 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77947
77948         * m4/byteswap.m4: New file.
77949
77950 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
77951
77952         * lib/byteswap_.h: New file.
77953
77954 2005-04-25  Karl Berry  <karl@gnu.org>
77955
77956         * m4/gettext.m4: Update from GNU gettext 0.14.4.
77957
77958 2005-04-25  Albert Chin  <china@thewrittenword.com>
77959
77960         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
77961         Toolkit C bug.
77962
77963 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
77964
77965         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
77966         (func_ln_if_changed): Remove forcibly for no error message
77967         in case file does not exist.
77968
77969 2005-04-19  Simon Josefsson  <jas@extundo.com>
77970
77971         * gnulib-tool (Options): Make --symlink mean --symbolic.
77972
77973 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
77974
77975         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
77976
77977 2005-04-16  Simon Josefsson  <jas@extundo.com>
77978
77979         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
77980
77981 2005-04-15  Simon Josefsson  <jas@extundo.com>
77982
77983         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
77984
77985 2005-04-15  Simon Josefsson  <jas@extundo.com>
77986
77987         * gnulib-tool: Rename --symlink to --symbolic.
77988
77989 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
77990
77991         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
77992         symbolic links to files instead of copying/moving.  Add --aux-dir,
77993         specifying directory relative --dir where auxiliary build tools
77994         are placed.
77995
77996 2005-04-14  Bruno Haible  <bruno@clisp.org>
77997
77998         * modules/allocsa (License): Change to LGPL.
77999         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
78000
78001 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
78002
78003         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
78004         that "UTC +1 second" continues to work.  Problem reported
78005         by Dmitry V. Levin.
78006         (relunit_snumber): New rule.
78007         (relunit): Use it.
78008
78009 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
78010
78011         * lib/getdate.y (universal_time_zone_table): New constant.
78012         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
78013         universal_time_zone_table.
78014         (lookup_zone): Prefer universal_time_zone_table to
78015         local_time_zone_table, so that "GMT" time stamps are allowed in
78016         London during the summer.  Problem reported by Ian Abbott.
78017
78018 2005-04-12  Jim Meyering  <jim@meyering.net>
78019
78020         * lib/human.c (humblock): Set *options even when returning due to
78021         xstrtoumax conversion failure.  Thanks to a used-uninitialized
78022         warning from gcc-4.
78023
78024 2005-04-09  Jim Meyering  <jim@meyering.net>
78025
78026         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
78027         -Wuninitialized: initialize tm0.tm_year.
78028
78029 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
78030
78031         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
78032         count, since there's no maximum.  All uses changed.
78033         Add member dsts_seen.
78034         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
78035         not being INT_MAX.
78036         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
78037         Use pc_rels_seen to decide whther a date is absolute.
78038
78039         * lib/getdate.y (number): Don't overwrite year.
78040         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
78041         check.
78042
78043 2005-04-02  Simon Josefsson  <jas@extundo.com>
78044
78045         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
78046         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
78047
78048 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
78049
78050         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
78051         where no absolute path name can be longer than PATH_MAX.
78052
78053 2005-03-27  Jim Meyering  <jim@meyering.net>
78054
78055         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
78056
78057 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
78058
78059         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
78060         "one's complement" -> "ones' complement" in comment, as per Knuth.
78061         "value of type" -> "type or expression" in comment.
78062         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
78063
78064 2005-03-26  Jim Meyering  <jim@meyering.net>
78065
78066         Comment nits.
78067         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
78068         Correct typos: s/or/of/.
78069
78070 2005-03-26  Jim Meyering  <jim@meyering.net>
78071
78072         * modules/check-include-files: Move to ../ and rename to...
78073         * check-module: ...this.
78074
78075 2005-03-25  Jim Meyering  <jim@meyering.net>
78076
78077         * modules/xvasprintf (Files): Add xalloc.h.
78078
78079 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
78080
78081         * modules/gettext (Files): config/config.rpath ->
78082         build-aux/config.rpath
78083         * modules/iconv (Files): Likewise.
78084         Problem reported by Oskar Liljeblad.
78085
78086 2005-03-23  Jim Meyering  <jim@meyering.net>
78087
78088         * modules/check-include-files: New script to check for
78089         missing dependencies, multiple includes, etc.
78090
78091         * modules/c-strtold (Depends-on): Add xalloc.
78092         * modules/c-strtod (Depends-on): Add xalloc.
78093         * modules/hash (Depends-on): Add xalloc.
78094         (Files): Remove lib/xalloc.h.
78095
78096         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
78097         * modules/userspec (Files): Add lib/inttostr.h.
78098
78099 2005-03-23  Jim Meyering  <jim@meyering.net>
78100
78101         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
78102
78103 2005-03-22  Jim Meyering  <jim@meyering.net>
78104
78105         * modules/stat-macros: New module.
78106         * modules/canonicalize, modules/euidaccess, modules/file-type,
78107         * modules/filemode, modules/lchown, modules/makepath,
78108         * modules/rmdir, modules/stat: Depend on new stat-macros module
78109         rather than listing lib/stat-macros.h manually.
78110         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
78111
78112 2005-03-22  Jim Meyering  <jim@meyering.net>
78113
78114         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
78115
78116 2005-03-22  Bruno Haible  <bruno@clisp.org>
78117
78118         * config/srclist.txt: Replace target directory 'config' with
78119         'build-aux'.
78120         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
78121         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
78122         ../build-aux/.
78123
78124 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
78125
78126         * modules/chdir-long (Depends-on): Add mempcpy.
78127
78128         * modules/acl, modules/backupfile, modules/c-strtod,
78129         modules/c-strtold, modules/canon-host, modules/canonicalize,
78130         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
78131         modules/exclude, modules/exitfail, modules/file-type,
78132         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
78133         modules/getdate, modules/getline, modules/getpagesize,
78134         modules/getpass, modules/getugroups, modules/group-member,
78135         modules/hard-locale, modules/hash, modules/human, modules/idcache,
78136         modules/inttostr, modules/long-options, modules/makepath,
78137         modules/md5, modules/memcasecmp, modules/memcoll,
78138         modules/modechange, modules/mountlist, modules/path-concat,
78139         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
78140         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
78141         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
78142         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
78143         modules/strftime, modules/strndup, modules/strverscmp,
78144         modules/timespec, modules/unlocked-io, modules/userspec,
78145         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
78146         modules/yesno:
78147         Remove lib_SOURCES line from Makefile.am section, as this is now
78148         done automatically by the corresponding Autoconf macro.
78149
78150 2005-03-21  Jim Meyering  <jim@meyering.net>
78151
78152         Changes imported from coreutils.
78153
78154         * lib/cycle-check.c: Don't include xalloc.h.
78155
78156         * lib/path-concat.c: Don't include assert.h.
78157         (path_concat): Remove assertion that would have triggered
78158         for ABASE starting with more than one slash.
78159         Reported by Andreas Schwab.
78160
78161         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
78162         properly when ABASE is an absolute file name.
78163         Correct the description of this function.
78164         Include <assert.h>.
78165         Add an assertion and a test driver.
78166         This fixes a bug introduced on 2004-07-02.
78167         Andreas Schwab reported the resulting failure of cp --parents:
78168         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
78169
78170 2005-03-21  Jim Meyering  <jim@meyering.net>
78171
78172         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
78173         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
78174
78175 2005-03-21  Jim Meyering  <jim@meyering.net>
78176         and  Paul Eggert  <eggert@cs.ucla.edu>
78177
78178         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
78179         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
78180         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
78181         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
78182         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
78183         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
78184         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
78185         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
78186         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
78187         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
78188         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
78189         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
78190         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
78191         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
78192         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
78193         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
78194         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
78195         for these modules.
78196
78197 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
78198
78199         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
78200         (which shouldn't happen), generate nothing instead of returning 0
78201         immediately, so that nstrftime (NULL, ...) doesn't return 0.
78202
78203 2005-03-16  Bruno Haible  <bruno@clisp.org>
78204
78205         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
78206         HAVE_LONGLONG_64BIT.
78207
78208 2005-03-16  Bruno Haible  <bruno@clisp.org>
78209
78210         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
78211         HAVE_LONGLONG_64BIT.
78212
78213 2005-03-16  Bruno Haible  <bruno@clisp.org>
78214
78215         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
78216         HAVE_LONGLONG_64BIT.
78217
78218 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
78219
78220         * lib/strftime.c (my_strftime): Prepend space to format so that we can
78221         reliably distinguish strftime failure from empty output on POSIX
78222         hosts.
78223
78224 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
78225
78226         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
78227         (iconv_string): Don't guess a size-zero buffer, as that might cause
78228         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
78229         result would be 'too large', where 'too large' is (heuristically)
78230         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
78231         overflow concerns.  This will prevent some unwanted malloc failures
78232         when the inputs are very large.
78233
78234 2005-03-15  Karl Berry  <karl@gnu.org>
78235
78236         * config/srclist.txt (config.rpath): from gettext.
78237         * config/config.rpath: update.
78238
78239 2005-03-15  Bruno Haible  <bruno@clisp.org>
78240
78241         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
78242         to 'negate'.
78243
78244         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
78245         variable.
78246
78247         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
78248         results.
78249
78250 2005-03-14  Simon Josefsson  <jas@extundo.com>
78251
78252         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
78253         <fx@gnu.org>.
78254
78255 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
78256
78257         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
78258         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
78259         intprops.h.
78260         * lib/strtol.c: Likewise.
78261
78262 2005-03-14  Jim Meyering  <jim@meyering.net>
78263
78264         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
78265         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
78266         to be nonzero so that we (and caller) can detect the difference
78267         between a valid zero-length expansion and an error return, even
78268         when the underlying strftime fails before writing anything into
78269         that location.
78270
78271 2005-03-14  Bruno Haible  <bruno@clisp.org>
78272
78273         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
78274         Update from GNU gettext 0.14.3.
78275
78276 2005-03-10  Jim Meyering  <jim@meyering.net>
78277
78278         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
78279
78280 2005-03-10  Jim Meyering  <jim@meyering.net>
78281
78282         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
78283         so that this module works on systems without fchdir.
78284
78285 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
78286
78287         Factor int-properties macros into a single file, except for
78288         glibc-related files.
78289         * lib/intprops.h: New file.
78290         * lib/getloadavg.c: Include it instead of limits.h.
78291         (INT_STRLEN_BOUND): Remove.
78292         * lib/human.c: Include intprops.h.
78293         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
78294         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
78295         302/1000.
78296         * lib/inttostr.h: Include intprops.h instead of limits.h.
78297         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
78298         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
78299         for consistency with intprops.h.
78300         (time_t_is_integer, twos_complement_arithmetic): Use them.
78301         * lib/sig2str.h: Include <signal.h>, intprops.h.
78302         (INT_STRLEN_BOUND): Remove.
78303         * lib/strftime.c (TYPE_SIGNED): Remove.
78304         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
78305         * lib/strtol.c: Adjust comments to match intprops.h.
78306         * lib/userspec.c: Include intprops.h.
78307         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
78308         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
78309         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
78310         instead of rolling our own expressions.
78311         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
78312
78313         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
78314         instead of int.
78315         (my_strftime): Do not mishandle years close to INT_MAX, by doing
78316         the right thing even if adding 1900 would overflow.  Similarly
78317         for tm_mon + 1 and tm_yday + 1.
78318         Make %Y always equivalent to %C%y, and similarly for %G and %g.
78319         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
78320         (DO_SIGNED_NUMBER): New macro.
78321         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
78322
78323 2005-03-07  Bruno Haible  <bruno@clisp.org>
78324
78325         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
78326
78327 2005-03-07  Bruno Haible  <bruno@clisp.org>
78328
78329         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
78330
78331 2005-03-04  Derek R. Price  <derek@ximbiot.com>
78332
78333         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
78334         (func_import): Only replace files via --import when they have actually
78335         changed.
78336
78337 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78338
78339         * m4/mmap-anon.m4: New file.
78340         * m4/pagealign_alloc.m4: New file.
78341
78342 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78343             Bruno Haible  <bruno@clisp.org>
78344
78345         * modules/pagealign_alloc: New file.
78346         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
78347
78348 2005-03-03  Derek R. Price  <derek@ximbiot.com>
78349             Bruno Haible  <bruno@clisp.org>
78350
78351         * lib/pagealign_alloc.h: New file.
78352         * lib/pagealign_alloc.c: New file.
78353
78354 2005-03-03  Bruno Haible  <bruno@clisp.org>
78355
78356         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
78357         Use an all-permissive copyright notice, recommended by RMS.
78358
78359 2005-03-02  Bruno Haible  <bruno@clisp.org>
78360
78361         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
78362         of AIX, the replacement has to be done only after <string.h> is
78363         included, therefore not in config.h. stpncpy.h does the replacement,
78364         and stpncpy.c uses it.
78365
78366 2005-03-02  Bruno Haible  <bruno@clisp.org>
78367
78368         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
78369         stpncpy.c uses it.
78370
78371 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78372
78373         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
78374         The workaround isn't strictly needed for POSIX conformance, and
78375         it's too much of a pain to configure and maintain.  We'll ask
78376         people to fix their kernels instead.
78377         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
78378         (NANOSLEEP_BUG_WORKAROUND): Remove.
78379         (xnanosleep): Remove the workaround.
78380
78381 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78382
78383         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
78384         Reported by Derek Price.
78385         (Include): Add "timespec.h".
78386
78387         * modules/xnanosleep (Depends-on): Remove gethrxtime.
78388
78389 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78390
78391         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
78392         to detect nanosleep bug.
78393
78394 2005-03-01  Bruno Haible  <bruno@clisp.org>
78395
78396         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
78397
78398 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78399
78400         * modules/gethrxtime: New file.
78401         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
78402         (Depends-on): Add gethrxtime.
78403         (configure.ac): Add gl_XNANOSLEEP.
78404         (Makefile.am): Remove lib_SOURCES line.
78405
78406 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78407
78408         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
78409         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
78410
78411 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
78412
78413         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
78414         * lib/timespec.h (gettime): Return void, since it always
78415         succeeds now.  All uses changed.
78416         * lib/gettime.c (gettime): Likewise.
78417         [HAVE_NANOTIME]: Prefer nanotime.
78418         Assume gettimeofday succeeds, as POSIX requires.
78419         Assime time () succeeds, since other code already does.
78420         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
78421         (timespec_subtract): Remove.
78422         (NANOSLEEP_BUG_WORKAROUND): New constant.
78423         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
78424         things considerably.  Use it only on GNU/Linux hosts, since the
78425         workaround shouldn't be needed elsewhere.
78426
78427 2005-02-24  Bruno Haible  <bruno@clisp.org>
78428
78429         * modules/gettext (Files): Add m4/glibc2.m4.
78430
78431 2005-02-24  Bruno Haible  <bruno@clisp.org>
78432
78433         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
78434         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
78435         * m4/progtest.m4:
78436         Update from GNU gettext 0.14.2.
78437         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
78438
78439 2005-02-24  Bruno Haible  <bruno@clisp.org>
78440
78441         * lib/localcharset.c: Update from GNU gettext 0.14.2.
78442         * lib/config.charset: Update from GNU gettext 0.14.2.
78443
78444 2005-02-24  Bruno Haible  <bruno@clisp.org>
78445
78446         * lib/gettext.h: Update from GNU gettext 0.14.2.
78447
78448 2005-02-23  Simon Josefsson  <jas@extundo.com>
78449
78450         * m4/iconvme.m4: New file.
78451
78452 2005-02-23  Jim Meyering  <jim@meyering.net>
78453
78454         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
78455         change.
78456         Thanks to Bruno Haible for catching it.
78457
78458 2005-02-22  Simon Josefsson  <jas@extundo.com>
78459
78460         * modules/iconvme: New file.
78461
78462         * MODULES.html.sh: Add iconvme.
78463
78464 2005-02-22  Simon Josefsson  <jas@extundo.com>
78465
78466         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
78467
78468 2005-02-22  Simon Josefsson  <jas@extundo.com>
78469
78470         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
78471
78472 2005-02-22  Jim Meyering  <jim@meyering.net>
78473
78474         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
78475         s/ifndef/ifdef/.
78476
78477 2005-02-20  Neil Conway  <neilc@samurai.com>
78478
78479         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
78480         returned by OSX/Darwin if the specified buffer is not large
78481         enough for the hostname.
78482
78483 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78484
78485         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
78486         pass it to _help, otherwise the latter coredumps trying to
78487         dereference state.root_argp.
78488
78489 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78490
78491         * modules/chdir-long (Depends-on): Add memrchr.
78492         * modules/memrchr (Files): Add lib/memrchr.h.
78493         (Include): "memrchr.h".
78494
78495 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78496
78497         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
78498
78499 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
78500
78501         * lib/memrchr.h: New file.
78502         * lib/chdir-long.c: Include it.
78503         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
78504         Don't bother including stddef.h.
78505
78506 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
78507
78508         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
78509         inclusion.
78510         Include <sys/types.h>, for dev_t.
78511         (ME_DUMMY, ME_REMOTE): Move from here....
78512         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
78513         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
78514         Dmitry V. Levin.
78515         Include mountlist.h first, to test the interface.
78516
78517 2005-01-29  Bruno Haible  <bruno@clisp.org>
78518
78519         * lib/progname.c (program_name): Initialize.
78520         Needed when linking statically on MacOS X.
78521
78522 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78523
78524         Sync from coreutils.
78525         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
78526         (Depends-on): Add c-strtod.
78527         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
78528
78529 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
78530
78531         Sync from coreutils.
78532         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
78533
78534         Remove files that are specific to coreutils.
78535         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
78536
78537 2005-01-28  Bruno Haible  <bruno@clisp.org>
78538
78539         * modules/javacomp: New file.
78540         * MODULES.html.sh (Java): Add javacomp.
78541
78542 2005-01-28  Bruno Haible  <bruno@clisp.org>
78543
78544         * m4/javacomp.m4: New file, from GNU gettext.
78545
78546 2005-01-28  Bruno Haible  <bruno@clisp.org>
78547
78548         * lib/javacomp.sh.in: New file, from GNU gettext.
78549         * lib/javacomp.h: New file, from GNU gettext.
78550         * lib/javacomp.c: New file, from GNU gettext.
78551
78552 2005-01-26  Simon Josefsson  <jas@extundo.com>
78553
78554         * lib/gai_strerror.c: Use GPL in header.
78555
78556 2005-01-26  Bruno Haible  <bruno@clisp.org>
78557
78558         * modules/javaexec: New file.
78559         * MODULES.html.sh (Java): Add javaexec.
78560
78561 2005-01-26  Bruno Haible  <bruno@clisp.org>
78562
78563         * m4/javaexec.m4: New file, from GNU gettext.
78564
78565 2005-01-26  Bruno Haible  <bruno@clisp.org>
78566
78567         * lib/javaexec.sh.in: New file, from GNU gettext.
78568         * lib/javaexec.h: New file, from GNU gettext.
78569         * lib/javaexec.c: New file, from GNU gettext.
78570
78571 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78572
78573         * modules/lchown (Depends-on): Remove lchown.h
78574
78575 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78576
78577         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
78578         must be defined if the header file was not found, in order
78579         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
78580
78581 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78582
78583         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
78584         initializers for struct pentry_state.
78585         (__argp_error): Check return value of __asprintf
78586         (__argp_failure): Translate error message
78587
78588         * lib/argp-parse.c: Removed braces around the expansion of N_()
78589
78590 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78591
78592         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
78593         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
78594         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
78595         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
78596         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
78597         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
78598         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
78599         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
78600         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
78601         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
78602         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
78603         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
78604         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
78605         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
78606         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
78607         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
78608         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
78609         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
78610         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
78611         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
78612         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
78613         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
78614         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
78615         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
78616         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
78617         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
78618         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
78619         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
78620         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
78621         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
78622         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
78623         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
78624         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
78625         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
78626         xstrtol.m4, xstrtoumax.m4, yesno.m4:
78627         Use an all-permissive copyright notice, recommended by RMS.
78628
78629 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
78630
78631         * modules/chdir-long (Depends-on): Remove mempcpy.
78632
78633 2005-01-21  Jim Meyering  <jim@meyering.net>
78634
78635         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
78636         same value as for Solaris 9.
78637
78638         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
78639         component length.  This included changing the parameter to be
78640         of type `char *' rather than `char const *'.
78641         * lib/chdir-long.h (chdir_long): Update prototype.
78642
78643         * lib/openat.c (fdopendir, fstatat): New functions.
78644         * lib/openat.h: Include headers required for use of DIR and struct
78645         stat.
78646         [AT_SYMLINK_NOFOLLOW]: Define.
78647         (fdopendir, fstatat): Add prototypes.
78648
78649 2005-01-21  Bruno Haible  <bruno@clisp.org>
78650
78651         * modules/classpath: New file.
78652         * MODULES.html.sh (Java): Add classpath.
78653
78654 2005-01-21  Bruno Haible  <bruno@clisp.org>
78655
78656         * lib/classpath.h: New file, from GNU gettext.
78657         * lib/classpath.c: New file, from GNU gettext.
78658
78659 2005-01-20  Simon Josefsson  <jas@extundo.com>
78660
78661         * modules/version-etc-fsf: New file.
78662
78663 2005-01-20  Simon Josefsson  <jas@extundo.com>
78664
78665         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
78666         * lib/version-etc.c: Remove version_etc_copyright.
78667         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
78668         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
78669
78670 2005-01-20  Simon Josefsson  <jas@extundo.com>
78671
78672         * lib/base64.h (isbase64): Add.
78673
78674         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
78675         using a unsigned prototype, don't inline.
78676         (base64_decode): Use it.
78677
78678 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78679
78680         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
78681         it.
78682
78683 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78684
78685         * lib/save-cwd.c (save_cwd): Remove code to support the case
78686         where fchdir is missing or flaky.
78687
78688 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78689
78690         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
78691
78692 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
78693
78694         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
78695         AC_LIBSOURCES now does this.
78696         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
78697         with new ullong_max module.
78698
78699 2005-01-19  Bruno Haible  <bruno@clisp.org>
78700
78701         * modules/sh-quote: New file.
78702         * MODULES.html.sh (Executing programs): Add sh-quote.
78703
78704 2005-01-19  Bruno Haible  <bruno@clisp.org>
78705
78706         * lib/sh-quote.h: New file, from GNU gettext.
78707         * lib/sh-quote.c: New file, from GNU gettext.
78708
78709 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78710
78711         Merge from coreutils.
78712         * m4/ullong_max.m4: New file.
78713         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
78714         (gl_MACROS): Assume localeconv exists.
78715
78716 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78717
78718         Merge changes from coreutils, as described below in several
78719         changelogs dated today.
78720
78721         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
78722         (O_DIRECTORY): Remove; not needed here, since "." must be
78723         a directory.  All uses removed.
78724         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
78725         universal on Suns, and we also need to test for IRIX.
78726         Revamp code to use 'if' rather than '#if'.
78727         Avoid unnecessary comparison of cwd->desc to 0.
78728
78729         * lib/utimens.c (futimens): Robustify the previous patch, by checking
78730         for known valid error numbers rather than observed invalid ones.
78731
78732 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
78733
78734         * modules/ullong_max: New file.
78735
78736         * modules/chdir-long, modules/openat: New files.
78737         * modules/save-cwd (Depends-on): Depend on chdir-long.
78738         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
78739
78740 2005-01-18  Jim Meyering  <jim@meyering.net>
78741
78742         Merge from coreutils.
78743         * m4/chdir-long.m4, m4/openat.m4: New files.
78744         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
78745         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
78746         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
78747         is sane and DOES follow symlinks.  Besides, testing 20 different
78748         systems found no broken chown implementations.
78749         Prompted by a change in rsync's copy of this macro.
78750         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
78751
78752         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
78753
78754         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
78755         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
78756         NULL-means-set-to-current-time semantics.
78757         Remove temporary file immediately, rather than waiting
78758         for configure's at-exit trap code to do it.
78759
78760 2005-01-18  Jim Meyering  <jim@meyering.net>
78761
78762         * lib/version-etc.c (version_etc_copyright): Update copyright date.
78763
78764         * lib/utimens.c (futimens): Account for the fact that futimes
78765         can also fail with errno == ENOSYS or errno == ENOENT.
78766         Patch from Dmitry V. Levin.
78767
78768         Change the name of the robust chdir function from chdir to chdir_long.
78769         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
78770         (restore_cwd): Use chdir_long, not chdir.
78771         * lib/chdir-long.c: Renamed from chdir.c.
78772         * lib/chdir-long.h: Renamed from chdir.h.
78773         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
78774         Hurd.
78775
78776 2005-01-18  Bruno Haible  <bruno@clisp.org>
78777
78778         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
78779         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
78780         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
78781         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
78782         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
78783         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
78784         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
78785         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
78786         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
78787         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
78788         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
78789         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
78790         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
78791         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
78792         Use an all-permissive copyright notice, recommended by RMS.
78793
78794 2005-01-18  Bob Proulx  <bob@proulx.com>
78795
78796         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
78797         simplify offsetof() macro construct to avoid compile failure with
78798         native HP-UX 11.0 ANSI C compiler.
78799
78800 2005-01-17  Bruno Haible  <bruno@clisp.org>
78801
78802         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
78803         redundant because stpncpy.m4 takes care of it.
78804
78805 2005-01-17  Bruno Haible  <bruno@clisp.org>
78806
78807         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
78808
78809 2005-01-17  Bruno Haible  <bruno@clisp.org>
78810
78811         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
78812         used.
78813
78814 2005-01-17  Bruno Haible  <bruno@clisp.org>
78815
78816         * lib/fwriteerror.h (fwriteerror): Change specification to include
78817         fclose.
78818         * lib/fwriteerror.c: Include <stdbool.h>.
78819         (fwriteerror): At the end, close the file stream. Record whether
78820         stdout was already closed.
78821
78822 2005-01-17  Bruno Haible  <bruno@clisp.org>
78823
78824         * lib/execute.c (environ): Declare if needed.
78825         * lib/pipe.c (environ): Likewise.
78826         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
78827
78828 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78829
78830         * modules/argp: Depend on vsnprintf
78831
78832 2005-01-10  Jim Meyering  <jim@meyering.net>
78833
78834         * modules/closeout (Depends-on): Add atexit.
78835
78836 2005-01-06  Bruno Haible  <bruno@clisp.org>
78837
78838         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
78839
78840 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78841
78842         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
78843         definitions to be after all include files, to avoid collisions.
78844         Problem reported by Bob Proulx.
78845
78846 2005-01-04  Jim Meyering  <jim@meyering.net>
78847
78848         Changes imported from coreutils.
78849         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
78850         as the mkstemp template, use a temporary directory and an
78851         8.3-friendly template to avoid trouble on systems like DJGPP.
78852         Reported by Juan M. Guerrero via Stepan Kasal.
78853         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
78854         close. Remove the temporary directory right away, rather than waiting
78855         for configure's at-exit trap code to do it.
78856         Suggestion from Stepan Kasal.
78857
78858 2005-01-01  Simon Josefsson  <jas@extundo.com>
78859
78860         * gnulib-tool: Print #include directives when --import'ing.
78861
78862 2004-12-28  Simon Josefsson  <jas@extundo.com>
78863
78864         * tests/test-base64.c: Include required header files.  Remove
78865         unused variables.
78866
78867 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78868
78869         * modules/error (Depends-on): Remove gettext.
78870
78871 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
78872
78873         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
78874         not needed.  This removes a dependency on the gettext module.
78875         [defined _LIBC]: Do not include <libintl.h>; not needed.
78876
78877 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78878
78879         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
78880         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
78881
78882 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
78883
78884         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
78885         HAVE_DECL_STRTOLD.
78886
78887 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78888
78889         * modules/getdate (Depends-on): Remove alloca-opt.
78890
78891 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78892
78893         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
78894
78895 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
78896
78897         * lib/argp-parse.c: Include <stddef.h>.
78898         (alignof, alignto): New macros.
78899         (parser_init): Don't assume that void * is aligned sufficiently
78900         for struct option.
78901
78902         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
78903         need to extend the stack.
78904         (YYINITDEPTH): New macro, so that the initial stack isn't overly
78905         large.
78906
78907 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78908
78909         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
78910
78911 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78912
78913         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
78914         (2004-10-24) change.  Apparently this was a false alarm.
78915
78916         * modules/getdate: Depend on alloca-opt, not alloca.
78917
78918 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
78919
78920         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
78921         Remove now-obsolete comment about AIX.
78922         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
78923         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
78924         (YYMAXDEPTH): New macro.
78925
78926 2004-12-18  Simon Josefsson  <jas@extundo.com>
78927
78928         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
78929
78930 2004-12-18  Bruno Haible  <bruno@clisp.org>
78931
78932         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
78933
78934 2004-12-18  Bruno Haible  <bruno@clisp.org>
78935
78936         * lib/fatal-signal.c (fatal_signals): Make non-const.
78937         (init_fatal_signals): New function.
78938         (uninstall_handlers, install_handlers): Ignore signals that were set to
78939         SIG_IGN.
78940         (at_fatal_signal): Call init_fatal_signals.
78941         (init_fatal_signal_set): Likewise. Ignore signals that were set to
78942         SIG_IGN.
78943         Reported by Paul Eggert.
78944
78945 2004-12-18  Bruno Haible  <bruno@clisp.org>
78946
78947         * doc/alloca.texi: New file.
78948         * doc/alloca-opt.texi: New file.
78949
78950 2004-12-17  Jim Meyering  <jim@meyering.net>
78951
78952         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
78953         Otherwise, install-sh could exit with improper exit status when
78954         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
78955
78956 2004-12-16  Simon Josefsson  <jas@extundo.com>
78957
78958         * tests/test-base64.c: Add license.
78959
78960 2004-12-15  Stepan Kasal  <address@hidden>
78961
78962         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
78963
78964 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
78965
78966         * modules/getcwd (Files): Add m4/d-ino.m4.
78967         Suggested by Mark D. Baushke.
78968
78969 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78970
78971         * lib/getdate.y (textint): New member "negative".
78972         (time_zone_hhmm): New function.
78973         Expect 14 shift-reduce conflicts, not 13.
78974         (o_colon_minutes): New rule.
78975         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
78976         (yylex): Set the "negative" member of signed numbers.
78977
78978 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
78979
78980         * doc/getdate.texi (Time of day items, Time zone items):
78981         Describe new formats +00:00, UTC+00:00.
78982
78983 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78984
78985         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
78986         spurious "-l"s.  Problem reported by Stepan Kasal.
78987
78988 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
78989
78990         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
78991         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
78992
78993 2004-12-04  Simon Josefsson  <jas@extundo.com>
78994
78995         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
78996         Vandoorselaere <yoann@prelude-ids.org>.
78997
78998 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
78999
79000         Changes imported from coreutils.
79001         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
79002         exist.
79003         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
79004
79005 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79006
79007         Changes imported from coreutils.
79008         * lib/hard-locale.c: Assume <locale.h> exists.
79009         Include "strdup.h".
79010         (GLIBC_VERSION): New macro.
79011         (hard_locale): Assume setlocale exists.
79012         Rewrite to avoid #ifdef.
79013         Use strdup rather than malloc + strcpy.
79014         * lib/human.c: Assume <locale.h> exists.
79015         (human_readable): Assume localeconv exists.
79016
79017 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79018
79019         * modules/hard-locale (Depends-on): Add strdup.
79020
79021 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
79022
79023         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
79024         convert T2, not T.  (Imported from libc.)
79025
79026 2004-11-30  Simon Josefsson  <jas@extundo.com>
79027
79028         * modules/restrict (License): Change to LGPL.
79029
79030 2004-11-30  Simon Josefsson  <jas@extundo.com>
79031
79032         * m4/restrict.m4: Add copyright and copying conditions.
79033
79034 2004-11-30  Simon Josefsson  <jas@extundo.com>
79035
79036         * m4/base64.m4: New file.
79037
79038 2004-11-30  Simon Josefsson  <jas@extundo.com>
79039
79040         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
79041         base64.
79042
79043         * tests/test-base64.c: New file.
79044
79045         * modules/base64: New file.
79046
79047 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
79048
79049         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
79050         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
79051
79052         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
79053
79054 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
79055
79056         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
79057         (__getcwd.c): Don't restore errno; glibc doesn't.
79058         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
79059         first, falling back to our code only if its results look suspicious.
79060         Ensure that the resulting buffer is only as large as necessary.
79061
79062         * lib/readutmp.c: Include readutmp.h first.
79063         Include <errno.h>, since readutmp.h no longer does that.
79064         * lib/readutmp.h: Don't include <errno.h>,
79065         <sys/param.h>, <time.h>; not needed to establish interface.
79066         (errno): Remove decl.
79067         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
79068         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
79069         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
79070
79071 2004-11-28  Simon Josefsson  <jas@extundo.com>
79072
79073         * lib/base64.h, base64.c: New file.
79074
79075 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
79076
79077         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
79078
79079 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
79080
79081         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
79082         (Depends-on): Remove pathmax, same.  Add mempcpy.
79083         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
79084         (Makefile.am): Append getcwd.h to lib_SOURCES.
79085         (Include): Add getcwd.h.
79086         (Maintainer): Change from Jim Meyering to "all, glibc",
79087         since getdate now uses intended-for-glibc code.
79088         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
79089         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
79090
79091 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79092
79093         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
79094         HP's ANSI C compiler.
79095         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
79096         Declaring int functions causes warnings on some modern systems and
79097         shouldn't be needed to compile on ancient ones.
79098         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
79099         defined.
79100
79101         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
79102         with the following changes.
79103         (__set_errno): Parenthesize properly.
79104         Include <stdbool.h>.
79105         (MIN, MAX, MATCHING_INO): New macros.
79106         (__getcwd): Define with prototype, not K&R form.
79107         Use heuristics to allocate default buffer on stack if possible.
79108         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
79109         behavior, and to avoid the PATH_MAX limit when computing
79110         ../../../../...
79111         Use MATCHING_INO to compare inode number to file.
79112         Check for arithmetic overflow in size calculations.
79113         Fix bug in reallocation of dot array that caused getcwd to fail
79114         on directories nested deeper than 75.
79115         Be more careful about saving errno on error.
79116         Do not use realloc; use only free+malloc, as this is a bit
79117         more flexible and avoids a needless copy operation.
79118         Do not inspect st_dev and st_ino for symbolic links; POSIX
79119         doesn't specify the latter.
79120         Check for closedir errors.
79121         Avoid needless casts.
79122         Use "#ifdef weak_alias" around weak_alias, to be like other
79123         glibc code.
79124         The following changes to getcwd.c have effect only when used in
79125         gnulib; they have no effect inside glibc proper.
79126         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
79127         as alloca isn't used.
79128         (alloca, __alloca): Likewise.
79129         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
79130         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
79131         unconditionally, as gnulib assumes C89 or better.
79132         Do not include <sys/param.h>.
79133         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
79134         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
79135         better.
79136         (NULL) [!defined NULL]: Remove; we assume C89 or better.
79137         Include <dirent.h> in a way that is compatible with modern Autoconf.
79138         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
79139         New macros, if not already defined.
79140         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
79141         Use "_LIBC", not "defined _LIBC", for consistency.
79142         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
79143         a mempcpy module.
79144         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
79145         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
79146         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
79147         credit only to Jim Meyering and adjust the copyright dates.
79148         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
79149         <stdlib.h>, <unistd.h>, "pathmax.h".
79150         Instead, include "xgetcwd.h" (first) and "getcwd.h".
79151         (INITIAL_BUFFER_SIZE): Remove.
79152         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
79153
79154 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79155
79156         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
79157         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
79158         Use the _ONCE methods, for efficiency.
79159         Check for fcntl.h.  In test program, include <errno.h>
79160         and <fcntl.h> if available.  Remove old K&R cruft from
79161         test program.  Check for common errors in GNU/Linux,
79162         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
79163         don't do AC_LIBOBJ, as that's getcwd.m4's job.
79164         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
79165         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
79166         name accordingly.
79167         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
79168         accommodate new getcwd.c.
79169         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
79170         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
79171         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
79172         that's all we need now.
79173
79174 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79175
79176         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
79177         argp-parse.c depends on getopt internals, that means we should
79178         always use our getopt, to be on the safe side.
79179         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
79180         order not to spoil the result of an eventual previous invocation
79181         of gl_GETOPT_SUBSTITUTE.
79182
79183 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79184
79185         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
79186         redefinition warnings. To avoid them, include the defines
79187         in `#if !defined __need_getopt ... #endif'. The only place
79188         where __getopt_argv_const is used is in definitions
79189         of getopt_long and getopt_long_only below, which are as well
79190         protected by `#ifndef __need_getopt'.
79191         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
79192         __need_getopt after including <stdio.h> and <unistd.h> These
79193         headers might have defined it.
79194
79195 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
79196
79197         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
79198
79199 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
79200
79201         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
79202         (futimens): New function, which uses futimes if available.
79203         (futimens, utimens): Support timespec==NULL, with same semantics
79204         as utime and utimens.
79205         * lib/utimens.h (futimens): New decl.
79206
79207 2004-11-23  Jim Meyering  <jim@meyering.net>
79208
79209         * lib/getopt_.h: Remove trailing blanks.
79210
79211 2004-11-23  Jim Meyering  <jim@meyering.net>
79212
79213         * lib/__fpending.c: Add comment.
79214
79215 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
79216
79217         * modules/canonicalize (Depends-on): Add xreadlink.
79218         Problem reported by James Youngman.
79219
79220 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
79221
79222         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
79223         New macros.
79224         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
79225         optopt): Use them instead of invoking ## directly; otherwise, the
79226         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
79227
79228 2004-11-19  Bruno Haible  <bruno@clisp.org>
79229
79230         * lib/strtok_r.c: Move comments from here...
79231         * lib/strtok_r.h: ... to here.
79232
79233 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
79234
79235         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
79236         implementations that mishandle size_t overflow.
79237
79238 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
79239
79240         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
79241         might fail.  Problem reported by Yoann Vandoorselaere.
79242         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
79243         implementations that mishandle size_t overflow.
79244
79245 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79246
79247         * modules/canon-host (Depends-on): Add strdup.
79248
79249 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79250
79251         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
79252
79253 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79254
79255         * lib/canon-host.c: Include "strdup.h".
79256         (canon_host): Use getaddrinfo if available, so that IPv6 works.
79257         Use strdup instead of malloc/strcpy to duplicate strings.
79258
79259         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
79260         (human_space_before_unit): New constant.
79261         * lib/human.c (human_readable): Support it.
79262
79263         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
79264         (xgetcwd): Set errno correctly when failing.
79265         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
79266         the failure is actually due to a PATH_MAX problem.
79267
79268         Further getopt changes to make it more likely that glibc will
79269         buy the changes back.
79270         * lib/getopt.c (POSIXLY_CORRECT): New constant.
79271         (getopt): Use it, so to preserve glibc semantic
79272         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
79273         when compiling for libc.
79274         * lib/getopt_.h (__getopt_argv_const): Bring it back.
79275         (getopt_long, getopt_long_only): Use it.
79276
79277         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79278         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
79279         (getopt): Argv is now char * const *, as per standard.
79280         (_getopt_internal_r, _getopt_internal): Argv is now char **,
79281         not char *__getopt_argv_const *.
79282         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79283         _getopt_long_only_r): Likewise.
79284         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
79285         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79286         _getopt_long_r, _getopt_long_only_r): Likewise.
79287         * lib/getopt_.h (__getopt_argv_const): Remove.
79288         (getopt): Argv is now char * const *, as per standard.
79289
79290         * lib/getdate.y (tORDINAL): New token.
79291         (day, relunit): Allow it for relative times.
79292         (relative_time_table): Use tORDINAL for ordinals.
79293
79294 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
79295
79296         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
79297         Document that "second" isn't allowed as an ordinal number.
79298
79299 2004-11-16  Jim Meyering  <jim@meyering.net>
79300
79301         * modules/closeout (Depends-on): Add fpending.
79302
79303 2004-11-15  Jim Meyering  <jim@meyering.net>
79304
79305         * lib/closeout.c: Include "__fpending.h" once again.
79306         Include <stdbool.h>.
79307         (close_stdout): Don't fail just because stdout was closed initially,
79308         since some programs don't write to stdout in the normal course of
79309         operation (other than --version and --help), and we don't want this
79310         function to make e.g. `touch file >&-' fail.
79311         But do fail if it was closed and someone has tried to write to it.
79312         E.g., `printf foo >&-' must fail.
79313
79314 2004-11-13  Jim Meyering  <jim@meyering.net>
79315
79316         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
79317
79318 2004-11-12  Simon Josefsson  <jas@extundo.com>
79319
79320         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
79321         small doc fix is still pending.
79322
79323 2004-11-11  Simon Josefsson  <jas@extundo.com>
79324
79325         * modules/strtok_r: New file.
79326
79327         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79328         strtok_r.
79329
79330 2004-11-11  Simon Josefsson  <jas@extundo.com>
79331
79332         * m4/strtok_r.m4: New file.
79333
79334         * m4/getopt.m4: Replace opterr.
79335
79336 2004-11-11  Simon Josefsson  <jas@extundo.com>
79337
79338         * lib/strtok_r.h, strtok_r.c: New file.
79339
79340 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79341
79342         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
79343         of replacing opterr, getopt, etc.  This should handle the
79344         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
79345
79346 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
79347
79348         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
79349         we can stop lying to compilers about the constness of argv when we
79350         are compiled outside glibc.
79351         (getopt, getopt_long, getopt_long_only): Use it.
79352         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
79353         _getopt_internal, getopt): Likewise.
79354         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
79355         _getopt_long_only_r): Likewise.
79356         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
79357         _getopt_long_r, _getopt_long_only_r): Likewise.
79358
79359         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
79360         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
79361         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
79362         the other external symbols.
79363         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
79364         declaration, since the above renaming now works around collisions.
79365
79366 2004-11-11  Jim Meyering  <jim@meyering.net>
79367
79368         * lib/linebreak.c: Remove trailing blanks.
79369         * lib/alloca_.h: Likewise.
79370         * lib/acosl.c: Likewise.
79371         * lib/euidaccess.c: Likewise.
79372         * lib/allocsa.h: Likewise.
79373
79374 2004-11-10  Simon Josefsson  <jas@extundo.com>
79375
79376         * m4/getaddrinfo.m4: New file.
79377
79378 2004-11-10  Simon Josefsson  <jas@extundo.com>
79379
79380         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
79381
79382 2004-11-10  Simon Josefsson  <jas@extundo.com>
79383
79384         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79385         getaddrinfo.
79386
79387         * modules/getaddrinfo: New file.
79388
79389 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79390
79391         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
79392
79393 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79394
79395         * lib/mktime.c (SHR): New macro, which is a portable
79396         substitute for >> that should work even on Crays.
79397         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
79398         Problem reported by Mark D. Baushke in
79399         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
79400         * lib/getdate.y (SHR): Likewise.
79401         (tm_diff): Use it.
79402         * lib/strftime.c (SHR): Likewise.
79403         (tm_diff): Use it.
79404         * lib/quotearg.c (struct quoting_options): Use unsigned int for
79405         quote_these_too, so that right shifts are well defined.  All uses
79406         changed.
79407
79408 2004-11-10  Jim Meyering  <jim@meyering.net>
79409
79410         Ensure that no close failure goes unreported.
79411         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
79412         return early when it seems there's nothing to flush.
79413         Don't include __fpending.h.
79414
79415 2004-11-10  Jim Meyering  <jim@meyering.net>
79416
79417         * modules/closeout (Depends-on): Remove fpending.
79418
79419 2004-11-10  Jim Meyering  <jim@meyering.net>
79420
79421         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
79422
79423 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79424
79425         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
79426         gl_FUNC_STRFTIME.
79427         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
79428         and AC_REQUIRE when possible, to avoid duplicate checks.
79429         Check for <wchar.h>.
79430
79431 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
79432
79433         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
79434
79435 2004-11-09  Bruno Haible  <bruno@clisp.org>
79436
79437         * m4/sockpfaf.m4: New file.
79438
79439 2004-11-05  Bruno Haible  <bruno@clisp.org>
79440
79441         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
79442         Reported by Mark D. Baushke <mdb@cvshome.org>.
79443
79444 2004-11-04  Bruno Haible  <bruno@clisp.org>
79445
79446         2004-09-11  Bruno Haible  <bruno@clisp.org>
79447                 * allocsa.valgrind: New file.
79448         2004-02-06  Bruno Haible  <bruno@clisp.org>
79449                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
79450                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
79451                 Reported by Christopher Seip <chris.seip@hp.com>.
79452
79453 2004-11-04  Bruno Haible  <bruno@clisp.org>
79454
79455         * modules/allocsa (Files): Add lib/allocsa.valgrind.
79456         (Makefile.am): Distribute it.
79457
79458 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
79459
79460         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
79461         with errno == ERANGE if the buffer is too small.
79462         Problem reported by Mark D. Baushke.
79463
79464 2004-11-03  Albert Chin  <china@thewrittenword.com>
79465             Paul Eggert  <eggert@cs.ucla.edu>
79466
79467         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
79468         equivalent, substitute $ac_type for equivalent type rather than
79469         blindly using uint32_t *always* which won't work if uint32_t is not
79470         available.  Define _UINT32_T to work around typedef of uint32_t if
79471         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
79472         2.5.1.
79473
79474 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79475
79476         * m4/jm-macros.m4: Sync from coreutils.
79477         (gl_MACROS): Check for mbrlen, for pathchk.
79478         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
79479
79480 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79481
79482         * lib/xreadlink.c (MAXSIZE): New macro.
79483         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
79484         size does not exceed MAXSIZE.  Avoid cast.
79485         As suggested by Mark D. Baushke in
79486         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
79487         if readlink fails with buffer size just under MAXSIZE, try again
79488         with MAXSIZE.
79489
79490 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
79491
79492         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
79493
79494 2004-11-02  Derek R. Price  <derek@ximbiot.com>
79495         and  Paul Eggert  <eggert@cs.ucla.edu>
79496
79497         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
79498         (get_date): Overparenthesize to avoid GCC warning.
79499
79500 2004-11-02  Bruno Haible  <bruno@clisp.org>
79501
79502         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
79503         returns void.
79504
79505 2004-11-02  Bruno Haible  <bruno@clisp.org>
79506
79507         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
79508         function returns void.
79509
79510 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79511
79512         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
79513         fflush_unlocked, flockfile, funlockfile, funlockfile,
79514         fputs_unlocked, putc_unlocked.
79515
79516 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
79517
79518         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79519         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
79520         already declared.
79521
79522 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79523
79524         * modules/getdate (Files): Add doc/getdate.texi.
79525         (Depends-on): Add setenv, xalloc.
79526
79527 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79528
79529         * lib/getdate.y: Add support for TZ="foo" within a date string.
79530         Fix some bugs near time_t boundaries.  Reject dates with
79531         out-of-range components, e.g., "Sept 31".
79532         Include <stdlib.h>, "setenv.h", "xalloc.h".
79533         (ISDIGIT_LOCALE): Remove; unused.
79534         Note that the TZ and time functions used here are not reentrant.
79535         (mktime_ok, get_tz): New functions.
79536         (TZBUFSIZE): New constant.
79537         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
79538         This requires that we sometimes generate our own TZ="XXX..." setting.
79539
79540 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79541
79542         * doc/getdate.texi: New file, from coreutils with modifications for
79543         the new TZ parsing.
79544
79545 2004-10-27  Derek R. Price  <derek@ximbiot.com>
79546
79547         * lib/mktime.c (not_equal_tm): Remove redundant check.
79548
79549 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79550
79551         * modules/regex (lib_SOURCES): Add regex.c.
79552         Reported by James Youngman in
79553         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
79554
79555 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
79556
79557         * lib/getdate.y: Use Bison 1.875 features, and some minor
79558         code cleanups.  This change does not affect semantics.
79559         Don't include <stdlib.h>; no longer needed.
79560         Don't include unlocked-io.h; only the "#if TEST" code uses
79561         stdio, and performance isn't crucial there.
79562         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
79563         Bison 1.875 features as described below.
79564         All uses of "PC." replaced by "pc->".
79565         (YYSTYPE): Add a forward declaration.
79566         (yylex, yyerror): Use full prototypes in forward decls.
79567         Use "%pure-parser" rather than obsolescent "%pure_parser".
79568         Use %parse-param and %lex-param instead of obsolescent
79569         YYPARSE_PARAM and YYLEX_PARAM.
79570         (meridian_table, month_and_day_table, time_units_table,
79571         relative_time_table, time_zone_table, military_table,
79572         lookup_zone, lookup_word, get_date):
79573         Use NULL instead of 0 where appropriate.
79574         (to_hour): Avoid abort (), to avoid a dependency on
79575         stdlib.h.
79576         (yyerror, yylex): Now accepts parser_control * arg.
79577         (main) [TEST]: Use '\0' rather than 0 for char.
79578
79579 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79580
79581         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
79582
79583 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
79584
79585         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
79586         It's now the caller's responsibility to handle the case where
79587         !HAVE_GETPAGESIZE && !defined getpagesize.
79588
79589         * lib/mktime.c (leapyear): Arg is long int, not int.
79590
79591 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
79592
79593         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
79594
79595 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
79596
79597         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
79598         missing.  Problem reported by James Youngman.
79599
79600 2004-10-16  Simon Josefsson  <jas@extundo.com>
79601
79602         * gnulib-tool: Fix comments.  Fix parse problem.
79603         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
79604
79605 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
79606
79607         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
79608         implementation of getopt_long.  Problem reported by Alexander Taler in:
79609         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
79610
79611 2004-10-15  Bruno Haible  <bruno@clisp.org>
79612
79613         * gnulib-tool: Untabify. Initialize supplied_libname.
79614         (func_usage): More homogenous output.
79615         (func_modules_transitive_closure, func_modules_to_filelist,
79616         func_emit_lib_Makefile_am): New functions.
79617         (func_import): New function, extracted from big case statement. Use
79618         func_get_license, func_modules_transitive_closure,
79619         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
79620         opt_lgpl. Don't use test -a, as it's not portable.
79621         (func_create_testdir): Use func_modules_transitive_closure,
79622         func_modules_to_filelist, func_emit_lib_Makefile_am.
79623
79624 2004-10-15  Bruno Haible  <bruno@clisp.org>
79625
79626         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
79627
79628 2004-10-15  Bruno Haible  <bruno@clisp.org>
79629
79630         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
79631         the portions belonging to each module.
79632         Suggested by Derek Robert Price <derek@ximbiot.com>.
79633
79634 2004-10-12  Simon Josefsson  <jas@extundo.com>
79635
79636         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
79637         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
79638         to real functions.
79639
79640 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79641
79642         * modules/vsnprintf: New file.
79643
79644 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79645
79646         * m4/vsnprintf.m4: New file.
79647
79648 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79649
79650         * lib/vsnprintf.h: New file.
79651         * lib/vsnprintf.c: New file.
79652
79653 2004-10-11  Bruno Haible  <bruno@clisp.org>
79654
79655         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
79656         vsnprintf.
79657
79658 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79659
79660         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
79661
79662 2004-10-07  Bruno Haible  <bruno@clisp.org>
79663
79664         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
79665         fits into the provided buffer.
79666
79667 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79668
79669         * lib/diacrit.c, diacrit.h: Add GPL notice.
79670
79671         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
79672         notice.
79673         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
79674         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
79675         This avoids a potential constant-folding bug.
79676
79677 2004-10-05  Bruno Haible  <bruno@clisp.org>
79678
79679         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
79680         for the declaration of strsep.
79681
79682 2004-10-05  Bruno Haible  <bruno@clisp.org>
79683
79684         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
79685
79686 2004-10-04  Simon Josefsson  <jas@extundo.com>
79687
79688         * modules/memmem: New file.
79689         * tests/test-memmem.c: New file.
79690         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
79691
79692 2004-10-04  Simon Josefsson  <jas@extundo.com>
79693
79694         * m4/memmem.m4: New file.
79695
79696 2004-10-04  Simon Josefsson  <jas@extundo.com>
79697
79698         * lib/memmem.h: New file.
79699         * lib/memmem.c: New file, taken from glibc.
79700
79701 2004-10-04  Simon Josefsson  <jas@extundo.com>
79702
79703         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
79704         '#ifdef USE_UNLOCKED_IO'.
79705
79706 2004-10-04  Simon Josefsson  <jas@extundo.com>
79707
79708         * config/srclist.txt: Add memmem from glibc.
79709
79710 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79711
79712         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
79713
79714         * modules/argmatch, modules/argp, modules/closeout, modules/error,
79715         modules/exclude, modules/getdate, modules/getline,
79716         modules/getndelim2, modules/getpass, modules/getpass-gnu,
79717         modules/getusershell, modules/linebuffer, modules/md5,
79718         modules/mountlist, modules/posixtm, modules/readtokens,
79719         modules/readutmp, modules/regex, modules/sha1,
79720         modules/version-etc, modules/yesno:
79721         Remove dependency on unlocked-io.
79722
79723 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79724
79725         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
79726
79727         * m4/unlocked-io.m4: Add copyright notice.
79728         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
79729
79730 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79731
79732         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
79733         * lib/xmalloc.c (xmemdup): Likewise.
79734         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
79735         XFREE): Remove these long-obsolescent macros.
79736         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
79737         * lib/xstrdup.c: Remove.
79738
79739         * lib/regex.c (re_comp): Cast gettext return value to char *,
79740         Problem reported by Martin Neitzel via Mark D. Baushke.
79741
79742 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
79743
79744         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
79745         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
79746         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
79747         regex.c, sha1.c, version-etc.c, yesno.c:
79748         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
79749         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
79750         the includer's responsibility.
79751
79752         Sync from coreutils.
79753
79754         * lib/modechange.c (mode_compile): Don't decrement a pointer that
79755         points to the start of a string, as the C Standard says the
79756         resulting behavior is undefined.
79757
79758         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
79759         simple -> simple_backups, numbered_existing ->
79760         numbered_existing_backups, numbered -> numbered_backups
79761         to avoid shadowing problems.  All uses changed.
79762         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
79763         * lib/backupfile.c (check_extension, numbered_backup):
79764         Rename locals to avoid shadowing 'basename'.
79765         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
79766         once.
79767
79768         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
79769         * lib/.cvsignore: Add getopt.h.
79770
79771 2004-10-04  Bruno Haible  <bruno@clisp.org>
79772
79773         * modules/README: New file.
79774         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
79775         not a module.
79776
79777 2004-10-02  Jim Meyering  <jim@meyering.net>
79778
79779         * lib/dirfd.h, getpagesize.h: Add copyright notice.
79780
79781 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79782
79783         * modules/strsep: New file.
79784
79785 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79786
79787         * m4/strsep.m4: New file.
79788
79789 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
79790
79791         * lib/strsep.h: New file.
79792         * lib/strsep.c: New file.
79793
79794 2004-10-01  Simon Josefsson  <jas@extundo.com>
79795
79796         * lib/snprintf.c (snprintf): Handle size==0.
79797
79798 2004-10-01  Simon Josefsson  <jas@extundo.com>
79799             Bruno Haible  <bruno@clisp.org>
79800
79801         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
79802         (snprintf): Declare 'args'.
79803
79804 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
79805
79806         * lib/snprintf.c: Remove comments as to why each header is needed.
79807
79808 2004-10-01  Bruno Haible  <bruno@clisp.org>
79809
79810         * MODULES.html.sh: Add strsep.
79811
79812 2004-09-30  Simon Josefsson  <jas@extundo.com>
79813
79814         * modules/snprintf: New file.
79815
79816 2004-09-30  Simon Josefsson  <jas@extundo.com>
79817
79818         * m4/snprintf.m4: New file.
79819
79820 2004-09-30  Simon Josefsson  <jas@extundo.com>
79821
79822         * lib/snprintf.h, lib/snprintf.c: New files.
79823
79824 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79825
79826         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
79827         (hol_entry_help): Never translate an empty string.
79828         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
79829         * lib/argp.h (OPTION_NO_TRANS): New option.
79830
79831 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79832
79833         * modules/argp (Maintainer): Replace Simon Josefsson
79834         by Sergey Poznyakoff.
79835
79836 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79837
79838         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
79839         changes merged back into glibc.
79840
79841 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
79842
79843         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
79844
79845 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
79846
79847         * lib/xvasprintf.c: Include xalloc.h.
79848         (xvasprintf): Use xalloc_die, not xmalloc_die.
79849
79850 2004-09-29  Bruno Haible  <bruno@clisp.org>
79851
79852         * modules/alloca-opt: New file, derived from modules/alloca.
79853         * modules/allocsa: Depend on alloca-opt instead of alloca.
79854         * modules/setenv: Likewise.
79855         * modules/vasnprintf: Likewise.
79856         * MODULES.html.sh: Add alloca-opt.
79857
79858 2004-09-28  Simon Josefsson  <jas@extundo.com>
79859
79860         * gnulib-tool: New parameter --lgpl, to asseert that modules are
79861         LGPL, and to replace license template from GPL to LGPL.
79862
79863 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79864
79865         * modules/dummy: Change license to LGPL.
79866
79867 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
79868
79869         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
79870
79871 2004-09-24  Simon Josefsson  <jas@extundo.com>
79872
79873         * modules/minmax (License): Change from GPL to LGPL.
79874
79875 2004-09-23  Simon Josefsson  <jas@extundo.com>
79876
79877         * gnulib-tool (--import): Typo.
79878
79879 2004-09-23  Simon Josefsson  <jas@extundo.com>
79880
79881         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
79882
79883 2004-09-22  Bruno Haible  <bruno@clisp.org>
79884
79885         * modules/*: Add 'License' field.
79886         * gnulib-tool: Accept --extract-license option.
79887         (func_get_license): New function.
79888
79889 2004-09-21  Bruno Haible  <bruno@clisp.org>
79890
79891         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
79892         Reported by Simon Josefsson.
79893
79894 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79895
79896         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
79897         gl_AC_TYPE_LONG_LONG.
79898
79899 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
79900
79901         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
79902
79903 2004-09-18  Simon Josefsson  <jas@extundo.com>
79904         and  Paul Eggert  <eggert@cs.ucla.edu>
79905
79906         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
79907         calls with autoreconf.  Define GL_LIB.
79908
79909 2004-09-14  Karl Berry  <karl@gnu.org>
79910
79911         * config/srclist.txt: unsync setenv.c, sigh.
79912
79913 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79914
79915         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
79916         Problem reported by Bruno Haible in:
79917         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
79918
79919 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
79920
79921         * config/srclist.txt: Comment out argp-pvh.c.
79922
79923 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
79924
79925         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
79926         in case some system header has #define'd it.  Problem reported by
79927         Soeren D. Schulze in
79928         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
79929
79930 2004-09-09  Karl Berry  <karl@gnu.org>
79931
79932         * regex.[ch]: delete from the root.  These were supposed to be
79933                 synced with emacs cvs, but this has not happened for about
79934                 a year, and anyway nothing else uses emacs regex.[ch].
79935                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
79936                 lib/regex[.ch] is untouched.
79937
79938 2004-09-09  Bruno Haible  <bruno@clisp.org>
79939
79940         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
79941
79942 2004-09-09  Bruno Haible  <bruno@clisp.org>
79943
79944         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
79945         modifications.
79946         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
79947
79948 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79949
79950         * modules/xvasprintf: New file.
79951         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
79952
79953 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
79954
79955         * lib/xvasprintf.h: New file.
79956         * lib/xvasprintf.c: New file.
79957         * lib/xasprintf.c: New file.
79958
79959 2004-09-08  Bruno Haible  <bruno@clisp.org>
79960
79961         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
79962
79963 2004-09-08  Bruno Haible  <bruno@clisp.org>
79964
79965         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
79966         length is > INT_MAX.
79967         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
79968         more.
79969
79970 2004-09-08  Bruno Haible  <bruno@clisp.org>
79971
79972         * lib/stdint_.h: New file, taken from GNU clisp.
79973
79974 2004-09-08  Bruno Haible  <bruno@clisp.org>
79975             Oskar Liljeblad  <oskar@osk.mine.nu>
79976
79977         * modules/stdint: New file.
79978         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
79979
79980 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79981
79982         Import from coreutils.
79983         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
79984         strings on unbounded length.  alloca's performance benefits aren't
79985         that important here.
79986         (V_STRDUP): Remove.
79987         (parse_with_separator): New function, with most of the internals
79988         of the old parse_user_spec.  Allow user to omit both user and group,
79989         for compatibility with FreeBSD.
79990         Clone only the user name, not the entire spec.
79991         Do not set *uid, *gid unless entirely successful.
79992         Avoid memory leak in some failing cases.
79993         Fix regression for USER.GROUP reported by Dmitry V. Levin in
79994         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
79995         (parse_user_spec): Rewrite to use parse_with_separator.
79996
79997 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
79998
79999         * modules/userspec: Don't depend on alloca.
80000
80001 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80002
80003         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
80004
80005 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80006
80007         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
80008         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
80009         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
80010
80011 2004-08-16  Simon Josefsson  <jas@extundo.com>
80012
80013         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
80014         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
80015         Add --dry-run for --import.
80016         Let user provided command line parameters override configure.ac
80017         settings.
80018
80019 2004-08-12  Simon Josefsson  <jas@extundo.com>
80020
80021         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
80022         as discussed with Paul Eggert in threads rooted at
80023         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
80024         and
80025         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
80026         Before, the test was empty, and relied on ELIDE_CODE in source
80027         code.)
80028         (gl_PREREQ_GETOPT): New macro.
80029         (gl_GETOPT): Use them.
80030
80031 2004-08-12  Simon Josefsson  <jas@extundo.com>
80032
80033         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
80034         * lib/getopt_.h: Renamed from getopt.h.
80035
80036 2004-08-12  Simon Josefsson  <jas@extundo.com>
80037
80038         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
80039         Change default library name from libfoo to libgnu.
80040         Now, if you have a configure.ac that says:
80041                 gl_SOURCE_BASE(gl)
80042                 gl_M4_BASE(gl/m4)
80043                 gl_MODULES(error getopt etcetera)
80044                 gl_INIT
80045         you can import all you need by running:
80046                 ../gnulib/gnulib-tool --import
80047
80048         * modules/getopt (Files): Rename getopt.h to getopt_.h.
80049         (Makefile.am): Rewrite, use logic from argz.
80050         (Include): Use <getopt.h> instead of "getopt.h".
80051
80052 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80053
80054         * modules/argp (Files): Add m4/unlocked-io.m4.
80055         (Depends-on): Add extensions.
80056
80057 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80058
80059         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
80060         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
80061         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
80062         Check for program_invocation_name, program_invocation_short_name,
80063         flockfile, funlockfile, features.h, _getopt_long_only_r.
80064
80065 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80066
80067         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
80068         its complicated substitute.
80069         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
80070         and program_invocation_name.
80071         (__argp_basename) [!_LIBC]: Remove; the only use was
80072         replaced by its body.
80073         (__argp_short_program_name): Change condition from
80074         !defined __argp_short_program_name to
80075         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
80076         to match argp-namefrob.h.
80077         (__argp_failure): Don't assume strerror_r returns char *.
80078         * lib/argp-parse.c (N_): Define unconditionally.
80079         (argp_default_options): Fill out initializers with 0 to avoid
80080         gcc warnings.
80081
80082 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80083
80084         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
80085         getopt1.c.
80086
80087 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80088
80089         Merge from coreutils.
80090
80091         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
80092
80093         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
80094         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
80095
80096 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80097
80098         Merge from coreutils.
80099
80100         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
80101         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
80102         for Reliant Unix 5.43.
80103
80104         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
80105         (union fooround): Use uintmax_t, not long int.
80106         The rest is a merge from libc:
80107         [defined _LIBC]: Include <shlib-compat.h>.
80108         (_obstack) [defined _LIBC]: Remove after 2.3.4.
80109
80110         * lib/settime.c (settime): Recode to avoid warning with
80111         Sun Forte C 6U2.
80112
80113         * lib/strverscmp.c: Convert to UTF-8.
80114
80115 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80116
80117         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80118         m4/uintmax_t.m4.
80119
80120 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80121
80122         * modules/xalloc-die: New file.
80123         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
80124
80125         * modules/md5 (Files): Add m4/uint32_t.m4.
80126         * modules/sha1: Renamed from modules/sha.
80127         (Files):
80128         Rename lib/sha.h to lib/sha1.h.
80129         Rename lib/sha.c to lib/sha1.c.
80130         Rename m4/sha.m4 to m4/sha1.m4.
80131         (lib_SOURCES): Likewise.
80132         (configure.ac): Rename gl_SHA to gl_SHA1.
80133         (Include): sha.h -> sha1.h.
80134
80135 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80136
80137         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
80138         * m4/sha1.m4: Renamed from sha.m4.
80139         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
80140
80141 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
80142
80143         * lib/obstack.h (obstack_empty_p):
80144         Don't assume that chunk->contents is suitably aligned.
80145         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
80146         Likewise. Problem reported by Benno in
80147         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
80148
80149         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
80150         readable.  This could be improved further but it'd take some work.
80151
80152 2004-08-08  Simon Josefsson  <jas@extundo.com>
80153
80154         * modules/xgethostname (Depends-on): Remove exit and error (not
80155         used).
80156
80157         * modules/getpass-gnu: Add getpass.h.
80158         (Depends-on): Add stdbool.
80159         * modules/getpass: Add getpass.h.
80160
80161 2004-08-08  Simon Josefsson  <jas@extundo.com>
80162
80163         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
80164         Check getpass declaration.
80165
80166 2004-08-08  Simon Josefsson  <jas@extundo.com>
80167
80168         * lib/xgethostname.c: Don't include error.h (not used).
80169
80170         * lib/getpass.h: Add.
80171         * lib/getpass.c: Include getpass.h first.
80172
80173 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
80174
80175         * lib/xalloc-die.c: New file.
80176         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
80177         All uses removed.
80178         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
80179         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
80180         xalloc-die.c.
80181         (_, N_, xalloc_die): Move to xalloc-die.c.
80182         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
80183         so that we needn't mess with xalloc_msg_memory_exhausted.
80184
80185         * lib/sha1.h: Renamed from sha.h.
80186         (SHA1_H): Renamed from _SHA_H.
80187         (sha1_ctx): Renamed from sha_ctx.
80188         (sha1_init_ctx): Renamed from sha_init_ctx.
80189         (sha1_process_block): Renamed from sha_process_block.
80190         (sha1_process_bytes): Renamed from sha_process_bytes.
80191         (sha1_finish_ctx): Renamed from sha_finish_ctx.
80192         (sha1_read_ctx): Renamed from sha_read_ctx.
80193         (sha1_stream): Renamed from sha_stream.
80194         (sha1_buffer): Renamed from sha_buffer.
80195         * lib/sha1.c: Likewise; renamed from sha.c.
80196         Do not include <sys/types.h>.
80197         Include <stddef.h> rather than <stdlib.h>.
80198
80199 2004-08-08  Bruno Haible  <bruno@clisp.org>
80200
80201         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
80202         FILESYSTEM_PREFIX_LEN.
80203         * lib/progreloc.c: Likewise.
80204         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
80205
80206 2004-08-06  Simon Josefsson  <jas@extundo.com>
80207
80208         * modules/progname (Depends-on): Don't depend on stdbool.
80209
80210 2004-08-06  Simon Josefsson  <jas@extundo.com>
80211
80212         * modules/getsubopt: New file.
80213         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80214         getsubopt.
80215
80216 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80217
80218         More merge from coreutils.
80219
80220         * m4/utimens.m4, m4/utimecmp.m4: New files.
80221         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
80222         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
80223         prereq.m4, sha.m4: Import changes from coreutils.
80224
80225 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80226
80227         More merge from coreutils.
80228         * modules/raise, modules/readtokens0, modules/utimens:
80229         * modules/utimecmp, module/xnanosleep: New files.
80230         * modules/strftime: Add lib/strftime.h.
80231         Change include from <time.h> to "strftime.h".
80232         * modules/yesno: Add lib/yesno.h.
80233         * modules/backupfile: Remove lib/addext.c.
80234         * modules/euidaccess: Add stat-macros.h.
80235         * modules/canonicalize, modules/euidaccess,
80236         modules/filemode, modules/lchown, modules/makepath,
80237         modules/rmdir, modules/stat: Likewise.
80238
80239 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
80240
80241         Merge from tar.
80242         * lib/argp-help.c (make_hol, hol_append): Don't assume that
80243         SIZE_MAX is a valid preprocessor constant.
80244         (__argp_basename): Change from "#ifndef _LIBC"
80245         to "#ifndef __argp_short_program_name", so that
80246         we don't compile these functions for tar.
80247
80248         More merges from coreutils.
80249         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
80250         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
80251         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
80252         * lib/addext.c: Remove; no longer needed.
80253         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
80254         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
80255         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
80256         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
80257         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
80258         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
80259         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
80260         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
80261         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
80262         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
80263         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
80264         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
80265         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
80266         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
80267         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
80268         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
80269         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
80270         Import changes from coreutils.
80271
80272 2004-08-05  Simon Josefsson  <jas@extundo.com>
80273
80274         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
80275
80276 2004-08-05  Simon Josefsson  <jas@extundo.com>
80277
80278         * m4/getsubopt.m4: New file.
80279
80280 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80281
80282         Merge from coreutils.
80283
80284         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
80285         * m4/getcwd-path-max.m4: New files.
80286
80287         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
80288         FILESYSTEM_PREFIX_LEN ->
80289         FILE_SYSTEM_PREFIX_LEN.
80290         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
80291         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
80292         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
80293         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
80294
80295         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
80296         prerequisite modules now handle the DOS stuff.
80297         Don't check for unistd.h.
80298
80299 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80300
80301         Merge from coreutils.
80302
80303         * lib/.gdb-history: Remove; this doesn't belong here.
80304
80305         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
80306         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
80307         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
80308         * lib/getcwd.c: New files.
80309
80310         * lib/dirname.h: Include <stdbool.h>.
80311         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
80312         for consistency with POSIX terminology.  All uses changed.
80313         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
80314         (strip_trailing_slashes): Use bool for booleans.
80315         * lib/stripslash.c (strip_trailing_slashes): Likewise.
80316
80317         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
80318         sometimes returns a positive errno value even when it succeeds.
80319         (print_errno_message) [!LIBC]: Fall back on strerror if
80320         __strerror_r fails.
80321
80322         * lib/path-concat.c (mempcpy): Don't define if a system header defines
80323         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
80324         (longest_relative_suffix): New function.
80325         (path_concat): Use it.  Assume first argument is not NULL.
80326         Port to DOS.  Omit redundant separators.
80327         Report an error instead of returning NULL.
80328         Use mempcpy instead of memcpy.
80329         (xpath_concat): Remove: not declared or used.
80330
80331         * lib/same.h: Include <stdbool.h>
80332         (same_name): Return bool, not int.
80333         * lib/same.c (same_name): Likewise.
80334         (errno): Don't declare; we assume C89 or better now.
80335
80336         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
80337         if not already defined.
80338
80339         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
80340         * lib/dup-safer.c (errno): Likewise.
80341
80342 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
80343
80344         Merge from coreutils.
80345         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
80346         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
80347         * modules/path-concat: Don't depend on strdup.
80348
80349 2004-08-03  Simon Josefsson  <jas@extundo.com>
80350
80351         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
80352         * lib/progname.h: Don't include stdbool.h.
80353
80354 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80355
80356         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
80357         * MODULES.html.sh (func_all_modules): Remove fatal.
80358
80359 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80360
80361         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
80362
80363 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
80364
80365         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
80366         working.
80367
80368 2004-08-02  Simon Josefsson  <jas@extundo.com>
80369
80370         * lib/getsubopt.h: New file, with comments from Bruno Haible.
80371         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
80372         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
80373
80374 2004-08-01  Simon Josefsson  <jas@extundo.com>
80375
80376         * lib/xgetdomainname.c: Include stdlib.h, for free().
80377
80378 2004-07-19  Bruno Haible  <bruno@clisp.org>
80379
80380         * MODULES.html.sh (func_all_modules): Add dummy.
80381
80382 2004-07-16  Simon Josefsson  <jas@extundo.com>
80383
80384         * modules/dummy: New file.
80385
80386 2004-07-16  Simon Josefsson  <jas@extundo.com>
80387
80388         * lib/dummy.c: New file.
80389
80390 2004-07-16  Bruno Haible  <bruno@clisp.org>
80391
80392         * lib/backupfile.h: Add extern "C" for C++.
80393         * lib/closeout.h: Likewise.
80394         * lib/copy-file.h: Likewise.
80395         * lib/findprog.h: Likewise.
80396         * lib/full-write.h: Likewise.
80397         * lib/pathname.h: Likewise.
80398         * lib/progname.h: Likewise.
80399         * lib/stpcpy.h: Likewise.
80400         * lib/stpncpy.h: Likewise.
80401         * lib/strcase.h: Likewise.
80402         * lib/strstr.h: Likewise.
80403         * lib/xalloc.h: Likewise.
80404
80405         * lib/mbswidth.h: Add extern "C" for C++.
80406         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
80407
80408 2004-07-13  Robert Millan  <robertmh@gnu.org>
80409
80410         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
80411
80412 2004-07-09  Simon Josefsson  <jas@extundo.com>
80413
80414         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
80415         failed without this.)
80416
80417 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80418
80419         * modules/chown (Files): Add lib/fchown-stub.c, since
80420         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
80421
80422 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80423
80424         * lib/fchown-stub.c: New file.
80425
80426 2004-06-24  Jim Meyering  <jim@meyering.net>
80427
80428         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
80429
80430 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80431
80432         * modules/argz: Omit "#include".
80433
80434         * MODULES.html.sh (func_all_modules): Add calloc, to match
80435         2004-06-01 addition of calloc module.
80436
80437 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80438
80439         * m4/argz.m4: New file, which is autoupdated from libtool.
80440
80441 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80442
80443         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
80444         libtool.
80445
80446 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80447
80448         * config/srclist-update: Don't insist on "USA." before the
80449         close-comment, as libtool omits the period and puts the */ on a
80450         separate line.
80451         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
80452         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
80453
80454 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
80455
80456         * modules/argz: New file.
80457         * MODULES.html.sh (func_all_modules): Add argz.
80458
80459 2004-06-12  Jim Meyering  <jim@meyering.net>
80460         and  Paul Eggert  <eggert@cs.ucla.edu>
80461
80462         * modules/hash (Files): Add lib/xalloc.h.
80463         * modules/pipe (Depends-on): Add wait-process.
80464         * modules/stat (Depends-on): Add xalloc.
80465         * modules/userspec (Files): Add lib/userspec.h.
80466         * modules/xstrto
80467
80468         Upgrade from gettext-0.13.
80469         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
80470         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
80471         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
80472
80473 2004-06-10  Jim Meyering  <jim@meyering.net>
80474
80475         * lib/calloc.c: New file.
80476
80477 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
80478
80479         * lib/getdate.y (yylex): Allow space between sign and number.
80480         Problem reported by Dan Jacobson.
80481
80482 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80483
80484         Merge from coreutils CVS.
80485
80486         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
80487         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
80488         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
80489         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
80490         xstrtol.m4: Fix copyright date and/or serial number.
80491
80492         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
80493         See if we need an fchown replacement.
80494         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
80495         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
80496         and use the replacement function if we detect either defect.
80497
80498         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
80499         gl_UTIMECMP.
80500
80501 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
80502         and  Jim Meyering  <jim@meyering.net>
80503
80504         Merge from coreutils CVS.
80505
80506         * lib/stat-macros.h: New file, with contents from file-type.h
80507         and coreutils' system.h.
80508         * lib/file-type.c: Include "stat-macros.h".
80509         * lib/file-type.h (file_type): Move all macro definitions to new file,
80510         stat-macros.h.
80511
80512         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
80513         Wrap old code with this conditional.
80514         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
80515         function that does not dereference symlinks.
80516         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
80517
80518         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
80519         dependency problems.
80520         (xreadlink): Accept new arg SIZE, for efficiency.
80521         All decls and uses changed.
80522         * lib/xreadlink.h: Include <stddef.h>, for size_t.
80523
80524         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
80525         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
80526
80527         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
80528         sysexits.h.
80529
80530 2004-06-01  Jim Meyering  <jim@meyering.net>
80531
80532         * m4/calloc.m4: New file.
80533
80534 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
80535
80536         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
80537         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
80538         Also, fix a typo in a diagnostic.
80539
80540 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80541
80542         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
80543         or AC_FUNC_REALLOC.
80544
80545 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
80546
80547         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
80548         macros to be defined.
80549         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
80550         the allocator returns NULL because the requested size is zero.
80551
80552 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
80553
80554         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
80555         var.  Add comment explaining why libc still defines it.  This
80556         merges the following patch from glibc:
80557         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
80558
80559 2004-05-20  Andreas Schwab  <schwab@suse.de>
80560
80561         * m4/free.m4: Replace free if it not known to work, not the other
80562         way round.
80563
80564 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80565
80566         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
80567         present in glibc since revision 1.1 of this file.
80568         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
80569         obstack_alignment_mask, obstack_alloc, obstack_base,
80570         obstack_blank, obstack_blank_fast, obstack_chunk_size,
80571         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
80572         obstack_grow0, obstack_init, obstack_int_grow,
80573         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
80574         obstack_next_free, obstack_object_size, obstack_ptr_grow,
80575         obstack_ptr_grow_fast, obstack_room): Remove declarations of
80576         nonexistent functions.
80577
80578 2004-05-18  Karl Berry  <karl@gnu.org>
80579
80580         * config/srclist.txt: break link for vasnprintf.c.
80581
80582 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80583
80584         Port obstack to the AS/400, where pointers are 16 bytes wide and
80585         you cannot cast an integer to a valid pointer.  This patch is
80586         currently waiting to be integrated into glibc; see
80587         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
80588
80589         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
80590         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
80591         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
80592         (struct obstack): temp member is now a union of a pointer and
80593         an integer, instead of an integer.  All integer uses changed.
80594         This does not affect the physical layout of struct obstack,
80595         except on hosts (like the AS/400) where the size or alignment of
80596         void * is greater than that of ptrdiff_t.
80597         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
80598         __STDC__)]: Store temporary in pointer member of union, not
80599         integer member.
80600         * lib/obstack.c: Include <stddef.h>, for offsetof.
80601         (struct fooalign): Remove; it doesn't need a name.
80602         (union fooround): Change double to long double, and add void *.
80603         (DEFAULT_ALIGNMENT): Use offsetof to compute.
80604         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
80605         not a macro.  Hence the values are always int; so remove all
80606         casts-to-int in uses.
80607
80608 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
80609
80610         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
80611         we can get this patch merged into glibc.
80612
80613 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80614             Paul Eggert  <eggert@cs.ucla.edu>
80615
80616         * m4/argp: Depend on alloca.
80617
80618 2004-05-17  Derek R. Price  <derek@ximbiot.com>
80619             Paul Eggert  <eggert@cs.ucla.edu>
80620
80621         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
80622         freecoding.
80623
80624 2004-05-17  Bruno Haible  <bruno@clisp.org>
80625
80626         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
80627         precision that consists of a '.' followed by an empty digit string.
80628         Patch by Tor Lillqvist <tml@iki.fi>.
80629
80630 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80631
80632         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
80633         for backward compatibility with older code.  We need our own
80634         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
80635         it under some other name, and our alloca.h will define it.
80636
80637 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
80638             Derek Price  <derek@ximbiot.com>
80639
80640         * lib/alloca.c: Include <alloca.h>, to get our interface.
80641         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
80642         include <alloca.h> first.  Use C89 prototype for alloca; this
80643         requires including <stddef.h> for size_t.  Use extern "C" if C++.
80644         Use #elif for simplicity, since we can assume C89 now.
80645         Don't try to source the system alloca.h since it will not be found
80646         and to prevent recursively including its replacement.
80647         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
80648         * lib/regex.c: Likewise.
80649
80650 2004-05-16  Derek Price  <derek@ximbiot.com>
80651             Paul Eggert  <eggert@cs.ucla.edu>
80652
80653         getline cleanup.  This changes the getndelim2 API: both order of
80654         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
80655         no delimiter).
80656
80657         * lib/getline.c: Don't include stddef.h or stdio.h, since our
80658         interface does that.
80659         (getline): Always use getdelim, so that we don't have two
80660         copies of this code.
80661         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
80662         if available.
80663         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
80664         (GETNDELIM2_MAXIMUM): New macro.
80665         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
80666         instead of the old practice of delim2==0.  All callers changed.
80667         Return -1 on overflow, instead of returning junk.
80668         Do not set *linesize unless allocation succeeds.
80669         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
80670         that we include sys/types.h.
80671         * lib/getnline.h: Likewise.
80672         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
80673         (getndelim2): Reorder arguments.
80674         * lib/getnline.c (getnline, getndelim):
80675         Don't discard the NMAX argument.
80676         (getnline): Invoke getndelim, to avoid code duplication.
80677         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
80678         of (size_t) -1 by callers of the getnline family.
80679
80680 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80681
80682         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
80683         Check for gettimeofday.
80684         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
80685         Check for settimeofday, stime.
80686
80687 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
80688
80689         * lib/nanosleep.c (suspended): Change its type from int to
80690         sig_atomic_t volatile.
80691         (first_call): Make it private to rpl_nanosleep, and have it
80692         be zero initially as that's a bit faster.
80693         (my_usleep): Round up fractional times instead of truncating them,
80694         as this is the usual meaning for 'sleep'.
80695
80696         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
80697         doesn't work.
80698         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
80699         (ENOSYS): Define if not defined.
80700         (settime): Fall back on stime if it exists and settimeofday fails.
80701         But don't bother with fallbacks if a method fails with errno == EPERM.
80702
80703 2004-05-11  Jim Meyering  <jim@meyering.net>
80704
80705         Prior to this change, the save_cwd caller required read access to the
80706         current directory on most systems (ones with the fchdir function).
80707
80708         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
80709         fails, try write-only, and finally, resort to using xgetcwd.
80710
80711 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
80712
80713         * lib/obstack.c, obstack.h: Import changes from libc.
80714
80715 2004-04-28  Bruno Haible  <bruno@clisp.org>
80716
80717         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
80718         also implicitly appends .exe to executables.
80719         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
80720         accepts Windows pathnames.
80721         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80722         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80723         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
80724         Treat Cygwin like Windows, since it now accepts Windows pathnames.
80725         Reported by Derek Robert Price <derek@ximbiot.com>.
80726
80727 2004-04-21  Karl Berry  <karl@gnu.org>
80728
80729         * config/srclist.txt (localcharset.c): break sync.
80730
80731 2004-04-20  Paul Eggert  <eggert@twinsun.com>
80732
80733         * m4/host-os.m4: Add a copyright notice.
80734
80735 2004-04-20  Jim Meyering  <jim@meyering.net>
80736
80737         Change UTILS_ to gl_ in AC_DEFINE'd names.
80738         Change utils_- and jm_-prefixed variables, too.
80739         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
80740         UTILS_FUNC_MKDIR_TRAILING_SLASH.
80741         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
80742
80743         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
80744         Don't emit trailing blanks.
80745         Also rename jm_-prefixed variables to have gl_ prefix.
80746
80747         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
80748         Also rename jm_-prefixed variables to have gl_ prefix.
80749
80750         * m4/jm-macros.m4: Reflect the renamings.
80751         * m4/prereq.m4: Likewise.
80752
80753 2004-04-20  Jim Meyering  <jim@meyering.net>
80754
80755         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
80756         memory.
80757
80758 2004-04-20  Jim Meyering  <jim@meyering.net>
80759             Bruno Haible  <bruno@clisp.org>
80760
80761         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
80762         memory when realloc fails.
80763
80764 2004-04-19  Jim Meyering  <jim@meyering.net>
80765
80766         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
80767         now that readutmp.c may call `free (0)'.
80768
80769 2004-04-19  Bruno Haible  <bruno@clisp.org>
80770
80771         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
80772         * m4/inttypes_h.m4: Likewise.
80773         * m4/stdint_h.m4: Likewise.
80774         * m4/intmax_t.m4: Likewise.
80775         * m4/uintmax_t.m4: Likewise.
80776
80777 2004-04-18  Jim Meyering  <jim@meyering.net>
80778
80779         * m4/prereq.m4: Don't forbid jm_ prefix.
80780
80781         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
80782         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
80783         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
80784         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
80785         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
80786         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
80787         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
80788         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
80789         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
80790         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
80791         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
80792         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
80793         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
80794         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
80795         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
80796         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
80797         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
80798         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
80799         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
80800
80801 2004-04-18  Jim Meyering  <jim@meyering.net>
80802
80803         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
80804         failure, don't leak memory and do call END_UTMP_ENT.
80805
80806 2004-04-16  Jim Meyering  <jim@meyering.net>
80807
80808         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
80809         coreutils' stat program.
80810         (gl_PREREQ): Don't require jm_PREREQ_STAT.
80811
80812 2004-04-11  Paul Eggert  <eggert@twinsun.com>
80813
80814         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
80815         C89.
80816         (CHAR_BIT): Remove, since we assume C89.
80817         Include <stdint.h> if available, as per current Autoconf CVS advice.
80818
80819 2004-03-31  Jim Meyering  <jim@meyering.net>
80820
80821         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
80822         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
80823         * m4/xalloc.m4: Likewise.
80824
80825 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80826
80827         Merge from coreutils.
80828
80829         * m4/inttostr.m4: New file.
80830         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
80831         Require AM_STDBOOL_H and gl_TIMESPEC instead.
80832         Require gl_CLOCK_TIME.
80833         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
80834
80835 2004-03-30  Paul Eggert  <eggert@twinsun.com>
80836
80837         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
80838         not bool, to be more consistent with Unix conventions.
80839         Suggested by Bruno Haible.
80840
80841         Merge from coreutils.
80842
80843         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
80844         * lib/umaxtostr.c: New files.
80845
80846         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
80847         the usual <time.h> dance.
80848         (get_date): Change signature to support fractional time stamps.
80849         All callers changed.
80850         * lib/getdate.y: Include "getdate.h" first, as we can now
80851         assume C89 and don't need to worry about 'const'.
80852         Similarly, include "unlocked-io.h" near start, not in middle.
80853         Include <limits.h>.
80854         (textint.value): Use long int rather than int.
80855         (textint.digits): Use size_t rather than int.
80856         (BILLION, LOG10_BILLION): New constants.
80857         (parser_control): New member rel_ns.  Members day_ordinal,
80858         time_zone, month, day, hour, minutes, rel_year, rel_month,
80859         rel_day, rel_hour, rel_minutes, rel_seconds
80860         are now long int, not int.  Member seconds is now struct timespec,
80861         not int.  New member timespec_seen.  Members dates_seen, days_seen,
80862         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
80863         not int.
80864         (%union.intval): Now long int, not int.
80865         New member timespec.
80866         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
80867         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
80868         (spec): Now is a timespec or an item list.
80869         (timespec, items): New nonterminals.
80870         (time, rel, relunit, number, get_date):
80871         Add support for fractional seconds.
80872         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
80873         (gmtime, localtime, mktime): Remove decls; not needed with C89.
80874         (to_hour): First arg is now long int, not int.
80875         (to_year): Returns long int, not int.
80876         Don't treat year -70 like 70.
80877         (tm_diff): Returns long int, not int.
80878         (lookup_word): Use bool instead of int when appropriate.
80879         (yylex): Use size_t for count, not int.
80880         Detect overflow when parsing large integer constants.
80881         Add support for fractions.
80882         (get_date): Make pointers 'const' if possible.
80883         Use more-portable code to detect integer overflow.
80884         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
80885         Don't use ctime; it's not reliable if the year has >4 digits.
80886
80887         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
80888         This is for compatibility with BSD.
80889
80890         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
80891         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
80892         From coreutils' system.h.
80893
80894         * lib/userspec.c: Don't include "posixver.h".
80895         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
80896         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
80897         compatible extension.  Simplify code by removing a boolean int
80898         that was always nonzero if a string was nonnull.
80899
80900 2004-03-30  Jim Meyering  <jim@meyering.net>
80901
80902         Merge from coreutils.
80903
80904         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
80905         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
80906         on some systems one must include <grp.h> before it.
80907         Reported by Christian Krackowizer.
80908
80909 2004-03-30  Jim Meyering  <jim@meyering.net>
80910
80911         Merge from coreutils.
80912
80913         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
80914
80915         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
80916         an empty input stream.
80917
80918         * lib/readtokens.c: Include <stdbool.h>.
80919         (readtoken): Use `size_t' rather than int/long.
80920         All callers adjusted.
80921         Use `bool' rather than `int' where appropriate.
80922         Use memset rather than an explicit loop.
80923         Use x2nrealloc rather than xrealloc.
80924         Allow the use of `\0' as a delimiter.
80925         (readtokens): Likewise.
80926         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
80927
80928 2004-03-30  Jim Meyering  <jim@meyering.net>
80929
80930         * m4/realloc.m4: Remove file, since now it does no more than
80931         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
80932         the `configure.ac' section of module/realloc.
80933         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
80934
80935 2004-03-30  Bruno Haible  <bruno@clisp.org>
80936
80937         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
80938         nonnull.
80939
80940 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80941
80942         Merge changes to getloadavg.c from coreutils and Emacs.
80943
80944         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
80945         Define to an expression, not to the empty string.
80946         Include cloexec.h and xalloc.h.
80947         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
80948         Use set_cloexec_flag rather than rolling our own.
80949         * lib/cloexec.c, lib/cloexec.h: New files.
80950
80951 2004-03-29  Paul Eggert  <eggert@twinsun.com>
80952
80953         * m4/cloexec.m4: New file.
80954
80955 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80956
80957         * lib/getopt.h: Sync with libc CVS.
80958
80959 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80960             Bruno Haible  <bruno@clisp.org>
80961
80962         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
80963         mbswidth.
80964
80965 2004-03-18  Paul Eggert  <eggert@twinsun.com>
80966             Bruno Haible  <bruno@clisp.org>
80967
80968         * lib/mbswidth.h: Include <wchar.h> only if
80969         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
80970         <wchar.h>.
80971         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
80972
80973 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80974
80975         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
80976         Sync with libc CVS.
80977         * lib/getopt_int.h: New file, also synced from libc.
80978
80979 2004-03-09  Paul Eggert  <eggert@twinsun.com>
80980
80981         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
80982         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
80983         Bring back getopt.c, getopt.h, getopt1.c.
80984
80985 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80986
80987         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
80988         All uses changed.  Check for sa_sigaction member; this fixes
80989         a bug first reported by Jason Andrade in
80990         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
80991
80992 2004-03-07  Paul Eggert  <eggert@twinsun.com>
80993
80994         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
80995         '#if' expressions.  Unlike the code it replaces, it does not
80996         depend on (defined _SC_PAGESIZE).  However, it does depend on
80997         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
80998         first reported by Jason Andrade in
80999         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
81000
81001 2004-02-25  Simon Josefsson  <jas@extundo.com>
81002
81003         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
81004
81005 2004-02-25  Simon Josefsson  <jas@extundo.com>
81006
81007         * lib/strdup.h: New file.
81008         * lib/strdup.c: Include it.
81009         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
81010         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
81011
81012 2004-02-23  Karl Berry  <karl@gnu.org>
81013
81014         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
81015         (from fencepost.gnu.org:/gd/gnuorg).
81016
81017 2004-02-23  Karl Berry  <karl@gnu.org>
81018
81019         * config/srclistvars.sh (GNUORG) [karl]: redefine.
81020         * config/srclist.txt: add maintain/standards documents.
81021
81022 2004-02-18  Bruno Haible  <bruno@clisp.org>
81023
81024         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
81025         Reported by Derek Robert Price <derek@ximbiot.com>.
81026
81027 2004-02-16  Karl Berry  <karl@gnu.org>
81028
81029         * config/mkinstalldirs, install-sh: update from automake.
81030
81031 2004-02-06  Karl Berry  <karl@gnu.org>
81032
81033         * m4/po.m4: update from gettext 0.14.1.
81034
81035 2004-02-06  Karl Berry  <karl@gnu.org>
81036
81037         * lib/config.charset: update from gettext 0.14.1.
81038
81039 2004-02-05  Paul Eggert  <eggert@twinsun.com>
81040
81041         Add comments and code, prompted by suggestions from Bruno Haible
81042         for sh-quote.
81043         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
81044         describing the enum quoting_style values.
81045         * lib/quotearg.c (quotearg_alloc): New function.
81046         (quotearg_buffer_restyled): Treat lone { and } as special.
81047         Treat = as special.  Work around bug with older shells
81048         that "see" a '\' that is really the 2nd byte of a multibyte char.
81049         Quote empty string with shell_quoting_style.
81050
81051 2004-02-03  Bruno Haible  <bruno@clisp.org>
81052
81053         * m4/pipe.m4: New file, from GNU gettext.
81054
81055 2004-02-03  Bruno Haible  <bruno@clisp.org>
81056
81057         * lib/pipe.h: New file, from GNU gettext.
81058         * lib/pipe.c: New file, from GNU gettext.
81059
81060 2004-01-27  Bruno Haible  <bruno@clisp.org>
81061
81062         * m4/execute.m4: New file, from GNU gettext.
81063
81064 2004-01-27  Bruno Haible  <bruno@clisp.org>
81065
81066         * lib/execute.h: New file, from GNU gettext.
81067         * lib/execute.c: New file, from GNU gettext.
81068         * lib/w32spawn.h: New file, from GNU gettext.
81069
81070 2004-01-24  Paul Eggert  <eggert@twinsun.com>
81071
81072         Merge from diffutils.
81073
81074         * lib/file-type.c (file_type): Add typed memory objects.
81075         * lib/file-type.h (S_TYPEISTMO): New macro.
81076
81077         * lib/c-stack.h (c_stack_action): Remove argv argument.
81078         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
81079         (die): Don't calculate message unless segv_action returns.
81080         (get_stack_location, min_address_from_argv, max_address_from_argv,
81081         volatile stack_base, volatile_stack_size): Remove.
81082         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
81083         that every segmentation violation is a stack overflow.  (Ouch!)
81084         See Debian bug 136249 (still outstanding) for more info about why
81085         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
81086
81087 2004-01-24  Paul Eggert  <eggert@twinsun.com>
81088
81089         Exit-status fix from coreutils.
81090
81091         Use exit_failure consistently in place of EXIT_FAILURE,
81092         so that program exit statuses are consistent on failure.
81093
81094         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
81095         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
81096         * lib/argmatch.h: Comment fix to match the above.
81097         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
81098         Now a macro referring to exit_failure, instead of a separate
81099         variable.  Include "exitfail.h" to get it.
81100         * lib/xstrtol.h: Include "exitfail.h".
81101         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
81102
81103         * lib/long-options.c (parse_long_options): Use prototype
81104         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
81105         for clarity.
81106
81107 2004-01-21  Jim Meyering  <jim@meyering.net>
81108
81109         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
81110         so as not to conflict with a different-sized __mktime_internal
81111         function in GNU libc.
81112         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
81113         Problem building statically-linked `ls' reported by Michael Brunnbauer.
81114
81115 2004-01-20  Karl Berry  <karl@gnu.org>
81116
81117         * config/config.guess: update from config.
81118
81119         * config/srclistvars.sh: GNUWWWLICENSES for karl.
81120
81121 2004-01-20  Bruno Haible  <bruno@clisp.org>
81122
81123         Safer stack allocation.
81124         * lib/setenv.c: Include allocsa.h.
81125         (alloca): Remove fallback definition.
81126         (freea): Remove macro.
81127         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
81128         instead of freea.
81129
81130 2004-01-20  Bruno Haible  <bruno@clisp.org>
81131
81132         * m4/eealloc.m4: New file, from GNU gettext.
81133
81134 2004-01-20  Bruno Haible  <bruno@clisp.org>
81135
81136         * m4/allocsa.m4: New file, from GNU gettext.
81137
81138 2004-01-20  Bruno Haible  <bruno@clisp.org>
81139
81140         * lib/xallocsa.h: New file, from GNU gettext.
81141         * lib/xallocsa.c: New file, from GNU gettext.
81142
81143 2004-01-20  Bruno Haible  <bruno@clisp.org>
81144
81145         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
81146
81147 2004-01-20  Bruno Haible  <bruno@clisp.org>
81148
81149         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
81150         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
81151         specially.
81152
81153 2004-01-20  Bruno Haible  <bruno@clisp.org>
81154
81155         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
81156         patch.
81157
81158 2004-01-20  Bruno Haible  <bruno@clisp.org>
81159
81160         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
81161
81162 2004-01-20  Bruno Haible  <bruno@clisp.org>
81163
81164         * lib/eealloc.h: New file.
81165
81166 2004-01-20  Bruno Haible  <bruno@clisp.org>
81167
81168         * lib/binary-io.h: Avoid warnings on Cygwin.
81169
81170 2004-01-20  Bruno Haible  <bruno@clisp.org>
81171
81172         * lib/allocsa.h: New file, from GNU gettext.
81173         * lib/allocsa.c: New file, from GNU gettext.
81174
81175 2004-01-18  Karl Berry  <karl@gnu.org>
81176
81177         * doc/gpl.texi, doc/lgpl.texi: new files.
81178
81179 2004-01-18  Karl Berry  <karl@gnu.org>
81180
81181         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
81182         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
81183
81184 2004-01-15  Paul Eggert  <eggert@twinsun.com>
81185
81186         Merge from coreutils.
81187
81188         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
81189         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
81190         (gl_DEFAULT_POSIX2_VERSION): Move
81191         the documentation from 'configure' into 'config.hin',
81192         so that 'configure --help' isn't burdened by it and
81193         we don't have to worry about its formatting there.
81194         Reword the documentation so that it's more succinct
81195         and can be run together into a single paragraph.
81196         * m4/same.m4 (gl_SAME): Check for pathconf.
81197
81198 2004-01-15  Paul Eggert  <eggert@twinsun.com>
81199
81200         Merge from coreutils.
81201
81202         * lib/posixver.c: Include posixver.h.
81203
81204         * lib/same.c: Include <stdbool.h>, <limits.h>.
81205         (_POSIX_NAME_MAX): Define if not defined.
81206         (MIN): New macro.
81207         (same_name): If file names are silently truncated, report
81208         that the file names are the same if they are the same after
81209         the silent truncation.
81210
81211         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
81212         conversion function.
81213         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
81214         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
81215         longer needed.
81216
81217 2004-01-15  Jim Meyering  <jim@meyering.net>
81218
81219         Merge from coreutils.
81220
81221         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
81222         if no library is required.
81223         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
81224         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
81225         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
81226         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
81227         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
81228         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
81229         value, $ac_cv_search_crypt, if it's "none required".
81230         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
81231         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
81232         not gl_FUNC_GETLOADAVG.
81233         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
81234         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
81235
81236 2004-01-15  Jim Meyering  <jim@meyering.net>
81237
81238         Merge from coreutils.
81239
81240         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
81241         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
81242         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
81243
81244         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
81245         optional configure-time default.
81246
81247         * lib/version-etc.c (version_etc_copyright): Update copyright date.
81248
81249         * lib/xreadlink.c (xreadlink): Correct outdated comment.
81250
81251 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
81252
81253         Merge from coreutils.
81254
81255         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
81256         value, $ac_cv_search_nanosleep, if it's "none required".
81257
81258 2004-01-14  Paul Eggert  <eggert@twinsun.com>
81259
81260         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
81261         with like-named macro in fnmatch.c.
81262         (EXT): Use an internal constant instead.
81263
81264         Merge fnmatch patches from glibc.
81265         * lib/fnmatch.c (mbsinit): Remove define.
81266         Add libc_hidden_ver (__fnmatch, fnmatch).
81267         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
81268         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
81269
81270 2004-01-14  Karl Berry  <karl@gnu.org>
81271
81272         * config/install-sh: update from automake.
81273
81274 2004-01-13  Karl Berry  <karl@gnu.org>
81275
81276         * config/install-sh: update from automake.
81277
81278 2004-01-09  Karl Berry  <karl@gnu.org>
81279
81280         * config/install-sh: update from automake.
81281
81282 2004-01-05  Karl Berry  <karl@gnu.org>
81283
81284         * config/config.{sub,guess}: update from config.
81285
81286 2003-12-31  Karl Berry  <karl@gnu.org>
81287
81288         * config/depcomp: update from automake.
81289
81290 2003-12-14  Karl Berry  <karl@gnu.org>
81291
81292         * lib/config.charset: update from gettext-runtime.
81293
81294 2003-12-03  Paul Eggert  <eggert@twinsun.com>
81295
81296         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
81297         Bug reported by Alfred M. Szmidt.
81298
81299 2003-12-03  Bruno Haible  <bruno@clisp.org>
81300
81301         * m4/gettext.m4: Upgrade from gettext-0.13.
81302         * m4/po.m4: Upgrade from gettext-0.13.
81303         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
81304         * m4/intmax.m4: New file, from gettext-0.13.
81305         * m4/printf-posix.m4: New file, from gettext-0.13.
81306
81307 2003-11-29  Karl Berry  <karl@gnu.org>
81308
81309         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
81310
81311 2003-11-25  Paul Eggert  <eggert@twinsun.com>
81312             Bruno Haible  <bruno@clisp.org>
81313
81314         * lib/printf-parse.h: Don't include sys/types.h.
81315         (ARG_NONE): New macro.
81316         (char_directive): Change type of *arg_index fields to size_t.
81317         * lib/printf-parse.c: Don't include sys/types.h.
81318         (SSIZE_MAX): Remove macro.
81319         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
81320         Remove unnecessary overflow check.
81321         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
81322         fields.
81323
81324 2003-11-25  Bruno Haible  <bruno@clisp.org>
81325
81326         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
81327
81328 2003-11-25  Bruno Haible  <bruno@clisp.org>
81329
81330         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
81331         gt_TYPE_SSIZE_T.
81332
81333 2003-11-24  Paul Eggert  <eggert@twinsun.com>
81334
81335         * modules/alloca: Remove dependency on xalloc.
81336
81337 2003-11-24  Paul Eggert  <eggert@twinsun.com>
81338
81339         * lib/alloca.c: Remove dependency on xalloc module.
81340         (xalloc_die): Remove.
81341         (memory_full) [!defined emacs]: New macro.
81342         [!defined emacs]: Don't include xalloc.h.
81343         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
81344         address arithmetic overflows.  Change datatypes a bit to avoid
81345         unnecessary casts.
81346
81347 2003-11-22  Jim Meyering  <jim@meyering.net>
81348
81349         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
81350         s/size/size_t/.
81351
81352 2003-11-21  Karl Berry  <karl@gnu.org>
81353
81354         * config/config.{sub,guess}: update from config.
81355
81356 2003-11-18  Karl Berry  <karl@gnu.org>
81357
81358         * config/config.{sub,guess}: update from config.
81359
81360         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
81361
81362 2003-11-17  Paul Eggert  <eggert@twinsun.com>
81363
81364         * README: Mention that S+T cannot overflow if S is the size of
81365         an existing object and T is sufficiently small.
81366
81367 2003-11-17  Jim Meyering  <jim@meyering.net>
81368
81369         On systems without utime and without a utimes function capable of
81370         dealing with a NULL struct utimbuf* argument, this utime replacement
81371         could -- in unusual circumstances -- leak a file descriptor.
81372         * lib/utime.c: Include <unistd.h> and <errno.h>.
81373         (utime_null): Be sure to close `fd' and to preserve errno.
81374         Reported by Geoff Collyer via Arnold Robbins.
81375
81376 2003-11-17  Bruno Haible  <bruno@clisp.org>
81377
81378         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
81379         (Depends-on): Add xsize.
81380
81381 2003-11-17  Bruno Haible  <bruno@clisp.org>
81382
81383         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
81384
81385 2003-11-17  Bruno Haible  <bruno@clisp.org>
81386
81387         * lib/vasnprintf.c (alloca): Remove fallback definition.
81388         (freea): Remove definition.
81389         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
81390         Reported by Paul Eggert.
81391
81392 2003-11-16  Paul Eggert  <eggert@twinsun.com>
81393             Bruno Haible  <bruno@clisp.org>
81394
81395         Protect against address arithmetic overflow.
81396         * lib/printf-args.h: Include stddef.h.
81397         (arguments): Change type of field 'count' to size_t.
81398         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
81399         'unsigned int' where appropriate.
81400         * lib/printf-parse.h: Include sys/types.h.
81401         (char_directive): Change type of *arg_index fields to ssize_t.
81402         (char_directives): Change type of fields 'count', max_*_length to
81403         size_t.
81404         * lib/printf-parse.c: Include sys/types.h and xsize.h.
81405         (SSIZE_MAX): Define fallback value.
81406         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
81407         instead of 'int' where appropriate. Check a_allocated, d_allocated
81408         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
81409         * lib/vasnprintf.c: Include xsize.h.
81410         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
81411         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
81412         overflow. Avoid wraparound when converting a width or precision from
81413         decimal to binary.
81414
81415 2003-11-16  Bruno Haible  <bruno@clisp.org>
81416
81417         Update from GNU gettext.
81418         * lib/printf-parse.c: Generalize to it can be compiled for wide
81419         strings.
81420         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
81421         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
81422         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
81423         SNPRINTF): New macros.
81424         Don't include <alloca.h> if the file is used inside libintl.
81425         (local_wcslen): New function, for Solaris 2.5.1.
81426         (VASNPRINTF): Use it instead of wcslen.
81427
81428 2003-11-16  Bruno Haible  <bruno@clisp.org>
81429
81430         * lib/xsize.h (xmax): New function.
81431         (xsum, xsum3, xsum4): Declare as "pure" functions.
81432
81433 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81434
81435         * modules/xalloc (Files): Undo latest change, since xalloc.h
81436         no longer needs SIZE_MAX or PTRDIFF_MAX.
81437
81438 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81439
81440         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
81441         gl_PTRDIFF_MAX.
81442
81443 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81444
81445         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
81446         "return", to pacify some unknown compiler.  Problem reported
81447         by Joerg Schilling.
81448
81449 2003-11-12  Paul Eggert  <eggert@twinsun.com>
81450
81451         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
81452         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
81453         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
81454         heuristic is just as accurate as far as we know, and it removes a
81455         dependency on size_max.m4 and ptrdiff_max.m4.
81456
81457 2003-11-11  Bruno Haible  <bruno@clisp.org>
81458
81459         * modules/xsize (Files): Add m4/size_max.m4.
81460         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
81461
81462 2003-11-11  Bruno Haible  <bruno@clisp.org>
81463
81464         * m4/size_max.m4: New file.
81465         * m4/ptrdiff_max.m4: New file.
81466         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
81467         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
81468         (gl_XALLOC): Invoke it.
81469
81470 2003-11-11  Bruno Haible  <bruno@clisp.org>
81471
81472         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
81473         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
81474         defined.
81475
81476 2003-11-10  Paul Eggert  <eggert@twinsun.com>
81477
81478         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
81479         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
81480         rejected some allocations of exactly SIZE_MAX - 2 bytes.
81481         From Bruno Haible.
81482         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
81483         not (size_t) -1, since it's defined here.
81484
81485 2003-11-09  Karl Berry  <karl@gnu.org>
81486
81487         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
81488
81489 2003-11-06  Paul Eggert  <eggert@twinsun.com>
81490
81491         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
81492         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
81493         Reject sizes of exactly SIZE_MAX bytes.
81494         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
81495         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
81496
81497 2003-11-05  Bruno Haible  <bruno@clisp.org>
81498
81499         * lib/xsize.h: Include limits.h, to avoid a possible collision with
81500         SIZE_MAX defined in <limits.h> on Solaris.
81501
81502 2003-11-04  Jim Meyering  <jim@meyering.net>
81503
81504         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
81505         variable names, rather than @VAR@.
81506         * modules/poll: Likewise.
81507
81508 2003-11-04  Bruno Haible  <bruno@clisp.org>
81509
81510         * modules/xsize: New file.
81511         * modules/linebreak: Depend on xsize.
81512         * MODULES.html.sh (func_all_modules): Add xsize.
81513
81514 2003-11-04  Bruno Haible  <bruno@clisp.org>
81515
81516         * m4/xsize.m4: New file.
81517
81518 2003-11-04  Bruno Haible  <bruno@clisp.org>
81519
81520         * lib/xsize.h: New file.
81521         * lib/linebreak.c: Include xsize.h.
81522         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
81523         argument for overflow.
81524         Suggested by Paul Eggert.
81525
81526 2003-11-03  Karl Berry  <karl@gnu.org>
81527
81528         * config/config.{guess,sub}: update from config.
81529
81530 2003-11-03  Jim Meyering  <jim@meyering.net>
81531
81532         * modules/userspec (lib_SOURCES): Add userspec.h.
81533         (Include): Add "userspec.h".
81534         Improve description.
81535
81536 2003-11-03  Jim Meyering  <jim@meyering.net>
81537
81538         * lib/userspec.c: Include "userspec.h".
81539         * lib/userspec.h: New file.
81540
81541 2003-11-03  Bruno Haible  <bruno@clisp.org>
81542
81543         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
81544
81545 2003-11-03  Bruno Haible  <bruno@clisp.org>
81546
81547         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
81548         available, to avoid (extremely rare) race condition.
81549         Suggested by Paul Eggert.
81550
81551 2003-11-02  Karl Berry  <karl@gnu.org>
81552
81553         * config/srclist.txt (vasprintf.c): sync broken, sigh.
81554
81555 2003-10-31  Paul Eggert  <eggert@twinsun.com>
81556
81557         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
81558         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
81559         (read_filesystem_list): Set and use me_type_malloced.
81560         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
81561         whatever the type happens to be), for brevity and consistency.
81562         Check for size calculation overflow on Alphas running OSF/1.
81563
81564 2003-10-31  Jim Meyering  <jim@meyering.net>
81565
81566         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
81567
81568         * lib/linebuffer.c: Include <string.h> for declaration of memset.
81569
81570 2003-10-30  Paul Eggert  <eggert@twinsun.com>
81571             Bruno Haible  <bruno@clisp.org>
81572
81573         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
81574         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
81575
81576 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
81577
81578         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
81579         netbsd*-gnu*.  Suggested by Robert Millan.
81580
81581 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81582
81583         * modules/group-member: Depend on stdbool.
81584
81585 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81586
81587         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
81588
81589 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81590
81591         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
81592         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
81593         after the 'gnu' in these cases.  This fixes some bugs in the
81594         previous change, and is based on suggestions by Robert Millan.
81595
81596 2003-10-29  Paul Eggert  <eggert@twinsun.com>
81597
81598         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
81599         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
81600         no longer needed.
81601         * lib/quotearg.c (quotearg_n_options): Use it.
81602         * lib/group-member.c: Include <stdbool.h>.
81603         (free_group_info): Arg is now const *; don't free arg.
81604         (get_group_info): Now returns bool and accepts struct group_info *,
81605         rather than returning a malloc'ed struct group_info *.
81606         All uses changed.  Check for overflow in internal size calculation.
81607
81608         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
81609         rather than xmalloc/xrealloc.
81610         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
81611         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
81612         conformance bug: the old code used a pointer after freeing the
81613         storage that it addressed.
81614         * lib/hash.c (hash_initialize): Simplify the code by using
81615         xalloc_oversized rather than doing it by hand.
81616         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
81617         the buffer preserved.  Use free and xmalloc instead.
81618         * lib/quotearg.c (quotearg_n_options): Likewise.
81619         Use a simpler test for size overflow.  Don't use xalloc_oversized
81620         because unsigned int might be wider than size_t (!); this suggests
81621         that we should switch from unsigned int to size_t for slot numbers.
81622
81623 2003-10-28  Paul Eggert  <eggert@twinsun.com>
81624
81625         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
81626         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
81627         NetBSD kernels.  Requested by Richard Stallman.
81628
81629 2003-10-27  Paul Eggert  <eggert@twinsun.com>
81630
81631         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
81632         to allocate the returned structure.  Do not allocate a subarray,
81633         as x2nrealloc will do that.
81634         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
81635         instead of xnrealloc.
81636         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
81637
81638 2003-10-27  Bruno Haible  <bruno@clisp.org>
81639
81640         * lib/stdbool_.h: Better support for BeOS.
81641
81642 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81643
81644         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
81645         now uses inline.
81646
81647 2003-10-26  Paul Eggert  <eggert@twinsun.com>
81648
81649         * lib/xalloc.h (xalloc_oversized): New static inline function, for
81650         callers that want to do their own size-overflow checking.  Include
81651         <stdbool.h>, since xalloc_oversized returns bool.
81652         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
81653         to use xalloc_oversized.
81654
81655         Add two functions x2realloc, x2nrealloc, for programs that grow
81656         arrays dynamically by doubling their sizes.
81657         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
81658         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
81659         New functions.
81660
81661         Port to C99 semantics for 'inline' of external functions.
81662         Bug reported by Bruno Haible.
81663         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
81664         with the old contents of xnmalloc.
81665         (xnmalloc, xmalloc): Use it.
81666         (xnrealloc_inline): New static inline function,
81667         with the old contents of xnrealloc.
81668         (xnrealloc, xrealloc): Use it.
81669
81670         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
81671         that.
81672
81673 2003-10-26  Karl Berry  <karl@gnu.org>
81674
81675         * config/srclist.txt (COPYING.DOC): no longer available from
81676         /gd/gnuorg; don't know where the ultimate source is.
81677
81678 2003-10-25  Paul Eggert  <eggert@twinsun.com>
81679
81680         Fix several address-calculation bugs in the hash modules,
81681         plus some minor code cleanup.
81682
81683         * lib/hash.h: Include <stdbool.h>, for bool.
81684         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
81685         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
81686         hash_get_n_entries, hash_get_max_bucket_length,
81687         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
81688         hash_rehash): Use size_t rather than unsigned.
81689         * lib/hash.c (struct hash_table, hash_get_n_buckets,
81690         hash_get_n_buckets_used, hash_get_n_entries,
81691         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
81692         hash_get_entries, hash_do_for_each, hash_string, is_prime,
81693         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
81694         Likewise.
81695         (SIZE_MAX): Define if not defined.
81696         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
81697         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
81698         hash_print):
81699         Use const * when possible.
81700         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
81701         (check_tuning): Fix bug: if tuning parameters were very close to
81702         0 or 1, rounding errors could have caused subscript violations.
81703         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
81704         (hash_initialize): Add 'fail:' label
81705         to free table and return NULL, and use it to simplify code.
81706         Use calloc rather than clearing the storage ourself.
81707         (hash_initialize, hash_rehash): Check for arithmetic overflow in
81708         buffer size calculations.
81709         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
81710         Include <stddef.h>, for size_t.
81711         * lib/hash-pjw.c (hash_pjw): Likewise.
81712         Switch to method described by Bruno Haible.
81713         Include <limits.h>, for CHAR_BIT.
81714         (SIZE_BITS): New macro.
81715
81716 2003-10-23  Paul Eggert  <eggert@twinsun.com>
81717
81718         * m4/getline.m4 (AM_FUNC_GETLINE):
81719         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
81720         hosts.  Problem reported by Derek Robert Price in
81721         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
81722         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
81723         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
81724
81725 2003-10-21  Paul Eggert  <eggert@twinsun.com>
81726
81727         * lib/getndelim2.c (getndelim2): When size calculation overflows,
81728         ceiling the allocation at NMAX bytes rather than silently
81729         discarding input bytes before NMAX is reached.  This makes
81730         a difference only if NMAX exceeds SIZE_MAX / 2.
81731
81732         * lib/obstack.c: Merge from glibc.
81733         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
81734         Add libc_hidden_def (_obstack_newchunk).
81735         (_obstack_free) [! defined _LIBC]: Remove.
81736         [defined _LIBC]: Make a strong alias from obstack_free, rather than
81737         a clone of the function body.
81738         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
81739         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
81740
81741         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
81742         glibc.
81743         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
81744         arg to memcpy.
81745
81746         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
81747         (obstack_ptr_grow_fast, obstack_int_grow_fast):
81748         Don't use lvalue casts, as GCC plans to remove support for them
81749         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
81750         was also present in the non-GCC version, indicating that this
81751         code had always been buggy and had never been widely used.
81752         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
81753         Use the fast variant of each macro, rather than copying the
81754         definiens of the fast variant; that way, we'll be more likely to
81755         catch future bugs in the fast variants.
81756
81757 2003-10-20  Bruno Haible  <bruno@clisp.org>
81758
81759         * modules/wait-process: New file.
81760         * MODULES.html.sh (func_all_modules): Add wait-process.
81761
81762 2003-10-20  Bruno Haible  <bruno@clisp.org>
81763
81764         * m4/wait-process.m4: New file.
81765
81766 2003-10-20  Bruno Haible  <bruno@clisp.org>
81767
81768         * lib/wait-process.h: New file, from GNU gettext.
81769         * lib/wait-process.c: New file, from GNU gettext.
81770
81771 2003-10-19  Jim Meyering  <jim@meyering.net>
81772
81773         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
81774         HPUX 10.20.
81775
81776 2003-10-18  Karl Berry  <karl@gnu.org>
81777
81778         * config/config.guess: update from config.
81779
81780 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81781
81782         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
81783         (getgroups): First arg is int, not size_t.
81784         Don't let 'free' mangle errno.
81785
81786 2003-10-16  Paul Eggert  <eggert@twinsun.com>
81787
81788         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
81789
81790 2003-10-16  Karl Berry  <karl@gnu.org>
81791
81792         * config/config.{guess,sub}: update from config.
81793
81794 2003-10-16  Jim Meyering  <jim@meyering.net>
81795
81796         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
81797         memcpy.
81798
81799 2003-10-15  Paul Eggert  <eggert@twinsun.com>
81800
81801         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
81802         (SIZE_MAX): Remove.
81803         (new_exclude, add_exclude_file): Initial size no longer needs to
81804         be a power of 2.
81805         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
81806         our own address arithmetic overflow checking.
81807
81808         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
81809         (fnmatch): Do not alloca more than 2000 wide characters;
81810         instead, use malloc for large buffers.
81811         Check for address arithmetic overflow, and return -1
81812         with errno set to ENOMEM in that case.
81813         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
81814         (NEW_PATTERN): Do not alloca more than 8000 bytes;
81815         instead, return -1.  Check for address arithmetic overflow.
81816
81817 2003-10-14  Paul Eggert  <eggert@twinsun.com>
81818
81819         Handle invalid suffixes and overflow independently, so that
81820         callers can treat them independently as needed.  Fix some bugs in
81821         suffix handling, e.g., "100k@" was not diagnosed as an invalid
81822         suffix for a human-readable blocksize.  The major caller-visible
81823         change is the addition of a new
81824         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
81825         that both overflow and suffix chars were found.
81826
81827         * lib/human.c (humblock): Don't check separately for invalid suffix
81828         char; that is xstrtoumax's job (now that its bug is fixed).
81829         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
81830         INTMAX_MAX]: New macros.
81831         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
81832         TYPE_MAXIMUM): New macros.
81833         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
81834         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
81835         if overflow occurs, as it's what __strtol does and it's more useful
81836         in practice.
81837         (__xstrtol): If __strtol reports some error other than ERANGE,
81838         reflect it to the caller as LONGINT_INVALID.  If it reports
81839         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
81840         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
81841         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
81842         value.
81843         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
81844         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
81845         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
81846         [defined UINTMAX_MAX]: New macros.
81847
81848 2003-10-14  Bruno Haible  <bruno@clisp.org>
81849
81850         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
81851
81852 2003-10-14  Bruno Haible  <bruno@clisp.org>
81853
81854         * m4/sig_atomic_t: New file, from GNU gettext.
81855         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
81856
81857 2003-10-14  Bruno Haible  <bruno@clisp.org>
81858
81859         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
81860         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
81861         Also use volatile where needed.
81862
81863 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81864
81865         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
81866         Change maintainer from Bruno Haible to 'all'.
81867
81868 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81869
81870         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
81871
81872 2003-10-12  Paul Eggert  <eggert@twinsun.com>
81873
81874         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
81875         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
81876         and define in terms of the other primitives.
81877         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
81878         (SIZE_MAX): Define if not already defined.
81879         (array_size_overflow): New function.
81880         (xalloc_die): Abort instead of exiting if 'error' returns.
81881         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
81882         (xmalloc, xrealloc): Use them.
81883         (xcalloc): Check for address arithmetic overflow.
81884         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
81885         a bit faster than strcpy.
81886
81887 2003-10-10  Simon Josefsson  <jas@extundo.com>
81888
81889         * modules/argp (Depends-on): Add restrict and strcase.
81890
81891 2003-10-10  Simon Josefsson  <jas@extundo.com>
81892
81893         * m4/argp.m4: Add AC_C_INLINE.
81894
81895 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81896
81897         Merge getpass from libc, plus a few fixes.
81898
81899         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
81900         Include <stdbool.h>.
81901         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
81902         __fsetlocking to empty.
81903         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
81904         do include <bits/libc-lock.h>.
81905         Do not include <fcntl.h>; not needed.
81906         [_LIBC]: Include <wchar.h>.
81907         (NOTCANCEL_MODE): New macro.
81908         (flockfile, funlockfile) [_LIBC]: New macros.
81909         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
81910         [!_LIBC]: New macros.
81911         (call_fclose): New function.
81912         (getpass): Use it.  Save tty stream separately; this simplifies the
81913         code and makes it more reliable if stdin happens to equal stdout.
81914         Invoke __fsetlocking on tty.
81915         Handle thread cancellation if needed.
81916         Namespace cleanup (use __tcgetattr, __getline).
81917         Use bool for Booleans.
81918         [USE_IN_LIBIO]: Handle wide streams.
81919         [!_LIBC]: Unconditionally do the fseek, since we don't know what
81920         stream might go where.
81921
81922         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
81923         doesn't have to include <stdio.h> before us.
81924         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
81925         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
81926         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
81927         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
81928         if not declared, so that we can use getpass.c code from libc without
81929         rewriting it.
81930         (flockfile, ftrylockfile, funlockfile): New macros.
81931
81932 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81933
81934         * modules/getpass: Depend on stdbool.
81935
81936 2003-10-08  Paul Eggert  <eggert@twinsun.com>
81937
81938         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
81939
81940 2003-10-07  Karl Berry  <karl@gnu.org>
81941
81942         * config/config.{guess,sub}: update from config.
81943
81944 2003-10-06  Jim Meyering  <jim@meyering.net>
81945             Bruno Haible  <bruno@clisp.org>
81946
81947         This lets translators provide better translations for the
81948         "Written by ..." part of --version output.
81949         * lib/version-etc.h: Include stdarg.h.
81950         (version_etc_copyright): Declare as readonly.
81951         (version_etc): Make this function variadic with a NULL-terminated list
81952         of author name strings.
81953         (version_etc_va): New declaration.
81954         * lib/version-etc.c: Include stdarg.h, stdlib.h.
81955         (version_etc_copyright): Declare as readonly.
81956         (version_etc_va): New function. Provide a different translatable string
81957         for each possible number of authors < 10. Abbreviate when there are 10
81958         authors or more.
81959         (version_etc): Make this function variadic. Call version_etc_va.
81960         Suggestion from Gary V. Vaughan.
81961
81962         * lib/long-options.h (parse_long_options): Change prototype: the
81963         authors string is moved to the end and becomes variadic.
81964         * lib/long-options.c: Include stdarg.h.
81965         (parse_long_options): Make this function variadic, too.
81966         Call version_etc_va, not version_etc.
81967
81968 2003-10-06  Bruno Haible  <bruno@clisp.org>
81969
81970         * modules/version-etc-2: Remove file.
81971         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
81972
81973 2003-10-06  Bruno Haible  <bruno@clisp.org>
81974
81975         * modules/fatal-signal: New file.
81976         * MODULES.html.sh (func_all_modules): Add fatal-signal.
81977
81978 2003-10-06  Bruno Haible  <bruno@clisp.org>
81979
81980         * m4/fatal-signal.m4: New file.
81981         * m4/signalblocking.m4: New file, from GNU gettext.
81982
81983 2003-10-06  Bruno Haible  <bruno@clisp.org>
81984
81985         * lib/version-etc-2.h: Remove file.
81986         * lib/version-etc-2.c: Remove file.
81987
81988 2003-10-06  Bruno Haible  <bruno@clisp.org>
81989
81990         * lib/fatal-signal.h: New file, from GNU gettext.
81991         * lib/fatal-signal.c: New file, from GNU gettext.
81992
81993 2003-10-05  Paul Eggert  <eggert@twinsun.com>
81994
81995         * README: Rework advice for preventing empty .o files.
81996         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
81997         not <sys/types.h>.
81998
81999 2003-10-04  Karl Berry  <karl@gnu.org>
82000
82001         * lib/argp*: update from libc.
82002
82003 2003-10-04  Karl Berry  <karl@gnu.org>
82004
82005         * config/config.{guess,sub}: update from config.
82006
82007 2003-10-02  Bruno Haible  <bruno@clisp.org>
82008
82009         * modules/lchown (Include): Add lchown.h.
82010         * modules/time_r (Include): Use "..." syntax.
82011         * modules/xgetdomainname (Include): Add xgetdomainname.h.
82012
82013 2003-10-01  Simon Josefsson  <jas@extundo.com>
82014
82015         * MODULES.html.sh (func_all_modules): Move gethostname from section
82016         'based on' to section 'lacking' POSIX:2001.
82017
82018 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
82019
82020         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
82021         to output mode on the same stream.
82022
82023 2003-09-29  Paul Eggert  <eggert@twinsun.com>
82024
82025         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
82026         Fix arg typo in previous patch.
82027
82028 2003-09-28  Jim Meyering  <jim@meyering.net>
82029
82030         * lib/error.c: Correct cpp indentation.
82031
82032 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82033
82034         * modules/free: New file.
82035
82036 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82037
82038         * m4/free.m4: New file.
82039
82040 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82041
82042         * lib/minmax.h (MIN, MAX)
82043         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
82044         Omit the special code that used __typeof__, since we worry that
82045         it could be more trouble than it's worth.  See:
82046         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
82047         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
82048
82049         * lib/free.c: New file.
82050
82051 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
82052
82053         Trivial fixes to Makefile.am parts of module listings.
82054         * modules/strstr: Append strstr.h to lib_SOURCES.
82055         * modules/strcase: Likewise, for strcase.h.
82056
82057 2003-09-27  Karl Berry  <karl@gnu.org>
82058
82059         * config/mkinstalldirs: update from automake.
82060
82061 2003-09-26  Paul Eggert  <eggert@twinsun.com>
82062
82063         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
82064         (error_tail): Do not loop, reallocating temporary buffer, since
82065         the output cannot contain more wide characters than the input
82066         contains bytes, the size must be big enough already.  This avoids
82067         one potential size overflow calculation.  Check for size overflow
82068         when calculating temporary buffer size.  Free temporary buffer
82069         when done, if it was allocated with malloc; this plugs a memory
82070         leak.  Remove casts from void * to pointers, that are no longer
82071         needed now that we're assuming C89 or better.
82072
82073         Merge error changes from glibc.
82074
82075         * lib/error.c, error.h: Update copyright notice header to match glibc.
82076         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
82077         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
82078         Disable cancellation while printing error.
82079         * lib/error.h: Prepend __ to parameter names.
82080
82081 2003-09-26  Jim Meyering  <jim@meyering.net>
82082
82083         * lib/error.c (error_tail): Move some declarations
82084         into inner scope where the local variables are used.
82085
82086 2003-09-26  Bruno Haible  <bruno@clisp.org>
82087
82088         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
82089         stpncpy().
82090         Don't define stpncpy through config.h; it's now done through stpncpy.h.
82091
82092 2003-09-26  Bruno Haible  <bruno@clisp.org>
82093
82094         * lib/stpncpy.h (gnu_stpncpy): New declaration.
82095         (stpncpy): Define as alias for gnu_stpncpy.
82096         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
82097
82098 2003-09-25  Simon Josefsson  <jas@extundo.com>
82099
82100         * lib/xgetdomainname.h: New file.
82101         * lib/xgetdomainname.c: New file.
82102
82103 2003-09-25  Simon Josefsson  <jas@extundo.com>
82104             Bruno Haible  <bruno@clisp.org>
82105
82106         * modules/getdomainname: New file.
82107         * modules/xgetdomainname: New file.
82108         * MODULES.html.sh (func_all_modules): Add getdomainname,
82109         xgetdomainname.
82110
82111 2003-09-25  Simon Josefsson  <jas@extundo.com>
82112             Bruno Haible  <bruno@clisp.org>
82113
82114         * m4/getdomainname.m4: New file.
82115
82116 2003-09-25  Simon Josefsson  <jas@extundo.com>
82117             Bruno Haible  <bruno@clisp.org>
82118
82119         * lib/getdomainname.h: New file.
82120         * lib/getdomainname.c: New file.
82121
82122 2003-09-25  Karl Berry  <karl@gnu.org>
82123
82124         * lib/argp-fmtstream.c, argp-help.c: update from libc.
82125
82126 2003-09-25  Karl Berry  <karl@gnu.org>
82127
82128         * config/install-sh: update from automake.
82129
82130 2003-09-25  Bruno Haible  <bruno@clisp.org>
82131
82132         * modules/version-etc-2: New file, from modules/version-etc with
82133         modifications.
82134         * MODULES.html.sh (func_all_modules): Add version-etc-2.
82135
82136 2003-09-25  Bruno Haible  <bruno@clisp.org>
82137
82138         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
82139         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
82140
82141 2003-09-24  Simon Josefsson  <jas@extundo.com>
82142
82143         * modules/xgethostname: Add xgethostname.h.
82144
82145 2003-09-24  Paul Eggert  <eggert@twinsun.com>
82146
82147         * lib/linebuffer.c (freebuffer): Don't free the argument, just
82148         the buffer associated with the argument.  Bug reported by
82149         Simon Josefsson.
82150
82151 2003-09-24  Paul Eggert  <eggert@twinsun.com>
82152
82153         * README: Document assumptions that 'int' is at least 32 bits
82154         wide, that integer arithmetic is 2's complement without overflow,
82155         that there are no holes in integer values, that adding sizes of
82156         two nonoverlapping objects can't overflow, and that all-bits-zero
82157         yields scalar zero.  Fix spelling and capitalization typos.
82158
82159 2003-09-19  Karl Berry  <karl@gnu.org>
82160
82161         * lib/argp.h: update from libc.
82162
82163 2003-09-17  Paul Eggert  <eggert@twinsun.com>
82164
82165         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
82166         to avoid spurious warnings like "AC_RUN_IFELSE was called before
82167         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
82168
82169 2003-09-17  Paul Eggert  <eggert@twinsun.com>
82170
82171         * gnulib-tool: Use "test -h", not "test -L", for portability
82172         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
82173         (tags_regexp): Remove, since \| doesn't conform to POSIX.
82174         (sed_extract_prog): Issue s commands one-by-one, rather than
82175         using \| in one s command.
82176
82177 2003-09-16  Paul Eggert  <eggert@twinsun.com>
82178
82179         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
82180         input error, instead of returning NULL the next time we are called
82181         (and therefore losing track of errno).
82182
82183 2003-09-16  Bruno Haible  <bruno@clisp.org>
82184
82185         * gnulib-tool (func_create_testdir): Warn about duplicated
82186         dependencies.
82187
82188 2003-09-15  Paul Eggert  <eggert@twinsun.com>
82189
82190         * modules/argmatch, modules/fatal, modules/obstack,
82191         modules/xalloc, modules/xgethostname: Sort dependencies by
82192         importance, not alphabetically.
82193
82194 2003-09-15  Paul Eggert  <eggert@twinsun.com>
82195
82196         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
82197         fails, so that the caller gets the proper errno.
82198
82199         * lib/readutmp.c (read_utmp): Likewise.
82200         Check for fstat error.  Close stream and free storage
82201         when failing.
82202
82203 2003-09-14  Karl Berry  <karl@gnu.org>
82204
82205         * config/srclist.txt (strdup.c): disable for c89 changes.
82206
82207 2003-09-14  Jim Meyering  <jim@meyering.net>
82208
82209         * lib/getloadavg.c: Correct cpp indentation.
82210         * lib/strdup.c: Likewise.
82211         * lib/vasnprintf.c: Likewise.
82212
82213 2003-09-14  Bruno Haible  <bruno@clisp.org>
82214
82215         * modules/fwriteerror: New file.
82216         * MODULES.html.sh (func_all_modules): Add fwriteerror.
82217
82218 2003-09-14  Bruno Haible  <bruno@clisp.org>
82219
82220         * lib/fwriteerror.h: New file.
82221         * lib/fwriteerror.c: New file.
82222
82223 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82224
82225         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
82226         modules/xgethostname, modules/xalloc: Depend on exit.
82227
82228 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82229
82230         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
82231
82232         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
82233         and AC_MINIX, too, so that their extensions are available.
82234
82235         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
82236         This macro has been superseded by gl_BACKUPFILE.
82237
82238         More patches to assume C89 or better.
82239
82240         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
82241
82242         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
82243         unconditionally.
82244         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
82245         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
82246         Include <string.h>, <stdlib.h> unconditionally.
82247         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
82248         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
82249         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
82250         headers or for string.h.
82251         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
82252         or strtoul.
82253
82254         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
82255         headers.
82256         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
82257         * m4/userspec.m4 (gl_USERSPEC): Likewise.
82258         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
82259         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
82260         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
82261         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
82262         memcpy, memset.
82263         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
82264         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
82265         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
82266         strtol.
82267         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
82268         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
82269         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
82270         strtoul.
82271
82272 2003-09-12  Paul Eggert  <eggert@twinsun.com>
82273
82274         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
82275         * lib/obstack.c [!defined _LIBC]: Likewise.
82276         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
82277         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
82278         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
82279
82280         More changes to assume C89 or better.
82281
82282         * lib/error.c (error_tail): Assume vprintf.
82283
82284         * lib/argmatch.c (getenv): Remove decl.
82285         * lib/progreloc.c (get_full_program_name): Define via prototype.
82286         * lib/setenv.c (clearenv): Likewise.
82287         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
82288         needed.
82289         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
82290         (malloc, memcpy): Remove decls.
82291         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
82292         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
82293         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
82294         (memcpy): Remove macro.
82295         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
82296         (__P): Remove.  All uses removed.
82297         (PTR): Remove.  All uses changed to void *.
82298         (CHAR_BIT, NULL): Remove.
82299         (spaces, zeros, memset_space, memset_zero)
82300         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
82301         Remove.
82302         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
82303         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
82304         Define with prototype.
82305         Remove now-unnecessary prototype decl.
82306         (extra_args_spec): Assume ANSI C.  All uses changed.
82307         (extra_args_spec_iso): Remove.
82308         (my_strftime, emacs_strftimeu): Define via prototype.
82309         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
82310         unconditionally.
82311         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
82312         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
82313         (strtoul, strtol): Remove decls.
82314         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
82315         LONG_MAX): Remove.
82316         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
82317         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
82318         (LOCALE_PARAM_PROTO): New macro.
82319         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
82320         (INTERNAL (strtol), strtol): Define with a prototype.
82321         (PARAMS): Remove.  All uses removed.
82322         * lib/tempname.c: Include <string.h> unconditionally.
82323         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
82324         * lib/xgethostname.c (main): Define with a prototype.
82325         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
82326         Include <stdlib.h> unconditionally.
82327         (calloc, malloc, realloc, free): Remove decls.
82328         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
82329         Include <stdlib.h> unconditionally.  Sort include file names.
82330         (strtod): Remove.
82331         (xstrtod): Define with a prototype.
82332         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
82333         (strtol, strtoul): Remove decls.
82334
82335 2003-09-11  Paul Eggert  <eggert@twinsun.com>
82336
82337         More patches to assume C89 or better.
82338         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
82339         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
82340         string.h, memchr, STDC_HEADERS.
82341
82342 2003-09-11  Paul Eggert  <eggert@twinsun.com>
82343
82344         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
82345         Include <stdlib.h>, <string.h> unconditionally.
82346         Remove now-unnecessary cast to char *.
82347         * lib/strnlen.c: Include <string.h> unconditionally.
82348         * lib/yesno.c (yesno): Define with a prototype.
82349
82350 2003-09-11  Bruno Haible  <bruno@clisp.org>
82351
82352         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
82353
82354 2003-09-10  Jim Meyering  <jim@meyering.net>
82355
82356         * lib/error.c: Correct indentation of cpp directives.
82357
82358 2003-09-10  Bruno Haible  <bruno@clisp.org>
82359
82360         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
82361         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
82362         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
82363         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
82364         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
82365         <stdlib.h> and <string.h> checks.
82366         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
82367         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
82368
82369 2003-09-10  Bruno Haible  <bruno@clisp.org>
82370
82371         * lib/strcspn.c: Include <string.h> unconditionally.
82372         * lib/strpbrk.c: Include <string.h> unconditionally.
82373         * lib/strstr.c: Include <string.h> unconditionally.
82374         * lib/unicodeio.c: Include <string.h> unconditionally.
82375         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
82376         * lib/unsetenv.c: Likewise.
82377         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
82378         * lib/yesno.c: Include <stdlib.h> unconditionally.
82379         (rpmatch): Add prototype.
82380
82381 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82382
82383         More patches to assume C89 or better.
82384         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
82385         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
82386         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
82387         or for string.h.
82388         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
82389         stdlib.h.
82390         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
82391         C headers.
82392         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
82393         string.h.
82394         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
82395         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
82396         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
82397         or for string.h.
82398         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
82399         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
82400         C headers.
82401         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
82402         memcpy.
82403         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
82404         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
82405         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
82406         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
82407         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
82408         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
82409         string.h, free.
82410         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
82411         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
82412         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
82413         C headers, or for string.h.
82414         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
82415         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
82416         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
82417         headers, memory.h, stdlib.h, string.h, strings.h.
82418         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
82419         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
82420         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
82421         strchr.
82422         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
82423         headers, memory.h, string.h.
82424         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
82425         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
82426         free.
82427         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
82428         headers.
82429         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
82430         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
82431         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
82432         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
82433         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
82434
82435 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82436
82437         More K&R removal.
82438
82439         * lib/acosl.c (main): Use a prototype.
82440         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
82441         tanl.c: Likewise.
82442
82443         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
82444
82445         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
82446         (getopt, etopt_long, getopt_long_only, _getopt_internal)
82447         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
82448         with a prototype.
82449         * lib/getopt.c (const): Remove macro.
82450         Include <string.h> unconditionally.
82451         (my_index): Remove; all uses changed to strchr.
82452         (strlen): Remove decl.
82453         (exchange): Remove forward decl; no longer needed.
82454         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
82455         Define with prototype.
82456         * lib/getopt1.c (const): Remove macro.
82457         (getopt_long, getopt_long_only, main): Define with prototype.
82458
82459         * lib/getugroups.c: Include <string.h> unconditionally.
82460
82461         * lib/getusershell.c: Include <stdlib.h> unconditionally.
82462         (getusershell, setusershell, endusershell, readname, main):
82463         Define with prototypes.
82464
82465         * lib/group-member.c: Include group-member.h first.
82466         Include <stdlib.h> unconditionally.
82467
82468         * lib/hard-locale.c: Include hard-locale.h first.
82469         Include <stdlib.h>, <string.h> unconditionally.
82470
82471         * lib/hash.c (free, malloc): Remove decls.
82472         Include <stdlib.h> unconditionally.
82473
82474         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
82475         (getenv): Do not declare.
82476
82477         * lib/idcache.c: Include <string.h> unconditionally.
82478
82479         * lib/long-options.c: Include long-options.h first, to test interface.
82480         Include <stdlib.h> unconditionally.
82481
82482         * lib/makepath.c: Include makepath.h first, to test interface.
82483         Include <stdlib.h> and <string.h> unconditionally.
82484
82485         * lib/linebuffer.c: Include <stdlib.h>.
82486         (free): Remove decl.
82487
82488         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
82489         stddef.h. rpl_malloc returns void *, not char *.
82490         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
82491         prototype.
82492
82493         * lib/md5.h: Include <limits.h> unconditionally.
82494         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
82495         (__P): Remove; all uses removed.
82496         * lib/md5.c: Include "md5.h" first.
82497         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
82498         md5_buffer, md5_process_bytes, md5_process_block):
82499         Define with prototypes.
82500         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
82501         * lib/sha.c: Include "sha.h" first.
82502         Include <stdlib.h>, <string.h> unconditionally.
82503
82504         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
82505         * lib/memcmp.c (__ptr_t): Likewise.
82506         * lib/memrchr.c (__ptr_t): Likewise.
82507         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
82508         Include <string.h> unconditionally.
82509         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
82510         * lib/memchr.c: Include <stdlib.h> unconditionally.
82511         * lib/memchr.c (LONG_MAX): Remove.
82512         * lib/memrchr.c (LONG_MAX): Likewise.
82513         * lib/memchr.c (__memchr): Define via a prototype.
82514         * lib/memrchr.c (__memrchr): Likewise.
82515         * lib/memcmp.c (__P): Remove, and remove all uses.
82516         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
82517         Remove forward decls; no longer needed.
82518         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
82519         Use types required by C89 in prototype.
82520
82521         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
82522         * lib/savedir.c: Likewise.
82523         * lib/mkdir.c (free): Remove decl.
82524         * lib/rmdir.c (rmdir): Define with a prototype.
82525         * lib/savedir.c: Include savedir.h first, to test interface.
82526
82527         * lib/mktime.c (STDC_HEADERS): Remove.
82528         Include <stdlib.h>, <string.h> unconditionally.
82529
82530         * lib/modechange.c: Include <stdlib.h> unconditionally.
82531         (malloc): Remove decl.
82532
82533         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
82534         (free): Remove decl.
82535
82536         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
82537         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
82538         (This type really should be intptr_t, but that's a C99ism.)
82539         (_obstack_memcpy): Remove: all uses changed to memcpy.
82540         Include <string.h> unconditionally.
82541         (struct obstack): Assume __STDC__ for types of members
82542         chunkfun, freefun, extra_arg.
82543         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
82544         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
82545         obstack_begin, obstack_specify_allocation,
82546         obstack_specify_allocation_with_arg, obstack_chunkfun,
82547         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
82548         Remove unprototyped decls and the macros that use them.
82549         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
82550         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
82551         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
82552         (defined __STDC__ && __STDC__)]:
82553         Remove nonprototyped code.
82554         Include <stdlib.h> unconditionally.
82555         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
82556         _obstack_allocated_p, _obstack_free, obstack_free,
82557         _obstack_memory_used, print_and_abort):
82558         Define using prototypes.
82559         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
82560         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
82561         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
82562         obstack_next_free, obstack_object_size, obstack_room) [0]:
82563         Remove unused, unprototyped code.
82564
82565         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
82566
82567         * lib/physmem.c (physmem_total, physmem_available, main): Define
82568         with prototypes.
82569
82570         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
82571         (main): Define with a prototype.
82572
82573         * lib/posixver.c (getenv): Remove decl.
82574
82575         * lib/putenv.c (malloc): Returns void *, not char *.
82576         Include <string.h> unconditionally.
82577         (strchr, memcpy, NULL): Do not define.
82578
82579         * lib/readtokens.c: Include readtokens.h first, to test interface.
82580         Include <stdlib.h>, <string.h> unconditionally.
82581         (init_tokenbuffer): Define with a prototype.
82582
82583         * lib/regex.c (PARAMS): Remove.  All uses removed.
82584         All uses of _RE_ARGS removed, too.
82585         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
82586         unconditionally.
82587         (bzero): Assume memset exists.
82588         (memcmp, memcpy, NULL): Remove.
82589         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
82590         char, or assignments to local vars of type signed char.
82591         (init_syntax_once, PREFIX(extract_number_and_incr),
82592         PREFIX(print_partial_compiled_pattern),
82593         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
82594         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
82595         PREFIX(regex_grow_registers), PREFIX(regex_compile),
82596         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
82597         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
82598         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
82599         wcs_compile_range, byte_compile_range, truncate_wchar,
82600         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
82601         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
82602         count_mbs_length, wcs_re_match_2_internal,
82603         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
82604         PREFIX(alt_match_null_string_p),
82605         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
82606         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
82607         regfree, PREFIX(extract_number)): Define with prototype.  Remove
82608         now-unnecessary declaration, if any.
82609         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
82610         regcomp, regexec):
82611         Remove now-unnecessary casts among pointer types.
82612         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
82613
82614         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
82615         (free): Remove decl.
82616
82617         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
82618
82619         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
82620         (free): Remove decl.
82621
82622         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
82623         * lib/xgetcwd.c: Likewise.
82624
82625         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
82626         (free): Remove decl.
82627
82628         * lib/strchrnul.c (strchrnul): Define with a prototype.
82629         Fix bug: c_in was not converted to char before searching.
82630
82631         The following changes are not K&R related:
82632
82633         * lib/group-member.h: Include <sys/types.h>, so that this file is
82634         self-contained.
82635         * lib/makepath.h: Likewise.
82636
82637         * lib/getusershell.c (readname, default_index, line_size, readname):
82638         Use size_t, not int, for sizes.
82639         (readname): If the size overflows, report an error instead of
82640         looping forever.
82641
82642 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82643
82644         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
82645         libc.
82646
82647 2003-09-09  Paul Eggert  <eggert@twinsun.com>
82648
82649         * README: New section: portability guidelines.
82650
82651 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82652
82653         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
82654         C89 spec.
82655
82656 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
82657
82658         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
82659
82660 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82661
82662         Assume C89 or better; remove K&R cruft.
82663         A few of these changes were first proposed by Derek Robert Price
82664         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
82665
82666         * lib/addext.c: Include <string.h> unconditionally.
82667         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
82668         Don't declare getenv or malloc.
82669
82670         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
82671         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
82672         (NULL): Remove.
82673         (find_stack_direction, alloca): Use prototypes.
82674
82675         * lib/atexit.c (atexit): Define using a prototype.
82676
82677         * lib/basename.c, dirname.c, stripslash.c:
82678         Include <string.h> unconditionally.
82679
82680         * lib/bcopy.c: Include <stddef.h>.
82681         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
82682
82683         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
82684
82685         * lib/error.h (error, error_at_line, error_print_progname)
82686         [! (defined (__STDC__) && __STDC__)]: Remove decls.
82687         * lib/error.c: Include error.h first, to check interface.
82688         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82689         (VA_START): Remove; all uses changeed to va_start.
82690         (exit, strerror): Remove decls.
82691         (error_print_progname): Prototype uncondionally.
82692         Don't include <errno.h>; no longer needed.
82693         (private_strerror): Remove.
82694         (error_tail): Always define.
82695         (error, error_at_line): Assume C89 or better; always use prototypes.
82696         * lib/fatal.c: Include "fatal.h" first, to test interface.
82697         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
82698         (VA_START): Remove; all uses changed to va_start.
82699         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
82700         this case.
82701         (exit): Remove decl.
82702         (fatal): Prototype unconditionally.  Assume va_start works.
82703         Abort at end, to pacify gcc.
82704
82705         * lib/euidaccess.c (main): Define with a prototype.
82706
82707         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
82708
82709         * lib/exitfail.c: Include <stdlib.h> unconditionally.
82710
82711         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
82712         prototypes.
82713         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
82714         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
82715         (getenv): Remove decl.
82716         (fnmatch): Define using a prototype.
82717         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
82718         (FCT): Define using a prototype.
82719
82720         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
82721
82722         * lib/gethostname.c: Include <stddef.h>.
82723         (gethostname): Define with prototype.  Length is size_t, not int.
82724
82725 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82726
82727         Assume C89 or better; remove K&R cruft.
82728         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
82729         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
82730         string.h, getenv, malloc.
82731         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
82732         headers.
82733         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
82734         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
82735         do not check for strerror.
82736         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
82737         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
82738         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
82739         do not check for doprnt or vprintf.
82740         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
82741         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
82742
82743 2003-09-08  Paul Eggert  <eggert@twinsun.com>
82744
82745         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
82746         getversion.c should have been removed then, but was accidentally
82747         preserved.
82748
82749         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
82750         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
82751
82752 2003-09-08  Karl Berry  <karl@gnu.org>
82753
82754         * config/config.sub, config.guess, srclistvars.sh: update from savannah
82755                 config, forget about prep.
82756
82757         * config/depcomp, missing: update from automake.
82758
82759 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82760
82761         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
82762         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82763
82764 2003-09-07  Paul Eggert  <eggert@twinsun.com>
82765
82766         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
82767         copy_tm_result.  Bug reported by Simon Josefsson in
82768         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
82769
82770 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82771
82772         * m4/time_r.m4: New file.
82773         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
82774         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
82775         is. Check for timegm declaration.
82776         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
82777         Do not check for gmtime_r.
82778         Replace mktime if __mktime_internal does not exist and if mktime
82779         hasn't been replaced already.
82780
82781 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82782
82783         * lib/time_r.c, lib/time_r.h: New files.
82784
82785         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
82786         __localtime_r.
82787         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
82788         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
82789
82790         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
82791         __gmtime_r.
82792         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
82793         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
82794         Include <time_r.h>.
82795
82796         * lib/timegm.c: Switch to glibc implementation, with the following
82797         changes:
82798         [defined HAVE_CONFIG_H]: Include <config.h>.
82799         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
82800         (__mktime_internal) [!defined _LIBC]: New decl.
82801         (__gmtime_r) [!defined _LIBC]: New macro and function.
82802         (timegm): Use a prototype, since gnulib assumes C89.
82803         Do not bother declaring tmp to be const, as it's not really usefu.
82804         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
82805         (timegm): Declare only if HAVE_DECL_TIMEGM.
82806
82807 2003-09-06  Paul Eggert  <eggert@twinsun.com>
82808
82809         * MODULES.html.sh (func_all_modules): Add time_r.
82810         * modules/time_r: New file.
82811         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
82812         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
82813
82814 2003-09-03  Paul Eggert  <eggert@twinsun.com>
82815
82816         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
82817         Bug reported by Lute Kamstra in
82818         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
82819
82820         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
82821         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
82822         course with correspondingly smaller numbers for tomorrow and
82823         yesterday.  From Tadayoshi Funaba.  Originally installed into
82824         sh-utils on 1999-08-07, but the patch got lost (I guess during the
82825         coreutils merge?).
82826
82827 2003-08-31  Simon Josefsson  <jas@extundo.com>
82828
82829         * modules/timegm: New file.
82830         * MODULES.html.sh (func_all_modules): Add timegm.
82831
82832 2003-08-31  Simon Josefsson  <jas@extundo.com>
82833
82834         * m4/timegm.m4: New file.
82835
82836 2003-08-31  Simon Josefsson  <jas@extundo.com>
82837
82838         * lib/timegm.h: New file.
82839         * lib/timegm.c: New file.  Based on
82840         wget-1.8.2/src/http.c:mktime_from_utc.
82841
82842 2003-08-31  Karl Berry  <karl@gnu.org>
82843
82844         * lib/argp.h: update from libc.
82845
82846 2003-08-28  Bruno Haible  <bruno@clisp.org>
82847
82848         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
82849         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
82850         followed by '#define fnmatch fnmatch_posix' gives an error.
82851
82852 2003-08-28  Bruno Haible  <bruno@clisp.org>
82853
82854         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
82855         warning on QNX, which defines O_BINARY to 000000.
82856
82857 2003-08-27  Jim Meyering  <jim@meyering.net>
82858
82859         * m4/mkstemp.m4: Require that the system mkstemp be able to create
82860         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
82861         would fail after 32.  Reported by Danny Levinson.  Details here:
82862         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
82863
82864 2003-08-24  Bruno Haible  <bruno@clisp.org>
82865
82866         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
82867         MSVC7 <stdio.h> is included later.
82868
82869 2003-08-22  Simon Josefsson  <jas@extundo.com>
82870
82871         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
82872
82873 2003-08-20  Karl Berry  <karl@gnu.org>
82874
82875         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
82876
82877 2003-08-20  Bruno Haible  <bruno@clisp.org>
82878
82879         * modules/progname: New file.
82880         * MODULES.html.sh (func_all_modules): Add progname.
82881
82882 2003-08-20  Bruno Haible  <bruno@clisp.org>
82883
82884         * lib/progname.h: New file, from GNU gettext.
82885         * lib/progname.c: New file, from GNU gettext.
82886         * lib/progreloc.c: New file, from GNU gettext.
82887
82888 2003-08-19  Jim Meyering  <jim@meyering.net>
82889
82890         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
82891         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
82892
82893 2003-08-19  Bruno Haible  <bruno@clisp.org>
82894
82895         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
82896         more.
82897
82898 2003-08-19  Bruno Haible  <bruno@clisp.org>
82899
82900         * lib/xstrdup.c: Assume <string.h> exists.
82901
82902 2003-08-18  Paul Eggert  <eggert@twinsun.com>
82903
82904         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
82905         in makefile rules.
82906
82907 2003-08-18  Jim Meyering  <jim@meyering.net>
82908
82909         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
82910         * m4/lib-ld.m4: Likewise.
82911
82912 2003-08-18  Jim Meyering  <jim@meyering.net>
82913
82914         * lib/setenv.h: Indent nested cpp directive.
82915         * lib/vasnprintf.c: Remove trailing blanks.
82916
82917 2003-08-17  Simon Josefsson  <jas@extundo.com>
82918
82919         * modules/xstrndup: New file.
82920         * MODULES.html.sh (func_all_modules): Add xstrndup.
82921
82922 2003-08-17  Simon Josefsson  <jas@extundo.com>
82923
82924         * modules/argp: Fix autoconf macro name. Add more dependencies.
82925
82926 2003-08-17  Simon Josefsson  <jas@extundo.com>
82927
82928         * m4/xstrndup.m4: New file.
82929
82930 2003-08-17  Simon Josefsson  <jas@extundo.com>
82931
82932         * m4/argp.m4: New file.
82933
82934 2003-08-17  Simon Josefsson  <jas@extundo.com>
82935             Bruno Haible  <bruno@clisp.org>
82936
82937         * lib/xstrndup.h: New file.
82938         * lib/xstrndup.c: New file.
82939
82940 2003-08-17  Bruno Haible  <bruno@clisp.org>
82941
82942         * modules/strndup (Files, Include): Add lib/strndup.h.
82943
82944 2003-08-17  Bruno Haible  <bruno@clisp.org>
82945
82946         * modules/euidaccess (Files): Add lib/euidaccess.h.
82947
82948 2003-08-17  Bruno Haible  <bruno@clisp.org>
82949
82950         * lib/strndup.h: New file.
82951
82952 2003-08-17  Bruno Haible  <bruno@clisp.org>
82953
82954         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
82955         like AC_GNU_SOURCE.
82956         * modules/extensions (configure.ac): Comment out the invocation of
82957         gl_USE_SYSTEM_EXTENSIONS.
82958
82959 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82960
82961         Merges from coreutils, etc.
82962         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
82963         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
82964         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
82965         fixing a typo.
82966         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
82967         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
82968
82969 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82970
82971         Document merge from coreutils.
82972         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
82973         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
82974         * modules/utime: Add m4/utimes-null.m4.
82975
82976 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82977
82978         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
82979         space, undoing this 2003-08-12 change:
82980         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82981
82982 2003-08-16  Paul Eggert  <eggert@twinsun.com>
82983
82984         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
82985         strtoul.c from libc, undoing this 2003-08-12 change:
82986         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
82987
82988 2003-08-16  Jim Meyering  <jim@meyering.net>
82989
82990         Merges from coreutils.
82991         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
82992         prefix.  Adjust cache variables similarly.  Create 500 rather than
82993         just 300 files, to exercise bug on Darwin6.5, too.
82994         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
82995         $missing_dir.
82996         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
82997         AM_SYS_POSIX_TERMIOS.
82998         Reported by mkc@mathdogs.com.
82999         Also change use of $am_cv_sys_posix_termios
83000         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
83001         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
83002         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
83003         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
83004         in /proc/mounts until it finds one with matching device number.  This
83005         is unnecessary when the FILE argument *is* a mount point.  No stat call
83006         is necessary in that case.  So, disable the statvfs-testing code on
83007         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
83008         as RedHat bug# 84846.
83009         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
83010         to 1MB, so as not to render systems with no stack size limit (e.g.,
83011         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
83012         Include <unistd.h>.  On some systems,
83013         it is required for the definition of _SC_PAGESIZE.
83014
83015 2003-08-16  Jim Meyering  <jim@meyering.net>
83016
83017         Merge from coreutils.
83018         * lib/xstrtoimax.c: #else #if -> #elif.
83019         * lib/xstrtoumax.c: Likewise.
83020
83021 2003-08-16  Jim Meyering  <jim@meyering.net>
83022
83023         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
83024         * m4/utimes.m4: Removed.
83025         * m4/utimes-null.m4: Renamed from utimes.m4.
83026
83027         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
83028         to 1MB, so as not to render systems with no stack size limit (e.g.,
83029         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
83030         Include <unistd.h>.  On some systems,
83031         it is required for the definition of _SC_PAGESIZE.
83032
83033 2003-08-16  Jim Meyering  <jim@meyering.net>
83034         and Paul Eggert  <eggert@cs.ucla.edu>
83035
83036         Merges from coreutils, etc.
83037
83038         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
83039         using the latest version from cvs.  This avoids problems with #line
83040         directives using a vendor (Sun) compiler.
83041         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
83042         Don't set GETGROUPS_LIB here; now it's
83043         done via getgroups.m4's wrapper function.
83044         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
83045         rather than just in sh-util/configure.in, so that the
83046         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
83047         same.
83048         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
83049         AC_FUNC_GETLOADAVG where to find getloadavg.c.
83050         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
83051         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
83052         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
83053         Remove code that is now done by the newly-required macros.
83054         Append $(EXEEXT) to DF_PROG.
83055         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
83056         Do not invoke or require the following here,
83057         since prereq.m4 or some gnulib .m4 now does this for us:
83058         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
83059         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
83060         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
83061         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
83062         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
83063         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
83064         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
83065         AC_FUNC_OBSTACK.
83066         Do not replace the following functions, as this is now the job
83067         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
83068         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
83069         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
83070         atexit getpass, strdup, getpagesize.
83071         Replace 'raise'.
83072         Do not check for the following functions, as this is now the job
83073         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
83074         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
83075         setregid.
83076         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
83077         Check for sys/sysctl.h.
83078         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
83079         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
83080         of checking for ssize_t ourselves.
83081
83082         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
83083         Require every macro that gnulib/modules/* suggests for us.
83084         (jm_PREREQ_ADDEXT): New macro.
83085         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
83086         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
83087
83088         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
83089         (gl_PHYSMEM): Use it.
83090         Also check for `table' function.
83091         Check for new headers and functions.
83092         Add check for sys/sysmp.h.
83093         With suggestions from Kaveh Ghazi.
83094         Ignore headers that are present but cannot be compiled.  This
83095         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
83096         C 5.4.
83097
83098 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83099
83100         Document merge from coreutils.
83101         * modules/userspec: Depend on posixver.
83102         * modules/strftime: Depend on tzset.
83103
83104 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83105
83106         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
83107         rather than tab, after '#' in shell-script copyright notices.
83108         Suggested by Bruno Haible.
83109
83110 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83111
83112         * config/srclist-update: Use three spaces, rather than tab, after '#'
83113         in shell-script copyright notices.  Suggested by Bruno Haible.
83114         Remove unnecessary parenthesization in regular expression.
83115
83116 2003-08-15  Jim Meyering  <jim@meyering.net>
83117
83118         Merge from coreutils.
83119         * lib/xgethostname.c: Include <stdlib.h>.
83120         (xghostname): Don't exit for anything other than memory-related
83121         failure; just return NULL.
83122         * lib/userspec.c: Include "posixver.h".
83123         (parse_user_spec): Accept `.' as a separator only
83124         in pre-POSIX-200112 mode.
83125         * lib/strtoimax.c: Use #elif rather than #else #if.
83126         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
83127         Remove function, now that we can rely on a working tzset function.
83128         [!_LIBC]: Ensure that the required autoconf test has been run.
83129         [!defined _NL_CURRENT && HAVE_STRFTIME]:
83130         Use underlying_strftime for %r.
83131         * lib/sha.c: Merge in some clean-up and optimization changes from
83132         glibc.
83133         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
83134         Ensure that it is a multiple of 64.
83135         Rearrange loop exit tests so as to avoid performing an
83136         additional fread after encountering an error or EOF.
83137         * lib/realloc.c: Update copyright date.
83138
83139 2003-08-15  Jim Meyering  <jim@meyering.net>
83140         and Paul Eggert  <eggert@twinsun.com>
83141
83142         Merge from coreutils.
83143         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
83144         member but strut utmpx does not.  Needed for AIX 4.3.3.
83145         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
83146
83147 2003-08-15  Jim Meyering  <jim@meyering.net>
83148         and Paul Eggert  <eggert@cs.ucla.edu>
83149
83150         Merges from coreutils, etc.
83151         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
83152         Require gl_FUNC_TZSET_CLOBBER.
83153         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
83154         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
83155         members.
83156
83157 2003-08-14  Paul Eggert  <eggert@twinsun.com>
83158
83159         Help the merge from coreutils.
83160         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
83161         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
83162         * m4/tzset.m4: Use it too.
83163
83164 2003-08-14  Paul Eggert  <eggert@twinsun.com>
83165
83166         * modules/tzset: New file.
83167
83168 2003-08-14  Jim Meyering  <jim@meyering.net>
83169
83170         Merges from coreutils.
83171         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
83172         variable names, rather than @FNMATCH_H@.
83173         * modules/alloca: Likewise for $(ALLOCA_H).
83174
83175         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
83176         the three copies of the literal target, `fnmatch.h'.
83177         * modules/alloca (alloca.h): Likewise.
83178
83179 2003-08-14  Jim Meyering  <jim@meyering.net>
83180
83181         Merge from coreutils.
83182         * m4/tzset.m4: New file.
83183         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
83184         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
83185         otherwise, AIX 5.1 systems would end up using the latter.
83186         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
83187         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
83188         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
83189         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
83190
83191 2003-08-14  Jim Meyering  <jim@meyering.net>
83192
83193         Merge from coreutils.
83194         * lib/obstack.h: Whitespace changes.
83195         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
83196         and xcalloc return values.
83197         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
83198         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
83199         hang on OSF/1 5.1 for DIR on both local and remote file systems.
83200         Reported by (and fix confirmed by) Nelson H. F. Beebe.
83201         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
83202         error from mntctl.
83203         Use mntctl's return value to drive the entry-processing loop, since
83204         we can't rely on the value of the vmt_length member in the last
83205         entry.  On some systems doing so could result in exhausting
83206         virtual memory.  Based in part on a patch from Mike Jetzer.
83207
83208 2003-08-14  Jim Meyering  <jim@meyering.net>
83209         and Paul Eggert  <eggert@twinsun.com>
83210
83211         Merges from coreutils, plus other fixes.
83212         * lib/physmem.c: Merge in portability changes from gcc/libiberty
83213         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
83214         for credits and details.  Thanks to Kaveh Ghazi for helping
83215         to keep these files in sync.
83216         (ARRAY_SIZE): Define it.
83217         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
83218         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
83219         (memcasecmp): Don't assume size_t fits in unsigned int.
83220         Remove casts and duplicate code.
83221         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
83222         (memcpy): Remove definition.
83223         Merge in some clean-up and optimization changes from glibc.
83224         [BLOCKSIZE]: Move definition to top of file.
83225         Ensure that it is a multiple of 64.
83226         Rearrange loop exit tests so as to avoid performing an
83227         additional fread after encountering an error or EOF.
83228         * lib/md5.h (md5_uintptr): Define.
83229         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
83230         return to the initial working directory.  Preserve errno
83231         for caller.
83232         * lib/idcache.c: Include "xalloc.h".
83233         (xmalloc, xrealloc): Remove decls.
83234         (getuser): Remove casts no longer required in C89.
83235         * lib/human.c: Include stdio.h, for sprintf.
83236         * lib/group-member.c: Include "xalloc.h".
83237         (xmalloc, xrealloc): Remove decls.
83238         (get_group_info): Remove casts no longer required in C89.
83239         * lib/getusershell.c (readname): Remove casts no longer required in
83240         C89.
83241         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
83242         * lib/getline.c: Whitespace fix, from coreutils.
83243
83244 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83245
83246         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
83247         Check for isascii.
83248
83249         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83250         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83251         Undo previous (whitespace-only) change.
83252
83253 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83254
83255         * lib/exclude.c: Include <ctype.h>
83256         (IN_CTYPE_DOMAIN): New macro.
83257         (is_space): New fn.
83258         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
83259         and empty lines.
83260
83261         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83262         Undo previous (whitespace-only) change.
83263
83264 2003-08-13  Paul Eggert  <eggert@twinsun.com>
83265
83266         * config/srclist-update: Change update back to the old behavior,
83267         leaving whitespace alone.  Use one 'sed' command rather than a
83268         pipeline.
83269         (fixlicense): Now a variable, not a function.
83270         (remove_trailing_blanks): Remove.
83271         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
83272         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83273         Undo previous (whitespace-only) change.
83274
83275 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83276
83277         Merge from coreutils.
83278         * modules/euidaccess: Add lib_SOURCES, include for new
83279         file euidaccess.h
83280
83281 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83282
83283         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
83284         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
83285         Normalize leading white space and remove trailing white space.
83286
83287         Merge from coreutils
83288         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
83289
83290         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
83291         0.12.1.  These files are now being upgraded automatically by
83292         ../config/srclist-update.
83293
83294 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83295
83296         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
83297         Normalize leading white space and remove trailing white space.
83298         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
83299         notice, as per ../config/srclist-update.
83300
83301         Merge from coreutils.
83302         * lib/euidaccess.h: New file.
83303         * lib/euidaccess.c: Include it.
83304         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
83305         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
83306         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
83307
83308 2003-08-12  Paul Eggert  <eggert@twinsun.com>
83309
83310         * config/srclist-update: Add copyright notice.
83311         (remove_id_lines, remove_trailing_blanks): New constants.
83312         (fixfile): Use them to normalize spacing a bit in copied files.
83313         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
83314         Normalize leading white space and remove trailing white space.
83315
83316         * config/texinfo.tex: Sync with texinfo.
83317
83318         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
83319         strtoul.c from libc, to merge coreutils whitespace changes.
83320
83321         * config/srclist.txt: Get the following m4 files from gettext:
83322         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
83323         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
83324         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
83325         wint_t.m4.
83326
83327 2003-08-12  Karl Berry  <karl@gnu.org>
83328
83329         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
83330         been made.
83331
83332 2003-08-11  Paul Eggert  <eggert@twinsun.com>
83333
83334         * modules/gnu-source, m4/gnu-source.m4:
83335         Remove; we're assuming Autoconf 2.54 or later now.
83336         Suggested by Bruno Haible.
83337         * MODULES.html.sh (func_all_modules): Remove gnu-source.
83338
83339 2003-08-11  Bruno Haible  <bruno@clisp.org>
83340
83341         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
83342
83343 2003-08-11  Bruno Haible  <bruno@clisp.org>
83344
83345         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
83346         (vasnprintf): Use it instead of wcslen.
83347
83348 2003-08-11  Bruno Haible  <bruno@clisp.org>
83349
83350         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
83351         value to ensure that _Bool promotes to int. Use #define for _Bool when
83352         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
83353
83354 2003-08-10  Karl Berry  <karl@gnu.org>
83355
83356         * lib/regex.h: update from libc (whitespace fix).
83357
83358 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83359
83360         Merge some files from coreutils.  These changes were
83361         originally made by Jim Meyering.
83362         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
83363         many older Unixes require this.
83364         * lib/alloca.c (alloca): Remove cast to argument of free;
83365         no longer needed in C89.
83366         * lib/alloca_.h, regex.h: Fix white space to match
83367         what GNU indent does.
83368
83369 2003-08-09  Paul Eggert  <eggert@twinsun.com>
83370
83371         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
83372         apparently Emacs's Unicode mode got confused before my 2003-08-05
83373         checkin.
83374
83375 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83376
83377         * m4/extensions.m4: New file.
83378         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
83379         Require gl_USE_SYSTEM_EXTENSIONS.
83380         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
83381         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
83382
83383 2003-08-08  Paul Eggert  <eggert@twinsun.com>
83384
83385         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
83386         * modules/extensions, modules/gnu-source: New files.
83387         * modules/timespec, modules/unlocked-io: Depend on extensions.
83388
83389 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83390
83391         * modules/restrict: New file.
83392         * MODULES.html.sh (func_all_modules): Add restrict.
83393         * modules/regex: Depend on restrict.
83394
83395 2003-08-07  Paul Eggert  <eggert@twinsun.com>
83396
83397         * m4/restrict.m4: New file.
83398         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
83399
83400 2003-08-07  Bruno Haible  <bruno@clisp.org>
83401
83402         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
83403         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
83404
83405 2003-08-07  Bruno Haible  <bruno@clisp.org>
83406
83407         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
83408         makes the module 'getndelim2' compatible with the module 'getline'.
83409
83410 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83411
83412         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
83413         byte with "\201" to avoid glitches when editing that source file
83414         with multi-gnome-terminal.
83415
83416 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83417
83418         * lib/bumpalloc.h: Remove.
83419
83420 2003-08-05  Paul Eggert  <eggert@twinsun.com>
83421
83422         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
83423         * modules/bumpalloc: Remove.
83424
83425 2003-08-04  Paul Eggert  <eggert@twinsun.com>
83426
83427         * lib/getloadavg.c: Change copyright notice and spacing to conform to
83428         GNU coding style.
83429
83430         Merge from coreutils.
83431         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
83432         1. From glibc.
83433         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
83434         from Karl Berry, implemented by Jim Meyering.
83435         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
83436         from Dmitry V. Levin.
83437         Remove anachronistic cast of xrealloc.
83438         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
83439         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
83440         type. Otherwise, it wouldn't compile with at least /bin/cc on
83441         ymp-cray-unicos9.0.2.X.
83442         Combine two mostly-identical uses of alloca into one.
83443         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
83444
83445 2003-08-04  Dave Love  <d.love@dl.ac.uk>
83446
83447         [From Emacs.]
83448
83449         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
83450         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
83451         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
83452         obsolete NLIST_NAME_UNION.
83453         [__GNU__]: Undef BSD and FSCALE.
83454         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
83455
83456 2003-08-03  Paul Eggert  <eggert@twinsun.com>
83457
83458         * lib/stdbool_.h (_Bool): Make it signed char, instead of
83459         an enum type, so that it's guaranteed to promote to int.  See:
83460         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
83461
83462 2003-08-03  Karl Berry  <karl@gnu.org>
83463
83464         * config/depcomp: update from automake.
83465
83466 2003-07-31  Paul Eggert  <eggert@twinsun.com>
83467
83468         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
83469         (strerror): Don't assume that a printable int fits in 14 bytes.
83470
83471 2003-07-31  Bruno Haible  <bruno@clisp.org>
83472
83473         * modules/getpass-gnu: New file.
83474         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
83475
83476 2003-07-31  Bruno Haible  <bruno@clisp.org>
83477
83478         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
83479
83480 2003-07-24  Karl Berry  <karl@gnu.org>
83481
83482         * config/missing: update from automake.
83483
83484 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
83485             Bruno Haible  <bruno@clisp.org>
83486
83487         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
83488         * lib/getline.c (getline, getdelim): Likewise.
83489         Remove _GNU_SOURCE define; now it's defined in config.h through
83490         m4/getline.m4.
83491
83492 2003-07-23  Karl Berry  <karl@gnu.org>
83493
83494         * config/config.sub: update from prep.
83495
83496 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83497
83498         * modules/xalloc (Depends-on): Add exitfail.
83499         * modules/xmemcoll: Likewise.
83500
83501 2003-07-22  Paul Eggert  <eggert@twinsun.com>
83502
83503         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
83504         over-parenthesization in macros.
83505
83506         Sync with coreutils.
83507
83508         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
83509         required by C99.
83510
83511         Use `exit_failure' for xalloc and xmemcoll instead of their own
83512         private exit-failure variables.
83513         * lib/xalloc.h (xalloc_exit_failure): Remove.
83514         * lib/xmalloc.c: Likewise.  Include exitfail.h.
83515         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
83516         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
83517         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
83518         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
83519
83520 2003-07-20  Jim Meyering  <jim@meyering.net>
83521
83522         * modules/closeout (Depends-on): Add exitfail.
83523         Suggestion from Bruno Haible.
83524
83525 2003-07-19  Karl Berry  <karl@gnu.org>
83526
83527         * config/config.sub: update from prep.
83528
83529 2003-07-18  Paul Eggert  <eggert@twinsun.com>
83530
83531         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
83532         Remove.
83533         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
83534         to test that it can stand by itself.  Include "exitfail.h".
83535         Clients should set exit_failure instead.
83536         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
83537
83538 2003-07-18  Bruno Haible  <bruno@clisp.org>
83539
83540         * modules/getndelim2: New file.
83541         * modules/getline: Share files with module getndelim2.
83542         * modules/getnline: Depend on getndelim2 instead of sharing files with
83543         it. Add getnline.c to lib_SOURCES.
83544         * MODULES.html.sh (func_all_modules): Add getndelim2.
83545
83546 2003-07-18  Bruno Haible  <bruno@clisp.org>
83547
83548         * m4/getndelim2.m4: New file.
83549         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
83550         invoke gl_PREREQ_GETNDELIM2.
83551         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
83552         gl_PREREQ_GETNDELIM2.
83553         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
83554         gl_GETNDELIM2.
83555
83556 2003-07-18  Bruno Haible  <bruno@clisp.org>
83557
83558         * lib/getndelim2.h: New file.
83559         * lib/getndelim2.c: Make into a module of its own. Include config.h,
83560         getndelim2.h.
83561         (getndelim2): Make non-static. Change return type to ssize_t.
83562         * lib/getline.h: Change argument names.
83563         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
83564         * lib/getnline.c: Include getndelim2.h.
83565
83566 2003-07-18  Andreas Schwab  <schwab@suse.de>
83567
83568         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
83569
83570 2003-07-17  Karl Berry  <karl@gnu.org>
83571
83572         * config/config.sub: update from prep.
83573
83574 2003-07-17  Bruno Haible  <bruno@clisp.org>
83575
83576         * modules/getnline: New file.
83577         * modules/getline: Add lib/getndelim2.c to source file list.
83578         * MODULES.html.sh (func_all_modules): Add getnline.
83579
83580 2003-07-17  Bruno Haible  <bruno@clisp.org>
83581
83582         * m4/getnline.m4: New file.
83583
83584 2003-07-17  Bruno Haible  <bruno@clisp.org>
83585
83586         * m4/Makefile.am.in: Remove file.
83587         * m4/Makefile.am: Remove file.
83588         * m4/Makefile.in: Remove file.
83589
83590 2003-07-17  Bruno Haible  <bruno@clisp.org>
83591
83592         * lib/getnline.h: New file.
83593         * lib/getnline.c: New file.
83594         * lib/getndelim2.c: New file, extracted from getline.c.
83595         (getndelim2): Renamed from getdelim2, with added nmax argument.
83596         * lib/getline.c: Include getndelim2.c.
83597         (getdelim2): Moved out to getndelim2.c.
83598         (getline, getdelim): Update.
83599
83600 2003-07-17  Bruno Haible  <bruno@clisp.org>
83601
83602         * lib/Makefile.am: Remove file.
83603         * lib/Makefile.in: Remove file.
83604
83605 2003-07-17  Bruno Haible  <bruno@clisp.org>
83606
83607         * configure.in: Remove file.
83608         * Makefile.in: Remove file.
83609
83610 2003-07-17  Bruno Haible  <bruno@clisp.org>
83611
83612         * MODULES.html.sh: Put the </BODY> right before </HTML>.
83613
83614 2003-07-16  Karl Berry  <karl@gnu.org>
83615
83616         * config/srclist-update: was running fixlicense twice, which caused
83617                 texinfo.tex to be nullified for some reason.  Simplify,
83618                 $gplsrc is no longer needed as far as I can see?
83619
83620 2003-07-16  Jim Meyering  <jim@meyering.net>
83621
83622         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
83623
83624 2003-07-15  Paul Eggert  <eggert@twinsun.com>
83625
83626         * config/srclist.txt: Get the following files from gettext-runtime/intl
83627         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
83628         ref-del.sin.  From Bruno Haible.
83629         * config/srclist-update (fixfile): Change grep pattern again, since the
83630         previous fix didn't work (there was another trailing $).  Use
83631         '[$]' to escape the $s.
83632
83633 2003-07-15  Karl Berry  <karl@gnu.org>
83634
83635         * lib/vasnprintf.c: update from gettext.
83636
83637 2003-07-15  Karl Berry  <karl@gnu.org>
83638
83639         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
83640         gets expanded when surrounded by '$'.
83641
83642 2003-07-15  Jim Meyering  <jim@meyering.net>
83643
83644         * modules/save-cwd: Don't depend on error.  From Derek Price.
83645
83646 2003-07-15  Jim Meyering  <jim@meyering.net>
83647
83648         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
83649
83650 2003-07-14  Simon Josefsson  <jas@extundo.com>
83651
83652         * modules/mempcpy: New file.
83653         * MODULES.html.sh (func_all_modules): Add mempcpy.
83654
83655 2003-07-14  Simon Josefsson  <jas@extundo.com>
83656
83657         * m4/mempcpy.m4: New file.
83658
83659 2003-07-14  Simon Josefsson  <jas@extundo.com>
83660
83661         * lib/mempcpy.h: New file.
83662         * lib/mempcpy.c: New file.
83663
83664 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83665
83666         * modules/getdate, modules/posixtm: Depend on mktime.
83667
83668 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83669
83670         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
83671         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
83672         unicodeio.c, unicodeio.h, unlocked-io.h:
83673         Switch from LGPL to GPL.
83674
83675 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83676
83677         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
83678         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
83679         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
83680         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
83681         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
83682         updated automatically by ../config/srclist-update.  This changes
83683         their license from LPGL to GPL.
83684
83685 2003-07-14  Paul Eggert  <eggert@twinsun.com>
83686
83687         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
83688         assumed to refer to the root of the most recent stable gettext version.
83689         * config/srclistvars.sh: Add defaults for eggert.
83690         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
83691         Match "This program" as well as "The program".  This is needed
83692         for gettext.
83693
83694 2003-07-14  Jim Meyering  <jim@meyering.net>
83695
83696         Don't emit diagnostics.  Let callers do that.
83697         * lib/save-cwd.c: Don't include "error.h".
83698         (save_cwd): Don't call error.  Ensure that errno is valid
83699         when returning nonzero.
83700
83701         * lib/save-cwd.h (restore_cwd): Update prototype.
83702         * lib/save-cwd.c (restore_cwd): Remove two parameters.
83703         Simplify.  Don't call error upon failure.  Let callers do that.
83704         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
83705         when auditing is enabled.  But don't bother updating the #if.
83706
83707 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
83708
83709         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
83710         it breaks C++ compilation.
83711         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
83712
83713 2003-07-10  Simon Josefsson  <jas@extundo.com>
83714
83715         * modules/strchrnul (Makefile.am): Add strchrnul.h.
83716
83717 2003-07-10  Jim Meyering  <jim@meyering.net>
83718
83719         * m4/clock_time.m4: Remove trailing blank.
83720         * m4/intmax_t.m4: Likewise.
83721
83722 2003-07-10  Jim Meyering  <jim@meyering.net>
83723
83724         * lib/vasnprintf.c: Remove trailing blanks.
83725         Make cpp indentation consistent.
83726
83727 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83728
83729         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
83730         posixver.c, strftime.c, strnlen.c, strverscmp.c:
83731         Switch from LGPL to GPL.
83732
83733 2003-07-09  Paul Eggert  <eggert@twinsun.com>
83734
83735         * config/srclist.txt: Sort sublists.  Add
83736         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
83737         that differ from gnulib for one reason or another; we'd like this list
83738         to be smaller but for now let's document what we have.
83739
83740 2003-07-08  Paul Eggert  <eggert@twinsun.com>
83741
83742         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
83743         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
83744         and sweeter "eval x=$x".
83745         * config/srclist.txt: Get lib/argp* from glibc.
83746
83747 2003-07-07  Paul Eggert  <eggert@twinsun.com>
83748
83749         * lib/mktime.c: Fix some boundary cases and remove need for floating
83750         point.
83751
83752         Issue a compile-time diagnostic if time_t is floating point, or if
83753         two's complement arithmetic is not in effect, or if arithmetic
83754         right shift does not propagate the sign.  These assumptions were
83755         all in the original code but they weren't checked.
83756
83757         (TIME_T_MIDPOINT, verify): New macros.
83758         (__isleap): Remove; it has integer overflow problems.
83759         (leapyear): New function, without those problems.
83760         (ydhms_tm_diff): Remove; splitting into two parts.
83761         (ydhms_diff): New function, containing the arithmetic part of
83762         the old ydhms_tm_diff function.  Issue a compile-time
83763         diagnostic if we are not using C99 integer division.
83764         Avoid casts when possible.
83765         (guess_time_tm): New function, containing the checking part of
83766         the old ydhms_tm_diff function.  Return the new value, rather than
83767         the difference between it and the old.  Accept a new argument T
83768         so that *T specifies the old value.  Check for overflow in the result.
83769
83770         (__mktime_internal): Use a time_t offset, not a long int offset.
83771         This undoes the 2003-06-04 change, which is no longer needed now
83772         that we have better overflow checking.
83773         (localtime_offset): Likewise.
83774
83775         (__mktime_internal): Avoid harmful overflow on hosts where time_t
83776         and long are 64-bit but int is only 32-bit.
83777         (ydhms_diff): Use long int to store year1 and yday1.
83778         Issue a compile-time diagnostic if long int is not wide enough.
83779
83780         (__mktime_internal): Use long int to store adjusted year and yday.
83781         Use plain C rather than preprocessor commands, if that doesn't
83782         affect efficiency.
83783         Check for overflow (and try to repair) after each probe
83784         rather than checking only at the very end.  This avoids some bugs
83785         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
83786         does not equal GMT offset at maximum time).
83787         Use integer to check for overflow rather than floating point; this
83788         is more portable to non-IEEE hosts, and is a tad faster.
83789         When we detect that we are oscillating between two values,
83790         don't check whether tm_isdst has the requested value, since
83791         we already know the answer.  When tm_isdst has the wrong value,
83792         use a different heuristic to find the right one, based on the
83793         extreme values actually observed in practice in tz2003a,
83794         rather than the (overly optimistic) "previous 3 calendar quarters".
83795
83796         (not_equal_tm, print_tm, check_result): Use "const T" rather than
83797         "T const" to accommodate glibc style.
83798         (check_result): Use less-confusing report format.  "long" -> "long int.
83799         (main): Likewise.
83800         Don't loop if the iteration overflows time_t.
83801         Allow a negative step in the iteration.
83802
83803 2003-07-06  Karl Berry  <karl@gnu.org>
83804
83805         * config/depcomp: update from automake.
83806         * config/config.sub: update from prep.
83807
83808 2003-07-03  Karl Berry  <karl@gnu.org>
83809
83810         * config/config.guess: update from prep.
83811
83812 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83813
83814         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
83815         xreadlink.c now includes it unconditionally.
83816
83817 2003-07-01  Paul Eggert  <eggert@twinsun.com>
83818
83819         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
83820         having it depend on HAVE_SYS_TYPES_H.
83821
83822 2003-07-01  Bruno Haible  <bruno@clisp.org>
83823
83824         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
83825         <sys/types.h> should be sufficient.
83826         Reported by Paul Eggert.
83827
83828 2003-06-26  Karl Berry  <karl@gnu.org>
83829
83830         * config/depcomp: update from automake.
83831
83832 2003-06-26  Bruno Haible  <bruno@clisp.org>
83833
83834         * modules/human: Depend on module stdbool.
83835
83836 2003-06-25  Bruno Haible  <bruno@clisp.org>
83837
83838         * modules/readlink: New file.
83839         * modules/xreadlink: Depend on it.
83840         * MODULES.html.sh (func_all_modules): Add readlink.
83841
83842 2003-06-25  Bruno Haible  <bruno@clisp.org>
83843
83844         * m4/readlink.m4: New file.
83845
83846 2003-06-25  Bruno Haible  <bruno@clisp.org>
83847
83848         * lib/readlink.c: New file.
83849
83850 2003-06-22  Karl Berry  <karl@gnu.org>
83851
83852         * config/srclist.txt: update mkinstalldirs from automake.
83853         * config/mkinstalldirs: update.
83854
83855 2003-06-22  Bruno Haible  <bruno@clisp.org>
83856
83857         Portability to mingw32.
83858         * m4/ssize_t.m4: New file, from GNU gettext.
83859         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
83860         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
83861
83862 2003-06-22  Bruno Haible  <bruno@clisp.org>
83863
83864         * modules/safe-read: Add m4/ssize_t.m4.
83865         * modules/xreadlink: Add m4/ssize_t.m4.
83866
83867 2003-06-20  Bruno Haible  <bruno@clisp.org>
83868
83869         Assume C89, so PARAMS isn't needed.
83870         * lib/unicodeio.h (PARAMS): Remove.
83871         * lib/unicodeio.c: Don't use PARAMS.
83872
83873 2003-06-18  Karl Berry  <karl@gnu.org>
83874
83875         * config/config.{guess,sub}: update from prep.
83876
83877 2003-06-18  Jim Meyering  <jim@meyering.net>
83878
83879         Merge changes from coreutils.
83880         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
83881         Remove explicit declarations of xmalloc and realloc.
83882         Include xalloc.h.
83883         (read_utmp): Remove anachronistic cast of xmalloc.
83884
83885 2003-06-17  Paul Eggert  <eggert@twinsun.com>
83886
83887         Assume C89, so PARAMS isn't needed.
83888         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
83889         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
83890         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
83891         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
83892         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
83893         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
83894         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
83895         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
83896         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
83897         lib/xstrtod.h, lib/xstrtol.h: Likewise.
83898         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
83899         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
83900         no longer needed. Anyway, config.h should always be included before any
83901         other file.
83902
83903 2003-06-11  Simon Josefsson  <jas@extundo.com>
83904
83905         * modules/sysexits: New file.
83906         * MODULES.html.sh (func_all_modules): Add sysexits.
83907
83908 2003-06-11  Simon Josefsson  <jas@extundo.com>
83909
83910         * lib/sysexit_.h: New file.
83911
83912 2003-06-11  Derek Price  <derek@ximbiot.com>
83913
83914         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
83915         necessary.
83916
83917 2003-06-11  Bruno Haible  <bruno@clisp.org>
83918
83919         * m4/sysexits.m4: New file.
83920
83921 2003-06-10  Simon Josefsson  <jas@extundo.com>
83922
83923         * lib/argp.h: New file, from glibc.
83924         * lib/argp-ba.c: New file, from glibc.
83925         * lib/argp-eexst.c: New file, from glibc.
83926         * lib/argp-fmtstream.c: New file, from glibc.
83927         * lib/argp-fmtstream.h: New file, from glibc.
83928         * lib/argp-fs-xinl.c: New file, from glibc.
83929         * lib/argp-help.c: New file, from glibc.
83930         * lib/argp-namefrob.h: New file, from glibc.
83931         * lib/argp-parse.c: New file, from glibc.
83932         * lib/argp-pv.c: New file, from glibc.
83933         * lib/argp-pvh.c: New file, from glibc.
83934         * lib/argp-xinl.c: New file, from glibc.
83935
83936 2003-06-10  Simon Josefsson  <jas@extundo.com>
83937
83938         * modules/strchrnul: New file.
83939
83940 2003-06-10  Simon Josefsson  <jas@extundo.com>
83941
83942         * modules/argp: New file.
83943
83944 2003-06-10  Simon Josefsson  <jas@extundo.com>
83945
83946         * m4/strchrnul.m4: New file.
83947
83948 2003-06-10  Simon Josefsson  <jas@extundo.com>
83949
83950         * lib/strchrnul.h: New file.
83951         * lib/strchrnul.c: New file.
83952
83953 2003-06-10  Bruno Haible  <bruno@clisp.org>
83954
83955         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
83956
83957 2003-06-07  Karl Berry  <karl@gnu.org>
83958
83959         * config/config.{guess,sub}: update from prep.
83960
83961 2003-06-07  Jim Meyering  <jim@meyering.net>
83962
83963         * modules/strtod: Use $(...) notation, not @...@ for
83964         AC_REPLACE'd variables.
83965         * modules/localcharset: Likewise.
83966
83967 2003-06-07  Jim Meyering  <jim@meyering.net>
83968
83969         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
83970         in place of my name in the copyright comment.
83971         Remove definition and uses of __P.
83972
83973         From coreutils.
83974         * lib/stat.c: Don't declare xmalloc explicitly.
83975         Instead, include "xalloc.h".
83976         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
83977         xrealloc, and xcalloc return values.
83978         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
83979         Improve comment.
83980         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
83981
83982 2003-06-07  Bruno Haible  <bruno@clisp.org>
83983
83984         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
83985         avoid AC_CONFIG_LINKS.
83986         * modules/fnmatch (Makefile.am): Use explicit creation rule for
83987         fnmatch.h, to avoid AC_CONFIG_LINKS.
83988         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
83989
83990 2003-06-07  Bruno Haible  <bruno@clisp.org>
83991
83992         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
83993         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
83994         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83995         directory.
83996         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
83997         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
83998         directory.
83999
84000 2003-06-06  Jim Meyering  <jim@meyering.net>
84001
84002         Merge from coreutils.
84003         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
84004         Consolidate declarations and initializations of *_base* locals.
84005
84006         Merge from coreutils.
84007         This avoids a core dump on systems without GNU putenv,
84008         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
84009         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
84010         (unsetenv): New static function, from GNU libc.
84011         (rpl_putenv): Use it.
84012
84013         * lib/modechange.c: Remove trailing blanks.
84014
84015         Merge from coreutils.
84016         * lib/fsusage.c: Remove declaration of statfs.
84017         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
84018
84019         * lib/posixtm.c: Include <stdbool.h> unconditionally.
84020
84021 2003-06-06  Jim Meyering  <jim@meyering.net>
84022
84023         * lib/stdbool_.h: Renamed from stdbool.h.in.
84024
84025 2003-06-06  Jim Meyering  <jim@meyering.net>
84026             Bruno Haible  <bruno@clisp.org>
84027
84028         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
84029         Adjust Makefile.am snippet not to redirect directly to target.
84030         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
84031
84032 2003-06-05  Paul Eggert  <eggert@twinsun.com>
84033
84034         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
84035         mismatch, look in future quarters as well as past.  This fixes a
84036         bug when processing fall-backwards gaps immediately after a long
84037         period of daylight-saving time.
84038
84039         * lib/mktime.c: Assume freestanding C89 or better.
84040         (HAVE_LIMITS_H): Remove.  Assume it's 1.
84041         (__P): Remove; not used.
84042         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
84043         (mktime, not_equal_tm, print_tm, check_result,
84044         main): Use prototypes.  Use const * where appropriate.
84045         (main): Fix typo in testing code that uncovered by above changes.
84046         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
84047
84048 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84049
84050         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
84051         locale.h, localeconv.  This merges changes from coreutils.
84052
84053         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
84054         It can be removed after the next Autoconf is released.
84055         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
84056         needed.
84057
84058 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84059
84060         * lib/mktime.c: Fix Debian bug 177940
84061         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
84062         (localtime_offset): Now long int, not time_t, because we want it
84063         to be guaranteed to be signed.  All uses changed.
84064         (__mktime_internal): If overflow would occur when adding offset,
84065         don't add it.
84066
84067         Merge 'human' changes from coreutils.  Rewrite to support
84068         locale-specific notations like thousands separators.
84069         * lib/human.c: Simplify authorship notice.
84070         Include human.h immediately after config.h.
84071         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
84072         <limits.h>: Do not include, since human.h does.
84073         (SIZE_MAX, UINTMAX_MAX): New macros.
84074         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
84075         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
84076         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
84077         (power_letter): Renamed from suffixes.
84078         (generate_suffix_backwards): Remove.
84079         (adjust_value): Now takes int style (because of human.h changes)
84080         and long double value (for greater precision on some platforms).
84081         (group_number): New function.
84082         (human_readable): Use it.  Use integer options, not enum.
84083         Put the options before the sizes in the arg list.
84084         Support all the new options.
84085         The old human_readable function has been removed;
84086         use inttostr.h instead.
84087         (human_readable, default_block_size, humblock):
84088         Use uintmax_t, not int, for block sizes.
84089         (human_readable_inexact, block_size_types): Remove.
84090         (block_size_opts): New constant.
84091         (human_options): Renamed from human_block_size, with new signature
84092         that allows block sizes up to UINTMAX_MAX.  All callers changed.
84093         * lib/human.h: Add copyright and authorship notice.
84094         Include <limits.h> and <stdbool.h> unconditionally.
84095         (PARAMS): Remove.  All uses removed.
84096         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
84097         (enum human_inexact_style): Remove tag; now a nameless enum.
84098         (human_floor, human_ceiling, human_round_to_even): Now have
84099         values 2, 0, 1 rather than -1, 1, 0.
84100         (human_group_digits, human_suppress_point_zero, human_autoscale,
84101         human_base_1024, human_SI, human_B): New constants.
84102         (human_readable_inexact, human_block_size): Remove.
84103         (human_readable): Size args are now uintmax_t, not int.
84104         (human_options): New decl.
84105
84106         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
84107         unnecessary now that we assume C89 or better.  This change
84108         imported from coreutils.
84109
84110         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
84111         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
84112         in the 2003-05-30 sync from glibc.
84113
84114         .h files should stand alone, but we shouldn't include <sys/types.h>
84115         if we can get away with just <stddef.h>.
84116
84117         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
84118         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
84119         rather than <sys/types.h>, as we merely need size_t.
84120         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
84121         to get size_t.
84122         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
84123         Include <stdio.h>, to get FILE.
84124         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
84125         memcasecmp.h has included <stddef.h> and all we need is size_t.
84126         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
84127         our interface, instead of including <sys/types.h>
84128
84129 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84130
84131         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
84132         now, as glibc mktime is buggy on non-glibc systems.
84133
84134 2003-06-03  Karl Berry  <karl@gnu.org>
84135
84136         * config/config.sub: update from prep.
84137
84138 2003-06-02  Paul Eggert  <eggert@twinsun.com>
84139
84140         [from coreutils]
84141         Fix some minor time-related bugs with POSIX time arguments.
84142         Some valid time stamps were being rejected (notably -1, and
84143         time stamps before 1900 on 64-bit hosts).  And some invalid
84144         time stamps were being accepted, e.g. September 31.
84145
84146         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
84147         that we can return (time_t) -1 successfully.
84148         * lib/posixtm.c: Likewise.
84149         [HAVE_STDBOOL_H]: Include <stdbool.h>.
84150         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
84151         (t): Remove static var.
84152         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
84153         of static var.  All uses changed.
84154         (year): Do not reject years before 1900; they can occur with
84155         64-bit time_t.
84156         (posix_time_parse): Do not check for out-of-range components;
84157         that is now the caller's responsibility, since our checks were
84158         only approximations.
84159         (posixtime): Use mktime to check for out-of-range components,
84160         since it knows them exactly.
84161         If mktime returns (time_t) -1, check whether an error actually occurred
84162         by invoking localtime on -1.
84163         (main) [TEST_POSIXTIME]: Check for input data errors, and report
84164         posixtime failures better.
84165         Improve the test data (in comments only).
84166
84167 2003-06-02  Karl Berry  <karl@gnu.org>
84168
84169         * config/mkinstalldirs (version): new variable.
84170         (--version): new option.
84171         (usage): improve message.
84172
84173 2003-05-30  Karl Berry  <karl@gnu.org>
84174
84175         * lib/mktime.c: update from libc.
84176
84177 2003-05-30  Bruno Haible  <bruno@clisp.org>
84178
84179         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
84180         * config/config.rpath: Upgrade to gettext-0.12.1.
84181
84182 2003-05-30  Bruno Haible  <bruno@clisp.org>
84183
84184         * m4/gettext.m4: Upgrade to gettext-0.12.1.
84185         * m4/nls.m4: New file, from gettext-0.12.1.
84186         * m4/po.m4: New file, from gettext-0.12.1.
84187         * m4/progtest.m4: Upgrade to gettext-0.12.1.
84188
84189 2003-05-30  Bruno Haible  <bruno@clisp.org>
84190
84191         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
84192         * lib/localcharset.h: Likewise.
84193         * lib/localcharset.c: Likewise.
84194
84195 2003-05-29  Karl Berry  <karl@gnu.org>
84196
84197         * config/config.rpath: update from gettext.
84198
84199 2003-05-28  Paul Eggert  <eggert@twinsun.com>
84200
84201         Assume the headers required for C89 freestanding compilers.
84202         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
84203         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
84204         * m4/human.m4 (gl_HUMAN): Likewise.
84205         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
84206         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
84207         * m4/userspec.m4 (gl_USERSPEC): Likewise.
84208         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
84209         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
84210         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
84211
84212 2003-05-28  Paul Eggert  <eggert@twinsun.com>
84213
84214         Assume the headers required for C89 freestanding compilers.
84215         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
84216         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
84217         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
84218         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
84219         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
84220         define, since <limits.h> is guaranteed to do that.
84221         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
84222         * lib/exclude.c: Include <stdbool.h> unconditionally.
84223         * lib/tempname.c: Include <stddef.h> unconditionally.
84224         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
84225         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
84226         <stddef.h> does that.
84227         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
84228         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
84229         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
84230         needed.
84231         * lib/xstrtol.c: Likewise.
84232         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
84233         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
84234
84235         * lib/addext.c (addext): Use assignment rather than cast, to avoid
84236         warnings on some platforms.
84237
84238         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
84239         arbitrarily.
84240
84241 2003-05-26  Jim Meyering  <jim@meyering.net>
84242
84243         Merge in a change from coreutils:
84244         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
84245         that is guaranteed to be `no'.  Use `no_such_member' to indicate
84246         that condition, rather than `-1' which is slightly misleading.
84247         Change the name of the cache variable to have the gl_ prefix.
84248         Prompted by a patch from Richard Dawe for DJGPP.
84249
84250 2003-05-24  Karl Berry  <karl@gnu.org>
84251
84252         * config/config.guess: update from prep.
84253
84254 2003-05-22  Karl Berry  <karl@gnu.org>
84255
84256         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
84257
84258 2003-05-20  Karl Berry  <karl@gnu.org>
84259
84260         * config/config.guess: update from prep.
84261
84262 2003-05-18  Karl Berry  <karl@gnu.org>
84263
84264         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
84265         might actually be set by the user.
84266
84267         * config/depcomp, install-sh, mdate-sh: update from automake.
84268
84269 2003-05-17  Bruno Haible  <bruno@clisp.org>
84270
84271         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
84272         invalid expansion for AC_EGREP_CPP.
84273         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
84274         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
84275         Suggested by Akim Demaille <akim@epita.fr> in
84276         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
84277
84278 2003-05-12  Jim Meyering  <jim@meyering.net>
84279
84280         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
84281         the space-padded-by-default conversion specifiers, %e, %k, %l.
84282
84283 2003-05-12  Bruno Haible  <bruno@clisp.org>
84284
84285         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
84286         the string is longer than 4 KB.
84287
84288 2003-05-11  Karl Berry  <karl@gnu.org>
84289
84290         * config/config.{guess,sub}: update from prep.
84291
84292 2003-05-09  Bruno Haible  <bruno@clisp.org>
84293
84294         * modules/error: Add m4/strerror_r.m4 to file list.
84295
84296 2003-05-03  Bruno Haible  <bruno@clisp.org>
84297
84298         Upgrade to Unicode-4.0.
84299         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
84300         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
84301         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
84302         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
84303         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
84304         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
84305         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
84306         Change width of U+E0100..U+E01EF from 1 to 0.
84307
84308 2003-04-25  Jim Meyering  <jim@meyering.net>
84309
84310         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
84311         of type size_t, not int.
84312
84313 2003-04-25  Bruno Haible  <bruno@clisp.org>
84314
84315         * lib/copy-file.c: Include <stddef.h>, for size_t.
84316
84317 2003-04-21  Paul Eggert  <eggert@twinsun.com>
84318
84319         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
84320         code which expansion is under static control.  Patch imported from
84321         Akim Demaille's patch to Bison; see
84322         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
84323
84324 2003-04-14  Bruno Haible  <bruno@clisp.org>
84325
84326         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
84327
84328 2003-04-11  Jim Meyering  <jim@meyering.net>
84329
84330         Merge changes from Coreutils.
84331
84332         2003-03-22  Jim Meyering  <jim@meyering.net>
84333
84334         * lib/strftime.c (widen): Cast alloca return value to proper type.
84335
84336         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
84337
84338         From GNU libc.
84339         * lib/strftime.c (my_strftime): Handle very large width
84340         specifications for numeric values correctly.  Improve checks for
84341         overflow.
84342
84343         2003-01-19  Jim Meyering  <jim@meyering.net>
84344
84345         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
84346         definitions.
84347         (nl_get_alt_digit) [! defined my_strftime]: Define.
84348         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
84349         _nl_get_alt_digit and _nl_get_walt_digit.
84350
84351         * lib/strftime.c (my_strftime): Merge in locale-related changes from
84352         libc. These changes have no effect outside of _LIBC.
84353
84354 2003-04-10  Bruno Haible  <bruno@clisp.org>
84355
84356         * modules/findprog: New file.
84357         * MODULES.html.sh (func_all_modules): Add it.
84358
84359 2003-04-10  Bruno Haible  <bruno@clisp.org>
84360
84361         * m4/findprog.m4: New file.
84362         * m4/eaccess.m4: New file.
84363
84364 2003-04-10  Bruno Haible  <bruno@clisp.org>
84365
84366         * lib/findprog.h: New file, from GNU gettext.
84367         * lib/findprog.c: New file, from GNU gettext.
84368
84369 2003-04-05  Jim Meyering  <jim@meyering.net>
84370
84371         Merge changes from Coreutils.
84372
84373         * lib/exclude.h (PARAMS): Remove definition and uses.
84374         * lib/exclude.c: Remove uses of `PARAMS'.
84375
84376         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
84377         Add test-cases for DOS filenames. Declare program_name.
84378         (main): Set up program_name.  Patch by Rich Dawe.
84379
84380         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
84381         error from mntctl.
84382         Use mntctl's return value to drive the entry-processing loop, since
84383         we can't rely on the value of the vmt_length member in the last
84384         entry.  On some systems doing so could result in exhausting
84385         virtual memory.  Based in part on a patch from Mike Jetzer.
84386
84387 2003-04-04  Bruno Haible  <bruno@clisp.org>
84388
84389         * modules/linebreak: New file.
84390         * MODULES.html.sh (func_all_modules): Add it.
84391
84392 2003-04-04  Bruno Haible  <bruno@clisp.org>
84393
84394         * m4/linebreak.m4: New file.
84395
84396 2003-04-04  Bruno Haible  <bruno@clisp.org>
84397
84398         * lib/linebreak.h: New file, from GNU gettext.
84399         * lib/linebreak.c: New file, from GNU gettext with slight
84400         modifications.
84401         * lib/lbrkprop.h: New file, from GNU gettext.
84402
84403 2003-04-03  Bruno Haible  <bruno@clisp.org>
84404
84405         * modules/utf8-ucs4: New file.
84406         * modules/utf16-ucs4: New file.
84407         * modules/ucs4-utf8: New file.
84408         * modules/ucs4-utf16: New file.
84409         * MODULES.html.sh (func_all_modules): Add them.
84410
84411 2003-04-03  Bruno Haible  <bruno@clisp.org>
84412
84413         * m4/utf-ucs4.m4: New file.
84414         * m4/ucs4-utf.m4: New file.
84415
84416 2003-04-03  Bruno Haible  <bruno@clisp.org>
84417
84418         * lib/utf8-ucs4.h: New file, from GNU gettext.
84419         * lib/utf16-ucs4.h: New file, from GNU gettext.
84420         * lib/ucs4-utf8.h: New file, from GNU gettext.
84421         * lib/ucs4-utf16.h: New file, from GNU gettext.
84422
84423 2003-04-02  Bruno Haible  <bruno@clisp.org>
84424
84425         * modules/binary-io: New file.
84426         * MODULES.html.sh (func_all_modules): Add it.
84427
84428 2003-04-02  Bruno Haible  <bruno@clisp.org>
84429
84430         * lib/binary-io.h: New file, from GNU gettext.
84431
84432 2003-04-01  Bruno Haible  <bruno@clisp.org>
84433
84434         * modules/pathname: New file.
84435         * MODULES.html.sh (func_all_modules): Add it.
84436
84437 2003-04-01  Bruno Haible  <bruno@clisp.org>
84438
84439         * lib/pathname.h: New file, from GNU gettext.
84440         * lib/concatpath.c: New file, from GNU gettext.
84441
84442 2003-03-30  Bruno Haible  <bruno@clisp.org>
84443
84444         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
84445
84446 2003-03-30  Bruno Haible  <bruno@clisp.org>
84447
84448         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
84449         function chown() doesn't exist.
84450
84451 2003-03-28  Bruno Haible  <bruno@clisp.org>
84452
84453         * modules/copy-file: New file.
84454         * MODULES.html.sh (func_all_modules): Add it.
84455
84456 2003-03-28  Bruno Haible  <bruno@clisp.org>
84457
84458         * m4/copy-file.m4: New file.
84459
84460 2003-03-28  Bruno Haible  <bruno@clisp.org>
84461
84462         * lib/copy-file.h: New file, from GNU gettext.
84463         * lib/copy-file.c: New file, from GNU gettext.
84464
84465 2003-03-18  Jim Meyering  <jim@meyering.net>
84466
84467         * lib/quote.c (quote_n): Fix typo in comment.
84468
84469 2003-03-18  Bruno Haible  <bruno@clisp.org>
84470
84471         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
84472         checking.
84473         * m4/onceonly_2_57.m4: Likewise.
84474
84475 2003-03-17  Bruno Haible  <bruno@clisp.org>
84476
84477         * m4/onceonly.m4: Require autoconf 2.54 or newer.
84478         (m4_quote): Remove macro.
84479         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
84480
84481 2003-03-14  Jim Meyering  <jim@meyering.net>
84482
84483         Merge changes from Coreutils.
84484         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
84485         to be const, in order to avoid warnings.
84486         (obstack_room): Likewise.
84487         (obstack_empty_p): Likewise.
84488
84489 2003-03-14  Bruno Haible  <bruno@clisp.org>
84490
84491         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
84492         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
84493
84494 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84495
84496         Merge changes from Bison.
84497         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
84498         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
84499         when compiling Bison 1.875's `bitset bset = obstack_alloc
84500         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
84501         * lib/hash.c: Include <stdbool.h> unconditionally.
84502
84503 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84504
84505         * m4/onceonly.m4 (m4_quote): New macro.
84506         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
84507         Quote AC_FOREACH variable-expansions properly.
84508
84509 2003-03-13  Paul Eggert  <eggert@twinsun.com>
84510
84511         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
84512
84513 2003-03-09  Paul Eggert  <eggert@twinsun.com>
84514
84515         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
84516         Reported by Bruce Becker; see:
84517         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
84518
84519 2003-03-03  Paul Eggert  <eggert@twinsun.com>
84520             Bruno Haible  <bruno@clisp.org>
84521
84522         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
84523         Reported by John Hughes, see
84524         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
84525
84526 2003-02-20  Bruno Haible  <bruno@clisp.org>
84527
84528         * MODULES.html.sh (func_all_modules): Add poll.
84529
84530 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84531
84532         * modules/poll: New file.
84533
84534 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84535
84536         * lib/poll_.h: New file.
84537         * lib/poll.c: New file.
84538
84539 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
84540
84541         * m4/poll.m4: New file.
84542
84543 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84544
84545         * modules/mathl: New file.
84546
84547 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84548
84549         * lib/mathl.h: New file.
84550         * lib/acosl.c: New file.
84551         * lib/asinl.c: New file.
84552         * lib/atanl.c: New file.
84553         * lib/ceill.c: New file.
84554         * lib/cosl.c: New file.
84555         * lib/expl.c: New file.
84556         * lib/floorl.c: New file.
84557         * lib/frexpl.c: New file.
84558         * lib/ldexpl.c: New file.
84559         * lib/logl.c: New file.
84560         * lib/sincosl.c: New file.
84561         * lib/sinl.c: New file.
84562         * lib/sqrtl.c: New file.
84563         * lib/tanl.c: New file.
84564         * lib/trigl.c: New file.
84565         * lib/trigl.h: New file.
84566
84567 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
84568
84569         * m4/mathl.m4: New file.
84570
84571 2003-02-18  Bruno Haible  <bruno@clisp.org>
84572
84573         * MODULES.html.sh (func_all_modules): Add mathl.
84574
84575 2003-02-17  Bruno Haible  <bruno@clisp.org>
84576
84577         * modules/mkdtemp: New module.
84578         * MODULES.html.sh (func_all_modules): Add it.
84579
84580 2003-02-17  Bruno Haible  <bruno@clisp.org>
84581
84582         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
84583
84584 2003-02-17  Bruno Haible  <bruno@clisp.org>
84585
84586         * lib/mkdtemp.h: New file, from GNU gettext.
84587         * lib/mkdtemp.c: New file, from GNU gettext.
84588
84589 2003-02-02  Jim Meyering  <jim@meyering.net>
84590
84591         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
84592         e.g. glibc-2.2.93.
84593
84594 2003-01-31  Bruno Haible  <bruno@clisp.org>
84595
84596         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
84597         'rpl_rename'.
84598         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
84599         'rpl_strnlen'.
84600         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
84601         'rpl_strtod'.
84602         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
84603         'rpl_utime'.
84604
84605 2003-01-31  Bruno Haible  <bruno@clisp.org>
84606
84607         * lib/rename.c: #undef rename before defining rpl_rename.
84608         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
84609
84610 2003-01-30  Bruno Haible  <bruno@clisp.org>
84611
84612         * modules/vasnprintf, modules/vasprintf: New modules.
84613         * MODULES.html.sh (func_all_modules): Add them.
84614
84615 2003-01-30  Bruno Haible  <bruno@clisp.org>
84616
84617         * m4/signed.m4: New file, from GNU gettext.
84618         * m4/longdouble.m4: New file, from GNU gettext.
84619         * m4/wchar_t.m4: New file, from GNU gettext.
84620         * m4/wint_t.m4: New file, from GNU gettext.
84621         * m4/vasnprintf.m4: New file.
84622         * m4/vasprintf.m4: New file.
84623
84624 2003-01-30  Bruno Haible  <bruno@clisp.org>
84625
84626         * lib/printf-args.h: New file, from GNU gettext.
84627         * lib/printf-args.c: New file, from GNU gettext.
84628         * lib/printf-parse.h: New file, from GNU gettext.
84629         * lib/printf-parse.c: New file, from GNU gettext.
84630         * lib/vasnprintf.h: New file, from GNU gettext.
84631         * lib/vasnprintf.c: New file, from GNU gettext.
84632         * lib/asnprintf.c: New file, from GNU gettext.
84633         * lib/vasprintf.h: New file, from GNU gettext with modifications.
84634         * lib/vasprintf.c: New file, from GNU gettext.
84635         * lib/asprintf.c: New file, from GNU gettext.
84636
84637 2003-01-29  Bruno Haible  <bruno@clisp.org>
84638
84639         * modules/stpncpy: New module.
84640         * MODULES.html.sh (func_all_modules): Add it.
84641
84642 2003-01-29  Bruno Haible  <bruno@clisp.org>
84643
84644         * m4/stpncpy.m4: New file.
84645
84646 2003-01-29  Bruno Haible  <bruno@clisp.org>
84647
84648         * lib/stpncpy.h: New file, from GNU gettext with modifications.
84649         * lib/stpncpy.c: New file, from GNU gettext with modifications.
84650
84651 2003-01-28  Bruno Haible  <bruno@clisp.org>
84652
84653         * modules/c-ctype: New module.
84654         * MODULES.html.sh (func_all_modules): Add it.
84655
84656 2003-01-28  Bruno Haible  <bruno@clisp.org>
84657
84658         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
84659         Paul Eggert.
84660         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
84661         Paul Eggert.
84662
84663 2003-01-27  Bruno Haible  <bruno@clisp.org>
84664
84665         * modules/xsetenv: New module.
84666         * MODULES.html.sh (func_all_modules): Add it.
84667
84668 2003-01-27  Bruno Haible  <bruno@clisp.org>
84669
84670         * lib/xsetenv.h: New file, from GNU gettext.
84671         * lib/xsetenv.c: New file, from GNU gettext.
84672
84673 2003-01-23  Jim Meyering  <jim@meyering.net>
84674
84675         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
84676         from working on systems without dirfd (at least Irix and OSF1/Tru64).
84677
84678 2003-01-23  Bruno Haible  <bruno@clisp.org>
84679
84680         * modules/minmax: New module.
84681         * MODULES.html.sh (func_all_modules): Add it.
84682
84683 2003-01-23  Bruno Haible  <bruno@clisp.org>
84684
84685         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
84686         Eggert.
84687
84688 2003-01-22  Bruno Haible  <bruno@clisp.org>
84689
84690         * modules/exit: New module.
84691         * MODULES.html.sh (func_all_modules): Add it.
84692
84693 2003-01-22  Bruno Haible  <bruno@clisp.org>
84694
84695         * lib/exit.h: New file, from GNU gettext.
84696
84697 2003-01-19  Bruno Haible  <bruno@clisp.org>
84698
84699         * gnulib-tool: Recognize option --extract-maintainer.
84700         (func_get_maintainer): New function.
84701         * modules/*: Add Maintainer entry.
84702
84703 2003-01-16  Jim Meyering  <jim@meyering.net>
84704
84705         * m4/regex.m4: The `regex' struct is both input and output.
84706         Initialize it before each use.  Patch by Tim Waugh.
84707
84708 2003-01-16  Bruno Haible  <bruno@clisp.org>
84709
84710         * MODULES.html.sh: Add a table of contents. Add the module name as
84711         leftmost column. Add hyperlinks.
84712
84713 2003-01-15  Bruno Haible  <bruno@clisp.org>
84714
84715         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
84716
84717 2003-01-15  Bruno Haible  <bruno@clisp.org>
84718
84719         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
84720         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
84721         suffix.
84722
84723 2003-01-15  Bruno Haible  <bruno@clisp.org>
84724
84725         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
84726
84727 2003-01-15  Bruno Haible  <bruno@clisp.org>
84728
84729         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
84730         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
84731
84732 2003-01-14  Jim Meyering  <jim@meyering.net>
84733
84734         * lib/same.c (same_name): Tweak a comment.
84735
84736 2003-01-14  Bruno Haible  <bruno@clisp.org>
84737
84738         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
84739         when a string comparison is sufficient.
84740
84741 2003-01-14  Bruno Haible  <bruno@clisp.org>
84742
84743         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
84744         'unsigned int'.
84745
84746 2003-01-14  Bruno Haible  <bruno@clisp.org>
84747
84748         * lib/hash-pjw.c: Add comment about low quality of this function.
84749
84750 2003-01-13  Bruno Haible  <bruno@clisp.org>
84751
84752         * modules/stpcpy: Distribute lib/stpcpy.h.
84753         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
84754
84755 2003-01-13  Bruno Haible  <bruno@clisp.org>
84756
84757         * modules/*: Add a description.
84758         * modules/strpbrk: Fix Makefile.am snippet.
84759         * modules/strtoimax: Fix dependencies.
84760         * modules/strtoumax: Likewise.
84761
84762 2003-01-13  Bruno Haible  <bruno@clisp.org>
84763
84764         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
84765         * modules/alloca (Makefile.am): All object files depend on alloca.h.
84766         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
84767
84768 2003-01-13  Bruno Haible  <bruno@clisp.org>
84769
84770         * gnulib-tool (func_create_testdir): Store config/* files in the main
84771         directory.
84772         * config.rpath: Move to ...
84773         * config/config.rpath: ... here.
84774         * modules/gettext: Contains config/config.rpath, not config.rpath.
84775         * modules/iconv: Likewise.
84776
84777 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84778
84779         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84780         to avoid collisions with libcurses and libreadline.
84781
84782         * m4/getstr.m4: Remove.
84783         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
84784
84785 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84786
84787         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84788         to avoid collisions with libcurses and libreadline.
84789
84790         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
84791         * lib/getstr.h, getstr.c: Remove.
84792         * lib/getline.c: Include "getline.h", to check interface.
84793         Move body of old getstr.c here: this defines MIN_CHUNK and
84794         declares getdelim2, which is renamed from getstr.
84795         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
84796
84797         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
84798         All uses changed.
84799         * lib/linebuffer.h: Likewise.
84800         (readline): Remove backward-compatibility macro.
84801
84802 2003-01-12  Paul Eggert  <eggert@twinsun.com>
84803
84804         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
84805         to avoid collisions with libcurses and libreadline.
84806         * getstr: Remove.
84807         * MODULES.html.sh: Remove getstr.
84808         * modules/getline: Depend on unlocked-io, not getstr.
84809
84810 2003-01-12  Jim Meyering  <jim@meyering.net>
84811
84812         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
84813
84814 2003-01-10  Bruno Haible  <bruno@clisp.org>
84815
84816         * modules/alloca: Change Makefile.am requirements. Simplify Include
84817         requirements. Add lib/alloca_.h to file list.
84818
84819 2003-01-10  Bruno Haible  <bruno@clisp.org>
84820
84821         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
84822
84823 2003-01-10  Bruno Haible  <bruno@clisp.org>
84824
84825         * lib/alloca_.h: New file.
84826         * lib/getdate.y: Unconditionally include alloca.h.
84827         * lib/makepath.c: Likewise.
84828         * lib/setenv.c: Likewise.
84829         * lib/userspec.c: Likewise.
84830
84831 2003-01-09  Karl Berry  <karl@gnu.org>
84832
84833         * MODULES.html.sh: include `dirname $0` in PATH, to find
84834         gnulib-tool.
84835
84836 2003-01-09  Bruno Haible  <bruno@clisp.org>
84837
84838         * modules/stdbool: Change configure.ac, Makefile.am requirements.
84839         Simplify Include requirements. Add lib/stdbool.h.in to file list.
84840
84841 2003-01-09  Bruno Haible  <bruno@clisp.org>
84842
84843         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
84844
84845 2003-01-09  Bruno Haible  <bruno@clisp.org>
84846
84847         * lib/stdbool.h.in: New file.
84848
84849 2003-01-09  Bruno Haible  <bruno@clisp.org>
84850
84851         * gnulib-tool (func_all_modules): Ignore files ending in ~.
84852         * MODULES.html.sh: Likewise.
84853
84854 2003-01-08  Jim Meyering  <jim@meyering.net>
84855
84856         * lib/full-write.c: Undefine and define-away `const' after inclusion
84857         of errno.h, not before.  Suggestion from Bruno Haible.
84858
84859 2003-01-08  Bruno Haible  <bruno@clisp.org>
84860
84861         * modules/full-read: Depend on full-write.
84862
84863 2003-01-08  Bruno Haible  <bruno@clisp.org>
84864
84865         * lib/safe-read.c: Include specification header first, to ensure its
84866         selfcontainedness.
84867         * lib/full-write.c: Likewise.
84868
84869 2003-01-07  Jim Meyering  <jim@meyering.net>
84870
84871         * lib/full-write.c: Rework so that it may serve to define full_read,
84872         too.
84873         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
84874
84875 2003-01-07  Bruno Haible  <bruno@clisp.org>
84876
84877         * lib/strtoimax.c: Include <stdint.h> as an alternative to
84878         <inttypes.h>.
84879         * lib/xstrtol.h: Likewise.
84880         * lib/xstrtoimax.c: Likewise.
84881         * lib/xstrtoumax.c: Likewise.
84882         * lib/human.h: Likewise.
84883
84884         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
84885         on systems that have <inttypes.h> but not <stdint.h>.
84886
84887 2003-01-07  Bruno Haible  <bruno@clisp.org>
84888
84889         * MODULES.html.sh: Add copyright notice.
84890         (missed_files): Omit CVS directory entries.
84891         (func_module): Make it work with sed-3.02.
84892         * MODULES.txt: Remove file.
84893
84894 2003-01-06  Jim Meyering  <jim@meyering.net>
84895
84896         * lib/version-etc.c: Update year in translatable copyright string.
84897
84898 2003-01-03  Karl Berry  <karl@gnu.org>
84899
84900         * config/config.{guess,sub}: update from prep.
84901
84902 2003-01-02  Karl Berry  <karl@gnu.org>
84903
84904         * doc/COPYING.DOC: belatedly updated to 1.2.
84905
84906 2003-01-01  Karl Berry  <karl@gnu.org>
84907
84908         * gnulib-tool (func_verify_module): report module name $module in
84909         error message, not $1.
84910         * gnulib-tool (create-testdir): don't complain if destdir couldn't
84911         be created, only if it doesn't exist.
84912         * gnulib-tool (last_checkin_date): don't expand the $Date here.
84913
84914 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84915
84916         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
84917
84918 2002-12-31  Paul Eggert  <eggert@twinsun.com>
84919
84920         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
84921         memcmp if strcoll doesn't work.
84922
84923 2002-12-31  Bruno Haible  <bruno@clisp.org>
84924
84925         * lib/utime.c (utime_null): No need to call ftruncate if the file was
84926         nonempty.
84927
84928 2002-12-31  Bruno Haible  <bruno@clisp.org>
84929
84930         * lib/memcoll.c (STRCOLL): New macro.
84931         (memcoll): Use it.
84932
84933 2002-12-31  Bruno Haible  <bruno@clisp.org>
84934
84935         * lib/localcharset.h: New file.
84936         * lib/localcharset.c: Include it.
84937         * lib/unicodeio.c: Likewise.
84938
84939 2002-12-31  Bruno Haible  <bruno@clisp.org>
84940
84941         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
84942         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
84943
84944 2002-12-31  Bruno Haible  <bruno@clisp.org>
84945
84946         * lib/getline.h: Include <stddef.h>, for size_t.
84947
84948         * lib/unicodeio.h: Include <stddef.h>, for size_t.
84949         * lib/unicodeio.c: Don't include <stddef.h>.
84950
84951 2002-12-31  Bruno Haible  <bruno@clisp.org>
84952
84953         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
84954         HAVE_TM_ZONE.
84955
84956 2002-12-24  Karl Berry  <karl@gnu.org>
84957
84958         * config/config.guess: update from prep.
84959
84960 2002-12-24  Bruno Haible  <bruno@clisp.org>
84961
84962         General infrasructure.
84963         * m4/README: Rewritten.
84964         * m4/onceonly.m4: New file.
84965         * m4/onceonly_2_57.m4: New file.
84966
84967         Module atexit.
84968         * m4/atexit.m4: New file.
84969
84970         Module strtod.
84971         * m4/strtod.m4: New file.
84972
84973         Module strtol.
84974         * m4/strtol.m4: New file.
84975
84976         Module strtoul.
84977         * m4/strtoul.m4: New file.
84978
84979         Module memchr.
84980         * m4/memchr.m4: New file.
84981
84982         Module memcmp.
84983         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
84984         (jm_FUNC_MEMCMP): Invoke it.
84985
84986         Module memcpy.
84987         * m4/memcpy.m4: New file.
84988
84989         Module memmove.
84990         * m4/memmove.m4: New file.
84991
84992         Module memset.
84993         * m4/memset.m4: New file.
84994
84995         Module strcspn.
84996         * m4/strcspn.m4: New file.
84997
84998         Module strpbrk.
84999         * m4/strpbrk.m4: New file.
85000
85001         Module strstr.
85002         * m4/strstr.m4: New file.
85003
85004         Module strerror.
85005         * m4/strerror.m4: New file.
85006
85007         Module mktime.
85008         * m4/mktime.m4: Renamed from jm-mktime.m4.
85009         (gl_PREREQ_MKTIME): New macro.
85010         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
85011
85012         Module malloc.
85013         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
85014         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
85015         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
85016
85017         Module realloc.
85018         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
85019         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
85020         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
85021
85022         Module strftime.
85023         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
85024         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
85025         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
85026         gl_TM_GMTOFF.
85027         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
85028
85029         Module xalloc.
85030         * m4/xalloc.m4: New file.
85031
85032         Module alloca.
85033         * m4/alloca.m4: New file.
85034
85035         Module putenv.
85036         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
85037         (jm_FUNC_PUTENV): Invoke it.
85038
85039         Module setenv.
85040         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
85041         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
85042         when invoked twice.
85043         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
85044         gt_FUNC_SETENV.
85045
85046         Module memrchr.
85047         * m4/memrchr.m4: New file.
85048
85049         Module stpcpy.
85050         * m4/stpcpy.m4: New file.
85051
85052         Module strcase.
85053         * m4/strcase.m4: New file.
85054
85055         Module strdup.
85056         * m4/strdup.m4: New file.
85057
85058         Module strnlen.
85059         * m4/strnlen.m4: New file.
85060
85061         Module strndup.
85062         * m4/strndup.m4: New file.
85063
85064         Module xstrtod.
85065         * m4/xstrtod.m4: New file.
85066
85067         Module xstrtol.
85068         * m4/xstrtol.m4: New file.
85069
85070         Module getdate.
85071         * m4/getdate.m4: New file.
85072
85073         Module unlocked-io.
85074         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
85075         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
85076         * m4/jm-glibc-io.m4n: Remove file.
85077
85078         Module long-options.
85079         * m4/long-options.m4: New file.
85080
85081         Module md5.
85082         * m4/md5.m4: New file.
85083
85084         Module sha.
85085         * m4/sha.m4: New file.
85086
85087         Module getstr.
85088         * m4/getstr.m4: New file.
85089
85090         Module getline.
85091         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
85092         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
85093         <sys/types.h>, for size_t. Use the function name gnu_getline, not
85094         simply getline. Infoke gl_PREREQ_GETLINE.
85095
85096         Module obstack.
85097         * m4/obstack.m4: New file.
85098
85099         Module hash.
85100         * m4/hash.m4: New file.
85101
85102         Module readtokens.
85103         * m4/readtokens.m4: New file.
85104
85105         Module strverscmp.
85106         * m4/strverscmp.m4: New file.
85107
85108         Module stdbool.
85109         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
85110         OSF/1.
85111
85112         Module strtoll.
85113         * m4/strtoll.m4: New file.
85114
85115         Module strtoull.
85116         * m4/strtoull.m4: New file.
85117
85118         Module strtoimax.
85119         * m4/strtoimax.m4: New file.
85120
85121         Module strtoumax.
85122         * m4/strtoumax.m4: New file.
85123
85124         Module xstrtoimax.
85125         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
85126         jm_AC_PREREQ_XSTRTOIMAX.
85127         Moved the strtol prerequisites to strtol.m4.
85128         Moved the strtoll prerequisites to strtoll.m4.
85129         Moved the strtoimax prerequisites to strtoimax.m4.
85130
85131         Module xstrtoumax.
85132         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
85133         jm_AC_PREREQ_XSTRTOUMAX.
85134         Moved the strtoul prerequisites to strtoul.m4.
85135         Moved the strtoull prerequisites to strtoull.m4.
85136         Moved the strtoumax prerequisites to strtoumax.m4.
85137
85138         Module chown.
85139         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
85140         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
85141
85142         Module dup2.
85143         * m4/dup2.m4: New file.
85144
85145         Module ftruncate.
85146         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
85147         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
85148
85149         Module getgroups.
85150         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
85151         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
85152
85153         Module gettimeofday.
85154         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
85155         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
85156         gl_PREREQ_GETTIMEOFDAY.
85157
85158         Module mkdir.
85159         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
85160         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
85161
85162         Module mkstemp.
85163         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
85164         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
85165         jm_AC_TYPE_UINTMAX_T.
85166         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
85167
85168         Module stat.
85169         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
85170         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
85171
85172         Module lstat.
85173         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
85174         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
85175
85176         Module timespec.
85177         * m4/timespec.m4 (gl_TIMESPEC): New macro.
85178         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
85179         * m4/st_mtim.m4: Indentation.
85180
85181         Module nanosleep.
85182         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
85183         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
85184         gl_PREREQ_NANOSLEEP.
85185
85186         Module regex.
85187         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
85188         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
85189         (gl_REGEX): New macro.
85190
85191         Module rename.
85192         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
85193         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
85194
85195         Module rmdir.
85196         * m4/rmdir.m4: New file.
85197
85198         Module utime.
85199         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
85200         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
85201         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
85202
85203         Module dirname.
85204         * m4/dirname.m4: New file.
85205
85206         Module getopt.
85207         * m4/getopt.m4: New file.
85208
85209         Module unistd-safer.
85210         * m4/unistd-safer.m4: New file.
85211
85212         Module fnmatch.
85213         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
85214         declaration.
85215         (gl_PREREQ_FNMATCH_EXTRA): New macro.
85216         (gl_FUNC_FNMATCH_POSIX): New macro.
85217         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
85218         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
85219         simply fnmatch.
85220
85221         Module exclude.
85222         * m4/exclude.m4: New file.
85223
85224         Module human.
85225         * m4/human.m4: New file.
85226
85227         Module acl.
85228         * m4/acl.m4: Nop.
85229
85230         Module backupfile.
85231         * m4/backupfile.m4: New file.
85232         * m4/d-ino.m4: Indentation.
85233
85234         Module fsusage.
85235         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
85236         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
85237         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
85238
85239         Module dirfd.
85240         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
85241         requirements.
85242
85243         Module euidaccess.
85244         * m4/euidaccess.m4: New file.
85245
85246         Module file-type.
85247         * m4/file-type.m4: New file.
85248
85249         Module fileblocks.
85250         * m4/fileblocks.m4: New file.
85251
85252         Module filemode.
85253         * m4/filemode.m4: New file.
85254
85255         Module isdir.
85256         * m4/isdir.m4: New file.
85257
85258         Module lchown.
85259         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
85260         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
85261
85262         Module makepath.
85263         * m4/makepath.m4: New file.
85264
85265         Module modechange.
85266         * m4/modechange.m4: New file.
85267
85268         Module mountlist.
85269         * m4/mountlist.m4: New file.
85270         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
85271         Indentation.
85272
85273         Module path-concat.
85274         * m4/path-concat.m4: New file.
85275
85276         Module pathmax.
85277         * m4/pathmax.m4: New file.
85278
85279         Module same.
85280         * m4/same.m4: New file.
85281
85282         Module save-cwd.
85283         * m4/save-cwd.m4: New file.
85284
85285         Module savedir.
85286         * m4/savedir.m4: New file.
85287
85288         Module xgetcwd.
85289         * m4/xgetcwd.m4: New file.
85290         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
85291
85292         Module xreadlink.
85293         * m4/xreadlink.m4: New file.
85294
85295         Module safe-read.
85296         * m4/safe-read.m4: New file.
85297
85298         Module safe-write.
85299         * m4/safe-write.m4: New file.
85300
85301         Module closeout.
85302         * m4/closeout.m4: New file.
85303
85304         Module stdio-safer.
85305         * m4/stdio-safer.m4: New file.
85306
85307         Module getpass.
85308         * m4/getpass.m4: New file.
85309
85310         Module getugroups.
85311         * m4/getugroups.m4: New file.
85312
85313         Module group-member.
85314         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
85315         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
85316
85317         Module idcache.
85318         * m4/idcache.m4: New file.
85319
85320         Module userspec.
85321         * m4/userspec.m4: New file.
85322
85323         Module gettime.
85324         * m4/clock_time.m4: New file.
85325         * m4/gettime.m4: New file.
85326
85327         Module settime.
85328         * m4/settime.m4: New file.
85329
85330         Module posixtm.
85331         * m4/posixtm.m4: New file.
85332
85333         Module gethostname.
85334         * m4/gethostname.m4: New file.
85335
85336         Module canon-host.
85337         * m4/canon-host.m4: New file.
85338
85339         Module gettext.
85340         * m4/codeset.m4: New file, from gettext-0.11.5.
85341         * m4/gettext.m4: New file, from gettext-0.11.5.
85342         * m4/glibc21.m4: New file, from gettext-0.11.5.
85343         * m4/iconv.m4: New file, from gettext-0.11.5.
85344         * m4/intdiv0.m4: New file, from gettext-0.11.5.
85345         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
85346         * m4/inttypes.m4: New file, from gettext-0.11.5.
85347         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
85348         * m4/isc-posix.m4: New file, from gettext-0.11.5.
85349         * m4/lcmessage.m4: New file, from gettext-0.11.5.
85350         * m4/lib-ld.m4: New file, from gettext-0.11.5.
85351         * m4/lib-link.m4: New file, from gettext-0.11.5.
85352         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
85353         * m4/progtest.m4: New file, from gettext-0.11.5.
85354         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
85355         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
85356         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
85357
85358         Module localcharset.
85359         * m4/localcharset.m4: New file.
85360
85361         Module hard-locale.
85362         * m4/hard-locale.m4: New file.
85363
85364         Module mbswidth.
85365         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
85366         onceonly macros.
85367         * m4/mbrtowc.m4: Add comment.
85368
85369         Module memcasecmp.
85370         * m4/memcasecmp.m4: New file.
85371
85372         Module memcoll.
85373         * m4/memcoll.m4: New file.
85374
85375         Module unicodeio.
85376         * m4/unicodeio.m4: New file.
85377
85378         Module rpmatch.
85379         * m4/rpmatch.m4: New file.
85380
85381         Module yesno.
85382         * m4/yesno.m4: New file.
85383
85384         Module exitfail.
85385         * m4/exitfail.m4: New file.
85386
85387         Module c-stack.
85388         * m4/c-stack.m4 (gl_C_STACK): New macro.
85389         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
85390
85391         Module error.
85392         * m4/error.m4 (gl_ERROR): New macro.
85393         (jm_PREREQ_ERROR): Use onceonly macros.
85394
85395         Module fatal.
85396         * m4/fatal.m4: New file.
85397
85398         Module getloadavg.
85399         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
85400         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
85401
85402         Module getpagesize.
85403         * m4/getpagesize.m4: New file.
85404
85405         Module getusershell.
85406         * m4/getusershell.m4: New file.
85407
85408         Module physmem.
85409         * m4/physmem.m4: New file.
85410
85411         Module posixver.
85412         * m4/posixver.m4: New file.
85413
85414         Module quotearg.
85415         * m4/quotearg.m4: New file.
85416
85417         Module quote.
85418         * m4/quote.m4: New file.
85419
85420         Module readutmp.
85421         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
85422
85423         Module sig2str.
85424         * m4/sig2str.m4: New file.
85425
85426         Other.
85427         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
85428         ulonglong.m4.
85429         * m4/intmax_t.m4: New file.
85430         * m4/d-type.m4: Indentation.
85431         * m4/jm-macros.m4: Update.
85432         * m4/prereq.m4 (jm_PREREQ): Update.
85433         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
85434         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
85435         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
85436         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
85437         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
85438         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
85439         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
85440         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
85441         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
85442         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
85443         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
85444         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
85445         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
85446         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
85447         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
85448         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
85449         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
85450         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
85451         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
85452
85453 2002-12-24  Bruno Haible  <bruno@clisp.org>
85454
85455         * MODULES.txt: Update according to m4/ changes.
85456
85457         Module gettext.
85458         * config.rpath: New file, from gettext-0.11.5.
85459
85460         * modules/*: New module descriptions.
85461         * gnulib-tool: New file.
85462         * MODULES.html.sh: New file.
85463
85464 2002-12-21  Karl Berry  <karl@gnu.org>
85465
85466         * doc/fdl.texi: update to version 1.2.
85467
85468 2002-12-19  Karl Berry  <karl@gnu.org>
85469
85470         * config/config.guess: update from prep.
85471
85472 2002-12-18  Bruno Haible  <bruno@clisp.org>
85473
85474         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
85475         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
85476
85477 2002-12-17  Bruno Haible  <bruno@clisp.org>
85478
85479         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
85480         stdlib.h, string.h.
85481
85482 2002-12-17  Bruno Haible  <bruno@clisp.org>
85483
85484         * lib/canon-host.c (strdup): Remove unused declaration.
85485
85486         * lib/fsusage.c: Include full_read.h.
85487         (get_fs_usage): Use full_read instead of safe_read.
85488
85489         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
85490
85491 2002-12-12  Karl Berry  <karl@gnu.org>
85492
85493         * config/config.guess: update from prep.
85494
85495 2002-12-11  Bruno Haible  <bruno@clisp.org>
85496
85497         * m4/setenv.m4: New file, from gettext-0.11.5.
85498
85499 2002-12-11  Bruno Haible  <bruno@clisp.org>
85500
85501         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
85502         not unsetenv().
85503         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
85504         modifications:
85505
85506         2002-12-11  Bruno Haible  <bruno@clisp.org>
85507
85508                 * setenv.c (alloca): Fall back to malloc.
85509                 (freea): New macro.
85510                 (setenv): Use freea() to free memory allocated with alloca().
85511
85512         2002-11-13  Bruno Haible  <bruno@clisp.org>
85513
85514                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
85515                 function declarations.
85516                 * unsetenv.c (unsetenv): Likewise.
85517
85518         2002-03-04  Bruno Haible  <bruno@clisp.org>
85519
85520                 Portability to AIX 4.3.3.
85521                 * unsetenv.c: New file, extracted from setenv.c.
85522                 * setenv.c: Move the unsetenv() function to unsetenv.c.
85523
85524         2001-12-20  Bruno Haible  <bruno@clisp.org>
85525
85526                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
85527                 use malloc instead. For SunOS 4.
85528
85529         2001-12-11  Bruno Haible  <bruno@clisp.org>
85530
85531                 * setenv.c: Declare alloca.
85532                 (compar_fn_t): New typedef.
85533                 (KNOWN_VALUE, STORE_VALUE): Use it.
85534
85535         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
85536         setenv.h.
85537
85538 2002-12-10  Paul Eggert  <eggert@twinsun.com>
85539
85540         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
85541         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
85542         Choose values that are less likely to collide with system fnmatch
85543         options.
85544         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
85545         defined (e.g., a pure POSIX system).
85546         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
85547         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
85548
85549 2002-12-06  Paul Eggert  <eggert@twinsun.com>
85550
85551         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
85552         a pain in practice to deal with generated m4 files.  This change
85553         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
85554
85555         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
85556         and jm-glibc-io.m4, as they are no longer a special case.
85557         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
85558         kludge and the auto-generation stuff.  Check only whether the
85559         functions are declared, not whether they exist, since older hosts
85560         that don't declare the functions can't use the optimization anyway.
85561
85562 2002-12-06  Jim Meyering  <jim@meyering.net>
85563
85564         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
85565
85566         Merge in changes from libc's misc/error.c, in preparation
85567         for the merge of gnulib's changes back into libc.
85568
85569         * lib/error.c (_): Define only if not already defined.
85570         Move definition to follow all #include directives.
85571         Include unlocked-io.h only if !_LIBC.
85572         [_LIBC]: Include <libio/libioP.h>.
85573         [USE_IN_LIBIO]: Include <libio/iolibio.h>
85574         (fflush): Tweak definition to use INTUSE.
85575         (putc): Define.
85576
85577 2002-12-05  Paul Eggert  <eggert@twinsun.com>
85578
85579         * lib/alloca.c [defined emacs]: Include "lisp.h".
85580         (xalloc_die) [defined emacs]: New macro.
85581         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
85582         [! defined emacs]: Include <xalloc.h>.
85583         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
85584         (pointer): Typedef to POINTER_TYPE *.
85585         (malloc): Remove decl; we now always use xmalloc.
85586         (alloca): Use old-style definition, since Emacs needs this.
85587         Check for arithmetic overflow when computing combined size.
85588
85589 2002-12-04  Paul Eggert  <eggert@twinsun.com>
85590
85591         Do not generate unlocked-io.h automatically, since it's easier to
85592         maintain it by hand.
85593
85594         * lib/unlocked-io.h: New file, from GNU diffutils,
85595         but with proper copyright notice and attribution.
85596         * lib/gen-uio: Remove.
85597         * lib/Makefile.am: Add copyright notice.
85598         (libfetish_a_SOURCES): Add unlocked-io.h.
85599         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
85600         (DISTCLEANFILES, io_functions): Remove macros.
85601         (EXTRA_DIST): Remove gen_uio.
85602         (unlocked-io.h): Remove rule.
85603
85604 2002-12-04  Jim Meyering  <jim@meyering.net>
85605
85606         Reflect the fact that stat.c and lstat.c are no longer generated.
85607         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
85608         (DISTCLEANFILES): Likewise.
85609         (EXTRA_DIST): Likewise.
85610         (all_local): Don't depend on stat.c or lstat.c.
85611         (stat.c, lstat.c): Remove rules.
85612         (EXTRA_DIST): Remove xstat.in.
85613
85614         * lib/xstat.in: Remove file.  Contents moved into stat.c.
85615         * lib/stat.c: New file.  Contents mostly from xstat.in.
85616         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
85617         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
85618
85619         * lib/safe-read.c: Rework so that it may serve to define safe_write,
85620         too.
85621         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
85622
85623 2002-12-03  Jim Meyering  <jim@meyering.net>
85624
85625         * lib/safe-read.c, safe-write.c: Change variable names and comments,
85626         but not semantics, to minimize the differences between these two files.
85627         (safe_read): Change comment to mention SAFE_READ_ERROR.
85628
85629         * lib/safe-read.c (IS_EINTR): Define.
85630         (safe_read): Use IS_EINTR in place of in-function cpp directives.
85631
85632 2002-12-02  Jim Meyering  <jim@meyering.net>
85633
85634         * lib/safe-read.c (EINTR): Define.
85635         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
85636         (INT_MAX): Provide fallback.
85637         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
85638
85639         * lib/safe-read.h (SAFE_READ_ERROR): Define.
85640
85641 2002-12-02  Bruno Haible  <bruno@clisp.org>
85642
85643         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
85644         Define, taken from safe-read.c.
85645         (INT_MAX): Provide fallback.
85646         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
85647         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
85648
85649         * lib/safe-read.c (EINTR): Remove definition.
85650         (safe_read): Don't use EINTR if it is absent.
85651
85652 2002-12-01  Jim Meyering  <jim@meyering.net>
85653
85654         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
85655         zero.
85656         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
85657
85658 2002-11-27  Paul Eggert  <eggert@twinsun.com>
85659
85660         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
85661         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
85662         with `if (! (value < limit)) abort ();', for readability.
85663
85664 2002-11-26  Karl Berry  <karl@gnu.org>
85665
85666         * lib/strdup.c: copy from libc again, with jim's ok.
85667         * lib/.cppi-disable: re-add strdup.c
85668
85669 2002-11-25  Karl Berry  <karl@gnu.org>
85670
85671         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
85672         instead of "strtol.c".
85673
85674 2002-11-25  Karl Berry  <karl@gnu.org>
85675
85676         * config/install-sh: update from automake for variable quoting, $0 in
85677         error msgs, etc.
85678
85679         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
85680         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
85681         entry.
85682
85683 2002-11-25  Jim Meyering  <jim@meyering.net>
85684
85685         * lib/mktime.c: Sync from libc, now that it has the latest fix.
85686
85687 2002-11-24  Karl Berry  <karl@gnu.org>
85688
85689         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
85690         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
85691
85692 2002-11-24  Jim Meyering  <jim@meyering.net>
85693
85694         Update from coreutils:
85695
85696         * lib/mktime.c: Merge in changes from libc.
85697
85698         Avoid a link-time failure on some Linux systems.
85699         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
85700         (otherwise).
85701         (__mon_yday): Declare with the STATIC attribute.
85702         (__mktime_internal): Likewise.
85703         Based on a report from Greg Schafer.
85704
85705 2002-11-23  Jim Meyering  <jim@meyering.net>
85706
85707         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
85708         Use `unsigned', not `int', as type of index.
85709
85710         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
85711
85712         * lib/fsusage.c: Remove unneeded parentheses around operands of
85713         `defined'.
85714
85715 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85716
85717         * lib/quotearg.h: Allow multiple inclusion by surrounding with
85718         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
85719         so that we can be included first.
85720         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
85721         * lib/quotearg.c: Include quotearg.h immediately after config.h.
85722         No need to include stddef.h or sys/types.h any more.
85723         Surround local include files with "", not "<>".
85724         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
85725         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
85726         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
85727         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
85728         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
85729         (ISPRINT): Remove; no longer needed now that we assume C89.
85730
85731         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
85732         Preserve errno.
85733
85734         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
85735         quotearg_char): Use SIZE_MAX rather than
85736         (size_t) -1 when we are talking about "infinity".
85737
85738         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
85739
85740 2002-11-22  Paul Eggert  <eggert@twinsun.com>
85741
85742         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
85743         hint that one should use `if (! x) abort ();' rather than `assert
85744         (x);', and anyway it's one less thing to worry about configuring.
85745         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
85746         hash_rehash, hash_insert): Use abort rather than assert.
85747
85748 2002-11-22  Bruno Haible  <bruno@clisp.org>
85749
85750         * lib/safe-read.h: Assume C89. Add comments.
85751         (safe_read): Change return type to size_t.
85752         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
85753         byte counts > SSIZE_MAX correctly.
85754         * lib/safe-write.h: New file.
85755         * lib/safe-write.c: New file.
85756         * lib/full-read.h: New file.
85757         * lib/full-read.c: New file.
85758         * lib/full-write.h: Assume C89. Add comments.
85759         * lib/full-write.c: Include safe-write.h.
85760         (full_write): Rewritten to use safe_write.
85761         Suggested by Jim Meyering and Paul Eggert.
85762
85763 2002-11-21  Jim Meyering  <jim@meyering.net>
85764
85765         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
85766
85767         Merge in changes from the coreutils.
85768
85769         2002-09-25  Paul Eggert  <eggert@twinsun.com>
85770         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
85771         <stdint.h>.
85772         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
85773         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
85774         int.  Work more efficiently if X is the same width as uintmax_t.
85775         Do not compare X to -1, to avoid bogus compiler warning.
85776         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
85777         Don't assume that f_frsize and f_bsize are the same type.
85778
85779         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
85780         warning on FreeBSD.
85781
85782         * lib/makepath.c (make_path): Restore umask *before* creating the final
85783         component.
85784         (make_path): Minor reformatting.
85785
85786         * lib/xmalloc.c: Adjust to work with new autoconf macros,
85787         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
85788         HAVE_MALLOC/HAVE_REALLOC.
85789
85790         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
85791         dummy ones.  At least on GNU/Linux systems, `auto' means something
85792         else.
85793         From Michael Stone.
85794
85795 2002-11-21  Bruno Haible  <bruno@clisp.org>
85796
85797         Remove case insensitive option matching.
85798         * lib/argmatch.h (argcasematch): Remove declaration.
85799         (ARGCASEMATCH): Remove macro.
85800         (__xargmatch_internal): Remove case_sensitive argument.
85801         (XARGMATCH): Update.
85802         (XARGCASEMATCH): Remove macro.
85803         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
85804         case_sensitive argument.
85805         (argcasematch): Remove function.
85806         (__xargmatch_internal): Remove case_sensitive argument.
85807         (main): Use XARGMATCH instead of XARGCASEMATCH.
85808
85809         * lib/xmalloc.c: Change compile-time error message. Add comment about
85810         required autoconf version.
85811
85812 2002-11-20  Paul Eggert  <eggert@twinsun.com>
85813
85814         Merge argmatch cleanups from Bison.  Assume C89.
85815
85816         * lib/argmatch.c: Include config.h here, not in argmatch.h.
85817         Include stdlib.h, for EXIT_FAILURE.
85818         Always include <string.h>, since we assume C89.
85819         (EXIT_FAILURE): Remove pre-C89 bug workaround.
85820         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
85821         Include <stddef.h> instead, since it's all we need for size_t.
85822         (PARAMS): Remove.  All uses removed.
85823         (ARRAY_CARDINALITY): Do not bother to #undef.
85824         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
85825         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85826         Remove unnecessary parentheses.
85827         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
85828         Insert necessary parentheses.
85829         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
85830         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
85831
85832 2002-11-19  Bruno Haible  <bruno@clisp.org>
85833
85834         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
85835         * lib/mbswidth.h: Include <stddef.h>, for size_t.
85836
85837         * lib/mbswidth.h (PARAMS): Remove macro.
85838         (mbswidth, mbsnwidth): Use ANSI C function declarations.
85839         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
85840
85841         * lib/gcd.h (PARAMS): Remove macro.
85842         (gcd): Use ANSI C function declarations.
85843         * lib/gcd.c (gcd): Likewise.
85844
85845 2002-11-15  Bruno Haible  <bruno@clisp.org>
85846
85847         * lib/strcspn.c: Include <stddef.h>.
85848         (strcspn): Use ANSI C function declaration. Change return type to
85849         size_t. Use NULL.
85850         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
85851         (strpbrk): Use NULL.
85852         * lib/strpbrk.h (PARAMS): Remove macro.
85853         (strpbrk): Use ANSI C function declaration.
85854         * lib/strstr.c: Don't include <sys/types.h>.
85855         * lib/strstr.h (PARAMS): Remove macro.
85856         (strstr): Use ANSI C function declarations.
85857
85858 2002-11-14  Karl Berry  <karl@gnu.org>
85859
85860         * config/mkinstalldirs: `do' on separate line, instead of
85861         `for var; do'.
85862
85863 2002-11-06  Bruno Haible  <bruno@clisp.org>
85864
85865         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
85866         * lib/gcd.c (gcd): Likewise.
85867
85868 2002-11-05  Bruno Haible  <bruno@clisp.org>
85869
85870         * lib/gcd.h: New file, from gettext-0.11.5.
85871         * lib/gcd.c: New file, from gettext-0.11.5.
85872
85873 2002-11-05  Bruno Haible  <bruno@clisp.org>
85874
85875         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85876         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85877         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85878         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
85879
85880         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
85881         <libintl.h>.
85882         * lib/makepath.c: Include gettext.h instead of <locale.h> and
85883         <libintl.h>.
85884
85885         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
85886         * lib/human.c: Include gettext.h instead of <libintl.h>.
85887         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
85888         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
85889         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
85890         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
85891         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
85892         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
85893         (textdomain): Remove definition.
85894         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
85895
85896         * lib/long-options.c: Remove include of <libintl.h> and definition of
85897         _.
85898         * lib/same.c: Remove include of <libintl.h> and definition of _.
85899
85900 2002-11-04  Owen Taylor  <otaylor@redhat.com>
85901
85902         * lib/config.charset: A few additions for Solaris.
85903
85904 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85905
85906         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
85907         * lib/localcharset.c (locale_charset): Declare as extern "C".
85908
85909 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
85910
85911         * lib/config.charset: msdos in uk_UA uses CP1125.
85912
85913 2002-11-04  Bruno Haible  <bruno@clisp.org>
85914
85915         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
85916         * lib/strcase.h: New file, from GNU gettext-0.11.5.
85917         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
85918         * lib/strstr.h: New file, from GNU gettext-0.11.5.
85919         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
85920
85921 2002-11-04  Bruno Haible  <bruno@clisp.org>
85922
85923         * lib/localcharset.c (locale_charset): Don't return an empty string.
85924
85925 2002-11-04  Bruno Haible  <bruno@clisp.org>
85926
85927         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
85928         aliases.
85929
85930 2002-11-04  Bruno Haible  <bruno@clisp.org>
85931
85932         * lib/config.charset: Update for newest glibc. Add canonical names
85933         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
85934
85935 2002-11-04  Bruno Haible  <bruno@clisp.org>
85936
85937         * lib/config.charset: Add support for NetBSD.
85938
85939 2002-11-04  Bruno Haible  <bruno@clisp.org>
85940
85941         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
85942
85943 2002-11-01  Bruno Haible  <bruno@clisp.org>
85944
85945         * configure.in: Add AC_CONFIG_AUX_DIR call.
85946         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
85947         test/Makefile.
85948         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
85949
85950 2002-09-28  Karl Berry  <karl@gnu.org>
85951
85952         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
85953         installed automake until the next release, since changes have been
85954         made.
85955
85956 2002-09-25  Karl Berry  <karl@gnu.org>
85957
85958         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
85959         * lib/getopt*: copy from libc/posix.
85960         * lib/gettext.h: copy from gettext.
85961         * lib/.cppi-disable: add strdup.c, gettext.h.
85962
85963 2002-09-25  Karl Berry  <karl@gnu.org>
85964
85965         * config/srclist.txt: enable gettext.h check.
85966         * config/config.{guess,sub}: update from prep.
85967         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
85968                 from automake 1.6.3.
85969         See srclist*.
85970
85971 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
85972
85973         * regex.c (PATFETCH): Remove the translating fetch.
85974         (PATFETCH_RAW): Rename to PATFETCH.
85975         (set_image_of_range): New fun.
85976         (SET_RANGE_TABLE_WORK_AREA): Use it.
85977         (regex_compile): Don't translate the pattern chars so eagerly.
85978         Only do it when inserting an `exactn' bytecode or when handling
85979         a char-range.
85980         (mutually_exclusive_p): Avoid empty statement.
85981
85982 2002-07-06  Jim Meyering  <meyering@lucent.com>
85983
85984         * m4/README: Don't mention Makefile.am.in.
85985         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
85986
85987 2002-07-01  Jim Meyering  <meyering@lucent.com>
85988
85989         * lib/c-stack.c: Include sys/time.h.
85990         From Volker Borchert.
85991
85992 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85993
85994         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
85995
85996 2002-06-26  Paul Eggert  <eggert@twinsun.com>
85997
85998         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
85999         New macro.  Use it uniformly instead of
86000         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
86001         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
86002         reported by Vin Shelton.
86003
86004 2002-06-22  Paul Eggert  <eggert@twinsun.com>
86005
86006         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
86007         Do not assume SA_SIGINFO behavior.
86008         Bug reported by Jim Meyering on NetBSD 1.5.2.
86009
86010 2002-06-22  Jim Meyering  <meyering@lucent.com>
86011
86012         * m4/c-stack.m4: New file, from diffutils-2.8.2.
86013         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
86014
86015         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
86016         now that configure.ac uses AC_GNU_SOURCE.
86017         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
86018         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
86019
86020         Update to latest tools.  Suggestions from Paul Eggert.
86021         * m4/stdbool.m4: New file, from diffutils-2.8.2.
86022         * m4/gnu-source.m4: Update from diffutils-2.8.2.
86023         * m4/fnmatch.m4: Likewise.
86024         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
86025         to AC_HEADER_STDBOOL
86026
86027 2002-06-22  Jim Meyering  <meyering@lucent.com>
86028
86029         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
86030         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
86031
86032 2002-06-22  Jim Meyering  <meyering@lucent.com>
86033
86034         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
86035
86036         * lib/exitfail.c, exitfail.h: Likewise.
86037         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
86038
86039         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
86040         of fnmatch.h.
86041         (EXTRA_DIST): Add fnmatch_loop.c.
86042         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
86043
86044         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
86045         * lib/fnmatch.c: Update from diffutils-2.8.2.
86046         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
86047         * lib/fnmatch.h: Remove file.
86048
86049 2002-06-21  Jim Meyering  <meyering@lucent.com>
86050
86051         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
86052         * m4/mbrtowc.m4: Likewise.
86053
86054         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
86055         * m4/mbswidth.m4: Reflect name change:
86056         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
86057         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
86058
86059         * m4/lib-link.m4: Update from gettext-0.11.2.
86060         * m4/gettext.m4: Likewise.
86061
86062         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
86063         From Alfred M. Szmidt.
86064
86065 2002-06-18  Paul Eggert  <eggert@twinsun.com>
86066
86067         * lib/file-type.h: Report an error if neither S_ISREG nor
86068         S_IFREG is defined, instead of using a test specific to glibc
86069         2.2.  This should be safe, since POSIX requires S_ISREG and
86070         Unix Version 7 had S_IFREG.  We don't need to check for
86071         <sys/types.h> since we don't use any symbols that it defines.
86072
86073 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
86074
86075         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
86076         $@-t, so that each temporary file name is unique and valid in the first
86077         8 characters, for operation under DOS.
86078
86079 2002-06-15  Paul Eggert  <eggert@twinsun.com>
86080
86081         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
86082
86083 2002-06-15  Jim Meyering  <meyering@lucent.com>
86084
86085         Work even with DJGPP 2.03, which lacks support for symlinks.
86086         From Richard Dawe.
86087         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
86088         is defined.
86089         * lib/lchown.c (S_ISLNK): Likewise.
86090
86091 2002-06-15  Jim Meyering  <meyering@lucent.com>
86092
86093         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
86094         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
86095         have been included before this file.
86096
86097 2002-06-14  Jim Meyering  <meyering@lucent.com>
86098
86099         * lib/file-type.h: Use the version from diffutils-2.8.2.
86100         * lib/file-type.c: Likewise.
86101
86102 2002-06-07  Jim Meyering  <meyering@lucent.com>
86103
86104         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
86105         They're needed at least for NetBSD 1.5.2.
86106         ($statxfs_includes): Include those same headers.
86107         ($statxfs_includes): Include sys/vfs.h if available.
86108         ($statxfs_includes): Likewise for sys/statvfs.h.
86109         Check for the following members in both structs statfs and statvfs:
86110         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
86111
86112 2002-06-01  Jim Meyering  <meyering@lucent.com>
86113
86114         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
86115         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
86116
86117 2002-05-28  Jim Meyering  <meyering@lucent.com>
86118
86119         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
86120         Reported by Volker Borchert.
86121
86122 2002-05-27  Jim Meyering  <meyering@lucent.com>
86123
86124         Fix a problem seen only on nonconforming systems whereby ls.c's
86125         use of localtime, and then of gettimeofday would cause trouble:
86126         the localtime call used to initialize rpl_gettimeofday's save
86127         mechanism would clobber ls's current local time information so
86128         that in any long listing the first file would always be listed
86129         with date 1970-01-01.  Analysis by Volker Borchert.
86130
86131         * lib/gettimeofday.c (localtime): Undefine.
86132         (rpl_localtime): New function.
86133
86134 2002-05-27  Jim Meyering  <meyering@lucent.com>
86135
86136         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
86137         localtime.
86138
86139         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
86140         use the replacement function; it wouldn't resolve at link time.
86141         Reported by Volker Borchert.
86142
86143 2002-05-22  Jim Meyering  <meyering@lucent.com>
86144
86145         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
86146         file-type.h.
86147         * lib/file-type.h: New file.
86148         * lib/file-type.c (file_type): New file/function.  Extracted from
86149         diffutils.
86150
86151 2002-04-30  Jim Meyering  <meyering@lucent.com>
86152
86153         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
86154
86155 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86156
86157         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
86158
86159 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86160
86161         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
86162         Do not check for alloca.h (no longer used) or stdbool.h (was never
86163         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
86164
86165 2002-04-29  Paul Eggert  <eggert@twinsun.com>
86166
86167         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
86168
86169 2002-04-29  Jim Meyering  <meyering@lucent.com>
86170
86171         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
86172         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
86173         Use AC_FUNC_STRNLEN here instead.
86174
86175         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
86176         With autoconf-2.53a, it's part of AC_PROG_CC.
86177
86178 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86179
86180         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
86181         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
86182
86183 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86184
86185         * lib/sig2str.h, lib/sig2str.c: New files.
86186         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
86187
86188 2002-04-28  Paul Eggert  <eggert@twinsun.com>
86189
86190         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
86191         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
86192         of 127, since 64 is the largest conceivable number for ancient
86193         nonstandard hosts.
86194         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
86195
86196 2002-04-28  Jim Meyering  <meyering@lucent.com>
86197
86198         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
86199
86200 2002-04-24  Jim Meyering  <meyering@lucent.com>
86201
86202         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
86203         (jm_PREREQ): Use it.
86204
86205         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
86206         mach/mach.h fcntl.h.
86207         Check for this function: setlocale.
86208
86209 2002-04-24  Jim Meyering  <meyering@lucent.com>
86210
86211         * lib/gettext.h: New file, from Gettext.
86212         * lib/Makefile.am (INCLUDES): Remove -I../intl.
86213         (libfetish_a_SOURCES): Add gettext.h.
86214
86215 2002-04-16  Jim Meyering  <meyering@lucent.com>
86216
86217         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
86218         ut_pid, ut_id, ut_exit.
86219
86220 2002-04-16  Jim Meyering  <meyering@lucent.com>
86221
86222         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
86223         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
86224         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
86225
86226 2002-04-12  Jim Meyering  <meyering@lucent.com>
86227
86228         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
86229         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
86230         existence of the getmntinfo function.  Needed for Darwin 5.3.
86231
86232         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
86233         This is necessary at least on Darwin 5.3.
86234
86235         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
86236         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
86237         strnlen.o in the library, and that makes some versions of ranlib
86238         object.
86239
86240 2002-04-12  Jim Meyering  <meyering@lucent.com>
86241
86242         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
86243
86244 2002-04-09  Jim Meyering  <meyering@lucent.com>
86245
86246         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
86247         to be more precise.  Rather than saying we're checking whether the
86248         function `works', say what we're testing.
86249         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
86250         Reported by Bruno Haible.
86251
86252 2002-03-10  Jim Meyering  <meyering@lucent.com>
86253
86254         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
86255         Suggestion from Santiago Vila.
86256
86257 2002-03-08  Jim Meyering  <meyering@lucent.com>
86258
86259         * lib/rename.c: Mention that this wrapper is needed also on
86260         mips-dec-ultrix4.4 systems.
86261
86262 2002-03-02  Jim Meyering  <meyering@lucent.com>
86263
86264         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
86265         not HAVE_CLOCK_SETTIME.
86266
86267 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86268
86269         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
86270         Check for clock_settime.
86271
86272 2002-02-27  Paul Eggert  <eggert@twinsun.com>
86273
86274         * lib/nanosleep.h: Rename to....
86275         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
86276
86277         * lib/gettime.c: New file.
86278         * lib/settime.c: New file.
86279         * lib/stime.c: Remove.
86280
86281         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
86282         timespec.h.  Remove nanosleep.h.
86283
86284 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86285
86286         * m4/acl.m4: New file.
86287         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
86288         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
86289
86290 2002-02-25  Paul Eggert  <eggert@twinsun.com>
86291
86292         * lib/acl.c, lib/acl.h: New files.
86293         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
86294
86295 2002-02-24  Jim Meyering  <meyering@lucent.com>
86296
86297         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
86298         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
86299         cause trouble.  Reported by Nelson Beebe.
86300
86301 2002-02-23  Paul Eggert  <eggert@twinsun.com>
86302
86303         * lib/path-concat.c (xpath_concat): Reorder code to pacify
86304         compilers that don't know that xalloc_die never returns.
86305
86306 2002-02-20  Jim Meyering  <meyering@lucent.com>
86307
86308         * lib/getdate.c: Regenerate using bison-1.33.
86309
86310 2002-02-17  Jim Meyering  <meyering@lucent.com>
86311
86312         * config/config.guess (main): Don't use `head -1'; it's no longer
86313         portable. Use `sed 1q' instead.
86314
86315 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
86316
86317         * m4/codeset.m4: Upgrade to gettext-0.11.
86318         * m4/gettext.m4: Upgrade to gettext-0.11.
86319         * m4/glibc21.m4: Upgrade to gettext-0.11.
86320         * m4/iconv.m4: Upgrade to gettext-0.11.
86321         * m4/isc-posix.m4: Upgrade to gettext-0.11.
86322         * m4/lcmessage.m4: Upgrade to gettext-0.11.
86323         * m4/lib-ld.m4: New file, from gettext-0.11.
86324         * m4/lib-link.m4: New file, from gettext-0.11.
86325         * m4/lib-prefix.m4: New file, from gettext-0.11.
86326         * m4/progtest.m4: Upgrade to gettext-0.11.
86327
86328 2002-02-15  Paul Eggert  <eggert@twinsun.com>
86329
86330         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
86331         (jm_PREREQ): Use it.
86332
86333 2002-02-15  Paul Eggert  <eggert@twinsun.com>
86334
86335         * lib/posixver.c, lib/posixver.h: New files.
86336         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86337
86338 2002-02-02  Paul Eggert  <eggert@twinsun.com>
86339             Bruno Haible  <bruno@clisp.org>
86340
86341         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
86342         (fwrite_success_callback): New declaration.
86343         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
86344         print_unicode_char. Call failure callback instead of error.
86345         (fwrite_success_callback): New function.
86346         (exit_failure_callback): New function.
86347         (fallback_failure_callback): New function.
86348         (print_unicode_char): Call unicode_to_mb.
86349
86350 2002-01-26  Jim Meyering  <meyering@lucent.com>
86351
86352         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
86353         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
86354
86355 2002-01-26  Jim Meyering  <meyering@lucent.com>
86356
86357         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
86358
86359 2002-01-22  Paul Eggert  <eggert@twinsun.com>
86360
86361         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
86362
86363 2002-01-22  Jim Meyering  <meyering@lucent.com>
86364
86365         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
86366         Otherwise, some versions of automake would omit the rule that makes
86367         Makefile from Makefile.in.
86368
86369 2002-01-21  Paul Eggert  <eggert@twinsun.com>
86370
86371         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
86372         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
86373         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
86374         (memcoll): Set errno to zero if there is no error.
86375
86376         * lib/quotearg.c (quotearg_buffer_restyled):
86377         Fix bug with quoting buffers containing NUL when backslashing escapes.
86378         This bug was exposed by the other changes in this patch.
86379         (quotearg_n_options): New arg ARGSIZE.
86380         All callers changed.
86381         (quoting_options_from_style): New function.
86382         (quotearg_n_style): Use it.
86383         (quotearg_n_style_mem): New function.
86384
86385         * lib/quotearg.h (quotearg_n_style_mem): New function.
86386
86387 2002-01-19  Jim Meyering  <meyering@lucent.com>
86388
86389         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
86390         Remove useless quotes: DF_PROG="df".
86391         * m4/strnlen.m4: New file.
86392
86393 2002-01-16  Paul Eggert  <eggert@twinsun.com>
86394
86395         * lib/backupfile.c (ISDIGIT): Comment fix.
86396         * lib/getdate.y (ISDIGIT): Likewise.
86397         * lib/posixtm.c (ISDIGIT, year): Likewise.
86398         * lib/strverscmp.c (ISDIGIT): Likewise.
86399         * lib/userspec.c (ISDIGIT): Likewise.
86400
86401 2002-01-16  Jim Meyering  <meyering@lucent.com>
86402
86403         * lib/getdate.y: Add three semicolons, each just before a closing
86404         brace. Bison (as of version 1.31) no longer papers over that mistake.
86405
86406 2002-01-05  Jim Meyering  <meyering@lucent.com>
86407
86408         * lib/version-etc.c (version_etc_copyright): Update copyright year.
86409
86410 2001-12-19  Paul Eggert  <eggert@twinsun.com>
86411
86412         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
86413         not silently exit merely because the output buffer happens to
86414         have nothing pending.
86415
86416 2001-12-18  Paul Eggert  <eggert@twinsun.com>
86417
86418         See the big note in ../ChangeLog.
86419         * lib/human.c (suffixes): Prefer K to k for 1024.
86420         (generate_suffix_backwards): New function.
86421         (human_readable_inexact): Use it.
86422         * lib/xstrtol.c (__xstrtol): If there is no number but there
86423         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
86424         Accept 'K' as well as 'k'.
86425
86426 2001-12-15  Jim Meyering  <meyering@lucent.com>
86427
86428         * lib/regex.h (__restrict_arr): Update from libc.
86429
86430         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
86431         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
86432         (STREQ): Define.
86433
86434 2001-12-14  Jim Meyering  <meyering@lucent.com>
86435
86436         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
86437         Suggestion from Bruno Haible.
86438
86439 2001-12-10  Jim Meyering  <meyering@lucent.com>
86440
86441         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
86442         xrealloc, Instead, include "xalloc.h".
86443         (initbuffer): Don't cast xmalloc return value to char*.
86444         (readline): Reword comment.
86445         Don't cast xrealloc return value to char*
86446         Return NULL, not 0.
86447
86448 2001-12-09  Jim Meyering  <meyering@lucent.com>
86449
86450         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
86451         about `signed and unsigned type in conditional expression'.
86452         * lib/posixtm.c (posix_time_parse): Likewise.
86453
86454         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
86455
86456         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
86457         to avoid a pedantic warning.
86458
86459         * lib/getstr.c: Don't include assert.h.
86460         (getstr): Remove warning-evoking assertions.
86461         Return -1 if offset parameter is out of bounds.
86462         Change the type of a local from int to size_t.
86463
86464         * lib/strftime.c (my_strftime_localtime_r): Include this function
86465         definition in the `#if ! HAVE_TM_GMTOFF' block.
86466
86467         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
86468         Include xalloc.h instead.
86469
86470 2001-12-02  Jim Meyering  <meyering@lucent.com>
86471
86472         * lib/tempname.c: Don't declare getenv, thus reverting the change of
86473         2001-11-18.  It's no longer necessary, now that stdlib.h is always
86474         included.
86475
86476         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
86477         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
86478
86479 2001-11-30  Akim Demaille  <akim@epita.fr>
86480
86481         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
86482         before being defined.
86483
86484 2001-11-27  Paul Eggert  <eggert@twinsun.com>
86485
86486         * lib/quotearg.h (quotearg_n, quotearg_n_style):
86487         First arg is int, not unsigned.
86488         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
86489         (SIZE_MAX, UINT_MAX): New macros.
86490         (quotearg_n_options): Abort if N is negative.
86491         Avoid overflow check on hosts where size_t is 64 bits and int
86492         is 32 bits, as overflow is impossible there.
86493         Fix off-by-one typo that caused unnecessary reallocation.
86494
86495 2001-11-27  Jim Meyering  <meyering@lucent.com>
86496
86497         * lib/tempname.c: Merge with version from libc.
86498         * lib/regex.c: Likewise.
86499
86500         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
86501         systems for which STDC_HEADERS is 0, it was not included, resulting in
86502         a warning about an integer-to-pointer conversion problem with getenv.
86503         Reported by Volker Borchert.
86504
86505 2001-11-26  Jim Meyering  <meyering@lucent.com>
86506
86507         * lib/gtod.h: Remove file.
86508         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
86509         * lib/gettimeofday.c: Don't include gtod.h.
86510         (GTOD_init): Remove function.
86511         (rpl_gettimeofday): Do its job here instead, rather than aborting.
86512         Suggestion from Volker Borchert.
86513
86514 2001-11-23  Jim Meyering  <meyering@lucent.com>
86515
86516         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
86517         it.
86518         * lib/hash.c (struct hash_table): Define it here instead.
86519
86520 2001-11-22  Jim Meyering  <meyering@lucent.com>
86521
86522         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
86523
86524 2001-11-20  Jim Meyering  <meyering@lucent.com>
86525
86526         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
86527         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
86528
86529 2001-11-19  Jim Meyering  <meyering@lucent.com>
86530
86531         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
86532         directory.  Use "conftestXXXXXX" as the template.
86533         Suggestion from Paul Eggert.
86534
86535         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
86536         immediately, so the test doesn't mistakenly hit the max-open-files
86537         limit.
86538
86539 2001-11-18  Paul Eggert  <eggert@twinsun.com>
86540
86541         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
86542         (TEMPORARIES): New macro.
86543         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
86544         removes an artificial limitation (e.g. HP-UX 10.20, where
86545         TMP_MAX is 17576).
86546
86547 2001-11-18  Jim Meyering  <meyering@lucent.com>
86548
86549         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
86550
86551 2001-11-18  Jim Meyering  <meyering@lucent.com>
86552
86553         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
86554         on SunOS 4.
86555
86556         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
86557         files will be created before anything else.
86558
86559 2001-11-17  Paul Eggert  <eggert@twinsun.com>
86560
86561         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
86562         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
86563
86564 2001-11-17  Jim Meyering  <meyering@lucent.com>
86565
86566         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
86567         Prompted by a report from Bob Proulx.
86568
86569         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
86570         Instead, require UTILS_FUNC_MKSTEMP.
86571
86572 2001-11-17  Jim Meyering  <meyering@lucent.com>
86573
86574         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
86575         Now, that's done as part of AC_FUNC_STRTOD.
86576
86577 2001-11-17  Jim Meyering  <meyering@lucent.com>
86578
86579         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
86580         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
86581         rather than group writable.  Patch by Juan F. Codagnone.
86582
86583         * lib/readtokens.c: Remove explicit declarations of xmalloc and
86584         xrealloc, Instead, include "xalloc.h".
86585
86586         * lib/mountlist.c: Include unlocked-io.h after all system headers.
86587         Remove explicit declarations of xmalloc, xrealloc,
86588         and xstrdup.  Instead, include "xalloc.h".
86589
86590         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
86591         unlocked-io.h.
86592         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
86593         Likewise.
86594         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
86595
86596         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
86597         Reported by Padraig Brady.
86598
86599         * lib/mkstemp.c: #undef mkstemp.
86600         Include config.h.
86601         (rpl_mkstemp): Rename from mkstemp.
86602         Protoize.
86603
86604 2001-11-16  Jim Meyering  <meyering@lucent.com>
86605
86606         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
86607         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
86608         determine the amount of total physical memory, use pstat_getstatic.
86609         HPUX-11 doesn't define _SC_PHYS_PAGES.
86610         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
86611         If sysconf couldn't be used to determine the amount of available
86612         physical memory, use both pstat_getstatic and pstat_getdynamic.
86613         Based on a patch from Bob Proulx.
86614
86615 2001-11-10  Jim Meyering  <meyering@lucent.com>
86616
86617         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
86618         (jm_PREREQ): Use it.
86619
86620 2001-11-09  Jim Meyering  <meyering@lucent.com>
86621
86622         * m4/jm-macros.m4: Require autoconf-2.52f.
86623         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
86624         Use these AC_-prefixed names, not the AM_-prefixed ones.
86625
86626         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
86627
86628 2001-11-05  Jim Meyering  <meyering@lucent.com>
86629
86630         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
86631
86632 2001-11-04  Jim Meyering  <meyering@lucent.com>
86633
86634         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
86635         $DEFS.
86636
86637 2001-11-03  Jim Meyering  <meyering@lucent.com>
86638
86639         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
86640         of AC_DEFUN.
86641
86642         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
86643         know the name of the variable in the macro definition.
86644
86645 2001-11-03  Jim Meyering  <meyering@lucent.com>
86646
86647         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
86648         in argmatch_to_argument call.
86649
86650         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
86651         argument.
86652
86653         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
86654         e.g., a fault due to an attempt to free a NULL pointer.
86655
86656 2001-11-01  Jim Meyering  <meyering@lucent.com>
86657
86658         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
86659         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
86660
86661 2001-11-01  Jim Meyering  <meyering@lucent.com>
86662
86663         * lib/dirfd.c, lib/dirfd.h: New files.
86664         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
86665
86666         * lib/hash.c (hash_print) [TESTING]: Clean up.
86667
86668 2001-10-22  Paul Eggert  <eggert@twinsun.com>
86669
86670         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
86671         to avoid a warning if -Wall.
86672
86673 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
86674
86675         * README: New file
86676         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
86677         (per RMS's instructions, this is now the canonical source)
86678         * lgpl/, gpl/: New directories.
86679
86680 2001-10-21  Paul Eggert  <eggert@twinsun.com>
86681
86682         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
86683
86684 2001-10-21  Jim Meyering  <meyering@lucent.com>
86685
86686         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
86687         this code would end up calling gettext even in packages built
86688         with --disable-nls.
86689         * lib/getopt.c (_): Likewise.
86690         * lib/regex.c (_): Likewise.
86691
86692 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86693
86694         * m4/error.m4 (jm_PREREQ_ERROR):
86695         Do not invoke AC_CHECK_FUNCS with strerror_r, as
86696         AC_FUNC_STRERROR_R does that.
86697         Check for strerror declaration.
86698
86699         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
86700         are supposed to have them these days.
86701         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
86702         Merge changes from latest Autoconf CVS.
86703         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
86704         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
86705         POSIX decided to standardize on the int flavor of strerror_r.
86706
86707 2001-10-20  Paul Eggert  <eggert@twinsun.com>
86708
86709         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
86710         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
86711         Use strerror_r that is only a macro, even if it is not a function.
86712         (strerror): Check for HAVE_DECL_STRERROR before declaring.
86713         (private_strerror): Use prototypes, not old-style function definition.
86714         (print_errno_message): New function.
86715         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
86716         char*-flavored one.
86717         (error_tail, error, error_at_line): Use it.
86718
86719 2001-10-11  Jim Meyering  <meyering@lucent.com>
86720
86721         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
86722         and quote_n (1, ... to avoid clobbering a buffer.
86723
86724 2001-10-05  Jim Meyering  <meyering@lucent.com>
86725
86726         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
86727         hash-pjw.h.
86728         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
86729         * lib/hash-pjw.h: New file.
86730
86731 2001-09-30  Jim Meyering  <meyering@lucent.com>
86732
86733         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
86734         `struct fsstat' has the `f_fstypename' member.
86735         Use that to define FS_TYPE, which is now used to make
86736         the getfsstat link test tighter.
86737
86738 2001-09-30  Jim Meyering  <meyering@lucent.com>
86739
86740         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
86741         Include <sys/ucred.h>, for Apple Darwin.
86742         Include sys/mount.h and sys/fs_types.h only if available.
86743         (FS_TYPE): Define.
86744         (read_filesystem_list): Use FS_TYPE.
86745
86746 2001-09-29  Paul Eggert  <eggert@twinsun.com>
86747
86748         * lib/exclude.c (excluded_filename): 0 -> false, since it's
86749         a boolean context.
86750
86751 2001-09-29  Jim Meyering  <meyering@lucent.com>
86752
86753         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86754         [one-argument getmntent function]): Include stdio.h before mntent.h.
86755         SunOS 4.1.x needs it for the declaration of `FILE'.
86756         Patch by Volker Borchert.
86757
86758         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
86759         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
86760         sys/fs_types.h, and make the link-test for getfsstat guard #include
86761         directives with appropriate #if HAVE_*_H tests so that we can
86762         detect getfsstat on Apple Darwin1.3.7 systems.
86763         Reported by Nelson Beebe.
86764         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
86765
86766 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86767
86768         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86769         #defines strtoimax.  Also treat the other strto* functions
86770         like strtoimax.
86771
86772         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
86773         Check for strtoul and strtoumax,
86774         as those declarations are made even in the signed case.
86775         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
86776         Likewise, for strtol and strtoimax.
86777
86778 2001-09-28  Paul Eggert  <eggert@twinsun.com>
86779
86780         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
86781         #defines strtoimax.  Also treat the other strto* functions
86782         like strtoimax.
86783
86784         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
86785         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
86786         (strtoimax, strtoumax): Do not declare if already defined as a macro.
86787
86788 2001-09-26  Jim Meyering  <meyering@lucent.com>
86789
86790         Most macros in unlocked-io.h had the wrong number of arguments.
86791         * lib/gen-uio: New script.
86792         (USE_UNLOCKED_IO): Define to 1 if not already defined.
86793         * lib/unlocked-io.hin: Remove file.
86794         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
86795         rather than trying to embed it here.
86796         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
86797         Reported by Padraig Brady.
86798
86799 2001-09-25  Volker Borchert  <bt@teknon.de>
86800
86801         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
86802         `result'.
86803
86804 2001-09-24  Jim Meyering  <meyering@lucent.com>
86805
86806         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
86807
86808 2001-09-23  Jim Meyering  <meyering@lucent.com>
86809
86810         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
86811         instead of the mere test for existence of mntent.h.  The latter
86812         would get a false-positive on AIX 3.4 systems.
86813         In the outer getmntent if-block, don't die if neither of the getmntent
86814         tests succeeds.  Instead, just fall through and continue with the
86815         remaining tests.
86816
86817 2001-09-23  Jim Meyering  <meyering@lucent.com>
86818
86819         * lib/mountlist.c: Remove useless parentheses in #if directives.
86820         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
86821         the deprecated MOUNTED symbol is no longer defined in mntent.h.
86822
86823 2001-09-22  Jim Meyering  <meyering@lucent.com>
86824
86825         * m4/gettext.m4: New file.  From gettext.
86826         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
86827         * m4/progtest.m4: Likewise
86828         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
86829         * m4/glibc21.m4: Likewise.
86830
86831         * m4/libintl.m4: Remove.  No longer used.
86832
86833 2001-09-22  Jim Meyering  <meyering@lucent.com>
86834
86835         * lib/localcharset.c: Update from latest gettext.
86836         * lib/config.charset: Likewise.
86837
86838 2001-09-20  Jim Meyering  <meyering@lucent.com>
86839
86840         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
86841         strtoimax.
86842         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
86843         strtoumax.
86844
86845 2001-09-20  Jim Meyering  <meyering@lucent.com>
86846
86847         * lib/xstrtol.c (strtoimax): Guard declaration with
86848         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
86849         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
86850         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
86851         (strtoumax): Likewise, for completeness (it wasn't necessary).
86852
86853 2001-09-17  Paul Eggert  <eggert@twinsun.com>
86854
86855         * lib/strtoimax.c (HAVE_LONG_LONG):
86856         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
86857         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
86858         to work around bug in IBM C compiler.
86859
86860 2001-09-17  Jim Meyering  <meyering@lucent.com>
86861
86862         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
86863         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
86864         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
86865         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
86866         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
86867         whenever the right hand side need not be expanded by the shell.
86868
86869 2001-09-16  Paul Eggert  <eggert@twinsun.com>
86870
86871         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
86872         library.  It's not correct, as some older glibcs are buggy.
86873         fnmatch wasn't fixed until glibc 2.2.
86874
86875         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
86876         special shell magic here.
86877
86878 2001-09-16  Jim Meyering  <meyering@lucent.com>
86879
86880         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
86881         * m4/jm-macros.m4: Require it.
86882
86883 2001-09-16  Jim Meyering  <meyering@lucent.com>
86884
86885         * lib/mkdir.c: New file.
86886
86887 2001-09-15  Jim Meyering  <meyering@lucent.com>
86888
86889         * m4/jm-macros.m4: Check for help2man.
86890
86891 2001-09-11  Jim Meyering  <meyering@lucent.com>
86892
86893         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
86894         The body, by Paul Eggert, was moved here from configure.in.
86895         * m4/jm-macros.m4: Require UTILS_HOST_OS.
86896
86897 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86898
86899         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
86900         (jm_PREREQ): Use it.
86901
86902 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86903
86904         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
86905         Use ssize_t, not int, to store result of readlink.
86906         Check for ssize_t overflow as well as size_t overflow,
86907         as POSIX says the result of readlink is implementation-defined
86908         when ssize_t overflows.
86909         Remove unnecessary cast to char*.
86910         Use free+malloc instead of realloc, as the storage doesn't need
86911         to be preserved and it's clearer and can be more efficient that way.
86912         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
86913         * lib/xreadlink.h (xreadlink): Update prototype.
86914
86915 2001-09-04  Paul Eggert  <eggert@twinsun.com>
86916
86917         * lib/xgetcwd.c: Revert some of the previous change; intead,
86918         fix the HAVE_GETCWD_NULL code to behave more like the
86919         !HAVE_GETCWD_NULL code used to.
86920
86921         Include "xalloc.h".
86922         (xgetcwd): Do not return NULL when memory is exhausted; instead,
86923         invoke xalloc_die.
86924
86925 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86926
86927         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
86928         sys/param.h, as pathmax.h includes them.
86929
86930 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86931
86932         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
86933         (jm_PREREQ_XGETCWD): New macro.
86934
86935         * m4/getcwd.m4: New file.
86936
86937 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86938
86939         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
86940         like the HAVE_GETCWD_NULL code.
86941         Include pathmax.h if not HAVE_GETCWD.
86942         Do not include xalloc.h.
86943         (INITIAL_BUFFER_SIZE): New symbol.
86944         Do not use xmalloc / xrealloc, since the caller is responsible for
86945         handling errors.  Preserve errno around `free' during failure.
86946         Do not overrun buffer when using getwd.
86947
86948 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86949
86950         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
86951         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
86952         getcwd (NULL, 0).
86953
86954 2001-09-03  Paul Eggert  <eggert@twinsun.com>
86955
86956         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
86957         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
86958         spotted by Jim Meyering.
86959
86960 2001-09-03  Jim Meyering  <meyering@lucent.com>
86961
86962         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
86963         failure.
86964
86965 2001-09-02  Jim Meyering  <meyering@lucent.com>
86966
86967         * lib/error.c: Update from GNU libc.
86968
86969 2001-09-01  Jim Meyering  <meyering@lucent.com>
86970
86971         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
86972         Used by df.
86973
86974 2001-09-01  Jim Meyering  <meyering@lucent.com>
86975
86976         * lib/xreadlink.c: New file.
86977         * lib/xreadlink.h: New file.
86978         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
86979         xreadlink.h.
86980
86981         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
86982         doesn't conflict with sparc Solaris 7's definition in
86983         /usr/include/sys/int_types.h.
86984
86985         * lib/exclude.c: Use `""', not `<>' to #include non-system header
86986         files.
86987         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
86988         and strncasecmp as r-values.  Unixware didn't have declarations.
86989
86990 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86991
86992         * lib/xstrtol.h: Add copyright notice.
86993         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
86994         LONGINT_INVALID_SUFFIX_CHAR.
86995
86996 2001-08-31  Paul Eggert  <eggert@twinsun.com>
86997
86998         * lib/xstrtol.c (strtoimax): New decl.
86999
87000 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87001
87002         * lib/xgetcwd.c: Don't include pathmax.h.
87003         Include stdlib.h and unistd.h if available.
87004         Include xalloc.h.
87005         (xmalloc, xstrdup, free): Remove decls.
87006         (xgetcwd): Don't assume sizes fit in unsigned.
87007         Check for overflow when computing sizes.
87008         Simplify reallocation code.
87009
87010 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87011
87012         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
87013         a directory's st_size can have an arbitrary value, so the old
87014         usage could waste an arbitrary amount of memory.  All uses
87015         changed.
87016         * lib/savedir.h: Update prototype.
87017
87018 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87019
87020         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
87021
87022         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
87023         old strtoimax.c.
87024
87025         Also, make the following further changes to make this file's
87026         configuration more similar to that of strtol.c:
87027         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
87028         (strtoumax, uintmax_t, strtoull, strtol): Remove.
87029         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
87030         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
87031         changed to signed values.
87032
87033         And make the following changes as well:
87034         Fix copyright notice, as 1999 was missing.
87035         (verify): New macro.
87036         (strtoimax): Check sizes at compile-time, not run-time.
87037         Prefer strtol to strtoll if both work.
87038         (main): Remove; it was not that useful and was a pain to maintain.
87039
87040         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
87041
87042 2001-08-31  Jim Meyering  <meyering@lucent.com>
87043
87044         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
87045         Use an initial, malloc'd, buffer of length 128 rather than
87046         a statically allocated one of length 1024.
87047
87048 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87049
87050         Simplify code, partly by assuming autoconf 2.52 semantics.
87051
87052         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
87053
87054         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
87055         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
87056         All uses removed.
87057         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
87058         Move AC_REQUIRE to next-to-top level, to avoid confusion.
87059         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
87060         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
87061         jm_AC_HEADER_INTTYPES_H.
87062         * m4/jm-macros.m4 (jm_MACROS): Likewise.
87063
87064         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
87065
87066         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
87067         Quote first arg of AC_DEFUN.
87068         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
87069         since they are needed to parse the include file even if we need
87070         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
87071         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
87072         but with opposite signedness.
87073
87074 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87075
87076         Merge 'exclude' changes from tar 1.13.22.
87077         This fixes one or two unlikely storage allocation overflow bugs,
87078         but doesn't change user-visible behavior otherwise.
87079
87080 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87081
87082         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
87083         (jm_PREREQ_EXCLUDE): New macro.
87084
87085 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87086
87087         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
87088         tm to be declared.
87089
87090 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87091
87092         * lib/hash.c: Remove '2001' from copyright notice.
87093
87094 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87095
87096         * lib/full-write.h: New file.
87097         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
87098         * lib/full-write.c: Correct credits, as cccp.c no longer
87099         exists and anyway it was so heavily changed from the old cccp
87100         code as to be unrecognizable.  Include full-write.h.
87101         (full_write): Return size_t, with short writes meaning failure.
87102         All callers changed.  This fixes a bug with large buffers
87103         on 64-bit hosts.
87104         * lib/utime.c: Include full-write.h.
87105
87106 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87107
87108         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
87109         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
87110         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
87111         Include if available.
87112         (<xalloc.h>): Include
87113         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
87114         (verify): New macro.  Use it to verify that EXCLUDE macros do not
87115         collide with FNM macros.
87116         (struct patopts): New struct.
87117         (struct exclude): Use it, as exclude patterns now come with options.
87118         (new_exclude): Support above changes.
87119         (new_exclude, add_exclude_file):
87120         Initial size must now be a power of two to simplify overflow checking.
87121         (free_exclude, fnmatch_no_wildcards): New function.
87122         (excluded_filename): No longer requires options arg, as the options
87123         are determined by add_exclude.  Now returns bool, not int.
87124         (excluded_filename, add_exclude):
87125         Add support for the fancy new exclusion options.
87126         (add_exclude, add_exclude_file): Now takes int options arg.
87127         Check for arithmetic overflow when computing sizes.
87128         (add_exclude_file): xrealloc might modify errno, so don't
87129         realloc until after errno might be used.
87130
87131         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
87132         New macros.
87133         (free_exclude): New decl.
87134         (add_exclude, add_exclude_file): Now takes int options arg.
87135         (excluded_filename): No longer requires options arg, as the options
87136         are determined by add_exclude.  Now returns bool, not int.
87137
87138 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87139
87140         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
87141
87142 2001-08-27  Jim Meyering  <meyering@lucent.com>
87143
87144         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
87145
87146         * lib/version-etc.c (N_): Remove definition.
87147         Revert most of last change.
87148         Instead, simply don't mark the `Copyright...' string for translation.
87149         Based on advice from Paul Eggert.
87150
87151         * lib/strtoxmax.c: Tweak comment.
87152
87153 2001-08-26  Jim Meyering  <meyering@lucent.com>
87154
87155         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
87156
87157         * m4/xstrtoimax.m4: New file.
87158         * m4/xstrtoumax.m4: Add comments explaining why we
87159         AC_REPLACE_FUNCS(strtol).
87160
87161 2001-08-26  Jim Meyering  <meyering@lucent.com>
87162
87163         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
87164         of copyright with `%s' so translators don't get an untranslated
87165         message in 2002.
87166         (COPYRIGHT_YEAR): Define.
87167         (version_etc): Use fprintf rather than fputs.
87168         Suggestion from Ulrich Drepper.
87169
87170         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
87171
87172         * lib/strtoll.c: New file, from GNU libc.
87173         * lib/xstrtoimax.c: New file.
87174
87175         * lib/xstrtol.h: Add xstrtoimax.
87176         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
87177         * lib/strtoimax.c: New file.  Likewise, but first define
87178         STRTOUXMAX_SIGNED.
87179
87180         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
87181         ...
87182         * lib/strtoxmax.c: ... then renamed to this.
87183
87184 2001-08-18  Paul Eggert  <eggert@twinsun.com>
87185
87186         * m4/inttypes.m4: Add AC_PREREQ(2.13).
87187         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
87188         (jm_AC_TYPE_INTMAX_T): New macro.
87189         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
87190
87191         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
87192
87193         * m4/longlong.m4: Renamed from ulonglong.m4.
87194         * m4/inttypes.m4: Renamed from inttypes_h.m4.
87195         * m4/uintmax_t.m4: Removed.
87196
87197 2001-08-13  Paul Eggert  <eggert@twinsun.com>
87198
87199         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
87200         Port to Solaris 8, where 'sed' requires a space after the 'r'
87201         command, and where sh dislikes "$/".  Clean up the spacing a bit.
87202         Redirect output to $tmp just once.
87203
87204 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
87205
87206         * lib/addext.c (<errno.h>): Include.
87207         (errno): Declare if not defined.
87208         (addext): Work correctly when pathconf returns -1 and leaves
87209         errno alone because there is no limit.  Also, work even if
87210         pathconf returns a value greater than SIZE_MAX.
87211
87212 2001-08-12  Jim Meyering  <meyering@lucent.com>
87213
87214         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
87215         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
87216         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
87217         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
87218         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
87219         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
87220         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
87221         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
87222         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
87223         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
87224         utime.m4, utimes.m4, xstrtoumax.m4:
87225         Quote the first argument in each use of AC_DEFUN.
87226
87227 2001-08-12  Jim Meyering  <meyering@lucent.com>
87228
87229         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
87230         Simply `return getcwd (NULL, 0);'.
87231         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
87232         Use 1300 as initial value for length, not PATH_MAX.
87233
87234         * lib/pathmax.h: Clean up cpp syntax.
87235
87236 2001-08-12  Jim Meyering  <meyering@lucent.com>
87237
87238         * lib/gettimeofday.c: New file.
87239         * lib/gtod.h: New file.
87240         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
87241
87242 2001-08-05  Jim Meyering  <meyering@lucent.com>
87243
87244         * m4/jm-macros.m4: Require autoconf-2.52.
87245
87246 2001-08-04  Jim Meyering  <meyering@lucent.com>
87247
87248         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
87249         stmt, to get in sync with glibc.
87250
87251 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87252
87253         The following changes are from gettext 0.10.39 as maintained by
87254         Bruno Haible.
87255
87256         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
87257         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
87258         with inverted sense.  All uses changed.
87259
87260         * lib/mbswidth.c: Don't include <limits.h>.
87261         Include <stdlib.h> and <string.h> unconditionally.
87262         (iswcntrl, mbsinit, ISCNTRL): New macros.
87263         (mbsnwidth): Use K&R style function declarations.
87264         Don't bother checking for MB_LEN_MAX == 1, since the compiler
87265         can optimize it when MB_CUR_MAX == 1.
87266         The width of control characters is zero, not 1.
87267
87268 2001-08-03  Paul Eggert  <eggert@twinsun.com>
87269
87270         The following changes are from gettext 0.10.39 as maintained by
87271         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
87272
87273         * m4/codeset.m4: Upgrade to serial AM1.
87274         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
87275         all uses changed.  Quote first arg of AC_DEFUN.
87276         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
87277
87278         * m4/iconv.m4: Upgrade to serial AM2.
87279         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
87280         Add --with-libconv-prefix.
87281         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
87282         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
87283         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
87284         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
87285         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
87286
87287         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
87288         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
87289         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
87290         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
87291         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
87292         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
87293         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
87294         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
87295         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
87296
87297         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
87298         string.h any more.
87299
87300         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
87301         not the default value.
87302
87303         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
87304         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
87305         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
87306         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
87307         Also check for iswcntrl, used for wcwidth fallback.
87308         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
87309         to Autoconf 2.13.
87310
87311 2001-08-03  Jim Meyering  <meyering@lucent.com>
87312
87313         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
87314         as it was in the original.  Reported by Paul Eggert.
87315
87316 2001-07-16  Jim Meyering  <meyering@lucent.com>
87317
87318         * m4/gettimeofday.m4: New file.
87319         Prompted by a report from Bernhard Baehr.
87320
87321 2001-07-15  Jim Meyering  <meyering@lucent.com>
87322
87323         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
87324         stuff. Now it's in ../Makefile.cfg.
87325
87326 2001-07-15  Jim Meyering  <meyering@lucent.com>
87327
87328         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
87329         (BUILT_SOURCES): Add unlocked-io.h.
87330         (io_functions): Define.
87331         (unlocked-io.h): New rule.
87332         (DISTCLEANFILES): Add unlocked-io.h.
87333         (all-local): Depend on unlocked-io.h, to ensure it is created.
87334
87335         * lib/unlocked-io.hin: New file
87336
87337         * lib/regex.c: Update from glibc.
87338
87339 2001-07-05  Jim Meyering  <meyering@lucent.com>
87340
87341         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
87342         recommendation.
87343         (libfetish_a_SOURCES): Put all .h files here instead.
87344         Remove a thus-exposed (better checks in automake) duplicate and
87345         two unnecessary .h files.
87346
87347 2001-07-04  Jim Meyering  <meyering@lucent.com>
87348
87349         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
87350         that generates jm-glibc-io.m4 so that it doesn't trigger any make
87351         distcheck failure.
87352
87353 2001-07-02  Jim Meyering  <meyering@lucent.com>
87354
87355         The following changes were prompted by suggestions from Bruno Haible.
87356
87357         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
87358         is now generated.
87359         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
87360         definition of EXTRA_DIST.
87361         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
87362         ensure that the generated file is created/updated whenever the list
87363         of $(unlocked_functions) is changed.
87364         (jm-glibc-io.m4): New rule.
87365         (unlocked-io.h): New rule -- currently unused.
87366
87367 2001-06-24  Jim Meyering  <meyering@lucent.com>
87368
87369         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
87370         unmatched right bracket, rather than kludging it with an extra,
87371         falsely-matching quote in a comment.  Patch by Akim Demaille.
87372
87373 2001-06-11  Jim Meyering  <meyering@lucent.com>
87374
87375         * lib/regex.c: Update from GNU libc.
87376
87377 2001-05-27  Jim Meyering  <meyering@lucent.com>
87378
87379         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
87380         Check for ut_type in struct utmp.
87381
87382 2001-05-27  Jim Meyering  <meyering@lucent.com>
87383
87384         * lib/readutmp.h (UT_TYPE): Define.
87385
87386 2001-05-24  Jim Meyering  <meyering@lucent.com>
87387
87388         * lib/argmatch.c: Include "quote.h".
87389         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
87390         quote function.  Reported by Göran Uddeborg.
87391
87392 2001-05-22  Jim Meyering  <meyering@lucent.com>
87393
87394         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
87395         now that we use the package-supplied version unconditionally.
87396         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
87397
87398 2001-05-21  Jim Meyering  <meyering@lucent.com>
87399
87400         * m4/regex.m4: Change a couple backticks to single quotes to avoid
87401         shell syntax errors.
87402
87403 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87404
87405         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
87406
87407 2001-05-20  Paul Eggert  <eggert@twinsun.com>
87408
87409         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
87410         Don't bother to check library strftime, since
87411         we'll be using our own my_strftime function anyway.
87412         Define my_strftime instead of strftime.
87413
87414 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
87415
87416         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
87417         which is not yet declared.
87418
87419 2001-05-15  Jim Meyering  <meyering@lucent.com>
87420
87421         * m4/regex.m4: Use proper quoting so brackets appear in the test
87422         program.
87423         Reported by, and with help from, Bruno Haible.
87424
87425 2001-05-13  Jim Meyering  <meyering@lucent.com>
87426
87427         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
87428         undefined.
87429
87430 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87431
87432         dirname code cleanup.  base_name now behaves more compatibly
87433         with POSIX basename when given file names that have trailing
87434         slashes, and similarly for dir_name.  Add new primitives
87435         base_len and dir_len.  Put the directory-name-related decls
87436         into dirname.h.
87437
87438         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
87439         * lib/backupfile.c (base_name): Likewise.
87440         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
87441         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
87442         * lib/makepath.c (strip_trailing_slashes): Likewise.
87443         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
87444         ISSLASH): Likewise.
87445         * lib/rename.c (strip_trailing_slashes): Likewise.
87446         * lib/same.c (base_name): Likewise.
87447         * lib/stripslash.c (ISSLASH): Likewise.
87448
87449         * lib/addext.c: Include <dirname.h> after size_t is defined.
87450         * lib/backupfile.c: Likewise.
87451
87452         * lib/addext.c (addext): Use base_len to trim redundant
87453         trailing slashes instead of doing it ourselves.
87454         But do not trim the last slash if it is not redundant.
87455
87456         * lib/backupfile.c (find_backup_file_name,
87457         max_backup_version): Use base_len instead of rolling it ourselves.
87458         Handle the case of "" and (on DOS) "C:" correctly.
87459
87460         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
87461         needed. Include <string.h>, <dirname.h>.
87462         (base_name): Allow file names ending in slashes, other than names
87463         that are all slashes.  In this case, return the basename followed
87464         by the slashes.  This is more general, and can be used in places
87465         where the original base_name purposely had an assertion failure.
87466         (base_len): New function.
87467
87468         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
87469         Do not include <assert.h>; no longer needed.
87470         Include xalloc.h.
87471         (memrchr): Remove decl.
87472         (dir_name_r): Remove.
87473         (dir_len): Renamed from dirlen.  All callers changed.
87474         Rewrite in terms of base_name, for simplicity and consistency.
87475         (dir_name): Never return NULL.  All callers changed.
87476         Do not include <stdlib.h> in test program; no longer needed.
87477         return 0; is fine for test program.
87478
87479         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
87480         New macros.
87481         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
87482
87483         * lib/path-concat.c (path_concat): Use base_len to compute
87484         base length, not strlen; this means we cannot rely on memcpy
87485         to null-terminate.
87486
87487         * lib/same.c (STREQ): Remove.
87488         (same_name): Handle the case where the basename ends in trailing '/'.
87489
87490         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
87491         a slash was stripped.  Do not strip the last slash after a
87492         file system prefix.
87493
87494 2001-05-11  Paul Eggert  <eggert@twinsun.com>
87495
87496         * lib/Makefile.am (libfetish_a_SOURCES):
87497         Add strftime.c, since we now compile it on all hosts.
87498
87499         * lib/strftime.c (my_strftime):
87500         Define to nstrftime if emacs, but only if my_strftime is not defined.
87501         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
87502         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
87503         Add one more extra argument: a nanoseconds value.
87504         All uses changed.
87505         (ns): New macro.
87506         (my_strftime function): Add %N format.
87507         (emacs_strftimeu): Renamed from emacs_strftime,
87508         with extra ut argument.
87509
87510 2001-05-09  Paul Eggert  <eggert@twinsun.com>
87511
87512         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
87513
87514 2001-04-21  Jim Meyering  <meyering@lucent.com>
87515
87516         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
87517         doesn't interfere.
87518
87519 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
87520
87521         * m4/ftruncate.m4: Check for chsize.
87522         Link with ftruncate.o unconditionally if ftruncate is missing.
87523         This was required when cross-compiling to i586-mingw32msvc.
87524
87525 2001-04-08  Jim Meyering  <meyering@lucent.com>
87526
87527         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
87528         recomputed; that's necessary when the offset spans a DST transition.
87529         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
87530
87531 2001-04-02  Jim Meyering  <meyering@lucent.com>
87532
87533         * lib/regex.h, regex.c: Update from GNU libc.
87534
87535 2001-03-24  Jim Meyering  <meyering@lucent.com>
87536
87537         * m4/jm-macros.m4: Require autoconf-2.49d.
87538
87539 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
87540
87541         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
87542
87543 2001-03-19  Paul Eggert  <eggert@twinsun.com>
87544
87545         * lib/version-etc.c (version_etc_copyright): Update to 2001.
87546
87547 2001-03-17  Jim Meyering  <meyering@lucent.com>
87548
87549         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
87550         now that the version in autoconf is equivalent.
87551         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
87552
87553         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
87554         Suggestion from Akim Demaille.
87555
87556         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
87557         (jm_PREREQ_TEMPNAME): New function.
87558
87559 2001-03-16  Paul Eggert  <eggert@twinsun.com>
87560
87561         * lib/tempname.c (uint64_t): Define to uintmax_t if
87562         not defined, and if UINT64_MAX is not defined.
87563         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
87564         Reported by John David Anglin.
87565
87566 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
87567
87568         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
87569         resolve alias if codeset is empty.
87570         * lib/config.charset (BeOS): Use wildcard syntax.
87571
87572 2001-03-13  Jim Meyering  <meyering@lucent.com>
87573
87574         * lib/path-concat.c (path_concat)
87575         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
87576         concatenating e.g., `C:' and `foo'.
87577         From Bruno Haible.
87578
87579 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87580
87581         * lib/localcharset.c (locale_charset): Don't use
87582         setlocale(LC_CTYPE,NULL). Don't return NULL.
87583         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
87584
87585 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
87586
87587         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
87588         support for DOS/DJGPP.
87589
87590 2001-03-01  Paul Eggert  <eggert@twinsun.com>
87591
87592         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
87593         lacks mkstemp.  Compile our own tempname.c if we compile our own
87594         mkstemp.c, as mkstemp relies on tempname.
87595
87596 2001-03-01  Jim Meyering  <meyering@lucent.com>
87597
87598         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
87599         AH_VERBATIM really does output its argument verbatim.
87600
87601 2001-02-28  Paul Eggert  <eggert@twinsun.com>
87602
87603         * lib/Makefile.am (libfetish_a_SOURCES):
87604         Add dup-safer.c, fopen-safer.c.
87605         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
87606
87607         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
87608         * lib/unistd-safer.h: New files.
87609
87610 2001-02-25  Paul Eggert  <eggert@twinsun.com>
87611
87612         The mkstemp replacement is taken from glibc 2.2.2, with some
87613         portability fixes for use outside glibc, as follows:
87614
87615         * lib/tempname.c (struct_stat64): New macro.
87616         (direxists, __gen_tempname): Use it.
87617         This avoids a portability problem with Solaris 8.
87618
87619         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
87620         (<stddef.h>, <stdint.h>, <string.h>):
87621         Include only if STDC_HEADERS || _LIBC.
87622         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
87623         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
87624         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
87625         (__set_errno): Define this macro if <errno.h> doesn't.
87626         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
87627         Define these macros if <stdio.h> doesn't.
87628         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
87629         Define these macros if <sys/stat.h>
87630         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
87631         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
87632         __xstat64): Define if not _LIBC.
87633         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
87634         (__gen_tempname): Invoke gettimeofday only if
87635         HAVE_GETTIMEOFDAY || _LIBC;
87636         otherwise, fall back on plain "time".
87637         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
87638
87639         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
87640
87641         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
87642
87643 2001-02-18  Paul Eggert  <eggert@twinsun.com>
87644
87645         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
87646
87647 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87648
87649         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
87650         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
87651         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
87652         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
87653
87654 2001-02-17  Paul Eggert  <eggert@twinsun.com>
87655
87656         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
87657         Remove workaround macros for hosts that have mbrtowc but not
87658         mbstate_t, as we now insist on proper declarations for both
87659         before using mbrtowc.
87660
87661 2001-02-17  Jim Meyering  <meyering@lucent.com>
87662
87663         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
87664         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
87665         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
87666         UnixWare 7.1.1.
87667
87668         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
87669         rather than AC_CACHE_VAL.
87670
87671 2001-02-17  Jim Meyering  <meyering@lucent.com>
87672
87673         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
87674         around included file name.
87675
87676         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
87677
87678         * lib/strftime.c: Update from GNU libc (the only changes were to
87679         comments).
87680
87681 2001-02-17  Jim Meyering  <meyering@lucent.com>
87682
87683         * lib/regex.c: Update from libc.
87684
87685 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
87686
87687         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
87688         clash.
87689
87690 2001-02-16  Paul Eggert  <eggert@twinsun.com>
87691
87692         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
87693         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
87694         Reported by Mark Hounschell via Paul Eggert.
87695
87696 2001-02-07  Jim Meyering  <meyering@lucent.com>
87697
87698         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
87699
87700 2001-02-05  Jim Meyering  <meyering@lucent.com>
87701
87702         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
87703         it includes the patch required for `large file' support with at least
87704         HP-UX's 10.20 /bin/cc.
87705
87706 2001-02-03  Jim Meyering  <meyering@lucent.com>
87707
87708         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
87709         AS_IF, now that it works once again (mysteriously).
87710         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87711
87712 2001-01-30  Jim Meyering  <meyering@lucent.com>
87713
87714         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
87715         * m4/chown.m4: Rename conftestchown to conftest.chown.
87716         * m4/rename.m4: s/conftestdir/conftest.d1/ and
87717         s/conftestdir2/conftest.d2/.
87718         * m4/utimes.m4: s/conftestdata/conftest.data/
87719         Inspired by Pavel Roskin's change in autoconf.
87720
87721 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
87722
87723         * lib/config.charset: Update for FreeBSD 4.2.
87724
87725 2001-01-27  Jim Meyering  <meyering@lucent.com>
87726
87727         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
87728         a use of AS_IF.
87729         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
87730
87731 2001-01-26  Jim Meyering  <meyering@lucent.com>
87732
87733         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
87734         quotearg.c includes it.
87735
87736 2001-01-26  Jim Meyering  <meyering@lucent.com>
87737
87738         * lib/quotearg.c: Include stddef.h.
87739         * lib/quote.c: Include stddef.h.
87740         Reported by Axel Kittenberger.
87741
87742         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
87743         line in double quotes so that it evokes a better diagnostic.
87744         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
87745         Reported by Axel Kittenberger.
87746
87747 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
87748
87749         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
87750         as if it was a `charset'.
87751
87752 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87753
87754         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
87755         has const.
87756
87757 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
87758
87759         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
87760         to avoid a warning.  Add back 'const' to inptr.
87761
87762 2001-01-20  Jim Meyering  <meyering@lucent.com>
87763
87764         Be sure that headers are checked before used in code compiled
87765         for the type checks.
87766         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
87767         In place of that, invoke jm_CHECK_ALL_TYPES.
87768         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
87769         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
87770         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
87771         The check for ssize_t was mistakenly run before the test for unistd.h.
87772
87773         The configure-time check for stdbool.h was missing.
87774         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
87775         (jm_PREREQ_HASH): New function.
87776
87777 2001-01-17  Jim Meyering  <meyering@lucent.com>
87778
87779         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
87780         for autoconf-2.49c.
87781         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
87782
87783 2001-01-16  Jim Meyering  <meyering@lucent.com>
87784
87785         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
87786         From Bruno Haible.
87787
87788 2001-01-14  Jim Meyering  <meyering@lucent.com>
87789
87790         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
87791         foo and bar.  Create conftestdir/ in the script, not in the C code.
87792         Remove directories in the script, not in the C code.
87793         Remove conftestdir{,2} before trying to create the directory.
87794         Make the entire configure script fail if the mkdir fails.
87795
87796 2001-01-14  Jim Meyering  <meyering@lucent.com>
87797
87798         * lib/rename.c: New file.  From Volker Borchert.
87799         Include stdlib.h, string.h or strings.h, and xalloc.h.
87800         Use strip_trailing_slashes rather than open-coding it.
87801
87802 2001-01-03  Paul Eggert  <eggert@twinsun.com>
87803
87804         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
87805
87806 2001-01-03  Jim Meyering  <meyering@lucent.com>
87807
87808         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
87809         of local `inptr' to avoid warning with some system declarations of
87810         iconv.
87811
87812 2001-01-02  Volker Borchert  <bt@teknon.de>
87813
87814         * m4/rename.m4: New file.
87815         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
87816
87817 2001-01-01  Jim Meyering  <meyering@lucent.com>
87818
87819         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
87820         even on systems with utmpx.h.  It's necessary for the declaration of
87821         utmp's ut_user member.  Reported by Andreas Jaeger.
87822
87823         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
87824         available. They are required for the declarations of getgrgid and
87825         getpwuid resp.
87826         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
87827         Reported by Andreas Jaeger.
87828
87829 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
87830
87831         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
87832         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
87833         so `make install' also works in VPATH builds.
87834
87835 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
87836
87837         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
87838         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
87839         can be used in subdirectories.
87840
87841 2000-12-29  Paul Eggert  <eggert@twinsun.com>
87842
87843         * lib/modechange.c: Do not assume that mode_t uses the
87844         traditional octal encoding.  E.g. "chmod 1 FOO" should set
87845         the other-execute bit of FOO even if S_IXOTH != 1.
87846
87847         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
87848         WOTH, XOTH, ALLM): New macros.
87849         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
87850          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
87851         Use them.
87852         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
87853         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
87854         (mode_compile):
87855         No need to use uintmax_t; unsigned long is long enough.
87856         Don't bother to get suffix since we don't use it.
87857
87858 2000-12-26  Jim Meyering  <meyering@lucent.com>
87859
87860         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
87861         better with autoheader.
87862
87863 2000-12-24  Jim Meyering  <meyering@lucent.com>
87864
87865         * lib/hash.c (is_prime): Return explicit boolean values.
87866         (hash_get_first): Return NULL to appease Irix5.6's 89.
87867         Reported by Nelson Beebe.
87868
87869 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
87870
87871         * lib/localcharset.c (locale_charset): Add support for Win32.
87872
87873 2000-12-18  Paul Eggert  <eggert@twinsun.com>
87874
87875         * lib/physmem.h, lib/physmem.c: New files.
87876
87877         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
87878         (noinst_HEADERS): Add physmem.h.
87879
87880         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
87881         't' for compatibility with Solaris 8 sort.
87882
87883 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
87884
87885         * lib/config.charset: Add support for BeOS.
87886
87887 2000-12-17  Jim Meyering  <meyering@lucent.com>
87888
87889         * m4/dos.m4 (jm_AC_DOS): New file and macro.
87890         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
87891
87892 2000-12-16  Jim Meyering  <meyering@lucent.com>
87893
87894         This bug had a serious impact on chown: `chown N:M FILE' (for integer
87895         N and M) would have treated it like `chown N:N FILE'.
87896
87897         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
87898
87899 2000-12-16  Jim Meyering  <meyering@lucent.com>
87900
87901         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
87902         SHELLS_FILE to a file name that's useful on djgpp systems.
87903         Include stdlib.h.
87904         (ADDITIONAL_DEFAULT_SHELLS): Define.
87905         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
87906         Based mostly on a patch from Prashant TR.
87907
87908 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
87909
87910         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
87911         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
87912         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
87913
87914 2000-12-08  Andreas Schwab  <schwab@suse.de>
87915
87916         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
87917         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
87918
87919 2000-12-07  Jim Meyering  <meyering@lucent.com>
87920
87921         * lib/stripslash.c (ISSLASH): Define.
87922         (strip_trailing_slashes): Use ISSLASH rather than comparing against
87923         `/'.
87924         From Prashant TR.
87925
87926         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
87927         (dir_name_r): Declare this function as static.
87928         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
87929         manifest itself on a name containing a mix of slashes and
87930         backslashes.
87931         Make this function work with names starting with a DOS-style
87932         drive letter and colon prefix.
87933         (dir_name): Append `.' if necessary.
87934         Based mostly on patches from Prashant TR and Eli Zaretskii.
87935
87936         * lib/dirname.h (dir_name_r): Remove prototype.
87937
87938 2000-12-06  Paul Eggert  <eggert@twinsun.com>
87939
87940         * m4/off_t-format.m4: Remove this file.
87941         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
87942
87943 2000-12-06  Jim Meyering  <meyering@lucent.com>
87944
87945         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
87946         replacement strtoull, we may well need the replacement strtoul, too.
87947         Check for declarations of strtoul and strtoull.
87948         Check for strtol.  Mainly as a cue to cause automake to include
87949         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
87950         Check for limits.h -- strtol.c needs it.
87951
87952 2000-12-05  Jim Meyering  <meyering@lucent.com>
87953
87954         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
87955
87956 2000-12-04  Jim Meyering  <meyering@lucent.com>
87957
87958         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
87959         Also include memory.h, stdlib.h, unistd.h if appropriate.
87960         Reported by Andreas Jaeger (conflicting declaration of malloc).
87961
87962 2000-12-02  Jim Meyering  <meyering@lucent.com>
87963
87964         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
87965         * m4/jm-macros.m4 (jm_MACROS): require it.
87966
87967 2000-12-02  Jim Meyering  <meyering@lucent.com>
87968
87969         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
87970
87971 2000-12-01  Paul Eggert  <eggert@twinsun.com>
87972
87973         * lib/memrchr.c: Include <config.h> before any system include file.
87974
87975 2000-11-30  Jim Meyering  <meyering@lucent.com>
87976
87977         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
87978
87979 2000-11-30  Jim Meyering  <meyering@lucent.com>
87980
87981         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
87982
87983 2000-11-29  Paul Eggert  <eggert@twinsun.com>
87984
87985         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
87986
87987 2000-11-26  Jim Meyering  <meyering@lucent.com>
87988
87989         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
87990
87991 2000-11-22  Paul Eggert  <eggert@twinsun.com>
87992
87993         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
87994         size of (size_t) -1; it's not portable.
87995
87996 2000-11-17  Jim Meyering  <meyering@lucent.com>
87997
87998         * lib/strstr.c: Update from GNU libc.
87999
88000 2000-11-17  Akim Demaille  <akim@epita.fr>
88001
88002         * lib/obstack.h: Formatting changes.
88003         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
88004         prevent type checking.
88005         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
88006         cast the value to (void *): assigning a `foo *' to a `void *'
88007         variable is valid.
88008         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
88009
88010 2000-11-16  Jim Meyering  <meyering@lucent.com>
88011
88012         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
88013
88014 2000-11-11  Jim Meyering  <meyering@lucent.com>
88015
88016         * lib/error.c: Add a couple #includes, merging from GNU libc version.
88017
88018 2000-11-10  Jim Meyering  <meyering@lucent.com>
88019
88020         * lib/obstack.h: Update from GNU libc.
88021         * lib/obstack.c: Likewise.
88022
88023 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
88024
88025         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
88026
88027 2000-11-06  Paul Eggert  <eggert@twinsun.com>
88028
88029         * lib/getusershell.c (setusershell): Use rewind rather than
88030         fseek/fseeko, to avoid configuration hassles with fseeko.
88031         Don't bother opening SHELLS_FILE if shellstream is NULL;
88032         it's not necessary.
88033
88034 2000-11-05  Jim Meyering  <meyering@lucent.com>
88035
88036         * lib/makepath.h (make_dir): Declare.
88037         * lib/makepath.c (make_dir): Remove `static' attribute.
88038         Tweak a comment.
88039
88040 2000-11-04  Jim Meyering  <meyering@lucent.com>
88041
88042         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
88043
88044 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
88045
88046         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
88047         last one in a bucket, advance to the next bucket.
88048
88049 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
88050
88051         * lib/fnmatch.c: Do not comment out all the code if we are using
88052         the GNU C library, because in some cases we are replacing buggy
88053         code in the GNU C library itself.
88054
88055 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
88056
88057         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
88058         (regex_compile): Catch bogus \(\1\).
88059
88060 2000-10-30  Paul Eggert  <eggert@twinsun.com>
88061
88062         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
88063         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
88064         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
88065
88066 2000-10-30  Paul Eggert  <eggert@twinsun.com>
88067
88068         * lib/error.h, getline.h, modechange.h:
88069         Remove "2000" from Copyright line, as the file hasn't been
88070         changed this year other than in the copyright notice.
88071
88072         * lib/xalloc.h: Add "2000" to Copyright line, as this file
88073         was changed this year.
88074
88075 2000-10-29  Jim Meyering  <meyering@lucent.com>
88076
88077         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
88078         renaming.
88079         * m4/ls-mntd-fs.m4: Likewise
88080
88081 2000-10-29  Jim Meyering  <meyering@lucent.com>
88082
88083         * lib/xstat.in: Fix grammar in comment.
88084
88085 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
88086
88087         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
88088         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
88089         doesn't define __restrict_arr.
88090
88091 2000-10-28  Jim Meyering  <meyering@lucent.com>
88092
88093         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
88094         (jm_PREREQ_MEMCHR): New function.
88095
88096 2000-10-28  Jim Meyering  <meyering@lucent.com>
88097
88098         * lib/memchr.c: Update from libc.
88099         Adjust for portability:
88100         [HAVE_STDLIB_H]: Include stdlib.h.
88101         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
88102         Undef __memchr, too.
88103         [!weak_alias]: Define __memchr to memchr.
88104
88105         * lib/regex.c: Update from libc.
88106         * lib/regex.h: Likewise.
88107         * lib/getopt1.c: Likewise.
88108         * lib/memcmp.c: Likewise.
88109
88110         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
88111         Avoid using fseek, when possible -- it's broken by design.
88112         Patch by Ulrich Drepper.
88113
88114 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
88115
88116         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
88117         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
88118         Giving in to popular pressure to shut up the compiler with casts.
88119
88120 2000-10-26  Jim Meyering  <meyering@lucent.com>
88121
88122         * lib/strftime.c: Update from libc.
88123
88124 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
88125
88126         * regex.c: More `unsigned char' -> `re_char' changes.
88127         Also change several `int' into `re_wchar_t'.
88128         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
88129         (PUSH_FAILURE_POINTER): Don't cast any more.
88130         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
88131         We want GCC to complain, since this piece of code makes
88132         re_match non-reentrant, which *should* be fixed.
88133         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
88134         (EXTEND_BUFFER): Use RETALLOC.
88135         (SET_LIST_BIT): Don't cast.
88136         (re_wchar_t): New type.
88137         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
88138         that those two functions will always properly return.
88139         (IMMEDIATE_QUIT_CHECK): Cast to void.
88140         (analyse_first): Use recursion rather than an explicit stack.
88141         (re_compile_fastmap): Can't fail anymore.
88142         (re_search_2): Don't check re_compile_fastmap for failure.
88143         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
88144         Now also sets the new value (passed in a new argument).
88145         (re_match_2_internal): Use it.
88146         Also, use a new var `reg' of type size_t when looping through regs
88147         rather than reuse the inappropriate `mcnt'.
88148
88149 2000-10-25  Jim Meyering  <meyering@lucent.com>
88150
88151         * lib/obstack.c: Update from libc.
88152
88153 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
88154
88155         * regex.c (regex_compile): Change the way of handling a range from
88156         a char less than 256 to a char not less than 256.
88157
88158 2000-10-24  Andrew Innes  <andrewi@gnu.org>
88159
88160         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
88161         NT-Emacs only.
88162         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
88163         so that re_search functions only quit when callers expect them to.
88164
88165 2000-10-23  Jim Meyering  <meyering@lucent.com>
88166
88167         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
88168         wrong.  That set_locale call must not have any side effects.
88169         From Paul Eggert.
88170
88171 2000-10-22  Jim Meyering  <meyering@lucent.com>
88172
88173         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
88174         [CYCLIC]: Remove now-unused definition.
88175
88176         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
88177         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
88178         Suggestion from Ulrich Drepper.
88179
88180 2000-10-21  Jim Meyering  <meyering@lucent.com>
88181
88182         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
88183         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
88184         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
88185
88186 2000-10-21  Jim Meyering  <meyering@lucent.com>
88187
88188         * lib/dirname.c (memrchr): Declare if necessary.
88189         (dir_name): Remove the restriction that there be no
88190         trailing slashes.  Now, this code skips past them, effectively
88191         ignoring them.
88192         [TEST_DIRNAME] (main): New unit tests.
88193
88194         * lib/memrchr.c: New file from GNU libc.
88195         Undef __memrchr, too.
88196         [!weak_alias]: Define __memrchr to memrchr.
88197         Guard weak_alias use with `#ifdef weak_alias'.
88198
88199 2000-10-21  Jim Meyering  <meyering@lucent.com>
88200
88201         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
88202         (dir_name): Use dir_name_r.
88203         * lib/dirname.h (dir_name_r): Declare it.
88204
88205 2000-10-17  Jim Meyering  <meyering@lucent.com>
88206
88207         * lib/quote.h (PARAMS): Define and use.
88208         Reported by Akim Demaille.
88209
88210         * lib/getopt.c: Update from libc.
88211
88212 2000-10-16  Jim Meyering  <meyering@lucent.com>
88213
88214         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
88215         setlocale.
88216         From Jan Fedak.
88217
88218 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
88219
88220         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
88221
88222 2000-09-25  Jim Meyering  <meyering@lucent.com>
88223
88224         * lib/md5.h (rol): Define (from GnuPG).
88225
88226         * lib/sha.c: Give credit (GnuPG) where due.
88227         (M): Use rol rather than open-coding it.
88228         Add a FIXME comment.
88229
88230 2000-09-21  Jim Meyering  <meyering@lucent.com>
88231
88232         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
88233         Reported by Michael Stone.
88234
88235 2000-09-20  Jim Meyering  <meyering@lucent.com>
88236
88237         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
88238         (noinst_HEADERS): Add sha.h.
88239         Based on code from Scott G. Miller and from GnuPG.
88240
88241 2000-09-18  Jim Meyering  <meyering@lucent.com>
88242
88243         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
88244         LIBS. Otherwise, everyone ends up linking with -lelf for some
88245         configurations.
88246         Reported by Mike Stone.
88247
88248 2000-09-15  Jim Meyering  <meyering@lucent.com>
88249
88250         * lib/regex.c: Update from libc.
88251
88252 2000-09-10  Jim Meyering  <meyering@lucent.com>
88253
88254         * lib/getopt.c (_getopt_internal): Update from glibc.
88255
88256 2000-09-09  Jim Meyering  <meyering@lucent.com>
88257
88258         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
88259         think it should be used as a general replacement for isascii.
88260         * lib/fnmatch.c: Likewise.
88261         * lib/mbswidth.c: Likewise
88262         * lib/regex.c: Likewise.
88263
88264         Don't use atoi.
88265         * lib/userspec.c: Include sys/param.h and limits.h.
88266         Include xstrtol.h.
88267         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
88268         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
88269         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
88270         UID, GID.  Check range.
88271
88272 2000-09-06  Jim Meyering  <meyering@lucent.com>
88273
88274         * lib/getopt.c (_getopt_internal): Update from glibc.
88275
88276 2000-08-30  Jim Meyering  <meyering@lucent.com>
88277
88278         * lib/strftime.c: Merge in changes from GNU libc.
88279
88280 2000-08-26  Jim Meyering  <meyering@lucent.com>
88281
88282         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
88283         * m4/fpending.m4: New file.
88284
88285 2000-08-26  Jim Meyering  <meyering@lucent.com>
88286
88287         * lib/closeout.c: Include "__fpending.h".
88288         (close_stdout_status): Return right away if there's nothing to flush.
88289
88290         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
88291         * lib/__fpending.c: New file.
88292         * lib/__fpending.h: New file.
88293
88294 2000-08-20  Jim Meyering  <meyering@lucent.com>
88295
88296         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
88297         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
88298         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
88299
88300 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
88301
88302         Improve fileutils installation on systems where running
88303         programs (like install) can't be unlinked.
88304         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
88305         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
88306
88307 2000-08-07  Paul Eggert  <eggert@twinsun.com>
88308
88309         Standardize on "memory exhausted" instead of "Memory exhausted"
88310         or "virtual memory exhausted".
88311         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
88312         "virtual memory exhausted".
88313         * lib/same.c (same_name): Invoke xalloc_die instead of printing
88314         our own message.
88315         * lib/userspec.c (parse_user_spec): Likewise.
88316         * lib/bumpalloc.h: comment fix
88317         * lib/same.c, userspec.c: Include xalloc.h.
88318
88319         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
88320         not char *const and pointing to a constant array.
88321         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
88322         (xrealloc): Comment fix.
88323
88324         * lib/userspec.c (parse_user_spec):
88325         Don't translate a message until just before returning,
88326         to avoid unnecessary translation.
88327
88328 2000-08-07  Jim Meyering  <meyering@lucent.com>
88329
88330         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
88331         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
88332         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
88333         getgroups.c, gethostname.c, getopt.h, group-member.c,
88334         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
88335         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
88336         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
88337         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
88338         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
88339         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
88340         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
88341         yesno.c: Back out Copyright date changes for each file with no change
88342         this year.  This eases coordination with other programs using the same
88343         source code modules.  From Paul Eggert.
88344
88345 2000-08-06  Paul Eggert  <eggert@twinsun.com>
88346
88347         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
88348         not char, for compatibility with glibc 2.1.3 strftime.c.
88349
88350 2000-08-03  Greg McGary  <greg@mcgary.org>
88351
88352         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
88353         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
88354         (EXTEND_BUFFER): Use them.
88355
88356 2000-08-01  Jim Meyering  <meyering@lucent.com>
88357
88358         * lib/dirname.c (ISSLASH): Define.
88359         (BACKSLASH_IS_PATH_SEPARATOR): Define.
88360         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
88361         both `\' and `/' may be use as path separators.
88362         Based on a patch from Prashant TR.
88363
88364 2000-07-31  Paul Eggert  <eggert@twinsun.com>
88365
88366         * lib/quotearg.c (quotearg_n_options): Don't make the initial
88367         slot vector a constant, since it might get modified.
88368
88369 2000-07-31  Jim Meyering  <meyering@lucent.com>
88370
88371         * lib/xmalloc.c: Use `virtual memory exhausted', not
88372         `Memory exhausted'.
88373         * lib/obstack.c (print_and_abort): Likewise.
88374
88375 2000-07-30  Paul Eggert  <eggert@twinsun.com>
88376
88377         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
88378         buffer, so that the caller can always quote one small
88379         component of a "memory exhausted" message in slot 0.
88380         From a suggestion by Jim Meyering.
88381
88382 2000-07-30  Jim Meyering  <meyering@lucent.com>
88383
88384         * lib/makepath.c (make_path): Quote the other instance, too.
88385
88386         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
88387         (STATIC_BUF_SIZE): Define.
88388         (quotearg_n_options): Use only statically allocated storage when
88389         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
88390         than STATIC_BUF_SIZE.
88391
88392 2000-07-29  Jim Meyering  <meyering@lucent.com>
88393
88394         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
88395         * lib/dirname.c (dir_name): Likewise.
88396
88397         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
88398         `/'.
88399
88400         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
88401         (dir_name): Assert that there are no trailing slashes.
88402
88403 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
88404
88405         * lib/mbswidth.h (mbswidth): Add a flags argument.
88406         (mbswidth): New declaration.
88407         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
88408         * lib/mbswidth.c (mbswidth): Add a flags argument.
88409         (mbsnwidth): New function.
88410
88411 2000-07-24  Jim Meyering  <meyering@lucent.com>
88412
88413         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
88414
88415 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88416
88417         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
88418
88419 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88420
88421         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
88422         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
88423         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
88424         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
88425         invoke multibyte primitives.
88426
88427 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88428
88429         * lib/quotearg.c:
88430         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
88431         so that mbstate_t is always defined.
88432
88433         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
88434         be 1 in at least one GCC installation, and this configuration
88435         error is likely to be common.  Ignoring MB_LEN_MAX hurts
88436         performance on hosts that have mbrtowc but have only unibyte
88437         locales, but I assume these hosts are rare.
88438
88439 2000-07-23  Paul Eggert  <eggert@twinsun.com>
88440
88441         * lib/mbswidth.c (_XOPEN_SOURCE):
88442         Don't define; this causes problems on Solaris 7.
88443         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
88444
88445 2000-07-23  Jim Meyering  <meyering@lucent.com>
88446
88447         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
88448         too: getgrgid, getpwuid, getuid.
88449
88450 2000-07-23  Jim Meyering  <meyering@lucent.com>
88451
88452         * lib/basename.c (base_name): Add an assertion.
88453
88454 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
88455
88456         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
88457         shadow its mbsinit function.
88458
88459 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88460
88461         * lib/mbswidth.h: New file.
88462         * lib/mbswidth.c: New file.
88463         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
88464         (noinst_HEADERS): Add mbswidth.h.
88465
88466 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
88467
88468         * lib/config.charset: Add support for FreeBSD. Improve support for
88469         HP-UX and IRIX 6.
88470
88471 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
88472
88473         * m4/mbswidth.m4: New file.
88474         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
88475
88476 2000-07-15  Jim Meyering  <meyering@lucent.com>
88477
88478         * lib/makepath.c: Include quote.h.
88479         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
88480         corresponding argument in a `quote (...)' call.
88481         Give better diagnostics.
88482
88483         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
88484         (noinst_HEADERS): Add quote.h.
88485
88486         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
88487         from tar's src/misc.c.
88488         * lib/quote.h: New file.  Prototypes for same.
88489
88490 2000-07-14  Paul Eggert  <eggert@twinsun.com>
88491
88492         From a suggestion by Bruno Haible.
88493         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
88494         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
88495         to decide whether to define the BeOS workaround macro;
88496         this adjusts to the change to AC_MBSTATE_T.
88497
88498 2000-07-14  Jim Meyering  <meyering@lucent.com>
88499
88500         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
88501         jm_AC_TYPE_UINTMAX_T.
88502
88503 2000-07-13  Paul Eggert  <eggert@twinsun.com>
88504
88505         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
88506
88507         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
88508         quotearg_buffer_restyled): Add support for
88509         clocale_quoting_style.  Undo previous change to
88510         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
88511         and "{RIGHT QUOTATION MARK}" msgids.
88512
88513 2000-07-10  Paul Eggert  <eggert@twinsun.com>
88514
88515         From a suggestion by Bruno Haible.
88516         * m4/mbstate_t.m4 (AC_MBSTATE_T):
88517         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
88518         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
88519         and mbstate_t, to a single-part test that simply defines mbstate_t.
88520         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
88521         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
88522
88523 2000-07-10  Jim Meyering  <meyering@lucent.com>
88524
88525         * m4/strerror_r.m4: Mirror the correction made in autoconf.
88526
88527         * m4/gnu-source.m4: Output to confdefs.h directly.
88528         Suggestion from Akim Demaille.
88529
88530 2000-07-09  Paul Eggert  <eggert@twinsun.com>
88531
88532         The old behavior of quoting `like this' doesn't look good with
88533         newer, ISO-style fonts.  See:
88534         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
88535
88536         Instead, quote "like this" by default.  Let the translator
88537         tailor the locale-specific quoting behavior by providing
88538         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
88539
88540         * lib/quotearg.c (N_): New macro.
88541         (gettext_default): New function.
88542         (quotearg_buffer_restyled): Use
88543         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
88544         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
88545
88546 2000-07-09  Jim Meyering  <meyering@lucent.com>
88547
88548         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
88549         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
88550
88551         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
88552         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
88553
88554 2000-07-09  Jim Meyering  <meyering@lucent.com>
88555
88556         * lib/Most files: Update copyright dates to include 2000.
88557
88558 2000-07-08  Jim Meyering  <meyering@lucent.com>
88559
88560         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
88561         if not defined.
88562         (xgethostname): Remove now-unnecessary #ifdef.
88563         Move declaration of `err' into loop where it's used.
88564
88565 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88566         and Bruno Haible  <haible@clisp.cons.org>
88567
88568         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
88569         only if the test for an object-type mbstate_t fails.  This
88570         prevents us from mistakenly reporting that mbstate_t is a
88571         system object type after we "#define mbstate_t int" to work
88572         around its lack.
88573
88574 2000-07-05  Paul Eggert  <eggert@twinsun.com>
88575         and Bruno Haible  <haible@clisp.cons.org>
88576
88577         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
88578
88579 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88580
88581         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
88582         to strerror_r.
88583         Include <ctype.h> for use of isalpha.
88584
88585 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88586
88587         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
88588         by allocating a larger buffer. Test the gethostname return value for
88589         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
88590         returns an error and ENAMETOOLONG isn't defined.
88591
88592 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
88593
88594         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
88595         dimension.
88596
88597 2000-07-04  Jim Meyering  <meyering@lucent.com>
88598
88599         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
88600         of the deprecated AC_CHECKING.
88601
88602 2000-07-04  Jim Meyering  <meyering@lucent.com>
88603
88604         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
88605         Reported by Bruno Haible.
88606
88607 2000-07-04  Jim Meyering  <meyering@lucent.com>
88608
88609         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
88610         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
88611         lacks mbrtowc.
88612
88613 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88614
88615         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
88616         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
88617
88618 2000-07-03  Paul Eggert  <eggert@twinsun.com>
88619         and Bruno Haible  <haible@clisp.cons.org>
88620
88621         * lib/quotearg.c (mbrtowc):
88622         Assign to *pwc, and return 1 only if result is nonzero.
88623         (iswprint): Use ISPRINT when substituting our own mbrtowc.
88624
88625 2000-07-03  Jim Meyering  <meyering@lucent.com>
88626
88627         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
88628
88629 2000-07-03  Jim Meyering  <meyering@lucent.com>
88630
88631         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
88632         This is necessary to get a definition of e.g., UTMP_FILE on
88633         HP-UX 10.20.
88634         From Bob Proulx.
88635
88636 2000-07-02  Jim Meyering  <meyering@lucent.com>
88637
88638         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
88639
88640         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
88641         AC_LIBOBJ(function_name).
88642         * m4/chown.m4: Likewise.
88643         * m4/fnmatch.m4: Likewise.
88644         * m4/ftruncate.m4: Likewise.
88645         * m4/getgroups.m4: Likewise.
88646         * m4/getline.m4: Likewise.
88647         * m4/group-member.m4: Likewise.
88648         * m4/jm-macros.m4: Likewise.
88649         * m4/lstat.m4: Likewise.
88650         * m4/malloc.m4: Likewise.
88651         * m4/memcmp.m4: Likewise.
88652         * m4/nanosleep.m4: Likewise.
88653         * m4/putenv.m4: Likewise.
88654         * m4/realloc.m4: Likewise.
88655         * m4/regex.m4: Likewise.
88656         * m4/stat.m4: Likewise.
88657         * m4/strftime.m4: Likewise.
88658
88659 2000-07-02  Jim Meyering  <meyering@lucent.com>
88660
88661         * lib/quotearg.c (mbstate_t): Don't define here.
88662
88663 2000-07-02  Jim Meyering  <meyering@lucent.com>
88664
88665         * lib/nanosleep.c (SIGCONT): Define if not already defined.
88666
88667 2000-07-01  Jim Meyering  <meyering@lucent.com>
88668
88669         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
88670
88671 2000-07-01  Jim Meyering  <meyering@lucent.com>
88672
88673         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
88674         problem.
88675
88676 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88677
88678         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
88679         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
88680
88681 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
88682
88683         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
88684         per change in ../m4/ls-mntd-fs.m4.
88685         (read_filesystem_list): Ignore symbolic links.
88686
88687 2000-06-29  Jim Meyering  <meyering@lucent.com>
88688
88689         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
88690         for declaration of strcmp.
88691
88692         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
88693
88694         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
88695         Avoid warning by casting result to `char *' to remove `const'.
88696
88697 2000-06-28  Jim Meyering  <meyering@lucent.com>
88698
88699         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
88700         included by quotearg.c, for which we perform this test.  From
88701         Bruno Haible.
88702
88703 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88704
88705         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
88706         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
88707         <utmpx.h> exists, put readutmp.o into LIBOBJS.
88708
88709 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
88710
88711         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
88712
88713 2000-06-26  Paul Eggert  <eggert@twinsun.com>
88714
88715         savedir now sets errno on failure and invokes xmalloc to get memory.
88716         Fix a couple of other minor bugs while we're at it.
88717
88718         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
88719         (NAMLEN): Remove macro.
88720         (malloc, realloc): Remove decls.
88721         (stpcpy): Likewise.
88722         ("xalloc.h"): Include.
88723         (NAME_SIZE_DEFAULT): New macro.
88724         (savedir): Use xmalloc / xrealloc to allocate memory.
88725         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
88726         Skip "" directory entries.
88727         Use strlen to calculate directory entry length, since the old method
88728         is rarely used these days and isn't worth supporting.
88729         Don't use a pointer after freeing it.
88730         Check for integer overflow when calculating allocation size.
88731         Use memcpy to copy entries, instead of stpcpy.
88732         Set errno properly when returning NULL.
88733         Check for readdir error.
88734
88735 2000-06-26  Jim Meyering  <meyering@lucent.com>
88736
88737         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
88738
88739 2000-06-25  Jim Meyering  <meyering@lucent.com>
88740
88741         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
88742         Linux header bug when _XOPEN_SOURCE is defined to 500.
88743
88744 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88745
88746         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
88747         deficiency.
88748
88749 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
88750
88751         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
88752         Include xalloc.h.
88753         Don't include <stdlib.h>.  Don't declare malloc, realloc.
88754
88755 2000-06-24  Jim Meyering  <meyering@lucent.com>
88756
88757         * m4/strerror_r.m4: Revive this file -- to try out an experimental
88758         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
88759         for which strerror does return char*, but which lacks a conveniently
88760         accessible declaration of the function.  If the compile-test says
88761         strerror_r doesn't work, then resort to a `run'-test that works on
88762         BeOS and segfaults on DEC Unix.
88763
88764 2000-06-24  Jim Meyering  <meyering@lucent.com>
88765
88766         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
88767
88768 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88769
88770         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
88771         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
88772
88773 2000-06-23  Paul Eggert  <eggert@twinsun.com>
88774
88775         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
88776         (mbrtowc, mbstate_t): Define substitutes if
88777         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
88778         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
88779         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
88780
88781 2000-06-23  Jim Meyering  <meyering@lucent.com>
88782
88783         * m4/afs.m4: Add missing AC_MSG_RESULT.
88784         Reported by Bruno Haible.
88785
88786         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
88787         Suggestion from Bruno Haible.
88788
88789 2000-06-23  Jim Meyering  <meyering@lucent.com>
88790
88791         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
88792
88793 2000-06-21  Jim Meyering  <meyering@lucent.com>
88794
88795         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
88796
88797 2000-06-21  Jim Meyering  <meyering@lucent.com>
88798
88799         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
88800         (noinst_HEADERS): Add getstr.h.
88801
88802         * lib/getline.c (getstr): Move into a separate file.
88803         * lib/getstr.c (getstr): New file, extracted from getline.c, with
88804         the following changes: new parameter, delim2; both delim[12]
88805         parameters have type `int', not `char'.  The latter would lose
88806         with 8-bit delimiters.
88807         * lib/getstr.h: New file.
88808
88809 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88810
88811         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
88812         than 1024, return a memory chunk of least possible size, instead
88813         of size PATH_MAX + 2. In the loop, increment the size proportionally.
88814         Use free/xmalloc instead of xrealloc to avoid copying for very long
88815         paths.
88816
88817 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88818
88819         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
88820         the empty string.
88821
88822 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
88823
88824         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
88825         address, not strdup.  Include <stdlib.h> and don't declare free().
88826
88827 2000-06-19  Jim Meyering  <meyering@lucent.com>
88828
88829         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
88830
88831 2000-06-18  Jim Meyering  <meyering@lucent.com>
88832
88833         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
88834
88835         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
88836         `checking whether...' message to be consistent with that of the
88837         lstat test.
88838
88839 2000-06-18  Jim Meyering  <meyering@lucent.com>
88840
88841         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
88842         Besides, these days every porting target provides a mkdir function.
88843
88844         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
88845         needed. (this snippet comes from src/system.h).
88846
88847 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
88848
88849         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
88850
88851 2000-06-15  Paul Eggert  <eggert@twinsun.com>
88852
88853         * lib/human.c (adjust_value): New function.
88854         (human_readable_inexact): Apply rounding style even when
88855         printing approximate values.
88856
88857 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88858
88859         * lib/human.c (human_readable_inexact): Allow an input block
88860         size that is not a multiple of the output block size, and vice versa.
88861         Reported by Piergiorgio Sartor.
88862
88863 2000-06-14  Paul Eggert  <eggert@twinsun.com>
88864
88865         * lib/getdate.y (get_date): Apply relative times after time
88866         zone indicator, not before.  Reported by Todd A. Jacobs.
88867
88868 2000-06-13  Jim Meyering  <meyering@lucent.com>
88869
88870         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
88871
88872         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
88873
88874 2000-06-12  Paul Eggert  <eggert@twinsun.com>
88875
88876         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
88877
88878 2000-06-12  Jim Meyering  <meyering@lucent.com>
88879
88880         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
88881         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
88882         optional argument.
88883         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
88884         the optional argument, `lib'.
88885
88886 2000-06-08  Jim Meyering  <meyering@lucent.com>
88887
88888         * m4/largefile.m4: Remove file (now that it's part of autoconf).
88889
88890 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88891
88892         Rewrite largefile configuration so that we don't need to run
88893         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
88894         AC_CANONICAL_HOST in configure.in -- jmm]
88895
88896         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
88897         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
88898         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
88899         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
88900         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
88901         All uses changed.
88902         Instead of inspecting the output of getconf, try to compile the
88903         test program without and with the macro definition.
88904         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
88905         for getconf.  Instead, check for the needed flags by compiling
88906         test programs.
88907
88908 2000-06-04  Paul Eggert  <eggert@twinsun.com>
88909
88910         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
88911
88912 2000-06-04  Jim Meyering  <meyering@lucent.com>
88913
88914         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
88915         SunOS 4.1.4 for which gid_t is an unsigned type.
88916
88917 2000-06-03  Jim Meyering  <meyering@lucent.com>
88918
88919         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
88920         now that autoconf requires that.
88921
88922         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
88923         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
88924         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
88925
88926 2000-06-03  Jim Meyering  <meyering@lucent.com>
88927
88928         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
88929
88930 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88931
88932         * m4/glibc21.m4: New file.
88933         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
88934
88935 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
88936
88937         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
88938         newer, don't install charset.alias.
88939         * lib/config.charset: Change the Linux/glibc rules so they become empty
88940         on glibc-2.1 or newer.
88941
88942 2000-06-02  Jim Meyering  <meyering@lucent.com>
88943
88944         * lib/mountlist.c: Back out last change.  Instead, do this...
88945         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
88946         me_dummy member using the same `ignore'-testing code.
88947         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
88948         fs_type strings.
88949         From Mark D. Roth.
88950
88951 2000-05-29  Jim Meyering  <meyering@lucent.com>
88952
88953         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
88954         mounts with the `ignore' attribute.  Based on a patch from
88955         Mark D. Roth.
88956
88957 2000-05-28  Jim Meyering  <meyering@lucent.com>
88958
88959         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
88960         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88961         * m4/stat.m4: Likewise.
88962         * m4/lstat.m4: Likewise.
88963         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
88964
88965         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
88966         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
88967
88968 2000-05-26  Jim Meyering  <meyering@lucent.com>
88969
88970         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
88971
88972 2000-05-24  Jim Meyering  <meyering@lucent.com>
88973
88974         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
88975         autoconf requires that.
88976         * m4/lib-check.m4: Likewise.
88977         * m4/jm-macros.m4: Likewise.
88978         * m4/strftime.m4: Likewise.
88979
88980         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
88981         AC_CHECK_DECLS, now that autoconf requires that.
88982
88983 2000-05-22  Jim Meyering  <meyering@lucent.com>
88984
88985         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
88986         * m4/lstat.m4: Likewise.
88987
88988 2000-05-22  Jim Meyering  <meyering@lucent.com>
88989
88990         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
88991
88992 2000-05-20  Jim Meyering  <meyering@lucent.com>
88993
88994         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
88995         (jm_PREREQ): Use it.
88996
88997 2000-05-18  Jim Meyering  <meyering@lucent.com>
88998
88999         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
89000         back, too, since it may have been modified by allocate_entry.
89001         (hash_delete): Rewrite to use neither the assignment operator
89002         nor the comma operator in an if-expression.
89003
89004 2000-05-15  Paul Eggert  <eggert@twinsun.com>
89005
89006         * lib/closeout.c:
89007         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
89008         Remove; no longer needed.
89009         "quotearg.h": Add include.
89010         (file_name): Do not bother to explicitly initialize to NULL; it's less
89011         efficient on some hosts.
89012         (close_stdout_status): Remove test as to whether stdout was already
89013         closed; it breaks for the case "echo x | sort >&-".
89014         Quote file name colons.
89015         Do not assume that _("write error") lacks format strings.
89016
89017 2000-05-15  Jim Meyering  <meyering@lucent.com>
89018
89019         * lib/version-etc.c (version_etc_copyright): Update the copyright
89020         string used in all --version output.
89021
89022 2000-05-14  Jim Meyering  <meyering@lucent.com>
89023
89024         * lib/closeout.c (close_stdout_set_file_name): New function.
89025         (close_stdout_status): Use new file-scoped global.
89026         Return right away if fstat says the stdout file descriptor is invalid.
89027         * lib/closeout.h (close_stdout_set_file_name): Declare.
89028
89029 2000-05-10  Jim Meyering  <meyering@lucent.com>
89030
89031         * lib/closeout.c [default_exit_status]: New file-scoped variable.
89032         (close_stdout_set_status): New function.
89033         * lib/closeout.h (close_stdout_set_status): Declare.
89034
89035 2000-05-09  Jim Meyering  <meyering@lucent.com>
89036
89037         * m4/gettext.m4: Rename this...
89038         * m4/libintl.m4: ...to this.
89039
89040 2000-05-08  Jim Meyering  <meyering@lucent.com>
89041
89042         * lib/long-options.c: Don't include closeout.h.
89043         (parse_long_options): Don't call close_stdout for --version.
89044
89045 2000-05-06  Paul Eggert  <eggert@twinsun.com>
89046
89047         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
89048         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
89049         2.1.3 bug.  This avoids a clash when files like regex.c define
89050         _GNU_SOURCE.
89051
89052 2000-05-06  Jim Meyering  <meyering@lucent.com>
89053
89054         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
89055         (AC_REPLACE_FUNCS): Add strnlen.
89056
89057         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
89058         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
89059
89060         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
89061         AC_SEARCH_LIBS call for nanosleep.
89062         (LIB_NANOSLEEP): Set and AC_SUBST.
89063
89064 2000-05-06  Jim Meyering  <meyering@lucent.com>
89065
89066         * lib/strnlen.c: Undefine __strnlen and strnlen.
89067         [!weak_alias]: Define __strnlen to strnlen.
89068
89069         * lib/atexit.c: New file, from libiberty.
89070
89071 2000-05-06  Jim Meyering  <meyering@lucent.com>
89072
89073         * lib/closeout.c (close_stdout_status): Also check for errors on the
89074         stderr stream.
89075
89076 2000-05-05  Jim Meyering  <meyering@lucent.com>
89077
89078         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
89079         AC_SEARCH_LIBS call for clock_gettime.
89080         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
89081
89082         * m4/search-libs.m4: Update from autoconf.
89083
89084         su doesn't work on Solaris 2.6.
89085         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
89086         <shadow.h>.  Reported by Dragos Harabor.
89087
89088 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
89089
89090         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
89091         memcpy instead of xmalloc, xrealloc, path_concat.
89092         (locale_charset): Treat empty environment variables as absent.
89093         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
89094
89095 2000-05-04  Jim Meyering  <meyering@lucent.com>
89096
89097         * lib/getopt.c: Update from glibc.
89098         * lib/obstack.c: Likewise.
89099         * lib/obstack.h: Likewise.
89100         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
89101         file
89102
89103         * lib/regex.h: Likewise.
89104         * lib/strndup.c: Likewise.
89105         * lib/strnlen.c: New file, from glibc.
89106
89107 2000-05-03  Jim Meyering  <meyering@lucent.com>
89108
89109         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
89110
89111 2000-05-02  Paul Eggert  <eggert@twinsun.com>
89112
89113         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
89114         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
89115         compile-time test, rather than inspecting host and OS, to
89116         decide whether to define _LARGEFILE_SOURCE.
89117
89118 2000-05-01  Jim Meyering  <meyering@lucent.com>
89119
89120         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
89121
89122         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
89123         Based on a patch from Bruno Haible.
89124
89125 2000-05-01  Jim Meyering  <meyering@lucent.com>
89126
89127         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
89128
89129 2000-04-29  Jim Meyering  <meyering@lucent.com>
89130
89131         * lib/path-concat.c: Declare strdup only if it's not defined.
89132         * lib/canon-host.c: Likewise.
89133
89134 2000-04-28  Jim Meyering  <meyering@lucent.com>
89135
89136         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
89137         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
89138         is included first, then limits.h is included by locale.h by libintl.h.
89139         From John David Anglin.
89140
89141 2000-04-25  Jim Meyering  <meyering@lucent.com>
89142
89143         * lib/makepath.c (S_IRWXUGO): Define.
89144         (make_path): Always perform explicit chmod if MODE specifies any
89145         of the `special' permission bits.  Prompted by a bug report against
89146         install from Mate Wierdl and Joost van Baal.
89147
89148 2000-04-18  Jim Meyering  <meyering@lucent.com>
89149
89150         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
89151         (jm_PREREQ): Use it.
89152
89153 2000-04-18  Jim Meyering  <meyering@lucent.com>
89154
89155         * lib/README: New file.
89156
89157         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
89158         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
89159
89160 2000-04-17  Jim Meyering  <meyering@lucent.com>
89161
89162         Get it right :-)
89163         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
89164         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
89165         Suggestion from Akim Demaille.
89166
89167 2000-04-17  Jim Meyering  <meyering@lucent.com>
89168
89169         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
89170         the definition of it to rpl_strftime also defined-away the system's
89171         declaration.
89172
89173 2000-04-15  Jim Meyering  <meyering@lucent.com>
89174
89175         Use `C' to denote so-called `contiguous' files, the same way
89176         that tar does.
89177         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
89178         (ftypelet): Use S_ISCTG.
89179         From Michael Deutschmann.
89180
89181 2000-04-14  Jim Meyering  <meyering@lucent.com>
89182
89183         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
89184         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
89185         clobbered.
89186
89187 2000-04-14  Jim Meyering  <meyering@lucent.com>
89188
89189         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
89190
89191 2000-04-13  Jim Meyering  <meyering@lucent.com>
89192
89193         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
89194         AH_VERBATIM to insert required #ifndef into config.h.in.
89195         Suggestion from Akim Demaille.
89196
89197 2000-04-12  Jim Meyering  <meyering@lucent.com>
89198
89199         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
89200         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
89201         Christian Krackowizer.
89202
89203         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
89204         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
89205         (AC_SYS_LARGEFILE): Require.
89206         (AM_C_PROTOTYPES): Require.
89207
89208 2000-04-08  Jim Meyering  <meyering@lucent.com>
89209
89210         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
89211         names don't conflict.  Reported by Eli Zaretskii.
89212
89213 2000-04-07  Jim Meyering  <meyering@lucent.com>
89214
89215         * lib/putenv.c: Move inclusion of errno.h so it follows that of
89216         sys/types.h, to work around system header problems on AIX 3.2.5.
89217         From Bruno Haible.
89218
89219 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
89220
89221         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
89222         bug.  Deal with the different error behavior of Irix iconv.
89223
89224 2000-04-05  Paul Eggert  <eggert@twinsun.com>
89225
89226         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
89227         IRIX if the installer said otherwise.
89228
89229 2000-04-05  Jim Meyering  <meyering@lucent.com>
89230
89231         Portability tweaks required for ultrix4.3.
89232         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
89233         (jm_CHECK_DECLS): Add getutent to the list of functions.
89234         (_jm_DECL_HEADERS): Add utmpx.h.
89235         From John David Anglin.
89236
89237         * m4/strftime.m4: Back out the 2000-04-02 change.
89238         Instead of that change, simply undefine putenv in the test program.
89239
89240 2000-04-05  Jim Meyering  <meyering@lucent.com>
89241
89242         Portability tweaks required for ultrix4.3.
89243         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
89244         getutent.
89245         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
89246         * lib/canon-host.c: Declare strdup.
89247         * lib/path-concat.c: Likewise.
89248         From John David Anglin.
89249
89250 2000-04-04  Jim Meyering  <meyering@lucent.com>
89251
89252         Be more DOS 8.3-friendly.
89253         * lib/ref-add.sin: Renamed from ref-add.sed.in.
89254         * lib/ref-del.sin: Renamed from ref-del.sed.in.
89255         * lib/Makefile.am: Reflect renaming.
89256         Reported by Eli Zaretskii.
89257
89258         Use a temporary file name that won't clash with `charset.alias'
89259         in the DOS 8.3 name space.
89260         * lib/Makefile.am (charset_tmp): Define.
89261         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
89262         (uninstall-local): Likewise.
89263         Reported by Eli Zaretskii.
89264
89265 2000-04-03  Jim Meyering  <meyering@lucent.com>
89266
89267         * m4/gettext.m4: Fix typo in comment.
89268
89269         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
89270         textutils/configure.in).  Suggestion from Paul Eggert.
89271         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
89272
89273 2000-04-02  Paul Eggert  <eggert@twinsun.com>
89274
89275         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
89276         variable in the shell rather than using putenv, which isn't
89277         portable.  This avoids the configure-time inter-test dependency
89278         on the potentially-renamed putenv function.
89279
89280 2000-03-30  Paul Eggert  <eggert@twinsun.com>
89281
89282         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
89283         before checking struct stat.st_blksize, so that
89284         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
89285
89286 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89287
89288         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
89289         since strftime.c uses HAVE_STRFTIME to decide whether to use
89290         the underlying strftime.
89291
89292 2000-03-29  Paul Eggert  <eggert@twinsun.com>
89293
89294         * lib/time/strftime.c (my_strftime): Make sure we call the system
89295         strftime, not ourselves, when invoking the underlying strftime.
89296
89297 2000-03-24  Jim Meyering  <meyering@lucent.com>
89298
89299         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
89300         (charset_alias): Define.
89301         (install-exec-local): Factor out common code.
89302         (uninstall-local): Split lines longer than 80.
89303         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
89304         (SUFFIXES): Define.
89305         (.sed.in.sed): New rule.  Don't redirect directly to $@.
89306         (CLEANFILES): Add ref-add.sed and ref-del.sed.
89307
89308 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
89309
89310         * lib/config.charset: Output a line containing "Packages using this
89311         file".
89312         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
89313         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
89314         ref-del.sed): New rules.
89315
89316 2000-03-17  Jim Meyering  <meyering@lucent.com>
89317
89318         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
89319         Otherwise, include <strings.h>
89320
89321 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
89322
89323         * lib/unicodeio.c (utf8_wctomb): New function.
89324         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
89325         format instead of in UCS-4 with platform dependent endianness.
89326
89327 2000-03-10  Jim Meyering  <meyering@lucent.com>
89328
89329         * m4/lib-check.m4: Look for getspnam in -lgen, too.
89330         From Marco Franzen.
89331
89332 2000-03-07  Paul Eggert  <eggert@twinsun.com>
89333
89334         * lib/savedir.c (savedir): Work even if directory size is
89335         negative; this can happen with some screwy NFS configurations.
89336
89337 2000-03-06  Jim Meyering  <meyering@lucent.com>
89338
89339         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
89340         if it's NULL (because we ran out of memory).  From Bruno Haible.
89341
89342 2000-03-05  Jim Meyering  <meyering@lucent.com>
89343
89344         * lib/localcharset.c ("path-concat.h"): Include.
89345         (get_charset_aliases): Use path_concat instead of ANSI string
89346         concatenation.
89347
89348         * lib/unicodeio.h (PARAMS): Define.
89349         Use it to guard prototype.
89350
89351 2000-03-04  Jim Meyering  <meyering@lucent.com>
89352
89353         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
89354         for lib/localcharset.c.
89355
89356 2000-03-04  Jim Meyering  <meyering@lucent.com>
89357
89358         * lib/Makefile.am (install-exec-local): Create $(libdir) before
89359         installing into it.
89360         (uninstall-local): Uncomment this rule so `make distcheck' works
89361         once again.
89362
89363         * lib/unicodeio.c (<errno.h>): Include it.
89364         (errno): Declare if not defined.
89365
89366         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
89367
89368         * lib/config.charset: New version, incorporating remarks from a linux
89369         i18n mailing list.  From Bruno Haible.
89370
89371 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
89372
89373         * m4/codeset.m4: New file.
89374         * m4/iconv.m4: New file.
89375         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
89376
89377 2000-03-03  Jim Meyering  <meyering@lucent.com>
89378
89379         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
89380
89381 2000-03-02  Jim Meyering  <meyering@lucent.com>
89382
89383         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
89384         the messages come out on separate lines.
89385
89386         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
89387         rather than jm_CHECK_DECLARATIONS.
89388         * m4/decl.m4: Remove now-unused file.
89389
89390         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
89391         geteuid.
89392
89393 2000-03-02  Jim Meyering  <meyering@lucent.com>
89394
89395         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
89396
89397 2000-03-01  Jim Meyering  <meyering@lucent.com>
89398
89399         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
89400         * lib/unicodeio.c: Likewise.
89401
89402 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
89403
89404         * lib/config.charset: New file.
89405         * lib/localcharset.c: New file.
89406         * lib/unicodeio.h, lib/unicodeio.c: New files.
89407         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
89408         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
89409         (noinst_HEADERS): Add unicodeio.h.
89410         (all-local, install-exec-local, charset.alias): New targets.
89411
89412 2000-02-28  Paul Eggert  <eggert@twinsun.com>
89413
89414         * lib/quotearg.c (ALERT_CHAR): New macro.
89415         (quotearg_buffer_restyled): Use it.
89416
89417 2000-02-27  Jim Meyering  <meyering@lucent.com>
89418
89419         * m4/check-decl.m4: Add getenv to the list.
89420
89421 2000-02-27  Jim Meyering  <meyering@lucent.com>
89422
89423         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
89424         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
89425
89426         * lib/backupfile.c: Guard inclusion of stdlib.h with
89427         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
89428         Declare malloc if needed.
89429
89430         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
89431         `#ifndef HAVE_DECL..'
89432         now that autoconf always defines the HAVE_DECL_ symbols.
89433         * lib/human.c: Likewise.
89434         * lib/same.c: Likewise.
89435         * lib/strtoumax.c: Likewise.
89436
89437         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
89438         declaration check was not run.
89439         * lib/hash.c: Likewise.
89440         * lib/human.c: Likewise.
89441         * lib/same.c: Likewise.
89442         * lib/strtoumax.c: Likewise.
89443
89444         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
89445         `.', then first look up the entire `.'-containing string as a login
89446         name.
89447
89448 2000-02-23  Jim Meyering  <meyering@lucent.com>
89449
89450         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
89451         in place of my hack.
89452
89453 2000-02-18  Paul Eggert  <eggert@twinsun.com>
89454
89455         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
89456         (textint): New typedef.
89457         (parser_control): Member year changed from int to textint.
89458         All uses changed.
89459         (YYSTYPE): Removed; replaced by %union with int and textint members.
89460         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
89461         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
89462         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
89463         (tSNUMBER, tUNUMBER): Now of type <textintval>.
89464         (date, number, to_year): Use width of number in digits, not its value,
89465         to determine whether it's a 2-digit year, or a 2-digit time.
89466         (yylex): Store number of digits of numeric tokens.
89467         Reported by John Kendall.
89468
89469         (parser_control): Changed from struct parser_control to typedef (for
89470         consistency).  All uses changed.
89471
89472         (tID): Removed; not used.
89473         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
89474
89475 2000-02-14  Paul Eggert  <eggert@twinsun.com>
89476
89477         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
89478         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
89479
89480 2000-02-12  Jim Meyering  <meyering@lucent.com>
89481
89482         * lib/userspec.c (ISDIGIT): Define it.
89483         (isdigit): Remove definition.
89484         (is_number): Use ISDIGIT, not isdigit.
89485         <libintl.h>: Include.
89486         (_ and N_): Define.
89487         (parse_user_spec): Mark translatable strings.
89488
89489 2000-02-10  Jim Meyering  <meyering@lucent.com>
89490
89491         With these changes, nanosleep.[ch] are finally enough like the other
89492         lib/* replacement files to compile on a few more losing systems.
89493
89494         * lib/nanosleep.h: Don't include config.h.
89495         Remove prototype from declaration of nanosleep.
89496         (PARAMS): Remove now-unneeded definition.
89497         * lib/nanosleep.c: #undef nanosleep.
89498         (rpl_nanosleep): Rename from nanosleep.
89499
89500 2000-02-10  Jim Meyering  <meyering@lucent.com>
89501
89502         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
89503         gnu_nanosleep to rpl_nanosleep.
89504
89505 2000-02-09  Jim Meyering  <meyering@lucent.com>
89506
89507         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
89508         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
89509
89510 2000-02-08  Akim Demaille  <akim@epita.fr>
89511
89512         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
89513         `[' and `]' and remove uses of `changequote'.
89514         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
89515         (AC_SYS_LARGEFILE): Likewise.
89516         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
89517         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
89518         of changequote.
89519         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
89520         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
89521         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
89522         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
89523
89524 2000-02-05  Jim Meyering  <meyering@lucent.com>
89525
89526         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
89527         Remove explicit use of AC_HEADER_TIME.  It is required by
89528         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
89529         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
89530         in autoconf whereby the expansion of the latter ended up preceding
89531         the expansion of its prerequisite, AC_HEADER_TIME.
89532         Reported by Volker Borchert.
89533
89534 2000-02-03  Jim Meyering  <meyering@lucent.com>
89535
89536         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
89537
89538 2000-02-03  Jim Meyering  <meyering@lucent.com>
89539
89540         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
89541         rather than with `#if HAVE_UTMPNAME'.
89542
89543 2000-02-02  Jim Meyering  <meyering@lucent.com>
89544
89545         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
89546         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
89547         Reported by Eli Zaretskii.
89548
89549 2000-02-01  Jim Meyering  <meyering@lucent.com>
89550
89551         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
89552
89553 2000-01-31  Jim Meyering  <meyering@lucent.com>
89554
89555         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
89556         functions.  Add the time.h and sys/time.h headers along with the
89557         AC_REQUIRE'ment of AC_HEADER_TIME.
89558
89559 2000-01-31  Jim Meyering  <meyering@lucent.com>
89560
89561         * lib/nanosleep.h (nanosleep): Guard declaration with
89562         `#if ! HAVE_DECL_NANOSLEEP'.
89563         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
89564         the declaration in that vendor's sys/timers.h.
89565         Reported by Christian Krackowizer.
89566
89567         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
89568         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
89569         (ISPRINT): Likewise.
89570         Reported by Tom Tromey.
89571
89572 2000-01-30  Jim Meyering  <meyering@lucent.com>
89573
89574         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
89575
89576         * m4/prereq.m4 (utmp_includes): Define.
89577         Check for ut_user and ut_name members in both struct utmpx
89578         and struct utmp.
89579
89580 2000-01-30  Jim Meyering  <meyering@lucent.com>
89581
89582         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
89583         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
89584         header files where only utmpx.ut_user is declared.
89585
89586         * lib/readutmp.h (UT_USER): Define.
89587
89588 2000-01-29  Jim Meyering  <meyering@lucent.com>
89589
89590         * m4/lib-check.m4: New file containing library-related checks from
89591         fileutils and sh-utils (textutils had none).
89592
89593 2000-01-28  Jim Meyering  <meyering@lucent.com>
89594
89595         * m4/perl.m4: Change format of warning message to look more like that
89596         from the missing script.  Suggestion from François Pinard.
89597
89598 2000-01-25  Jim Meyering  <meyering@lucent.com>
89599
89600         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
89601         well as time.h in the compile check.
89602         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
89603         Fix typo in cross-compiling case: s/yes/no/.
89604
89605 2000-01-23  Jim Meyering  <meyering@lucent.com>
89606
89607         * m4/jm-macros.m4: Move df-related tests here from
89608         fileutils/configure.in
89609
89610         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
89611         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
89612
89613         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
89614         s/space/ac_fsusage_space/.
89615         (jm_FILE_SYSTEM_USAGE): Take two parameters.
89616
89617         * m4/ftruncate.m4: New file (derived from part of
89618         fileutils/configure.in).
89619         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
89620         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
89621
89622         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
89623         AC_SUBST these here, rather than just in sh-util/configure.in, so
89624         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
89625         all the same.
89626         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
89627         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
89628         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
89629         (AC_SUBST(POW_LIBM)): Likewise.
89630         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
89631
89632 2000-01-23  Jim Meyering  <meyering@lucent.com>
89633
89634         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
89635         obstack.c.
89636
89637 2000-01-22  Jim Meyering  <meyering@lucent.com>
89638
89639         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
89640
89641         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
89642
89643         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
89644         configure.in
89645         (AC_CHECK_HEADERS): Likewise for sh-utils.
89646         (AC_CHECK_HEADERS): Likewise for textutils.
89647         Merge the three lists of headers.
89648
89649         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
89650         from fileutils' configure.in.
89651
89652         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
89653         code. Moved tests into their own function (_jm_DECL_HEADERS) in
89654         check-decl.m4.
89655
89656         * m4/check-decl.m4: Use #if rather than #ifdef.
89657         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
89658         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
89659         (_jm_DECL_HEADERS): Define new function.
89660         (jm_CHECK_DECLARATIONS): Require it.
89661
89662 2000-01-22  Jim Meyering  <meyering@lucent.com>
89663
89664         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
89665         [! HAVE_DECL_STRTOULL]: Declare strtoull.
89666         Required for some AIX systems.  Reported by Christian Krackowizer.
89667         [TESTING] (main): New function.
89668
89669         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
89670         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
89671         letters.
89672
89673         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
89674         iswprint.
89675
89676         * lib/strverscmp.c (ISDIGIT): Define.
89677         (strverscmp): Use ISDIGIT, not isdigit.
89678
89679 2000-01-19  Jim Meyering  <meyering@lucent.com>
89680
89681         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
89682         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
89683         defines `struct timespec' in <sys/time.h>
89684
89685         * m4/c-bs-a.m4: Remove uses of changequote altogether.
89686         Thanks to Akim for explaining.
89687
89688 2000-01-17  Paul Eggert  <eggert@twinsun.com>
89689
89690         * lib/nanosleep.c (nanosleep):
89691         Don't use SA_INTERRUPT to decide whether to call sigaction, as
89692         POSIX.1 doesn't require SA_INTERRUPT and some systems
89693         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
89694         it's been part of POSIX.1 since day 1 (in 1988).
89695
89696 2000-01-17  Jim Meyering  <meyering@lucent.com>
89697
89698         * lib/interlock: Remove unused file.  Reported by François Pinard.
89699
89700 2000-01-16  Paul Eggert  <eggert@twinsun.com>
89701
89702         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
89703         alert, backslash, formfeed, and vertical tab unnecessarily in
89704         shell quoting style.
89705
89706 2000-01-16  Jim Meyering  <meyering@lucent.com>
89707
89708         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
89709         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
89710         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
89711         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
89712
89713 2000-01-16  Jim Meyering  <meyering@lucent.com>
89714
89715         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
89716         because the latter didn't work.
89717
89718 2000-01-15  Jim Meyering  <meyering@lucent.com>
89719
89720         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
89721         (AC_REPLACE_FUNCS): Add memcpy and memset.
89722         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
89723         Add strpbrk.
89724         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
89725
89726 2000-01-12  Jim Meyering  <meyering@lucent.com>
89727
89728         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
89729         (jm_PREREQ): Use it.
89730         (jm_PREREQ_READUTMP): New macro.
89731         (jm_PREREQ): Use it.
89732
89733 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89734
89735         Quote multibyte characters correctly.
89736         * m4/c-bs-a.m4: New file.
89737         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
89738         (jm_PREREQ): Use it.
89739
89740 2000-01-11  Paul Eggert  <eggert@twinsun.com>
89741
89742         * m4/uintmax_t.m4: Port to autoconf 2.13.
89743
89744 2000-01-08  Jim Meyering  <meyering@ascend.com>
89745
89746         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
89747         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
89748
89749 2000-01-04  Jim Meyering  <meyering@ascend.com>
89750
89751         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
89752         jm_STRUCT_DIRENT_D_TYPE.
89753         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
89754         jm_STRUCT_DIRENT_D_INO.
89755         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
89756         jm_STRUCT_UTIMBUF.
89757         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
89758         renamings.
89759         * m4/utime.m4: Likewise.
89760
89761         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
89762         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
89763
89764 2000-01-03  Paul Eggert  <eggert@twinsun.com>
89765
89766         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
89767         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
89768
89769 2000-01-02  Jim Meyering  <meyering@ascend.com>
89770
89771         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
89772         remember if this is necessary.
89773
89774 1999-12-26  Jim Meyering  <meyering@ascend.com>
89775
89776         * m4/jm-macros.m4: Use it here.
89777         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
89778
89779 1999-12-23  Jim Meyering  <meyering@ascend.com>
89780
89781         * m4/jm-macros.m4: Check for clock_gettime (moved from
89782         fileutils/configure.in)
89783         Check for gettimeofday.
89784
89785 1999-12-20  Jim Meyering  <meyering@ascend.com>
89786
89787         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
89788         autoconf-2.14a-1999-12-20.
89789
89790 1999-12-19  Jim Meyering  <meyering@ascend.com>
89791
89792         * m4/lstat-slash.m4: New file.
89793         * m4/jm-macros.m4: Use the new macro:
89794         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89795
89796 1999-12-07  Jim Meyering  <meyering@ascend.com>
89797
89798         * m4/perl.m4: Require that File::Compare be available, too.
89799         Too many systems seem to lack it.
89800
89801         * m4/strftime.m4: Add checks for most of the cpp macros tested in
89802         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
89803
89804 1999-11-18  Paul Eggert  <eggert@twinsun.com>
89805
89806         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
89807         problem with the QNX 4.25 shell, which doesn't propagate exit
89808         status of failed commands inside shell assignments.
89809
89810 1999-11-17  Jim Meyering  <meyering@ascend.com>
89811
89812         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
89813
89814 1999-11-07  Jim Meyering  <meyering@ascend.com>
89815
89816         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
89817
89818 1999-11-06  Jim Meyering  <meyering@ascend.com>
89819
89820         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
89821         * m4/jm-macros.m4 (jm_MACROS): Use it here.
89822
89823 1999-11-05  Jim Meyering  <meyering@ascend.com>
89824
89825         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
89826         configure.in of textutils, fileutils, and sh-utils into this one
89827         (shared between those packages) file.
89828         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
89829         AC_STRUCT_ST_BLKSIZE.
89830
89831 1999-11-03  Jim Meyering  <meyering@ascend.com>
89832
89833         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
89834         of AC_CHECK_TYPE checks includes unistd.h.
89835         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
89836         Suggestion from Akim Demaille.
89837
89838 1999-10-30  Jim Meyering  <meyering@ascend.com>
89839
89840         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
89841         m4-quoted string.
89842         * m4/ls-mntd-fs.m4: Likewise.
89843         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
89844         * m4/jm-winsz1.m4: Likewise.
89845
89846         * m4/const.m4: Remove file, since the fix made it into the experimental
89847         version of autoconf.
89848         * m4/mktime.m4: Likewise.
89849
89850         * m4/check-type.m4: Remove file, now that the latest version of
89851         AC_CHECK_TYPE takes a third arg to specify additional #includes.
89852
89853         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
89854         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
89855         AC_CHECK_TYPE.
89856
89857 1999-10-04  Jim Meyering  <meyering@ascend.com>
89858
89859         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
89860
89861 1999-09-22  Paul Eggert  <eggert@twinsun.com>
89862
89863         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
89864         2.95.1 bug with HP-UX 10.20.
89865
89866 1999-09-17  Jim Meyering  <meyering@ascend.com>
89867
89868         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
89869         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
89870         due to missing strdup (against sh-utils-2.0).
89871
89872 1999-08-29  Jim Meyering  <meyering@ascend.com>
89873
89874         * m4/jm-macros.m4: Require jm_BISON.
89875         * m4/bison.m4: New file.
89876
89877 1999-08-17  Paul Eggert  <eggert@twinsun.com>
89878
89879         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
89880         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
89881
89882 1999-08-05  Jim Meyering  <meyering@ascend.com>
89883
89884         * m4/getline.m4: Rename test file from conftestdata to conftest.data
89885         to avoid conflicts with `conftest' on 8+3 filesystems.
89886         Suggestion from Eli Zaretskii.
89887
89888 1999-08-04  Jim Meyering  <meyering@ascend.com>
89889
89890         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
89891         fileutils and sh-utils (textutils's getline test was inadequate).
89892         (AM_FUNC_GETLINE): Run this test.
89893         (AC_CHECK_FUNCS): Check for getdelim.
89894         Reported by Bob Proulx.
89895
89896 1999-08-02  Jim Meyering  <meyering@ascend.com>
89897
89898         * m4/jm-macros.m4: Add a comment.
89899
89900 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89901
89902         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
89903         <inttypes.h> defines strtoumax as a macro (and not as a
89904         function).
89905
89906 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89907
89908         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
89909         that we can shift, multiply and divide unsigned long long
89910         values; Ultrix cc can't do it.
89911
89912 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89913
89914         * m4/mktime.m4: New file, which is a preview of what should appear
89915         in the next public autoconf release.
89916
89917 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89918
89919         * m4/lfs.m4: Remove this file.
89920         * m4/largefile.m4: New file.  It contains the old contents of
89921         lfs.m4, except that all names with prefix AC_LFS have been
89922         changed to use the prefix AC_SYS_LARGEFILE instead, to be
89923         compatible with future autoconf versions.  Also, some minor m4
89924         quoting problems have been fixed.
89925
89926 1999-08-01  Paul Eggert  <eggert@twinsun.com>
89927
89928         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
89929         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
89930         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
89931         and simplify the shell code.
89932
89933 1999-08-01  Jim Meyering  <meyering@ascend.com>
89934
89935         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
89936         m4.
89937
89938 1999-07-20  Jim Meyering  <meyering@ascend.com>
89939
89940         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
89941
89942 1999-07-15  Jim Meyering  <meyering@ascend.com>
89943
89944         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
89945
89946 1999-05-22  Jim Meyering  <meyering@ascend.com>
89947
89948         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
89949
89950 1999-05-20  Jim Meyering  <meyering@ascend.com>
89951
89952         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
89953         Add a colon after each `then' in case $4 is empty.
89954
89955 1999-05-16  Jim Meyering  <meyering@ascend.com>
89956
89957         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
89958
89959 1999-05-10  Jim Meyering  <meyering@ascend.com>
89960
89961         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
89962
89963         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
89964         AC_FUNC_MKTIME.
89965
89966 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
89967
89968         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
89969
89970 1999-05-04  Paul Eggert  <eggert@twinsun.com>
89971
89972         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
89973         not CPPFLAGS, so that linking works correctly in IRIX.
89974
89975 1999-04-30  Paul Eggert  <eggert@twinsun.com>
89976
89977         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
89978
89979 1999-04-20  Paul Eggert  <eggert@twinsun.com>
89980
89981         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
89982         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
89983         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
89984         jm_AC_TYPE_UNSIGNED_LONG_LONG.
89985         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
89986
89987         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
89988
89989 1999-04-20  Jim Meyering  <meyering@ascend.com>
89990
89991         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
89992         AC_REPLACE xstroull if necessary.  From Paul Eggert.
89993         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
89994
89995 1999-04-18  Jim Meyering  <meyering@ascend.com>
89996
89997         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
89998         * m4/jm-macros.m4: Use it.
89999
90000 1999-04-06  Jim Meyering  <meyering@ascend.com>
90001
90002         * m4/strftime.m4: Remove test for %f.
90003
90004 1999-03-29  Jim Meyering  <meyering@ascend.com>
90005
90006         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
90007         superset of the AC_TYPE_* checks in the textutils, fileutils,
90008         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
90009         AC_TYPE_PID_T.
90010
90011 1999-03-28  Jim Meyering  <meyering@ascend.com>
90012
90013         * m4/jm-macros.m4: Define GNU_PACKAGE here.
90014         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
90015         replaced e.g., in the *.sh files of the sh-utils.
90016
90017 1999-03-20  Jim Meyering  <meyering@ascend.com>
90018
90019         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
90020         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
90021         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
90022
90023 1999-03-19  Jim Meyering  <meyering@ascend.com>
90024
90025         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
90026
90027 1999-03-12  Jim Meyering  <meyering@ascend.com>
90028
90029         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
90030
90031 1999-03-07  Jim Meyering  <meyering@ascend.com>
90032
90033         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
90034         declared.
90035
90036 1999-02-17  Jim Meyering  <meyering@ascend.com>
90037
90038         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
90039         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
90040
90041 1999-02-07  Jim Meyering  <meyering@ascend.com>
90042
90043         * m4/group-member.m4: New file -- extracted from sh-utils'
90044         configure.in.
90045
90046         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
90047         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
90048
90049 1999-02-06  Jim Meyering  <meyering@ascend.com>
90050
90051         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
90052         * m4/fnmatch.m4: Likewise.
90053         * m4/getgroups.m4: Likewise.
90054         * m4/lstat.m4: Likewise.
90055         * m4/malloc.m4: Likewise.
90056         * m4/putenv.m4: Likewise.
90057         * m4/realloc.m4: Likewise.
90058         * m4/regex.m4: Likewise.
90059         * m4/stat.m4: Likewise.
90060         * m4/strftime.m4: Likewise.
90061         Suggestion from Alain Magloire.
90062
90063         * m4/chown.m4: Use `.$ac_objext', not `.o'.
90064         * m4/fnmatch.m4: Likewise.
90065         * m4/getgroups.m4: Likewise.
90066         * m4/getline.m4: Likewise.
90067         * m4/lstat.m4: Likewise.
90068         * m4/malloc.m4: Likewise.
90069         * m4/memcmp.m4: Likewise.
90070         * m4/putenv.m4: Likewise.
90071         * m4/realloc.m4: Likewise.
90072         * m4/regex.m4: Likewise.
90073         * m4/stat.m4: Likewise.
90074         * m4/strftime.m4: Likewise.
90075         Suggestion from Alain Magloire.
90076
90077         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
90078         an argument.
90079
90080         * m4/regex.m4: Add a run-time Test for proper operation of
90081         re_compile_pattern.
90082
90083 1999-01-31  Jim Meyering  <meyering@ascend.com>
90084
90085         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
90086
90087 1999-01-30  Jim Meyering  <meyering@ascend.com>
90088
90089         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
90090
90091         * m4/jm-mktime.m4: Make this a wrapper around the official
90092         AM_FUNC_MKTIME rather than my private copy, now that the official one
90093         is up to date.
90094         * m4/mktime.m4: Remove file.
90095
90096         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
90097         * m4/uptime.m4: Likewise.
90098         * m4/uintmax_t.m4: Likewise.
90099
90100 1999-01-28  Jim Meyering  <meyering@ascend.com>
90101
90102         * m4/jm-macros.m4: Use jm_AFS.
90103         * m4/afs.m4: New file (from fileutils' configure.in).
90104
90105         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
90106         * m4/chown.m4: Likewise.
90107         * m4/d-ino.m4: Likewise.
90108         * m4/d-type.m4: Likewise.
90109         * m4/fnmatch.m4: Likewise.
90110         * m4/getgroups.m4: Likewise.
90111         * m4/gettext.m4: Likewise.
90112         * m4/jm-mktime.m4: Likewise.
90113         * m4/jm-winsz2.m4: Likewise.
90114         * m4/lcmessage.m4: Likewise.
90115         * m4/ls-mntd-fs.m4: Likewise.
90116         * m4/malloc.m4: Likewise.
90117         * m4/memcmp.m4: Likewise.
90118         * m4/putenv.m4: Likewise.
90119         * m4/realloc.m4: Likewise.
90120         * m4/st_mtim.m4: Likewise.
90121         * m4/strftime.m4: Likewise.
90122
90123 1999-01-16  Jim Meyering  <meyering@ascend.com>
90124
90125         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
90126         (ARGMATCH_DIE_DECL): Define.
90127
90128 1999-01-12  Jim Meyering  <meyering@ascend.com>
90129
90130         * m4/Makefile.am.in: Rewrite to avoid using fmt.
90131         Reported by Lars Hecking.
90132
90133 1999-01-10  Jim Meyering  <meyering@ascend.com>
90134
90135         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
90136         gross kludge.
90137         * m4/inttypes_h.m4: Likewise.
90138         * m4/lstat.m4: Likewise.
90139         * m4/malloc.m4: Likewise.
90140         * m4/readdir.m4: Likewise.
90141         * m4/realloc.m4: Likewise.
90142         * m4/st_dm_mode.m4: Likewise.
90143         * m4/stat.m4: Likewise.
90144         * m4/utimbuf.m4: Likewise.
90145         * m4/utimes.m4: Likewise.
90146
90147         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
90148         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
90149         comments in config.h.in are meaningful.
90150
90151         * m4/jm-macros.m4: Require autoconf-2.13 here.
90152
90153         * m4/regex.m4: By default, don't use the included regex.c on systems
90154         with glibc 2.  Suggestion from Uli Drepper.
90155
90156 1999-01-02  Jim Meyering  <meyering@ascend.com>
90157
90158         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
90159
90160 1998-12-18  Jim Meyering  <meyering@ascend.com>
90161
90162         * m4/Makefile.am.in (Makefile.am): Simplify rule.
90163         Based on a suggestion from Lars Hecking.
90164
90165 1998-11-16  Paul Eggert  <eggert@twinsun.com>
90166
90167         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
90168
90169 1998-11-16  Jim Meyering  <meyering@ascend.com>
90170
90171         * m4/lfs.m4: Double-quote the `uname...` expression.
90172
90173 1998-11-14  Jim Meyering  <meyering@ascend.com>
90174
90175         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
90176         * m4/stat.m4: Likewise.
90177
90178 1998-11-03  Jim Meyering  <meyering@ascend.com>
90179
90180         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
90181         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
90182
90183 1998-10-18  Jim Meyering  <meyering@ascend.com>
90184
90185         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
90186
90187 1998-10-17  Jim Meyering  <meyering@ascend.com>
90188
90189         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
90190         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
90191         calls for those previously hard-coded headers.  Instead, take a new
90192         parameter.
90193         (jm_CHECK_DECLARATIONS): Reflect interface change.
90194         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
90195         (jm_CHECK_DECL_LOCALTIME_R): New macro.
90196
90197         * m4/mktime.m4: Test for spring-forward gap before long-running test.
90198
90199 1998-10-14  Jim Meyering  <meyering@ascend.com>
90200
90201         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
90202         instead of "TZ=America/Vancouver".  From Paul Eggert.
90203
90204 1998-10-11  Jim Meyering  <meyering@ascend.com>
90205
90206         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
90207         This adds a test for a recently added compatibility fix for mktime.c.
90208         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
90209
90210 1998-09-27  Jim Meyering  <meyering@ascend.com>
90211
90212         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
90213
90214         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
90215         ../configure.in, including a change from Gordon Matzigkeit to allow
90216         cross-compiling for the Hurd.
90217
90218         * m4/glibc.m4: New file/macro to test for the GNU C Library
90219         versions 1 and 2.  From Gordon Matzigkeit.
90220         Indent.
90221
90222 1998-09-21  Jim Meyering  <meyering@ascend.com>
90223
90224         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
90225
90226 1998-08-18  Paul Eggert  <eggert@twinsun.com>
90227
90228         Port nanosecond-resolution times to UnixWare 2.1.2 and
90229         pedantic Solaris 2.6.
90230
90231         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
90232         AC_STRUCT_ST_MTIM.
90233         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
90234         Generate name of ns member, instead of just 1 or undef.
90235         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
90236
90237 1998-08-15  Jim Meyering  <meyering@ascend.com>
90238
90239         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
90240         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
90241         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
90242         instead of jm_TYPE_SSIZE_T.
90243
90244 1998-08-12  Jim Meyering  <meyering@ascend.com>
90245
90246         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
90247
90248 1998-08-02  Jim Meyering  <meyering@ascend.com>
90249
90250         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
90251         in acconfig.h manually.
90252
90253 1998-07-31  Paul Eggert  <eggert@twinsun.com>
90254
90255         * m4/st_mtim.m4: New file.
90256
90257 1998-07-28  Jim Meyering  <meyering@ascend.com>
90258
90259         * m4/utimes.m4: Undef stat.
90260
90261 1998-07-25  Jim Meyering  <meyering@ascend.com>
90262
90263         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
90264         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
90265
90266 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
90267
90268         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
90269         uid and gid actually remain unchanged.
90270
90271 1998-07-07  Jim Meyering  <meyering@ascend.com>
90272
90273         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
90274
90275 1998-07-04  Jim Meyering  <meyering@ascend.com>
90276
90277         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
90278         to prove that this macro can be used in packages without regex.c.
90279
90280 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
90281
90282         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
90283         is to be used.
90284
90285 1998-07-03  Jim Meyering  <meyering@ascend.com>
90286
90287         * m4/gettext.m4: Add -lintl if it's found to be necessary.
90288
90289         * m4/gettext.m4: New file -- from gettext-0.10.35.
90290         * m4/lcmessage.m4: Likewise.
90291         * m4/progtest.m4: Likewise.
90292
90293         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
90294         * m4/jm-macros.m4: Require the new macro.
90295
90296 1998-06-29  Jim Meyering  <meyering@ascend.com>
90297
90298         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
90299         for the definition of NGROUPS (used in a system header included
90300         by sys/mount.h).
90301
90302 1998-06-28  Jim Meyering  <meyering@ascend.com>
90303
90304         * m4/ls-mntd-fs.m4: New file.
90305         * m4/fstypename.m4: New file.
90306
90307         * m4/jm-macros.m4: Require the new macro.
90308         * m4/jm-glibc-io.m4: New file.
90309
90310 1998-05-19  Jim Meyering  <meyering@ascend.com>
90311
90312         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
90313         * m4/lchown.m4: New file.
90314
90315         * m4/Makefile.am.in: New file.
90316         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
90317
90318 1998-05-14  Jim Meyering  <meyering@ascend.com>
90319
90320         * m4/Makefile.am (EXTRA_DIST): Add them.
90321         * m4/jm-macros.m4: New file.
90322         * m4/utimbuf.m4: New file.
90323
90324 1998-05-12  Jim Meyering  <meyering@ascend.com>
90325
90326         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
90327
90328 1998-05-11  Jim Meyering  <meyering@ascend.com>
90329
90330         * m4/isc-posix.m4: New file.
90331
90332 1998-05-10  Jim Meyering  <meyering@ascend.com>
90333
90334         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
90335
90336 1998-05-09  Jim Meyering  <meyering@ascend.com>
90337
90338         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
90339         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
90340         with automake.
90341
90342         * m4/ssize_t.m4: New file.
90343         * m4/mktime.m4: Remove file -- the new automake has this now.
90344
90345 1998-04-26  Jim Meyering  <meyering@ascend.com>
90346
90347         * m4/assert.m4: New file.
90348         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
90349
90350 1998-04-05  Jim Meyering  <meyering@ascend.com>
90351
90352         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
90353         (jm_PREREQ): Use it here.
90354
90355 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
90356
90357         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
90358         in acconfig.h.
90359
90360 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
90361
90362         * m4/prereq.m4: New file.
90363         * m4/error.m4: New file.
90364         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
90365
90366 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
90367
90368         * m4/getline.m4: Don't set am_cv_func_working_getline before the
90369         cache-check for the same variable -- that defeated the purpose of
90370         the test; the test program was never run.  This was a problem only
90371         on systems with losing getline functions -- HP-UX 10.20 is one.
90372         Reported by Bjorn Helgaas.
90373
90374 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
90375
90376         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
90377
90378 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
90379
90380         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
90381
90382         * m4/const.m4: New file.  Use an initializer in this declaration
90383         typedef int charset[2]; const charset x;
90384         Reported by Bob Glickstein.
90385
90386 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
90387
90388         * m4/chown.m4: Fix reversed types on -1 args to chown.
90389         From Kaveh Ghazi.
90390
90391 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
90392
90393         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
90394         Add lseek and memchr.
90395
90396         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
90397         T.E.Dickey <dickey@clark.net> said that some older preprocessors
90398         have a 20-character limit on names.
90399
90400 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
90401
90402         * m4/inttypes_h.m4: New file.
90403         * m4/uintmax_t.m4: New file.
90404         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
90405
90406
90407         -----
90408
90409         Local Variables:
90410         coding: utf-8
90411         End:
90412
90413         Copyright (C) 1997-2011 Free Software Foundation, Inc.
90414
90415         Copying and distribution of this file, with or without
90416         modification, are permitted provided the copyright notice
90417         and this notice are preserved.